X8rQy[422748]=(function(){var D$C=2;for(;D$C !== 9;){switch(D$C){case 1:return globalThis;break;case 2:D$C=typeof globalThis === '\u006f\u0062\x6a\x65\u0063\u0074'?1:5;break;case 5:var g$t;try{var e2s=2;for(;e2s !== 6;){switch(e2s){case 9:delete g$t['\u0052\x38\x5a\x54\u005f'];var e8R=Object['\x70\x72\u006f\u0074\x6f\u0074\x79\x70\x65'];delete e8R['\u007a\u0042\x6c\u006c\u0066'];e2s=6;break;case 3:throw "";e2s=9;break;case 2:Object['\x64\x65\u0066\u0069\x6e\u0065\x50\u0072\x6f\x70\u0065\x72\u0074\x79'](Object['\x70\x72\x6f\x74\x6f\x74\u0079\x70\x65'],'\u007a\u0042\u006c\x6c\u0066',{'\x67\x65\x74':function(){return this;},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});g$t=zBllf;g$t['\u0052\u0038\x5a\x54\x5f']=g$t;e2s=4;break;case 4:e2s=typeof R8ZT_ === '\u0075\u006e\x64\x65\x66\x69\u006e\u0065\x64'?3:9;break;}}}catch(r1w){g$t=window;}return g$t;break;}}})();X8rQy[151143]="n3X";X8rQy[649152]=false;X8rQy.M4Q=function(){return typeof X8rQy[989].M3znQ$M === 'function'?X8rQy[989].M3znQ$M.apply(X8rQy[989],arguments):X8rQy[989].M3znQ$M;};X8rQy[989]=(function(o7t){return {M3znQ$M:function(){var Z8F,A$D=arguments;switch(o7t){case 18:Z8F=(A$D[1] / A$D[0] | A$D[3]) * A$D[2];break;case 13:Z8F=A$D[1] < A$D[0];break;case 15:Z8F=A$D[0] * A$D[1] - A$D[2];break;case 1:Z8F=A$D[0] + A$D[1];break;case 12:Z8F=A$D[1] * A$D[0];break;case 19:Z8F=(A$D[3] - A$D[1] - A$D[4]) * A$D[2] + A$D[0];break;case 16:Z8F=A$D[1] + A$D[3] / A$D[0] * A$D[2];break;case 17:Z8F=A$D[1] / A$D[0] | A$D[2];break;case 14:Z8F=A$D[0] <= A$D[1];break;case 7:Z8F=A$D[1] instanceof A$D[0];break;case 6:Z8F=A$D[0] === A$D[1];break;case 4:Z8F=A$D[1] * A$D[2] / A$D[0];break;case 0:Z8F=A$D[0] - A$D[1];break;case 10:Z8F=A$D[0] + A$D[3] + A$D[2] - A$D[1];break;case 9:Z8F=-A$D[0] * A$D[1] / A$D[3] + A$D[2];break;case 3:Z8F=A$D[1] / A$D[0];break;case 8:Z8F=(A$D[2] + A$D[3]) / A$D[1] * A$D[4] - A$D[0];break;case 5:Z8F=A$D[1] !== A$D[0];break;case 2:Z8F=(-A$D[1] - A$D[2]) * A$D[3] / A$D[0] + A$D[4];break;case 11:Z8F=A$D[3] / A$D[2] * A$D[1] - A$D[0];break;}return Z8F;},T2OQaIq:function(L4e){o7t=L4e;}};})();function X8rQy(){}X8rQy[632790]=835;X8rQy[471064]="eek";X8rQy.T2D=function(){return typeof X8rQy[989].T2OQaIq === 'function'?X8rQy[989].T2OQaIq.apply(X8rQy[989],arguments):X8rQy[989].T2OQaIq;};X8rQy[127026]=X8rQy[422748];X8rQy.I83=function(){return typeof X8rQy[989].M3znQ$M === 'function'?X8rQy[989].M3znQ$M.apply(X8rQy[989],arguments):X8rQy[989].M3znQ$M;};X8rQy[389645]="R2r";X8rQy[78781]=X8rQy[989];X8rQy.r4q=function(){return typeof X8rQy[989].T2OQaIq === 'function'?X8rQy[989].T2OQaIq.apply(X8rQy[989],arguments):X8rQy[989].T2OQaIq;};X8rQy[422748].d2ii=X8rQy;X8rQy[422877]=X8rQy[989];(function(){(function(Ba,Mb){(function(){var hb,Ha,tb,Fb,fb,Gb,vb,Za,Hb;function qb(ma){var ua;ua=0;return function(){return ua < ma.length?{done:!1,value:ma[ua++]}:{done:!0};};}function Ma(ma,ua){var wa,b;if(ua)a:{wa=Ha;ma=ma.split(".");for(var t=0;t < ma.length - 1;t++){b=ma[t];if(!((b in wa)))break a;wa=wa[b];}ma=ma[ma.length - 1];t=wa[ma];ua=ua(t);ua != t && null != ua && hb(wa,ma,{configurable:!0,writable:!0,value:ua});}}function rb(ma){ma={next:ma};ma[Symbol.iterator]=function(){return this;};return ma;}function Ea(ma){var ua;ua="undefined" != typeof Symbol && Symbol.iterator && ma[Symbol.iterator];return ua?ua.call(ma):{next:qb(ma)};}function sb(ma){for(var ua,wa=[];!(ua=ma.next()).done;)wa.push(ua.value);return wa;}function za(ma){return ma instanceof Array?ma:sb(Ea(ma));}function Ia(ma,ua){var t;ma.prototype=tb(ua.prototype);ma.prototype.constructor=ma;if(Za)Za(ma,ua);else for(var wa in ua)if("prototype" != wa)if(Object.defineProperties){t=Object.getOwnPropertyDescriptor(ua,wa);t && Object.defineProperty(ma,wa,t);}else ma[wa]=ua[wa];ma.rdd=ua.prototype;}function ib(){this.Qaa=!1;this.DN=null;this.TU=void 0;this.Ds=1;this.uub=this.LX=0;this.tP=null;}function jb(ma){if(ma.Qaa)throw new TypeError("Generator is already running");ma.Qaa=!0;}function cb(ma,ua,wa){ma.Ds=wa;return {value:ua};}function Cb(ma){ma.Ds=2;ma.LX=0;}function kb(ma){var ua;ma.LX=0;ua=ma.tP.Dtb;ma.tP=null;return ua;}function lb(ma){this.qh=new ib();this.gKc=ma;}function Db(ma,ua){var wa;jb(ma.qh);wa=ma.qh.DN;if(wa)return mb(ma,("return" in wa)?wa["return"]:function(t){return {value:t,done:!0};},ua,ma.qh.return);ma.qh.return(ua);return db(ma);}function mb(ma,ua,wa,t){var b,a;try{b=ua.call(ma.qh.DN,wa);if(!(b instanceof Object))throw new TypeError("Iterator result " + b + " is not an object");if(!b.done)return (ma.qh.Qaa=!1,b);a=b.value;}catch(d){return (ma.qh.DN=null,ma.qh.lfa(d),db(ma));}ma.qh.DN=null;t.call(ma.qh,a);return db(ma);}function db(ma){var ua;for(;ma.qh.Ds;)try{ua=ma.gKc(ma.qh);if(ua)return (ma.qh.Qaa=!1,{value:ua.value,done:!1});}catch(wa){ma.qh.TU=void 0;ma.qh.lfa(wa);}ma.qh.Qaa=!1;if(ma.qh.tP){ua=ma.qh.tP;ma.qh.tP=null;if(ua.Jwc)throw ua.Dtb;return {value:ua.return,done:!0};}return {value:void 0,done:!0};}function Eb(ma){this.next=function(ua){return ma.nca(ua);};this.throw=function(ua){return ma.lfa(ua);};this.return=function(ua){return Db(ma,ua);};this[Symbol.iterator]=function(){return this;};}function Ua(ma,ua){ua=new Eb(new lb(ua));Za && ma.prototype && Za(ua,ma.prototype);return ua;}function eb(ma,ua,wa){if(null == ma)throw new TypeError("The 'this' value for String.prototype." + wa + " must not be null or undefined");if(ua instanceof RegExp)throw new TypeError("First argument to String.prototype." + wa + " must not be a regular expression");return ma + "";}function Wa(ma,ua){return Object.prototype.hasOwnProperty.call(ma,ua);}function ub(ma,ua,wa){var a;ma instanceof String && (ma=String(ma));for(var t=ma.length,b=0;b < t;b++){a=ma[b];if(ua.call(wa,a,b,ma))return {jTa:b,Sfa:a};}return {jTa:-1,Sfa:void 0};}function nb(ma,ua){var wa,t,b;ma instanceof String && (ma+="");wa=0;t=!1;b={next:function(){var a;if(!t && wa < ma.length){a=wa++;return {value:ua(a,ma[a]),done:!1};}t=!0;return {done:!0,value:void 0};}};b[Symbol.iterator]=function(){return b;};return b;}hb="function" == typeof Object.defineProperties?Object.defineProperty:function(ma,ua,wa){if(ma == Array.prototype || ma == Object.prototype)return ma;ma[ua]=wa.value;return ma;};Ha=(function(ma){var wa;ma=["object" == typeof globalThis && globalThis,ma,"object" == typeof Ba && Ba,"object" == typeof self && self,"object" == typeof global && global];for(var ua=0;ua < ma.length;++ua){wa=ma[ua];if(wa && wa.Math == Math)return wa;}throw Error("Cannot find global object");})(this);Ma("Symbol",function(ma){var t;function ua(b){if(this instanceof ua)throw new TypeError("Symbol is not a constructor");return new wa("jscomp_symbol_" + (b || "") + "_" + t++,b);}function wa(b,a){this.MSb=b;hb(this,"description",{configurable:!0,writable:!0,value:a});}if(ma)return ma;wa.prototype.toString=function(){return this.MSb;};t=0;return ua;});Ma("Symbol.iterator",function(ma){var t;if(ma)return ma;ma=Symbol("Symbol.iterator");for(var ua=("Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array").split(" "),wa=0;wa < ua.length;wa++){t=Ha[ua[wa]];"function" === typeof t && "function" != typeof t.prototype[ma] && hb(t.prototype,ma,{configurable:!0,writable:!0,value:function(){return rb(qb(this));}});}return ma;});tb="function" == typeof Object.create?Object.create:function(ma){function ua(){}ua.prototype=ma;return new ua();};Fb=(function(){var ua;function ma(){function wa(){}new wa();Reflect.construct(wa,[],function(){});return new wa() instanceof wa;}if("undefined" != typeof Reflect && Reflect.construct){if(ma())return Reflect.construct;ua=Reflect.construct;return function(wa,t,b){wa=ua(wa,t);b && Reflect.setPrototypeOf(wa,b.prototype);return wa;};}return function(wa,t,b){void 0 === b && (b=wa);b=tb(b.prototype || Object.prototype);return Function.prototype.apply.call(wa,b,t) || b;};})();if("function" == typeof Object.setPrototypeOf)fb=Object.setPrototypeOf;else {a:{Gb={a:!0};vb={};try{vb.__proto__=Gb;fb=vb.a;break a;}catch(ma){}fb=!1;}fb=fb?function(ma,ua){ma.__proto__=ua;if(ma.__proto__ !== ua)throw new TypeError(ma + " is not extensible");return ma;}:null;}Za=fb;ib.prototype.nca=function(ma){this.TU=ma;};ib.prototype.lfa=function(ma){this.tP={Dtb:ma,Jwc:!0};this.Ds=this.LX || this.uub;};ib.prototype.return=function(ma){this.tP={return:ma};this.Ds=this.uub;};lb.prototype.nca=function(ma){jb(this.qh);if(this.qh.DN)return mb(this,this.qh.DN.next,ma,this.qh.nca);this.qh.nca(ma);return db(this);};lb.prototype.lfa=function(ma){jb(this.qh);if(this.qh.DN)return mb(this,this.qh.DN["throw"],ma,this.qh.nca);this.qh.lfa(ma);return db(this);};Ma("Reflect",function(ma){return ma?ma:{};});Ma("Reflect.construct",function(){return Fb;});Ma("Reflect.setPrototypeOf",function(ma){return ma?ma:Za?function(ua,wa){try{return (Za(ua,wa),!0);}catch(t){return !1;}}:null;});Ma("Promise",function(ma){var b,a;function ua(d){var n;this.a2=0;this.Vda=void 0;this.u0=[];this.MAb=!1;n=this.yNa();try{d(n.resolve,n.reject);}catch(c){n.reject(c);}}function wa(){this.eK=null;}function t(d){return d instanceof ua?d:new ua(function(n){n(d);});}if(ma)return ma;wa.prototype.Vmb=function(d){var n;if(null == this.eK){this.eK=[];n=this;this.Wmb(function(){n.wlc();});}this.eK.push(d);};b=Ha.setTimeout;wa.prototype.Wmb=function(d){b(d,0);};wa.prototype.wlc=function(){var d,c;for(;this.eK && this.eK.length;){d=this.eK;this.eK=[];for(var n=0;n < d.length;++n){c=d[n];d[n]=null;try{c();}catch(f){this.e8b(f);}}}this.eK=null;};wa.prototype.e8b=function(d){this.Wmb(function(){throw d;});};ua.prototype.yNa=function(){var n,c;function d(f){return function(g){c || (c=!0,f.call(n,g));};}n=this;c=!1;return {resolve:d(this.oNc),reject:d(this.b_a)};};ua.prototype.oNc=function(d){var n;if(d === this)this.b_a(new TypeError("A Promise cannot resolve to itself"));else if(d instanceof ua)this.rQc(d);else {a:switch(typeof d){case "object":n=null != d;break a;case "function":n=!0;break a;default:n=!1;}n?this.nNc(d):this.uvb(d);}};ua.prototype.nNc=function(d){var n;n=void 0;try{n=d.then;}catch(c){this.b_a(c);return;}"function" == typeof n?this.sQc(n,d):this.uvb(d);};ua.prototype.b_a=function(d){this.fNb(2,d);};ua.prototype.uvb=function(d){this.fNb(1,d);};ua.prototype.fNb=function(d,n){if(0 != this.a2)throw Error("Cannot settle(" + d + ", " + n + "): Promise already settled in state" + this.a2);this.a2=d;this.Vda=n;2 === this.a2 && this.mOc();this.xlc();};ua.prototype.mOc=function(){var d;d=this;b(function(){var n;if(d.cEc()){n=Ha.console;"undefined" !== typeof n && n.error(d.Vda);}},1);};ua.prototype.cEc=function(){var d,n,c;if(this.MAb)return !1;d=Ha.CustomEvent;n=Ha.Event;c=Ha.dispatchEvent;if("undefined" === typeof c)return !0;"function" === typeof d?d=new d("unhandledrejection",{cancelable:!0}):"function" === typeof n?d=new n("unhandledrejection",{cancelable:!0}):(d=Ha.document.createEvent("CustomEvent"),d.initCustomEvent("unhandledrejection",!1,!0,d));d.promise=this;d.reason=this.Vda;return c(d);};ua.prototype.xlc=function(){if(null != this.u0){for(var d=0;d < this.u0.length;++d)a.Vmb(this.u0[d]);this.u0=null;}};a=new wa();ua.prototype.rQc=function(d){var n;n=this.yNa();d.jma(n.resolve,n.reject);};ua.prototype.sQc=function(d,n){var c;c=this.yNa();try{d.call(n,c.resolve,c.reject);}catch(f){c.reject(f);}};ua.prototype.then=function(d,n){var f,g,e;function c(h,k){return "function" == typeof h?function(l){try{f(h(l));}catch(m){g(m);}}:k;}e=new ua(function(h,k){f=h;g=k;});this.jma(c(d,f),c(n,g));return e;};ua.prototype.catch=function(d){return this.then(void 0,d);};ua.prototype.jma=function(d,n){var f;function c(){switch(f.a2){case 1:d(f.Vda);break;case 2:n(f.Vda);break;default:throw Error("Unexpected state: " + f.a2);}}f=this;null == this.u0?a.Vmb(c):this.u0.push(c);this.MAb=!0;};ua.resolve=t;ua.reject=function(d){return new ua(function(n,c){c(d);});};ua.race=function(d){return new ua(function(n,c){for(var f=Ea(d),g=f.next();!g.done;g=f.next())t(g.value).jma(n,c);});};ua.all=function(d){var n,c;n=Ea(d);c=n.next();return c.done?t([]):new ua(function(f,g){var h,k;function e(l){return function(m){h[l]=m;k--;0 == k && f(h);};}h=[];k=0;do (h.push(void 0),k++,t(c.value).jma(e(h.length - 1),g),c=n.next());while(!c.done);});};return ua;});Ma("String.prototype.repeat",function(ma){return ma?ma:function(ua){var wa;wa=eb(this,null,"repeat");if(0 > ua || 1342177279 < ua)throw new RangeError("Invalid count value");ua|=0;for(var t="";ua;)if((ua & 1 && (t+=wa),ua>>>=1))wa+=wa;return t;};});Ma("String.prototype.padEnd",function(ma){return ma?ma:function(ua,wa){var t;t=eb(this,null,"padStart");ua-=t.length;wa=void 0 !== wa?String(wa):" ";wa=0 < ua && wa?wa.repeat(Math.ceil(ua / wa.length)).substring(0,ua):"";return t + wa;};});Ma("Object.values",function(ma){return ma?ma:function(ua){var wa,t;wa=[];for(t in ua)Wa(ua,t) && wa.push(ua[t]);return wa;};});Ma("Object.is",function(ma){return ma?ma:function(ua,wa){return ua === wa?0 !== ua || 1 / ua === 1 / wa:ua !== ua && wa !== wa;};});Ma("Array.prototype.includes",function(ma){return ma?ma:function(ua,wa){var t,b,a;t=this;t instanceof String && (t=String(t));b=t.length;wa=wa || 0;for(0 > wa && (wa=Math.max(wa + b,0));wa < b;wa++){a=t[wa];if(a === ua || Object.is(a,ua))return !0;}return !1;};});Ma("String.prototype.includes",function(ma){return ma?ma:function(ua,wa){return -1 !== eb(this,ua,"includes").indexOf(ua,wa || 0);};});Ma("WeakMap",function(ma){var d,n;function ua(c){this.iaa=(n+=Math.random() + 1).toString();if(c){c=Ea(c);for(var f;!(f=c.next()).done;)(f=f.value,this.set(f[0],f[1]));}}function wa(){}function t(c){var f;f=typeof c;return "object" === f && null !== c || "function" === f;}function b(c){var f;if(!Wa(c,d)){f=new wa();hb(c,d,{value:f});}}function a(c){var f;f=Object[c];f && (Object[c]=function(g){if(g instanceof wa)return g;Object.isExtensible(g) && b(g);return f(g);});}if((function(){var c,f,g;if(!ma || !Object.seal)return !1;try{c=Object.seal({});f=Object.seal({});g=new ma([[c,2],[f,3]]);if(2 != g.get(c) || 3 != g.get(f))return !1;g.delete(c);g.set(f,4);return !g.has(c) && 4 == g.get(f);}catch(e){return !1;}})())return ma;d="$jscomp_hidden_" + Math.random();a("freeze");a("preventExtensions");a("seal");n=0;ua.prototype.set=function(c,f){if(!t(c))throw Error("Invalid WeakMap key");b(c);if(!Wa(c,d))throw Error("WeakMap key fail: " + c);c[d][this.iaa]=f;return this;};ua.prototype.get=function(c){return t(c) && Wa(c,d)?c[d][this.iaa]:void 0;};ua.prototype.has=function(c){return t(c) && Wa(c,d) && Wa(c[d],this.iaa);};ua.prototype.delete=function(c){return t(c) && Wa(c,d) && Wa(c[d],this.iaa)?delete c[d][this.iaa]:!1;};return ua;});Ma("Map",function(ma){var a,d;function ua(){var n;n={};return n.Pq=n.next=n.head=n;}function wa(n,c){var f;f=n.$G;return rb(function(){if(f){for(;f.head != n.$G;)f=f.Pq;for(;f.next != f.head;)return (f=f.next,{done:!1,value:c(f)});f=null;}return {done:!0,value:void 0};});}function t(n,c){var f,g,e;f=c && typeof c;"object" == f || "function" == f?a.has(c)?f=a.get(c):(f="" + ++d,a.set(c,f)):f="p_" + c;g=n.qG[f];if(g && Wa(n.qG,f))for(n=0;n < g.length;n++){e=g[n];if(c !== c && e.key !== e.key || c === e.key)return {id:f,list:g,index:n,entry:e};}return {id:f,list:g,index:-1,entry:void 0};}function b(n){this.qG={};this.$G=ua();this.size=0;if(n){n=Ea(n);for(var c;!(c=n.next()).done;)(c=c.value,this.set(c[0],c[1]));}}if((function(){var n,c,f,g;if(!ma || "function" != typeof ma || !ma.prototype.entries || "function" != typeof Object.seal)return !1;try{n=Object.seal({x:4});c=new ma(Ea([[n,"s"]]));if("s" != c.get(n) || 1 != c.size || c.get({x:4}) || c.set({x:4},"t") != c || 2 != c.size)return !1;f=c.entries();g=f.next();if(g.done || g.value[0] != n || "s" != g.value[1])return !1;g=f.next();return g.done || 4 != g.value[0].x || "t" != g.value[1] || !f.next().done?!1:!0;}catch(e){return !1;}})())return ma;a=new WeakMap();b.prototype.set=function(n,c){var f;n=0 === n?0:n;f=t(this,n);f.list || (f.list=this.qG[f.id]=[]);f.entry?f.entry.value=c:(f.entry={next:this.$G,Pq:this.$G.Pq,head:this.$G,key:n,value:c},f.list.push(f.entry),this.$G.Pq.next=f.entry,this.$G.Pq=f.entry,this.size++);return this;};b.prototype.delete=function(n){n=t(this,n);return n.entry && n.list?(n.list.splice(n.index,1),n.list.length || delete this.qG[n.id],n.entry.Pq.next=n.entry.next,n.entry.next.Pq=n.entry.Pq,n.entry.head=null,this.size--,!0):!1;};b.prototype.clear=function(){this.qG={};this.$G=this.$G.Pq=ua();this.size=0;};b.prototype.has=function(n){return !!t(this,n).entry;};b.prototype.get=function(n){return (n=t(this,n).entry) && n.value;};b.prototype.entries=function(){return wa(this,function(n){return [n.key,n.value];});};b.prototype.keys=function(){return wa(this,function(n){return n.key;});};b.prototype.values=function(){return wa(this,function(n){return n.value;});};b.prototype.forEach=function(n,c){for(var f=this.entries(),g;!(g=f.next()).done;)(g=g.value,n.call(c,g[1],g[0],this));};b.prototype[Symbol.iterator]=b.prototype.entries;d=0;return b;});Ma("Set",function(ma){function ua(wa){this.zD=new Map();if(wa){wa=Ea(wa);for(var t;!(t=wa.next()).done;)this.add(t.value);}this.size=this.zD.size;}if((function(){var wa,t,b,a;if(!ma || "function" != typeof ma || !ma.prototype.entries || "function" != typeof Object.seal)return !1;try{wa=Object.seal({x:4});t=new ma(Ea([wa]));if(!t.has(wa) || 1 != t.size || t.add(wa) != t || 1 != t.size || t.add({x:4}) != t || 2 != t.size)return !1;b=t.entries();a=b.next();if(a.done || a.value[0] != wa || a.value[1] != wa)return !1;a=b.next();return a.done || a.value[0] == wa || 4 != a.value[0].x || a.value[1] != a.value[0]?!1:b.next().done;}catch(d){return !1;}})())return ma;ua.prototype.add=function(wa){wa=0 === wa?0:wa;this.zD.set(wa,wa);this.size=this.zD.size;return this;};ua.prototype.delete=function(wa){wa=this.zD.delete(wa);this.size=this.zD.size;return wa;};ua.prototype.clear=function(){this.zD.clear();this.size=0;};ua.prototype.has=function(wa){return this.zD.has(wa);};ua.prototype.entries=function(){return this.zD.entries();};ua.prototype.values=function(){return this.zD.values();};ua.prototype.keys=ua.prototype.values;ua.prototype[Symbol.iterator]=ua.prototype.values;ua.prototype.forEach=function(wa,t){var b;b=this;this.zD.forEach(function(a){return wa.call(t,a,a,b);});};return ua;});Ma("Array.prototype.find",function(ma){return ma?ma:function(ua,wa){return ub(this,ua,wa).Sfa;};});Ma("Number.isFinite",function(ma){return ma?ma:function(ua){return "number" !== typeof ua?!1:!isNaN(ua) && Infinity !== ua && -Infinity !== ua;};});Hb="function" == typeof Object.assign?Object.assign:function(ma,ua){var t;for(var wa=1;wa < arguments.length;wa++){t=arguments[wa];if(t)for(var b in t)Wa(t,b) && (ma[b]=t[b]);}return ma;};Ma("Object.assign",function(ma){return ma || Hb;});Ma("Object.entries",function(ma){return ma?ma:function(ua){var wa,t;wa=[];for(t in ua)Wa(ua,t) && wa.push([t,ua[t]]);return wa;};});Ma("Array.prototype.keys",function(ma){return ma?ma:function(){return nb(this,function(ua){return ua;});};});Ma("Array.prototype.entries",function(ma){return ma?ma:function(){return nb(this,function(ua,wa){return [ua,wa];});};});Ma("Array.prototype.findIndex",function(ma){return ma?ma:function(ua,wa){return ub(this,ua,wa).jTa;};});Ma("Promise.prototype.finally",function(ma){return ma?ma:function(ua){return this.then(function(wa){return Promise.resolve(ua()).then(function(){return wa;});},function(wa){return Promise.resolve(ua()).then(function(){throw wa;});});};});Ma("Number.parseInt",function(ma){return ma || parseInt;});Ma("String.prototype.startsWith",function(ma){return ma?ma:function(ua,wa){var t,b,a;t=eb(this,ua,"startsWith");ua+="";b=t.length;a=ua.length;wa=Math.max(0,Math.min(wa | 0,t.length));for(var d=0;d < a && wa < b;)if(t[wa++] != ua[d++])return !1;return d >= a;};});Ma("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991;});Ma("Array.prototype.values",function(ma){return ma?ma:function(){return nb(this,function(ua,wa){return wa;});};});Ma("String.prototype.endsWith",function(ma){return ma?ma:function(ua,wa){var t;t=eb(this,ua,"endsWith");ua+="";void 0 === wa && (wa=t.length);wa=Math.max(0,Math.min(wa | 0,t.length));for(var b=ua.length;0 < b && 0 < wa;)if(t[--wa] != ua[--b])return !1;return 0 >= b;};});Ma("Array.from",function(ma){return ma?ma:function(ua,wa,t){var b,a;wa=null != wa?wa:function(n){return n;};b=[];a="undefined" != typeof Symbol && Symbol.iterator && ua[Symbol.iterator];if("function" == typeof a){ua=a.call(ua);for(var d=0;!(a=ua.next()).done;)b.push(wa.call(t,a.value,d++));}else for((a=ua.length,d=0);d < a;d++)b.push(wa.call(t,ua[d],d));return b;};});Ma("Number.isNaN",function(ma){return ma?ma:function(ua){return "number" === typeof ua && isNaN(ua);};});Ma("globalThis",function(ma){return ma || Ha;});Ma("Reflect.apply",function(ma){var ua;if(ma)return ma;ua=Function.prototype.apply;return function(wa,t,b){return ua.call(wa,t,b);};});Ma("Object.getOwnPropertySymbols",function(ma){return ma?ma:function(){return [];};});Ma("Reflect.getPrototypeOf",function(ma){return ma || Object.getPrototypeOf;});Ma("Math.tanh",function(ma){return ma?ma:function(ua){var wa;ua=Number(ua);if(0 === ua)return ua;wa=Math.exp(-2 * Math.abs(ua));wa=(1 - wa) / (1 + wa);return 0 > ua?-wa:wa;};});Ma("String.fromCodePoint",function(ma){return ma?ma:function(ua){var b;for(var wa="",t=0;t < arguments.length;t++){b=Number(arguments[t]);if(0 > b || 1114111 < b || b !== Math.floor(b))throw new RangeError("invalid_code_point " + b);65535 >= b?wa+=String.fromCharCode(b):(b-=65536,wa+=String.fromCharCode(b >>> 10 & 1023 | 55296),wa+=String.fromCharCode(b & 1023 | 56320));}return wa;};});Ma("Object.setPrototypeOf",function(ma){return ma || Za;});(function(){var ua,wa;function ma(t){var b;b=wa[t];if(void 0 !== b)return b.exports;b=wa[t]={exports:{}};ua[t].call(b.exports,b,b.exports,ma);return b.exports;}ua={99061:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});},35097:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.V4a=void 0;d=a(22970);t=(function(n){function c(){return n.call(this,Ba.crypto) || this;}d.__extends(c,n);return c;})(a(14362).W4a);b.V4a=t;},14362:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.W4a=void 0;d=a(22970);n=a(78212);c=["encrypt","decrypt"];f={name:"HMAC",hash:{name:"SHA-256"}};g={name:"RSA-OAEP"};t=(function(){function e(h){this.webCrypto=h;this.HI=this.webCrypto.subtle;}e.prototype.Wnc=function(){throw Error("not implemented");};e.prototype.Ohc=function(){throw Error("not implemented");};e.prototype.getRandomValues=function(h){h=new Uint8Array(h);return this.webCrypto.getRandomValues(h);};e.prototype.Bob=function(h,k){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){if("AES-CBC" !== h.algorithm)throw Error("mismatched key algorithm");if("secret" !== h.gB.type)throw Error("invalid platformKey");if(16 !== k.byteLength)throw Error("iv wrong size");return [2];});});};e.fqb=function(h){return {name:"AES-CBC",iv:h};};e.prototype.I6b=function(h,k,l){return d.__awaiter(this,void 0,void 0,function(){var m;return d.__generator(this,function(p){switch(p.label){case 0:return [4,this.Bob(h,k)];case 1:return (p.T(),[4,this.HI.encrypt(e.fqb(k),h.gB,l)]);case 2:return (m=p.T(),[2,new Uint8Array(m)]);}});});};e.prototype.H6b=function(h,k,l){return d.__awaiter(this,void 0,void 0,function(){var m;return d.__generator(this,function(p){switch(p.label){case 0:return [4,this.Bob(h,k)];case 1:return (p.T(),[4,this.HI.decrypt(e.fqb(k),h.gB,l)]);case 2:return (m=p.T(),[2,new Uint8Array(m)]);}});});};e.prototype.Cob=function(h,k){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){if("AES-GCM" !== h.algorithm)throw Error("mismatched key algorithm");if("secret" !== h.gB.type)throw Error("invalid platformKey");if(12 !== k.byteLength)throw Error("iv wrong size");return [2,Promise.resolve()];});});};e.gqb=function(h,k){return {name:"AES-GCM",iv:h,additionalData:k,tagLength:128};};e.prototype.K6b=function(h,k,l,m){return d.__awaiter(this,void 0,void 0,function(){var p;return d.__generator(this,function(r){switch(r.label){case 0:return [4,this.Cob(h,k)];case 1:return (r.T(),[4,this.HI.encrypt(e.gqb(k,l),h.gB,m)]);case 2:return (p=r.T(),[2,new Uint8Array(p)]);}});});};e.prototype.J6b=function(h,k,l,m){return d.__awaiter(this,void 0,void 0,function(){var p;return d.__generator(this,function(r){switch(r.label){case 0:return [4,this.Cob(h,k)];case 1:r.T();if(16 > m.byteLength)throw Error("ciphertext too short");return [4,this.HI.decrypt(e.gqb(k,l),h.gB,m)];case 2:return (p=r.T(),[2,new Uint8Array(p)]);}});});};e.prototype.Oac=function(h){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){if("HMAC-SHA256" !== h.algorithm)throw Error("mismatched key algorithm");if("secret" !== h.gB.type)throw Error("invalid platformKey");return [2,Promise.resolve()];});});};e.prototype.Huc=function(h,k){return d.__awaiter(this,void 0,void 0,function(){var l;return d.__generator(this,function(m){switch(m.label){case 0:return [4,this.Oac(h)];case 1:return (m.T(),[4,this.HI.sign(f,h.gB,k)]);case 2:return (l=m.T(),[2,new Uint8Array(l)]);}});});};e.prototype.rTa=function(h,k){return d.__awaiter(this,void 0,void 0,function(){var l,m,p,r;return d.__generator(this,function(q){switch(q.label){case 0:l=k.byteLength;switch(h){case "AES-GCM":m={name:"AES-GCM"};p=c;if(16 !== l)throw Error("invalid import key length");break;case "AES-CBC":m={name:"AES-CBC"};p=c;if(16 !== l)throw Error("invalid import key length");break;case "HMAC-SHA256":m=f;p=["sign","verify"];if(16 !== l && 32 !== l)throw Error("invalid import key length");break;default:throw Error("invalid import algorithm");}return [4,this.HI.importKey("raw",k,m,!1,p)];case 1:return (r=q.T(),[2,n.uga.cY(h,r)]);}});});};e.prototype.aoc=function(){return d.__awaiter(this,void 0,void 0,function(){var h,k,l,m;return d.__generator(this,function(p){switch(p.label){case 0:return (h={name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}},[4,this.HI.generateKey(h,!1,c)]);case 1:return (k=p.T(),l=n.uga.$X("RSA-OAEP",k.privateKey),m=n.uga.aY("RSA-OAEP",k.publicKey),[2,new n.X4a(l,m)]);}});});};e.prototype.Qtb=function(h){return d.__awaiter(this,void 0,void 0,function(){var k,l;return d.__generator(this,function(m){switch(m.label){case 0:if("RSA-OAEP" !== h.algorithm)throw Error("invalid export key algorithm");k=h.publicKey.gB;if("public" !== k.type)throw Error("invalid export key type");return [4,this.HI.exportKey("spki",k)];case 1:return (l=m.T(),[2,new Uint8Array(l)]);}});});};e.prototype.Zac=function(h){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){if("RSA-OAEP" !== h.algorithm)throw Error("mismatched key algorithm");if("private" !== h.gB.type)throw Error("invalid platformKey");return [2,Promise.resolve()];});});};e.prototype.PNc=function(h,k){return d.__awaiter(this,void 0,void 0,function(){var l;return d.__generator(this,function(m){switch(m.label){case 0:return [4,this.Zac(h)];case 1:return (m.T(),[4,this.HI.decrypt(g,h.gB,k)]);case 2:return (l=m.T(),[2,new Uint8Array(l)]);}});});};return e;})();b.W4a=t;},78212:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.X4a=b.uga=b.Y4a=b.S4a=void 0;(function(a){a.AES_GCM="AES-GCM";a.AES_CBC="AES-CBC";a.HMAC_SHA256="HMAC-SHA256";a.RSA_OAEP="RSA-OAEP";a.DIFFIE_HELLMAN="DIFFIE-HELLMAN";a.DERIVE="DERIVE";})(b.S4a || (b.S4a={}));(function(a){a[a.SECRET=0]="SECRET";a[a.PRIVATE=1]="PRIVATE";a[a.PUBLIC=2]="PUBLIC";})(b.Y4a || (b.Y4a={}));b.uga=(function(){function a(d,n,c){this.algorithm=d;this.gB=n;this.type=c;}a.cY=function(d,n){if("RSA-OAEP" === d || "DIFFIE-HELLMAN" === d)throw Error("incompatible algorithm for secret key");return new a(d,n,0);};a.$X=function(d,n){if("RSA-OAEP" !== d && "DIFFIE-HELLMAN" !== d)throw Error("incompatible algorithm for private key");return new a(d,n,1);};a.aY=function(d,n){if("RSA-OAEP" !== d && "DIFFIE-HELLMAN" !== d)throw Error("incompatible algorithm for public key");return new a(d,n,2);};return a;})();b.X4a=(function(){return function(a,d){if(1 !== a.type)throw Error("wrong key type for private key");if(2 !== d.type)throw Error("wrong key type for public key");if(a.algorithm !== d.algorithm)throw Error("algorithm mismatch between public and private key");this.algorithm=a.algorithm;this.privateKey=a;this.publicKey=d;};})();},7379:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperty(b,"__esModule",{value:!0});b.Z4a=void 0;d=a(22970);n=a(84032);c=a(20408);f=a(2802);g=a(31178);e=a(80462);h=a(11038);k=a(12346);t=(function(){function l(m){l.pOc(m);switch(m.keyx){case f.AleKeyxScheme.CLEAR:this.fra=new g.cab(m.crypto,m.mg,m.scheme);break;case f.AleKeyxScheme.RSA_OAEP_256:this.fra=new h.eab(m.crypto,m.mg,m.scheme);break;case f.AleKeyxScheme.AUTH_DH:if(!m.ij || !m.nOa)throw Error("missing config for AUTH-DH keyx scheme");this.fra=new k.bab(m.crypto,m.mg,m.ij,m.nOa);break;default:throw Error("unsupported key exchange scheme");}this.config=d.__assign({},m);}l.pOc=function(m){if(m.scheme === f.AleScheme.A128CBC_HS256_NRD && m.keyx !== f.AleKeyxScheme.AUTH_DH || m.keyx === f.AleKeyxScheme.AUTH_DH && m.scheme !== f.AleScheme.A128CBC_HS256_NRD)throw Error("ALE scheme and Keyx scheme are incompatible");};l.prototype.Rrc=function(){return d.__awaiter(this,void 0,void 0,function(){var m,p;return d.__generator(this,function(r){switch(r.label){case 0:return (p={ver:e.vdb,scheme:this.config.scheme,type:this.config.Qpb},[4,this.fra.pRa()]);case 1:return (m=(p.keyx=r.T(),p),[2,JSON.stringify(m)]);}});});};l.prototype.createSession=function(m){return d.__awaiter(this,void 0,void 0,function(){var p,r,q,u,v;return d.__generator(this,function(w){switch(w.label){case 0:p=(0,c.jHb)(m);if(p.ver !== c.wdb)throw Error("incompatible provisioning response version");if(p.scheme !== this.config.scheme)throw Error("inconsistent scheme in provisioning response");if(p.keyx.scheme !== this.config.keyx)throw Error("inconsistent keyx scheme in provisioning response");return [4,this.fra.rZa(p.keyx)];case 1:return (r=w.T(),q=new Date(),q.setSeconds(q.getSeconds() + p.ttl),u=void 0 === p.rw?this.tcc(p.ttl):p.rw,v=new Date(q.getTime()),v.setSeconds(v.getSeconds() - u),[2,new n.$4a(p.token,q,v,r,this.config.mg)]);}});});};l.prototype.tcc=function(m){return Math.min(Math.floor(m / 3),86400);};return l;})();b.Z4a=t;},84032:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.$4a=void 0;d=a(22970);t=(function(){function n(c,f,g,e,h){this.token=c;this.kla=e;this.mg=h;c=new Date();this.joa=f < c?c:f;this.pva=g < c?c:g;this.pva=this.pva > this.joa?this.joa:this.pva;}n.prototype.decrypt=function(c){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){this.ioa();return [2,this.kla.decrypt(c)];});});};n.prototype.ehc=function(c){return d.__awaiter(this,void 0,void 0,function(){var f;return d.__generator(this,function(g){switch(g.label){case 0:return (this.ioa(),[4,this.kla.decrypt(c)]);case 1:return (f=g.T(),[2,this.mg.J3a(f)]);}});});};n.prototype.encrypt=function(c){return d.__awaiter(this,void 0,void 0,function(){var f;return d.__generator(this,function(){this.ioa();f="string" === typeof c?this.mg.Tea(c):c;return [2,this.kla.encrypt(f)];});});};n.prototype.ioa=function(){if(this.wAb(this.joa))throw Error("session expired");};n.prototype.Nkc=function(c){return d.__awaiter(this,void 0,void 0,function(){var f;return d.__generator(this,function(){this.ioa();f=this.mg.Tea(c);return [2,this.kla.encrypt(f)];});});};n.prototype.tk=function(){return this.joa;};n.prototype.xea=function(){return this.wAb(this.pva);};n.prototype.wAb=function(c){var f;f=new Date().getTime();c=c.getTime();return 1E3 >= Math.abs(f - c) || f >= c;};return n;})();b.$4a=t;},1084:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.fX=void 0;b.fX=function(a,d,n){return a.slice?a.slice(d,n):new Uint8Array(a.buffer.slice(d || 0,n || a.buffer.byteLength));};},49217:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.a5a=void 0;t=(function(){function a(){}a.prototype.Tea=function(d){return new TextEncoder().encode(d);};a.prototype.J3a=function(d){return new TextDecoder().decode(d);};a.prototype.zX=function(d){return btoa(String.fromCharCode.apply(null,d)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"");};a.prototype.EP=function(d){d=d.replace(/-/g,"+").replace(/_/g,"/").padEnd(d.length + (4 - d.length % 4) % 4,"=");d=atob(d);for(var n=d.length,c=new Uint8Array(n),f=0;f < n;f++)c[f]=d.charCodeAt(f);return c;};return a;})();b.a5a=t;},44191:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.fCa=void 0;d=a(22970);t=(function(){function n(c,f,g,e,h){this.n2a="";this.crypto=f;this.mg=g;this.enc=c.toString();this.kid=e;this.lBb=h;}n.prototype.encrypt=function(c){return d.__awaiter(this,void 0,void 0,function(){var f,g,e,h,k,l,m,p,r;return d.__generator(this,function(q){switch(q.label){case 0:return (f=this.nqc(),g=this.crypto.getRandomValues(this.lBb),e=this.mg.zX(g),h=this.mg.Tea(f),[4,this.usb(c,h,g)]);case 1:return (k=q.T(),l=k.iG,m=k.tag,p=this.mg.zX(l),r=this.mg.zX(m),[2,f + ".." + e + "." + p + "." + r]);}});});};n.prototype.decrypt=function(c){return d.__awaiter(this,void 0,void 0,function(){var f,g,e,h,k,l,m,p,r;return d.__generator(this,function(q){switch(q.label){case 0:if(!c.length)throw Error("empty input");f=c.split(".");if(5 !== f.length)throw Error("malformed JWE envelope");if(0 !== f[1].length)throw Error("expected no CEK");g=this.mg.Tea(f[0]);e=this.mg.EP(f[2]);h=this.mg.EP(f[3]);k=this.mg.EP(f[4]);if(e.byteLength !== this.lBb)throw Error("iv wrong length");if(16 !== k.byteLength)throw Error("tag wrong length");return [4,this.tsb(e,g,h,k)];case 1:return (l=q.T(),m=this.mg.J3a(g),p=this.mg.EP(m),r=this.mg.J3a(p),this.OGc(r),[2,l]);}});});};n.prototype.OGc=function(c){var f;try{f=JSON.parse(c);}catch(g){throw Error("malformed JWE header");}if(!n.Uwc(f))throw Error("unexpected JWE header contents");c=f;if("dir" !== c.alg || c.enc !== this.enc)throw Error("incompatible JWE header");if(c.kid !== this.kid)throw Error("mismatched kid");};n.prototype.nob=function(c){var f,h;if(!c.length)return new Uint8Array();f=c.reduce(function(k,l){return k + l.length;},0);f=new Uint8Array(f);for(var g=0,e=0;e < c.length;e++){h=c[e];f.set(h,g);g+=h.length;}return f;};n.prototype.nqc=function(){var c;c=this.mqc();c=this.mg.Tea(c);return this.mg.zX(c);};n.prototype.mqc=function(){var c;if("" !== this.n2a){c=this.n2a;this.n2a="";return c;}return JSON.stringify({alg:"dir",enc:this.enc,kid:this.kid});};n.Uwc=function(c){return ("alg" in c) && ("enc" in c) && ("kid" in c) && "string" === typeof c.alg && "string" === typeof c.enc && "string" === typeof c.kid;};return n;})();b.fCa=t;},88501:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.Q4=void 0;d=a(22970);t=a(44191);n=a(1084);a=(function(c){function f(g,e,h,k,l,m){g=c.call(this,g,e,h,k,16) || this;if("AES-CBC" !== l.algorithm)throw Error("invalid AES-CBC key");if("HMAC-SHA256" !== m.algorithm)throw Error("invalid HMAC-SHA256 key");g.$Oa=l;g.ZK=m;return g;}d.__extends(f,c);f.prototype.usb=function(g,e,h){return d.__awaiter(this,void 0,void 0,function(){var k,l;return d.__generator(this,function(m){switch(m.label){case 0:return (m.tc.push([0,2,,3]),[4,this.crypto.I6b(this.$Oa,h,g)]);case 1:return (k=m.T(),[3,3]);case 2:throw (m.T(),Error("Internal encrypt error: Cipher job failed"));case 3:return [4,this.Kpb(e,h,k)];case 4:return (l=m.T(),[2,{iG:k,tag:l}]);}});});};f.prototype.tsb=function(g,e,h,k){return d.__awaiter(this,void 0,void 0,function(){var l;return d.__generator(this,function(m){switch(m.label){case 0:return [4,this.Kpb(e,g,h)];case 1:l=m.T();if(!this.hVc(k,l))throw Error("JWE is untrusted");m.label=2;case 2:return (m.tc.push([2,4,,5]),[4,this.crypto.H6b(this.$Oa,g,h)]);case 3:return [2,m.T()];case 4:throw (m.T(),Error("Internal decrypt error: Cipher job failed"));case 5:return [2];}});});};f.prototype.Kpb=function(g,e,h){return d.__awaiter(this,void 0,void 0,function(){var k,l;return d.__generator(this,function(m){switch(m.label){case 0:(k=this.rcc(g,e,h),m.label=1);case 1:return (m.tc.push([1,3,,4]),[4,this.crypto.Huc(this.ZK,k)]);case 2:return (l=m.T(),[3,4]);case 3:throw (m.T(),Error(f.yha));case 4:return [2,(0,n.fX)(l,0,16)];}});});};f.prototype.rcc=function(g,e,h){var k;k=this.rUc((8 * g.byteLength).valueOf());return this.nob([g,e,h,k]);};f.prototype.rUc=function(g){var e;e=new ArrayBuffer(8);e=new DataView(e);e.setUint32(4,g);e.setUint32(0,0);return new Uint8Array(e.buffer);};f.prototype.hVc=function(g,e){var h;h=!0;g.length !== e.length && (h=!1);for(var k=0;k < g.length;k++)g[k] !== e[k] && (h=!1);return h;};f.yha="Internal hmac error: Cipher job failed";f.E9a="invalid HMAC key";return f;})(t.fCa);b.Q4=a;},36045:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.T$a=void 0;d=a(22970);n=a(88501);c=a(2802);t=(function(f){function g(e,h,k,l,m){return f.call(this,c.AleScheme.A128CBC_HS256,e,h,k,l,m) || this;}d.__extends(g,f);g.create=function(e,h,k,l,m){if("HMAC-SHA256" !== m.algorithm)throw Error(n.Q4.E9a);return new g(e,h,k,l,m);};return g;})(n.Q4);b.T$a=t;},1101:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.U$a=void 0;d=a(22970);n=a(88501);c=a(2802);t=(function(f){function g(e,h,k,l,m){return f.call(this,c.AleScheme.A128CBC_HS256_NRD,e,h,k,l,m) || this;}d.__extends(g,f);g.create=function(e,h,k,l,m){if("HMAC-SHA256" !== m.algorithm)throw Error(n.Q4.E9a);return new g(e,h,k,l,m);};return g;})(n.Q4);b.U$a=t;},51708:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.V$a=void 0;d=a(22970);t=a(44191);n=a(1084);c=a(2802);a=(function(f){function g(e,h,k,l){e=f.call(this,c.AleScheme.A128GCM,e,h,k,12) || this;e.key=l;return e;}d.__extends(g,f);g.create=function(e,h,k,l){if("AES-GCM" !== l.algorithm)throw Error("invalid AES-GCM key");return new g(e,h,k,l);};g.prototype.usb=function(e,h,k){return d.__awaiter(this,void 0,void 0,function(){var l,m,p,r;return d.__generator(this,function(q){switch(q.label){case 0:return (q.tc.push([0,2,,3]),[4,this.crypto.K6b(this.key,k,h,e)]);case 1:return (l=q.T(),[3,3]);case 2:throw (q.T(),Error("Internal encrypt error: Cipher job failed"));case 3:return (m=l.byteLength - 16,p=(0,n.fX)(l,0,m),r=(0,n.fX)(l,m),[2,{iG:p,tag:r}]);}});});};g.prototype.tsb=function(e,h,k,l){return d.__awaiter(this,void 0,void 0,function(){var m;return d.__generator(this,function(p){switch(p.label){case 0:(m=this.nob([k,l]),p.label=1);case 1:return (p.tc.push([1,3,,4]),[4,this.crypto.J6b(this.key,e,h,m)]);case 2:return [2,p.T()];case 3:throw (p.T(),Error("Internal decrypt error: Cipher job failed"));case 4:return [2];}});});};return g;})(t.fCa);b.V$a=a;},56707:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.Mha=void 0;d=a(22970);n=a(2802);c=a(1084);f=a(51708);g=a(36045);t=(function(){function e(h,k,l,m){this.crypto=k;this.mg=l;this.FKa=m;}e.prototype.qqb=function(h,k){return d.__awaiter(this,void 0,void 0,function(){var l,m,p,r,q,u;return d.__generator(this,function(v){switch(v.label){case 0:l=this.FKa;switch(l){case n.AleScheme.A128GCM:return [3,1];case n.AleScheme.A128CBC_HS256:return [3,3];}return [3,6];case 1:if(16 !== h.byteLength)throw Error("bad key size for " + this.FKa.toString());return [4,this.crypto.rTa("AES-GCM",h)];case 2:return (m=v.T(),[2,f.V$a.create(this.crypto,this.mg,k,m)]);case 3:if(32 !== h.byteLength)throw Error("bad key size for " + this.FKa.toString());p=(0,c.fX)(h,16);r=(0,c.fX)(h,0,16);return [4,this.crypto.rTa("AES-CBC",p)];case 4:return (q=v.T(),[4,this.crypto.rTa("HMAC-SHA256",r)]);case 5:return (u=v.T(),[2,g.T$a.create(this.crypto,this.mg,k,q,u)]);case 6:throw Error("invalid ALE scheme");case 7:return [2];}});});};return e;})();b.Mha=t;},12346:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.bab=b.fha=void 0;d=a(22970);n=a(2802);t=a(56707);c=a(1101);(function(g){g[g.PSK=0]="PSK";g[g.MGK=1]="MGK";})(f=b.fha || (b.fha={}));a=(function(g){function e(h,k,l,m){h=g.call(this,n.AleKeyxScheme.AUTH_DH,h,k,n.AleScheme.A128CBC_HS256_NRD) || this;h.dic=l;h.nOa=m;return h;}d.__extends(e,g);e.prototype.pRa=function(){return d.__awaiter(this,void 0,void 0,function(){var h,k,l;return d.__generator(this,function(m){switch(m.label){case 0:return (h=this,[4,this.crypto.Wnc()]);case 1:return (h.wL=m.T(),[4,this.crypto.Qtb(this.wL)]);case 2:return (k=m.T(),this.wKc=this.mg.zX(k),l={scheme:n.AleKeyxScheme.AUTH_DH,data:{zad:this.dic,jJb:this.wKc}},this.kya?(l.data.QL=n.i3.KHa,l.data.kya=this.kya):l.data.QL=this.nOa === f.xdb?n.i3.xdb:n.i3.g1c,[2,l]);}});});};e.prototype.rZa=function(h){return d.__awaiter(this,void 0,void 0,function(){var k,l,m,p,r;return d.__generator(this,function(q){switch(q.label){case 0:if(!this.wL)throw Error("no key pair, did not call getKeyxRequestData()");if(h.scheme !== n.AleKeyxScheme.AUTH_DH)throw Error("incompatible key response scheme");k=h.kid;if(!e.jwc(h.data))throw Error("invalid key response data");l=h.data;m=l.kya;p=l.jJb;this.mg.EP(p);return [4,this.crypto.Ohc()];case 1:return (r=q.T(),this.kya=m,[2,c.U$a.create(this.crypto,this.mg,k,r.$Oa,r.ZK)]);}});});};e.jwc=function(h){return "object" === typeof h && ("wrapdata" in h) && "string" === typeof h.wrapdata && ("pubkey" in h) && "string" === typeof h.pubkey;};return e;})(t.Mha);b.bab=a;},31178:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.cab=void 0;d=a(22970);n=a(2802);t=(function(c){function f(g,e,h){return c.call(this,n.AleKeyxScheme.CLEAR,g,e,h) || this;}d.__extends(f,c);f.prototype.pRa=function(){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){return [2,{scheme:n.AleKeyxScheme.CLEAR}];});});};f.prototype.rZa=function(g){return d.__awaiter(this,void 0,void 0,function(){var e,h,k,l;return d.__generator(this,function(){if(g.scheme !== n.AleKeyxScheme.CLEAR)throw Error("incompatible key response scheme");e=g.kid;if(!f.wwc(g.data))throw Error("incompatible key response data");h=g.data;k=h.key;l=this.mg.EP(k);return [2,this.qqb(l,e)];});});};f.wwc=function(g){return "object" === typeof g && ("key" in g) && "string" === typeof g.key;};return f;})(a(56707).Mha);b.cab=t;},11038:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.eab=void 0;d=a(22970);n=a(2802);t=(function(c){function f(g,e,h){return c.call(this,n.AleKeyxScheme.RSA_OAEP_256,g,e,h) || this;}d.__extends(f,c);f.prototype.Dxb=function(){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(g){switch(g.label){case 0:return [4,this.Tb()];case 1:return (g.T(),[2,this.wL.publicKey]);}});});};f.prototype.pRa=function(){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(g){switch(g.label){case 0:return [4,this.Tb()];case 1:return (g.T(),[2,{scheme:n.AleKeyxScheme.RSA_OAEP_256,data:{jJb:this.kJb}}]);}});});};f.prototype.rZa=function(g){return d.__awaiter(this,void 0,void 0,function(){var e,h,k,l,m;return d.__generator(this,function(p){switch(p.label){case 0:if(g.scheme !== n.AleKeyxScheme.RSA_OAEP_256)throw Error("incompatible key response scheme");e=g.kid;if(!f.rxc(g.data))throw Error("incompatible key response data");h=g.data;k=h.Ned;l=this.mg.EP(k);if(!this.wL)throw Error("no key pair");return [4,this.crypto.PNc(this.wL.privateKey,l)];case 1:return (m=p.T(),[2,this.qqb(m,e)]);}});});};f.prototype.Tb=function(){return d.__awaiter(this,void 0,void 0,function(){var g,e;return d.__generator(this,function(h){switch(h.label){case 0:if(this.wL && this.kJb)return [3,3];g=this;return [4,this.crypto.aoc()];case 1:return (g.wL=h.T(),[4,this.crypto.Qtb(this.wL)]);case 2:(e=h.T(),this.kJb=this.mg.zX(e),h.label=3);case 3:return [2];}});});};f.rxc=function(g){return "object" === typeof g && ("wrappedkey" in g) && "string" === typeof g.wrappedkey;};return f;})(a(56707).Mha);b.eab=t;},80462:function(t,b,a){var n;function d(c){return "object" === typeof c && ("scheme" in c) && (0,n.STa)(c.scheme) && (!(("data" in c)) || "object" === typeof c.data);}Object.defineProperty(b,"__esModule",{value:!0});b.Wwc=b.Vwc=b.vdb=void 0;n=a(2802);b.vdb=1;b.Vwc=function(c){return "object" === typeof c && ("ver" in c) && ("scheme" in c) && ("type" in c) && ("keyx" in c) && (0,n.TTa)(c.scheme) && "string" == typeof c.type && d(c.keyx);};b.Wwc=d;},20408:function(t,b,a){var n;function d(c){return "object" === typeof c && ("scheme" in c) && ("data" in c) && ("kid" in c) && (0,n.STa)(c.scheme) && "string" === typeof c.kid && "object" === typeof c.data;}Object.defineProperty(b,"__esModule",{value:!0});b.jHb=b.Xwc=b.wdb=void 0;n=a(2802);b.wdb=1;b.Xwc=d;b.jHb=function(c){var f;try{f=JSON.parse(c);}catch(g){throw Error("malformed JSON");}c=f;if(!("object" === typeof c && ("token" in c) && ("scheme" in c) && ("ttl" in c) && ("keyx" in c) && ("ver" in c) && "string" === typeof c.token && (0,n.TTa)(c.scheme) && "number" === typeof c.ttl) || void 0 !== c.rw && "number" !== typeof c.rw || "object" !== typeof c.keyx || !d(c.keyx) || "number" !== typeof c.ver)throw Error("unexpected key provision response contents");return f;};},2802:function(t,b){var d;function a(n){return function(c){return -1 !== Object.values(n).indexOf(c);};}Object.defineProperty(b,"__esModule",{value:!0});b.STa=b.TTa=b.i3=b.AleKeyxScheme=b.AleScheme=void 0;(function(n){n.A128GCM="A128GCM";n.A128CBC_HS256="A128CBC-HS256";n.A128CBC_HS256_NRD="A128CBC-HS256-NRD";})(t=b.AleScheme || (b.AleScheme={}));(function(n){n.CLEAR="CLEAR";n.RSA_OAEP_256="RSA-OAEP-256";n.AUTH_DH="AUTH-DH";n.WIDEVINE="WIDEVINE";})(d=b.AleKeyxScheme || (b.AleKeyxScheme={}));(function(n){n.PSK="PSK";n.MGK="MGK";n.WRAP="WRAP";})(b.i3 || (b.i3={}));b.TTa=a(t);b.STa=a(d);},73608:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.fha=void 0;t=a(22970);t.__exportStar(a(99061),b);t.__exportStar(a(78212),b);t.__exportStar(a(7379),b);t.__exportStar(a(84032),b);t.__exportStar(a(1084),b);t.__exportStar(a(2802),b);d=a(12346);Object.defineProperty(b,"DeviceKeyType",{enumerable:!0,get:function(){return d.fha;}});},97685:function(t,b){var f,g;function a(){return "UNKNOWN";}function d(){}function n(){return Promise.resolve();}function c(e){var l;if(!Array.isArray(e))return e;for(var h={},k=0;k < e.length;k++){l=e[k];h[l]=l;}return h;}Object.defineProperty(b,Symbol.toStringTag,{value:"Module"});t=c(["MANUAL_TEST","INTEGRATION_TEST","SIMULATION","CUSTOMER"]);f=c(("AUTHENTICATED_AWAITING_OPEN CLOSED CONNECTING_AWAITING_TOKEN OPEN_AWAITING_TOKEN ERRORED READY UNAVAILABLE").split(" "));g={kLa:n,connect:n,close:n,enable:d,v7c:d,log:d,Vcd:d,ldd:d,$9c:!1,a$c:!1,state:"UNAVAILABLE"};b.D3c=t;b.H3c=f;b.yh="UNKNOWN";b.Qe=d;b.q6c=a;b.w8c=a;b.x8c=a;b.vL=function(){return 0;};b.IR=g;b.Pdd=function(){return "UNKNOWN";};b.Qdd=function(){return "";};},71501:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.I$a="Injector";b.ZE=145152E5;b.ZV="ProfileSymbol";},66523:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.NSc=b.OFb=void 0;b.hw=function(a,d){var n;n=Object.getOwnPropertyDescriptor(a,d);n && Object.defineProperty(a,d,{configurable:n.configurable,enumerable:!1,value:n.value,writable:n.writable});};b.flatten=function(a){return [].concat.apply([],za(a));};b.OFb=function(a,d){return a - d;};b.NSc=function(a,d){return a.localeCompare(d);};},24747:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.vga="ApiInfoSymbol";},99198:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.profile=b.umb=void 0;d=a(7700);n=a(24747);t=a(22674);c=a(71501);f=a(4203);b.umb=new t.Be(function(g){g(n.vga).to(d.Pya).sa();});b.profile=new t.Be(function(g){g(c.ZV).jN(function(e){return (e=e.Ib.get(f.Hc)()) && e.zG?"browsertest":"browser";});});},7700:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m,p){k=g.Qf.call(this,k,void 0 === p?"AppInfoConfigImpl":p) || this;k.config=l;k.R2a=m;return k;}Object.defineProperty(b,"__esModule",{value:!0});b.Pya=void 0;t=a(22970);n=a(22674);c=a(34231);f=a(12501);g=a(64174);e=a(83767);a=a(70865);Ia(d,g.Qf);d.prototype.irc=function(k){return "" + this.ttb + (this.WT(k)?"/msl_v1":"");};d.prototype.Crc=function(k){return "" + this.host + (this.WT(k)?"/msl":"") + "/playapi";};d.prototype.WT=function(k){return this.R2a.WT(k);};Ha.Object.defineProperties(d.prototype,{endpoint:{configurable:!0,enumerable:!0,get:function(){return this.host + "/api";}},ttb:{configurable:!0,enumerable:!0,get:function(){return this.host + "/nq";}},stb:{configurable:!0,enumerable:!0,get:function(){var k;switch(this.config.AQ){case c.$B.aHa:case c.$B.ZBa:k="logs.test.netflix.com";break;default:k="logs.netflix.com";}return "https://" + k + "/log";}},host:{configurable:!0,enumerable:!0,get:function(){var k;switch(this.config.AQ){case c.$B.J0b:k="www.stage";break;case c.$B.aHa:k="www-qa.test";break;case c.$B.ZBa:k="www-int.test";break;default:k="www";}return "https://" + k + ".netflix.com";}},Cnb:{configurable:!0,enumerable:!0,get:function(){return "pbo_config";}}});h=d;b.Pya=h;t.__decorate([f.config(f.string,"apiEndpoint")],h.prototype,"endpoint",null);t.__decorate([f.config(f.string,"nqEndpoint")],h.prototype,"ttb",null);t.__decorate([f.config(f.string,"logsEndpoint")],h.prototype,"stb",null);t.__decorate([f.config(f.string,"bindService")],h.prototype,"Cnb",null);b.Pya=h=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(e.Po)),t.__param(1,(0,n.v)(c.st)),t.__param(2,(0,n.v)(a.tja)),t.__param(3,(0,n.v)(e.Tga)),t.__param(3,(0,n.optional)())],h);},85405:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.k5a="AseIntegrationFactorySymbol";},31034:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.bdb="OpenConnectSideChannelSymbol";b.Tbb="MediaRequestDownloaderSymbol";},13494:function(t,b){function a(n,c,f){var g,e,h,k;g=[];n.forEach(function(l){-1 == g.indexOf(l.Uc) && g.push(l.Uc);});e=null;h=null;c.forEach(function(l){null === e?h=e=l.bitrate:h < l.bitrate?h=l.bitrate:e > l.bitrate && (e=l.bitrate);});k=[];g.forEach(function(l){var m;m={ranges:[],profile:l};e && h && (m.ranges.push({min:e,max:h}),f && (m.disallowed=f.filter(function(p){return p.stream.Uc === l;}).map(function(p){return {stream:{bitrate:p.stream.bitrate},disallowedBy:p.wna};})),k.push(m));});return k;}function d(n,c){var f;f=void 0;return {qub:n.filter(function(g){var e;e=c(g);e && (f=f || [],f.push({stream:g,wna:e}));return !e;}),oic:f};}Object.defineProperty(b,"__esModule",{value:!0});b.mtc=function(n,c){c=d(n,c);return a(n,c.qub,c.oic);};b.t6c=a;b.PC=d;},92692:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperty(b,"__esModule",{value:!0});b.bb=void 0;t=a(22674);d=a(67263);n=a(13005);c=a(24240);f=a(22806);g=a(31034);e=a(76457);h=a(77425);k=a(51790);l=a(89936);b.bb=new t.Be(function(m){m(d.uAa).to(n.tAa).sa();m(c.Nbb).to(f.wDa).sa();m(g.bdb).to(e.kEa).sa();m(g.Tbb).to(h.BDa).sa();m(k.Sbb).to(l.ADa).sa();});},67263:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.uAa=b.S7a=void 0;b.S7a=function(){this.X=0;this.U=1;this.sWb=2;this.Se=function(){};};b.uAa="DownloadTrackConstructorFactorySymbol";},24240:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Nbb="MediaHttpSymbol";},51790:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Sbb="MediaRequestConstructorFactorySymbol";},48220:function(t,b){function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.te=void 0;b.te=a;a.pm={Pcb:"mr1",Ocb:"mr2",Qcb:"mr3",r5:"mr4",eZb:"mr5",gJ:"mr6"};a.Zd={UNSENT:0,OPENED:1,iF:2,xm:3,DONE:5,Nw:7,name:("UNSENT OPENED SENT RECEIVING PAUSED DONE FAILED ABORTED").split(" ")};a.RE={NO_ERROR:-1,fVb:0,r7a:1,rVb:2,jVb:3,uUb:4,E6a:5,C6a:6,vUb:7,wUb:8,xUb:9,rUb:10,tUb:11,D6a:12,sUb:13,qUb:14,yWb:15,I9a:16,H9a:17,EBa:18,zha:19,FBa:20,H4:21,AWb:22,Aha:23,J9a:24,zWb:25,mVb:26,gVb:27,v0b:28,XUb:29,YUb:30,ZUb:31,$Ub:32,aVb:33,bVb:34,cVb:35,dVb:36,eVb:37,hVb:38,iVb:39,kVb:40,lVb:41,nVb:42,oVb:43,pVb:44,qVb:45,sVb:46,tVb:47,u0b:48,TIMEOUT:49,wWb:50,DBa:51,xWb:52,L9a:53,name:("DNS_ERROR DNS_TIMEOUT DNS_QUERY_REFUSED DNS_NOT_FOUND CONNECTION_REFUSED CONNECTION_TIMEOUT CONNECTION_CLOSED CONNECTION_RESET CONNECTION_RESET_ON_CONNECT CONNECTION_RESET_WHILE_RECEIVING CONNECTION_NET_UNREACHABLE CONNECTION_NO_ROUTE_TO_HOST CONNECTION_NETWORK_DOWN CONNECTION_NO_ADDRESS CONNECTION_ERROR HTTP_CONNECTION_ERROR HTTP_CONNECTION_TIMEOUT HTTP_CONNECTION_STALL HTTP_PROTOCOL_ERROR HTTP_RESPONSE_4XX HTTP_RESPONSE_420 HTTP_RESPONSE_5XX HTTP_TOO_MANY_REDIRECTS HTTP_TRANSACTION_TIMEOUT HTTP_MESSAGE_LENGTH_ERROR HTTP_HEADER_LENGTH_ERROR DNS_NOT_SUPPORTED DNS_EXPIRED SSL_ERROR DNS_BAD_FAMILY DNS_BAD_FLAGS DNS_BAD_HINTS DNS_BAD_NAME DNS_BAD_STRING DNS_CANCELLED DNS_CHANNEL_DESTROYED DNS_CONNECTION_REFUSED DNS_EOF DNS_FILE DNS_FORMAT_ERROR DNS_NOT_IMPLEMENTED DNS_NOT_INITIALIZED DNS_NO_DATA DNS_NO_MEMORY DNS_NO_NAME DNS_QUERY_MALFORMED DNS_RESPONSE_MALFORMED DNS_SERVER_FAILURE SOCKET_ERROR TIMEOUT HTTPS_CONNECTION_ERROR HTTPS_CONNECTION_TIMEOUT HTTPS_CONNECTION_REDIRECT_TO_HTTP HTTP_RESPONSE_452").split(" ")};a.vg={I_a:{LYc:!0,tGa:!1,L1c:!0}};},92720:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A;function d(z,B,C,D,F){var H;H=this;this.xb=z;this.j=B;this.debug=C;this.B7b=F;this.m6=this.kk=this.xF=!1;this.I6=this.H6=void 0;this.Fva=!1;z={};this.SA=(z[v.u.X]={},z[v.u.U]={},z[v.u.Ca]={},z[v.u.sm]={},z);this.Jjb=void 0;this.Pm=function(){var E,G,J,L,K,M;H.debug.assert(H.la,"has access to asePlaygraph");H.debug.assert(H.nd,"has access to internalLogger");H.debug.assert(H.XA,"has access to mediaBufferGetLogFields");K=H.Pt;M=null === (G=null === (E=H.bd.get()) || void 0 === E?void 0:E.kb) || void 0 === G?void 0:G.Fa;E={type:"logdata",target:"startplay",fields:{hasasereport:H.j.HY,hashindsight:!1,buffCompleteReason:K.reason,actualbw:M,initSelReason:null !== (J=K.initSelReason) && void 0 !== J?J:"unknown",bcVBufferLevelMs:K.vBufferLevelMs,bcABufferLevelMs:K.aBufferLevelMs}};(0,e.bLa)({vPa:E,ys:H.ys,loadTime:H.loadTime});H.la.V2a("startplay",n.Lc.hm);null !== (L=H.Fb) && void 0 !== L && L.Vd?(H.nd.trace("Buffering complete",{Cause:"ASE Buffering complete",evt:K},H.XA()),H.j.Pt=K,H.j.Lt.set(h.jh.zf),H.Zmc || (H.Zmc=!0,H.j.fh("pb")),[n.Ub.aja,n.Ub.yt,n.Ub.Oi].includes(H.wh.value) || H.play()):H.nd.error("Shim received buffering complete but player has no position (player " + (H.Fb?"":"un") + "defined, state " + H.j.state + ")");};this.PPb=function(){var E,G;H.debug.assert(H.nd,"has access to internalLogger");!1;H.H6=void 0;H.I6=void 0;H.j.paused.value && H.JS && (H.JS=!1,H.j.paused.set(!1,{bB:!0}));null === (E=H.j.Wd) || void 0 === E?void 0:E.ncc();null === (G=H.yGb) || void 0 === G?void 0:G.call(H);H.yGb=void 0;};this.events=new A();this.Ae=new u.HHa(this.RC.bind(this),function(E){return H.j.xT(E);},function(E,G){return H.j.yT(E,G);});}b.$Ca=void 0;n=a(45247);c=a(90745);f=a(32219);g=a(36129);e=a(30326);h=a(85001);k=a(29204);l=a(32687);m=a(5021);p=a(64302);r=a(8825);q=a(81734);u=a(64213);a(2762);v=a(26388);w=a(45240);x=a(26668);y=a(31149);A=a(17187).EventEmitter;d.prototype.Qe=function(){var z;!1;this.m6=!1;this.bd.mwa(null);this.debug.assert(this.bk,"has access to streamingEngine");this.la && this.bk.hE(this.la);this.Fb && this.bk.c_a(this.Fb);this.bk.oKb(this.Ae.js(this.xb.ga.J));this.Ae.clear();null === (z=this.ei) || void 0 === z?void 0:z.Xt();};d.prototype.tQc=function(z){var B,C,D,F,H,E,G,J,L,K,M,P;B=z.config;C=z.uv;D=z.nd;F=z.Of;H=z.XA;E=z.gn;G=z.rea;z=z.KT;this.nd=D;this.log=D.VP("AseIntegrationImpl");!1;this.Omb=new x.w5a(this.nd);this.XA=H;this.rea=G;this.KT=z;H=this.j.ga;this.debug.assert(H,"has a playback segment");this.debug.assert(B,"has access to config");this.debug.assert(F,"has access to utils");this.debug.assert(E,"has access to getCategoryLog");this.debug.assert(C,"has access to aseGlobals");this.debug.assert(C.bk,"has access to streamingEngine");this.debug.assert(H.Yc,"has access to parsedManifest");this.debug.assert(H.S,"has access to manifest");this.config=B;this.bk=C.bk;C.Mm.set(a(87141)(B),!0,E("ASE"));C.Mm.set({maxNumberTitlesScheduled:null !== (L=null === (J=B.EIc) || void 0 === J?void 0:J.maxNumberTitlesScheduled) && void 0 !== L?L:1},!0,D);B.adc && !H.Bc.za && 3E5 > H.S.Aa.duration?C.Mm.YXa({expandDownloadTime:!1},!0,D):C.Mm.YXa({expandDownloadTime:C.Mm.IHc().expandDownloadTime},!0,D);B=null === (P=null === (M=null === (K=H.ka.Lh) || void 0 === K?void 0:K.streams) || void 0 === M?void 0:M[0]) || void 0 === P?void 0:P.Uc;C.Mm.YXa((0,k.xcc)(!!H.qb.Pg,!!H.qb.oD,B),!0,D);D=F.Y_({},(0,k.SMa)(H.ff));H.Bc.za && (D=F.Y_(D,(0,k.SMa)("live")));this.Mm=C.Mm.St(D);n.platform.events.emit("networkchange",H.Yc.hPc);this.xF=!0;};d.prototype.raa=function(z){var B,C;this.debug.assert(this.bk,"has access to streamingEngine");B=this.j.Vl(z.L);this.debug.assert(B.Yc,"has access to playback parsedManifest");!1;C=z.flags;this.bd.reset();this.Gh=new Set([v.u.X,v.u.U]);(C.SRb || C.g5c) && this.Gh.delete(C.SRb?v.u.X:v.u.U);this.zU=[B.Yc.ghc,B.Yc.rhc,B.Yc.phc];this.RC(B.R,void 0,z.D8);this.Qvc(z);this.ZX();};d.prototype.vN=function(z){var B;!1;null === (B=this.la) || void 0 === B?void 0:B.vN(z);};d.prototype.h9b=function(z){var B,C,D;B=this;C=z.loadTime;D=z.ys;this.debug.assert(this.la,"has access to asePlaygraph");this.debug.assert(this.Fb,"has access to asePlayer");!1;this.ys=D;this.loadTime=C;z=this.la.events;z.addListener("error",function(F){!1;"NFErr_MC_StreamingFailure" === F.error && (B.nd.trace("receiving an unrecoverable streaming error: " + JSON.stringify(F)),B.nd.trace("StreamingFailure, buffer status:" + JSON.stringify(B.XA())),(0,f.Xh)(function(){var H,E,G;H=g.da.VSb;E=F.nativeCode;G=F.context;"adBreakHydration" === (null === G || void 0 === G?void 0:G.type) && (H=g.da.pO,E=g.Y.fTb);B.j.wg(H,{Ta:E,qf:F.errormsg,ds:F.httpCode,GH:F.networkErrorCode,Ng:F.httpCode});}));});z.addListener("logdata",function(F){var H;!1;"string" === typeof F.target && "object" === typeof F.fields && (F.fields.aseApiVersion=null === (H=B.la) || void 0 === H?void 0:H.$6b,(0,e.bLa)({vPa:F,ys:D,loadTime:C}));});z.addListener("bufferingStarted",function(){!1;B.j.Lt.set(h.jh.Pf);});z.addListener("bufferingComplete",function(F){!1;B.Pt=F;});this.j.paused.addListener(function(F){var H;B.debug.assert(B.nd,"has access to internalLogger");null !== (H=F.Xm) && void 0 !== H && H.bB || !B.xF || (F.newValue && [n.Ub.rg,n.Ub.Oi].includes(B.wh.value)?(B.wh.set(n.Ub.Oi),B.fi.emit("paused",{type:"paused",od:B.fi.Cd})):F.newValue || B.wh.value !== n.Ub.Oi || (B.wh.set(n.Ub.rg),B.fi.emit("playing",{type:"playing",od:B.fi.Cd})));F.newValue || (B.JS=!1);B.nd.info("Paused changed",{From:F.oldValue,To:F.newValue,MediaTime:(0,r.hk)(B.j.mediaTime.value)});});this.j.ka.addListener([v.u.X],function(F){var H,E,G,J;if(B.xF)if((B.debug.assert(B.nd,"has access to internalLogger"),F.TF))B.nd.trace("Not processing already applied track",null === (H=F.ry) || void 0 === H?void 0:H.trackId);else {J=F.ry;B.aPb({yv:J.trackId,toJSON:function(){return J.Ki;}})?B.nd.trace("ASE accepted the audio track switch",null === (G=F.ry) || void 0 === G?void 0:G.trackId):(B.nd.trace("ASE rejected the audio track switch",null === (E=F.ry) || void 0 === E?void 0:E.trackId),F.lw && F.lw.trackId !== J.trackId && B.j.ka.yB(F.lw,{TF:!0}));}});this.j.Bc.za && this.j.ka.addListener([v.u.Ca],function(F){var H,E,G,J;if(B.xF)if((B.debug.assert(B.nd,"has access to internalLogger"),null === F || void 0 === F?0:F.TF))B.nd.trace("Not processing already applied track",null === (H=F.so) || void 0 === H?void 0:H.trackId);else {J=F.so;B.aPb({Ry:J.trackId,toJSON:function(){return J.Ki;}})?B.nd.trace("ASE accepted the text track switch",null === (G=F.so) || void 0 === G?void 0:G.trackId):(B.nd.trace("ASE rejected the text track switch",null === (E=F.so) || void 0 === E?void 0:E.trackId),F.vy && F.vy.trackId !== J.trackId && B.j.ka.Jp(F.vy,{TF:!0}));}});z.addListener("serverSwitch",function(F){var H;!1;B.j.fireEvent(h.ja.nea,F);if(F.mediatype === v.hS[v.u.X])H=v.u.X;else F.mediatype === v.hS[v.u.U]?H=v.u.U:F.mediatype === v.hS[v.u.Ca] && (H=v.u.Ca);(0,l.$c)(H) && B.rea(F.segmentId,F.server,H);});z.addListener("streamSelected",function(F){var H,E,G,J;!1;if(B.m6){E=F.manifest.Xd;if(!B.j.nuc(E) && B.config.Zlc)return B.j.wg(g.da.FXb,{v9:E});E=(null === (H=B.la) || void 0 === H?void 0:H.ns(F.position)).Pa.G;H=[];if(F.mediaType === v.u.U){G=B.j.Qyb(F.streamId);J=B.j.$f;H=B.j.VK();}else F.mediaType === v.u.X && (G=B.j.xyb(F.streamId),J=B.j.fj,H=B.j.voc());G && J?(!1,J.set(G,{NP:E,I7:F.bandwidth})):F.mediaType !== v.u.Ca && B.nd.error("no matching stream for streamSelected event",{streamId:F.streamId,mediaType:F.mediaType,streamList:H,cachedManifest:B.j.LP});}});z.addListener("segmentNormalized",function(F){var H,E,G,J,L;!1;H=F.segmentId;E=Math.floor(F.viewableContentEnd.G);F=Math.floor(F.viewableEarliestContentEnd.G);E=(0,m.ic)(E);F=(0,m.ic)(F);B.Vh && B.Vh.ba[H] && (G=B.Vh.ba[H]);J=B.j.Lyb(H);L=G && B.j.W$(G.J);J?L && B.j.Pqa() && (J=B.j.Oj(G.J),J.L === "placeholder-segmentId-" + G.J && (!1,J.L=H)):(!1,B.Gec(H));if(G=B.j.Vl(H))(B.debug.assert(G.L === H,"segmentNormalized: playbackViewableData segmentId should match the value in the event. playbackViewableData.segmentId: " + (G.L + " event.segmentId: ") + (H + " ")),G.mG=E,G.QDb=F);B.j.Ks || (B.j.Bc.za && Infinity === E.na(m.ya)?B.j.Ks=m.ia:B.j.Ks=E);H=B.j.Ks.na(m.ya);G=E.na(m.ya);B.j.Bc.za && Infinity !== G && G > H && (!1,B.j.Ks=E);});z.addListener("locationSelected",function(F){!1;B.j.fireEvent(h.ja.kba,F);});z.addListener("aseReportEnabled",function(){!1;B.j.HY=!0;});z.addListener("logblob",function(F){!1;B.j.fireEvent(h.ja.lX,F);});z.addListener("mediaRequestComplete",function(F){F=null === F || void 0 === F?void 0:F.LMc;(F=null === F || void 0 === F?void 0:F.cadmiumResponse) && B.j.fireEvent(h.ja.hQ,{response:F,R:B.j.ga.R});});z.addListener("transportReport",function(F){var H;(F=null === (H=F.plc) || void 0 === H?void 0:H.cadmiumResponse) && B.j.fireEvent(h.ja.hQ,{response:F,R:B.j.ga.R});});z.addListener("liveEventTimesUpdated",function(F){var H,E;H=F.L;E=F.startTime;F=F.endTime;B.j.Lyb(H) && (H=B.j.Vl(H),H.Bc.za && H.Bc.I0a(E,F));});z.addListener("liveLoggingInfoUpdated",function(F){var H,E,G;H=F.mediaType;F=F.info;E=B.SA[H];B.SA[H]=F;G=B.SA[H].bo !== E.bo && void 0 !== E.bo;(B.SA[H].ao !== E.ao && void 0 !== E.ao || G) && B.j.fireEvent(h.ja.Era,{mediaType:H,Pq:E,current:B.SA[H],bwa:F.bwa,ob:F.ob});});z.addListener("livePostplayUpdated",function(F){B.j.fireEvent(h.ja.DCb,{J:F.J,Yca:F.Yca,action:F.action});});z.addListener("seeked",function(F){B.N0=F.position;});this.Anb();};d.prototype.Anb=function(){var z,B;z=this;this.debug.assert(this.Fb,"has access to asePlayer");!1;B=this.Fb.events;B.addListener("logdata",function(C){!1;"string" === typeof C.target && "object" === typeof C.fields && (0,e.bLa)({vPa:C,ys:z.ys,loadTime:z.loadTime});});B.addListener("segmentPresenting",function(C){var D,F,H,E;!1;z.debug.assert(z.la,"has access to asePlaygraph");z.debug.assert(z.Fb,"has access to asePlayer");z.debug.assert(z.KT,"has access to segmentPresentingHandler");F=z.la.ns(C.position);H=void 0;E=null === (D=C.inner) || void 0 === D?void 0:D.position;E && z.Vh && (H=z.Vh.ba[E.L]);z.xb.i_() && (z.xb.Bi=C.position.L);z.KT({J:F.J,QP:H,AR:!1});D=C.metrics;z.jua && D && (F=D.segment,D.srcsegment !== z.jua.V9.L || F !== z.jua.sfa.L || "seamless" !== D.transitionType && "perfect" !== D.transitionType || (D.transitionType="long",z.jua=void 0));z.j.fireEvent(h.ja.NM,{type:"segmentPresenting",position:{segmentId:C.position.L,offset:C.position.offset},playerTimestamp:C.playerTimestamp,metrics:C.metrics});!1;z.Jjb=z.Fb.eu();});B.addListener("ptsChanged",function(C){var D,F;!1;z.debug.assert(z.la,"has access to asePlaygraph");z.N0 || !1;F=null !== (D=z.N0) && void 0 !== D?D:z.la.tn(C.initialTimestamp);z.N0=void 0;D=z.la.tA(F);F=z.oyb(F);F={KTc:null === D || void 0 === D?void 0:D.lB,Hzb:C.initialTimestamp.lB,Nl:F};!1;z.j.Wd.vKc(F);C.inNonSeamlessTransition?z.fi.emit("clockAdjusted",{type:"clockAdjusted",od:z.fi.Cd}):z.fi.emit("skipped",{type:"skipped",od:z.fi.Cd});});B.addListener("fragmentsMissing",function(C){var D,F;F=null === (D=z.la) || void 0 === D?void 0:D.ns(C.nextAvailableGraphPosition);z.j.Wd.seek(F.Pa.G,h.Mc.V3,C.nextAvailableGraphPosition.L);});};d.prototype.Gec=function(z){var B,C,D,F;if(this.Vh && this.Vh.ba[z]){B=this.Vh.ba[z];z=this.j.NVa;C=z.S;if(null === C || void 0 === C?0:C.lq)D=null === C || void 0 === C?void 0:C.lq.find(function(H){return H.Aa.R === B.J;});D || (D=this.j.ywb(B.J));if(!D && (null === C || void 0 === C?0:C.Aa.Hb)){F=this.B7b.Krc({Hb:null === C || void 0 === C?void 0:C.Aa.Hb,fd:z.R,J:B.J});F && (D=F.S);}D && D.Aa.Hb === (null === C || void 0 === C?void 0:C.Aa.Hb) && this.j.Fqb(B.J,{Rf:{Hb:D.Aa.Hb,fd:z.R}},z.Ha,D);}};d.prototype.eu=function(){var z,B,C,D,F,H,E,G,J;G=null === (z=this.Fb) || void 0 === z?void 0:z.Upa();z=(null !== (B=this.Jjb) && void 0 !== B?B:G && this.Fb.eu()) || ({});B=z.K;G=z.Kd;J=z.VS;z=z.vw;return {id:String(null === B || void 0 === B?void 0:B.id),BLa:null !== (C=null === G || void 0 === G?void 0:G.G) && void 0 !== C?C:0,Kma:null !== (D=null === B || void 0 === B?void 0:B.ib.G) && void 0 !== D?D:Infinity,Ncc:null !== (F=null === B || void 0 === B?void 0:B.Yb.G) && void 0 !== F?F:0,gIc:null !== (H=null === J || void 0 === J?void 0:J.G) && void 0 !== H?H:Infinity,NYa:null !== (E=null === z || void 0 === z?void 0:z.G) && void 0 !== E?E:0};};d.prototype.aAb=function(){var z,B;this.debug.assert(this.la,"has access to asePlaygraph");z={};B=this.la.VQ();z.vbuflmsec=B.totalvbuflmsecs;z.vbuflbytes=B.vbuflbytes;z.abuflmsec=B.totalabuflmsecs;z.abuflbytes=B.abuflbytes;z.tbuflmsec=B.totaltbuflmsecs;z.tbuflbytes=B.tbuflbytes;return z;};d.prototype.paused=function(){};d.prototype.$Hc=function(){!1;this.fi.emit("playbackRateChanged",{type:"playbackRateChanged",od:this.fi.Cd});};d.prototype.Kt=function(z,B){var C;this.debug.assert(this.j.S,"has access to playback manifest");this.debug.assert(this.Omb,"has access to ASE utils");C=this.zU[v.u.X];return z.R === this.j.S.Aa.R?C:this.Omb.Cmc(this.j.S.Aa.Om[C],B);};d.prototype.JB=function(z,B){this.debug.assert(this.j.S,"has access to playback manifest");if(this.j.Bc.za && (z=this.zU[v.u.Ca],(B=B[z]) && (!B.ay || B.Haa)))return z;};d.prototype.aPb=function(z){var B,C,D,F,H,E;this.debug.assert(this.nd,"has access to internalLogger");this.debug.assert(this.Fb,"has access to asePlayer");this.debug.assert(this.j.S,"has access to playback manifest");if(this.K2a)return (!1,!1);C=z.yv;D=this.zU[v.u.X];if(void 0 === C)F=D;else if(!this.j.S.Aa.audio_tracks.some(function(G,J){if(G.new_track_id === C)return (F=J,!0);}))return (!1,!1);H=z.Ry;z=this.zU[v.u.Ca];if(void 0 === H)E=z;else if(!this.j.S.Aa.timedtexttracks.some(function(G,J){if(G.new_track_id === H)return (E=J,!0);}))return (!1,!1);!1;this.H6=F;this.I6=E;null === (B=this.j.Wd) || void 0 === B?void 0:B.jSc();this.j.paused.value || (this.Fb.pause([v.u.X,v.u.Ca]),this.JS=!0,this.j.paused.set(!0,{bB:!0}));this.debug.yla(this.H6,"has access to valid requestedAudioTrackIndex number");this.zU[v.u.X]=this.H6;this.debug.yla(this.I6,"has access to valid requestedTextTrackIndex number");this.zU[v.u.Ca]=this.I6;(this.Ny() || this.JS) && this.Fb.resume(this.JS?[v.u.X,v.u.Ca]:void 0);this.BN(this.PPb);return !0;};d.prototype.Ny=function(){var z;z=this;this.debug.assert(this.la,"has access to asePlaygraph");return this.la.Ny({OT:this.Kt.bind(this)},{OT:function(){return z.zU[v.u.U];}},{OT:this.JB.bind(this)});};d.prototype.Grc=function(){var z,B;z=this;if(!this.Fva){B={type:"playbackEnding",cancel:function(){z.Fva=!0;}};this.fi.emit(B.type,B);}B=this.Fva;this.Fva=!1;return B;};d.prototype.gr=function(){var z;!1;this.wh.set(n.Ub.wm);null === (z=this.la) || void 0 === z?void 0:z.V2a("intrplay",n.Lc.gr);this.fi.emit("underflow",{type:"underflow",od:this.fi.Cd});this.BN(this.Pm);};d.prototype.uwa=function(z,B){this.Wxa.uwa(z,B);};d.prototype.open=function(){var z,B;if(!this.m6){this.debug.assert(this.la,"has access to asePlaygraph");this.debug.assert(this.Fb,"has access to asePlayer");!1;this.m6=this.kk=!0;this.la.open();this.debug.assert(this.EB,"invalid start position relative to playgraph");this.N0=this.EB;this.la.LM(this.EB);this.wh.set(n.Ub.Pf);this.BN(this.Pm);this.la.Rz(this.Fb);this.rCb();B=null === (z=this.cn()) || void 0 === z?void 0:z.Js.Wv();z=this.j.ga.R.toString();(null === B || void 0 === B?0:B.result[z]) && this.events.emit("adMetadataUpdated");}};d.prototype.play=function(){this.debug.assert(this.la,"has access to asePlaygraph");this.debug.assert(this.Fb,"has access to asePlayer");!1;0 !== this.la.state && (this.Fb.resume(this.JS?[v.u.X,v.u.Ca]:void 0),this.wh.set(n.Ub.rg),this.fi.emit("playing",{type:"playing",od:this.fi.Cd}));};d.prototype.stop=function(){var z;!1;this.wh.set(n.Ub.aja);null === (z=this.Fb) || void 0 === z?void 0:z.pause();this.events.emit("stop");this.fi.emit("paused",{type:"paused",od:this.fi.Cd});};d.prototype.flush=function(){this.debug.assert(this.la,"has access to asePlaygraph");this.debug.assert(this.bk,"has access to streamingEngine");!1;this.m6 && this.wh.value !== n.Ub.yt && this.wh.value !== n.Ub.aja && this.stop();this.la.V2a("endplay",n.Lc.Jj);this.la.Jg();this.bk.Xl.save();this.bk.YL.save();};d.prototype.cn=function(){var z;return null === (z=this.la) || void 0 === z?void 0:z.Cc;};d.prototype.oyb=function(z){this.debug.assert(this.la,"has access to asePlaygraph");return this.la.Z.ba[z.L].Ua + Number(z.offset.G.toFixed(0));};d.prototype.dNa=function(z){var B;this.debug.assert(this.la,"has access to asePlaygraph");B=n.I.Ba(z);return (B=this.la.tn(B,{zRc:!0,yRc:!0}))?this.oyb(B):this.fail("convertPlayerPtsToContentPts failed to convert playerPts: " + z);};d.prototype.fNa=function(z,B){this.debug.assert(this.la,"has access to asePlaygraph");this.debug.assert(this.nd,"has access to internalLogger");!1;this.la.Z.ba[z] || (z=this.LPa(B));this.debug.zla(z,"has access to segmentId");z={L:z,offset:n.I.Ba(B - this.la.Z.ba[z].Ua)};if(z=this.la.tA(z))return z.G;!1;return B;};d.prototype.Mmc=function(z,B){var C,D,F;this.debug.assert(this.la,"has access to asePlaygraph");this.debug.assert(this.Fb,"has access to asePlayer");!1;B && this.la.Z.ba[B] || (B=null !== (C=this.LPa(z)) && void 0 !== C?C:null === (D=this.Fb) || void 0 === D?void 0:D.Yg.L);B=this.j.Vl(B);z={Pa:n.I.Ba(z),J:B.R};return null === (F=this.la.Jub(z)) || void 0 === F?void 0:F.Pa.G;};d.prototype.d9=function(z){var B;B=void 0 === B?!0:B;!1;if(!this.kk)return this.fail("Must call open prior to drmReady");Number.isFinite(z) && (this.debug.assert(this.Fb,"has access to asePlayer"),B?this.Fb.DMb(z):this.Fb.CMb(z));};d.prototype.Gyb=function(){var z;return null !== (z=this.Fb) && void 0 !== z && z.Vd?this.Fb.Baa(this.xb.ga.J):!1;};d.prototype.$k=function(z){var B,C,D;!1;if(!this.Fb)return (!1,!1);z=n.I.Ba(z);D=null !== (C=null === (B=this.cn()) || void 0 === B?void 0:B.$k(z)) && void 0 !== C?C:!0;return this.Fb.$k(z) && D;};d.prototype.tOc=function(z,B){var C;this.debug.assert(this.la,"has access to asePlaygraph");this.debug.assert(this.Fb,"has access to asePlayer");!1;B && this.la.Z.ba[B] || (B=null !== (C=this.LPa(z)) && void 0 !== C?C:this.xb.Bi);this.debug.zla(B,"has access to segmentId");this.debug.assert(this.la.Z.ba[B],"segment exists in playgraph map");this.N0=z={L:B,offset:n.I.Ba(z - this.la.Z.ba[B].Ua)};this.la.LM(z);this.Fb.resume();this.wh.set(n.Ub.Pf);this.BN(this.Pm);z=this.la.BLb(z);this.debug.assert(z,"Valid position must be provided for seek");};d.prototype.addEventListener=function(z,B){this.events.addListener(z,B);return this;};d.prototype.removeEventListener=function(z,B){this.events.removeListener(z,B);return this;};d.prototype.KVc=function(z,B){var C;!1;C={};this.la.wl((C[z]=B,C));};d.prototype.rma=function(z,B){var C,D;this.debug.assert(this.nd,"has access to internalLogger");this.debug.assert(this.la,"has access to asePlaygraph");this.debug.assert(this.Fb,"has access to asePlayer");!1;C=this.eu().id;D=this.la.y$(C,z);if(B){if(!D.KWc)return (this.nd.warn("chooseNextSegment, seamless transition, invalid destination: " + (z + " for current segment: " + C)),!1);if(void 0 !== D.PWa && (!1,D.PWa !== z))return !1;this.la.Bn(C,z,!1,B);return !0;}if(void 0 !== D.PWa)return (!1,!1);D.S7 && (this.Fb.reset(),this.N0={L:z,offset:n.I.Ba(0)},this.la.Bn(C,z,!1,B),this.Fb.resume(),this.wh.set(n.Ub.Pf),this.BN(this.Pm));return !!D.S7;};d.prototype.Bn=function(z,B,C,D){this.debug.assert(this.la,"has access to asePlaygraph");!1;this.la.Bn(z,B,C,D);};d.prototype.YM=function(){var z;this.debug.assert(this.nd,"has access to internalLogger");!1;z=this.fi.Cd;!1;this.fi.emit("skipped",{type:"skipped",od:z});return new n.S5(Promise.resolve()).wNc;};d.prototype.lpa=function(z,B){var C;return null === (C=this.la) || void 0 === C?void 0:C.lpa(z,B);};d.prototype.KRa=function(){var z;return null === (z=this.la) || void 0 === z?void 0:z.KRa();};d.prototype.LPa=function(z){var B,C,D,F,H,E,G,J;this.debug.assert(this.la,"has access to asePlaygraph");this.debug.assert(this.nd,"has access to internalLogger");!1;B=this.la.Z;C=[];D=Infinity;for(F in B.ba){H=B.ba[F];E=H.Ua;H=H.fb;G=z < Number(null !== H && void 0 !== H?H:Infinity);if(E <= z && G)(!1,C.push(F));else if((E=Math.min(Math.abs(z - E),Math.abs(z - H)),E < D)){D=E;J=F;}}z=C[0] || J;this.debug.zla(z,"has access to locatedSegmentId");!1;return z;};d.prototype.rCb=function(){var z,B;z=this;this.debug.assert(this.j.ac,"has access to mediaElement");B=this.j.ac.Ga;this.debug.assert(B,"has access to videoElement");B.addEventListener("play",function(){z.wh.value === n.Ub.Oi && (z.wh.set(n.Ub.rg),z.fi.emit("playing",{type:"playing",od:z.fi.Cd}));});B.addEventListener("pause",function(){z.wh.value === n.Ub.rg && (z.wh.set(n.Ub.Oi),z.fi.emit("paused",{type:"paused",od:z.fi.Cd}));});};d.prototype.fail=function(z){var B;null === (B=this.la) || void 0 === B?void 0:B.events.emit("error",{type:"error",error:"NFErr_MC_StreamingFailure",errormsg:z});};d.prototype.BN=function(z){var B,C,D,F,H,E,G,J;B=this;if(z !== this.PPb && this.K2a)(!1,this.yGb=z);else {J=null === (C=this.Fb) || void 0 === C?void 0:C.xp.value;C=null === (D=this.la) || void 0 === D?void 0:D.ie.value;D=!0 === J;J=C === n.Rd.$p;!1;null === (F=this.Fb) || void 0 === F?void 0:F.xp.removeListener(this.XDb);null === (H=this.la) || void 0 === H?void 0:H.ie.removeListener(this.Pnb);D && J?z():(this.XDb=function(){return B.BN(z);},this.Pnb=function(){return B.BN(z);},null === (E=this.Fb) || void 0 === E?void 0:E.xp.addListener(this.XDb),null === (G=this.la) || void 0 === G?void 0:G.ie.addListener(this.Pnb));}};d.prototype.Fvb=function(z){var B,C;B=this;z=this.j.Oj(z);return Promise.resolve(null !== (C=z.S) && void 0 !== C?C:this.cva(z)).then(function(D){var F,H;D=D.Aa;return {S:D,KC:D.Opa && !D.YK,config:B.Mm,Gh:[].concat(za(B.Gh)),un:null !== (H=null === (F=B.la) || void 0 === F?void 0:F.id) && void 0 !== H?H:-1};});};d.prototype.cva=function(z){var B,C,D,F,H;B=this;!1;F=Promise.resolve();if(null === (C=z.ue) || void 0 === C?0:C.fd){C=z.ue.fd;(H=null === (D=this.j.Oj(C).S) || void 0 === D?void 0:D.Aa)?z.ue.Fca=H:F=this.Ae.js(C).Pu.then(function(E){return E.S;}).then(function(E){z.ue.Fca=E;}).catch(function(){return B.j.wg(g.da.pO,g.Y.gTb);});}return F.then(function(){return B.j.cva(z);}).then(function(){return z.S;}).catch(function(E){var G;throw new n.gC("Failed to request manifest",{ud:0,Zwa:0,errorCode:null !== (G=E.code) && void 0 !== G?G:0,context:{error:E instanceof y.re?E.toJSON():E,type:"manifest"}});});};d.prototype.RC=function(z,B,C){var D,F,H,E,G,J,L,K,M,P,I,O,Q;D=this;this.debug.assert(this.bk,"has access to streamingEngine");!1;M={J:z,fd:null === (F=null === B || void 0 === B?void 0:B.Rf) || void 0 === F?void 0:F.fd,Hb:null === (H=null === B || void 0 === B?void 0:B.Rf) || void 0 === H?void 0:H.Hb};if(!this.Ae.has(M)){if(!this.j.W$(z) && (null === (E=null === B || void 0 === B?void 0:B.Rf) || void 0 === E?0:E.fd) && this.j.W$(null === (G=null === B || void 0 === B?void 0:B.Rf) || void 0 === G?void 0:G.fd)){F=this.j.Oj(null === (J=B.Rf) || void 0 === J?void 0:J.fd);J=null === (L=F.S) || void 0 === L?void 0:L.Aa.Hb;L=this.j.ywb(z);(null === (K=null === L || void 0 === L?void 0:L.Aa) || void 0 === K?0:K.Hb) && L.Aa.Hb === J && (P=L);this.j.Fqb(z,B,F.Ha,P);}this.j.W$(z) && (I=this.j.Oj(z));O=C?C.Ha:I?I.Ha:void 0;K=C?C.Jf:I?I.correlationId:void 0;this.Ae.store(M,{KX:function(){},equals:function(T){return T && T.J === M.J && (O === T.Ha || !T.Ha || !O);},get Pu() {Q || (Q=D.Fvb(z));return Q;},set Pu(T) {Q=T;},events:new c.EventEmitter(),Ha:O,J:M.J,Kx:!1,bxa:!1});this.Mm.sQ && this.bk.qwa(this.Ae.js(M.J,B),{Ha:O,Jf:K,wY:null === C || void 0 === C?void 0:C.zK});}};d.prototype.H2=function(z){var B,C,D;this.debug.assert(this.bk,"has access to streamingEngine");!1;B=this.j.Vl(z);C=B.ue;z=this.xb.fu(z).J;if(!this.Ae.has({J:B.R,fd:null === C || void 0 === C?void 0:C.fd,Hb:null === C || void 0 === C?void 0:C.Hb}))return Promise.resolve();C && (D={Rf:{Hb:null === C || void 0 === C?void 0:C.Hb,fd:C.fd}});B=this.Ae.js(z,D);B.Pu=this.Fvb(z);return this.bk.H2(B);};d.prototype.y$=function(z){var B;this.debug.assert(this.Fb,"has access to asePlayer");this.debug.assert(this.la,"has access to asePlaygraph");return this.la.y$(null === (B=this.Fb.eu().K) || void 0 === B?void 0:B.id,z);};d.prototype.fo=function(z){var B;z=null === (B=this.la) || void 0 === B?void 0:B.fo(z);!1;return z;};d.prototype.Qvc=function(z){var B,C;B=z.D8;C=z.L;this.debug.assert(this.bk,"has access to streamingEngine");this.debug.assert(this.nd,"has access to internalLogger");!1;z=this.j.Vl(C);z=this.xb.eR(z);C=z.ba[C];this.debug.assert(C,"segment exists");this.EB=(0,p.xsc)(C.J,z,this.j.Gb,C.Ua);B=Object.create(this.Mm,{zK:{value:B.zK},PY:{value:this.j.background.value}});this.wh=new q.wc(n.Ub.Bl);this.la=this.bk.g7(z,this.Mm.oIc,B,this.Ae);this.Wxa=new n.W5(this.nd);B=this.la.A8(this.Wxa);z=this.la.z8();this.la.T0a(z,B);this.Ny();this.JS=!1;};d.prototype.ZX=function(){var z,B,C;z=this;this.debug.assert(this.bk,"has access to streamingEngine");this.debug.assert(this.j.S,"has access to playback manifest");!1;C=null === (B=this.j.S) || void 0 === B?void 0:B.Aa;B=void 0 !== this.JB(C,C.ht);C=[].concat(za(this.Gh));B && C.push(v.u.Ca);B=Object.create(this.Mm,{Gh:{value:C},yRa:{value:function(){return z.orc();}}});this.fi=this.prc();this.Fb=this.bk.Y5b(this.fi,B);};d.prototype.prc=function(){var z,B;z=this;if(this.fi)return this.fi;B=Object.create(new c.EventEmitter(),{Ik:{get:function(){return z.j.Xj.na(m.ya);}},Cd:{get:function(){z.debug.yla(z.j.mediaTime.value,"has access to mediaTime.value");return n.I.Ba(z.j.mediaTime.value);}},playbackRate:{get:function(){return Math.max(z.j.playbackRate.value,.01);}},Qqc:{value:function(){z.debug.assert(z.j.ac,"has access to mediaElement");return z.j.ac;}},v_a:{value:function(){z.j.Bc.I1();}}});this.config.tkc && (this.debug.assert(this.nd,"has access to internalLogger"),this.WKb=new w.Jfb(this.j,this.config,this.nd),Object.defineProperties(B,{Qt:{value:function(C){var D;D=z.WKb.Qt(C);D.Qt || (z.jua={V9:C.V9,sfa:C.sfa});return D;}},cd:{value:function(C,D){return z.WKb.cd(C,D);}}}));return B;};d.prototype.tNc=function(){var z;z=this;return new Promise(function(B){z.rCb();z.Zhc();z.ZX();z.debug.assert(z.Fb,"asePlayer should have been re-created");z.Anb();z.la.Rz(z.Fb);z.play();z.wh.set(n.Ub.Pf);z.BN(function(){z.j.paused.value && z.j.paused.set(!1,{bB:!0});z.Pm();!1;B();});});};d.prototype.Zhc=function(){var z;null === (z=this.la) || void 0 === z?void 0:z.$hc();this.bk.c_a(this.Fb);this.ei=this.Fb=void 0;};d.prototype.orc=function(){this.ei || (this.ei=new n.platform.MediaSource(this.fi),this.ei.vg || (this.ei.vg=n.platform.MediaSource.vg));return this.ei;};Ha.Object.defineProperties(d.prototype,{K2a:{configurable:!0,enumerable:!0,get:function(){return void 0 !== this.H6 && void 0 !== this.I6;}},bd:{configurable:!0,enumerable:!0,get:function(){this.debug.assert(this.bk,"has access to streamingEngine");return this.bk.bd;}},Vh:{configurable:!0,enumerable:!0,get:function(){for(var z,B=null === (z=this.la) || void 0 === z?void 0:z.Vh;null === B || void 0 === B?0:B.Vh;)B=B.Vh;return null === B || void 0 === B?void 0:B.Z;}},zpb:{configurable:!0,enumerable:!0,get:function(){for(var z=this.Fb;null === z || void 0 === z?0:z.saa;)z=z.saa;return z;}},irb:{configurable:!0,enumerable:!0,get:function(){var z,B,C;if(null === (z=this.zpb) || void 0 === z?0:z.Vd){C=(z=this.zpb.Yg) && (null === (B=this.Vh) || void 0 === B?void 0:B.ba[z.L]);if(C)return {Pa:n.I.Ba(z.offset.G + C.Ua),J:C.J};}}},Knb:{configurable:!0,enumerable:!0,get:function(){var z;return null === (z=this.Fb) || void 0 === z?void 0:z.JR.value.G;}}});b.$Ca=d;},13005:function(t,b,a){var n,c,f,g;function d(e){function h(k,l){this.Bb=k;this.h2b=l;this.FPa=!1;this.emit=g.prototype.emit;this.addListener=g.prototype.addListener;this.on=g.prototype.on;this.once=g.prototype.once;this.removeListener=g.prototype.removeListener;this.removeAllListeners=g.prototype.removeAllListeners;this.listeners=g.prototype.listeners;this.listenerCount=g.prototype.listenerCount;g.call(this);this.sg=e.wb("DownloadTrack");}h.prototype.Xt=function(){!1;this.Q6=void 0;this.emit("destroyed");};h.prototype.toString=function(){return "id:" + this.Q6 + " config: " + JSON.stringify(this.Bb);};h.prototype.toJSON=function(){return "Download Track id:" + this.Q6 + " config: " + JSON.stringify(this.Bb);};h.prototype.m_=function(){return void 0 === this.Q6?!1:!0;};h.prototype.WZa=function(k){this.Bb.connections !== k.connections && (this.Bb=k);};Ha.Object.defineProperties(h.prototype,{trackId:{configurable:!0,enumerable:!0,get:function(){return this.Q6;}},Tm:{configurable:!0,enumerable:!0,get:function(){return void 0 === this.Q6;}},config:{configurable:!0,enumerable:!0,get:function(){return this.Bb;}},qua:{configurable:!0,enumerable:!0,get:function(){return this.sg;}},Pba:{configurable:!0,enumerable:!0,get:function(){return this.h2b.Pba;}},ZOb:{configurable:!0,enumerable:!0,get:function(){return !0;}}});this.P3=Object.assign(h,new f.S7a());}Object.defineProperty(b,"__esModule",{value:!0});b.tAa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(67263);g=a(17187).EventEmitter;b.tAa=d;b.tAa=d=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb))],d);},22806:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r,q,u,v){this.kX=p;this.Ke=q;this.ec=u;this.Va=v;this.log=r.wb("MediaHttp");}Object.defineProperty(b,"__esModule",{value:!0});b.wDa=void 0;t=a(22970);n=a(48220);c=a(24550);f=a(36129);g=a(87386);e=a(22674);h=a(32934);k=a(42207);l=a(81918);m=a(5021);d.prototype.$Q=function(){return this.Va.yc().na(m.ya);};d.prototype.TDc=function(p,r){p.WDc({mediaRequest:p,timestamp:r});};d.prototype.zta=function(p){var r,q;q=p.mediaRequest.TL;q.zFb(Object.assign(Object.assign({},p),{timestamp:p.connect?p.timestamp:this.$Q(),connect:null !== (r=p.connect) && void 0 !== r?r:!1,mediaRequest:q,readyState:q.readyState}));};d.prototype.q0=function(p){this.TDc(p.mediaRequest.TL,p.timestamp);};d.prototype.AS=function(p){var r,q;r=p.mediaRequest.TL;q=p.bytes;"undefined" === typeof r?!1:(r.readyState === n.te.Zd.iF && this.zta(p),this.ec.Wo(q) && (p.mediaRequest=r,p.timestamp=this.$Q(),q > r.bytesReceived && (p.newBytes=q - r.bytesReceived,p.bytesLoaded=q,r.ZDc(p))));};d.prototype.xca=function(p){var r,q,u,v;r=p.mediaRequest;q=p.errorcode;u=p.httpcode;v=n.te.RE;if("undefined" === typeof r)!1;else if((r=r.TL,"undefined" === typeof r))!1;else if(q === f.Y.eO)(p.mediaRequest=r,p.readyState=r.readyState,r.QDc(p));else {switch(q){case f.Y.J4:u=v.C6a;break;case f.Y.GBa:u=v.EBa;break;case f.Y.F4:u=400 < u && 500 > u?452 === u?v.L9a:v.zha:500 <= u?v.H4:v.EBa;break;case f.Y.G4:u=v.FBa;break;case f.Y.E4:u=v.D6a;break;case f.Y.I4:u=v.Aha;break;case f.Y.fO:u=v.Aha;break;case f.Y.K9a:u=v.J9a;break;case f.Y.G9a:u=v.zha;break;case f.Y.vVb:u=v.FBa;break;default:u=v.Aha;}p.mediaRequest=r;p.readyState=r.readyState;p.errorcode=u;p.nativecode=q;r.eXa(p);}};d.prototype.LD=function(p,r){var q,u;q=r.request.TL;if(q)if(r.success){if((!1,p.j && q.readyState !== n.te.Zd.DONE)){switch(q.readyState){case n.te.Zd.Nw:!1;return;case n.te.Zd.xm:break;case n.te.Zd.iF:this.zta({mediaRequest:r.request,responseHeaders:r.headers,httpCode:r.wk});break;default:!1;}if(!q.df){u={mediaRequest:q,readyState:q.readyState,timestamp:this.$Q(),cadmiumResponse:r};p.j.J2a+=1;q.Vsc();q.nxc() && (p.j.H_a+=1,r.Jq.em=Math.ceil(q.SPa),r.Jq.Ew=Math.ceil(q.RP),r.Jq.$H=Math.floor(q.HL));q.pcc=u;q.j0(u);}}}else (!1,q.readyState === n.te.Zd.Nw?!1:this.xca({mediaRequest:r.request,errorcode:r.Ta,httpcode:r.ds,responseHeaders:r.headers,cadmiumResponse:r}));};d.prototype.download=function(p,r){var q;q=this;r=this.Ke.download(p,r);p.TL && p.TL.readyState === n.te.Zd.OPENED && r.PPc(function(u){q.q0(u);});r.Tka(function(u){q.LD(p,u);});r.bQc(function(u){q.AS(u);});return r;};a=d;b.wDa=a;b.wDa=a=t.__decorate([(0,e.aa)(),t.__param(0,(0,e.v)(c.k3)),t.__param(1,(0,e.v)(g.zb)),t.__param(2,(0,e.v)(h.bC)),t.__param(3,(0,e.v)(k.Mi)),t.__param(4,(0,e.v)(l.fe))],a);},77425:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x,y){this.Va=q;this.NG=u;this.config=v;this.Ke=x;this.SBc=y;this.log=w.wb("MediaRequestDownloader");}Object.defineProperty(b,"__esModule",{value:!0});b.BDa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(32934);g=a(24240);e=a(51344);h=a(48220);k=a(81918);l=a(5021);m=a(34231);p=a(4203);r=a(26388);d.prototype.Goa=function(q,u,v){var x,y,A;function w(){var z;q.removeEventListener(h.te.pm.gJ,w);if(q.aborted)x.log.debug("MediaRequest aborted, not retrying (" + q + ")");else {z=x.config().Tlc;void 0 === q.bZ?q.bZ=0:q.bZ++;q.bZ >= z.length && (q.bZ=z.length - 1);Ba.clearTimeout(q.EPa);q.EPa=Ba.setTimeout(function(){q.tL();},z[q.bZ]);}}x=this;q.Y9c=!0;q.aborted=!1;y=0 === u.start && -1 === u.end;u={url:q.url,responseType:this.Ke.Nia.O5a,withCredentials:!1,tK:q.mediaType === r.u.X?"audio":"video",offset:y?void 0:u.start,length:y?void 0:q.Lu,track:{type:q.mediaType === r.u.X?e.Ln.audio:e.Ln.video},stream:{ob:q.Sa,bitrate:q.bitrate},Tc:{id:q.dd},TL:q,BB:v,Yy:this.NG.Yy || !y && void 0 !== q.CK,Gw:q.Gw};v=q.CK;void 0 !== v && void 0 !== v.Wf && void 0 !== v.tD && void 0 !== v.hy && (u.CK=[v.hy,v.tD,v.Wf,v.jpb]);A=this.$Q();u=this.SBc.download(u,function(z){z.success && q.readyState !== h.te.Zd.DONE && (q.readyState === h.te.Zd.Nw?!1:(q.readyState === h.te.Zd.iF?q.zFb({mediaRequest:q,readyState:q.readyState,timestamp:q.df?A:x.$Q(),connect:!1,responseHeaders:z.headers,httpCode:z.wk}):q.readyState !== h.te.Zd.iF && q.readyState !== h.te.Zd.xm && !1,z={mediaRequest:q,readyState:q.readyState,timestamp:x.$Q(),cadmiumResponse:z,response:z.content},q.pcc=z,q.j0(z)));});q.addEventListener(h.te.pm.gJ,w);q.fTa=u.abort;};d.prototype.sP=function(q){try{q.aborted=!0;Ba.clearTimeout(q.EPa);q.EPa=void 0;q.bZ=void 0;q.fTa();}catch(u){this.log.warn("exception aborting request");}};d.prototype.$Q=function(){return this.Va.yc().na(l.ya);};a=d;b.BDa=a;b.BDa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(k.fe)),t.__param(1,(0,n.v)(m.st)),t.__param(2,(0,n.v)(p.Hc)),t.__param(3,(0,n.v)(c.zb)),t.__param(4,(0,n.v)(f.bC)),t.__param(5,(0,n.v)(g.Nbb))],a);},89936:function(t,b,a){var n,c,f,g,e,h,k,l,m,p;function d(r,q,u,v,w,x){function y(z,B){this.track=z;this.label=B;this.tg=l.te.Zd.UNSENT;this.bytesReceived=0;this.cI=[];}function A(z,B,C){this.requestId=x.nG().toString();this.ec=u;this.log=q.wb("MediaRequest");this.config=r;this.jc=new k.qm();this.label=B;"notification" === this.label?this.config().sQ && (this.Pba=v):this.Pba=w;C && (this.mediaType=C.mediaType,this.Sa=C.Sa,this.bitrate=C.bitrate,this.dd=C.dd || 0,this.HA=C.HA,this.L=C.L);this.taa=this.dma=this.ema=void 0;this.track=z;this.yX=this.url=this.responseType=void 0;this.tg=l.te.Zd.UNSENT;this.Qg=this.YC=this.bh=this.status=void 0;this.bytesReceived=0;this.connect=this.SPa=this.RP=this.HL=this.WUa=this.mj=this.RPa=this.loadTime=this.gq=void 0;this.cI=[];this.Tm=!1;!1;}y.prototype.addEventListener=function(z,B,C){this.jc.addListener.call(this,z,B,C);};y.prototype.removeEventListener=function(z,B){this.jc.removeListener.call(this,z,B);};y.prototype.emit=function(z,B,C){this.jc.qd.call(this,z,B,C);};y.prototype.WDc=function(z){this.tg === l.te.Zd.OPENED && (this.taa=!0,this.loadTime=this.mj=z.timestamp,!1,this.tg=l.te.Zd.iF,this.emit(l.te.pm.Pcb,z));};y.prototype.zFb=function(z){var B;z.responseHeaders && (this.Dva=z.responseHeaders);z.httpCode && (this.status=z.httpCode);if(this.tg < l.te.Zd.xm){this.cI=[];B=z.timestamp - this.loadTime;!this.df && 0 < B && (this.connect=!0,this.cI.push(B));!0 === this.config().gvc?this.RPa=z.timestamp:this.RPa=this.mj=z.timestamp;!1;this.tg=l.te.Zd.xm;200 <= this.status && 299 >= this.status && this.emit(l.te.pm.Ocb,z);}};y.prototype.ZDc=function(z){this.tg === l.te.Zd.xm && (!1,this.WUa=this.mj=z.timestamp,z.newBytes=z.bytesLoaded - this.bytesReceived,this.bytesReceived=z.bytesLoaded,this.ec.Ci(this.WUa) && 200 <= this.status && 299 >= this.status && this.emit(l.te.pm.Qcb,z));};y.prototype.j0=function(z){var B;if(-1 < [l.te.Zd.iF,l.te.Zd.xm].indexOf(this.tg)){this.taa=!1;!1;this.mj=z.timestamp;this.tg=l.te.Zd.DONE;B=this.bytesReceived;this.bytesReceived=z.cadmiumResponse.Jq.Vn;(0,p.va)(this.bytesReceived === this.Lu,"bytesReceived do not match expected totalBytes.");z.newBytes=this.Lu - B;this.ec.Ci(this.RP) && (this.mj=this.RP,0 === z.newBytes && (this.WUa=this.RP));this.ec.Ci(this.HL) && (this.loadTime=this.HL);this.gq=z.response;this.emit(l.te.pm.r5,z);this.track.emit("mediaRequestComplete",{type:"mediaRequestComplete",LMc:z});}};y.prototype.QDc=function(z){this.taa=!1;!1;this.emit(l.te.pm.eZb,z);};y.prototype.eXa=function(z){var B,C;this.mj=z.timestamp;this.status=null !== (B=z.httpcode) && void 0 !== B?B:this.status;this.Dva=null !== (C=z.responseHeaders) && void 0 !== C?C:this.Dva;this.bh=z.errorcode;this.YC=l.te.RE.name[this.bh];this.Qg=z.nativecode;!1;this.track.emit("transportreport",{type:"transportreport",plc:z});this.emit(l.te.pm.gJ,z);this.taa=!1;};y.prototype.open=function(z,B,C,D,F,H,E,G,J){this.Py=!1;this.yX=B;this.BB=E;this.Gw=G;this.CK=J;this.url=z;this.responseType=C;!1;return this.url?this.tL():(!1,!1);};y.prototype.tL=function(){this.tg=l.te.Zd.OPENED;this.status=this.bytesReceived=0;this.Qg=this.YC=this.bh=this.Dva=void 0;this.Pba.Goa(this,this.yX,this.BB);return !0;};y.prototype.Qe=function(){!1;-1 !== [l.te.Zd.OPENED,l.te.Zd.iF,l.te.Zd.xm].indexOf(this.tg) && this.abort();return !0;};y.prototype.m2=function(z){!1;this.url=z;return this.tg > l.te.Zd.UNSENT?(this.abort(),this.tL()):!0;};y.prototype.abort=function(){this.tg=l.te.Zd.Nw;this.Pba.sP(this);return !0;};y.prototype.pause=function(){};y.prototype.getResponseHeader=function(z){var B,C;return null !== (C=null === (B=this.Dva) || void 0 === B?void 0:B[z.toLowerCase()]) && void 0 !== C?C:null;};y.prototype.getAllResponseHeaders=function(){return "";};y.prototype.j1=function(){};y.prototype.Ei=function(){return this.requestId;};y.prototype.toString=function(){var z;z={requestId:this.Ei(),segmentId:this.L,isHeader:this.df,ptsStart:this.vM,ptsOffset:this.lda,responseType:this.responseType,duration:this.ah,readystate:this.tg,bitrate:this.bitrate};return JSON.stringify(z);};y.prototype.toJSON=function(){return this.toString();};y.prototype.Vsc=function(){var z,B;if(this.config().yRb && g.eC && g.eC.getEntriesByType && (!this.ec.Ci(this.HL) || !this.ec.Ci(this.RP) && this.ec.Ci(this.url))){z="" + this.url.split("nflxvideo.net")[0].split("//").pop() + ("*nflxvideo.net/range/" + this.ema + "-" + this.dma + "*");B=new RegExp(z);z=g.eC.getEntriesByType("resource").filter(function(C){return B.exec(C.name);})[0];this.ec.Ci(z) && (0 < z.startTime && (this.HL=z.startTime,0 < z.requestStart && (this.HL=Math.max(this.HL,z.requestStart))),0 < z.responseStart && (this.SPa=z.responseStart),0 < z.responseEnd && (this.RP=z.responseEnd));}};y.prototype.nxc=function(){return this.ec.Ci(this.HL) && this.ec.Ci(this.RP) && this.ec.Ci(this.SPa);};Ha.Object.defineProperties(y.prototype,{Lu:{configurable:!0,enumerable:!0,get:function(){return 0 === this.yX.start && -1 === this.yX.end?Number(this.getResponseHeader("content-length")) || this.bytesReceived:this.yX.end - this.yX.start + 1;}},byteLength:{configurable:!0,enumerable:!0,get:function(){return this.dma - this.ema + 1;}},iuc:{configurable:!0,enumerable:!0,get:function(){return !!(this.response && 0 < this.response.byteLength);}},df:{configurable:!0,enumerable:!0,get:function(){return !this.HA;}},response:{configurable:!0,enumerable:!0,get:function(){return this.gq;}},readyState:{configurable:!0,enumerable:!0,get:function(){return this.tg;}}});Object.getOwnPropertyNames(y.prototype).forEach(function(z){var B;B=Object.getOwnPropertyDescriptor(y.prototype,z);Object.defineProperty(A.prototype,z,B);});this.Al=Object.assign(A,l.te);}Object.defineProperty(b,"__esModule",{value:!0});b.ADa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(4203);g=a(22365);e=a(42207);h=a(31034);k=a(94886);l=a(48220);m=a(62665);p=a(45146);b.ADa=d;b.ADa=d=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.Hc)),t.__param(1,(0,n.v)(c.zb)),t.__param(2,(0,n.v)(e.Mi)),t.__param(3,(0,n.v)(h.bdb)),t.__param(4,(0,n.v)(h.Tbb)),t.__param(5,(0,n.v)(m.XE))],d);},76457:function(t,b,a){var n,c,f;function d(g,e){this.Ke=e;this.log=g.wb("OpenConnectSideChannel");}Object.defineProperty(b,"__esModule",{value:!0});b.kEa=void 0;t=a(22970);n=a(22674);c=a(87386);a=a(32934);d.prototype.Goa=function(g,e,h){e={url:g.url,qOc:h};!1;g.fTa=this.Ke.fRc(e);};d.prototype.sP=function(g){try{g.fTa();}catch(e){this.log.warn("exception aborting request");}};f=d;b.kEa=f;b.kEa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(a.bC))],f);},45240:function(t,b,a){var n,c,f;function d(g,e,h){this.j=g;this.config=e;this.bb=this.j.bb;this.log=h.VP("RestartManagerImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.Jfb=void 0;n=a(45247);c=a(36129);f=a(17612);d.prototype.Qt=function(g){var e;e=g.mediaType;return e === n.u.X?{Qt:!0}:e === n.u.U?this.iac(g):{Qt:!1,reason:"not-audio-not-video"};};d.prototype.cd=function(g,e){var h,k,l;h=this;!1;void 0 === (null !== (k=e[n.u.U]) && void 0 !== k?k:e[n.u.X]) && this.log.warn("No fromSegment for audio/video given in playgraph restart");this.j.paused.value || this.j.paused.set(!0,{bB:!0});null === (l=this.j.Wd) || void 0 === l?void 0:l.$Rc();this.bb.stop();return this.j.oLc().then(function(){return h.bb.tNc();}).then(function(){return h.bb.d9(h.j.R);}).catch(function(m){h.log.error("Restart player for non-seamless transition failed.",{error:m,restartContext:{mediaAttributesRecord:g,fromSegments:e}});h.j.wg(c.da.RZb,m);});};d.prototype.iac=function(g){var e,h,k,l,m,p,r;k=!0;l=g.V9;m=g.sfa;p=g.from;r=g.to;if(l.L !== m.L && this.oNb(l,m,this.config.FOc))return {Qt:!1,reason:"testing-forced-ads-content"};if(l.L !== m.L && f.mb.g_(null !== (h=null === (e=this.j.Rl) || void 0 === e?void 0:e.py.gy) && void 0 !== h?h:"") && this.oNb(l,m,this.config.vIc))return {Qt:!1,reason:"playready-forced-ads-content"};g=this.config.eXc;return 0 < g.length?(g.some(function(q){q=new RegExp(q);if(q.test(p.profile) && !q.test(r.profile) || q.test(r.profile) && !q.test(p.profile))return (!1,k=!1,!0);}),k?{Qt:k}:{Qt:!1,reason:{mediaType:"video",Dc:"mismatch",details:"codec"}}):{Qt:k};};d.prototype.oNb=function(g,e,h){var k,l,m,p;g=null === (l=null === (k=this.bb.Vh) || void 0 === k?void 0:k.ba[g.L]) || void 0 === l?void 0:l.type;e=null === (p=null === (m=this.bb.Vh) || void 0 === m?void 0:m.ba[e.L]) || void 0 === p?void 0:p.type;m=g + "to" + e;return h.map(function(r){return r.toLowerCase();}).includes(m.toLowerCase());};b.Jfb=d;},64213:function(t,b,a){var n,c,f,g;function d(e,h,k){this.RC=void 0 === e?function(){}:e;this.JMc=h;this.MMc=k;this.CE=new Map();}Object.defineProperty(b,"__esModule",{value:!0});b.HHa=void 0;n=a(22970);c=a(45247);f=a(45146);g=a(31149);d.prototype.store=function(e,h){var k,p;k=this.generateKey(e);this.CE.has(k) && this.cXa(this.CE.get(k),!0);if(!e.fd)for(var l=Ea(this.CE),m=l.next();!m.done;m=l.next()){p=Ea(m.value);m=p.next().value;p=p.next().value;m.includes(":" + e.J + ":") && (this.cXa(p,!0),this.CE.delete(m));}this.CE.set(k,h);};d.prototype.js=function(e,h){var k,l,m;m=null === (k=null === h || void 0 === h?void 0:h.Rf) || void 0 === k?void 0:k.Hb;k=null === (l=null === h || void 0 === h?void 0:h.Rf) || void 0 === l?void 0:l.fd;l={J:e,fd:k,Hb:m};this.has(l) || this.RC(e,h);return this.get(l);};d.prototype.xT=function(e,h){return n.__awaiter(this,void 0,void 0,function l(){var m,p,r;p=this;return Ua(l,function(q){if(1 == q.Ds)return ((0,f.va)(h.Rf,"auxiliaryOptions must exist if an adBreak hydration was requested"),(0,f.va)(!!h.Rf.Hb,"auxiliaryManifestToken must exist if an adBreak hydration was requested"),q.LX=2,cb(q,p.JMc(h),4));if(2 != q.Ds)return q.return(q.TU);r=kb(q);throw new c.gC("Could not hydrate adBreak",{ud:0,Zwa:0,errorCode:null !== (m=r.code) && void 0 !== m?m:0,context:{error:r instanceof g.re?r.toJSON():r,type:"adBreakHydration"}});});});};d.prototype.yT=function(e,h){return n.__awaiter(this,void 0,void 0,function l(){var m,p,r;p=this;return Ua(l,function(q){if(1 == q.Ds)return (q.LX=2,cb(q,p.MMc(e,h),4));if(2 != q.Ds)return q.return(q.TU);r=kb(q);throw new c.gC("Could not prefetch dai",{ud:0,Zwa:0,errorCode:null !== (m=r.code) && void 0 !== m?m:0,context:{error:r instanceof g.re?r.toJSON():r,type:"daiPrefetch"}});});});};d.prototype.has=function(e){e=this.generateKey(e);return this.CE.has(e) && !this.CE.get(e).Kx;};d.prototype.clear=function(){var e;e=this;this.CE.forEach(function(h){e.cXa(h,!1);});this.CE.clear();};d.prototype.get=function(e){return this.CE.get(this.generateKey(e));};d.prototype.generateKey=function(e){var h,k;h=e.Hb;k=e.fd;return e.J.toString() + (k?":" + k:"") + (h?":" + h:"");};d.prototype.cXa=function(e,h){var k;null === (k=e.events) || void 0 === k?void 0:k.emit("viewableEvicted",{type:"viewableEvicted"});e.bxa=h;};b.HHa=d;},30326:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.bLa=function(n){var c,f,g,e;c=n.ys;f=n.loadTime;n=n.vPa;g=(0,d.pc)(f)?f:0;e=c[n.target] || ({});c[n.target] !== e && (c[n.target]=e);Object.entries(n.fields).forEach(function(h){var k,l,m,p;k=Ea(h);h=k.next().value;k=k.next().value;if("object" !== typeof k || null === k)e[h]=k;else {l=k.type;if("count" === l)(void 0 === e[h] && (e[h]=0),++e[h]);else if(void 0 !== k.value){if("array" === l){l=e[h];m=k.adjust;p=k.value;l || (l=e[h]=[]);m && 0 < m.length && m.forEach(function(r){p[r]-=g || 0;});l.push(p);}else e[h]="sum" === l?(e[h] || 0) + k.value:k.value;}else e[h]=k;}});};d=a(32687);},64302:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.xsc=function(c,f,g,e){return f.ba[f.sf].Ua === e?(c=(0,d.Vr)(f,c,d.I.Ba(g)),(0,n.va)(c,"has valid start position relative to playgraph"),c):{L:f.sf,offset:d.I.ia};};d=a(45247);n=a(45146);},26668:function(t,b){function a(d){this.log=d.VP("AseUtilsImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.w5a=void 0;a.prototype.Cmc=function(d,n){var c,f,g;!1;c=n.slice(0).sort(function(e,h){var k,l;return (null !== (k=e.Ac) && void 0 !== k?k:0) - (null !== (l=h.Ac) && void 0 !== l?l:0);}).sort(function(e,h){var k,l,m;k=e.profile === d.profile?0:1;l=h.profile === d.profile?0:1;m=k - l;if(0 !== k && 0 !== l || 0 === m)k=m;else return m;0 === k && (k=(e.language === d.language || "zxx" === e.language?0:1) - (h.language === d.language || "zxx" === h.language?0:1));0 === k && (k=(e.aj === d.aj?0:1) - (h.aj === d.aj?0:1));return k;});f=0;g=Ea(c).next().value;g && n.some(function(e,h){if(e === g)return (f=h,!0);});!1;return f;};b.w5a=a;},11479:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.ek="AsyncComponentLoaderSymbol";},87284:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.Xmb=void 0;t=a(22674);d=a(31073);n=a(11479);b.Xmb=new t.Be(function(c){c(n.ek).to(d.gza).sa();});},31073:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u;function d(v,w,x,y,A,z){var B;B=this;this.Fo=v;this.config=x;this.Gp=y;this.debug=A;this.Va=z;this.BPb=[];this.Ff={};this.log=w.wb("loadAsync");this.GAc=(0,r.jWb)(function(C){B.TLc=!0;B.startTime=B.Va.yc().na(m.ya);B.load(B.BPb).then(function(){B.endTime=B.Va.yc().na(m.ya);C(u.Oh);}).catch(function(D){B.endTime=B.Va.yc().na(m.ya);C(D);});});}Object.defineProperty(b,"__esModule",{value:!0});b.gza=void 0;t=a(22970);n=a(77134);c=a(36129);f=a(96813);g=a(63156);e=a(22674);h=a(87386);k=a(4203);l=a(59818);m=a(5021);p=a(90597);r=a(22894);q=a(81918);u=a(33096);d.prototype.iba=function(v){this.GAc(v);};d.prototype.register=function(v,w){this.debug.assert(!this.TLc);this.BPb.push({aAc:this.Z$b(w),errorCode:v});};d.prototype.fh=function(v){this.debug.assert(void 0 === this.Ff[v]);this.Ff[v]=this.Va.yc().na(m.ya);};d.prototype.load=function(v){var w;w=this;return (0,f.EJc)(v).then(function(x){w.Fo.mark(g.Uu.Nn.dTb);return x.reduce(function(y,A){return y.then(function(){return w.Yzc(A);});},Promise.resolve()).then(function(){w.Fo.mark(g.Uu.Nn.bTb);});});};d.prototype.Yzc=function(v){var w,x;w=this;x=v.aAc;!1;return this.Gp.Qs((0,m.ic)(this.config().d8b),x()).catch(function(y){w.log.error("Failed to load component " + v.errorCode,y);w.Fo.mark(g.Uu.Nn.cTb);if(y instanceof l.ex)throw {Ta:c.Y.aTb,errorCode:v.errorCode};y.errorCode=y.errorCode || v.errorCode;y.Ta=y.Ta || c.Y.$Sb;throw y;});};d.prototype.Z$b=function(v){return function(){return new Promise(function(w,x){v(function(y){y.success?w():x(y);});});};};a=d;b.gza=a;b.gza=a=t.__decorate([(0,e.aa)(),t.__param(0,(0,e.v)(n.mW)),t.__param(1,(0,e.v)(h.zb)),t.__param(2,(0,e.v)(k.Hc)),t.__param(3,(0,e.v)(l.gF)),t.__param(4,(0,e.v)(p.VB)),t.__param(5,(0,e.v)(q.fe))],a);},96813:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.EJc=function(f){return new Promise(function(g,e){var h;h=c.aZb(f);h && e(h);(h=c.$Yb(f)) && e(h);g(f.sort(function(k,l){return n.indexOf(k.errorCode) - n.indexOf(l.errorCode);}));});};d=a(36129);n=[d.da.XWb,d.da.q$a,d.da.r$a,d.da.v$a,d.da.m$a,d.da.k$a,d.da.PBa,d.da.aXb,d.da.n$a,d.da.l$a,d.da.WI,d.da.h$a,d.da.j$a,d.da.s$a,d.da.t$a,d.da.u$a,d.da.o$a,d.da.i$a,d.da.p$a];(function(f){f.$Yb=function(g){var k;for(var e={},h=0;h < g.length;h++){k=g[h];if(e[k.errorCode])return {errorCode:k.errorCode,Ta:d.Y.YSb};e[k.errorCode]=1;}};f.aZb=function(g){var h;for(var e=0;e < g.length;e++){h=g[e];if(-1 === n.indexOf(h.errorCode))return {errorCode:h.errorCode,Ta:d.Y.ZSb};}};})(c || (c={}));},41674:function(t,b,a){Object.defineProperty(b,"__esModule",{value:!0});b.AbortSignal=b.AbortController=void 0;b.AbortController=a.qZ.AbortController;b.AbortSignal=a.qZ.AbortSignal;b.AbortSignal.prototype.throwIfAborted || (b.AbortSignal.prototype.oPb=function(){if(this.aborted)throw this.reason;});},81918:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.fe="ApplicationSymbol";},6405:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.MN="Base16EncoderSymbol";},2248:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.mm="Base64EncoderSymbol";},22816:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$U="BrowserInfoSymbol";},33258:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Hza="CachedErrorsSymbol";},30869:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Li="ClockSymbol";},87061:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.V6a="ClockConfigSymbol";},58098:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.j7a="CsvEncoderSymbol";},34043:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.aha="DebouncerFactorySymbol";},90597:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.z7a="DebugConfigSymbol";b.VB="DebugSymbol";},2762:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.m_c={};t.C2c="PboDebugEvent";t.E2c="PlaygraphEvent";b.l_c={r1c:"Manifest",Event:"Event",a1c:"Logblob"};b.F2c={e4c:"UX",RZc:"Combined_1",SZc:"Combined_2"};},28131:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha,S,N,V,ba,fa,ia,ka,pa,oa,la,R,ea,ja,sa,ta,qa,Aa,Ga,na,va,xa;Object.defineProperty(b,"__esModule",{value:!0});b.MC=void 0;t=a(22674);d=a(63368);n=a(30869);c=a(53085);f=a(62665);g=a(10306);e=a(61909);h=a(11629);k=a(67525);l=a(691);m=a(84408);p=a(6405);r=a(2248);q=a(74870);u=a(42207);v=a(15160);w=a(59818);x=a(67572);y=a(53399);A=a(33543);z=a(30033);B=a(24900);C=a(4734);D=a(76564);F=a(31811);H=a(55099);E=a(88490);G=a(57180);J=a(9002);L=a(81918);K=a(58098);M=a(76928);P=a(69997);I=a(90597);O=a(85125);Q=a(87386);T=a(87061);U=a(84183);X=a(77134);Y=a(1639);W=a(91591);Z=a(69216);aa=a(49721);ca=a(45842);da=a(22365);ha=a(78789);S=a(20483);N=a(77687);V=a(6214);ba=a(31298);fa=a(4203);ia=a(91581);ka=a(79274);pa=a(22816);oa=a(66057);la=a(44720);R=a(95947);ea=a(4246);ja=a(84130);sa=a(34043);ta=a(61453);qa=a(90030);Aa=a(2010);Ga=a(75236);na=a(76892);va=a(33258);xa=a(19699);b.MC=new t.Be(function(ra){ra(d.yia).jN(function(){return {};}).sa();ra(d.AV).Pp(JSON);ra(d.Fib).Pp(Ba);ra(g.chb).Pp(Math);ra(d.Tab).Pp(da.eia);ra(d.wia).Pp(da.eC);ra(d.cib).Pp(da.OV);ra(d.y7a).Pp(Date);ra(d.p5).Pp(da.zg);ra(d.vYb).Pp(da.vO);ra(T.V6a).to(U.Qza).sa();ra(L.fe).to(J.Tya).sa();ra(n.Li).to(l.Rza).sa();ra(c.Cl).to(e.wGa).sa();ra(f.XE).to(h.SBa).sa();ra(w.gF).to(C.RFa).sa();ra(g.Pia).to(k.ZFa).sa();ra(I.VB).to(P.hAa).sa();ra(I.z7a).to(O.gAa).sa();ra(m.oF).to(y.yHa).sa();ra(p.MN).to(A.mza).sa();ra(r.mm).to(z.nza).sa();ra(q.Am).to(B.zHa).sa();ra(u.Mi).Pp(D.jO);ra(la.U3).to(R.ZAa).sa();ra(v.$Aa).to(F.qm).sTa();ra(v.bha).to(F.qm).sa();ra(v.K7a).to(F.qm).sa();ra(v.pBa).to(F.qm).sa();ra(E.$gb).to(G.iW).sa();ra(K.j7a).to(M.Vza).sa();ra(X.mW).to(Y.qja).sa();ra(X.k5).to(Y.qja).sa();ra("Factory").APb(Q.zb);ra(W.kAa).to(Z.jAa).sa();ra(ca.nJ).Zf(function(ya){return function(Ca){return new aa.bHa(ya.Ib.get(L.fe),ya.Ib.get(c.Cl),Ca);};});ra(sa.aha).Zf(function(ya){return function(Ca){return new ta.fAa(ya.Ib.get(c.Cl),Ca);};});ra(ha.PFa).uUc(S.Dia);ra(ha.J_b).Zf(function(ya){var Ca;Ca=ya.Ib.get(ha.PFa);return function(){return new Ca(!1);};});ra(ha.K_b).Zf(function(ya){var Ca;Ca=ya.Ib.get(ha.PFa);return function(){return new Ca(!0);};});ra(N.$hb).Zf(function(){return function(ya){return new V.aib(ya);};});ra(ka.w5).Zf(function(ya){return function(Ca,Ja,Ka){return new ba.zeb(ya.Ib.get(I.VB),ya.Ib.get(fa.Hc),ya.Ib.get(ia.xt),Ca,Ja,Ka);};});ra(x.$cb).Zf(function(){return function(ya){return new H.adb(ya);};});ra(pa.$U).to(oa.uza);ra(Ga.vja).to(na.vHa).sa();ra(Ga.bib).to(na.uHa).sa();ra(ea.Q5).Zf(function(ya){return function(Ca,Ja){return new ja.eHa(ya.Ib.get(c.Cl),Ca,Ja);};});ra(qa.F8a).to(Aa.UAa).sa();ra(va.Hza).to(xa.Fza).sa();});},90030:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Bj="_ANY_";b.F8a="EnricherSymbol";},15160:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$Aa="EventSourceSymbol";b.pBa="GlobalEventSourceSymbol";b.bha="DebugEventSourceSymbol";b.K7a="DiagnosticsEventSourceSymbol";},44720:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.U3="EventSourceFactorySymbol";},62665:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.XE="IdProviderSymbol";},42207:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Mi="IsTypeSymbol";},43193:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.BV={};t[t.vZc=8]="Backspace";t[t.U3c=9]="Tab";t[t.Z_c=13]="Enter";t[t.F3c=16]="Shift";t[t.WZc=17]="Ctrl";t[t.QYc=18]="Alt";t[t.B2c=19]="PauseBreak";t[t.OZc=20]="CapsLock";t[t.a0c=27]="Escape";t[t.I3c=32]="Space";t[t.A2c=33]="PageUp";t[t.z2c=34]="PageDown";t[t.Y_c=35]="End";t[t.E0c=36]="Home";t[t.Z0c=37]="LeftArrow";t[t.f4c=38]="UpArrow";t[t.U2c=39]="RightArrow";t[t.y_c=40]="DownArrow";t[t.U0c=45]="Insert";t[t.o_c=46]="Delete";t[t.t4c=48]="Zero";t[t.m2c=49]="One";t[t.X3c=50]="Two";t[t.V3c=51]="Three";t[t.w0c=52]="Four";t[t.u0c=53]="Five";t[t.G3c=54]="Six";t[t.E3c=55]="Seven";t[t.X_c=56]="Eight";t[t.W1c=57]="Nine";t[t.FYc=65]="A";t[t.Cga=66]="B";t[t.BZc=67]="C";t[t.LUb=68]="D";t[t.E=69]="E";t[t.b0c=70]="F";t[t.nBa=71]="G";t[t.C0c=72]="H";t[t.F0c=73]="I";t[t.V0c=74]="J";t[t.gCa=75]="K";t[t.uXb=76]="L";t[t.$Ca=77]="M";t[t.w1c=78]="N";t[t.i2c=79]="O";t[t.o2c=80]="P";t[t.Q=81]="Q";t[t.Q2c=82]="R";t[t.W2c=83]="S";t[t.O0b=84]="T";t[t.Y3c=85]="U";t[t.g4c=86]="V";t[t.l4c=87]="W";t[t.o4c=88]="X";t[t.r4c=89]="Y";t[t.s4c=90]="Z";t[t.$0c=91]="LeftWindowKey";t[t.V2c=92]="RightWindowKey";t[t.B3c=93]="SelectKey";t[t.Z1c=96]="Numpad0";t[t.$1c=97]="Numpad1";t[t.a2c=98]="Numpad2";t[t.b2c=99]="Numpad3";t[t.c2c=100]="Numpad4";t[t.d2c=101]="Numpad5";t[t.e2c=102]="Numpad6";t[t.f2c=103]="Numpad7";t[t.g2c=104]="Numpad8";t[t.h2c=105]="Numpad9";t[t.v1c=106]="Multiply";t[t.PYc=107]="Add";t[t.O3c=109]="Subtract";t[t.n_c=110]="DecimalPoint";t[t.x_c=111]="Divide";t[t.c0c=112]="F1";t[t.g0c=113]="F2";t[t.h0c=114]="F3";t[t.i0c=115]="F4";t[t.j0c=116]="F5";t[t.k0c=117]="F6";t[t.l0c=118]="F7";t[t.m0c=119]="F8";t[t.n0c=120]="F9";t[t.d0c=121]="F10";t[t.e0c=122]="F11";t[t.f0c=123]="F12";t[t.X1c=144]="NumLock";t[t.z3c=145]="ScrollLock";t[t.C3c=186]="SemiColon";t[t.$_c=187]="Equals";t[t.TZc=188]="Comma";t[t.k_c=189]="Dash";t[t.D2c=190]="Period";t[t.v0c=191]="ForwardSlash";t[t.W3c=192]="Tilde";t[t.n2c=219]="OpenBracket";t[t.uZc=220]="BackSlash";t[t.QZc=221]="CloseBracket";t[t.P2c=222]="Quote";},67572:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$cb="OneWayCounterFactorySymbol";},91591:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.kAa="DecoderTimeoutPathologistSymbol";},91581:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.xt="PlatformSymbol";},63368:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Fib="WindowTimersSymbol";b.AV="JSONSymbol";b.cib="UserAgentSymbol";b.p5="NavigatorSymbol";b.vYb="MediaSourceSymbol";b.Tab="LocationSymbol";b.y7a="DateSymbol";b.wia="PerformanceSymbol";b.yia="PlatformExtraInfoSymbol";},79274:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.w5="PlayerErrorFactorySymbol";},78789:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.PFa="PrioritizedSetOfListsSymbol";b.J_b="PrioritizedSetOfListsFactorySymbol";b.K_b="PrioritizedSetOfSetsFactorySymbol";},59818:function(t,b){function a(d){var n;n=Error.call(this,"TimeoutError");this.message=n.message;("stack" in n) && (this.stack=n.stack);this.interval=d;}Object.defineProperty(b,"__esModule",{value:!0});b.gF=b.ex=void 0;Ia(a,Error);b.ex=a;b.gF="PromiseTimerSymbol";},10306:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.chb="SystemRandomSymbol";b.Pia="RandomGeneratorSymbol";},53085:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Cl="SchedulerSymbol";},88490:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$gb="StringUtilsSymbol";},14423:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.XGa=void 0;n=a(22365);d.zxb=function(){var c;c=n.dJ && n.dJ.height;return c?1080 <= c?1080:720:720;};b.XGa=d;},45842:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.nJ="ThrottleFactorySymbol";},4246:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Q5="TimeoutMonitorFactorySymbol";},77134:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.mW="TimingApiSymbol";b.k5="MilestoneTimingApiSymbol";},77687:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$hb="UrlFactorySymbol";},84408:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.oF="Utf8EncoderSymbol";},74870:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Am="UtilitiesSymbol";},36258:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Xdb="PboPlaydataValidatorSymbol";b.Tdb="PboPlaydataArrayValidatorSymbol";b.Udb="PboPlaydataCollectionValidatorSymbol";},63156:function(t,b){var d,n,c,f;function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.Uu=b.nb=b.Nn=void 0;(function(g){g[g.yr=0]="STANDARD";g[g.XI=1]="LIMITED";g[g.s2c=2]="PREVIEW";})(d || (d={}));(function(g){g[g.HAVE_NOTHING=0]="HAVE_NOTHING";g[g.HAVE_METADATA=1]="HAVE_METADATA";g[g.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA";g[g.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA";g[g.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA";})(n || (n={}));(function(g){g.dTb="asl_start";g.bTb="asl_comp";g.NYc="asl_exc";g.cTb="asl_fail";g.y0b="stf_creat";g.NWb="idb_open";g.KWb="idb_block";g.UWb="idb_upgr";g.TWb="idb_succ";g.LWb="idb_error";g.MWb="idb_invalid_state";g.PWb="idb_open_timeout";g.RWb="idb_open_wrkarnd";g.SWb="idb_storelen_exc";g.OWb="idb_open_exc";g.QWb="idb_timeout_invalid_storelen";g.lYb="msl_load_data";g.nYb="msl_load_no_data";g.mYb="msl_load_failed";})(c || (b.Nn=c={}));(function(g){g.qEa="PlaybackRequestStart";g.pEa="PlaybackRequestEnd";g.Mia="RequestPrefetchManifestStart";g.Lia="RequestPrefetchManifestEnd";g.Kia="RequestManifestStart";g.Jia="RequestManifestEnd";g.Iia="RequestLicenseStart";g.Hia="RequestLicenseEnd";g.x3="RequestTimedTextUrlStart";g.w3="RequestTimedTextUrlEnd";g.v3="RequestAudioUrlStart";g.u3="RequestAudioUrlEnd";g.z3="RequestVideoUrlStart";g.y3="RequestVideoUrlEnd";g.qya="AppendBufferStart";g.pya="AppendBufferEnd";g.mGa="SetMediaKeysStart";g.lGa="SetMediaKeysEnd";g.rha="GenerateChallengeStart";g.qha="GenerateChallengeEnd";g.pga="ApplyLicenseStart";g.oga="ApplyLicenseEnd";})(f || (b.nb=f={}));b.Uu=a;a.Nn=c;a.VI=n;},36129:function(t,b){var a,d,n;Object.defineProperty(b,"__esModule",{value:!0});b.UE=b.J8a=b.I8a=b.XAa=b.H8a=b.nha=b.aia=b.Bha=b.aWb=b.Y=b.da=void 0;(function(c){c[c.yh=7001]="UNKNOWN";c[c.Ohb=7002]="UNHANDLED_EXCEPTION";c[c.XWb=7003]="INIT_COMPONENT_LOG_TO_REMOTE";c[c.uWb=7004]="HLS_NOT_SUPPORTED";c[c.OBa=7010]="INIT_ASYNCCOMPONENT";c[c.aXb=7011]="INIT_HTTP";c[c.VWb=7014]="INIT_BADMOVIEID";c[c.x$a=7020]="INIT_PLAYBACK_LOCK";c[c.y$a=7022]="INIT_SESSION_LOCK";c[c.bXb=7029]="INIT_POSTAUTHORIZE";c[c.w$a=7031]="INIT_HEADER_MEDIA";c[c.cXb=7034]="INIT_TIMEDTEXT_TRACK";c[c.VSb=7037]="ASE_SESSION_ERROR";c[c.USb=7038]="ASE_SEEK_THREW";c[c.WSb=7039]="ASE_SKIPPED_THREW";c[c.XSb=7040]="ASE_UNDERFLOW_THREW";c[c.YWb=7041]="INIT_CORE_OBJECTS1";c[c.ZWb=7042]="INIT_CORE_OBJECTS2";c[c.$Wb=7043]="INIT_CORE_OBJECTS3";c[c.q$a=7053]="INIT_COMPONENT_STORAGE";c[c.r$a=7054]="INIT_COMPONENT_STORAGELOCK";c[c.m$a=7058]="INIT_COMPONENT_MAINTHREADMONITOR";c[c.PBa=7059]="INIT_COMPONENT_DEVICE";c[c.n$a=7063]="INIT_COMPONENT_MSL";c[c.l$a=7066]="INIT_COMPONENT_LOGBLOBBATCHER";c[c.WI=7067]="INIT_COMPONENT_PERSISTEDPLAYDATA";c[c.v$a=7083]="INIT_COMPONENT_WEBCRYPTO";c[c.k$a=7086]="INIT_COMPONENT_IDB_VIEWER_TOOL";c[c.i$a=7088]="INIT_COMPONENT_BATTERY_MANAGER";c[c.h$a=7089]="INIT_COMPONENT_ASE";c[c.K0c=7091]="INIT_COMPONENT_DRM_CACHE";c[c.WWb=7092]="INIT_COMPONENT_DRM";c[c.j$a=7094]="INIT_COMPONENT_FTL";c[c.o$a=7095]="INIT_COMPONENT_PREPARE_MODEL";c[c.s$a=7096]="INIT_COMPONENT_VIDEO_SESSION_EDGE";c[c.t$a=7097]="INIT_COMPONENT_VIDEO_SESSION_MDX";c[c.u$a=7098]="INIT_COMPONENT_VIDEO_SESSION_TEST";c[c.p$a=7099]="INIT_COMPONENT_SOCKETROUTER";c[c.pO=7111]="MANIFEST";c[c.FXb=7114]="MANIFEST_MISTMATCH";c[c.ebb=7117]="MANIFEST_VERIFY";c[c.x0b=7120]="START";c[c.kab=7121]="LICENSE";c[c.T2c=7122]="RELEASE";c[c.G5=7123]="STOP";c[c.W$a=7125]="KEEPALIVE";c[c.PZb=7131]="PING";c[c.VVb=7134]="ENGAGE";c[c.zXb=7137]="LOGBLOB";c[c.ddb=7138]="PAUSE";c[c.rfb=7139]="RESUME";c[c.Yfb=7140]="SPLICE";c[c.yTb=7142]="BIND";c[c.zTb=7144]="BIND_DEVICE";c[c.lWb=7145]="GENERATE_SCREENSHOTS";c[c.h4a=7146]="AD_EVENT";c[c.RZb=7147]="PLAYER_RESTART";c[c.OSb=7148]="ALE_PROVISION_FAILURE";c[c.d3c=7200]="SOCKET_ROUTER_FAILURE";c[c.VZb=7202]="PLAY_INIT_EXCEPTION";c[c.rEa=7332]="PLAY_MSE_EME_KEY_STATUS_CHANGE_EXPIRED";c[c.b_b=7333]="PLAY_MSE_EME_KEY_STATUS_CHANGE_INTERNAL_ERROR";c[c.ndb=7334]="PLAY_MSE_EME_KEY_STATUS_CHANGE_OUTPUT_NOT_ALLOWED";c[c.c_b=7335]="PLAY_MSE_EME_KEY_STATUS_EXCEPTION";c[c.sEa=7336]="PLAY_MSE_EME_KEY_STATUS_CHANGE_OUTPUT_RESTRICTED";c[c.a_b=7338]="PLAY_MSE_EME_KEY_MAPPING_EXCEPTION";c[c.pdb=7351]="PLAY_MSE_NOTSUPPORTED";c[c.mdb=7353]="PLAY_MSE_DECODER_TIMEOUT";c[c.tEa=7355]="PLAY_MSE_SOURCEADD";c[c.WZb=7356]="PLAY_MSE_CREATE_MEDIAKEYS";c[c.e_b=7357]="PLAY_MSE_GENERATEKEYREQUEST";c[c.odb=7361]="PLAY_MSE_EVENT_ERROR";c[c.qdb=7362]="PLAY_MSE_SETMEDIAKEYS";c[c.ria=7363]="PLAY_MSE_EVENT_KEYERROR";c[c.d_b=7364]="PLAY_MSE_EME_SESSION_CLOSE";c[c.f_b=7365]="PLAY_MSE_GETCURRENTTIME";c[c.g_b=7367]="PLAY_MSE_SETCURRENTTIME";c[c.h_b=7371]="PLAY_MSE_SOURCEAPPEND";c[c.l_b=7375]="PLAY_MSE_UNEXPECTED_SEEKING";c[c.k_b=7376]="PLAY_MSE_UNEXPECTED_SEEKED";c[c.j_b=7377]="PLAY_MSE_UNEXPECTED_REWIND";c[c.i_b=7381]="PLAY_MSE_SOURCEBUFFER_ERROR";c[c.sdb=7382]="PLAY_MSE_SOURCEBUFFER_CHANGETYPE";c[c.XZb=7391]="PLAY_MSE_CREATE_MEDIASOURCE";c[c.YZb=7392]="PLAY_MSE_CREATE_MEDIASOURCE_OBJECTURL";c[c.ZZb=7393]="PLAY_MSE_CREATE_MEDIASOURCE_OPEN";c[c.p2c=7394]="PLAY_MSE_EME_MISSING_DRMHEADER";c[c.q2c=7395]="PLAY_MSE_EME_MISSING_PSSH";c[c.r2c=7397]="PLAY_MSE_EME_NO_PRK_SUPPORT";c[c.$Zb=7398]="PLAY_MSE_DURATIONCHANGE_ERROR";c[c.rdb=7399]="PLAY_MSE_SET_LICENSE_ERROR";c[c.p8a=7400]="EXTERNAL";c[c.qia=7500]="PAUSE_TIMEOUT";c[c.Eha=7502]="INACTIVITY_TIMEOUT";c[c.eTb=7510]="AUTHORIZATION_EXPIRED";c[c.PVb=7700]="EME_INVALID_KEYSYSTEM";c[c.e8a=7701]="EME_CREATE_MEDIAKEYS_SYSTEMACCESS_FAILED";c[c.CAa=7702]="EME_CREATE_MEDIAKEYS_FAILED";c[c.jha=7703]="EME_GENERATEREQUEST_FAILED";c[c.k8a=7704]="EME_UPDATE_FAILED";c[c.E_c=7705]="EME_KEYSESSION_ERROR";c[c.i8a=7706]="EME_KEYMESSAGE_EMPTY";c[c.P_c=7707]="EME_REMOVE_FAILED";c[c.H_c=7708]="EME_LOAD_FAILED";c[c.NVb=7709]="EME_CREATE_SESSION_FAILED";c[c.EAa=7710]="EME_LDL_RENEWAL_ERROR";c[c.g8a=7711]="EME_INVALID_INITDATA_DATA";c[c.h8a=7712]="EME_INVALID_LICENSE_DATA";c[c.G_c=7713]="EME_LDL_KEYSSION_ALREADY_CLOSED";c[c.d8a=7716]="EME_CLOSE_FAILED";c[c.FAa=7717]="EME_SESSION_CLOSED_UNEXPECTEDLY";c[c.SVb=7718]="EME_SET_SERVER_CERTIFICATE";c[c.QZb=7800]="PLAYDATA_STORE_FAILURE";c[c.o3=7900]="BRANCH_PLAY_FAILURE";c[c.p3=7901]="BRANCH_QUEUE_FAILURE";c[c.R5a=7902]="BRANCH_UPDATE_NEXT_SEGMENT_WEIGHTS_FAILURE";c[c.GTb=7903]="BRANCH_CHOICE_MAP_MISSING";c[c.AZb=8100]="PBO_EVENTLOOKUP_FAILURE";})(a || (b.da=a={}));(function(c){c[c.yh=1001]="UNKNOWN";c[c.nr=1003]="EXCEPTION";c[c.gXb=1004]="INVALID_DI";c[c.$Sb=1011]="ASYNCLOAD_EXCEPTION";c[c.aTb=1013]="ASYNCLOAD_TIMEOUT";c[c.MYc=1015]="ASYNCLOAD_BADCONFIG";c[c.YSb=1016]="ASYNCLOAD_COMPONENT_DUPLICATE";c[c.ZSb=1017]="ASYNCLOAD_COMPONENT_MISSING";c[c.J4=1101]="HTTP_UNKNOWN";c[c.GBa=1102]="HTTP_XHR";c[c.F4=1103]="HTTP_PROTOCOL";c[c.E4=1104]="HTTP_OFFLINE";c[c.I4=1105]="HTTP_TIMEOUT";c[c.fO=1106]="HTTP_READTIMEOUT";c[c.eO=1107]="HTTP_ABORT";c[c.K9a=1108]="HTTP_PARSE";c[c.G9a=1110]="HTTP_BAD_URL";c[c.G4=1111]="HTTP_PROXY";c[c.fDa=1203]="MSE_AUDIO";c[c.gDa=1204]="MSE_VIDEO";c[c.gYb=1250]="MSE_MEDIA_ERR_BASE";c[c.i1c=1251]="MSE_MEDIA_ERR_ABORTED";c[c.l1c=1252]="MSE_MEDIA_ERR_NETWORK";c[c.j1c=1253]="MSE_MEDIA_ERR_DECODE";c[c.m1c=1254]="MSE_MEDIA_ERR_SRC_NOT_SUPPORTED";c[c.k1c=1255]="MSE_MEDIA_ERR_ENCRYPTED";c[c.lV=1260]="EME_MEDIA_KEYERR_BASE";c[c.N_c=1261]="EME_MEDIA_KEYERR_UNKNOWN";c[c.I_c=1262]="EME_MEDIA_KEYERR_CLIENT";c[c.M_c=1263]="EME_MEDIA_KEYERR_SERVICE";c[c.L_c=1264]="EME_MEDIA_KEYERR_OUTPUT";c[c.K_c=1265]="EME_MEDIA_KEYERR_HARDWARECHANGE";c[c.J_c=1266]="EME_MEDIA_KEYERR_DOMAIN";c[c.O_c=1269]="EME_MEDIA_UNAVAILABLE_CDM";c[c.OVb=1270]="EME_INTERNAL_ERROR";c[c.MVb=1271]="EME_CLOSED_BY_APPLICATION";c[c.QVb=1272]="EME_RELEASE_ACKNOWLEDGED";c[c.DAa=1273]="EME_HARDWARE_CONTEXT_RESET";c[c.RVb=1274]="EME_RESOURCE_EVICTED";c[c.C_c=1280]="EME_ERROR_NODRMSESSSION";c[c.B_c=1281]="EME_ERROR_NODRMREQUESTS";c[c.A_c=1282]="EME_ERROR_INDIV_FAILED";c[c.D_c=1283]="EME_ERROR_UNSUPPORTED_MESSAGETYPE";c[c.R_c=1284]="EME_TIMEOUT_MESSAGE";c[c.Q_c=1285]="EME_TIMEOUT_KEYCHANGE";c[c.j8a=1286]="EME_UNDEFINED_DATA";c[c.kha=1287]="EME_INVALID_STATE";c[c.F_c=1288]="EME_LDL_DOES_NOT_SUPPORT_PRK";c[c.f8a=1289]="EME_EMPTY_DATA";c[c.Q3=1290]="EME_TIMEOUT";c[c.E1c=1303]="NCCP_METHOD_NOT_SUPPORTED";c[c.H1c=1305]="NCCP_PARSEXML";c[c.o_b=1309]="PROCESS_EXCEPTION";c[c.G1c=1311]="NCCP_NETFLIXID_MISSING";c[c.I1c=1312]="NCCP_SECURENETFLIXID_MISSING";c[c.B1c=1313]="NCCP_HMAC_MISSING";c[c.A1c=1315]="NCCP_HMAC_MISMATCH";c[c.z1c=1317]="NCCP_HMAC_FAILED";c[c.y1c=1321]="NCCP_CLIENTTIME_MISSING";c[c.x1c=1323]="NCCP_CLIENTTIME_MISMATCH";c[c.c9a=1331]="GENERIC";c[c.FYb=1333]="NCCP_PROTOCOL_INVALIDDEVICECREDENTIALS";c[c.GYb=1337]="NCCP_PROTOCOL_REDIRECT_LOOP";c[c.J1c=1341]="NCCP_TRANSACTION";c[c.C1c=1343]="NCCP_INVALID_DRMTYPE";c[c.D1c=1344]="NCCP_INVALID_LICENCE_RESPONSE";c[c.F1c=1345]="NCCP_MISSING_PAYLOAD";c[c.x2c=1346]="PROTOCOL_NOT_INITIALIZED";c[c.w2c=1347]="PROTOCOL_MISSING_FIELD";c[c.v2c=1348]="PROTOCOL_MISMATCHED_PROFILEGUID";c[c.jF=1402]="STORAGE_NODATA";c[c.g3c=1403]="STORAGE_EXCEPTION";c[c.o3c=1405]="STORAGE_QUOTA_NOT_GRANTED";c[c.p3c=1407]="STORAGE_QUOTA_TO_SMALL";c[c.agb=1411]="STORAGE_LOAD_ERROR";c[c.z0b=1412]="STORAGE_LOAD_TIMEOUT";c[c.bgb=1414]="STORAGE_SAVE_ERROR";c[c.C0b=1415]="STORAGE_SAVE_TIMEOUT";c[c.sGa=1417]="STORAGE_DELETE_ERROR";c[c.$fb=1418]="STORAGE_DELETE_TIMEOUT";c[c.n3c=1421]="STORAGE_FS_REQUESTFILESYSTEM";c[c.k3c=1423]="STORAGE_FS_GETDIRECTORY";c[c.m3c=1425]="STORAGE_FS_READENTRIES";c[c.h3c=1427]="STORAGE_FS_FILEREAD";c[c.j3c=1429]="STORAGE_FS_FILEWRITE";c[c.i3c=1431]="STORAGE_FS_FILEREMOVE";c[c.l3c=1432]="STORAGE_FS_PARSEJSON";c[c.B0b=1451]="STORAGE_NO_LOCALSTORAGE";c[c.A0b=1453]="STORAGE_LOCALSTORAGE_ACCESS_EXCEPTION";c[c.T1c=1501]="NTBA_UNKNOWN";c[c.S1c=1502]="NTBA_EXCEPTION";c[c.O1c=1504]="NTBA_CRYPTO_KEY";c[c.Q1c=1506]="NTBA_CRYPTO_OPERATION";c[c.P1c=1508]="NTBA_CRYPTO_KEYEXCHANGE";c[c.R1c=1515]="NTBA_DECRYPT_UNSUPPORTED";c[c.q7a=1553]="DEVICE_NO_ESN";c[c.UUb=1555]="DEVICE_ERROR_GETTING_ESN";c[c.r0c=1701]="FORMAT_UNKNOWN";c[c.fWb=1713]="FORMAT_XML";c[c.s0c=1715]="FORMAT_XML_CONTENT";c[c.p0c=1721]="FORMAT_BASE64";c[c.q0c=1723]="FORMAT_DFXP";c[c.IWb=1801]="INDEXDB_OPEN_EXCEPTION";c[c.f$a=1802]="INDEXDB_NOT_SUPPORTED";c[c.HWb=1803]="INDEXDB_OPEN_ERROR";c[c.g$a=1804]="INDEXDB_OPEN_NULL";c[c.GWb=1805]="INDEXDB_OPEN_BLOCKED";c[c.JWb=1807]="INDEXDB_OPEN_TIMEOUT";c[c.FWb=1808]="INDEXDB_INVALID_STORE_STATE";c[c.Fha=1809]="INDEXDB_ACCESS_EXCEPTION";c[c.oYb=1901]="MSL_UNKNOWN";c[c.p1c=1911]="MSL_INIT_NO_MSL";c[c.mbb=1913]="MSL_INIT_ERROR";c[c.kYb=1915]="MSL_INIT_NO_WEBCRYPTO";c[c.iYb=1931]="MSL_ERROR";c[c.obb=1933]="MSL_REQUEST_TIMEOUT";c[c.nbb=1934]="MSL_READ_TIMEOUT";c[c.jYb=1935]="MSL_ERROR_HEADER";c[c.n1c=1936]="MSL_ERROR_ENVELOPE";c[c.o1c=1937]="MSL_ERROR_MISSING_PAYLOAD";c[c.lbb=1957]="MSL_ERROR_REAUTH";c[c.JHa=2103]="WEBCRYPTO_MISSING";c[c.m4c=2105]="WEBCRYPTOKEYS_MISSING";c[c.s1b=2107]="WEBCRYPTO_IFRAME_LOAD_ERROR";c[c.CZc=2200]="CACHEDDATA_PARSEJSON";c[c.iUb=2201]="CACHEDDATA_UNSUPPORTED_VERSION";c[c.DZc=2202]="CACHEDDATA_UPGRADE_FAILED";c[c.Iga=2203]="CACHEDDATA_INVALID_FORMAT";c[c.IYc=3E3]="ACCOUNT_CHANGE_INFLIGHT";c[c.JYc=3001]="ACCOUNT_INVALID";c[c.j_c=3100]="DOWNLOADED_MANIFEST_UNAVAILABLE";c[c.i_c=3101]="DOWNLOADED_MANIFEST_PARSE_EXCEPTION";c[c.g_c=3200]="DOWNLOADED_LICENSE_UNAVAILABLE";c[c.h_c=3201]="DOWNLOADED_LICENSE_UNUSEABLE";c[c.f_c=3202]="DOWNLOADED_LICENSE_EXCEPTION";c[c.q3c=3300]="STORAGE_VA_LOAD_ERROR";c[c.r3c=3301]="STORAGE_VA_LOAD_TIMEOUT";c[c.u3c=3302]="STORAGE_VA_SAVE_ERROR";c[c.v3c=3303]="STORAGE_VA_SAVE_TIMEOUT";c[c.s3c=3304]="STORAGE_VA_REMOVE_ERROR";c[c.t3c=3305]="STORAGE_VA_REMOVE_TIMEOUT";c[c.nEa=3077]="PBO_DEVICE_EOL_WARNING";c[c.edb=3078]="PBO_DEVICE_EOL_FINAL";c[c.hdb=3100]="PBO_DEVICE_RESET";c[c.gdb=3101]="PBO_DEVICE_RELOAD";c[c.fdb=3102]="PBO_DEVICE_EXIT";c[c.NZb=5003]="PBO_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW";c[c.pZb=5005]="PBO_ACCOUNT_ON_HOLD";c[c.yZb=5006]="PBO_CONCURRENT_STREAM_QUOTA_EXCEEDED";c[c.oEa=5007]="PBO_INCORRECT_PIN";c[c.KZb=5008]="PBO_MOBILE_ONLY";c[c.OZb=5009]="PBO_VIEWABLE_RESTRICTED_BY_PROFILE";c[c.qZb=5010]="PBO_ADS_UNAVAILABLE_VIEWABLE";c[c.tZb=5011]="PBO_ADS_UNSUPPORTED_DEVICE";c[c.rZb=5012]="PBO_ADS_UNSUPPORTED_CLIENT_APP_VERSION";c[c.sZb=5013]="PBO_ADS_UNSUPPORTED_COUNTRY";c[c.uZb=5014]="PBO_ADS_VPN_USE_DETECTED";c[c.HZb=5015]="PBO_LIVE_STREAMING_UNSUPPORTED_DEVICE";c[c.GZb=5016]="PBO_LIVE_STREAMING_UNSUPPORTED_APP_VERSION";c[c.zZb=5017]="PBO_CONTENT_PREVIEW_MFA_REQUIRED_EXCEPTION";c[c.EZb=5033]="PBO_INSUFFICIENT_MATURITY_LEVEL";c[c.wZb=5059]="PBO_BLACKLISTED_IP";c[c.vZb=5070]="PBO_AGE_VERIFICATION_REQUIRED";c[c.xZb=5080]="PBO_CHOICE_MAP_ERROR";c[c.LZb=5090]="PBO_RESTRICTED_TO_TESTERS";c[c.IZb=5091]="PBO_MALFORMED_REQUEST";c[c.FZb=5092]="PBO_INVALID_SERVICE_VERSION";c[c.JZb=5093]="PBO_MDX_INVALID_CTICKET";c[c.DZb=5094]="PBO_FREE_PREVIEW_ENDED";c[c.MZb=5095]="PBO_STREAMING_LOCATION_DISALLOWED";c[c.CZb=5096]="PBO_EXTRA_MEMBER_STREAM_HOLD";c[c.BZb=5097]="PBO_EXTRA_MEMBER_REMOVED_STREAM_HOLD";c[c.OUb=5100]="DECODER_TIMEOUT_BUFFERING";c[c.QUb=5101]="DECODER_TIMEOUT_PRESENTING";c[c.PUb=5102]="DECODER_TIMEOUT_PLAYING";c[c.vVb=5200]="DOWNLOADER_IO_ERROR";c[c.Q5a=5300]="BRANCHING_SEGMENT_NOTFOUND";c[c.CTb=5301]="BRANCHING_PRESENTER_UNINITIALIZED";c[c.hZc=5302]="BRANCHING_SEGMENT_STREAMING_NOT_STARTED";c[c.lza=5303]="BRANCHING_ASE_UNINITIALIZED";c[c.dZc=5304]="BRANCHING_ASE_FAILURE";c[c.eZc=5305]="BRANCHING_MOMENT_FAILURE";c[c.ATb=5306]="BRANCHING_CURRENT_SEGMENT_UNINITIALIZED";c[c.gZc=5307]="BRANCHING_SEGMENT_LASTPTS_UNINIITALIZED";c[c.DTb=5308]="BRANCHING_SEEK_THREW";c[c.fZc=5309]="BRANCHING_PLAY_NOTENOUGHNEXTSEGMENTS";c[c.BTb=5310]="BRANCHING_PLAY_TIMEDOUT";c[c.ETb=5311]="BRANCHING_SEGMENT_ALREADYQUEUED";c[c.FTb=5312]="BRANCHING_UPDATE_NEXT_SEGMENT_WEIGHTS_THREW";c[c.D0b=5500]="STUDIO_MUXED_MANIFEST";c[c.bDa=5600]="MANIFEST_HYDRATION_FAILURE";c[c.gTb=5700]="AUXILIARY_MANIFEST_ERROR_RETRIEVING_PARENT_MANIFEST";c[c.hTb=5701]="AUXILIARY_MANIFEST_NO_MATCHING_HEACC_AUDIO_STREAM_FOUND";c[c.fTb=5702]="AUXILIARY_MANIFEST_ADBREAK_HYDRATION_FATAL_ERROR";})(d || (b.Y=d={}));(function(c){c[c.sZc=5003]="BR_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW";c[c.iZc=5005]="BR_ACCOUNT_ON_HOLD";c[c.mZc=5006]="BR_CONCURRENT_STREAM_QUOTA_EXCEEDED";c[c.pZc=5033]="BR_INSUFFICIENT_MATURITY_LEVEL";c[c.lZc=5059]="BR_BLACKLISTED_IP";c[c.jZc=5070]="BR_AGE_VERIFICATION_REQUIRED";c[c.qZc=2204]="BR_PLAYBACK_CONTEXT_CREATION";c[c.nZc=2205]="BR_DRM_LICENSE_AQUISITION";c[c.rZc=2206]="BR_PLAYBACK_SERVICE_ERROR";c[c.oZc=2207]="BR_ENDPOINT_ERROR";c[c.kZc=2208]="BR_AUTHORIZATION_ERROR";})(n || (b.aWb=n={}));b.Bha={NTb:"400",Yhb:"401",Fdb:"413"};b.aia={fa:1,Br:2,pg:3,Ne:4,R4:5,li:6,jd:7,R3:8,WFa:9,$ia:10};b.nha=function(c,f,g,e){return c == a.qia || c == a.Eha || c == a.rEa && 432E5 <= g || c == a.FAa && f === d.DAa && 0 < Number(e);};b.H8a=function(c){return 1100 <= c && 1199 >= c;};b.XAa=function(c,f){return 1 <= c && 9 >= c?f + c:f;};b.I8a=function(c){return (0,b.XAa)(c,d.gYb);};b.J8a=function(c){return (0,b.XAa)(c,d.lV);};b.UE=function(c){var f,g,e;f={};g=c.errorExternalCode || c.Ng;e=c.errorDetails || c.qf;f.ErrorSubCode=c.errorSubCode || c.Ta || d.yh;g && (f.ErrorExternalCode=g);e && (f.ErrorDetails=e);return f;};},9002:function(t,b,a){var n,c,f,g;function d(e,h){this.Ma=e;this.Ioa=this.Ma.Mg.na(f.ya) - 1;this.rAc=this.mra=0;this.id="" + h.nG();}Object.defineProperty(b,"__esModule",{value:!0});b.Tya=void 0;t=a(22970);n=a(22674);c=a(30869);f=a(5021);a=a(62665);d.prototype.yc=function(){var e,h;e=this.Ma.Mg.na(f.ya) - this.Ioa;if(e < this.mra){h=this.mra + 1;this.Ioa-=h - e;e=h;}this.mra=e;return (0,f.ic)(this.mra);};d.prototype.Fqc=function(){return this.rAc++;};Ha.Object.defineProperties(d.prototype,{nH:{configurable:!0,enumerable:!0,get:function(){return (0,f.ic)(this.Ioa);}}});g=d;b.Tya=g;b.Tya=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Li)),t.__param(1,(0,n.v)(a.XE))],g);},33543:function(t,b,a){var n,c;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.mza=void 0;t=a(22970);a=a(22674);n={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};d.prototype.decode=function(f){for(var g=new Uint8Array(f.length / 2),e=0;e < g.length;e++)g[e]=this.DPb(f.substr(2 * e,2));return g;};d.prototype.encode=function(f){var k;for(var g="",e=f.length,h=0;h < e;h++){k=f[h];g+=("0123456789ABCDEF")[k >>> 4] + ("0123456789ABCDEF")[k & 15];}return g;};d.prototype.Foa=function(f,g){var e;e="";for(g<<=1;g--;)(e=(("0123456789ABCDEF")[f & 15] || "0") + e,f>>>=4);return e;};d.prototype.DPb=function(f){var g;g=f.length;if(7 < g)throw Error("hex to long");for(var e=0,h=0;h < g;h++)e=16 * e + n[f[h]];return e;};c=d;b.mza=c;b.mza=c=t.__decorate([(0,a.aa)()],c);},30033:function(t,b,a){var n,c,f,g,e,h,k,l;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.nza=void 0;t=a(22970);a=a(22674);c=Array.prototype.slice;f=c.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");c=c.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");g={};e={};h={};k={};l=/\s+/g;[f,c].forEach(function(m){var r;for(var p=m.length;p--;){r=m[p];g[r]=p << 18;e[r]=p << 12;h[r]=p << 6;k[r]=p;}});d.prototype.encode=function(m){return n.aPa(m,f,"=");};d.prototype.decode=function(m){return n.TNa(m);};d.TNa=function(m){var p,r,q;m=m.replace(l,"");p=m.length;r=m.charAt(p - 1);"=" !== r && "." !== r || p--;r=m.charAt(p - 1);"=" !== r && "." !== r || p--;r=3 * (p >> 2);q=0;switch(p % 4){case 2:q=1;break;case 3:q=2;break;case 1:throw Error("bad base64");}p=new Uint8Array(r + q);for(var u=0,v=0,w;v < r;){w=g[m[u++]] + e[m[u++]] + h[m[u++]] + k[m[u++]];if(!(0 <= w && 16777215 >= w))throw Error("bad base64");p[v++]=w >>> 16;p[v++]=w >>> 8 & 255;p[v++]=w & 255;}if(0 < q && (w=g[m[u++]] + e[m[u++]],p[v++]=w >>> 16,1 < q && (w+=h[m[u++]],p[v++]=w >>> 8 & 255),!(0 <= w && 16776960 >= w && 0 === (w & (1 < q?255:65535)))))throw Error("bad base64");return p;};d.aPa=function(m,p,r){for(var q="",u=0,v=m.length,w=v - 2,x;u < w;){x=(m[u++] << 16) + (m[u++] << 8) + m[u++];if(!(0 <= x && 16777215 >= x))throw Error("not bytes");q+=p[x >>> 18] + p[x >>> 12 & 63] + p[x >>> 6 & 63] + p[x & 63];}if(u == w){x=(m[u++] << 8) + m[u++];if(!(0 <= x && 65535 >= x))throw Error("not bytes");q+=p[x >>> 10] + p[x >>> 4 & 63] + p[x << 2 & 63] + r;}else if(u == v - 1){x=m[u++];if(!(0 <= x && 255 >= x))throw Error("not bytes");q+=p[x >>> 2] + p[x << 4 & 63] + r + r;}return q;};c=n=d;b.nza=c;b.nza=c=n=t.__decorate([(0,a.aa)()],c);},66057:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m){this.userAgentData=m;this.Je=this.Llc(k,l.data.browserInfo);}Object.defineProperty(b,"__esModule",{value:!0});b.q1b=b.uza=void 0;t=a(22970);n=a(22674);c=a(4203);f=a(83767);g=a(63368);a=a(75236);d.prototype.Jpa=function(k,l){var m;if(l=this.ktc(l))switch(k){case h.tH:m=0 < l.length?Number(l[0]):0;break;case h.X_:m=1 < l.length?Number(l[1]):0;break;case h.J0:m=2 < l.length?Number(l[2]):0;break;case h.Hva:m=3 < l.length?Number(l[3]):0;}return void 0 === m || isNaN(m)?0:m;};d.prototype.ktc=function(k){return null === k || void 0 === k?void 0:k.split(".");};d.prototype.mL=function(k){return this.Je.name === k;};d.prototype.DR=function(k){return this.Je.Pta.name === k;};d.prototype.Pwc=function(k){return this.Je.Ztc === k;};d.prototype.Llc=function(k,l){return Object.assign(Object.assign({Ztc:this.Nlc(k,l)},this.Klc(k,l)),{Pta:this.Plc(k,l)});};d.prototype.Nlc=function(k,l){return l && l.hardware?l.hardware:(/Mobile|iPhone/).test(k)?c.K4.phone:(/Android/).test(k)?c.K4.GTc:c.K4.ucc;};d.prototype.Klc=function(k,l){return l && l.name && l.version?{name:l.name,version:l.version}:(/OPR/).test(k)?{name:c.Jn.opera,version:""}:(/Tesla/).test(k)?{name:c.Jn.gPb,version:""}:(/Quest/).test(k)?{name:c.Jn.oJb,version:""}:(l=k.match(/Edge\/(\d*)\./))?{name:c.Jn.Jv,version:l[1]}:(l=k.match(/Edg\/(\d*)\./))?{name:c.Jn.Qsb,version:l[1]}:(l=k.match(/Chrome\/(\d*)\./))?{name:c.Jn.tMa,version:l[1]}:(l=k.match(/Firefox\/(\d*)\./))?{name:c.Jn.Qub,version:l[1]}:(k=k.match(/(\d*)\.(\d*)\.?(\d*)? Safari/))?{name:c.Jn.rLb,version:k[1]}:{name:c.Jn.tMa,version:""};};d.prototype.Plc=function(k,l){return l && l.os && l.os.name && l.os.version?{name:l.os.name,version:l.os.version}:(/CrOS/).test(k)?{name:c.ur.Sob,version:""}:(l=k.match(/Mac OS X (\d*)_?(\d*)?_?(\d*)?/))?{name:c.ur.$Cb,version:l[1] + "." + l[2] + "." + l[3]}:(/Windows NT/).test(k)?{name:c.ur.Z3a,version:""}:(/Android.*Chrome\/[.0-9]* Mobile/).test(k) || (/Android.*Chrome\/[.0-9]* /).test(k)?{name:c.ur.NKa,version:""}:(/Linux/).test(k)?{name:c.ur.pCb,version:""}:(/iPhone/).test(k)?{name:c.ur.eAb,version:""}:{name:c.ur.Z3a,version:""};};Ha.Object.defineProperties(d.prototype,{nAb:{configurable:!0,enumerable:!0,get:function(){return this.mL(c.Jn.tMa);}},YTa:{configurable:!0,enumerable:!0,get:function(){return this.mL(c.Jn.Jv);}},Hqa:{configurable:!0,enumerable:!0,get:function(){return this.mL(c.Jn.Qsb);}},Lqa:{configurable:!0,enumerable:!0,get:function(){return this.mL(c.Jn.Qub);}},nUa:{configurable:!0,enumerable:!0,get:function(){return this.mL(c.Jn.opera);}},Raa:{configurable:!0,enumerable:!0,get:function(){return this.mL(c.Jn.rLb);}},PAb:{configurable:!0,enumerable:!0,get:function(){return this.mL(c.Jn.gPb);}},Tqa:{configurable:!0,enumerable:!0,get:function(){return this.mL(c.Jn.oJb);}},waa:{configurable:!0,enumerable:!0,get:function(){return this.DR(c.ur.NKa);}},BR:{configurable:!0,enumerable:!0,get:function(){return this.DR(c.ur.eAb);}},Bqa:{configurable:!0,enumerable:!0,get:function(){return this.DR(c.ur.NKa) && this.Pwc(c.K4.phone);}},yaa:{configurable:!0,enumerable:!0,get:function(){return this.DR(c.ur.Sob);}},fUa:{configurable:!0,enumerable:!0,get:function(){return this.DR(c.ur.pCb);}},nD:{configurable:!0,enumerable:!0,get:function(){return this.DR(c.ur.$Cb);}},KA:{configurable:!0,enumerable:!0,get:function(){return this.DR(c.ur.Z3a);}},Av:{configurable:!0,enumerable:!0,get:function(){return this.Jpa(h.tH,this.Je.version);}},oGc:{configurable:!0,enumerable:!0,get:function(){return this.Jpa(h.tH,this.Je.Pta.version);}},pGc:{configurable:!0,enumerable:!0,get:function(){return this.Jpa(h.X_,this.Je.Pta.version);}},qGc:{configurable:!0,enumerable:!0,get:function(){return this.Jpa(h.J0,this.Je.Pta.version);}}});e=d;b.uza=e;b.uza=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(g.cib)),t.__param(1,(0,n.v)(f.iO)),t.__param(2,(0,n.v)(a.vja))],e);(function(k){k[k.tH=0]="major";k[k.X_=1]="minor";k[k.J0=2]="patch";k[k.Hva=3]="revision";})(h || (b.q1b=h={}));},19699:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x,y){this.et=q;this.config=v;this.Gp=w;this.Ma=x;this.is=y;this.log=u.wb("CachedErrors");}Object.defineProperty(b,"__esModule",{value:!0});b.Fza=b.Gza=void 0;t=a(22970);c=a(22674);f=a(36129);g=a(87386);e=a(5021);h=a(17892);k=a(4203);l=a(59818);m=a(30869);p=a(42207);r=a(17612);b.Gza="errors";d.prototype.load=function(){var q,u;q=this;if(!this.config().atb)return Promise.resolve([]);u=(0,e.ic)(this.config().m$b);return this.Gp.Qs(u,this.FCb([])).catch(function(v){q.log.error("Load failed.",v);return [];});};d.prototype.add=function(q,u,v,w,x){var y;y=this;return this.config().atb && u && v && r.mb.g_(u)?this.FCb([{time:q,keySystem:u,code:v,subCode:w,extCode:x}]).then(function(){}).catch(function(A){y.log.error("Add failed.",A);}):Promise.resolve();};d.prototype.Wzc=function(){var q;q=this;return this.et.create().then(function(u){return u.load(b.Gza).then(function(v){var w;return (null === (w=v.value) || void 0 === w?void 0:w.errors) || [];}).catch(function(v){if(v.Ta === f.Y.jF)return (q.log.warn("No CachedErrors."),[]);throw v;});});};d.prototype.Fnc=function(q){return {time:(0,e.Zi)(q[0]),keySystem:q[1],code:q[2],subCode:q[3],extCode:q[4]};};d.sUc=function(q){return [q.time.na(e.Yu),q.keySystem,q.code,q.subCode,q.extCode];};d.prototype.bOc=function(q){var u;u={version:1,errors:q.map(n.sUc)};return this.et.create().then(function(v){return v.save(b.Gza,u,!1);}).then(function(){return q;});};d.prototype.omc=function(q){var u,v;u=(0,e.Zi)(this.config().l$b);v=this.Ma.Mg.ea(u);return q.filter(function(w){return w.time.ea(v).tUa();});};d.prototype.NWc=function(q){return q.filter(this.uwc.bind(this)).map(this.Fnc);};d.prototype.uwc=function(q){return this.is.Wo(q[0]) && this.is.Ft(q[1]) && this.is.Wo(q[2]) && (this.is.Wo(q[3]) || void 0 === q[3]) && (this.is.Ft(q[4]) || void 0 === q[4])?!0:!1;};d.prototype.kmc=function(q){var u;u=this;return q.filter(function(v){return u.config().mlc.includes(v.code);});};d.prototype.lmc=function(q){return q.slice(-this.config().j$b);};d.prototype.FCb=function(q){var u;u=this;return this.Wzc().then(function(v){return u.NWc(v);}).then(function(v){return u.omc(v);}).then(function(v){return v.concat(q);}).then(function(v){return u.kmc(v);}).then(function(v){return u.lmc(v);}).then(function(v){return u.bOc(v);});};a=n=d;b.Fza=a;b.Fza=a=n=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(h.II)),t.__param(1,(0,c.v)(g.zb)),t.__param(2,(0,c.v)(k.Hc)),t.__param(3,(0,c.v)(l.gF)),t.__param(4,(0,c.v)(m.Li)),t.__param(5,(0,c.v)(p.Mi))],a);},31149:function(t,b,a){var n;function d(c,f,g,e,h,k,l,m,p,r,q,u,v,w){this.code=void 0 === c?n.da.yh:c;this.subCode=f;this.extCode=g;this.Psb=e;this.EH=h;this.message=k;this.details=l;this.data=m;this.kPa=p;this.aIc=r;this.alert=q;this.GKa=u;this.Xd=v;this.Jca=w;this.success=!1;}Object.defineProperty(b,"__esModule",{value:!0});b.re=void 0;n=a(36129);d.jj=function(c){var f,g,e;if(c){f=c.stack;g=c.number;e=c.message;e || (e="" + c);f?(c="" + f,0 !== c.indexOf(e) && (c=e + "\n" + c)):c=e;g && (c+="\nnumber:" + g);return c;}return "";};d.prototype.X8=function(c){this.details=d.jj(c);this.data=c;};d.prototype.toString=function(){return JSON.stringify(this.toJSON());};d.prototype.toJSON=function(){return {code:this.code,subCode:this.subCode,extCode:this.extCode,edgeCode:this.Psb,mslCode:this.EH,message:this.message,details:this.details,data:this.data,errorDisplayMessage:this.kPa,playbackServiceError:this.aIc};};d.Eoa=function(c,f){return new d(c,n.Y.nr,void 0,void 0,void 0,void 0,f.message,f.stack);};d.vSb=function(c,f){return new d(c,f,void 0,void 0,void 0,void 0,void 0,void 0);};d.RXc=function(c,f,g){return new d(c,f,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,g);};b.re=d;},84183:function(t,b,a){var n,c,f,g;function d(e){return c.ZU.call(this,e,"ClockConfigImpl") || this;}Object.defineProperty(b,"__esModule",{value:!0});b.Qza=void 0;t=a(22970);n=a(12501);c=a(64174);f=a(22674);a=a(83767);Ia(d,c.ZU);Ha.Object.defineProperties(d.prototype,{wRb:{configurable:!0,enumerable:!0,get:function(){return !1;}}});g=d;b.Qza=g;t.__decorate([n.config(n.pd,"usePerformanceApi")],g.prototype,"wRb",null);b.Qza=g=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(a.Uza))],g);},691:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r){var q;q=this;this.config=l;this.Ggc=m;this.jc=p;this.performance=r;this.NFc=function(u){q.v0a=u.ea(q.Mg);};(0,n.hw)(this,"date");(0,n.hw)(this,"performance");this.Y6b=void 0 !== this.performance && void 0 !== this.performance.timing && void 0 !== this.performance.now;this.v0a=c.ia;this.jc.addListener(k.$Ba.rMb,this.NFc);}Object.defineProperty(b,"__esModule",{value:!0});b.Rza=void 0;t=a(22970);n=a(66523);c=a(5021);f=a(22674);g=a(63368);e=a(87061);h=a(15160);k=a(85001);d.prototype.z6b=function(l){return l.add(this.v0a);};Ha.Object.defineProperties(d.prototype,{Mg:{configurable:!0,enumerable:!0,get:function(){return this.MEb?(0,c.timestamp)(this.performance.timing.navigationStart + this.performance.now()):(0,c.ic)(this.Ggc.now());}},hI:{configurable:!0,enumerable:!0,get:function(){return this.Mg.add(this.v0a);}},MEb:{configurable:!0,enumerable:!0,get:function(){return this.config.wRb && this.Y6b;}}});a=d;b.Rza=a;b.Rza=a=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(e.V6a)),t.__param(1,(0,f.v)(g.y7a)),t.__param(2,(0,f.v)(h.pBa)),t.__param(3,(0,f.v)(g.wia)),t.__param(3,(0,f.optional)())],a);},76928:function(t,b,a){var n,c,f,g;function d(e,h){this.is=e;this.Of=h;}Object.defineProperty(b,"__esModule",{value:!0});b.Vza=void 0;t=a(22970);c=a(22674);f=a(42207);a=a(74870);d.prototype.encode=function(e){var h,k;h=this;k="";this.Of.zQ(e,function(l,m){l=h.ntb(l) + "=" + h.ntb(m);k=k?k + ("," + l):l;});return k;};d.prototype.ntb=function(e){return this.is.tY(e)?this.is.Wo(e)?"" + e:this.is.Ft(e)?(e=e.replace(n.WJb,this.XVa.bind(this)),!n.JKc.test(e) && n.fDc.test(e) && (e='"' + e + '"'),e):this.is.Lka(e)?"" + e:this.is.RJa(e)?"NaN":"":"";};d.prototype.XVa=function(e){return n.map[e];};g=n=d;b.Vza=g;g.map={'"':'""',"\r":"","\n":" "};g.WJb=/(?!^.+)["\r\n](?=.+$)/g;g.JKc=/["].*["]/g;g.fDc=/[", ]/;b.Vza=g=n=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(f.Mi)),t.__param(1,(0,c.v)(a.Am))],g);},61453:function(t,b,a){var n,c;function d(f,g){this.Ad=f;this.Lma=g;}Object.defineProperty(b,"__esModule",{value:!0});b.fAa=void 0;t=a(22970);n=a(22674);a=a(53085);d.prototype.ig=function(f){this.Zg();this.fm=this.Ad.Tq(this.Lma,f);};d.prototype.Zg=function(){this.fm && this.fm.cancel();this.fm=void 0;};c=d;b.fAa=c;b.fAa=c=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Cl))],c);},85125:function(t,b,a){var n,c,f,g;function d(e){e=c.ZU.call(this,e,"DebugConfigImpl") || this;e.z6c=function(){debugger;};return e;}Object.defineProperty(b,"__esModule",{value:!0});b.gAa=void 0;t=a(22970);n=a(12501);c=a(64174);f=a(22674);a=a(83767);Ia(d,c.ZU);Ha.Object.defineProperties(d.prototype,{x9b:{configurable:!0,enumerable:!0,get:function(){return !1;}}});g=d;b.gAa=g;t.__decorate([n.config(n.pd,"breakOnError")],g.prototype,"x9b",null);b.gAa=g=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(a.Uza))],g);},69997:function(t,b,a){var n,c,f,g;function d(e,h,k){this.config=e;this.ec=h;this.wa=k.wb("General");}Object.defineProperty(b,"__esModule",{value:!0});b.hAa=void 0;t=a(22970);n=a(22674);c=a(42207);f=a(90597);a=a(87386);d.prototype.assert=function(){};d.prototype.F7b=function(e,h){this.assert(this.ec.tY(e),h);};d.prototype.G7b=function(e,h){this.assert(this.ec.Ci(e),h);};d.prototype.zla=function(e,h){this.assert(this.ec.Ft(e),h);};d.prototype.M7b=function(e,h){this.assert(this.ec.qx(e),h);};d.prototype.K7b=function(e,h){this.assert(this.ec.Ft(e) || null === e || void 0 === e,h);};d.prototype.yla=function(e,h){this.assert(this.ec.Wo(e),h);};d.prototype.I7b=function(e,h){this.assert(this.ec.LKa(e),h);};d.prototype.L7b=function(e,h){this.assert(this.ec.q7(e),h);};d.prototype.J7b=function(e,h){this.assert(this.ec.U6(e),h);};d.prototype.E7b=function(e,h){this.assert(this.ec.Lka(e),h);};d.prototype.H7b=function(e,h){this.assert(this.ec.Nka(e),h);};d.prototype.dwc=function(){this.assert(!1,"invalid operation, this method should not be called");};g=d;b.hAa=g;b.hAa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.z7a)),t.__param(1,(0,n.v)(c.Mi)),t.__param(2,(0,n.v)(a.zb))],g);},69216:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r){this.Va=p;this.config=r;}Object.defineProperty(b,"__esModule",{value:!0});b.jAa=void 0;t=a(22970);c=a(22674);f=a(81918);g=a(31149);e=a(36129);h=a(85001);k=a(5021);l=a(22365);a=a(21801);d.prototype.fsb=function(p){var r,q,u,v,w,x,y,A,z,B;r=this;v=p.mediaTime.value;w=p.Lt.value;x=p.Zb.value;y=p.state.value;A={segmentId:p.PRa(),mediaTime:v,segmentTime:p.RK(),bufferingState:n.K9b[w],presentingState:n.pJc[x],playbackState:n.bIc[y],mseBuffersBusy:this.vsc(p),intBuffersBusy:this.gqc(p),tabVisible:this.FTc(),decodedFrameCount:this.Zgc(p),videoElementInDom:this.fXc(p),lastVideoSync:this.Va.yc().ea((0,k.ic)(p.cfa)).na(k.ya)};z=x === h.Nb.mh?p.qb.Pg?this.config.HGb:this.config.GGb:this.config.CEb;if(w !== h.jh.zf){if((w=e.Y.OUb,this.Jnb(A.mseBuffersBusy,A.intBuffersBusy)))B=n.S5a;}else if((x !== h.Nb.rg?w=e.Y.QUb:(w=e.Y.PUb,(x=p.Wd) && 0 === x.$oa() && (B=n.x1b)),x=p.Wd))(A.mediaBuffered=x.uZ(),A.mediaBufferedSegments=x.vZ(),x.ac.sourceBuffers.forEach(function(C){var D,F;D=n.Gh[C.mediaType];A[D + "Ranges"]=C.Roa();try{F=C.buffered();}catch(H){F=void 0;}F && 0 !== F.length?(C=1E3 * F.end(0) - v,A[D + "Undecoded"]=C,1 < F.length && (B=n.ITb),v < 1E3 * F.start(0) || v > 1E3 * F.end(0)?B=n.JTb:C < z.na(k.ya)?B=n.KTb:r.Jnb(A.mseBuffersBusy,A.intBuffersBusy) && (B=n.S5a)):(A[D + "Undecoded"]=0,B=n.HTb);}));x=p.q_a.kSa();y=v === (null === (q=x.repositionTrace) || void 0 === q?void 0:q[0].newMediaTime);A.lastRepositionCausedTimeout=y;A.trackChangeInProgress=null === (u=p.bb) || void 0 === u?void 0:u.K2a;Object.assign(A,x);p="";try{p=JSON.stringify(A);}catch(C){p="Cannot stringify details: " + C;}return new g.re(e.da.mdb,w,B,void 0,void 0,void 0,p,void 0);};d.prototype.vsc=function(p){var r;if(p.ac){r={};p.ac.sourceBuffers.forEach(function(q){r[0 === q.type?"audio":"video"]={updating:q.updating()};});return r;}};d.prototype.gqc=function(p){var r;if(p.ac){r={};p.ac.sourceBuffers.forEach(function(q){r[0 === q.type?"audio":"video"]={updating:q.Nj()};});return r;}};d.prototype.FTc=function(){return !l.Ni.hidden;};d.prototype.Zgc=function(p){return (p=p.Wd) && (p=p.ac.Ga) && void 0 !== p.webkitDecodedFrameCount?p.webkitDecodedFrameCount:NaN;};d.prototype.fXc=function(p){if(p=p.Wd)if(p=p.ac.Ga)return l.Ni.body.contains(p);return !1;};d.prototype.Jnb=function(p,r){var q,u,v,w;return !((null === (q=p.audio) || void 0 === q?void 0:q.updating) === (null === (u=r.audio) || void 0 === u?void 0:u.updating) && (null === (v=p.video) || void 0 === v?void 0:v.updating) === (null === (w=r.video) || void 0 === w?void 0:w.updating));};m=n=d;b.jAa=m;m.HTb="1";m.ITb="2";m.JTb="3";m.S5a="4";m.KTb="5";m.x1b="6";m.Gh=["Audio","Video"];m.K9b=["","NORMAL","BUFFERING","STALLED"];m.pJc=["","WAITING","PLAYING ","PAUSED","ENDED"];m.bIc=["STATE_NOTLOADED","STATE_LOADING","STATE_NORMAL","STATE_CLOSING","STATE_CLOSED"];b.jAa=m=n=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(f.fe)),t.__param(1,(0,c.v)(a.MDa))],m);},2010:function(t,b,a){var n,c;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.UAa=void 0;t=a(22970);n=a(22674);c=a(90030);d.prototype.VY=function(f,g){var e;e=this;f && Object.entries(g).forEach(function(h){var k,l,m;k=Ea(h);h=k.next().value;k=k.next().value;if(e.xwc(k)){l=Ea(k);k=l.next().value;m=l.next().value;l=f[k];Array.isArray(l)?(e.dOa(f,h,k),l.forEach(function(p){e.VY(p,m);})):k === c.Bj?Object.values(f).forEach(function(p){e.VY(p,m);}):(e.dOa(f,h,k),"object" === typeof l && e.VY(l,m));}else e.dOa(f,h,k);});};d.prototype.xwc=function(f){return Array.isArray(f);};d.prototype.dOa=function(f,g,e){f.hasOwnProperty(g) || g === e || Object.defineProperty(f,g,{get:function(){return f[e];},set:function(h){return f[e]=h;},enumerable:!0});};a=d;b.UAa=a;b.UAa=a=t.__decorate([(0,n.aa)()],a);},95947:function(t,b,a){var n,c;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.U3=b.ZAa=void 0;t=a(22970);n=a(31811);a=a(22674);d.prototype.create=function(){return new n.qm();};c=d;b.ZAa=c;b.ZAa=c=t.__decorate([(0,a.aa)()],c);b.U3="EventSourceFactorySymbol";},31811:function(t,b,a){var n,c;function d(){this.Ov={};this.id="$es$" + n.counter++;}Object.defineProperty(b,"__esModule",{value:!0});b.qm=void 0;t=a(22970);a=a(22674);d.prototype.addListener=function(f,g,e){var h,k;h="$netflix$player$order" + this.id + "$" + f;if(this.Ov){k=this.Ov[f]?this.Ov[f].slice():[];e && (g[h]=e);0 > k.indexOf(g) && (k.push(g),k.sort(function(l,m){return (l[h] || 0) - (m[h] || 0);}));this.Ov[f]=k;}};d.prototype.removeListener=function(f,g){if(this.Ov && this.Ov[f]){for(var e=this.Ov[f].slice(),h;0 <= (h=e.indexOf(g));)e.splice(h,1);this.Ov[f]=e;}};d.prototype.qd=function(f,g,e){var h;if(this.Ov){h=this.YQa(f);for(f={UU:0};f.UU < h.length;(f={UU:f.UU},f.UU++))e?(function(k){return function(){var l;l=h[k.UU];setTimeout(function(){l(g);},0);};})(f)():h[f.UU].call(this,g);}};d.prototype.Zg=function(){this.Ov=void 0;};d.prototype.on=function(f,g,e){this.addListener(f,g,e);};d.prototype.YQa=function(f){var g;return null !== (g=this.Ov && (this.Ov[f] || (this.Ov[f]=[]))) && void 0 !== g?g:[];};c=n=d;b.qm=c;c.counter=0;b.qm=c=n=t.__decorate([(0,a.aa)()],c);},11629:function(t,b,a){var n,c,f,g,e;function d(h,k){this.Ma=h;this.random=k;}Object.defineProperty(b,"__esModule",{value:!0});b.SBa=void 0;t=a(22970);c=a(22674);f=a(5021);g=a(30869);a=a(10306);d.prototype.nG=function(){return this.Ma.Mg.na(f.Yu) * n.F6a + Math.floor(this.random.random() * n.F6a);};d.prototype.jfc=function(){for(var h=[],k=0;32 > k;k++)h.push(Math.floor(16 * this.random.random()).toString(16));return h.join("");};e=n=d;b.SBa=e;e.F6a=1E8;b.SBa=e=n=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(g.Li)),t.__param(1,(0,c.v)(a.Pia))],e);},52657:function(t,b,a){var n;function d(c,f,g,e,h){this.version=c;this.OS=f;this.J1a=g;this.et=e;this.vfa=h;this.Ly=new n.D$a(c,f,g,e,h);this.Rr=[];}Object.defineProperty(b,"__esModule",{value:!0});b.C$a=void 0;n=a(14494);d.prototype.load=function(c){var f;f=this;return this.Ly.load(c).then(function(){var g;f.Rr=null !== (g=f.Ly.Rr) && void 0 !== g?g:[];});};d.prototype.add=function(c){this.Rr.push(c);return this.Ly.set(this.Rr);};d.prototype.remove=function(c,f){c=this.Uvb(this.b$(c,f));return 0 <= c?(this.Rr.splice(c,1),this.Ly.set(this.Rr)):Promise.resolve();};d.prototype.update=function(c,f){f=this.Uvb(this.b$(c,f));return 0 <= f?(this.Rr[f]=c,this.Ly.set(this.Rr)):Promise.resolve();};d.prototype.b$=function(c,f){for(var g=0;g < this.Rr.length;++g)if(f(this.Rr[g],c))return this.Rr[g];};d.prototype.Uvb=function(c){return c?this.Rr.indexOf(c):-1;};b.C$a=d;},14494:function(t,b,a){var n,c;function d(f,g,e,h,k){this.version=f;this.OS=g;this.J1a=e;this.et=h;this.vfa=k;}Object.defineProperty(b,"__esModule",{value:!0});b.D$a=void 0;n=a(36129);c=a(31149);d.prototype.load=function(f){return this.Vzc(f);};d.prototype.set=function(f){this.Rr=f;return this.GHc();};d.prototype.Vzc=function(f){var g;g=this;this.JCb || (this.JCb=new Promise(function(e,h){function k(l){g.Fhc().then(function(){h(l);}).catch(function(){h(l);});}g.eSa().then(function(l){g.storage=l;return g.storage.load(g.OS);}).then(function(l){var m;l=l.value;try{m=f(l);g.version=m.version;g.Rr=m.data;e();}catch(p){k(p);}}).catch(function(l){l.Ta !== n.Y.jF?h(l):e();});}));return this.JCb;};d.prototype.GHc=function(){var f,g,e,h,k;f=this;if(!this.J1a)return Promise.resolve();if(this.Rwa){h=new Promise(function(l,m){g=l;e=m;});k=function(){f.Rwa=h;f.rOb().then(function(){g();}).catch(function(l){e(l);});};this.Rwa.then(k).catch(k);return h;}return this.Rwa=this.rOb();};d.prototype.rOb=function(){var f,g;f=this;g=this.vfa();return new Promise(function(e,h){f.eSa().then(function(k){return k.save(f.OS,g,!1);}).then(function(){e();}).catch(function(k){h(d.tUc(n.da.QZb,k));});});};d.prototype.Fhc=function(){var f;f=this;return this.J1a?new Promise(function(g,e){f.eSa().then(function(h){return h.remove(f.OS);}).then(function(){g();}).catch(function(h){e(h);});}):Promise.resolve();};d.prototype.eSa=function(){return this.storage?Promise.resolve(this.storage):this.et.create();};d.tUc=function(f,g){var e;if(g.Ta && g.Dc)return new c.re(f,g.Ta,void 0,void 0,void 0,void 0,void 0,g.Dc);if(void 0 !== g.subCode){e=g.message?g.message + " ":"";g.code=f;g.message="" === e?void 0:e;return g;}return g instanceof Error?new c.re(f,n.Y.nr,void 0,void 0,void 0,void 0,g.stack,g):new c.re(f,n.Y.yh,void 0,void 0,void 0,void 0,void 0,g);};b.D$a=d;},76564:function(t,b){var d;function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.jO=void 0;d=/^\S+$/;a.prototype.tY=function(n){return void 0 !== n;};a.prototype.Ci=function(n){return null !== n && void 0 !== n;};a.prototype.p7=function(n){return a.mmb(n);};a.prototype.SJa=function(n){return !(!n || !a.mmb(n));};a.prototype.yP=function(n){return Array.isArray(n);};a.prototype.nmb=function(n){return !(!n || n.constructor != Uint8Array);};a.prototype.Wo=function(n,c,f){return a.Zkb(n,c,f);};a.prototype.RJa=function(n){return a.RJa(n);};a.prototype.LKa=function(n,c,f){return a.nla(n,c,f) && 0 === n % 1;};a.prototype.q7=function(n,c,f){return a.nla(n,c || 0,f);};a.prototype.U6=function(n){return a.nla(n,1);};a.prototype.Z4b=function(n){return a.nla(n,0,255);};a.prototype.$4b=function(n){return n === +n && (0 === n || n !== (n | 0)) && !0;};a.prototype.omb=function(n){return !(!n || !d.test(n));};a.prototype.Ft=function(n){return a.$kb(n);};a.prototype.qx=function(n){return !(!a.$kb(n) || !n);};a.prototype.Lka=function(n){return !0 === n || !1 === n;};a.prototype.Nka=function(n){return "function" == typeof n;};a.$kb=function(n){return "string" == typeof n;};a.Zkb=function(n,c,f){return "number" == typeof n && !isNaN(n) && isFinite(n) && (void 0 === c || n >= c) && (void 0 === f || n <= f);};a.RJa=function(n){return "number" == typeof n && isNaN(n);};a.nla=function(n,c,f){return a.Zkb(n,c,f) && 0 === n % 1;};a.mmb=function(n){return "object" == typeof n;};b.jO=new a();},81734:function(t,b,a){var n,c,f;function d(g,e){this.Dm=e?[e]:[];this.j6="$op$" + f++;this.hb=g;}Object.defineProperty(b,"__esModule",{value:!0});b.wc=void 0;n=a(33096);c=a(45146);f=0;d.prototype.addListener=function(g,e){var h;h=this;(0,c.G8)(g);(0,c.va)(0 > this.Dm.indexOf(g));g[n.oia + this.j6]=e;this.Dm=this.Dm.slice();this.Dm.push(g);this.Dm.sort(function(k,l){return h.ERc(k,l);});};d.prototype.removeListener=function(g){var e;(0,c.G8)(g);this.Dm=this.Dm.slice();0 <= (e=this.Dm.indexOf(g)) && this.Dm.splice(e,1);};d.prototype.set=function(g,e){var h;if(this.hb !== g){h={oldValue:this.hb,newValue:g,Xm:e};this.hb=g;this.j2b=e;g=this.Dm;e=g.length;for(var k=0;k < e;k++)g[k](h);}};d.prototype.when=function(g){var e;e=this;return new Promise(function(h){function k(l){if(g(l.newValue))return (e.removeListener(k),h(l.newValue));}if(g(e.hb))return h(e.hb);e.addListener(k);});};d.prototype.ERc=function(g,e){return (g[n.oia + this.j6] || 0) - (e[n.oia + this.j6] || 0);};Ha.Object.defineProperties(d.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.hb;}},Xm:{configurable:!0,enumerable:!0,get:function(){return this.j2b;}}});b.wc=d;},55099:function(t,b,a){var n;function d(c){this.hoc=c;this.Qpa=!1;this.fqa=this.Jh=this.r2=0;this.kaa=!1;this.gqa=0;}Object.defineProperty(b,"__esModule",{value:!0});b.adb=void 0;n=a(32687);d.prototype.uKa=function(c){c < this.r2 && (this.Jh+=this.r2);this.r2=c;this.Qpa=!0;};d.prototype.gpc=function(){if(this.Qpa)return this.kaa?this.gqa - this.fqa:this.Jh + this.r2 - this.fqa;};d.prototype.refresh=function(){var c;c=this.hoc();(0,n.pc)(c) && this.uKa(c);};d.prototype.RRc=function(){this.kaa || (this.Qpa && (this.gqa=this.Jh + this.r2),this.kaa=!0);};d.prototype.qSc=function(){this.kaa && (this.Qpa && (this.fqa+=this.Jh + this.r2 - this.gqa),this.gqa=0,this.kaa=!1);};b.adb=d;},72465:function(t,b){function a(d){this.value=d;}Object.defineProperty(b,"__esModule",{value:!0});b.lEa=void 0;a.empty=function(){return a.of(void 0);};a.of=function(d){return new a(d);};a.prototype.or=function(d){return void 0 === this.value?d instanceof Function?d():d:this.value;};a.prototype.map=function(d){return void 0 === this.value?a.empty():a.of(d(this.value));};b.lEa=a;},20483:function(t,b,a){var n;function d(c){this.a3b=void 0 === c?!1:c;this.Fg={0:[]};}Object.defineProperty(b,"__esModule",{value:!0});b.Dia=void 0;t=a(22970);a=a(22674);d.prototype.add=function(c,f){var g;f=void 0 === f?0:f;g=this.Fg[f];g?this.a3b && -1 !== g.indexOf(c) || g.push(c):this.Fg[f]=[c];};d.prototype.remove=function(c,f){this.cq(c,void 0 === f?0:f);};d.prototype.removeAll=function(c){this.cq(c);};d.prototype.flatten=function(){var c;c=this;return Object.keys(this.Fg).sort().reduce(function(f,g){return f.concat(c.Fg[g]);},[]);};d.prototype.cq=function(c,f){Object.entries(this.Fg).forEach(function(g){var e,h;e=Ea(g);g=e.next().value;e=e.next().value;if(void 0 === f || f === parseInt(g)){-1 < (h=e.indexOf(c)) && e.splice(h,1);}});};n=d;b.Dia=n;b.Dia=n=t.__decorate([(0,a.aa)()],n);},94293:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Fia=void 0;b.Fia=function(){var a;a=this;this.promise=new Promise(function(d,n){a.resolve=d;a.reject=n;});};},4734:function(t,b,a){var n,c,f;function d(g){this.Ad=g;}Object.defineProperty(b,"__esModule",{value:!0});b.RFa=void 0;t=a(22970);n=a(22674);c=a(53085);f=a(59818);d.prototype.Qs=function(g,e){var h;h=this;return new Promise(function(k,l){var m;m=h.Ad.Tq(g,function(){l(new f.ex(g));});e.then(function(p){k(p);m.cancel();}).catch(function(p){l(p);m.cancel();});});};a=d;b.RFa=a;b.RFa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Cl))],a);},67525:function(t,b,a){var n,c;function d(f){this.ETc=f;}Object.defineProperty(b,"__esModule",{value:!0});b.ZFa=void 0;t=a(22970);n=a(22674);a=a(10306);d.prototype.random=function(){return this.ETc.random();};d.prototype.wJb=function(f,g){if("number" !== typeof f)(g=f.end,f=f.start);else if("undefined" === typeof g)throw Error("max must be provided for randomInteger API");return Math.round(f + this.random() * (g - f));};c=d;b.ZFa=c;b.ZFa=c=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.chb))],c);},74267:function(t,b){function a(d,n,c){if(null != c){if(0 < c(d,n))throw a.Mqb(d,n);}else if(d.Ml && 0 < d.Ml(n))throw a.Mqb(d,n);this.start=d;this.end=n;}Object.defineProperty(b,"__esModule",{value:!0});b.$Fa=void 0;a.Mqb=function(d,n){return new RangeError("end [" + n + "] must be >= start [" + d + "]");};b.$Fa=a;},61909:function(t,b,a){var c,f,g,e;function d(h){this.Fn=h;(0,f.hw)(this,"timers");}function n(h,k){this.Fn=h;this.lac=k;}Object.defineProperty(b,"__esModule",{value:!0});b.wGa=void 0;t=a(22970);c=a(22674);f=a(66523);g=a(63368);e=a(5021);n.prototype.cancel=function(){this.lac(this.Fn);};d.prototype.ig=function(h){return this.Tq(e.ia,h);};d.prototype.Tq=function(h,k){var l;l=this.Fn.setTimeout(k,h.na(e.ya));return new n(this.Fn,function(m){m.clearTimeout(l);});};d.prototype.JT=function(h,k){var l;l=this.Fn.setInterval(k,h.na(e.ya));return new n(this.Fn,function(m){m.clearInterval(l);});};a=d;b.wGa=a;b.wGa=a=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(g.Fib))],a);},57180:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.iW=void 0;t=a(22970);a=a(22674);d.prototype.format=function(c,f){var e;for(var g=1;g < arguments.length;++g);e=Array.prototype.slice.call(arguments,1);return c.replace(/{(\d+)}/g,function(h,k){return "undefined" != typeof e[k]?e[k]:h;});};d.prototype.TSc=function(c){return JSON.stringify(c,null," ");};n=d;b.iW=n;b.iW=n=t.__decorate([(0,a.aa)()],n);},49721:function(t,b,a){var n,c,f,g;function d(e,h,k){var l;l=this;this.wi=e;this.Ad=h;this.Lma=k;this.x0=function(m){l.fm=void 0;l.XUc(m || l.Lma);};this.MBb=(0,f.ic)(-this.Lma.na(f.ya));}Object.defineProperty(b,"__esModule",{value:!0});b.bHa=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(5021);a=a(53085);d.prototype.ig=function(e){this.a0a=e;this.fm=this.fm || this.Xh(this.x0);};d.prototype.Zg=function(){this.fm && this.fm.cancel();this.fm=void 0;};d.prototype.XUc=function(e){var h,k;h=this.wi.yc();if(this.a0a){k=e.ea(h.ea(this.MBb));0 >= k.Ml(f.ia)?(e=this.a0a,this.a0a=void 0,this.MBb=h,e()):this.fm=this.fm || this.Ad.Tq(k,this.x0.bind(this,e));}};d.prototype.Xh=function(e){return this.Ad.Tq(f.ia,e);};g=d;b.bHa=g;b.bHa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.fe)),t.__param(1,(0,n.v)(a.Cl))],g);},84130:function(t,b,a){var n,c,f;function d(g,e,h){this.Ad=g;this.A2a=e;this.iD=h;}Object.defineProperty(b,"__esModule",{value:!0});b.eHa=void 0;t=a(22970);n=a(53085);c=a(22674);f=a(5021);d.prototype.DK=function(){this.fm || (this.fm=this.Ad.Tq((0,f.ic)(this.A2a),this.iD));};d.prototype.Yq=function(){this.fm && this.fm.cancel();this.fm=void 0;};a=d;b.eHa=a;b.eHa=a=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(n.Cl))],a);},1639:function(t,b,a){var n,c,f,g;function d(e,h){this.Va=e;this.entries=new Set();this.wa=h.wb("TimingApi");}Object.defineProperty(b,"__esModule",{value:!0});b.qja=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(5021);a=a(87386);d.prototype.mark=function(e,h,k){e={name:e,Sy:this.Va.yc()};h && (e.Ha=h);k && (e.correlationId=k);this.entries.add(e);return e;};d.prototype.vRa=function(){var e;e=[];this.entries.forEach(function(h){return e.push(h);});return e;};d.prototype.Vwb=function(e){return this.vRa().filter(function(h){return h.Ha === e;});};d.prototype.Jqc=function(){var e;e={};try{e=this.vRa().filter(function(h){return !h.Ha;}).reduce(function(h,k){h[k.name]=k.Sy.na(f.ya);return h;},{});}catch(h){this.wa.error(" getMapOfCommonMarks exception",h);}return e;};d.prototype.gKb=function(e){var h;h=this;this.vRa().forEach(function(k){k.Ha === e && h.entries.delete(k);});};g=d;b.qja=g;b.qja=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.fe)),t.__param(1,(0,n.v)(a.zb))],g);},6214:function(t,b){function a(){this.searchParams={};}function d(n){this.Qr=n;this.searchParams=new a();}Object.defineProperty(b,"__esModule",{value:!0});b.aib=void 0;d.prototype.toString=function(){return this.href;};Ha.Object.defineProperties(d.prototype,{href:{configurable:!0,enumerable:!0,get:function(){return "" + this.Qr + this.searchParams.toString();}}});b.aib=d;a.prototype.get=function(n){return this.searchParams[n];};a.prototype.set=function(n,c){this.searchParams[n]=c;};a.prototype.toString=function(){return Object.entries(this.searchParams).reduce(function(n,c,f){var g;g=Ea(c);c=g.next().value;g=g.next().value;return "" + n + (0 == f?"?":"&") + c + "=" + g;},"");};a.prototype.toJSON=function(){return this.searchParams;};},53399:function(t,b,a){var n,c;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.yHa=void 0;t=a(22970);a=a(22674);d.prototype.encode=function(f){return n.aPa(f);};d.prototype.decode=function(f){return n.TNa(f);};d.aPa=function(f){if(!f)throw new TypeError("Invalid byte array");for(var g=0,e,h=f.length,k="";g < h;){e=f[g++];if(!(0 <= e && 255 >= e))throw Error("bad utf8");if(e & 128)if(192 === (e & 224))e=((e & 31) << 6) + (f[g++] & 63);else if(224 === (e & 240))e=((e & 15) << 12) + ((f[g++] & 63) << 6) + (f[g++] & 63);else throw Error("unsupported utf8 character");k+=String.fromCharCode(e);}return k;};d.TNa=function(f){var g,e,h,k,l;g=f.length;e=0;k=0;if(!(0 <= g))throw Error("bad string");for(h=g;h--;){l=f.charCodeAt(h);128 > l?e++:e=2048 > l?e + 2:e + 3;}e=new Uint8Array(e);for(h=0;h < g;h++)(l=f.charCodeAt(h),128 > l?e[k++]=l:(2048 > l?e[k++]=192 | l >>> 6:(e[k++]=224 | l >>> 12,e[k++]=128 | l >>> 6 & 63),e[k++]=128 | l & 63));return e;};c=n=d;b.yHa=c;b.yHa=c=n=t.__decorate([(0,a.aa)()],c);},24900:function(t,b,a){var n,c,f,g;function d(e,h){this.is=e;this.Ll=h;}Object.defineProperty(b,"__esModule",{value:!0});b.zHa=void 0;t=a(22970);n=a(22674);a(36129);c=a(42207);f=a(6405);g=a(22365);d.prototype.Y_=function(e,h,k){var l,m,p,r;l=this;if(h)if(k){m=k.wba;p=k.prefix;r=k.Ita;this.zQ(h,function(q,u){if(!r || l.is.Ci(u))e[(p || "") + (m?q.toLowerCase():q)]=u;});}else this.zQ(h,function(q,u){e[q]=u;});return e;};d.prototype.zQ=function(e,h){for(var k in e)e.hasOwnProperty(k) && h(k,e[k]);};d.prototype.l8=function(e,h){if(e.length == h.length){for(var k=e.length;k--;)if(e[k] != h[k])return !1;return !0;}return !1;};d.prototype.Lcc=function(e,h){if(e.length != h.length)return !1;e.sort();h.sort();for(var k=e.length;k--;)if(e[k] !== h[k])return !1;return !0;};d.prototype.jj=function(e){var h,k,l;if(e){h=e.stack;k=e.number;l=e.message;l || (l="" + e);h?(e="" + h,0 !== e.indexOf(l) && (e=l + "\n" + e)):e=l;k && (e+="\nnumber:" + k);return e;}};d.prototype.getFunctionName=function(e){return (e=(/function (.{1,})\(/).exec(e.toString())) && 1 < e.length?e[1]:"";};d.prototype.awb=function(e){return this.getFunctionName(e.constructor);};d.prototype.UFb=function(e){var h,k;h=this;k="";this.is.yP(e) || this.is.nmb(e)?k=Array.prototype.reduce.call(e,function(l,m){return l + (32 <= m && 128 > m?String.fromCharCode(m):".");},""):this.is.Ft(e)?k=e:this.zQ(e,function(l,m){k+=(k?", ":"") + "{" + l + ": " + (h.is.Nka(m)?h.getFunctionName(m) || "function":m) + "}";});return "[" + this.awb(e) + " " + k + "]";};d.prototype.createElement=function(e,h,k,l){var m;m=g.Ni.createElement(e);h && (m.style.cssText=h);k && (m.innerHTML=k);l && this.zQ(l,function(p,r){m.setAttribute(p,r);});return m;};d.prototype.jmc=function(e,h){return function(k){return k[e] === h;};};d.prototype.Zta=function(e){var h;h={};(e || "").split("&").forEach(function(k){var l,m;k=k.trim();l=k.indexOf("=");if(0 <= l){m=decodeURIComponent(k.substr(0,l)).toLowerCase();h[m]=decodeURIComponent(k.substr(l + 1));}else h[k.toLowerCase()]=void 0;});return h;};a=d;b.zHa=a;b.zHa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Mi)),t.__param(1,(0,n.v)(f.MN))],a);},38385:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.VCb=void 0;d=a(80401);n=a(76989);t=a(22674);c=a(36410);f=a(87386);g=a(42790);b.VCb=new t.Be(function(e){e(f.zb).to(n.UCa).sa();e(c.FV).to(d.WCa).sa();e(f.Wab).to(g.MCa).sa();});},87386:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.No={};t[t.dWb=0]="FATAL";t[t.Tp=1]="ERROR";t[t.IHa=2]="WARN";t[t.L4=3]="INFO";t[t.ghb=4]="TRACE";t[t.l=5]="DEBUG";b.Wab="LogFieldBuilderFactorySymbol";b.zb="LoggerFactorySymbol";b.gha={};},36410:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.FV="LoggerSinksSymbol";},34126:function(t,b){function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.VCa=void 0;b.VCa=a;a.WUb="display";a.yUb="console";},22097:function(t,b,a){var n,c;function d(f,g,e,h,k,l,m){this.level=f;this.ud=g;this.timestamp=e;this.message=h;this.Nc=k;this.prefix=l;this.index=void 0 === m?0:m;this.PSc=this.SSc();}Object.defineProperty(b,"__esModule",{value:!0});b.l5a=void 0;n=a(5021);c={0:"F",1:"E",2:"W",3:"I",4:"T",5:"D"};d.prototype.qxa=function(f){f=(this.prefix.length?"" + this.prefix.join(" ") + " ":"") + this.message + (f?"":" " + this.PSc);return (this.timestamp.na(n.ya) / 1E3).toFixed(3) + "|" + this.index + "|" + (c[this.level] || this.level) + "|" + this.ud + "| " + f;};d.prototype.SSc=function(){var h;for(var f=this.Nc.length,g="",e=0;e < f;++e){h=this.Nc[e].qB;e && g.length && (g+=" ");if("object" === typeof h){if(null === h)g+="null";else if(h instanceof Error)g+=this.RSc(h);else try{g+=JSON.stringify(h);}catch(k){g+=this.QSc(h);}}else g+=h;}return g;};d.prototype.RSc=function(f){return f.toString() + (f.stack?"\n" + f.stack:"") + "\n";};d.prototype.QSc=function(f){var g;g=[];return JSON.stringify(f,function(e,h){if("object" === typeof h && null !== h){if(-1 !== g.indexOf(h))return "";g.push(h);}return h;});};b.l5a=d;},98895:function(t,b,a){var n,c;function d(f,g,e,h,k,l){f=n.EV.call(this,f,g,e,h) || this;f.groups=k;Array.isArray(l)?f.prefix=l:l && "string" === typeof l && (f.prefix=[],f.prefix.push(l));return f;}Object.defineProperty(b,"__esModule",{value:!0});b.m5a=void 0;n=a(29045);c=a(22097);Ia(d,n.EV);d.prototype.IJ=function(f,g,e){f=new c.l5a(f,this.ud,this.Va.yc(),g,e,this.prefix);g=Ea(this.Xs.Xs);for(e=g.next();!e.done;e=g.next())(e=e.value,e(f));};d.prototype.VP=function(f){return new d(this.Va,this.bma,this.Xs,f,this.groups,this.prefix);};b.m5a=d;},37960:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.N9b=function(a,d){var c;a=a.Dqc();for(var n=0;n < d.length;++n){c=d[n];void 0 != c && null != c && (c.Ki && (c=c.Ki),c.constructor === Uint8Array?a.l6b(c):"MediaRequest" === c.constructor.name?a.P5b(c):"string" === typeof c?a.h6b(c):"function" === typeof c?a.H5b(c):c instanceof Error?a.F5b(c):c instanceof Object && "function" === typeof c.toJSON?a.Llb(c.toJSON()):c instanceof Object?a.Llb(c):a.n6b(c));}return a.build();};},90694:function(t,b,a){var n;function d(c,f,g,e,h,k){this.level=c;this.ud=f;this.timestamp=g;this.message=e;this.Nc=h;this.index=void 0 === k?0:k;this.wXb={0:"F",1:"E",2:"W",3:"I",4:"T",5:"D"};}Object.defineProperty(b,"__esModule",{value:!0});b.LCa=void 0;n=a(5021);d.prototype.qxa=function(c){var f;f="" + this.message;this.Nc.forEach(function(g){f+=g.tU(c);});return (this.timestamp.na(n.ya) / 1E3).toFixed(3) + "|" + this.index + "|" + (this.wXb[this.level] || this.level) + "|" + this.ud + "| " + f;};b.LCa=d;},42790:function(t,b,a){var n,c,f,g;function d(e,h){this.Jd=e;this.Of=h;}Object.defineProperty(b,"__esModule",{value:!0});b.MCa=void 0;t=a(22970);n=a(22674);c=a(14600);f=a(2248);a=a(74870);d.prototype.Dqc=function(){return new c.NCa(this.Jd,this.Of);};g=d;b.MCa=g;b.MCa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.mm)),t.__param(1,(0,n.v)(a.Am))],g);},14600:function(t,b,a){var m,p,r;function d(q,u){this.Jd=q;this.Of=u;this.Nc=[];}function n(q){return l.call(this,q,function(u){return {Details:u};}) || this;}function c(q){return l.call(this,q,function(u){return JSON.parse(u.toJSON());}) || this;}function f(q,u){u=l.call(this,u,function(v){return {Base64:q.encode(v)};}) || this;u.Jd=q;return u;}function g(q,u){u=l.call(this,u,function(v){return v();}) || this;u.Of=q;return u;}function e(q){return l.call(this,q,function(u){return {Exception:u.message || "" + u,StackTrace:u.stack || "nostack"};}) || this;}function h(q,u,v){u=l.call(this,u,v) || this;u.Of=q;return u;}function k(q){return l.call(this,q,function(u){return {Details:u};}) || this;}function l(q,u){this.qB=q;this.value=u?u(q):q;}Object.defineProperty(b,"__esModule",{value:!0});b.NCa=void 0;t=a(22970);m=a(22674);p=a(74870);a=a(2248);l.prototype.s9=function(q){return this.qB === q;};Ia(k,l);k.prototype.tU=function(){return "\r\n" + this.qB;};Ia(h,l);h.prototype.tU=function(){var q;q="";this.Of.zQ(this.value,function(u,v){try{q+=", " + u + ": " + v;}catch(w){try{q+=", " + u + ": " + JSON.stringify(v);}catch(x){q+=", error stringifying " + u;}}});return q.replace(/[\r\n]+ */g," ");};Ia(e,l);e.prototype.tU=function(q){var u;u="\r\n" + this.qB.message;q || (u+="\r\n" + this.qB.stack);return u;};Ia(g,l);g.prototype.tU=function(){var q;q="";this.Of.zQ(this.value,function(u,v){q+=", " + u + ": " + v;});return q.replace(/[\r\n]+ */g," ");};Ia(f,l);f.prototype.tU=function(){return this.qB?"\r\n" + this.Jd.encode(this.qB):"";};Ia(c,l);c.prototype.tU=function(){return this.qB?this.qB.toJSON():"";};Ia(n,l);n.prototype.tU=function(){return ", " + (this.qB.toString?"" + this.qB.toString():"");};d.prototype.h6b=function(q){this.Nc.push(new k(q));};d.prototype.Llb=function(q){this.Nc.push(new h(this.Of,q));};d.prototype.F5b=function(q){this.Nc.push(new e(q));};d.prototype.H5b=function(q){this.Nc.push(new g(this.Of,q));};d.prototype.l6b=function(q){this.Nc.push(new f(this.Jd,q));};d.prototype.P5b=function(q){this.Nc.push(new c(q));};d.prototype.n6b=function(q){this.Nc.push(new n(q));};d.prototype.build=function(){return this.Nc;};r=d;b.NCa=r;b.NCa=r=t.__decorate([(0,m.aa)(),t.__param(0,(0,m.v)(a.mm)),t.__param(1,(0,m.v)(p.Am))],r);},76989:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p){this.Va=l;this.Xs=m;this.CVa=p;}Object.defineProperty(b,"__esModule",{value:!0});b.UCa=void 0;t=a(22970);n=a(29045);c=a(22674);f=a(51742);g=a(81918);e=a(36410);h=a(87386);k=a(98895);d.prototype.wb=function(l,m,p,r,q){p=void 0 === p?this.Xs:p;return m?new f.reb(this.Va,this.CVa,p,m,l):q?new k.m5a(this.Va,this.CVa,p,l,r || "",q):new n.EV(this.Va,this.CVa,p,l);};a=d;b.UCa=a;b.UCa=a=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(g.fe)),t.__param(1,(0,c.v)(e.FV)),t.__param(2,(0,c.v)(h.Wab))],a);},29045:function(t,b,a){var n,c,f;function d(g,e,h,k){this.Va=g;this.bma=e;this.Xs=h;this.ud=void 0 === k?"General":k;this.HMa={};}Object.defineProperty(b,"__esModule",{value:!0});b.EV=void 0;n=a(87386);c=a(90694);f=a(37960);d.prototype.Alb=function(g,e){this.HMa[g]=e;};d.prototype.fatal=function(g,e){for(var h=[],k=1;k < arguments.length;++k)h[k - 1]=arguments[k];this.IJ(n.No.dWb,g,this.O2(g,h));};d.prototype.error=function(g,e){for(var h=[],k=1;k < arguments.length;++k)h[k - 1]=arguments[k];this.IJ(n.No.Tp,g,this.O2(g,h));};d.prototype.warn=function(g,e){for(var h=[],k=1;k < arguments.length;++k)h[k - 1]=arguments[k];this.IJ(n.No.IHa,g,this.O2(g,h));};d.prototype.info=function(g,e){for(var h=[],k=1;k < arguments.length;++k)h[k - 1]=arguments[k];this.IJ(n.No.L4,g,this.O2(g,h));};d.prototype.trace=function(g,e){for(var h=[],k=1;k < arguments.length;++k)h[k - 1]=arguments[k];this.IJ(n.No.ghb,g,this.O2(g,h));};d.prototype.debug=function(g,e){for(var h=1;h < arguments.length;++h);!1;};d.prototype.log=function(g,e){for(var h=[],k=1;k < arguments.length;++k)h[k - 1]=arguments[k];this.debug.apply(this,[g].concat(za(h)));};d.prototype.write=function(g,e,h){for(var k=[],l=2;l < arguments.length;++l)k[l - 2]=arguments[l];this.IJ(g,e,this.O2(e,k));};d.prototype.toString=function(){return JSON.stringify(this);};d.prototype.toJSON=function(){return {category:this.ud};};d.prototype.VP=function(g){return new d(this.Va,this.bma,this.Xs,g);};d.prototype.IJ=function(g,e,h){g=new c.LCa(g,this.ud,this.Va.yc(),e,h);e=Ea(this.Xs.Xs);for(h=e.next();!h.done;h=e.next())(h=h.value,h(g));};d.prototype.Zoc=function(g){return 0 < Object.keys(this.HMa).length?[this.HMa].concat(za(g)):g;};d.prototype.O2=function(g,e){var h;g && "null" !== g && "undefined" !== g || e.push({StackTrace:null !== (h=Error("Empty message").stack) && void 0 !== h?h:"nostack"});return (0,f.N9b)(this.bma,this.Zoc(e));};b.EV=d;},80401:function(t,b,a){var n;function d(){this.CNb={};this.Xs=[];}Object.defineProperty(b,"__esModule",{value:!0});b.WCa=void 0;t=a(22970);a=a(22674);d.prototype.kva=function(c,f){f && (this.CNb[c]=f,this.Xs=Object.values(this.CNb));};n=d;b.WCa=n;b.WCa=n=t.__decorate([(0,a.aa)()],n);},51742:function(t,b,a){var n,c,f;function d(g,e,h,k,l){g=f.EV.call(this,g,e,h,l) || this;g.j=k;(0,n.hw)(g,"playback");return g;}Object.defineProperty(b,"__esModule",{value:!0});b.reb=void 0;n=a(66523);c=a(90694);f=a(29045);Ia(d,f.EV);d.prototype.VP=function(g){return new d(this.Va,this.bma,this.Xs,this.j,g);};d.prototype.IJ=function(g,e,h){g=new c.LCa(g,this.ud,this.Va.yc(),e,h,this.j.index);e=Ea(this.Xs.Xs);for(h=e.next();!h.done;h=e.next())(h=h.value,h(g,this.j));};b.reb=d;},56371:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.HEb=void 0;t=a(22674);d=a(76193);n=a(25857);b.HEb=new t.Be(function(c){c(d.fcb).to(n.KDa).sa();});},76193:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.fcb="MomentObserverFactory";},25857:function(t,b,a){var n,c,f;function d(g){this.Ad=g;}Object.defineProperty(b,"__esModule",{value:!0});b.KDa=void 0;t=a(22970);n=a(22674);c=a(89350);a=a(53085);d.prototype.Bqb=function(g,e){return new c.gcb(this.Ad,g,e);};f=d;b.KDa=f;b.KDa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Cl))],f);},89350:function(t,b){function a(d,n,c){this.Ad=d;this.config=n;this.getTime=c;}Object.defineProperty(b,"__esModule",{value:!0});b.gcb=void 0;a.prototype.observe=function(d,n){var c;c=this;this.cancel();this.fm=this.Ad.JT(this.config.vxb(),function(){c.getTime() >= d && (c.cancel(),n());});};a.prototype.cancel=function(){this.fm && (this.fm.cancel(),this.fm=void 0);};b.gcb=a;},64274:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Q$c=function(a){return a;};b.xba=function(a){return a;};b.R$c=function(a){return Object.assign({},a);};},33194:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.ba=void 0;t=a(22674);d=a(2911);n=a(93488);c=a(12242);f=a(71807);g=a(25830);e=a(49310);b.ba=new t.Be(function(h){h(d.CGa).to(c.BGa).sa();h(n.mgb).to(f.zGa).sa();h(g.Fhb).to(e.iHa).sa();});},93488:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.mgb="SegmentConfigFactorySymbol";},2911:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.CGa="SegmentManagerFactorySymbol";},25830:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Fhb="TransitionLoggerSymbol";},61494:function(t,b,a){var f,g,e,h;function d(k,l,m,p,r,q,u){var v;v=this;this.player=l;this.j=m;this.Z_=p;this.Ad=r;this.kX=q;this.config=u;this.JX=function(){v.$L && (v.$L.cancel(),v.$L=void 0);};this.log=k.wb("SegmentManager",this.j);this.ba=new Map();this.j.qb.Pg && (this.j.addEventListener(e.ja.NM,function(w){return v.cB(w);}),this.j.addEventListener(e.ja.closed,this.JX));}function n(k,l){this.id=k;this.sMa=l;}function c(k,l,m,p){return g.re.call(this,k,m,void 0,void 0,void 0,l,void 0,p) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.i6a=void 0;f=a(36129);g=a(31149);e=a(85001);h=a(5021);Ia(c,g.re);c.prototype.toString=function(){return this.code + "-" + this.subCode + " : " + this.message + "\n" + JSON.stringify(this.data);};n.prototype.toJSON=function(){return {id:this.id,contentStartPts:this.Ua,contentEndPts:this.fb};};Ha.Object.defineProperties(n.prototype,{Ua:{configurable:!0,enumerable:!0,get:function(){return this.sMa.startTimeMs;}},fb:{configurable:!0,enumerable:!0,get:function(){var k;return null !== (k=this.sMa.endTimeMs) && void 0 !== k?k:void 0;}},aB:{configurable:!0,enumerable:!0,get:function(){var k;return Object.keys(null !== (k=this.sMa.next) && void 0 !== k?k:{});}}});d.prototype.cB=function(k){var l;l=this;!1;k=k.position.segmentId;0 === this.ba.size && Object.entries(this.j.e$()).forEach(function(m){var p;p=Ea(m);m=p.next().value;p=p.next().value;l.ba.set(m,new n(m,p));});this.ga=this.ba.get(k);};d.prototype.play=function(k){this.c1 && (this.c1=void 0);this.JX();this.log.trace("Playing segment",k);return this.DAb(k)?this.XHc(k):this.Oca(k);};d.prototype.gg=function(k){this.log.trace("Queueing segment",k);return this.DAb(k)?this.GKc(k):this.HKc(k);};d.prototype.wl=function(k,l){var m,p;m=this;p=this.j.bb;if(null === p || void 0 === p || !p.kk)return Promise.reject(this.getError(f.da.R5a,"ASE session manager is not yet initialized",f.Y.lza,{segmentId:k,updates:l}));this.log.trace("Updating next segment weights",k,l);return new Promise(function(r,q){try{p.KVc(k,l);m.j.fireEvent(e.ja.k3a,{L:k,kRb:l});r();}catch(u){q(m.getError(f.da.R5a,"updateNextSegmentWeights threw an exception",f.Y.FTb,{segmentId:k,updates:l,error:u}));}});};d.prototype.DAb=function(k){var l;return this.ga?void 0 !== (null === (l=this.j.e$()[this.ga.id].next) || void 0 === l?void 0:l[k]):!1;};d.prototype.TRa=function(){var k;k=this.j.bb;if(null === k || void 0 === k?0:k.kk)return k.eu().gIc;};d.prototype.Mrc=function(){var k;k=this.j.bb;if(null === k || void 0 === k?0:k.kk)return k.eu().id;};d.prototype.Toc=function(){var k;k=this.j.bb;if(null === k || void 0 === k?0:k.kk)return (k={BLa:0},k.BLa);};d.prototype.XHc=function(k){var l,m;l=this;m=this.j.bb;return null !== m && void 0 !== m && m.kk?this.ga && 1 === this.ga.aB.length?this.Oca(k):this.j.Wd?void 0 === this.Toc()?(this.log.error("playNextSegment: branchOffset missing",{segment:k}),this.Oca(k)):new Promise(function(p,r){var w,x,y,A,z,B;function q(){!y && x && w && (B.cancel(),y=!0,l.log.trace("Telling ASE to choose the next segment",{id:k,stopped:x,repositioned:w,completed:y}),m.rma(k,!1)?(p(),y=!0):(y=!0,l.log.error("playNextSegment: ASE chooseNextSegment failed. Falling back to full seek.",{segment:k}),l.Oca(k).then(p).catch(r)));}function u(){m.stop();w=!0;l.log.trace("Player is repositioned",{id:k,stopped:x,repositioned:w,completed:y});l.j.removeEventListener(e.ja.o1,u);q();}function v(){x=!0;l.log.trace("ASE is stopped",{id:k,stopped:x,repositioned:w,completed:y});m.removeEventListener("stop",v);q();}w=!1;x=!1;y=!1;A=l.ba.get(k);z=l.TRa();if(void 0 === z)return (l.log.debug("playNextSegment: getPresentingBranchPlayerEndPts undefined, fallback to full seek.",{segment:k}),l.Oca(k));l.log.trace("Seeking to next segment",JSON.stringify({segmentId:k,seekTo:z,currentSegment:l.ga,nextSegment:A},null," "));l.j.fireEvent(e.ja.Rsa,{Bi:l.ga && l.ga.id,f0:k});m.addEventListener("stop",v);l.j.addEventListener(e.ja.o1,u);B=l.Ad.Tq((0,h.Zi)(10),function(){y=!0;B.cancel();r(l.getError(f.da.o3,"Timed out waiting for the player to be repositioned and ASE to be stopped",f.Y.BTb,{id:k,stopped:x,repositioned:w,completed:y}));});l.player.seek(z,e.Mc.dW);}):(this.log.warn("MediaPresenter is not initialized",k),Promise.reject(this.getError(f.da.o3,"MediaPresenter is not initialized",f.Y.CTb,{id:k}))):Promise.reject(this.getError(f.da.o3,"ASE session manager is not yet initialized",f.Y.lza,{id:k}));};d.prototype.Oca=function(k){var l;l=this.ba.get(k);return l?this.dea(l,f.da.o3):Promise.reject(this.getError(f.da.o3,"Unable to find the separated segment",f.Y.Q5a,{id:k}));};d.prototype.GKc=function(k){var l;l=this.j.bb;if(null === l || void 0 === l || !l.kk)return Promise.reject(this.getError(f.da.p3,"ASE session manager is not yet initialized",f.Y.lza,{id:k}));this.j.fireEvent(e.ja.Rsa,{Bi:this.ga && this.ga.id,f0:k});if(l.rma(k,!0))return Promise.resolve();this.log.error("queueNextSegment: ASE chooseNextSegment failed - falling back to a delayed seek at the end of current segment",{segment:k});return this.Trb(k);};d.prototype.HKc=function(k){this.log.error("calls to queueSeparatedSegment are deprecated",{segment:k,mid:this.j.R,srcsegment:this.Mrc()});return this.Trb(k);};d.prototype.Trb=function(k){var l,m;l=this;if(this.c1)return Promise.reject(this.getError(f.da.p3,"Unable to queue segment for delayed seek because there is currently already a segment queued for delayed seek",f.Y.ETb,{currentSegment:this.ga?this.ga.id:void 0,queuedSegment:this.c1.id,failedSegment:k}));if(!this.ga)return Promise.reject(this.getError(f.da.p3,"Unable to queue segment for delayed seek because there is no currently playing segment",f.Y.ATb,{nextSegmentid:k}));m=this.ba.get(k);if(!m)return Promise.reject(this.getError(f.da.p3,"Unable to find the separated segment",f.Y.Q5a,{nextSegmentid:k,currentSegmentId:this.ga.id}));this.c1={id:k,promise:new Promise(function(p,r){var q;l.$L=l.Z_.Bqb({vxb:function(){return (0,h.ic)(100);}},function(){return l.player.fD() || 0;});q=l.TRa() - l.config().EEb;l.log.trace("Adding moment for queued segment for delayed seek",{segment:k,pts:q});l.$L.observe(q,function(){l.log.trace("Moment has arrived, seek to segment",{segment:k,currentSegment:l.ga.id,playerEndPts:l.TRa(),pts:q});l.c1=void 0;l.JX();l.dea(m,f.da.p3).then(p).catch(r);});})};this.c1.promise.catch(function(p){l.j.wg(p.code,p);});return Promise.resolve();};d.prototype.dea=function(k,l){var m;m=this;return new Promise(function(p,r){var q;try{q=k.Ua;!1;m.player.seek(q,e.Mc.Xu);p();}catch(u){r(m.getError(l,"Seek threw an exception",f.Y.DTb,{id:k.id,error:u}));}});};d.prototype.getError=function(k,l,m,p){this.log.warn(l,p);return new c(k,l,m,p);};b.i6a=d;},71807:function(t,b,a){var c,f;function d(){}function n(g,e,h,k,l){this.debug=g;this.version=e;this.dyc=h;this.UHc=k;this.config=l;}Object.defineProperty(b,"__esModule",{value:!0});b.zGa=void 0;t=a(22970);c=a(22674);f=a(5021);n.prototype.Ypc=function(){return this.config().groupName;};n.prototype.GQa=function(){return this.config().Fnb;};n.prototype.vxb=function(){return (0,f.ic)(this.config().wIc);};n.prototype.Mwb=function(){return this.config().cAc;};n.prototype.Uwb=function(){return this.config().YAc;};d.prototype.XQ=function(g,e,h,k,l){return new n(g,e,h,k,l);};a=d;b.zGa=a;b.zGa=a=t.__decorate([(0,c.aa)()],a);},12242:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v;function d(w,x,y,A,z,B,C,D,F,H,E){this.Va=w;this.th=x;this.Z_=y;this.O3a=A;this.Qca=z;this.Ad=B;this.kX=C;this.Yj=D;this.tPa=F;this.Nk=H;this.config=E;}Object.defineProperty(b,"__esModule",{value:!0});b.BGa=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(87386);g=a(76193);e=a(79274);h=a(51038);k=a(58872);l=a(64181);m=a(61494);p=a(24550);r=a(53085);q=a(95947);u=a(74870);a=a(4203);d.prototype.yfc=function(w,x,y){return new l.pgb(this.Va,this.th,this.Z_,this.O3a,x,w,this.Yj,this.Qca,this.Nk,this.tPa,y);};d.prototype.Iec=function(w,x){return new m.i6a(this.th,w,x,this.Z_,this.Ad,this.kX,this.config);};v=d;b.BGa=v;b.BGa=v=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.fe)),t.__param(1,(0,n.v)(f.zb)),t.__param(2,(0,n.v)(g.fcb)),t.__param(3,(0,n.v)(k.jib)),t.__param(4,(0,n.v)(h.neb)),t.__param(5,(0,n.v)(r.Cl)),t.__param(6,(0,n.v)(p.k3)),t.__param(7,(0,n.v)(e.w5)),t.__param(8,(0,n.v)(q.U3)),t.__param(9,(0,n.v)(u.Am)),t.__param(10,(0,n.v)(a.Hc))],v);},64181:function(t,b,a){var g,e,h;function d(k,l,m,p,r,q,u,v,w,x,y){var A;A=this;this.Va=k;this.Z_=m;this.LYa=p;this.config=r;this.xb=q;this.Yj=u;this.Qca=v;this.Nk=w;this.km=y;this.vlc=Object.values(g.Za).map(function(z){return {event:z,iD:function(B){return A.jc.qd(z,B);}};});this.jc=x.create();this.wM=[];this.log=l.wb("SegmentManager");this.KQ=!0;this.Eu=this.Nk.createElement("div",h.YFa);}function n(k,l,m,p,r,q,u,v,w,x,y){var A;A=this;this.log=k;this.config=l;this.sEc=m;this.LYa=p;this.Yj=r;this.Qca=q;this.Fu=u;this.K=v;this.Eu=w;this.xb=x;this.km=y;this.JX=function(){A.$L && (A.$L.cancel(),A.$L=void 0);};this.JSa=function(z){A.log.trace("Received the transition event",{movieId:z.R});A.WKc();};this.vVa=function(){};this.log.debug("Constructing session data",c(v));this.oUc=new Promise(function(z){A.WKc=z;});}function c(k){return {movieId:k.R};}function f(k){return JSON.stringify({movieId:k.R,startPts:k.Gb,logicalEnd:k.oj,params:k.Cb?{trackingId:k.Cb.Hn,authParams:k.Cb.Nla,sessionParams:k.Cb.Xq,disableTrackStickiness:k.Cb.tOa,uiPlayStartTime:k.Cb.QB,loadImmediately:k.Cb.Jra,playbackState:k.Cb.playbackState?{currentTime:k.Cb.playbackState.currentTime,volume:k.Cb.playbackState.volume,muted:k.Cb.playbackState.muted,playbackRate:k.Cb.playbackState.playbackRate}:void 0,pin:k.Cb.PHb,heartbeatCooldown:k.Cb.USa,uiLabel:k.Cb.ff,uxLabels:k.Cb.Mxa}:void 0});}Object.defineProperty(b,"__esModule",{value:!0});b.pgb=void 0;g=a(85001);e=a(5021);h=a(33096);n.prototype.load=function(k){var l,m;l=this;this.log.trace("Loading new segment",c(this.K));this.player=this.LYa.ZX(this.config,this.Qca,this.Yj,this.K,this.xb,this.km);this.player.addEventListener(g.Za.UZ,function(p){l.log.trace("Segment is inactive",c(l.K));l.Fu.close(l.Yj(p.errorCode));});this.player.addEventListener(g.Za.closed,this.JX);this.player.addEventListener(g.Za.z2a,function(p){p.timecodes.forEach(function(r){"start" === r.type && k?(l.K.Gb=r.Jea,l.K.Cb.Gb=r.Jea):"ending" === r.type && (l.K.oj=r.Jea,l.K.Cb.oj=r.Jea);});l.K.id && l.K.oj && l.xb.cRb(l.K.id,l.K.oj);l.Fu.$Qb(l.K);});if(k)(this.log.debug("Pausing background segment",c(this.K)),this.player.addEventListener(g.Za.xUa,this.JSa),this.player.zHb());else {this.Eu.appendChild(this.player.zq());m=function(p){l.JSa(p);l.player.removeEventListener(g.Za.loaded,m);};this.player.addEventListener(g.Za.loaded,m);}};n.prototype.observe=function(){var k,l,m;k=this;this.log.trace("Observing segment",f(this.K));if(this.$L)this.log.trace("Segment is currently observing",c(this.K));else if(this.K.Cb && this.K.Cb.Jra)this.vVa(this);else {l=this.sEc.Bqb(this.config,function(){var p;if(k.player){p=k.player.PG();if(p)return p;}return 0;});m=this.A$b(this.K);this.log.trace("Adding a moment to watch",{time:m});l.observe(m,function(){k.log.trace("Segment has reached its loading point",c(k.K));k.vVa(k);k.JX();});}};n.prototype.close=function(k){this.log.info("Closing segment",{segment:f(this.K),error:k});return this.player?(this.player.removeEventListener(g.Za.xUa,this.JSa),this.player.close(k)):Promise.resolve();};n.prototype.SFc=function(k){this.vVa=k;};n.prototype.A$b=function(k){var l,m;l=k.oj;k=k.Cb?k.Cb.Jra:!1;m=0;l && !k && (m=l - this.config.Mwb(),m < this.config.Uwb() && (k=l - this.config.Uwb(),m=l - k / 2));return m;};d.prototype.Wrc=function(){return this.hj && this.hj.player?this.hj.player.ws():!1;};d.prototype.zq=function(){return this.Eu;};d.prototype.WG=function(){if(!this.hj || !this.hj.player)throw Error("Player not ready");return this.hj.player;};d.prototype.$Qb=function(k){var l,m;m=this.MPa(k);m?this.bRb(m,k):this.xb.fu(k.id) || this.log.error("Tried to update a non-existent segment",{segment:f(k),currentMovieId:this.hj.K.R,queuedMovieIds:this.wM.map(function(p){return p.K.R;}),xid:null === (l=this.hj.player) || void 0 === l?void 0:l.rA()});};d.prototype.ag=function(k){var l;this.log.info("Adding segment",f(k));if(this.KQ){this.log.trace("First segment, loading",c(k));l=this.KCb(k);this.KQ=!1;}else (this.log.trace("Subsequent segment, caching",c(k)),(l=this.MPa(k))?this.bRb(l,k):(l=this.createSession(k),this.wM.push(l),this.hj.observe()));return l?l.oUc:null;};d.prototype.transition=function(k,l){var m,p,r;p=this.vS;r=null === p || void 0 === p?void 0:p.player;if(p && r)return (this.vS=void 0,this.log.info("Transitioning segment",f(p.K)),r.$0a(this.Va.yc().na(e.ya)),this.aQb(p,l));l=null === p || void 0 === p?void 0:p.K;this.log.error("Transitioning to next segment failed. Session or player not available.",{mid:this.hj.K.R,xid:null === (m=this.hj.player) || void 0 === m?void 0:m.rA(),nextSegmentId:k,currentSegment:f(this.hj.K),nextSegment:l?f(l):void 0,queuedMovieIds:this.wM.map(function(q){return q.K.R;})});return Promise.reject();};d.prototype.close=function(k){var l;l=this;this.log.trace("Closing all segments",{currSession:JSON.stringify(c(this.hj.K)),nextSession:this.vS?JSON.stringify(c(this.vS.K)):void 0});k=[this.hj.close(k)];this.vS && k.push(this.vS.close());return Promise.all(k).then(function(){l.vS=void 0;l.wM=[];l.KQ=!0;});};d.prototype.addListener=function(k,l,m){this.jc.addListener(k,l,m);};d.prototype.removeListener=function(k,l){this.jc.removeListener(k,l);};d.prototype.bRb=function(k,l){this.AGc(k.K,l);this.log.trace("Overwrote existing segment data",f(k.K));};d.prototype.KCb=function(k){var l,m;l=this;this.log.info("Loading the next episode",c(k));if(this.hj){this.config.GQa()[k.R]=k.Gb;m=this.MPa(k);}else m=this.createSession(k);if(m)return (this.log.trace("Found the next session",c(k)),m.SFc(function(p){l.rPb(p);}),this.hj?(this.log.trace("Subsequent playback, caching player and pausing",c(k)),this.vS=m,m.load(!0)):(this.log.trace("First playback transitioning immediately",c(k)),m.load(!1),this.aQb(m)),m);this.log.warn("Unable to find the session, make sure to add it before loading",c(k));};d.prototype.aQb=function(k,l){var m,p,r,q,u;l=void 0 === l?{}:l;q=k.player?null === (m=k.player) || void 0 === m?void 0:m.getError():"missing player";if(q)return (null === (p=k.player) || void 0 === p?void 0:p.close(),this.log.error("Transitioning to next segment failed. Session is in the error state.",{srcmid:this.hj.K.R,mid:k.K.R,error:q,xid:null === (r=k.player) || void 0 === r?void 0:r.rA()}),Promise.reject());this.log.trace("Playing episode",c(k.K));m=this.hj;this.hj=k;k=this.hj.player;k.E0a(!1);this.QU(k,m?m.player:void 0);if(m && m.player){u=m.player.zq();p=k.zq();u.style.display="none";m=m.close();this.Eu.appendChild(p);m.then(function(){u.parentElement && u.parentElement.removeChild(u);});p.style.display="block";k.Exa(l);k.Y1();k.play();}return Promise.resolve();};d.prototype.rPb=function(k){var l,m,p,r,q;if(this.wM.length && k.player){l=k.player.PG();m=this.wM[0];p=this.hj.K.oj;r=this.hj.K.Cb?this.hj.K.Cb.Jra:!1;if(p || r){r?q=0:p && (q=p - this.config.Mwb());null !== l && l >= q && (this.log.info("Got a time change, loading the next player",c(m.K)),this.KCb(m.K),this.wM.splice(0,1),this.rPb(k));}}};d.prototype.MPa=function(k){return this.hj.K.R === k.R?this.hj:this.wM.find(function(l){return l.K.R === k.R;});};d.prototype.AGc=function(k,l){k.Gb=l.Gb || k.Gb;k.oj=l.oj || k.oj;k.Cb=l.Cb || k.Cb;k.S=l.S || k.S;};d.prototype.createSession=function(k){return new n(this.log,this.config,this.Z_,this.LYa,this.Yj,this.Qca,this,k,this.Eu,this.xb,this.km);};d.prototype.QU=function(k,l){this.vlc.forEach(function(m){l && l.removeEventListener(m.event,m.iD);k.addEventListener(m.event,m.iD);});this.jc.qd(g.YV.hea,{player:k});};b.pgb=d;},49310:function(t,b,a){var n,c,f;function d(g){this.config=g;}Object.defineProperty(b,"__esModule",{value:!0});b.iHa=void 0;t=a(22970);n=a(22674);c=a(4203);f=a(3887);d.prototype.eKc=function(g,e,h,k){this.config().ZOc && (g=g.metrics,void 0 !== g && g.segment !== g.srcsegment && (h={isBranching:k || void 0,isPlaygraph:!k || void 0,mid:e.R,xid:e.Ha,srcxid:h.Ha,srcmid:h.R,segment:g.segment,srcsegment:g.srcsegment,srcsegmentduration:g.srcsegmentduration,srcoffset:g.srcoffset,srcMoffms:g.srcMoffms,srcvbitrate:g.srcvbitrate,srcvmaf:g.srcvmaf,srcVdlid:g.srcVdlid,destMoffms:g.destMoffms,destvbitrate:g.destvbitrate,destvmaf:g.destvmaf,destVdlid:g.destVdlid,auxMid:g.auxMid,auxMidType:g.auxMidType,auxSrcmid:g.auxSrcmid,auxSrcmidType:g.auxSrcmidType,seamlessRequested:g.seamlessRequested,transitionType:g.transitionType,transitionTypeAtRequest:g.transitionTypeAtRequest,nextExitPositionAtRequest:g.nextExitPositionAtRequest,delayToTransition:g.delayToTransition,durationOfTransition:g.durationOfTransition,atRequest:g.atRequest,atTransition:g.atTransition,discard:g.discard,adBreakLocationMs:g.adBreakLocationMs,srcadBreakLocationMs:g.srcadBreakLocationMs,adBreakTriggerId:g.adBreakTriggerId,srcadBreakTriggerId:g.srcadBreakTriggerId},h.moffms=e.j && e.Cf && e.R !== e.Cf?(0,f.Zh)(e.j.owb()):(0,f.Zh)(e.Yr),e.IL.jb.transition(h)));};a=d;b.iHa=a;b.iHa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Hc))],a);},24550:function(t,b){var a,d;Object.defineProperty(b,"__esModule",{value:!0});b.k3=b.pTb=b.qTb=b.rTb=void 0;(function(n){n[n.Mic=0]="downloading";n[n.Lic=1]="downloaded";n[n.AC=2]="appended";n[n.buffered=3]="buffered";n[n.Fy=4]="removed";n[n.ked=5]="unused";})(a || (b.rTb=a={}));(function(n){n[n.waiting=1]="waiting";n[n.lbd=2]="ondeck";n[n.Mic=4]="downloading";n[n.Lic=8]="downloaded";n[n.taa=6]="inprogress";})(d || (b.qTb=d={}));b.pTb="AseBufferViewSymbol";b.k3="AseBufferAccountingSymbol";},1891:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m){return function(){return new Promise(function(p,r){var q;q=m.Ib.get(c.$7a);q.Tb().then(function(){p(q);}).catch(function(u){r(u);});});};}Object.defineProperty(b,"__esModule",{value:!0});b.Msb=void 0;t=a(22674);n=a(2413);c=a(31701);f=a(98281);g=a(24550);e=a(64372);h=a(52476);k=a(14188);l=a(33633);b.Msb=new t.Be(function(m){m(h.Vab).to(k.JCa).sa();m(n.Y7a).to(l.KCa);m(g.k3).to(e.Vya).sa();m(c.$7a).to(f.AAa).sa();m(c.Z7a).tfa(d);});},2413:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Y7a="DxDisplaySymbol";},31701:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$7a="DxManagerSymbol";b.Z7a="DxManagerProviderSymbol";},52476:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Vab="LogDisplayConfigSymbol";},64372:function(t,b,a){var n;function d(){this.BOc="";this.rXc=[[],[],[]];this.Qa=[[],[],[]];}Object.defineProperty(b,"__esModule",{value:!0});b.Vya=void 0;t=a(22970);n=a(22674);a(5021);a(24550);d.prototype.update=function(c){this.rXc[c.mediaType].forEach(function(f){f.med(c);});};Ha.Object.defineProperties(d.prototype,{L:{configurable:!0,enumerable:!0,get:function(){return this.BOc;}}});a=d;b.Vya=a;b.Vya=a=t.__decorate([(0,n.aa)()],a);},44133:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.U6a=void 0;n=a(22365);d.$cc=function(c){var f;if(n.Ni.queryCommandSupported && n.Ni.queryCommandSupported("copy")){f=n.Ni.createElement("textarea");f.textContent=c;f.style.position="fixed";n.Ni.body.appendChild(f);f.select();try{n.Ni.execCommand("copy");}catch(g){console.warn("Copy to clipboard failed.",g);}finally{n.Ni.body.removeChild(f);}}};b.U6a=d;},98281:function(t,b,a){var n,c;function d(f){this.tic=f;}Object.defineProperty(b,"__esModule",{value:!0});b.AAa=void 0;t=a(22970);n=a(22674);a=a(2413);d.prototype.Tb=function(){var f;f=this;this.dL || (this.dL=new Promise(function(g,e){var h;h=[];f.tic.forEach(function(k){h.push(k.Tb());});Promise.all(h).then(function(){g();}).catch(function(k){e(k);});}));return this.dL;};c=d;b.AAa=c;b.AAa=c=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.FH)(a.Y7a))],c);},14188:function(t,b,a){var n,c,f,g,e;function d(h,k){h=f.Qf.call(this,h,"LogDisplayConfigImpl") || this;h.eg=k;return h;}Object.defineProperty(b,"__esModule",{value:!0});b.JCa=void 0;t=a(22970);n=a(22674);c=a(12501);f=a(64174);g=a(83767);a=a(5614);Ia(d,f.Qf);Ha.Object.defineProperties(d.prototype,{yda:{configurable:!0,enumerable:!0,get:function(){return !0;}},A_:{configurable:!0,enumerable:!0,get:function(){return this.eg.A_;}},SCb:{configurable:!0,enumerable:!0,get:function(){return -1;}}});e=d;b.JCa=e;t.__decorate([c.config(c.pd,"renderDomDiagnostics")],e.prototype,"yda",null);t.__decorate([c.config(c.iL,"logDisplayMaxEntryCount")],e.prototype,"A_",null);t.__decorate([c.config(c.iL,"logDisplayAutoshowLevel")],e.prototype,"SCb",null);b.JCa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(g.Po)),t.__param(1,(0,n.v)(a.XV))],e);},33633:function(t,b,a){var f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A;function d(z,B,C,D,F,H,E,G,J,L){var K;K=this;this.Ma=z;this.wi=B;this.Nk=C;this.Ad=D;this.Xs=F;this.config=H;this.dQ=E;this.r2a=G;this.RNa=J;this.et=L;this.YTc=function(){K.Lfa.ig(function(){K.update();});};this.clear=function(){K.entries=[];K.update();};this.sEb=function(){K.yg.k_=!K.yg.k_;K.NL && K.UL && (K.yg.k_?(K.NL.style.display="inline-block",K.UL.style.display="none"):(K.UL.style.display="inline-block",K.NL.style.display="none"));K.TT(!1);};this.tAc=function(M){var P;K.entries.push(M);P=K.config.A_;0 <= P && K.entries.length > P && K.entries.shift();void 0 === K.yg.fG[M.ud] && (K.yg.fG[M.ud]=!0,K.TT(!1));K.yg.isVisible && !K.hPb?K.YTc():K.Lfa.ig();};this.Cic=function(){c.download("all",K.entries.map(function(M){return M.qxa(!1);})).catch(function(M){console.error("Unable to download all logs to the file",M);});};this.gL=!1;this.yg={isVisible:!1,k_:!0,vOa:!0,DVa:q.No.L4,fG:{}};this.Lfa=this.r2a((0,m.Zi)(1));this.mmc=this.RNa((0,m.ic)(250));this.entries=[];!1;!1;}function n(z){var B;this.elements=[];B=document.createElementNS(n.$ea,"svg");B.setAttribute("viewBox",z);this.elements.push(B);}function c(){}Object.defineProperty(b,"__esModule",{value:!0});b.KCa=void 0;t=a(22970);f=a(22674);g=a(74870);e=a(45842);h=a(34043);k=a(53085);l=a(30869);m=a(5021);p=a(81918);r=a(33554);q=a(87386);u=a(36410);v=a(34126);w=a(52476);x=a(17892);y=a(43193);A=a(44133);c.download=function(z,B){return c.Kpc(z).then(function(C){return c.Qsc(C,B.join("\r\n")).then(function(D){return c.zic(D.filename,D.text);});});};c.Kpc=function(z){return new Promise(function(B,C){var D,F,H,E,G,J,L;try{D=new Date();F=D.getDate().toString();H=(D.getMonth() + 1).toString();E=D.getFullYear().toString();G=D.getHours().toString();J=D.getMinutes().toString();L=D.getSeconds().toString();1 === F.length && (F="0" + F);1 === H.length && (H="0" + H);1 === G.length && (G="0" + G);1 === J.length && (J="0" + J);1 === L.length && (L="0" + L);B(E + H + F + G + J + L + "." + z + ".log");}catch(K){C(K);}});};c.Qsc=function(z,B){return new Promise(function(C,D){try{C({filename:z,text:URL.createObjectURL(new Blob([B],{type:"text/plain"}))});}catch(F){D(F);}});};c.zic=function(z,B){var C;try{C=document.createElement("a");C.setAttribute("href",B);C.setAttribute("download",z);C.style.display="none";document.body.appendChild(C);C.click();document.body.removeChild(C);return Promise.resolve();}catch(D){return Promise.reject(D);}};n.prototype.X1=function(){var z;z=document.createElementNS(n.$ea,"g");z.setAttribute("stroke","none");z.setAttribute("stroke-width",(1).toString());z.setAttribute("fill","none");z.setAttribute("fill-rule","evenodd");z.setAttribute("stroke-linecap","round");this.addElement(z);return this;};n.prototype.Z1=function(z,B,C){var D;D=document.createElementNS(n.$ea,"path");D.setAttribute("d",z);B && D.setAttribute("fill",B);C && D.setAttribute("fill-rule",C);this.addElement(D);return this;};n.prototype.Lea=function(z,B,C,D,F){var H;F=void 0 === F?"#000000":F;H=document.createElementNS(n.$ea,"rect");H.setAttribute("x",z.toString());H.setAttribute("y",B.toString());H.setAttribute("height",C.toString());H.setAttribute("width",D.toString());F && H.setAttribute("fill",F);this.addElement(H);return this;};n.prototype.dSc=function(){var z;z=document.createElementNS(n.$ea,"polygon");z.setAttribute("points","0 0 24 0 24 24 0 24");z.setAttribute("transform","translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000)");this.addElement(z);return this;};n.prototype.end=function(){this.elements.pop();return this;};n.prototype.build=function(){if(1 < this.elements.length)throw new RangeError("Some item wasn't terminated correctly");if(0 === this.elements.length)throw new RangeError("Too many items were terminated");return this.elements[0];};n.prototype.addElement=function(z){if(0 === this.elements.length)throw new RangeError("Too many items were terminated");this.elements[this.elements.length - 1].appendChild(z);this.elements.push(z);};Ha.Object.defineProperties(n,{background:{configurable:!0,enumerable:!0,get:function(){return "transparent";}},$P:{configurable:!0,enumerable:!0,get:function(){return "#000000";}}});n.$ea="http://www.w3.org/2000/svg";d.prototype.Tb=function(){var z;z=this;this.dL || (this.dL=new Promise(function(B){Ba.addEventListener("keydown",function(C){C.ctrlKey && C.altKey && C.shiftKey && (C.keyCode == y.BV.uXb?z.toggle():C.keyCode == y.BV.E && A.U6a.$cc(z.dQ().ij));});z.Xs.kva(v.VCa.WUb,z.tAc);B();}));return this.dL;};d.prototype.show=function(){document.body && (this.element || (this.Rec(),this.gL=!0),!this.yg.isVisible && this.element && (document.body.appendChild(this.element),this.yg.isVisible=!0,this.update(!0)));};d.prototype.kD=function(){this.gL && this.yg.isVisible && this.element && (document.body.removeChild(this.element),this.yg.isVisible=!1);};d.prototype.toggle=function(){this.yg.isVisible?this.kD():this.show();this.TT(!1);};d.prototype.Rec=function(){var z,B;try{z=this.createElement("div","position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;",void 0,{"class":"player-log"});B=this.createElement("style");B.type="text/css";B.appendChild(document.createTextNode("button:focus { outline: none; }"));z.appendChild(B);z.appendChild(this.Ku=this.hgc());z.appendChild(this.jgc());z.appendChild(this.Kec());this.element=z;}catch(C){console.error("Unable to create the log console",C);}};d.prototype.hgc=function(){var z,B;z=this;B=this.createElement("textarea","position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)");B.setAttribute("wrap","off");B.setAttribute("readonly","readonly");B.addEventListener("focus",function(){z.hPb=!0;z.update();z.Ku && (z.Ku.style.cssText="position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.86)");});B.addEventListener("blur",function(){z.hPb=!1;z.update();z.Ku && (z.Ku.style.cssText="position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)");});return B;};d.prototype.jgc=function(){var z;z=this.createElement("div","float:right;opacity:0.8;background-color:white;display:flex;align-items:center;font-size:small;font-family:sans-serif");z.appendChild(this.tfc());z.appendChild(this.cfc());z.appendChild(this.Wec());z.appendChild(this.kgc());z.appendChild(this.Pec());z.appendChild(this.Gfc());z.appendChild(this.Cfc());z.appendChild(this.Xec());z.appendChild(this.Qec());return z;};d.prototype.Kec=function(){var z,B,C,D,F,H;z=this;B=this.createElement("div","float:right;opacity:0.8;background-color:white;font-size:small;font-family:sans-serif");C=this.createElement("div","padding:2px");D=this.createElement("select",this.bD(22,160,1,2),"");F=this.createElement("div","height:500px;overflow-y:auto;display:none;border:1px #dadada solid");B.appendChild(C);B.appendChild(F);C.appendChild(D);C.addEventListener("mousedown",function(E){E.preventDefault();});H=!1;C.addEventListener("click",function(){H?F.style.display="none":(F.innerHTML="",["all","none"].concat(Object.keys(z.yg.fG).sort()).forEach(function(E){F.appendChild(z.Lec(E,C));}),F.style.display="block");H=!H;});return B;};d.prototype.Lec=function(z,B){var C,D,F;C=this;D=this.createElement("label","display: block;margin:1px");D.htmlFor=z;F=this.createElement("input","margin:1px");F.type="checkbox";F.id=z;F.checked=this.yg.fG[z];F.addEventListener("click",function(){"all" === z || "none" === z?(Object.keys(C.yg.fG).forEach(function(H){C.yg.fG[H]="all" === z;}),B.click()):C.yg.fG[z]=!C.yg.fG[z];C.TT(!0);});D.appendChild(F);D.insertAdjacentText("beforeend",18 < z.length?z.slice(0,15) + "...":z);return D;};d.prototype.tfc=function(){var z,B;z=this;B=this.createElement("select",this.bD(22,NaN,1,2),''));B.value=this.yg.DVa.toString();B.addEventListener("change",function(C){z.yg.DVa=parseInt(C.target.value);z.TT(!0);},!1);return B;};d.prototype.cfc=function(){var B,C;function z(D){return B.mmc.ig(function(){var F;F=D.target.value;B.yg.filter=F?new RegExp(F):void 0;B.TT(!0);});}B=this;C=this.createElement("input",this.bD(14,150,1,2));C.value=this.yg.filter?this.yg.filter.source:"";C.title="Filter (RegEx)";C.placeholder="Filter (RegEx)";C.addEventListener("keydown",z,!1);C.addEventListener("change",z,!1);return C;};d.prototype.Wec=function(){var z,B,C,D;z=this;B=this.createElement("div",this.bD(NaN,NaN));C=this.createElement("input","vertical-align: middle;margin: 0px 2px 0px 0px;");C.id="details";C.type="checkbox";C.title="Details";C.checked=this.yg.vOa;C.addEventListener("change",function(F){z.yg.vOa=F.target.checked;z.TT(!0);},!1);D=this.createElement("label","vertical-align: middle;margin: 0px 0px 0px 2px;");D.setAttribute("for","details");D.innerHTML="View details";B.appendChild(C);B.appendChild(D);return B;};d.prototype.kgc=function(){var z,B,C;z=this;B=this.createElement("button",this.bD());C=new n("0 0 24 24").X1().dSc().end().Z1("M20,12.3279071 L21.9187618,10.9573629 L23.0812382,12.5848299 L19,15.5 L14.9187618,12.5848299 L16.0812382,10.9573629 L18,12.3279071 L18,12 C18,8.13 14.87,5 11,5 C7.13,5 4,8.13 4,12 C4,15.87 7.13,19 11,19 C12.93,19 14.68,18.21 15.94,16.94 L17.36,18.36 C15.73,19.99 13.49,21 11,21 C6.03,21 2,16.97 2,12 C2,7.03 6.03,3 11,3 C15.97,3 20,7.03 20,12 L20,12.3279071 Z",n.$P,"nonzero").end().end().build();B.appendChild(C);B.addEventListener("click",function(){z.update();},!1);B.setAttribute("title","Refresh the log console");return B;};d.prototype.Pec=function(){var z,B;z=this.createElement("button",this.bD());B=new n("0 0 24 24").X1().Lea(0,0,24,24,n.background).end().Z1("M19,4 L15.5,4 L14.5,3 L9.5,3 L8.5,4 L5,4 L5,6 L19,6 L19,4 Z M6,19 C6,20.1 6.9,21 8,21 L16,21 C17.1,21 18,20.1 18,19 L18,7 L6,7 L6,19 Z",n.$P).end().end().build();z.appendChild(B);z.addEventListener("click",this.clear,!1);z.setAttribute("title","Remove all log messages");return z;};d.prototype.Gfc=function(){var z;this.UL=this.createElement("button",this.bD());this.UL.style.display=this.yg.k_?"none":"inline-block";z=new n("0 0 24 24").X1().Lea(0,0,24,24,n.background).end().Z1("M3,3 L21,3 L21,21 L3,21 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z M6,6 L18,6 L18,12 L6,12 L6,6 Z",n.$P,"nonzero").end().end().build();this.UL.addEventListener("click",this.sEb,!1);this.UL.appendChild(z);this.UL.setAttribute("title","Shrink the log console");return this.UL;};d.prototype.Cfc=function(){var z;this.NL=this.createElement("button",this.bD());this.NL.style.display=this.yg.k_?"inline-block":"none";z=new n("0 0 24 24").X1().Lea(4,4,16,16,n.background).end().Z1("M5,5 L5,19 L19,19 L19,5 L5,5 Z M3,3 L21,3 L21,21 L3,21 L3,3 Z",n.$P,"nonzero").end().end().build();this.NL.addEventListener("click",this.sEb,!1);this.NL.appendChild(z);this.NL.setAttribute("title","Expand the log console");return this.NL;};d.prototype.Xec=function(){var z,B;z=this.createElement("button",this.bD());B=new n("0 0 26 26").X1().Lea(0,0,24,24,n.background).end().Z1("M20,20 L20,22 L4,22 L4,20 L20,20 Z M7.8,12.85 L12,16 L16.2,12.85 L17.4,14.45 L12,18.5 L6.6,14.45 L7.8,12.85 Z M7.8,7.85 L12,11 L16.2,7.85 L17.4,9.45 L12,13.5 L6.6,9.45 L7.8,7.85 Z M7.8,2.85 L12,6 L16.2,2.85 L17.4,4.45 L12,8.5 L6.6,4.45 L7.8,2.85 Z",n.$P,"nonzero").end().end().build();z.appendChild(B);z.addEventListener("click",this.Cic,!1);z.setAttribute("title","Download all log messages");return z;};d.prototype.Qec=function(){var z,B,C;z=this;B=this.createElement("button",this.bD());C=new n("0 0 24 24").X1().Lea(0,0,24,24,n.background).end().Z1("M12,10.5857864 L19.2928932,3.29289322 L20.7071068,4.70710678 L13.4142136,12 L20.7071068,19.2928932 L19.2928932,20.7071068 L12,13.4142136 L4.70710678,20.7071068 L3.29289322,19.2928932 L10.5857864,12 L3.29289322,4.70710678 L4.70710678,3.29289322 L12,10.5857864 Z",n.$P,"nonzero").end().end().build();B.appendChild(C);B.addEventListener("click",function(){z.toggle();},!1);B.setAttribute("title","Close the log console");return B;};d.prototype.TT=function(z){var B;z=void 0 === z?!1:z;B=void 0 === B?!1:B;!1;z && this.update(B);};d.prototype.update=function(z){var B;B=this;z=void 0 === z?!1:z;this.element && this.config.yda && Promise.resolve(this.P9b() + this.Mpc().join("\r\n")).then(function(C){B.element && B.Ku && (B.Ku.value=C,B.element.style.cssText=B.yg.k_?"position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;height:30%;":"position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;",z && B.Ad.Tq(m.ia,function(){B.Ku.scrollTop=B.Ku.scrollHeight;}));}).catch(function(C){console.error("Unable to update the log console",C);});};d.prototype.Mpc=function(){var C;for(var z=[],B=this.entries.length - 1;0 <= B && 1E4 > z.length;B--){C=this.entries[B];(C.level || C.level) <= this.yg.DVa && this.yg.fG[C.ud] && (C=C.qxa(!this.yg.vOa),this.yg.filter && !this.yg.filter.test(C) || z.push(C));}return z.reverse();};d.prototype.P9b=function(){var z;z=this.dQ();return "Version: 6.0054.419.911 \n" + ((z?"Esn: " + z.ij:"") + "\nJsSid: ") + (this.wi.id + ", Epoch: " + this.Ma.Mg.na(m.Yu) + ", Start: " + this.wi.nH.na(m.Yu) + ", TimeZone: " + new Date().getTimezoneOffset() + "\nHref: ") + (location.href + "\nUserAgent: ") + (navigator.userAgent + "\n--------------------------------------------------------------------------------\n");};d.prototype.createElement=function(z,B,C,D){return this.Nk.createElement(z,B,C,D);};d.prototype.bD=function(z,B,C,D){z=void 0 === z?26:z;B=void 0 === B?26:B;return "display:inline-block;border:" + (void 0 === C?0:C) + "px solid " + n.$P + ";padding:3px;" + (isNaN(z)?"":"height:" + z + "px") + ";" + (isNaN(B)?"":"width:" + B + "px") + ";margin:0px 3px;background-color:transparent;" + (D?"border-radius:" + D + "px;":"");};a=d;b.KCa=a;a.xSc="logDxDisplay";b.KCa=a=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(l.Li)),t.__param(1,(0,f.v)(p.fe)),t.__param(2,(0,f.v)(g.Am)),t.__param(3,(0,f.v)(k.Cl)),t.__param(4,(0,f.v)(u.FV)),t.__param(5,(0,f.v)(w.Vab)),t.__param(6,(0,f.v)(r.WB)),t.__param(7,(0,f.v)(e.nJ)),t.__param(8,(0,f.v)(h.aha)),t.__param(9,(0,f.v)(x.II))],a);},72574:function(t,b,a){var c;function d(){return c.U5.apply(this,arguments) || this;}function n(f){return new c.kz(f,b.ON);}Object.defineProperty(b,"__esModule",{value:!0});b.ia=b.Ybb=b.pCa=b.hz=b.ON=b.hUb=void 0;b.xx=n;b.ma=function(f){return new c.kz(f,b.hz);};b.o$c=function(f){return new c.kz(f,b.pCa);};b.xad=function(f){return new c.kz(f,b.Ybb);};c=a(35201);Ia(d,c.U5);b.hUb=d;b.ON=new d(1,"b");b.hz=new d(8 * b.ON.Kh,"B",b.ON);b.pCa=new d(1024 * b.hz.Kh,"KB",b.ON);b.Ybb=new d(1024 * b.pCa.Kh,"MB",b.ON);b.ia=n(0);},5021:function(t,b,a){var c;function d(){return c.U5.apply(this,arguments) || this;}function n(f){return new c.kz(f,b.ya);}Object.defineProperty(b,"__esModule",{value:!0});b.ia=b.W9a=b.JDa=b.Yu=b.ya=b.sO=b.Q0b=void 0;b.Aad=function(f){return new c.kz(f,b.sO);};b.GIc=function(f){return new c.kz(f * b.Yu.Kh,b.sO);};b.ic=n;b.Zi=function(f){return new c.kz(f,b.Yu);};b.CWa=function(f){return new c.kz(f,b.JDa);};b.t9c=function(f){return new c.kz(f,b.W9a);};b.timestamp=function(f){return n(f);};c=a(35201);Ia(d,c.U5);b.Q0b=d;b.sO=new d(1,"\u03bcs");b.ya=new d(1E3,"ms",b.sO);b.Yu=new d(1E3 * b.ya.Kh,"s",b.sO);b.JDa=new d(60 * b.Yu.Kh,"min",b.sO);b.W9a=new d(60 * b.JDa.Kh,"hr",b.sO);b.ia=n(0);},35201:function(t,b,a){var c;function d(f,g){this.Kh=g;this.sH=Math.floor(f);this.display=this.sH + " " + this.Kh.name;}function n(f,g,e){this.Kh=f;this.name=g;this.Qr=e?e:this;(0,c.hw)(this,"base");}Object.defineProperty(b,"__esModule",{value:!0});b.kz=b.U5=void 0;c=a(66523);n.prototype.s9=function(f){return this.Kh == f.Kh;};n.prototype.toJSON=function(){return this.name;};b.U5=n;d.prototype.na=function(f){return this.Kh.s9(f)?this.sH:Math.floor(this.sH * this.Kh.Kh / f.Kh);};d.prototype.cZa=function(f){return this.Kh.s9(f)?this.sH:this.sH * this.Kh.Kh / f.Kh;};d.prototype.as=function(f){return new d(this.na(f),f);};d.prototype.to=function(f){return new d(this.na(f),f);};d.prototype.toString=function(){return this.display;};d.prototype.toJSON=function(){return {magnitude:this.sH,units:this.Kh.name};};d.prototype.add=function(f){return this.ypb(f);};d.prototype.ea=function(f){return this.ypb(f,function(g){return -g;});};d.prototype.scale=function(f){return new d(this.na(this.Kh.Qr) * f,this.Kh.Qr);};d.prototype.Ml=function(f){return this.na(this.Kh.Qr) - f.na(this.Kh.Qr);};d.prototype.s9=function(f){return 0 == this.Ml(f);};d.prototype.XAb=function(){return 0 == this.sH;};d.prototype.lUa=function(){return 0 > this.sH;};d.prototype.tUa=function(){return 0 < this.sH;};d.prototype.ypb=function(f,g){g=void 0 === g?function(e){return e;}:g;return new d(this.na(this.Kh.Qr) + g(f.na(this.Kh.Qr)),this.Kh.Qr);};b.kz=d;},4203:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.Hc=b.K4=b.ur=b.Jn=b.WYc=b.XYc=void 0;d=a(45247);Object.defineProperty(b,"AseConfigValues",{enumerable:!0,get:function(){return d.MZc;}});Object.defineProperty(b,"AseConfigExtensions",{enumerable:!0,get:function(){return d.LZc;}});b.Jn={M5c:"casttv",tMa:"chrome",T5c:"chromecast",Jv:"edge",Qsb:"edgeoss",Qub:"firefox",B9c:"ie",opera:"opera",oJb:"quest",rLb:"safari",gPb:"tesla"};b.ur={NKa:"android",eAb:"ios",Sob:"chromeos",pCb:"linux",$Cb:"mac",Z3a:"windows"};b.K4={ucc:"computer",phone:"phone",GTc:"tablet"};b.Hc="ConfigSymbol";},12501:function(t,b,a){var f,g,e;function d(h){return function(k,l){return k.SZa(l,h);};}function n(h,k){return h.bva.FKc[k] || c(h,k);}function c(h,k){h=h.DA.data[k];switch(typeof h){case "undefined":break;case "string":case "number":case "boolean":return h.toString();default:return JSON.stringify(h);}}Object.defineProperty(b,"__esModule",{value:!0});b.url=b.ma=b.ro=b.a3a=b.cwc=b.f2=b.string=b.Vy=b.pd=b.iL=void 0;b.config=function(h,k,l){l=void 0 === l?!1:l;return function(m,p,r){var q,u;q=void 0 !== k?k:p;u=r.get;void 0 !== u && (r.get=function(){var v;if(!this.mxc(p))return this.fsc(p);a:{v=(this.S6b || l?n:c)(this,q.toString());if(void 0 !== v)if((v=h(this.sca,v),v instanceof e.Wu))this.nvb(q,v);else break a;v=u.bind(this)();}this.FM(p,v);return v;});return r;};};b.A7c=function(h){return function(k,l){return k.AJb(l,h);};};b.object=function(){return function(h,k){return h.CJb(k);};};b.WJb=d;b.Pz=function(h,k){return function(l,m){return l.wn(m,h,k);};};f=a(72574);g=a(5021);e=a(37187);b.iL=function(h,k){return h.BJb(k);};b.pd=function(h,k){return h.OZa(k);};b.Vy=function(h,k){return h.Cw(k);};b.string=function(h,k){return h.SZa(k);};b.f2=function(h,k){return h.wn(k,b.string);};b.cwc=function(h,k){return h.wn(k,b.iL);};b.a3a=function(h,k){return h.wn(k,b.Vy);};b.ro=function(h,k){h=h.Cw(k);return h instanceof e.Wu?h:(0,g.ic)(h);};b.ma=function(h,k){h=h.Cw(k);return h instanceof e.Wu?h:(0,f.ma)(h);};b.url=d(/^\S+$/);},83767:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Uza="ConfigurableInputsSymbol";b.Po="ValidatingConfigurableInputsSymbol";b.Tga="ConfigNameSymbol";b.iO="InitParamsSymbol";},34231:function(t,b){var a,d;Object.defineProperty(b,"__esModule",{value:!0});b.st=b.ax=b.$B=void 0;(function(n){n[n.aHa=0]="Test";n[n.ZBa=1]="Int";n[n.J0b=2]="Staging";n[n.L_b=3]="Prod";})(a || (b.$B=a={}));(function(n){n[n.AO=0]="PreferMsl";n[n.Seb=1]="PreferNoMsl";n[n.Gcb=2]="NoMsl";})(d || (b.ax=d={}));b.st="GeneralConfigSymbol";},5614:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.XV="PlatformConfigDefaultsSymbol";},27081:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.fFa=void 0;d=a(5021);n=a(72574);c=a(75568);f={MONOSPACED_SERIF:"font-family:Courier New,Arial,Helvetica;font-weight:bolder",MONOSPACED_SANS_SERIF:"font-family:Consolas,Lucida Console,Menlo,Monaco,Arial,Helvetica;font-weight:bolder",PROPORTIONAL_SERIF:"font-family:Georgia,Times New Roman,Arial,Helvetica;font-weight:bolder",PROPORTIONAL_SANS_SERIF:"font-family:Arial,Helvetica;font-weight:bolder",CASUAL:"font-family:Gabriola,Segoe Print,Comic Sans MS,Chalkboard,Arial,Helvetica;font-weight:bolder",CURSIVE:"font-family:Lucida Handwriting,Brush Script MT,Segoe Script,Arial,Helvetica;font-weight:bolder",SMALL_CAPITALS:"font-family:Copperplate Gothic,Copperplate Gothic Bold,Copperplate,Arial,Helvetica;font-variant:small-caps;font-weight:bolder"};b.fFa=function(){this.s0a=!0;this.ZJ=[];this.ki=[];this.Rj=[];this.NB=[c.Cr.DWb,c.Cr.Yza,c.Cr.s0b,c.Cr.NV];this.fy=void 0;this.hPa=!0;this.Xna=!1;this.vla=(0,n.ma)(288E4);this.xla=(0,n.ma)(335544320);this.wla=(0,n.ma)(1E4);this.vH=(0,d.ic)(15E3);this.oBc=(0,n.ma)(6291456);this.A_=1E3;this.VLa=!0;this.oxa=f;this.u2=(0,n.ma)(0);this.mqa=("ro zh-Hans zh-Hant vi ar he hi th ta te").split(" ");this.nqa=("ro zh-Hans zh-Hant ko vi ar he hi th ta te").split(" ");this.ura=["th","ta"];(0,d.ic)(0);this.jaa=!0;this.Kxa=!1;this.NY=!0;this.GU=this.AK=this.LC=!1;this.Jma=["v2"];};},52033:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.deb="PlatformConfigOverridesSymbol";},83810:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;Object.defineProperty(b,"__esModule",{value:!0});b.config=void 0;t=a(22674);d=a(4203);n=a(80217);c=a(83767);f=a(34231);g=a(33823);e=a(48004);h=a(40158);k=a(69484);l=a(34731);m=a(23563);p=a(18135);b.config=new t.Be(function(r){r(d.Hc).Zf(function(){return function(){return Ba._cad_global.config;};});r(c.Uza).to(n.Tza).sa();r(c.Po).to(n.CHa).sa();r(c.iO).to(n.YBa).sa();r(f.st).to(g.oBa).sa();r(e.Acb).to(h.YDa).sa();r(k.a9a).to(l.lBa).sa();r(m.YB).to(p.PAa).sa();});},64174:function(t,b,a){var c,f,g,e;function d(h,k){var l;l=e.call(this,h,k) || this;l.Npb=k;l.debug=h.debug;l.wa=h.th.wb(l.Npb);return l;}function n(h,k){this.Npb=k;this.xZa={};this.DA=h.DA;this.sca=h.sca;this.bva=h.bva;}Object.defineProperty(b,"__esModule",{value:!0});b.Qf=b.ZU=b.fhb=void 0;t=a(22970);c=a(72465);f=a(22674);g=a(37187);b.fhb="isTestAccount";n.prototype.nvb=function(){};n.prototype.FM=function(h,k){this.xZa[h]=[k,this.DA.Hva];};n.prototype.mxc=function(h){return c.lEa.of(this.xZa[h]).map(function(k){return k[1];}).or(-1) < this.DA.Hva;};n.prototype.fsc=function(h){return c.lEa.of(this.xZa[h]).map(function(k){return k[0];}).or(function(){throw Error("Invalid State Error");});};Ha.Object.defineProperties(n.prototype,{S6b:{configurable:!0,enumerable:!0,get:function(){var h,k;if(this && this.DA && this.DA.data){h=this.DA.data[b.fhb];"undefined" !== typeof h && (k=h.toString());h=this.sca.OZa(k);h=h instanceof g.Wu?!1:h;}else h=!1;return h;}}});e=n;b.ZU=e;b.ZU=e=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.Ou)()),t.__param(1,(0,f.Ou)())],e);Ia(d,e);d.prototype.nvb=function(h,k){this.wa.error("Invalid configuration value.",{name:h},k);this.debug.assert(!1);};a=d;b.Qf=a;b.Qf=a=t.__decorate([t.__param(0,(0,f.Ou)()),t.__param(1,(0,f.Ou)())],a);},80217:function(t,b,a){var f,g,e,h,k;function d(){this.qG={};this.iLb=0;}function n(l,m,p,r,q){this.debug=l;this.DA=m;this.sca=p;this.th=r;this.bva=q;}function c(l,m,p){this.DA=l;this.sca=m;this.bva=p;}Object.defineProperty(b,"__esModule",{value:!0});b.YBa=b.CHa=b.Tza=void 0;t=a(22970);f=a(22674);g=a(90597);e=a(87386);h=a(37187);k=a(17842);a=a(83767);b.Tza=c;b.Tza=c=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(a.iO)),t.__param(1,(0,f.v)(h.mja)),t.__param(2,(0,f.v)(k.TFa))],c);b.CHa=n;b.CHa=n=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(g.VB)),t.__param(1,(0,f.v)(a.iO)),t.__param(2,(0,f.v)(h.mja)),t.__param(3,(0,f.v)(e.zb)),t.__param(4,(0,f.v)(k.TFa))],n);d.prototype.$Bc=function(l){this.qG=Object.assign({},this.qG,l);this.iLb++;};Ha.Object.defineProperties(d.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.qG;}},Hva:{configurable:!0,enumerable:!0,get:function(){return this.iLb;}}});a=d;b.YBa=a;b.YBa=a=t.__decorate([(0,f.aa)()],a);},33823:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r){m=g.Qf.call(this,m,void 0 === r?"GeneralConfigImpl":r) || this;m.eg=p;return m;}Object.defineProperty(b,"__esModule",{value:!0});b.oBa=b.AQ=void 0;t=a(22970);n=a(5021);c=a(22674);f=a(12501);g=a(64174);e=a(34231);h=a(83767);a=a(5614);k={test:"Test",stg:"Staging","int":"Int",prod:"Prod"};b.AQ=function(m,p){return m.AJb(k[p] || p,e.$B);};Ia(d,g.Qf);Ha.Object.defineProperties(d.prototype,{AQ:{configurable:!0,enumerable:!0,get:function(){return e.$B.L_b;}},qOb:{configurable:!0,enumerable:!0,get:function(){return (0,n.Zi)(8);}},groupName:{configurable:!0,enumerable:!0,get:function(){return "";}},IX:{configurable:!0,enumerable:!0,get:function(){return "";}},Ffa:{configurable:!0,enumerable:!0,get:function(){return "";}},sla:{configurable:!0,enumerable:!0,get:function(){return !0;}},jaa:{configurable:!0,enumerable:!0,get:function(){return this.eg.jaa;}},ylc:{configurable:!0,enumerable:!0,get:function(){return !1;}},Je:{configurable:!0,enumerable:!0,get:function(){return {};}},EUa:{configurable:!0,enumerable:!0,get:function(){return !1;}},Yy:{configurable:!0,enumerable:!0,get:function(){return !1;}},o9:{configurable:!0,enumerable:!0,get:function(){return !0;}},bN:{configurable:!0,enumerable:!0,get:function(){return {__default_rule_key__:["idb","mem"]};}},zG:{configurable:!0,enumerable:!0,get:function(){return 0 <= [e.$B.aHa,e.$B.ZBa].indexOf(this.AQ);}}});l=d;b.oBa=l;t.__decorate([f.config(b.AQ,"environment")],l.prototype,"AQ",null);t.__decorate([f.config(f.ro,"storageTimeout")],l.prototype,"qOb",null);t.__decorate([f.config(f.string,"groupName")],l.prototype,"groupName",null);t.__decorate([f.config(f.string,"canaryGroupName",!0)],l.prototype,"IX",null);t.__decorate([f.config(f.string,"uiGroupName")],l.prototype,"Ffa",null);t.__decorate([f.config(f.pd,"applyIndexedDbOpenWorkaround")],l.prototype,"sla",null);t.__decorate([f.config(f.pd,"ignoreIdbOpenError")],l.prototype,"jaa",null);t.__decorate([f.config(f.pd,"executeStorageMigration")],l.prototype,"ylc",null);t.__decorate([f.config(f.object(),"browserInfo")],l.prototype,"Je",null);t.__decorate([f.config(f.pd,"isTestAccount")],l.prototype,"EUa",null);t.__decorate([f.config(f.pd,"useRangeHeader")],l.prototype,"Yy",null);t.__decorate([f.config(f.pd,"enableMilestoneEventList")],l.prototype,"o9",null);t.__decorate([f.config(f.object,"storageRules")],l.prototype,"bN",null);b.oBa=l=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(h.Po)),t.__param(1,(0,c.v)(a.XV)),t.__param(2,(0,c.v)(h.Tga)),t.__param(2,(0,c.optional)())],l);},41605:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.J6a="CapabilityDetectorFactorySymbol";},22210:function(t,b){function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.se=void 0;b.se=a;a.yBa=/^hevc-/;a.A9a=/^hevc-main/;a.tWb=/^hevc-main10-L\d+-dash-cenc-prk(-do)?$/;a.w9a=/^hevc-hdr-|hevc-dv/;a.zl=/^hevc-hdr-/;a.yl=/^hevc-dv/;a.dO=/h264mpl30/;a.qV=/h264mpl31/;a.SI=/h264hpl30-dash$/;a.TI=/h264hpl31-dash$/;a.bO=/h264hpl30-dash-playready-live$/;a.cO=/h264hpl31-dash-playready-live$/;a.iTb=/h264hpl.*-dash$/;a.xf=/^av1-main/;a.rga=/^av1-hdr10plus/;a.eWb=/[l|L]4[0-1]-/;a.Mhb=/-L5[0-1]-/;a.qCa=/-live/;a.NSb=/^heaac-2-/;a.vWb=/^heaac-2hq-dash/;a.Qo=/^xheaac-dash/;a.MUb=/ddplus-5/;a.NUb=/ddplus-atmos/;},73796:function(t,b,a){function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.lib=b.H5a=b.uc=void 0;t=a(75568);b.uc=d;d.contentType=function(n){return "video/mp4;codecs=" + n;};d.uWa='video/mp4; codecs="avc1.4d0028"';d.nCc='video/mp4; codecs="hev1.1.6.L93.B0"';d.mCc='video/mp4;codecs="avc1,mp4a";features="audio-endpoint-codec=DD+JOC"';d.IE="avc1.4d0028";d.HE="avc1.640028";d.mi="hev1.1.6.L93.B0";d.$za="dvhe.05.01";d.aAa="dvhe.05.04";d.bAa="dvhe.05.05";d.cAa="dvhe.05.06";d.dAa="dvhe.05.07";d.eAa="dvhe.05.09";d.yl=d.$za;d.zl=d.mi;d.Lo="mp4a.40.5";d.Qo="mp4a.40.42";d.B3="ec-3";d.xf="av01.0.04M.08";d.Ow="av01.0.04M.10.0.112.09.16.09.0";a={};b.H5a=(a[t.Pc.Lo]=d.Lo,a[t.Pc.tha]=d.Lo,a[t.Pc.VE]=d.Lo,a[t.Pc.Qo]=d.Qo,a[t.Pc.UN]=d.B3,a[t.Pc.VN]=d.B3,a[t.Pc.WN]=d.B3,a);a={};b.lib=(a[t.H.dO]=d.IE,a[t.H.qV]=d.IE,a[t.H.sha]=d.IE,a[t.H.vBa]=d.IE,a[t.H.wBa]=d.IE,a[t.H.xBa]=d.IE,a[t.H.tBa]=d.HE,a[t.H.SI]=d.HE,a[t.H.TI]=d.HE,a[t.H.UI]=d.HE,a[t.H.uBa]=d.HE,a[t.H.bO]=d.HE,a[t.H.cO]=d.HE,a[t.H.pV]=d.HE,a[t.H.uha]=d.mi,a[t.H.vha]=d.mi,a[t.H.wha]=d.mi,a[t.H.xha]=d.mi,a[t.H.uV]=d.mi,a[t.H.vV]=d.mi,a[t.H.p4]=d.mi,a[t.H.s4]=d.mi,a[t.H.v4]=d.mi,a[t.H.y4]=d.mi,a[t.H.q4]=d.mi,a[t.H.t4]=d.mi,a[t.H.w4]=d.mi,a[t.H.z4]=d.mi,a[t.H.B4]=d.mi,a[t.H.D4]=d.mi,a[t.H.o4]=d.mi,a[t.H.r4]=d.mi,a[t.H.u4]=d.mi,a[t.H.x4]=d.mi,a[t.H.A4]=d.mi,a[t.H.C4]=d.mi,a[t.H.D3]=d.yl,a[t.H.F3]=d.yl,a[t.H.iV]=d.yl,a[t.H.I3]=d.yl,a[t.H.K3]=d.yl,a[t.H.M3]=d.yl,a[t.H.Wga]=d.yl,a[t.H.Xga]=d.yl,a[t.H.Yga]=d.yl,a[t.H.Zga]=d.yl,a[t.H.E3]=d.yl,a[t.H.G3]=d.yl,a[t.H.H3]=d.yl,a[t.H.J3]=d.yl,a[t.H.L3]=d.yl,a[t.H.N3]=d.yl,a[t.H.Y3]=d.zl,a[t.H.b4]=d.zl,a[t.H.tV]=d.zl,a[t.H.g4]=d.zl,a[t.H.j4]=d.zl,a[t.H.m4]=d.zl,a[t.H.Z3]=d.zl,a[t.H.c4]=d.zl,a[t.H.e4]=d.zl,a[t.H.h4]=d.zl,a[t.H.k4]=d.zl,a[t.H.n4]=d.zl,a[t.H.X3]=d.zl,a[t.H.a4]=d.zl,a[t.H.d4]=d.zl,a[t.H.f4]=d.zl,a[t.H.i4]=d.zl,a[t.H.l4]=d.zl,a[t.H.yya]=d.xf,a[t.H.zya]=d.xf,a[t.H.Qw]=d.xf,a[t.H.Sw]=d.xf,a[t.H.Uw]=d.xf,a[t.H.Ww]=d.xf,a[t.H.e3]=d.xf,a[t.H.g3]=d.xf,a[t.H.GN]=d.Ow,a[t.H.HN]=d.Ow,a[t.H.IN]=d.Ow,a[t.H.JN]=d.Ow,a[t.H.b3]=d.Ow,a[t.H.c3]=d.Ow,a[t.H.Pw]=d.xf,a[t.H.Rw]=d.xf,a[t.H.Tw]=d.xf,a[t.H.Vw]=d.xf,a[t.H.d3]=d.xf,a[t.H.f3]=d.xf,a);},51259:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y;Object.defineProperty(b,"__esModule",{value:!0});b.cA=void 0;t=a(22674);d=a(56800);n=a(4203);c=a(98960);f=a(1079);g=a(95162);e=a(57718);h=a(16152);k=a(79974);l=a(57657);m=a(41605);p=a(43466);r=a(22365);q=a(94800);u=a(74742);v=a(18580);w=a(63368);x=a(33430);y=a(78866);b.cA=new t.Be(function(A){A(g.MGa).to(e.LGa).sa();A(d.kV).to(c.oAa).sa();A(h.M$a).to(k.bCa).sa();A(m.J6a).to(p.Jza).sa();A(h.eeb).Pp({isTypeSupported:r.vO && r.vO.isTypeSupported});A(l.O8a).jN(function(z){return {Hpc:function(){return z.Ib.get(w.yia);}};});A(f.jV).jN(function(z){return z.Ib.get(n.Hc);});A(x.Dbb).to(y.sDa).sa();A(q.bBa).to(u.aBa).sa();A(v.afb).Pp(Ba);});},56800:function(t,b){var a,d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.kV=b.Jqb=b.$w=b.Fr=b.LE=b.u=void 0;(function(f){f[f.Audio=0]="Audio";f[f.fib=1]="Video";})(a || (b.u=a={}));(function(f){f[f.PE=0]="Default";f[f.bF=1]="Microsoft";})(d || (b.LE=d={}));(function(f){f[f.PE=0]="Default";f[f.hV=1]="Chrome";f[f.bF=2]="Microsoft";})(n || (b.Fr=n={}));(function(f){f[f.Pha=0]="Level_1_4";f[f.mO=1]="Level_2_2";})(c || (b.$w=c={}));b.Jqb=function(f,g){return f?{supported:!0}:{supported:!1,reason:g};};b.kV="DeviceCapabilitiesSymbol";},1079:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.jV=b.CVb=void 0;d=a(56800);b.CVb=function(){this.ZJ=[];this.ki=[];this.Rj=[];this.Ylb=[];this.fLa=d.LE.PE;this.Sxa=d.Fr.PE;};b.jV="DeviceCapabilitiesConfigSymbol";},94800:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.bBa=void 0;t=b.ZN={};t.o1b="unknown";t.s4a="absent";t.$eb="present";t.Error="error";b.bBa="ExternalDisplayLogHelperSymbol";},57657:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.O8a="ExtraPlatformInfoProviderSymbol";},16152:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.M$a="IsTypeSupportedProviderFactorySymbol";b.eeb="PlatformIsTypeSupportedSymbol";},17612:function(t,b,a){var n,c,f,g;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.mb=void 0;n=a(53921);c=a(31149);f=a(36129);g=a(82100);d.l$=function(e){if(e){if(e.includes("playready"))return n.mr.S0;if(e.includes("fps"))return n.mr.dZ;if(e.includes("widevine"))return n.mr.pSb;}throw new c.re(f.da.PVb,void 0,void 0,void 0,void 0,"Invalid KeySystem: " + e);};d.SQa=function(e){switch(e){case n.mr.S0:return "playready";case n.mr.dZ:return "fairplay";default:return "widevine";}};d.g_=function(e){return e.includes("3000") || e.includes(g.Mfb.WE);};b.mb=d;d.gWb="com.apple.fps.3_0";d.Bja="com.widevine.alpha";d.Dib="com.widevine.alpha.experiment";d.fC="com.microsoft.playready.recommendation";d.Wc="com.microsoft.playready.recommendation.3000";d.y_b="com.microsoft.playready.recommendation.2000";d.geb="com.microsoft.playready.recommendation.3000.clearlead";d.Dha=[d.Wc,d.geb];},33430:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Dbb="MediaCapabilitiesDetectorSymbol";},75568:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.H={dO:"playready-h264mpl30-dash",qV:"playready-h264mpl31-dash",sha:"playready-h264mpl40-dash",vBa:"h264mpl30-dash-playready-prk-qc",wBa:"h264mpl31-dash-playready-prk-qc",xBa:"h264mpl40-dash-playready-prk-qc",tBa:"playready-h264hpl22-dash",SI:"playready-h264hpl30-dash",TI:"playready-h264hpl31-dash",UI:"playready-h264hpl40-dash",uBa:"h264hpl22-dash-playready-live",bO:"h264hpl30-dash-playready-live",cO:"h264hpl31-dash-playready-live",pV:"h264hpl40-dash-playready-live",uha:"hevc-main10-L30-dash-cenc",vha:"hevc-main10-L31-dash-cenc",wha:"hevc-main10-L40-dash-cenc",xha:"hevc-main10-L41-dash-cenc",uV:"hevc-main10-L50-dash-cenc",vV:"hevc-main10-L51-dash-cenc",p4:"hevc-main10-L30-dash-cenc-prk",s4:"hevc-main10-L31-dash-cenc-prk",v4:"hevc-main10-L40-dash-cenc-prk",y4:"hevc-main10-L41-dash-cenc-prk",q4:"hevc-main10-L30-dash-cenc-prk-do",t4:"hevc-main10-L31-dash-cenc-prk-do",w4:"hevc-main10-L40-dash-cenc-prk-do",z4:"hevc-main10-L41-dash-cenc-prk-do",B4:"hevc-main10-L50-dash-cenc-prk-do",D4:"hevc-main10-L51-dash-cenc-prk-do",o4:"hevc-main10-L30-dash-cenc-live",r4:"hevc-main10-L31-dash-cenc-live",u4:"hevc-main10-L40-dash-cenc-live",x4:"hevc-main10-L41-dash-cenc-live",A4:"hevc-main10-L50-dash-cenc-live",C4:"hevc-main10-L51-dash-cenc-live",D3:"hevc-dv5-main10-L30-dash-cenc-prk",F3:"hevc-dv5-main10-L31-dash-cenc-prk",iV:"hevc-dv5-main10-L40-dash-cenc-prk",I3:"hevc-dv5-main10-L41-dash-cenc-prk",K3:"hevc-dv5-main10-L50-dash-cenc-prk",M3:"hevc-dv5-main10-L51-dash-cenc-prk",Wga:"hevc-dv5-main10-L40-dash-cenc-prk-qc",Xga:"hevc-dv5-main10-L41-dash-cenc-prk-qc",Yga:"hevc-dv5-main10-L50-dash-cenc-prk-qc",Zga:"hevc-dv5-main10-L51-dash-cenc-prk-qc",E3:"hevc-dv5-main10-L30-dash-cenc-prk-do",G3:"hevc-dv5-main10-L31-dash-cenc-prk-do",H3:"hevc-dv5-main10-L40-dash-cenc-prk-do",J3:"hevc-dv5-main10-L41-dash-cenc-prk-do",L3:"hevc-dv5-main10-L50-dash-cenc-prk-do",N3:"hevc-dv5-main10-L51-dash-cenc-prk-do",Y3:"hevc-hdr-main10-L30-dash-cenc-prk",b4:"hevc-hdr-main10-L31-dash-cenc-prk",tV:"hevc-hdr-main10-L40-dash-cenc-prk",g4:"hevc-hdr-main10-L41-dash-cenc-prk",j4:"hevc-hdr-main10-L50-dash-cenc-prk",m4:"hevc-hdr-main10-L51-dash-cenc-prk",Z3:"hevc-hdr-main10-L30-dash-cenc-prk-do",c4:"hevc-hdr-main10-L31-dash-cenc-prk-do",e4:"hevc-hdr-main10-L40-dash-cenc-prk-do",h4:"hevc-hdr-main10-L41-dash-cenc-prk-do",k4:"hevc-hdr-main10-L50-dash-cenc-prk-do",n4:"hevc-hdr-main10-L51-dash-cenc-prk-do",X3:"hevc-hdr-main10-L30-dash-cenc-live",a4:"hevc-hdr-main10-L31-dash-cenc-live",d4:"hevc-hdr-main10-L40-dash-cenc-live",f4:"hevc-hdr-main10-L41-dash-cenc-live",i4:"hevc-hdr-main10-L50-dash-cenc-live",l4:"hevc-hdr-main10-L51-dash-cenc-live",yya:"av1-main-L20-dash-cbcs-prk",zya:"av1-main-L21-dash-cbcs-prk",Qw:"av1-main-L30-dash-cbcs-prk",Sw:"av1-main-L31-dash-cbcs-prk",Uw:"av1-main-L40-dash-cbcs-prk",Ww:"av1-main-L41-dash-cbcs-prk",e3:"av1-main-L50-dash-cbcs-prk",g3:"av1-main-L51-dash-cbcs-prk",GN:"av1-hdr10plus-main-L30-dash-cbcs-prk",HN:"av1-hdr10plus-main-L31-dash-cbcs-prk",IN:"av1-hdr10plus-main-L40-dash-cbcs-prk",JN:"av1-hdr10plus-main-L41-dash-cbcs-prk",b3:"av1-hdr10plus-main-L50-dash-cbcs-prk",c3:"av1-hdr10plus-main-L51-dash-cbcs-prk",Pw:"av1-main-L30-dash-cbcs-live",Rw:"av1-main-L31-dash-cbcs-live",Tw:"av1-main-L40-dash-cbcs-live",Vw:"av1-main-L41-dash-cbcs-live",d3:"av1-main-L50-dash-cbcs-live",f3:"av1-main-L51-dash-cbcs-live"};b.xc={EZc:[b.H.dO,b.H.qV,b.H.sha],a3:[b.H.SI,b.H.TI,b.H.UI],Z2:[b.H.bO,b.H.cO,b.H.pV],A3:[b.H.uha,b.H.vha,b.H.wha,b.H.xha,b.H.uV,b.H.vV],cV:[b.H.p4,b.H.s4,b.H.v4,b.H.y4,b.H.uV,b.H.vV],dV:[b.H.q4,b.H.t4,b.H.w4,b.H.z4,b.H.B4,b.H.D4],Mga:[b.H.o4,b.H.r4,b.H.u4,b.H.x4,b.H.A4,b.H.C4],aV:[b.H.Y3,b.H.b4,b.H.tV,b.H.g4,b.H.j4,b.H.m4],bV:[b.H.Z3,b.H.c4,b.H.e4,b.H.h4,b.H.k4,b.H.n4],Lga:[b.H.X3,b.H.a4,b.H.d4,b.H.f4,b.H.i4,b.H.l4],t6a:[b.H.D3,b.H.iV,b.H.K3,b.H.F3,b.H.I3,b.H.M3],u6a:[b.H.E3,b.H.H3,b.H.L3,b.H.G3,b.H.J3,b.H.N3],zza:[b.H.Qw,b.H.Sw,b.H.Uw,b.H.Ww,b.H.e3,b.H.g3],lUb:[b.H.GN,b.H.HN,b.H.IN,b.H.JN,b.H.b3,b.H.c3],Nga:[b.H.Pw,b.H.Rw,b.H.Tw,b.H.Vw,b.H.d3,b.H.f3]};b.Pc={Lo:"heaac-2-dash",tha:"heaac-5.1-dash",VE:"heaac-2hq-dash",Qo:"xheaac-dash",UN:"ddplus-5.1-dash",VN:"ddplus-5.1hq-dash",WN:"ddplus-atmos-dash"};b.Cr={s0b:"simplesdh",Yza:"dfxp-ls-sdh",Aja:"webvtt-lssdh-ios8",DWb:"imsc1.1",NV:"nflx-cmisc"};},18580:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.afb="PresentationAPISymbol";},95162:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.MGa="SourceBufferTypeProviderSymbol";},43466:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;function d(x,y,A,z,B,C,D,F){this.SAb=x;this.config=y;this.Ad=A;this.Ma=z;this.is=B;this.uu=C;this.gw=D;this.yH=F;}Object.defineProperty(b,"__esModule",{value:!0});b.Jza=void 0;t=a(22970);n=a(22674);c=a(56800);f=a(16152);g=a(1079);e=a(92049);h=a(75456);k=a(46286);l=a(31741);m=a(53085);p=a(30869);r=a(42207);q=a(5180);u=a(21103);v=a(87386);a=a(33430);d.prototype.Eec=function(x){var y;y=this.SAb.Kqb();switch(x){case c.LE.bF:return new e.dcb(this.config,y,this.is,this.yH);default:return new l.cha(this.config,y,this.yH);}};d.prototype.ngc=function(x){var y;y=this.SAb.Kqb();switch(x){case c.Fr.hV:x=new q.O6a(this.config,y,this.is,this.uu,this.gw,this.Ma,this.yH);break;case c.Fr.bF:x=new h.pbb(this.config,y,this.is,this.Ad,this.Ma,this.yH,this.uu);break;default:x=new k.XN(this.config,y,this.is,this.yH);}return x;};w=d;b.Jza=w;b.Jza=w=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.M$a)),t.__param(1,(0,n.v)(g.jV)),t.__param(2,(0,n.v)(m.Cl)),t.__param(3,(0,n.v)(p.Li)),t.__param(4,(0,n.v)(r.Mi)),t.__param(5,(0,n.v)(u.lz)),t.__param(6,(0,n.v)(v.zb)),t.__param(7,(0,n.v)(a.Dbb))],w);},65264:function(t,b,a){var n,c,f,g,e;function d(h,k,l,m){this.config=h;this.ei=k;this.mediaType=l;this.yH=m;this.oWa={};this.oWa[n.u.Audio]="audio";this.oWa[n.u.fib]="video";}Object.defineProperty(b,"__esModule",{value:!0});b.SN=void 0;n=a(56800);t=a(57180);c=a(22210);f=a(22365);g=a(7802);e=new t.iW().format;d.prototype.Xxb=function(h){return this.cic(this.Prc(this.Cxb(),h));};d.prototype.GX=function(h){return this.ei.isTypeSupported(h);};d.prototype.kpc=function(){return [c.se.NSb,c.se.vWb,c.se.dO,c.se.qV,c.se.SI,c.se.TI,c.se.bO,c.se.cO];};d.prototype.Svc=function(){this.pB=[];this.SH=[];this.config().yGc && this.SH.push(c.se.Qo);this.config().VGb && this.SH.push(c.se.A9a);this.config().UGb && this.SH.push(c.se.w9a);this.config().TGb && this.SH.push(c.se.yl);this.config().RGb && this.SH.push(c.se.xf);this.config().SGb && this.SH.push(c.se.rga);this.SH=this.SH.concat(this.kpc());!this.config().Ikc && this.pB.push(c.se.Qo);!this.config().l9 && this.pB.push(c.se.MUb);!this.config().Mna && this.pB.push(c.se.NUb);!this.config().ukc && this.pB.push(/prk$/);this.config().TGb || this.config().Yjc || this.pB.push(c.se.yl);this.config().VGb || this.config().dkc || this.pB.push(c.se.A9a);this.config().UGb || this.config().VOa || this.pB.push(c.se.w9a);this.config().RGb || this.config().Ljc || this.pB.push(c.se.xf);this.config().SGb || this.config().Mjc || this.pB.push(c.se.rga);!this.config().Ekc && this.pB.push(c.se.Mhb);};d.prototype.Prc=function(h,k){var l;l=f.zg.hardwareConcurrency && f.zg.hardwareConcurrency;return h.filter(function(m){return void 0 !== m.minimumCores && l < m.minimumCores || void 0 !== m.restrictToUILabels && (void 0 === (null === k || void 0 === k?void 0:k.ff) || !m.restrictToUILabels.includes(k.ff))?!1:!0;}).map(function(m){return m.name;});};d.prototype.E9=function(h){var k,l;k=this;l=h.map(function(m){for(var p=Ea(k.SH),r=p.next();!r.done;r=p.next())if(r.value.test(m))return Promise.resolve({supported:!0});p=Ea(k.pB);for(r=p.next();!r.done;r=p.next())if(r.value.test(m))return Promise.resolve({supported:!1,reason:"excluded"});return k.D9(m).catch(function(){return {supported:!1,reason:"exception"};});});return Promise.all(l).then(function(m){return new g.Eia(h,m);});};d.prototype.D9=function(h){var k;k=this;return this.vUa(h).then(function(l){return l.supported?k.config().qkc?k.yH.D9(h):k.IPa(h):l;});};d.prototype.IPa=function(h){var k;h=this.wZa[h];k="";return h?(Array.isArray(h) && (k=1 < h.length?" " + h[1]:"",h=h[0]),h=e("{0}/mp4;codecs={1};{2}",this.oWa[this.mediaType],h,k),this.GX(h)?Promise.resolve({supported:!0}):Promise.resolve({supported:!1,reason:"can-present-type"})):Promise.resolve({supported:!1,reason:"no-codec-info"});};d.prototype.cic=function(h){this.Svc();return this.E9(h);};d.prototype.vUa=function(){return Promise.resolve({supported:!0});};Ha.Object.defineProperties(d.prototype,{wZa:{configurable:!0,enumerable:!0,get:function(){this.lkb || (this.lkb=this.$z());return this.lkb;}}});b.SN=d;},5180:function(t,b,a){var n,c,f,g,e;function d(h,k,l,m,p,r,q){h=n.XN.call(this,h,k,l,q) || this;h.uu=m;h.gw=p;h.Ma=r;h.yH=q;h.type=c.Fr.hV;h.log=h.gw.wb("ChromeVideoCapabilityDetector");return h;}Object.defineProperty(b,"__esModule",{value:!0});b.O6a=void 0;n=a(46286);c=a(56800);f=a(5021);g=a(22210);e=a(17612);Ia(d,n.XN);d.prototype.iU=function(h){switch(h){case c.$w.mO:return this.qTc;default:return Promise.resolve(!1);}};d.prototype.C$=function(){var h;h=this;return this.iU(c.$w.mO).then(function(k){return k?c.$w.mO:void 0;}).then(function(k){return h.Pma(k);});};d.prototype.mKa=function(h){this.fB=h;};d.prototype.XQb=function(){var h;if(this.fB){h=this.Tyb && this.Uyb && this.Tyb.ea(this.Uyb).na(f.ya);this.fB.itshdcp=JSON.stringify({hdcp2:this.wA,time2:h});}};d.prototype.vUa=function(h){var k;k=this;return this.uu.TG().then(function(l){l=e.mb.g_(l.gy);return [g.se.xf,g.se.rga].some(function(m){return m.test(h);}) && k.config().gCc && l || g.se.iTb.test(h) && !g.se.qCa.test(h) && !k.config().Qjc && l || g.se.tWb.test(h) && !g.se.qCa.test(h) && !k.config().gkc && l?{supported:!1,reason:"mcclearen-restricted"}:!l && g.se.yBa.test(h) || g.se.eWb.test(h) && !(k.config().ckc || k.config().bkc && l) || g.se.Mhb.test(h) && !l?{supported:!1,reason:"robustness-restricted"}:{supported:!0};});};Ha.Object.defineProperties(d.prototype,{qTc:{configurable:!0,enumerable:!0,get:function(){var h;h=this;this.c2a || (this.config().fkc?this.c2a=this.uu.TG().then(function(k){if(!e.mb.g_(k.gy))return (h.wA="not HW_SECURE_ALL",h.log.trace("hdcpStatus: " + h.wA),!1);h.Uyb=h.Ma.Mg;return k.createMediaKeys().then(function(l){if(l.getStatusForPolicy)return l.getStatusForPolicy({minHdcpVersion:"2.2"}).then(function(m){h.Tyb=h.Ma.Mg;h.wA=m;h.log.trace("hdcpStatus: " + h.wA);return "usable" === h.wA;});h.wA="not available";h.log.trace("hdcpStatus: " + h.wA);return !1;});}).catch(function(k){h.wA="exception";h.log.error("Exception in supportsHdcpLevel",{hdcpStatus:h.wA},k);return !1;}).then(function(k){h.XQb();return k;}):(this.wA="not enabled",this.log.trace("hdcpStatus: " + this.wA),this.XQb(),this.c2a=Promise.resolve(!1)));return this.c2a;}}});b.O6a=d;},31741:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m){m=c.SN.call(this,k,l,n.u.Audio,m) || this;m.config=k;m.ei=l;m.type=n.LE.PE;return m;}Object.defineProperty(b,"__esModule",{value:!0});b.cha=void 0;n=a(56800);c=a(65264);f=a(73796);t=a(57180);g=a(12187);e=a(7802);h=new t.iW().format;Ia(d,c.SN);d.prototype.dxa=function(){var k;k=h(d.yxa,f.uc.B3);return Promise.resolve(this.config().l9 && this.ei.isTypeSupported(k));};d.prototype.Wea=function(){var k;k=h(d.yxa,f.uc.B3);return Promise.resolve(this.config().Mna && this.ei.isTypeSupported(k));};d.prototype.$z=function(){return g.lAa.$z();};d.prototype.Cxb=function(){return this.config().ZJ;};d.prototype.E9=function(k){return this.config().vGc?Promise.resolve(new e.Eia(k,k.map(function(){return {supported:!0};}))):c.SN.prototype.E9.call(this,k);};b.cha=d;d.yxa="audio/mp4;codecs={0};";},12187:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.lAa=void 0;n=a(75568);d.$z=function(){var c;c={};return (c[n.Pc.Lo]="mp4a.40.2",c[n.Pc.tha]="mp4a.40.2",c[n.Pc.VE]="mp4a.40.2",c[n.Pc.Qo]="mp4a.40.42",c[n.Pc.UN]="ec-3",c[n.Pc.VN]="ec-3",c[n.Pc.WN]="ec-3",c);};b.lAa=d;},46286:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m,p){var r;r=f.SN.call(this,k,l,n.u.fib,p) || this;r.config=k;r.ei=l;r.is=m;r.hsa=p;r.type=n.Fr.PE;return r;}Object.defineProperty(b,"__esModule",{value:!0});b.XN=void 0;n=a(56800);c=a(75568);f=a(65264);g=a(48617);e=a(45266);h=a(7802);Ia(d,f.SN);d.prototype.iU=function(){return Promise.resolve(!1);};d.prototype.r$=function(){return Promise.resolve("");};d.prototype.Xea=function(){return this.config().VOa?this.hsa.cUa()?this.hsa.D9(c.H.tV).then(function(k){return {result:k.supported,reason:"media-capabilities"};}):Promise.resolve({result:!1,reason:"non-hdr-display"}):Promise.resolve({result:!1,reason:"disabled"});};d.prototype.exa=function(){return this.config().VOa?this.hsa.cUa()?this.hsa.D9(c.H.iV).then(function(k){return {result:k.supported,reason:"media-capabilities"};}):Promise.resolve({result:!1,reason:"non-hdr-display"}):Promise.resolve({result:!1,reason:"disabled"});};d.prototype.Yea=function(){return Promise.resolve(!1);};d.prototype.mKa=function(){};d.prototype.QAc=function(k){switch(k){case n.$w.Pha:return "1.4";case n.$w.mO:return "2.2";}};d.prototype.$z=function(){return g.mAa.$z();};d.prototype.Cxb=function(){var l;function k(m,p){return (0,e.zQb)(function(r,q){return r.name === q.name;},m,p);}l=k(this.config().Ylb,this.config().ki);return k(l,this.config().Rj);};d.prototype.C$=function(){return Promise.resolve(void 0);};d.prototype.Pma=function(k){var l;l=[];this.is.Ci(k) && l.push(this.QAc(k));return [{type:"DigitalVideoOutputDescriptor",outputType:"unknown",supportedHdcpVersions:l,isHdcpEngaged:!!l.length}];};d.prototype.E9=function(k){return this.config().wGc?Promise.resolve(new h.Eia(k,k.map(function(){return {supported:!0};}))):f.SN.prototype.E9.call(this,k);};b.XN=d;},48617:function(t,b,a){var n,c;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.mAa=void 0;n=a(75568);c=a(73796);d.$z=function(){var f;f={};return (f[n.H.dO]="avc1.4D401E",f[n.H.qV]="avc1.4D401F",f[n.H.sha]="avc1.4D4028",f[n.H.vBa]="avc1.4D401E",f[n.H.wBa]="avc1.4D401F",f[n.H.xBa]="avc1.4D4028",f[n.H.uha]="hev1.2.6.L90.B0",f[n.H.vha]="hev1.2.6.L93.B0",f[n.H.wha]="hev1.2.6.L120.B0",f[n.H.xha]="hev1.2.6.L123.B0",f[n.H.p4]="hev1.2.6.L90.B0",f[n.H.s4]="hev1.2.6.L93.B0",f[n.H.v4]="hev1.2.6.L120.B0",f[n.H.y4]="hev1.2.6.L123.B0",f[n.H.uV]="hev1.2.6.L150.B0",f[n.H.vV]="hev1.2.6.L153.B0",f[n.H.q4]="hev1.2.6.L90.B0",f[n.H.t4]="hev1.2.6.L93.B0",f[n.H.w4]="hev1.2.6.L120.B0",f[n.H.z4]="hev1.2.6.L123.B0",f[n.H.B4]="hev1.2.6.L150.B0",f[n.H.D4]="hev1.2.6.L153.B0",f[n.H.o4]="hev1.2.6.L90.B0",f[n.H.r4]="hev1.2.6.L93.B0",f[n.H.u4]="hev1.2.6.L120.B0",f[n.H.x4]="hev1.2.6.L123.B0",f[n.H.A4]="hev1.2.6.L150.B0",f[n.H.C4]="hev1.2.6.L153.B0",f[n.H.Y3]="hev1.2.6.L90.B0",f[n.H.b4]="hev1.2.6.L93.B0",f[n.H.tV]="hev1.2.6.L120.B0",f[n.H.g4]="hev1.2.6.L123.B0",f[n.H.j4]="hev1.2.6.L150.B0",f[n.H.m4]="hev1.2.6.L153.B0",f[n.H.Z3]="hev1.2.6.L90.B0",f[n.H.c4]="hev1.2.6.L93.B0",f[n.H.e4]="hev1.2.6.L120.B0",f[n.H.h4]="hev1.2.6.L123.B0",f[n.H.k4]="hev1.2.6.L150.B0",f[n.H.n4]="hev1.2.6.L153.B0",f[n.H.X3]="hev1.2.6.L90.B0",f[n.H.a4]="hev1.2.6.L93.B0",f[n.H.d4]="hev1.2.6.L120.B0",f[n.H.f4]="hev1.2.6.L123.B0",f[n.H.i4]="hev1.2.6.L150.B0",f[n.H.l4]="hev1.2.6.L153.B0",f[n.H.D3]=c.uc.$za,f[n.H.F3]=c.uc.aAa,f[n.H.iV]=c.uc.bAa,f[n.H.I3]=c.uc.cAa,f[n.H.K3]=c.uc.dAa,f[n.H.M3]=c.uc.eAa,f[n.H.Wga]=c.uc.bAa,f[n.H.Xga]=c.uc.cAa,f[n.H.Yga]=c.uc.dAa,f[n.H.Zga]=c.uc.eAa,f[n.H.E3]=c.uc.$za,f[n.H.G3]=c.uc.aAa,f[n.H.H3]=c.uc.bAa,f[n.H.J3]=c.uc.cAa,f[n.H.L3]=c.uc.dAa,f[n.H.N3]=c.uc.eAa,f[n.H.tBa]="avc1.640016",f[n.H.SI]="avc1.64001E",f[n.H.TI]="avc1.64001F",f[n.H.UI]="avc1.640028",f[n.H.uBa]="avc1.640016",f[n.H.bO]="avc1.64001E",f[n.H.cO]="avc1.64001F",f[n.H.pV]="avc1.640028",f[n.H.yya]=c.uc.xf,f[n.H.zya]=c.uc.xf,f[n.H.Qw]=c.uc.xf,f[n.H.Sw]=c.uc.xf,f[n.H.Uw]=c.uc.xf,f[n.H.Ww]=c.uc.xf,f[n.H.e3]=c.uc.xf,f[n.H.g3]=c.uc.xf,f[n.H.GN]=c.uc.Ow,f[n.H.HN]=c.uc.Ow,f[n.H.IN]=c.uc.Ow,f[n.H.JN]=c.uc.Ow,f[n.H.b3]=c.uc.Ow,f[n.H.c3]=c.uc.Ow,f[n.H.Pw]=c.uc.xf,f[n.H.Rw]=c.uc.xf,f[n.H.Tw]=c.uc.xf,f[n.H.Vw]=c.uc.xf,f[n.H.d3]=c.uc.xf,f[n.H.f3]=c.uc.xf,f);};b.mAa=d;},98960:function(t,b,a){var n,c,f,g;function d(e,h,k){this.config=e;this.lob=h;this.SHc=k;}Object.defineProperty(b,"__esModule",{value:!0});b.oAa=void 0;t=a(22970);n=a(1079);c=a(22674);f=a(57657);a=a(41605);d.prototype.Wxb=function(e){return this.AQa().Xxb(e);};d.prototype.Yxb=function(e){return this.UK().Xxb(e);};d.prototype.AQa=function(){this.eLa && this.eLa.type == this.config().fLa || (this.eLa=this.lob.Eec(this.config().fLa));return this.eLa;};d.prototype.UK=function(){this.Rxa && this.Rxa.type == this.config().Sxa || (this.Rxa=this.lob.ngc(this.config().Sxa),this.Rxa.mKa(this.SHc.Hpc()));return this.Rxa;};d.prototype.iU=function(e){return this.UK().iU(e);};d.prototype.GX=function(e){return this.UK().GX(e);};d.prototype.r$=function(){return this.UK().r$();};d.prototype.Xea=function(){return this.UK().Xea();};d.prototype.dxa=function(){return this.AQa().dxa();};d.prototype.Wea=function(){return this.AQa().Wea();};d.prototype.exa=function(){return this.UK().exa();};d.prototype.Yea=function(){return this.UK().Yea();};d.prototype.C$=function(){return this.UK().C$();};g=d;b.oAa=g;b.oAa=g=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(n.jV)),t.__param(1,(0,c.v)(a.J6a)),t.__param(2,(0,c.v)(f.O8a))],g);},74742:function(t,b,a){var n,c,f;function d(g){this.hJc=g;}Object.defineProperty(b,"__esModule",{value:!0});b.aBa=void 0;t=a(22970);n=a(22674);c=a(94800);a=a(18580);d.prototype.dmc=function(){var g,e;g={aZ:c.ZN.o1b};try{e=this.hJc.PresentationRequest;e && (new e("https://netflix.com").getAvailability() || Promise.reject()).then(function(h){var k;g.aZ=h.value?c.ZN.$eb:c.ZN.s4a;if(g.aZ === c.ZN.s4a){k=function(){h.value && (g.aZ=c.ZN.$eb);h.removeEventListener("change",k);};h.addEventListener("change",k);}}).catch(function(){g.aZ=c.ZN.Error;});}catch(h){g.aZ=c.ZN.Error;}return g;};f=d;b.aBa=f;b.aBa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.afb))],f);},79974:function(t,b,a){var n,c,f,g,e;function d(h,k){this.config=h;this.mhc=k;}Object.defineProperty(b,"__esModule",{value:!0});b.bCa=void 0;t=a(22970);n=a(22674);c=a(16152);f=a(1079);g=a(56800);e=a(40290);d.prototype.Kqb=function(){switch(this.config().Sxa){case g.Fr.bF:return e.ZI.mfc();default:return this.mhc;}};a=d;b.bCa=a;b.bCa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.jV)),t.__param(1,(0,n.v)(c.eeb))],a);},75456:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r,q,u,v,w){m=c.XN.call(this,m,p,r,v) || this;m.Ad=q;m.Ma=u;m.yH=v;m.uu=w;m.type=f.Fr.bF;m.fV="hvc1";m.Cza="avc1";m.THc={};m.cSc();return m;}Object.defineProperty(b,"__esModule",{value:!0});b.pbb=b.rm=void 0;n=a(75568);c=a(46286);f=a(56800);g=a(17612);e=a(5021);h=a(73796);k=a(40290);l=a(22210);b.rm={wvb:("decode-res-x=1920 decode-res-y=1080 decode-bpc=8 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8").split(" "),mJb:("decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8").split(" "),qQb:("decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=3840 display-res-y=2160 display-bpc=8").split(" "),vQa:("decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1").split(" "),CKc:("decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1").split(" "),xvb:("decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1 ext-profile=dvhe.05").split(" "),BKc:("decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1 ext-profile=dvhe.05").split(" "),Zpa:["hdcp=1"],$pa:["hdcp=2"],CMa:("decode-bpp=8 decode-res-x=1920 decode-res-y=1080 decode-bitrate=10000000 decode-fps=30 encryption-type=cenc-clearlead encryption-iv-size=8").split(" ")};Ia(d,c.XN);d.prototype.iU=function(m){switch(m){case f.$w.Pha:return this.rTc();case f.$w.mO:return this.hda;default:return Promise.resolve(!1);}};d.prototype.r$=function(){return this.uu.TG().then(function(m){return m.keySystem;});};d.prototype.Xea=function(){return Promise.resolve({result:this.WOb(),reason:"is-type-supported"});};d.prototype.Yea=function(){return this.b2a && this.XOb()?this.hda:Promise.resolve(!1);};d.prototype.exa=function(){return Promise.resolve(this.VOb()).then(function(m){return {result:m,reason:"isTypeSupportedWithFeatures"};});};d.prototype.mKa=function(m){this.fB=m;Object.assign(this.fB,this.THc);m.itshwdrm=this.b2a;m.itsqhd=this.sTc();m.itshevc=this.XOb();m.itshdr=this.WOb();m.itsdv=this.VOb();m.itsav1=this.pTc();m.itshevccl=this.YOb();m.itsavccl=this.nTc();m.itsdd=this.a2a("DD");m.itsddjoc=this.a2a("DD+JOC");m.itspcm51=this.a2a("PCM5.1");this.l3a();};d.prototype.C$=function(){var m;m=this;return this.iU(f.$w.mO).then(function(p){return p?m.Pma(f.$w.mO):m.iU(f.$w.Pha).then(function(r){return r?m.Pma(f.$w.Pha):m.Pma(void 0);});});};d.prototype.IPa=function(m){var p;p=this;return this.r$().then(function(r){var q,u,v;q=p.wZa[m];if(q){u=[];if(p.is.Ft(q))v=q;else (u=q.features,v=q.Xc,r=q.keySystem);return p.Dv(r,v,u)?{supported:!0}:{supported:!1,reason:"ms-can-present-codec-with-features"};}return {supported:!1,reason:"ms-no-properties"};});};d.prototype.$z=function(){var m,p,r,q,u,v,w,x;m=c.XN.prototype.$z.call(this);p=b.rm.wvb;r=b.rm.mJb;q=b.rm.qQb;u=b.rm.vQa;v=b.rm.CKc;w=b.rm.xvb;x=b.rm.BKc;m[n.H.q4]=m[n.H.p4]=m[n.H.o4]={Xc:"hev1.2.6.L90.B0",keySystem:g.mb.Wc,features:r};m[n.H.t4]=m[n.H.s4]=m[n.H.r4]={Xc:"hev1.2.6.L93.B0",keySystem:g.mb.Wc,features:r};m[n.H.w4]=m[n.H.v4]=m[n.H.u4]={Xc:"hev1.2.6.L120.B0",keySystem:g.mb.Wc,features:r};m[n.H.z4]=m[n.H.y4]=m[n.H.x4]={Xc:"hev1.2.6.L123.B0",keySystem:g.mb.Wc,features:r};m[n.H.B4]=m[n.H.uV]=m[n.H.A4]={Xc:"hev1.2.6.L150.B0",keySystem:g.mb.Wc,features:r};m[n.H.D4]=m[n.H.vV]=m[n.H.C4]={Xc:"hev1.2.6.L153.B0",keySystem:g.mb.Wc,features:r};m[n.H.Z3]=m[n.H.Y3]=m[n.H.X3]={Xc:"hev1.2.6.L90.B0",keySystem:g.mb.Wc,features:u};m[n.H.c4]=m[n.H.b4]=m[n.H.a4]={Xc:"hev1.2.6.L93.B0",keySystem:g.mb.Wc,features:u};m[n.H.e4]=m[n.H.tV]=m[n.H.d4]={Xc:"hev1.2.6.L120.B0",keySystem:g.mb.Wc,features:u};m[n.H.h4]=m[n.H.g4]=m[n.H.f4]={Xc:"hev1.2.6.L123.B0",keySystem:g.mb.Wc,features:v};m[n.H.k4]=m[n.H.j4]=m[n.H.i4]={Xc:"hev1.2.6.L150.B0",keySystem:g.mb.Wc,features:v};m[n.H.n4]=m[n.H.m4]=m[n.H.l4]={Xc:"hev1.2.6.L153.B0",keySystem:g.mb.Wc,features:v};m[n.H.E3]=m[n.H.D3]={Xc:"hev1.2.6.L90.B0",keySystem:g.mb.Wc,features:w};m[n.H.G3]=m[n.H.F3]={Xc:"hev1.2.6.L93.B0",keySystem:g.mb.Wc,features:w};m[n.H.H3]=m[n.H.Wga]=m[n.H.iV]={Xc:"hev1.2.6.L120.B0",keySystem:g.mb.Wc,features:w};m[n.H.J3]=m[n.H.Xga]=m[n.H.I3]={Xc:"hev1.2.6.L123.B0",keySystem:g.mb.Wc,features:x};m[n.H.L3]=m[n.H.Yga]=m[n.H.K3]={Xc:"hev1.2.6.L150.B0",keySystem:g.mb.Wc,features:x};m[n.H.N3]=m[n.H.Zga]=m[n.H.M3]={Xc:"hev1.2.6.L153.B0",keySystem:g.mb.Wc,features:x};m[n.H.Qw]={Xc:"av01.0.04M.10",keySystem:g.mb.Wc,features:p};m[n.H.Sw]={Xc:"av01.0.05M.10",keySystem:g.mb.Wc,features:p};m[n.H.Uw]={Xc:"av01.0.08M.10",keySystem:g.mb.Wc,features:p};m[n.H.Ww]={Xc:"av01.0.09M.10",keySystem:g.mb.Wc,features:p};m[n.H.e3]={Xc:"av01.0.12M.10",keySystem:g.mb.Wc,features:q};m[n.H.g3]={Xc:"av01.0.13M.10",keySystem:g.mb.Wc,features:q};m[n.H.GN]={Xc:"av01.0.04M.10.0.112.09.16.09.0",keySystem:g.mb.Wc,features:p};m[n.H.HN]={Xc:"av01.0.05M.10.0.112.09.16.09.0",keySystem:g.mb.Wc,features:p};m[n.H.IN]={Xc:"av01.0.08M.10.0.112.09.16.09.0",keySystem:g.mb.Wc,features:p};m[n.H.JN]={Xc:"av01.0.09M.10.0.112.09.16.09.0",keySystem:g.mb.Wc,features:p};m[n.H.b3]={Xc:"av01.0.12M.10.0.112.09.16.09.0",keySystem:g.mb.Wc,features:q};m[n.H.c3]={Xc:"av01.0.13M.10.0.112.09.16.09.0",keySystem:g.mb.Wc,features:q};m[n.H.Pw]={Xc:"av01.0.04M.10",keySystem:g.mb.Wc,features:p};m[n.H.Rw]={Xc:"av01.0.05M.10",keySystem:g.mb.Wc,features:p};m[n.H.Tw]={Xc:"av01.0.08M.10",keySystem:g.mb.Wc,features:p};m[n.H.Vw]={Xc:"av01.0.09M.10",keySystem:g.mb.Wc,features:p};m[n.H.d3]={Xc:"av01.0.12M.10",keySystem:g.mb.Wc,features:q};m[n.H.f3]={Xc:"av01.0.13M.10",keySystem:g.mb.Wc,features:q};return m;};d.prototype.Dv=function(m,p,r){m=k.ZI.Qma(m,p,r);return this.GX(m);};d.prototype.sTc=function(){return this.Dv(g.mb.Wc,this.fV,b.rm.mJb);};d.prototype.WOb=function(){return this.Dv(g.mb.Wc,this.fV,b.rm.vQa);};d.prototype.VOb=function(){return this.Dv(g.mb.Wc,this.fV,b.rm.xvb);};d.prototype.pTc=function(){return this.Dv(g.mb.Wc,h.uc.xf,b.rm.wvb);};d.prototype.XOb=function(){return this.Dv(g.mb.Wc,this.fV,b.rm.qQb);};d.prototype.YOb=function(){return this.Dv(g.mb.Wc,this.fV,b.rm.CMa);};d.prototype.nTc=function(){return this.Dv(g.mb.Wc,this.Cza,b.rm.CMa);};d.prototype.a2a=function(m){return this.Dv(g.mb.fC,this.Cza,["audio-endpoint-codec=" + m]);};d.prototype.rTc=function(){var m;m=this;return this.hda.then(function(p){return p?Promise.resolve(p):m.bJb;});};d.prototype.l3a=function(){this.fB && (this.fB.itshdcp=JSON.stringify({hdcp1:this.Zpa,time1:this.pPb - this.dOb,hdcp2:this.$pa,time2:this.qPb - this.eOb}));};d.prototype.cSc=function(){var m;m=this;this.b2a?(this.hda=this.uxb(this.config().gEb,this.config().iCc,function(){var p;p=m.$pc();return ["maybe" !== p,p];}).then(function(p){return "probably" === p;}),this.bJb=this.hda.then(function(p){return p?!0:m.uxb(m.config().gEb,m.config().hCc,function(){var r;r=m.Zpc();return ["maybe" !== r,r];}).then(function(r){return "probably" === r;});})):(this.bJb=Promise.resolve(!0),this.hda=Promise.resolve(!1));};d.prototype.uxb=function(m,p,r){var q;q=this;return new Promise(function(u){var v,w,x,y;v=Ea(r());w=v.next().value;v=v.next().value;if(w)return u(v);x=q.Ad.JT((0,e.ic)(m),function(){var A,z;A=Ea(r());z=A.next().value;A=A.next().value;z && (x.cancel(),y.cancel(),u(A));});y=q.Ad.Tq((0,e.ic)(p),function(){x.cancel();y.cancel();u("timeout");});});};d.prototype.Zpc=function(){var m;m=k.ZI.Qma(g.mb.fC,this.Cza,b.rm.Zpa).split("|");this.Zpa=k.ZI.fxa(m[0],m[1]);this.pPb=this.Ma.Mg.na(e.ya);this.dOb=this.dOb || this.pPb;this.l3a();return this.Zpa;};d.prototype.$pc=function(){var m;m=k.ZI.Qma(g.mb.fC,this.fV,b.rm.$pa).split("|");this.$pa=k.ZI.fxa(m[0],m[1]);this.qPb=this.Ma.Mg.na(e.ya);this.eOb=this.eOb || this.qPb;this.l3a();return this.$pa;};d.prototype.vUa=function(m){var p;p=this;return this.r$().then(function(r){if(r === g.mb.Wc){if(l.se.yBa.test(m))return (0,f.Jqb)(p.YOb(),"ms-restricted");if([l.se.xf,l.se.rga].some(function(q){return q.test(m);}) && !l.se.qCa.test(m))return {supported:!1,reason:"ms-restricted"};}return {supported:!0};});};Ha.Object.defineProperties(d.prototype,{b2a:{configurable:!0,enumerable:!0,get:function(){try{return this.GX(g.mb.Wc + "|" + h.uc.uWa);}catch(m){return !1;}}}});b.pbb=d;},78866:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x){this.config=q;this.navigator=u;this.gw=v;this.ly=w;this.wx=x;this.iLa={};this.ORb={};this.yKa={};this.log=this.gw.wb("MediaCapabilityDetector");this.iLa=this.Dec();this.ORb=this.mgc();q={};this.Qlb=(q[this.iLa[c.Pc.Qo].contentType]=this.wx.decode(r.J5a),q);}Object.defineProperty(b,"__esModule",{value:!0});b.sDa=void 0;t=a(22970);n=a(22674);c=a(75568);f=a(87386);g=a(63368);e=a(21103);h=a(1079);k=a(82100);l=a(22365);m=a(73796);p=a(2248);r=a(33096);d.prototype.D9=function(q){var u;u=this;return this.ly.TG().then(function(v){return u.rmc(q,v);}).catch(function(){return {supported:!1,reason:"mc-ksa-exception"};});};d.prototype.Qwc=function(q){return !!q.colorGamut || !!q.hdrMetadataType || !!q.transferFunction;};d.prototype.cUa=function(){return Ba.matchMedia("(dynamic-range: high)").matches || Ba.matchMedia("(video-dynamic-range: high)").matches || this.config().xGc;};d.prototype.rmc=function(q,u){var v,w,x;try{v={type:"media-source"};w=this.iLa[q];x=this.ORb[q];if(w)v.audio=w;else if(x){v.video=x;if(this.Qwc(x) && !this.cUa())return Promise.resolve({supported:!1,reason:"mc-non-hdr-display"});u && (v.keySystemConfiguration=this.qqc(u));}else return Promise.resolve({supported:!1,reason:"mc-missing-config"});return Promise.all([this.Kac(v),this.Iac((w || x).contentType)]).then(function(y){var A;A=Ea(y);y=A.next().value;A=A.next().value;return y?A?{supported:!0}:{supported:!1,reason:"mc-add-source-buffer"}:{supported:!1,reason:"mc-decoding-info"};});}catch(y){return (this.log.error("mediaCapabilitiesIsTypeSupported failed",y),Promise.resolve({supported:!1,reason:"mc-exception"}));}};d.prototype.Kac=function(q){var u;u=this;return this.navigator.mediaCapabilities.decodingInfo(q).then(function(v){var w;v.configuration || (v.configuration=q);w=u.Fxc(q,v);w?u.log.trace("mediaCapabilities.decodingInfo: " + JSON.stringify(v)):u.log.warn("mediaCapabilities.decodingInfo: " + JSON.stringify(v));return w;}).catch(function(v){u.log.error("mediaCapabilities.decodingInfo failed",v);return !1;});};d.prototype.Iac=function(q){var u;u=this;if(!this.config().rkc)return Promise.resolve(!0);this.yKa[q] || (this.yKa[q]=new Promise(function(v){var w;try{w=new l.vO();document.createElement("video").src=URL.createObjectURL(w);w.addEventListener("sourceopen",function(){var x;try{x=w.addSourceBuffer(q);u.Qlb[q]?(x.addEventListener("updateend",function(){u.log.trace("addSourceBuffer updateend for " + q);v(!0);}),x.addEventListener("error",function(){u.log.warn("addSourceBuffer error for " + q);v(!1);}),x.appendBuffer(u.Qlb[q])):(u.log.trace("addSourceBuffer succeeded for " + q),v(!0));}catch(y){u.log.warn("addSourceBuffer failed",y);v(!1);}});}catch(x){u.log.warn("addSourceBuffer failed",x);v(!1);}}));return this.yKa[q];};d.prototype.qqc=function(q){this.keySystemConfiguration || (this.keySystemConfiguration={keySystem:q.keySystem},(q=(0,k.Xwb)(q)) && (this.keySystemConfiguration.video={robustness:q}));return this.keySystemConfiguration;};d.prototype.Dec=function(){var q,u;q={};u={contentType:"audio/mp4;codecs=" + m.uc.Lo};q[c.Pc.Lo]=u;q[c.Pc.tha]=u;q[c.Pc.VE]=u;q[c.Pc.Qo]={contentType:"audio/mp4;codecs=" + m.uc.Qo};u={contentType:"audio/mp4;codecs=ec-3",spatialRendering:!0};q[c.Pc.UN]=u;q[c.Pc.VN]=u;q[c.Pc.WN]=u;return q;};d.prototype.mgc=function(){var q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q;q={contentType:'video/mp4; codecs="hev1.2.4.L120.B0"'};u={contentType:'video/mp4; codecs="' + m.uc.aAa + '"'};v={width:1920,height:1080};w={width:3840,height:2160};x=Object.assign(Object.assign({},v),{bitrate:12E6,framerate:30});y=Object.assign(Object.assign({},v),{bitrate:2E7,framerate:60});A=Object.assign(Object.assign({},w),{bitrate:25E6,framerate:30});z=Object.assign(Object.assign({},w),{bitrate:4E7,framerate:60});B={hdrMetadataType:"smpteSt2086",colorGamut:"rec2020",transferFunction:"pq"};C={colorGamut:"rec2020",transferFunction:"pq"};w=Object.assign(Object.assign({},{contentType:'video/mp4; codecs="avc1.4D4028"'}),x);v=Object.assign(Object.assign({},{contentType:'video/mp4; codecs="avc1.640028"'}),x);D=Object.assign(Object.assign({},q),x);F=Object.assign(Object.assign({},{contentType:'video/mp4; codecs="hev1.2.4.L123.B0"'}),y);H=Object.assign(Object.assign({},{contentType:'video/mp4; codecs="hev1.2.4.L150.B0"'}),A);E=Object.assign(Object.assign({},{contentType:'video/mp4; codecs="hev1.2.4.L153.B0"'}),z);G=Object.assign(Object.assign(Object.assign({},q),x),B);J=Object.assign(Object.assign(Object.assign({},q),y),B);L=Object.assign(Object.assign(Object.assign({},q),A),B);q=Object.assign(Object.assign(Object.assign({},q),z),B);K=Object.assign(Object.assign(Object.assign({},u),x),C);M=Object.assign(Object.assign(Object.assign({},u),y),C);P=Object.assign(Object.assign(Object.assign({},u),A),C);u=Object.assign(Object.assign(Object.assign({},u),z),C);C=Object.assign(Object.assign({},{contentType:'video/mp4; codecs="av01.0.08M.10"'}),x);I=Object.assign(Object.assign({},{contentType:'video/mp4; codecs="av01.0.09M.10"'}),y);O=Object.assign(Object.assign({},{contentType:'video/mp4; codecs="av01.0.12M.10"'}),A);Q=Object.assign(Object.assign({},{contentType:'video/mp4; codecs="av01.0.13M.10"'}),z);x=Object.assign(Object.assign(Object.assign({},{contentType:'video/mp4; codecs="av01.0.08M.10.0.112.09.16.09.0"'}),x),B);y=Object.assign(Object.assign(Object.assign({},{contentType:'video/mp4; codecs="av01.0.09M.10.0.112.09.16.09.0"'}),y),B);A=Object.assign(Object.assign(Object.assign({},{contentType:'video/mp4; codecs="av01.0.12M.10.0.112.09.16.09.0"'}),A),B);z=Object.assign(Object.assign(Object.assign({},{contentType:'video/mp4; codecs="av01.0.13M.10.0.112.09.16.09.0"'}),z),B);B={};return (B[c.H.dO]=w,B[c.H.qV]=w,B[c.H.sha]=w,B[c.H.vBa]=w,B[c.H.wBa]=w,B[c.H.xBa]=w,B[c.H.tBa]=v,B[c.H.SI]=v,B[c.H.TI]=v,B[c.H.UI]=v,B[c.H.uBa]=v,B[c.H.bO]=v,B[c.H.cO]=v,B[c.H.pV]=v,B[c.H.uha]=D,B[c.H.vha]=D,B[c.H.wha]=D,B[c.H.xha]=F,B[c.H.p4]=D,B[c.H.s4]=D,B[c.H.v4]=D,B[c.H.y4]=F,B[c.H.uV]=H,B[c.H.vV]=E,B[c.H.q4]=D,B[c.H.t4]=D,B[c.H.w4]=D,B[c.H.z4]=F,B[c.H.B4]=H,B[c.H.D4]=E,B[c.H.o4]=D,B[c.H.r4]=D,B[c.H.u4]=D,B[c.H.x4]=F,B[c.H.A4]=H,B[c.H.C4]=E,B[c.H.Y3]=G,B[c.H.b4]=G,B[c.H.tV]=G,B[c.H.g4]=J,B[c.H.j4]=L,B[c.H.m4]=q,B[c.H.Z3]=G,B[c.H.c4]=G,B[c.H.e4]=G,B[c.H.h4]=J,B[c.H.k4]=L,B[c.H.n4]=q,B[c.H.X3]=G,B[c.H.a4]=G,B[c.H.d4]=G,B[c.H.f4]=J,B[c.H.i4]=L,B[c.H.l4]=q,B[c.H.D3]=K,B[c.H.F3]=K,B[c.H.iV]=K,B[c.H.I3]=M,B[c.H.K3]=P,B[c.H.M3]=u,B[c.H.Wga]=K,B[c.H.Xga]=M,B[c.H.Yga]=P,B[c.H.Zga]=u,B[c.H.E3]=K,B[c.H.G3]=K,B[c.H.H3]=K,B[c.H.J3]=M,B[c.H.L3]=P,B[c.H.N3]=u,B[c.H.yya]=C,B[c.H.zya]=C,B[c.H.Qw]=C,B[c.H.Sw]=C,B[c.H.Uw]=C,B[c.H.Ww]=I,B[c.H.e3]=O,B[c.H.g3]=Q,B[c.H.GN]=x,B[c.H.HN]=x,B[c.H.IN]=x,B[c.H.JN]=y,B[c.H.b3]=A,B[c.H.c3]=z,B[c.H.Pw]=C,B[c.H.Rw]=C,B[c.H.Tw]=C,B[c.H.Vw]=I,B[c.H.d3]=O,B[c.H.f3]=Q,B);};d.prototype.Fxc=function(q,u){return q.video && this.config().DIc?u.supported && u.powerEfficient:u.supported;};a=d;b.sDa=a;b.sDa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(h.jV)),t.__param(1,(0,n.v)(g.p5)),t.__param(2,(0,n.v)(f.zb)),t.__param(3,(0,n.v)(e.lz)),t.__param(4,(0,n.v)(p.mm))],a);},92049:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m,p){k=g.cha.call(this,k,l,p) || this;k.is=m;k.type=n.LE.bF;return k;}Object.defineProperty(b,"__esModule",{value:!0});b.dcb=void 0;n=a(56800);c=a(75568);f=a(17612);g=a(31741);e=a(40290);h=a(73796);Ia(d,g.cha);d.prototype.dxa=function(){return Promise.resolve(this.config().l9 && this.Dv(f.mb.fC,"avc1",["audio-endpoint-codec=DD+JOC"]));};d.prototype.Wea=function(){return Promise.resolve(this.config().Mna && this.Dv(f.mb.fC,"avc1",["audio-endpoint-codec=DD+JOC"]));};d.prototype.$z=function(){var k,l;k={Xc:"avc1",keySystem:f.mb.fC,features:["audio-endpoint-codec=DD+JOC"]};l={};return (l[c.Pc.Lo]=h.uc.Lo,l[c.Pc.VE]=h.uc.Lo,l[c.Pc.tha]=void 0,l[c.Pc.Qo]=h.uc.Qo,l[c.Pc.UN]=this.config().l9?k:void 0,l[c.Pc.VN]=this.config().l9?k:void 0,l[c.Pc.WN]=this.config().Mna?k:void 0,l);};d.prototype.IPa=function(k){var l,m,p;k=this.wZa[k];l=[];m=f.mb.fC;if(k){if(this.is.Ft(k))p=k;else (l=k.features,p=k.Xc,m=k.keySystem);return this.Dv(m,p,l)?Promise.resolve({supported:!0}):Promise.resolve({supported:!1,reason:"ms-can-present-codec-with-features"});}return Promise.resolve({supported:!1,reason:"ms-no-properties"});};d.prototype.Dv=function(k,l,m){k=e.ZI.Qma(k,l,m);return this.GX(k);};b.dcb=d;},40290:function(t,b,a){var n,c,f;function d(){this.type=n.LE.bF;}Object.defineProperty(b,"__esModule",{value:!0});b.ZI=void 0;n=a(56800);t=a(57180);c=a(17612);f=new t.iW();d.mfc=function(){return {isTypeSupported:function(g){var e;try{if(-1 == g.toLowerCase().indexOf("codec"))return Ba.MSMediaKeys.isTypeSupported(g,"video/mp4");e=g.split("|");return 1 === e.length?Ba.MSMediaKeys.isTypeSupported(c.mb.fC,g):"probably" === d.fxa(e[0],e[1]);}catch(h){return !1;}}};};d.Qma=function(g,e,h){e=f.format(d.yxa,e);if(0 === h.length)return e;h=f.format('features="{0}"',h.join());return f.format("{0}|{1}{2}",g,e,h);};d.fxa=function(g,e){var h;try{h=Ba.MSMediaKeys.isTypeSupportedWithFeatures?Ba.MSMediaKeys.isTypeSupportedWithFeatures(g,e):"";}catch(k){h="exception";}return h;};b.ZI=d;d.yxa='video/mp4;codecs="{0},mp4a";';},7802:function(t,b){function a(d,n){var c;c=this;this.status={};d.forEach(function(f,g){c.status[f]=n[g];});}Object.defineProperty(b,"__esModule",{value:!0});b.Eia=void 0;a.prototype.OZ=function(){return this.status;};a.prototype.Bpa=function(){return Object.entries(this.status).filter(function(d){d=Ea(d);d.next();return d.next().value.supported;}).map(function(d){var n;d=Ea(d);n=d.next().value;d.next();return n;});};b.Eia=a;},57718:function(t,b,a){var n,c,f;function d(g){this.JOb=g;this.R4b="video/mp4;codecs={0}";this.L1b="audio/mp4;codecs={0}";}Object.defineProperty(b,"__esModule",{value:!0});b.LGa=void 0;t=a(22970);n=a(22674);c=a(73796);a=a(88490);d.prototype.Uqb=function(g){var e;g=c.lib[null === (e=g[0]) || void 0 === e?void 0:e.Uc] || c.uc.IE;return this.JOb.format(this.R4b,g);};d.prototype.hqb=function(g){var e;g=c.H5a[null === (e=g[0]) || void 0 === e?void 0:e.Uc] || c.uc.Lo;return this.JOb.format(this.L1b,g);};f=d;b.LGa=f;b.LGa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.$gb))],f);},82656:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.gp=void 0;t=a(22674);d=a(33554);n=a(58393);c=a(48723);f=a(68703);g=a(99662);b.gp=new t.Be(function(e){e(d.WB).Zf(function(){return function(){return Ba._cad_global.device;};});e(f.J7a).to(g.qAa).sa();e(n.H7a).to(c.pAa).sa();});},33554:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.WB="DeviceFactorySymbol";},58393:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.H7a="DeviceIdGeneratorSymbol";},68703:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.J7a="DeviceProviderSymbol";},48723:function(t,b,a){var n,c,f,g,e,h;function d(k,l){this.Ma=k;this.JZa=l;}Object.defineProperty(b,"__esModule",{value:!0});b.pAa=void 0;t=a(22970);n=a(30869);c=a(5021);f=a(10306);g=a(74267);e=a(66523);a=a(22674);d.prototype.Unc=function(){for(var k="",l=this.Ma.Mg.na(c.ya),m=6;m--;)(k=("0123456789ACDEFGHJKLMNPQRTUVWXYZ")[l % 32] + k,l=Math.floor(l / 32));for(;30 > k.length;)k+=("0123456789ACDEFGHJKLMNPQRTUVWXYZ")[this.JZa.wJb(new g.$Fa(0,31,e.OFb))];return k;};h=d;b.pAa=h;b.pAa=h=t.__decorate([(0,a.aa)(),t.__param(0,(0,a.v)(n.Li)),t.__param(1,(0,a.v)(f.Pia))],h);},66085:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.I7a=void 0;b.I7a=function(a,d,n,c){this.ij=a;this.Yt=d;this.$na=c;};},99662:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r,q,u){this.eic=m;this.et=p;this.ec=q;this.wHc=u;this.m8a=/^(SDK-|SLW32-|SLW64-|SLMAC-|WWW-BROWSE-|.{10})([A-Z0-9-=]{4,})$/;this.log=r.wb("Device");}Object.defineProperty(b,"__esModule",{value:!0});b.qAa=void 0;t=a(22970);n=a(36129);c=a(42207);f=a(66085);g=a(87386);e=a(58393);h=a(22674);k=a(17892);a=a(70285);d.prototype.Ttb=function(m){try{return m.match(this.m8a)[2];}catch(p){}};d.prototype.Rlc=function(m){try{return m.match(this.m8a)[1];}catch(p){}};d.prototype.create=function(m){var p;p=this;return new Promise(function(r,q){p.et.create().then(function(u){var w,x,y,A,z,B;function v(C){p.ec.qx(C) && p.ec.qx(w)?(x=new f.I7a(C,w,void 0,y,m.Y8 || "cadmium"),r(x)):q({Ta:n.Y.q7a});}w=m.Yt;if(m.QQa){y="bind_device";p.wHc.Se({log:p.log},{}).then(function(C){v(C.esn);}).catch(function(C){q(C);});}else if(m.sZ){z=m.ij;if(p.ec.qx(z)){B=p.Rlc(z);B != m.Yt && p.log.error("esn prefix from ui is different",{ui:B,cad:m.Yt,ua:m.userAgent});}else m.BVa && p.log.error("esn from ui is missing");!m.L2 && p.ec.qx(z)?(y="config",v(z)):u.load(m.esb).then(function(C){A=C.value;p.ec.qx(A) && (!1,p.ec.qx(z)?(C=p.Ttb(z),y=C === A?"storage_matched_esn_in_config":"storage_did_not_match_esn_in_config"):y="storage_esn_not_in_config",v(w + A));}).catch(function(C){var H;function D(){u.save(m.esb,H,!1).then(function(){v(w + H);}).catch(function(E){q(E);});}function F(){H=p.eic.Unc();!1;D();}if(C.Ta === n.Y.jF){if(p.ec.qx(m.ij)){H=p.Ttb(m.ij);p.ec.qx(H)?(y="config_since_not_in_storage",D()):(y="generated_since_invalid_in_config_and_not_in_storage",p.log.error("invalid esn passed from UI",m.ij),F());}else (y="generated_since_not_in_config_and_storage",F());}else q(C);});}else v();}).catch(function(u){q(u);});});};l=d;b.qAa=l;b.qAa=l=t.__decorate([(0,h.aa)(),t.__param(0,(0,h.v)(e.H7a)),t.__param(1,(0,h.v)(k.II)),t.__param(2,(0,h.v)(g.zb)),t.__param(3,(0,h.v)(c.Mi)),t.__param(4,(0,h.v)(a.Jdb))],l);},2492:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Qga="CannedChallengeProvider";},49594:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;Object.defineProperty(b,"__esModule",{value:!0});b.GY=b.Tsb=void 0;t=a(22674);d=a(47737);n=a(97485);c=a(21103);f=a(92395);g=a(66372);e=a(2492);h=a(77228);k=a(34008);l=a(17250);m=a(41980);p=a(90581);r=a(91490);q=a(38231);u=a(22266);v=a(48691);w=a(18647);x=a(61738);b.Tsb=new t.Be(function(y){y(d.hha).tfa(n.lKc);y(u.iab).to(v.mCa).sa();y(w.oCa).to(x.nCa).sa();y(c.lz).jN(function(A){b.GY.parent=A.Ib;return b.GY.get(c.lz);});y(f.g5).Zf(function(){return function(){return new g.Rbb();};});y(e.Qga).to(h.Iza).sa();y(k.OAa).to(l.NAa).sa();y(m.yAa).to(p.xAa).sa();y(r.Pbb).to(q.xDa).sa();});b.GY=new t.Uga({ZT:!0});},28048:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.RI={};t.qRb="usable";t.Kx="expired";t.released="released";t.MGb="output-restricted";t.tGc="output-downscaled";t.mSc="status-pending";t.awc="internal-error";},28289:function(t,b){var a;Object.defineProperty(b,"__esModule",{value:!0});b.XB=void 0;b.Oic=function(d){switch(d){case a.jCb:return "lg";case a.OJb:return "lc";case a.NJb:return "lr";case a.PJb:return "renew_lc";case a.QJb:return "renew_lr";case a.RJb:return "renew_lr_failed";case a.hLc:return "ilc";case a.iLc:return "ilr";case a.Flb:return "ld";case a.Nlb:return "renew_ld";case a.Olb:return "renew_ld_failed";default:return "unknown";}};(function(d){d[d.jCb=0]="licenseStarted";d[d.OJb=1]="receivedLicenseChallenge";d[d.NJb=2]="receivedLicense";d[d.PJb=3]="receivedRenewalChallengeComplete";d[d.QJb=4]="receivedRenewalLicenseComplete";d[d.RJb=5]="receivedRenewalLicenseFailed";d[d.hLc=6]="receivedIndivChallengeComplete";d[d.iLc=7]="receivedIndivLicenseComplete";d[d.Flb=8]="addLicenseComplete";d[d.Nlb=9]="addRenewalLicenseComplete";d[d.Olb=10]="addRenewalLicenseFailed";})(a || (b.XB=a={}));},47737:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.U7a="DrmServicesSymbol";b.hha="DrmServicesProviderSymbol";},41980:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.yAa="DrmTraitsFactorySymbol";},53921:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.mr={};t[t.S0=0]="playready";t[t.pSb=1]="widevine";t[t.dZ=2]="fairplay";},27995:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.V5={};t[t.Request=0]="Request";t[t.yfb=1]="Renewal";},34008:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.OAa="EmeApiFactorySymbol";},23563:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.YB="EmeConfigSymbol";},10060:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.z8a="EmeSessionFactorySymbol";},22266:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.iab="KeySystemProviderSymbol";},18647:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.oCa="KeySystemRestrictorSymbol";},91490:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Pbb="MediaKeySystemAccessInternalFactorySymbol";},21103:function(t,b){function a(d){return d?{supported:!1,reason:d}:{supported:!0};}Object.defineProperty(b,"__esModule",{value:!0});b.lz=void 0;b.rqb=function(d){return a(d);};b.j3a=function(d,n,c){c && d[n].status.supported && (d[n].status=a(c));};b.Hwb=function(d){for(var n,c=d.length - 1;0 <= c;c--)if(d[c].status.supported){n=c;break;}return n;};b.lz="MediaKeySystemAccessServicesSymbol";},92395:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.g5="MediaKeysStorageFactorySymbol";},51120:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.Usb=void 0;t=a(22674);d=a(47737);n=a(80075);c=a(21103);f=a(9717);g=a(10060);e=a(74946);b.Usb=new t.Be(function(h){h(d.U7a).to(n.wAa).sa();h(c.lz).to(f.yDa).sa();h(g.z8a).to(e.QAa);});},77228:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r,q,u){this.yY=m;this.Jd=p;this.O_=q;this.uu=u;this.log=r.wb("CannedChallengeProviderImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.Iza=void 0;t=a(22970);n=a(22674);c=a(47737);f=a(2248);g=a(87386);e=a(92395);h=a(21103);k=a(53921);l=a(84218);d.prototype.$Ra=function(m){var p;p=this;return Promise.all([this.yY(),this.gRa()]).then(function(r){var q;q=Ea(r);r=q.next().value;q=q.next().value;return r.Vnc({type:m,initData:q,Gqa:!1},p.O_());}).then(function(r){var q;q=Ea(r);r=q.next().value;q=q.next().value;q=p.Jd.encode(q.data[0]);p.log.trace("Challenge generated",q);return {tl:r,eMa:q};});};d.prototype.gRa=function(){var m;m=this;return this.uu.TG().then(function(p){return p.aD();}).then(function(p){switch(p){case k.mr.dZ:return l.W8a;case k.mr.S0:return l.heb;default:return l.Eib;}}).then(function(p){return p.map(m.Jd.decode);});};a=d;b.Iza=a;b.Iza=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.hha)),t.__param(1,(0,n.v)(f.mm)),t.__param(2,(0,n.v)(g.zb)),t.__param(3,(0,n.v)(e.g5)),t.__param(4,(0,n.v)(h.lz))],a);},80075:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r,q,u,v,w){var x;x=this;this.kT=r;this.config=q;this.Cjc=u;this.O_=v;this.Nq=w;this.YSc=function(y,A){var z;x.Nq.mark(m.nb.rha,y.Is.Ha,"generate-challenge");z=!1;A.NPc(function(B){z || (z=!0,x.Nq.mark(m.nb.qha,y.Is.Ha,"generate-challenge"));x.yqc(y,A,B).then(function(C){A.Elb(C);}).catch(function(C){return A.O5b(C);});});};this.log=p.wb("DrmServices");this.config.Lzb && this.mNa(v(),e.pr.yr).then(function(y){return y.close();});}Object.defineProperty(b,"__esModule",{value:!0});b.wAa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(69493);g=a(77134);e=a(24735);h=a(23563);k=a(10060);l=a(92395);m=a(63156);d.prototype.Vnc=function(p,r){return this.mNa(r,p.type,p.MA).then(function(q){return q.Ync(p.initData,p.Gqa).then(function(u){return [q,{kQ:q.aD(),data:u.gK}];});});};d.prototype.qu=function(p,r){var q;q=this;this.log.info("Requesting challenges",this.Jwb(p,p.type));return this.mNa(r,p.type,p.MA).then(function(u){q.IEb(p,u);return u.Znc(p.initData,p.Gqa).then(function(){return u;});});};d.prototype.IEb=function(p,r){r.ZPc(p.Is);this.YSc(p,r);};d.prototype.Jwb=function(p,r){return {movieId:p.Is.R,videoTrackId:p.Is.Sp,xid:p.Is.Ha,type:(0,e.kCb)(r)};};d.prototype.yqc=function(p,r,q){this.log.info("Sending license request",this.Jwb(p,q.Hi));return this.kT.qu({Ha:p.Is.Ha,Xd:p.Is.Xd,Isb:[p.Is.$r],gK:[{sessionId:r.cR() || "session",data:q.gK}],Hi:q.Hi,kQ:r.aD(),uob:q.uob,vp:p.Is.vp,Yf:p.Is.Yf,J:p.Is.R,Sp:p.Is.Sp});};d.prototype.mNa=function(p,r,q){return this.Cjc.create().then(function(u){return u.createSession(p,r,q).then(function(){return u;});});};a=d;b.wAa=a;b.wAa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(f.T7a)),t.__param(2,(0,n.v)(h.YB)),t.__param(3,(0,n.v)(k.z8a)),t.__param(4,(0,n.v)(l.g5)),t.__param(5,(0,n.v)(g.k5))],a);},97485:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.lKc=function(e){f.GY.parent=e.Ib;return function(){g || (g=new Promise(function(h,k){try{h(f.GY.get(c.U7a));}catch(l){k(new n.fk(d.da.WWb,d.Y.gXb,void 0,"Unable to extract the DRM services from the dependency injector",l));}}));return g;};};d=a(36129);n=a(61731);c=a(47737);f=a(49594);},90581:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x,y){this.zj=q;this.Ll=u;this.Jd=v;this.config=w;this.Ix=x;this.Yi=y;}Object.defineProperty(b,"__esModule",{value:!0});b.xAa=void 0;t=a(22970);n=a(22674);c=a(6405);f=a(2248);g=a(84408);e=a(4203);h=a(7605);k=a(53921);l=a(23563);m=a(65315);p=a(20674);r=a(8265);d.prototype.create=function(q){switch(q){case k.mr.S0:return new p.KAa(this.Ll,this.Jd);case k.mr.dZ:return new r.vGa(this.Ll,this.Jd,this.zj,this.Yi);default:return new m.Lza(this.Ll,this.Jd,this.Ix,this.config);}};a=d;b.xAa=a;b.xAa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(g.oF)),t.__param(1,(0,n.v)(c.MN)),t.__param(2,(0,n.v)(f.mm)),t.__param(3,(0,n.v)(e.Hc)),t.__param(4,(0,n.v)(l.YB)),t.__param(5,(0,n.v)(h.oz))],a);},17250:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x,y){this.Of=q;this.zj=u;this.Jd=v;this.is=w;this.gca=x;this.Ix=y;}Object.defineProperty(b,"__esModule",{value:!0});b.NAa=void 0;t=a(22970);n=a(22674);c=a(2248);f=a(42207);g=a(63368);e=a(84408);h=a(74870);k=a(53921);l=a(23563);m=a(81471);p=a(963);r=a(90349);d.prototype.create=function(q){switch(q){case k.mr.S0:return new p.NFa(this.gca,this.is,this.Jd,this.Of,this.Ix,this.zj);case k.mr.dZ:return new m.gBa(this.gca,this.is,this.Jd,this.Of,this.Ix,this.zj);default:return new r.qz(this.gca,this.is,this.Jd,this.Of,this.Ix,this.zj);}};a=d;b.NAa=a;b.NAa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(h.Am)),t.__param(1,(0,n.v)(e.oF)),t.__param(2,(0,n.v)(c.mm)),t.__param(3,(0,n.v)(f.Mi)),t.__param(4,(0,n.v)(g.p5)),t.__param(5,(0,n.v)(l.YB))],a);},18135:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m){k=c.Qf.call(this,k,void 0 === m?"EmeConfigImpl":m) || this;k.Je=l;return k;}Object.defineProperty(b,"__esModule",{value:!0});b.PAa=void 0;t=a(22970);n=a(22674);c=a(64174);f=a(83767);g=a(5021);e=a(12501);a=a(22816);Ia(d,c.Qf);Ha.Object.defineProperties(d.prototype,{MHb:{configurable:!0,enumerable:!0,get:function(){return !0;}},Lzb:{configurable:!0,enumerable:!0,get:function(){return this.Je.nAb || this.Je.Lqa || this.Je.Raa?!0:!1;}},v_:{configurable:!0,enumerable:!0,get:function(){return (0,g.Zi)(5);}},LHb:{configurable:!0,enumerable:!0,get:function(){return (0,g.Zi)(10);}},COa:{configurable:!0,enumerable:!0,get:function(){return "unsentDrmData";}},cQa:{configurable:!0,enumerable:!0,get:function(){return !1;}},sOa:{configurable:!0,enumerable:!0,get:function(){return !1;}},Ay:{configurable:!0,enumerable:!0,get:function(){return !0;}},rmb:{configurable:!0,enumerable:!0,get:function(){return (0,g.Zi)(30);}},smb:{configurable:!0,enumerable:!0,get:function(){return (0,g.Zi)(30);}},vmb:{configurable:!0,enumerable:!0,get:function(){return (0,g.Zi)(30);}},tmb:{configurable:!0,enumerable:!0,get:function(){return (0,g.Zi)(30);}},wmb:{configurable:!0,enumerable:!0,get:function(){return (0,g.Zi)(30);}},u0a:{configurable:!0,enumerable:!0,get:function(){return "";}},NGb:{configurable:!0,enumerable:!0,get:function(){return !0;}},OGb:{configurable:!0,enumerable:!0,get:function(){return !1;}},oQb:{configurable:!0,enumerable:!0,get:function(){return this.Je.Raa?!1:!0;}}});h=d;b.PAa=h;t.__decorate([e.config(e.pd,"persistentStateRequired")],h.prototype,"MHb",null);t.__decorate([e.config(e.pd,"initializeKeySystemAtStartup")],h.prototype,"Lzb",null);t.__decorate([e.config(e.ro,"licenseRenewalRequestDelay")],h.prototype,"v_",null);t.__decorate([e.config(e.ro,"persistedReleaseDelay")],h.prototype,"LHb",null);t.__decorate([e.config(e.string,"drmPersistKey")],h.prototype,"COa",null);t.__decorate([e.config(e.pd,"forceLimitedDurationLicense")],h.prototype,"cQa",null);t.__decorate([e.config(e.pd,"disableLicenseRenewal")],h.prototype,"sOa",null);t.__decorate([e.config(e.pd,"prepareCadmium")],h.prototype,"Ay",null);t.__decorate([e.config(e.ro,"apiCloseTimeout")],h.prototype,"rmb",null);t.__decorate([e.config(e.ro,"apiCreateMediaKeysTimeout")],h.prototype,"smb",null);t.__decorate([e.config(e.ro,"apiSetServerCertificateTimeout")],h.prototype,"vmb",null);t.__decorate([e.config(e.ro,"apiGenerateRequestTimeout")],h.prototype,"tmb",null);t.__decorate([e.config(e.ro,"apiUpdateTimeout")],h.prototype,"wmb",null);t.__decorate([e.config(e.string,"serverCertificate")],h.prototype,"u0a",null);t.__decorate([e.config(e.pd,"outputRestrictedIsFatal")],h.prototype,"NGb",null);t.__decorate([e.config(e.pd,"outputRestrictedIsFatalForUhd")],h.prototype,"OGb",null);t.__decorate([e.config(e.pd,"uhdKeyIsUsable")],h.prototype,"oQb",null);b.PAa=h=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.Po)),t.__param(1,(0,n.v)(a.$U)),t.__param(2,(0,n.v)(f.Tga)),t.__param(2,(0,n.optional)())],h);},61731:function(t,b,a){var n,c;function d(f,g,e,h,k){f=void 0 === f?n.da.yh:f;return c.re.call(this,f,g,e,void 0,void 0,h,c.re.jj(k),k) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.fk=void 0;n=a(36129);c=a(31149);Ia(d,c.re);b.fk=d;},74946:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r,q,u,v){this.gw=m;this.Va=p;this.Jd=r;this.config=q;this.Gp=u;this.uu=v;}Object.defineProperty(b,"__esModule",{value:!0});b.QAa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(81918);g=a(2248);e=a(23563);h=a(59818);k=a(97737);a=a(21103);d.prototype.create=function(){var m;m=this;return this.uu.TG().then(function(p){return new k.A8a(m.gw,m.Va,m.Jd,m.config,m.Gp,p);});};l=d;b.QAa=l;b.QAa=l=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(f.fe)),t.__param(2,(0,n.v)(g.mm)),t.__param(3,(0,n.v)(e.YB)),t.__param(4,(0,n.v)(h.gF)),t.__param(5,(0,n.v)(a.lz))],l);},97737:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v;function d(w,x,y,A,z,B){var C;C=this;this.Va=x;this.wx=y;this.config=A;this.Gp=z;this.py=B;this.keyStatuses=new m.wc({});this.zXa=function(D){var F,H,E,G,J,L;try{H=C.dr.gNa(D);E=H.iS;G=H.messageType;J=H.sessionId;C.HR=C.HR || H.HR;C.pea(J);C.log.trace("Received " + D.type + " event",{sessionId:J,messageType:G,keyIds:C.HR});if(G === b.cDa){if(C.config.sOa){C.log.trace("Disabling license renewal");return;}C.log.trace("Received a renewal request");C.Hi=f.pr.yr;C.xu=q.uT;}C.xu === q.qu && C.sv(g.XB.OJb);C.xu === q.uT && C.sv(g.XB.PJb);L={gK:E,uob:G,Hi:C.Hi};null === (F=C.nGb) || void 0 === F?void 0:F.call(C,L);C.OSa(E)?C.FR(new l.re(c.da.i8a)):C.jp && !C.jp.gSb && C.ZAb(L);}catch(K){C.FR(K);}};this.Ycc=function(D){for(var F=new Uint8Array(D),H=0;H < D.length;H+=2)(F[H]=D[H + 1],F[H + 1]=D[H]);return F;};this.Xcc=function(D){D=C.wx.decode(D);D=C.Ycc(D);return C.wx.encode(D);};this.xXa=function(D){var F,H,E,G,K,M,P,I,O,Q,T,U,W,Z,aa,ca,da;H=D.target;E=H.keyStatuses;C.pea(H.sessionId);C.log.trace("Received event: " + D.type);try{D=[];for(var J=Ea(E),L=J.next();!L.done;L=J.next()){K=Ea(L.value);M=K.next().value;P=K.next().value;I=C.wx.encode(new Uint8Array(M));O=null === (F=C.MA) || void 0 === F?void 0:F[I];D.push({NA:I,status:P,height:O});}D.sort(function(ha,S){return (ha.height || 0) - (S.height || 0);});Q=D.map(function(ha){return ha.NA;});T=D.map(function(ha){return ha.height;});U=D.map(function(ha){return ha.status;});C.PUa=Q + ", " + T + ", " + U;C.log.trace("KeyStatus: " + C.PUa);F={};for(var X=Ea(E),Y=X.next();!Y.done;Y=X.next()){W=Ea(Y.value);Z=W.next().value;aa=W.next().value;ca=C.wx.encode(new Uint8Array(Z));da=u[aa];F[ca]=da.status;C.AR(ca,da.error) && (G=new h.fk(da.error));}C.keyStatuses.set(F);}catch(ha){G=new h.fk(c.da.c_b);G.X8(ha);}G?C.QA?C.JUa(G):C.Wqa(G):(C.dr.Cma() || C.$Ab(),C.Hi !== f.pr.XI || C.dr.mLa() || (C.config.sOa?C.log.trace("Disabling license renewal"):C.pMc()));};this.cGb=function(D){C.log.error("MediaKeySession closed unexpectedly: " + D);C.Wqa(new l.re(c.da.FAa,v[D]));};this.FR=function(D){C.close().then(function(){var F;C.log.trace("Issuing a generate challenge error");null === (F=C.jp) || void 0 === F?void 0:F.g2.reject(D);C.jp=void 0;},function(F){var H;C.log.error("EmeSession closed with an error.",C.dr.lK(F));null === (H=C.jp) || void 0 === H?void 0:H.g2.reject(D);C.jp=void 0;});};this.ZAb=function(D){var F;null === (F=C.jp) || void 0 === F?void 0:F.g2.resolve(D);C.jp=void 0;};this.JUa=function(D){C.log.error("Failed to add license",D);C.close().then(function(){var F,H;C.log.trace("Issuing a license error");null === (F=C.jp) || void 0 === F?void 0:F.g2.reject(D);C.jp=void 0;null === (H=C.QA) || void 0 === H?void 0:H.reject(D);C.QA=void 0;},function(F){var H,E;C.log.error("EmeSession closed with an error.",C.dr.lK(F));C.xu === q.uT && C.sv(g.XB.Olb);null === (H=C.jp) || void 0 === H?void 0:H.g2.reject(D);C.jp=void 0;null === (E=C.QA) || void 0 === E?void 0:E.reject(D);C.QA=void 0;});};this.$Ab=function(){C.QA && (C.log.info("Successfully added license"),C.xu === q.qu?C.sv(g.XB.Flb):C.xu === q.uT && C.sv(g.XB.Nlb),C.QA.resolve(),C.QA=void 0);};this.Wqa=function(D){C.close().then(function(){var F;C.log.trace("Issuing a CDM error");C.jp=void 0;C.QA=void 0;null === (F=C.sXa) || void 0 === F?void 0:F.call(C,D);},function(F){var H;C.log.error("EmeSession closed with an error.",C.dr.lK(F));C.jp=void 0;C.QA=void 0;null === (H=C.sXa) || void 0 === H?void 0:H.call(C,D);});};this.sv=function(D){C.Ff.push({time:C.Va.yc(),Wba:D});};this.tKb=!1;this.log=w.wb("EmeSession");this.xu=q.nVc;this.mk=B.oqb();this.dr=B.mqb();this.Ff=[];this.sXa=function(D){C.m_a=D;};}Object.defineProperty(b,"__esModule",{value:!0});b.A8a=b.cDa=b.dDa=void 0;n=a(5021);c=a(36129);f=a(24735);g=a(28289);t=a(28048);e=a(27995);h=a(61731);k=a(59818);l=a(31149);m=a(81734);p=a(94293);r=a(82100);(function(w){w[w.nVc=0]="unknown";w[w.create=1]="create";w[w.qu=2]="license";w[w.uT=3]="renewal";w[w.closed=4]="closed";})(q || (q={}));b.dDa="license-request";b.cDa="license-renewal";u={usable:{status:t.RI.qRb},expired:{status:t.RI.Kx,error:c.da.rEa},released:{status:t.RI.released},"output-not-allowed":{status:t.RI.MGb,error:c.da.ndb},"output-restricted":{status:t.RI.MGb,error:c.da.sEa},"output-downscaled":{status:t.RI.tGc},"status-pending":{status:t.RI.mSc},"internal-error":{status:t.RI.awc,error:c.da.b_b}};v={"internal-error":c.Y.OVb,"closed-by-application":c.Y.MVb,"release-acknowledged":c.Y.QVb,"hardware-context-reset":c.Y.DAa,"resource-evicted":c.Y.RVb};d.prototype.rqc=function(){return this.py.gy;};d.prototype.Fwb=function(){return this.PUa;};d.prototype.cR=function(){return this.sessionId;};d.prototype.close=function(){var w;w=this;this.nGb=void 0;this.xu=q.closed;this.Ff=[];void 0 !== this.qva && (Ba.clearTimeout(this.qva),this.qva=void 0);return this.mk.zxc()?(this.log.trace("Closing the session"),this.mk.hKb(this.zXa),this.mk.eKb(this.xXa),this.mediaKeys=void 0,this.Gp.Qs(this.config.rmb,this.mk.close()).then(function(){w.log.info("Closed the session");}).catch(function(x){w.log.error("Close failed",x);w.dr.lK(x).code=c.da.d_b;throw x;})):Promise.resolve(void 0);};d.prototype.aD=function(){return this.py.aD();};d.prototype.Gyb=function(){return void 0 !== this.RA;};d.prototype.createSession=function(w,x,y){var A,z;A=this;this.MA=null !== (z=this.MA) && void 0 !== z?z:y;this.Hi=x;this.xu=q.create;this.sv(g.XB.jCb);return (w.Iyb()?Promise.resolve():this.Gp.Qs(this.config.smb,this.mk.createMediaKeys(this.py)).then(function(B){A.log.trace("Created media keys");return A.o7b(B).then(function(){return w.Glb(B);}).catch(function(C){return Promise.reject(A.qZa(C,c.da.SVb));});})).then(function(){A.mediaKeys=w.mediaKeys;try{A.mk.createSession(A.mediaKeys,A.cGb);A.mk.Hlb(A.zXa);A.mk.Dlb(A.xXa);A.pea(A.mk.cR());}catch(B){return Promise.reject(A.qZa(B,c.da.NVb));}}).catch(function(B){return Promise.reject(A.qZa(B,c.da.CAa));});};d.prototype.ZPc=function(w){this.Is=w;this.log.Alb("xid",w.Ha);};d.prototype.Ync=function(w,x){return this.generateRequest(w,x,!1).then(function(y){return y;});};d.prototype.Znc=function(w,x){return this.generateRequest(w,x,!0).then(function(){});};d.prototype.Elb=function(w,x){var y;this.MA=null !== (y=this.MA) && void 0 !== y?y:x;this.o_=w.o_;w=w.RA.map(function(A){return A.data;});this.OSa(w)?(this.log.error("The license buffer is empty"),this.FR(new h.fk(c.da.h8a,c.Y.f8a))):(this.xu === q.qu && (this.sv(g.XB.NJb),this.RA=w,this.Ksb=this.dr.yZ(this.HR,w),this.jp && this.jp.gSb && this.ZAb()),this.xu === q.uT && (this.sv(g.XB.QJb),this.RA=w,this.Ksb=this.dr.yZ(this.HR,w),this.RKa()));};d.prototype.O5b=function(w){this.xu === q.uT?(this.sv(g.XB.RJb),this.Wqa(w)):this.FR(w);};d.prototype.RKa=function(){var w,x;w=this;if(!this.RA){x=new h.fk(c.da.h8a,c.Y.j8a);this.JUa(x);return Promise.reject(x);}this.QA=new p.Fia();x=this.RA;this.RA=void 0;this.Gp.Qs(this.config.wmb,this.mk.update(x,this.xu === q.qu?e.V5.Request:e.V5.yfb,this.HR)).then(function(){w.dr.Cma() && w.$Ab();}).catch(function(y){y=w.dr.lK(y);y.code=c.da.rdb;y.message="Unable to update the EME";w.log.error(y.message,y);w.JUa(y);});return this.QA.promise;};d.prototype.NPc=function(w){this.nGb=w;};d.prototype.BPc=function(w){this.sXa=w;this.m_a && (w(this.m_a),this.m_a=void 0);};d.prototype.yZ=function(){return this.Ksb;};d.prototype.generateRequest=function(w,x,y){var A;A=this;this.xu=q.qu;this.log.trace("Generating a license challenge");if(!w)return (w=new h.fk(c.da.g8a,c.Y.j8a),this.FR(w),Promise.reject(w));if(this.OSa(w))return (w=new h.fk(c.da.g8a,c.Y.f8a),this.FR(w),Promise.reject(w));this.jp={g2:new p.Fia(),gSb:y};this.Gp.Qs(this.config.tmb,this.mk.generateRequest(this.dr.hRa(),w,x)).then(function(){A.pea(A.mk.cR());}).catch(function(z){var B,C;B=new h.fk(c.da.jha,z instanceof k.ex?c.Y.Q3:c.Y.nr);try{C=A.dr.lK(z);B.extCode=C.extCode;B.message="Unable to generate request.";B.X8(z);}catch(D){}A.log.error("Unable to generate a license request",B);A.FR(B);});return this.jp.g2.promise;};d.prototype.o7b=function(w){return this.Gp.Qs(this.config.vmb,this.mk.setServerCertificate(w,this.dr.Toa()));};d.prototype.pea=function(w){w && w !== this.sessionId && (this.sessionId && this.log.warn("sessionId changed from " + this.sessionId + " to " + w),this.sessionId=w,this.log.Alb("sessionId",w));};d.prototype.pMc=function(){var w;w=this;this.tKb || (this.tKb=!0,this.log.info("Kicking off license renewal",{timeout:this.config.v_}),this.qva=Ba.setTimeout(function(){w.qva=void 0;w.Ada();},this.config.v_.na(n.ya)));};d.prototype.Jxc=function(w){var x,y;return 1080 < (null !== (y=null === (x=this.MA) || void 0 === x?void 0:x[w]) && void 0 !== y?y:0);};d.prototype.AR=function(w,x){var y;y=this.mk.Cwb();return y && !y.includes(w)?!1:x === c.da.sEa?this.Jxc(w)?this.config.OGb:this.config.NGb:!!x;};d.prototype.Ada=function(){this.log.trace("Initiating a renewal request");this.Hi=f.pr.yr;this.xu=q.uT;this.dr.XLa()?this.dr.OTa(this.mk):this.Sma();};d.prototype.Sma=function(){var w;w=this;this.mk.Sma(this.mediaKeys,this.zXa,this.xXa,this.cGb).then(function(){w.log.debug("Creating session to renew license");w.pea(w.mk.cR());}).catch(function(){w.Wqa(new h.fk(c.da.jha));});};d.prototype.OSa=function(w){return 0 === w.length || w.reduce(function(x,y){return x || 0 === y.length;},!1);};d.prototype.qZa=function(w,x){var y,A;if((null === w || void 0 === w?0:w.code) && (null === w || void 0 === w?0:w.subCode))return w;A=(0,r.LRa)(null === w || void 0 === w?void 0:w.message);return new h.fk(x,w instanceof k.ex?c.Y.Q3:c.Y.nr,null === (y=null === A || void 0 === A?void 0:A.toString(16)) || void 0 === y?void 0:y.toUpperCase(),null === w || void 0 === w?void 0:w.message,w);};Ha.Object.defineProperties(d.prototype,{MA:{configurable:!0,enumerable:!0,get:function(){return this.d3b;},set:function(w){var x,y;x=this;if(w){y={};Object.entries(w).forEach(function(A){var z;z=Ea(A);A=z.next().value;z=z.next().value;y[A]=z;y[x.Xcc(A)]=z;});this.d3b=y;}}}});b.A8a=d;},84218:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Eib=["AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQAAAAAAPSZ0kAAAAAAAAAAA=="];b.W8a=["c2tkOi8vbmV0ZmxpeC9BQUFBQkFBQUFBQUV3MzFBcDVKNTB0Qml4WTVMaTNYSGJFc3dKdDdybTdhdEExVWpPMkw3Q1ArckJYTT0=","c2tkOi8vbmV0ZmxpeC9BQUFBQkFBQUFBQUV3MzFCczgwL0dQUmxsNXEweHl3bHhac1Nya3hjMndPRHZpWWNCMmJoWDdQOTNHQT0=","c2tkOi8vbmV0ZmxpeC9BQUFBQkFBQUFBQUV3MzFDcWNFL25GeU0waXVKY1pKSi9xTkl3T0xJaGFCdnB4WEpDNGtyV2VpaGJBOD0=","c2tkOi8vbmV0ZmxpeC9BQUFBQkFBQUFBQUV3MzFFamVRbC8rZTBLYWpjSEhZQkt1U0hkb21BdXhmSGlWUTNZYTFpRGJqYjF5Zz0="];b.heb=["AAADPHBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAxwcAwAAAQABABIDPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMgAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAUwA+ADwASwBJAEQAIABBAEwARwBJAEQAPQAiAEEARQBTAEMAVABSACIAIABWAEEATABVAEUAPQAiAEEAQQBBAEEAQQBNAFkARQB4AEkARQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAPQA9ACIAPgA8AC8ASwBJAEQAPgA8AC8ASwBJAEQAUwA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEwAQQBfAFUAUgBMAD4AaAB0AHQAcAA6AC8ALwBjAGEAcABwAHIAcwB2AHIAMAA2AC8AcwBpAGwAdgBlAHIAbABpAGcAaAB0ADUALwByAGkAZwBoAHQAcwBtAGEAbgBhAGcAZQByAC4AYQBzAG0AeAA8AC8ATABBAF8AVQBSAEwAPgA8AEwAVQBJAF8AVQBSAEwAPgBoAHQAdABwADoALwAvAGMAYQBwAHAAcgBzAHYAcgAwADYALwBzAGkAbAB2AGUAcgBsAGkAZwBoAHQANQAvAHIAaQBnAGgAdABzAG0AYQBuAGEAZwBlAHIALgBhAHMAbQB4ADwALwBMAFUASQBfAFUAUgBMAD4APABEAEUAQwBSAFkAUABUAE8AUgBTAEUAVABVAFAAPgBPAE4ARABFAE0AQQBOAEQAPAAvAEQARQBDAFIAWQBQAFQATwBSAFMARQBUAFUAUAA+ADwALwBEAEEAVABBAD4APAAvAFcAUgBNAEgARQBBAEQARQBSAD4A"];},48691:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q;function d(u,v,w,x,y,A){this.gw=u;this.config=v;this.f9=w;this.rD=x;this.CRb=y;this.Gp=A;this.log=this.gw.wb("KeySystemProvider");}Object.defineProperty(b,"__esModule",{value:!0});b.mCa=void 0;n=a(22970);t=a(22674);c=a(66523);f=a(87386);g=a(4203);e=a(17612);h=a(82100);k=a(41980);l=a(18647);m=a(21103);p=a(75236);r=a(59818);q=a(5021);d.prototype.get=function(){var u,v;u=this;try{v=this.rfc();return Promise.all([this.Yrc(),this.rD.get()]).then(function(w){var x,y,A;w=Ea(w);x=w.next().value;y=w.next().value;v.forEach(function(z){var B;B=u.pmc(z.hra,x);z.status=(0,m.rqb)(B);});A=(0,m.Hwb)(v);v.forEach(function(z,B){var C;C=B === A;z.status.supported && !C && (z=u.smc(z.hra,y),(0,m.j3a)(v,B,z));});return v;});}catch(w){throw (this.log.error("KeySystemProvider failed.",w),w);}};d.prototype.rfc=function(){var u,v;u=this;v=(this.config().QUa || [this.config().fy]).map(function(w){var x;x=e.mb.l$(w);x=u.f9.create(x).YRa();return (0 < x.length?x:[void 0]).map(function(y){return {keySystem:w,robustness:y};});});return (0,c.flatten)(v).map(function(w){return {hra:w,status:(0,m.rqb)(void 0)};});};d.prototype.pmc=function(u,v){var w;if(e.mb.Dha.includes(u.keySystem) || h.c$a.includes(null !== (w=u.robustness) && void 0 !== w?w:"")){if(v)return v;if(this.config().iEb && 1440 > Ba.screen.height * Ba.devicePixelRatio)return "hwdrm-screen-height";}};d.prototype.smc=function(u,v){u=(0,h.Lpb)(u);if(v.includes(u))return "too-many-errors";};d.prototype.Arc=function(){return n.__awaiter(this,void 0,void 0,function v(){var w;w=this;return Ua(v,function(x){return x.return(w.Gp.Qs((0,q.ic)(1E3),w.CRb.architecture).catch(function(){}));});});};d.prototype.Brc=function(){return n.__awaiter(this,void 0,void 0,function v(){var w;w=this;return Ua(v,function(x){return x.return(w.Gp.Qs((0,q.ic)(1E3),w.CRb.platformVersion).catch(function(){}));});});};d.prototype.hxc=function(u,v){return 0 === v?!0:u?(parseInt(u.split(".")[0],10) || 0) >= v:!1;};d.prototype.Yrc=function(){return n.__awaiter(this,void 0,void 0,function v(){var w,x;w=this;return Ua(v,function(y){x=w;return y.return(Promise.resolve().then(function(){return x.config().ekc?x.Brc().then(function(A){var z;z=x.config().ECc;if(!x.hxc(A,z))return "os-version";}):x.config().hkc?x.Arc().then(function(A){if("arm" !== A)return "architecture-not-arm";}):"hwdrm-not-enabled";}));});});};a=d;b.mCa=a;b.mCa=a=n.__decorate([(0,t.aa)(),n.__param(0,(0,t.v)(f.zb)),n.__param(1,(0,t.v)(g.Hc)),n.__param(2,(0,t.v)(k.yAa)),n.__param(3,(0,t.v)(l.oCa)),n.__param(4,(0,t.v)(p.bib)),n.__param(5,(0,t.v)(r.gF))],a);},61738:function(t,b,a){var n,c,f,g;function d(e,h,k){this.config=e;this.gw=h;this.PLa=k;this.Uda=[];this.J_a={};this.Gva={};this.log=this.gw.wb("KeySystemRestrictor");this.$zc=this.config().dtb?this.PLa.load():Promise.resolve([]);}Object.defineProperty(b,"__esModule",{value:!0});b.nCa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(4203);a=a(33258);d.prototype.get=function(){var e;e=this;try{return this.config().dtb?this.$zc.then(function(h){return e.Bmc(h);}):Promise.resolve([]);}catch(h){return (this.log.error("KeySystemRestrictor failed.",h),Promise.resolve([]));}};d.prototype.Bmc=function(e){var k;this.Uda=[];this.J_a={};this.Gva={};e=e.reduce(function(l,m){l[m.keySystem] || (l[m.keySystem]=[]);l[m.keySystem].push(m);return l;},{});this.log.debug("KeySystemErrorCounts: " + JSON.stringify(e));e=Ea(Object.entries(e));for(var h=e.next();!h.done;h=e.next()){k=Ea(h.value);h=k.next().value;k=k.next().value;if(k=this.wuc(k))(this.Uda.push(h),this.Gva[h]=k);}this.Uda.some(function(){return !0;}) && this.log.warn("Restricted KeySystems: " + this.Gva);return this.Uda;};d.prototype.wuc=function(e){var h,k,l;h=this;l=e.reduce(function(m,p){h.config().nlc.includes(p.code) && (p=h.bfc(p),m[p] || (m[p]=0),m[p]++);return m;},{});this.J_a[e[0].keySystem]=l;return null === (k=Object.entries(l).find(function(m){m=Ea(m);m.next();return m.next().value >= h.config().olc;})) || void 0 === k?void 0:k[0];};d.prototype.bfc=function(e){return [e.code,e.subCode,e.extCode].filter(Boolean).join(".");};Ha.Object.defineProperties(d.prototype,{zBb:{configurable:!0,enumerable:!0,get:function(){return this.Uda;}},ABb:{configurable:!0,enumerable:!0,get:function(){return this.J_a;}},yBb:{configurable:!0,enumerable:!0,get:function(){return this.Gva;}}});g=d;b.nCa=g;b.nCa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.Hc)),t.__param(1,(0,n.v)(c.zb)),t.__param(2,(0,n.v)(a.Hza))],g);},38231:function(t,b,a){var n,c,f,g;function d(e,h){this.f9=e;this.i9=h;}Object.defineProperty(b,"__esModule",{value:!0});b.xDa=void 0;t=a(22970);n=a(22674);c=a(41980);f=a(34008);g=a(52428);d.prototype.create=function(e,h,k){return new g.Qbb(e,this.f9,this.i9,h,k);};a=d;b.xDa=a;b.xDa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.yAa)),t.__param(1,(0,n.v)(f.OAa))],a);},52428:function(t,b,a){var n,c;function d(f,g,e,h,k){this.keySystem=f;this.f9=g;this.i9=e;this.py=h;this.kQ=k;this.mediaKeys=[];}Object.defineProperty(b,"__esModule",{value:!0});b.Qbb=void 0;n=a(17612);c=a(82100);d.prototype.createMediaKeys=function(){var f;f=this;return this.py.createMediaKeys().then(function(g){"function" === typeof WeakRef && f.mediaKeys.push(new WeakRef(g));return g;});};d.prototype.getConfiguration=function(){return this.py.getConfiguration();};d.prototype.aD=function(){return n.mb.l$(this.py.keySystem);};d.prototype.oqb=function(){return this.i9.create(this.kQ);};d.prototype.mqb=function(){return this.f9.create(this.kQ);};Ha.Object.defineProperties(d.prototype,{gy:{configurable:!0,enumerable:!0,get:function(){var f,g;f=this.keySystem;g=(0,c.Xwb)(this.py);g && (f+="." + g);return f;}},ksa:{configurable:!0,enumerable:!0,get:function(){return this.mediaKeys.filter(function(f){return void 0 !== f.deref();}).length;}}});b.Qbb=d;},9717:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;function d(y,A,z,B,C,D,F){this.gw=y;this.Jd=A;this.config=z;this.Ix=B;this.HCc=C;this.i9=D;this.kyc=F;this.log=this.gw.wb("MediaKeySystemAccessServices");this.QNc();}Object.defineProperty(b,"__esModule",{value:!0});b.yDa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(87386);g=a(61731);e=a(21103);h=a(53921);k=a(2248);l=a(4203);m=a(17612);p=a(82100);r=a(84218);q=a(91490);u=a(34008);v=a(22266);w=a(23563);x=a(73796);d.prototype.TG=function(){this.promise || (this.promise=this.SNc());return this.promise;};d.prototype.Efc=function(y,A,z){var B;z=(A === p.WE || m.mb.Dha.includes(z)) && this.config().hEb;B=[{contentType:x.uc.contentType(x.uc.IE)}];z && B.push({contentType:x.uc.contentType(x.uc.mi)});A && B.forEach(function(C){C.robustness=A;});z={initDataTypes:[p.NE],videoCapabilities:B,sessionTypes:[p.TEMPORARY]};y === h.mr.pSb && this.Ix.MHb && (z.persistentState="required");return [z];};d.prototype.sqb=function(y,A){var z;z=this;return new Promise(function(B,C){var D;D=m.mb.l$(y);z.i9.create(D).IMc(y,z.Efc(D,A,y)).then(function(F){z.Pac(F,y,A);z.mAc(y,F);F=z.HCc.create(y,F,D);B(F);}).catch(function(F){z.log.warn("Unable to create the media key system access object",{keySystem:y,error:F.message});C(new g.fk(c.da.e8a,c.Y.nr,void 0,"Unable to create media keys system access. " + F.message,F));});});};d.prototype.wpc=function(){var y;y=this.config().QUa || [this.config().fy];if(1 < y.length)return (y=y.map(function(A){return m.mb.SQa(m.mb.l$(A));}),1 === new Set(y).size?Promise.resolve(y[0]):this.TG().then(function(A){return A.aD();}).then(function(A){return m.mb.SQa(A);}));y=m.mb.l$(y[0]);return Promise.resolve(m.mb.SQa(y));};d.prototype.Pac=function(y,A,z){A=(z === p.WE || m.mb.Dha.includes(A)) && this.config().hEb;y=y.getConfiguration().videoCapabilities;if(null === y || void 0 === y || !y.some(function(B){return B.contentType === "video/mp4;codecs=" + x.uc.IE;}))throw Error("AVC not supported");if(A && (null === y || void 0 === y || !y.some(function(B){return B.contentType === "video/mp4;codecs=" + x.uc.mi;})))throw Error("HEVC not supported");};d.prototype.mAc=function(y,A){this.log.trace("Created the media keys system access",{keySystem:y,supportedconfig:A.getConfiguration?JSON.stringify(A.getConfiguration()):void 0});};d.prototype.L3a=function(y){var A,z,B,C;A=this;z=y.aD();B=y.oqb();C=y.mqb();return y.createMediaKeys().then(function(D){B.createSession(D,function(){});return B.setServerCertificate(D,C.Toa());}).then(function(){return B.generateRequest(p.NE,A.gRa(z),!1);}).then(function(){return B.close();}).then(function(){return y;}).catch(function(D){A.log.error("validateKeySystemAccess failed",D);return Promise.reject(D);});};d.prototype.gRa=function(y){switch(y){case h.mr.dZ:y=r.W8a;break;case h.mr.S0:y=r.heb;break;default:y=r.Eib;}return y.map(this.Jd.decode);};d.prototype.SNc=function(){var y;y=this;try{return this.kyc.get().then(function(A){var z;y.e3b=A;z=(0,e.Hwb)(A);return A.map(function(B,C){var D,F;D=B.hra;F=B.status;return function(){var H,E;if(!F.supported)return Promise.reject(Error(D.keySystem + ": " + F.reason));H=C === z;E=y.config().L3a && !H;return y.sqb(D.keySystem,D.robustness).catch(function(G){(0,e.j3a)(A,C,"not-supported");throw G;}).then(function(G){return E?y.L3a(G):Promise.resolve(G);}).catch(function(G){(0,e.j3a)(A,C,"validation-failed");throw G;});};});}).then(function(A){return y.TNc(A);}).then(function(A){y.keySystemAccess=A;y.gy=A.gy;return A;});}catch(A){return Promise.reject(A);}};d.prototype.TNc=function(y){return y.reduce(function(A,z){return A.then(function(B){return Promise.resolve(B);}).catch(function(){return z();});},Promise.reject(Error("keySystem missing")));};d.prototype.Lac=function(){var y;y=this;return new Promise(function(A,z){var B;B=Ba.screen.height * Ba.devicePixelRatio;y.config().iEb && 1440 > B?z():A();});};d.prototype.QNc=function(){var y,A;y=this;if(this.config().oAc){A=(this.config().QUa || [this.config().fy]).filter(function(z){return m.mb.Dha.includes(z) || z === m.mb.Dib;}).map(function(z){return y.sqb(z,z === m.mb.Dib?p.WE:void 0);});Promise.all([this.Lac()].concat(za(A))).then(function(){return y.Fjb=!0;}).catch(function(){return y.Fjb=!1;});}};Ha.Object.defineProperties(d.prototype,{xBb:{configurable:!0,enumerable:!0,get:function(){return this.gy;}},BBb:{configurable:!0,enumerable:!0,get:function(){return this.e3b;}},wBb:{configurable:!0,enumerable:!0,get:function(){return this.Fjb;}},ksa:{configurable:!0,enumerable:!0,get:function(){var y;return null === (y=this.keySystemAccess) || void 0 === y?void 0:y.ksa;}}});a=d;b.yDa=a;b.yDa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.zb)),t.__param(1,(0,n.v)(k.mm)),t.__param(2,(0,n.v)(l.Hc)),t.__param(3,(0,n.v)(w.YB)),t.__param(4,(0,n.v)(q.Pbb)),t.__param(5,(0,n.v)(u.OAa)),t.__param(6,(0,n.v)(v.iab))],a);},66372:function(t,b){function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.Rbb=void 0;a.prototype.Iyb=function(){return void 0 !== this.mediaKeys;};a.prototype.Glb=function(d){this.mediaKeys=d;};a.prototype.hMc=function(){this.Iyb() && (this.mediaKeys=void 0);};b.Rbb=a;},77699:function(t,b){function a(d,n,c){var f;f=this;this.Jd=d;this.Nk=n;this.zj=c;this.pqc=function(g){var e;g=g.subarray(14,30);g=String.fromCharCode.apply(null,g);g=f.Jd.decode(g);g=g.subarray(4);e=new Uint8Array(16);e.set(g);return e;};this.Z8a={NE:1667591779,kUb:1667392371};}Object.defineProperty(b,"__esModule",{value:!0});b.V8a=void 0;a.prototype.Jcc=function(d,n){n=n?this.Z8a.kUb:this.Z8a.NE;d=d.map(function(c){return {n$c:"",lyc:c,v7:c,idd:c,XWc:[1]};});return this.FAc(n,d);};a.prototype.EAc=function(d){var n;n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,d);return this.QVa("fpsi",[n]);};a.prototype.DAc=function(d,n,c){d=[this.QVa("fkri",[d])];n.byteLength && d.push(this.Rra("fkai",[n]));c.length && d.push(this.Rra("fkvl",[new Uint8Array(new Uint32Array(c).buffer)]));return this.Rra("fpsk",d);};a.prototype.FAc=function(d,n){var c,g;c=new Uint8Array([148,206,134,251,7,255,79,67,173,184,147,210,250,150,140,162]);d=[this.EAc(d)];for(var f in n){g=n[f];d.push(this.DAc(g.lyc,g.v7,g.XWc));}n=this.Rra("fpsd",d);f=new Uint8Array(4);new DataView(f.buffer).setUint32(0,n.byteLength);return this.QVa("pssh",[c,f,n]);};a.prototype.QVa=function(d,n){var c,f,g;c=0;for(g in n)c+=n[g].byteLength;c=new Uint8Array(12 + c);f=new DataView(c.buffer);g=0;f.setUint32(g,c.byteLength);g+=4;c.set(this.zj.decode(d),g);g+=4;f.setUint32(g,0);g+=4;for(var e in n)(d=n[e],c.set(d,g),g+=d.byteLength);return c;};a.prototype.Rra=function(d,n){var c,f;c=0;for(f in n)c+=n[f].byteLength;c=new Uint8Array(8 + c);f=0;new DataView(c.buffer).setUint32(f,c.byteLength);f+=4;c.set(this.zj.decode(d),f);f+=4;for(var g in n)(d=n[g],c.set(d,f),f+=d.byteLength);return c;};b.V8a=a;},81471:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x,y){q=c.qz.call(this,q,u,v,w,x,y) || this;q.Jd=v;q.Nk=w;q.Ix=x;q.zj=y;q.Yyb=new f.V8a(q.Jd,q.Nk,q.zj);return q;}Object.defineProperty(b,"__esModule",{value:!0});b.gBa=void 0;t=a(22970);n=a(22674);c=a(90349);f=a(77699);g=a(63368);e=a(42207);h=a(2248);k=a(74870);l=a(23563);m=a(84408);p=a(27995);r=a(47450);Ia(d,c.qz);d.prototype.generateRequest=function(q,u,v){var w,x,y;w=this;try{x=u.map(function(A){return w.Yyb.pqc(A);});this.Bzb=x.map(function(A){return w.Jd.encode(A);});y=this.Yyb.Jcc(x,v);return c.qz.prototype.generateRequest.call(this,q,[y],!1);}catch(A){return Promise.reject(A);}};d.prototype.update=function(q,u,v){var w,x,y,A,z;w=this;if(v)try{x=this.zj.encode(q[0]);y=JSON.parse(x).RESPONSES.map(function(B){var C;C=r.eja.IOb(B.ID);return {keyID:u === p.V5.yfb?w.Bzb[w.Bzb.length - 1]:v[C],payload:B.PAYLOAD};});if(u === p.V5.Request){A=y.map(function(B){return B.keyID;});this.Xvc=A;v.forEach(function(B){-1 === A.indexOf(B) && y.push({keyID:B,error:1});});}z=JSON.stringify(y);q=[this.zj.decode(z)];}catch(B){return Promise.reject(B);}return c.qz.prototype.update.call(this,q,u);};d.prototype.Ada=function(){return c.qz.prototype.update.call(this,[this.zj.decode("renew")],p.V5.Request);};d.prototype.Cwb=function(){return this.Xvc;};a=d;b.gBa=a;b.gBa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(g.p5)),t.__param(1,(0,n.v)(e.Mi)),t.__param(2,(0,n.v)(h.mm)),t.__param(3,(0,n.v)(k.Am)),t.__param(4,(0,n.v)(l.YB)),t.__param(5,(0,n.v)(m.oF))],a);},963:function(t,b,a){var n,c,f,g;function d(){var e;e=c.qz.apply(this,arguments) || this;e.sGb=function(h){var k,l,r;h=h.target.keyStatuses;try{for(var m=Ea(h),p=m.next();!p.done;p=m.next()){r=Ea(p.value);r.next();"usable" === r.next().value && (null === (k=e.Qi) || void 0 === k?void 0:k.removeEventListener("keystatuseschange",e.sGb),null === (l=e.qka) || void 0 === l?void 0:l.close(),e.qka=void 0);}}catch(q){console.error("Error handling key status change",q);}};return e;}Object.defineProperty(b,"__esModule",{value:!0});b.NFa=void 0;t=a(22970);n=a(22674);c=a(90349);f=a(61731);g=a(36129);Ia(d,c.qz);d.prototype.Sma=function(e,h,k,l){this.hKb(h);this.eKb(k);this.qka=this.Qi;this.Qi=new c.Obb(e,l);this.Hlb(h);this.Dlb(k);this.Qi.addEventListener("keystatuseschange",this.sGb);return this.generateRequest(this.initDataType,this.initData,!1);};d.prototype.close=function(){var h;function e(k){return k && k.sessionId?k.close():Promise.resolve();}h=this;return this.Qi?Promise.all([e(this.Qi),e(this.qka)]).then(function(){}).finally(function(){h.Qi=void 0;h.qka=void 0;}):Promise.reject(new f.fk(g.da.d8a,g.Y.kha,void 0,"Unable to close a key session, key session is not valid"));};d.prototype.generateRequest=function(e,h,k){this.initDataType=e;this.initData=h;return c.qz.prototype.generateRequest.call(this,e,h,k);};a=d;b.NFa=a;b.NFa=a=t.__decorate([(0,n.aa)()],a);},90349:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q;function d(u,v){var w;w=this;this.ppb=v;this.zH=u.createSession("temporary");this.zH.closed.then(function(x){var y;return null === (y=w.ppb) || void 0 === y?void 0:y.call(w,x);});}function n(u,v,w,x,y,A){this.gca=u;this.is=v;this.Jd=w;this.Nk=x;this.Ix=y;this.zj=A;(0,g.hw)(this,"nav");}Object.defineProperty(b,"__esModule",{value:!0});b.Obb=b.qz=void 0;t=a(22970);f=a(22674);g=a(66523);e=a(36129);h=a(63368);k=a(42207);l=a(61731);m=a(74870);p=a(2248);r=a(23563);a=a(84408);n.prototype.cR=function(){if(this.Qi)return this.Qi.sessionId;};n.prototype.IMc=function(u,v){return this.gca.requestMediaKeySystemAccess(u,v);};n.prototype.createMediaKeys=function(u){return u.createMediaKeys();};n.prototype.createSession=function(u,v){this.Qi=new d(u,v);};n.prototype.Sma=function(){return Promise.reject(new l.fk(e.da.jha));};n.prototype.zxc=function(){return !!this.Qi;};n.prototype.setServerCertificate=function(u,v){return this.is.Nka(u.setServerCertificate) && v?u.setServerCertificate(v):Promise.resolve();};n.prototype.generateRequest=function(u,v){return this.Qi?this.Qi.generateRequest(u,v[0]):Promise.reject(new l.fk(e.da.jha,e.Y.kha,void 0,"Unable to generate a license request, key session is not valid"));};n.prototype.update=function(u){return this.Qi?this.Qi.update(u[0]):Promise.reject(new l.fk(e.da.k8a,e.Y.kha,void 0,"Unable to update the EME with a response, key session is not valid"));};n.prototype.close=function(){var u;if(!this.Qi)return Promise.reject(new l.fk(e.da.d8a,e.Y.kha,void 0,"Unable to close a key session, key session is not valid"));u=Promise.resolve();this.cR() && (u=this.Qi.close());this.Qi=void 0;return u;};n.prototype.Ada=function(){return Promise.reject(new l.fk(e.da.EAa,void 0,"Unable to renew a key session, not supported"));};n.prototype.Hlb=function(u){if(!this.Qi)throw ReferenceError("Unable to add message handler, key session is not valid");this.Qi.addEventListener(c.o8a,u);};n.prototype.Dlb=function(u){if(!this.Qi)throw ReferenceError("Unable to add key status handler, key session is not valid");this.Qi.addEventListener(c.n8a,u);};n.prototype.hKb=function(u){if(!this.Qi)throw ReferenceError("Unable to remove message handler, key session is not valid");this.Qi.removeEventListener(c.o8a,u);};n.prototype.eKb=function(u){if(!this.Qi)throw ReferenceError("Unable to remove key status handler, key session is not valid");this.Qi.removeEventListener(c.n8a,u);};n.prototype.Cwb=function(){};q=c=n;b.qz=q;q.o8a="message";q.n8a="keystatuseschange";b.qz=q=c=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(h.p5)),t.__param(1,(0,f.v)(k.Mi)),t.__param(2,(0,f.v)(p.mm)),t.__param(3,(0,f.v)(m.Am)),t.__param(4,(0,f.v)(r.YB)),t.__param(5,(0,f.v)(a.oF))],q);d.prototype.addEventListener=function(u,v,w){this.zH.addEventListener(u,v,w);};d.prototype.removeEventListener=function(u,v,w){this.zH.removeEventListener(u,v,w);};d.prototype.generateRequest=function(u,v){return this.zH.generateRequest(u,v);};d.prototype.update=function(u){return this.zH.update(u);};d.prototype.close=function(){this.ppb=void 0;return this.zH.close();};Ha.Object.defineProperties(d.prototype,{sessionId:{configurable:!0,enumerable:!0,get:function(){return this.zH.sessionId;}},expiration:{configurable:!0,enumerable:!0,get:function(){return this.zH.expiration;}},keyStatuses:{configurable:!0,enumerable:!0,get:function(){return this.zH.keyStatuses;}}});b.Obb=d;},65315:function(t,b,a){var n,c,f,g,e,h,k,l,m,p;function d(r,q,u,v){this.Ll=r;this.Jd=q;this.Ix=u;this.config=v;}Object.defineProperty(b,"__esModule",{value:!0});b.Lza=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(6405);g=a(2248);e=a(61731);h=a(59818);k=a(23563);l=a(4203);m=a(31149);p=a(82100);d.prototype.Cma=function(){return !1;};d.prototype.mLa=function(){return !0;};d.prototype.XLa=function(){return !0;};d.prototype.hRa=function(){return p.NE;};d.prototype.Toa=function(){return this.Ix.u0a?this.Jd.decode(this.Ix.u0a):this.Jd.decode(p.vib);};d.prototype.YRa=function(){return [p.WE,p.dja,p.cja];};d.prototype.OTa=function(){Promise.reject(new m.re(c.da.EAa));};d.prototype.gNa=function(r){var q;return {type:r.type,sessionId:null === (q=r.target) || void 0 === q?void 0:q.sessionId,iS:[new Uint8Array(r.message)],messageType:r.messageType};};d.prototype.lK=function(r){var q,u,v;q=new e.fk(c.da.ria);u=null === r || void 0 === r?void 0:r.code;null != u && void 0 !== u?(u=parseInt(u,10),q.subCode=1 <= u && 9 >= u?c.Y.lV + u:c.Y.lV):q.subCode=r instanceof h.ex?c.Y.Q3:c.Y.nr;try{v=r.message.match(/\((\d*)\)/)[1];q.extCode=this.Ll.Foa(v,4);}catch(w){}q.X8(r);return q;};d.prototype.yZ=function(){};a=d;b.Lza=a;b.Lza=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.MN)),t.__param(1,(0,n.v)(g.mm)),t.__param(2,(0,n.v)(k.YB)),t.__param(3,(0,n.v)(l.Hc))],a);},20674:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p){this.Ll=m;this.Jd=p;}Object.defineProperty(b,"__esModule",{value:!0});b.KAa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(6405);g=a(2248);e=a(61731);h=a(59818);k=a(31149);l=a(82100);d.prototype.Cma=function(){return !0;};d.prototype.mLa=function(){return !1;};d.prototype.XLa=function(){return !1;};d.prototype.hRa=function(){return l.NE;};d.prototype.Toa=function(){};d.prototype.YRa=function(){return [];};d.prototype.OTa=function(){Promise.reject(new k.re(c.da.EAa));};d.prototype.gNa=function(m){var p;p=new Uint8Array(m.message);p=this.Olc(p,"PlayReadyKeyMessage","Challenge");p=this.Jd.decode(p);return {type:m.type,sessionId:m.target.sessionId,iS:[p],messageType:m.messageType};};d.prototype.lK=function(m){var p,r,q;p=new e.fk(c.da.ria);r=m.code;null != r && void 0 !== r?(r=parseInt(r,10),p.subCode=1 <= r && 9 >= r?c.Y.lV + r:c.Y.lV):p.subCode=m instanceof h.ex?c.Y.Q3:c.Y.nr;try{q=(/\((\d+)\)/).exec(m.message);p.extCode=this.Ll.Foa(Number(q && q[1]),4);}catch(u){}p.X8(m);return p;};d.prototype.Olc=function(m,p){var q,u,v;for(var r=1;r < arguments.length;++r);for(r=1;r < arguments.length;r++);r="";u=m.length;for(q=0;q < u;q++){v=m[q];0 < v && (r+=String.fromCharCode(v));}u="\\s*(.*)\\s*";for(q=arguments.length - 1;0 < q;q--){v=arguments[q];if(0 > r.search(v))return "";v="(?:[^:].*:|)" + v;u="[\\s\\S]*<" + v + "[^>]*>" + u + "[\\s\\S]*";}return (r=r.match(new RegExp(u)))?r[1]:"";};d.prototype.yZ=function(){};a=d;b.KAa=a;b.KAa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.MN)),t.__param(1,(0,n.v)(g.mm))],a);},47450:function(t,b){function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.eja=void 0;a.zvc=function(d){return "ID" + (d + 1);};a.IOb=function(d){return Number(d.substr(2)) - 1;};b.eja=a;},8265:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q;function d(u,v,w,x){this.Ll=u;this.Jd=v;this.zj=w;this.Yi=x;}Object.defineProperty(b,"__esModule",{value:!0});b.vGa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(6405);g=a(84408);e=a(61731);h=a(59818);k=a(2248);l=a(82100);m=a(97737);p=a(31149);r=a(7605);q=a(47450);d.prototype.Cma=function(){return !1;};d.prototype.mLa=function(){return !1;};d.prototype.XLa=function(){return !0;};d.prototype.hRa=function(){return l.NE;};d.prototype.Toa=function(){return this.Jd.decode(l.cBa);};d.prototype.YRa=function(){return [];};d.prototype.OTa=function(u){u.Ada();};d.prototype.gNa=function(u){var v,w;v=[];if(u.messageType === m.dDa || u.messageType === m.cDa){if(u.messageType === m.dDa){w=this.zj.encode(new Uint8Array(u.message));v=JSON.parse(w);w=v.map(function(x){return x.keyID;});v=v.map(function(x){return x.payload;});}else v=[this.Jd.encode(new Uint8Array(u.message))];if(0 === v.length || !v.every(function(x){return x && x.length;}))throw new p.re(c.da.i8a);v=this.qUc(v);v=this.zj.decode(JSON.stringify(v));}else v=new Uint8Array(u.message);return {type:u.type,sessionId:u.target.sessionId,iS:[v],messageType:u.messageType,HR:w};};d.prototype.lK=function(u){var v,w,x,y;w=null === (v=u.target) || void 0 === v?void 0:v.error;if(w)(x=w.systemCode,y=w.code);v=new e.fk(c.da.ria,u instanceof h.ex?c.Y.Q3:c.Y.lV,x?this.Ll.Foa(x,4):y,"",w);v.X8(u);return v;};d.prototype.qUc=function(u){u=u.map(function(v,w){return {ID:q.eja.zvc(w),PAYLOAD:v};});return {VERSION:this.Yi.LC?3:1,CHALLENGES:u};};d.prototype.yZ=function(u,v){var w,x;w=this;if(v && this.Yi.LC)try{x=this.zj.encode(v[0]);return JSON.parse(x).RESPONSES.sort(function(y,A){return y.ID > A.ID?1:-1;}).map(function(y){var A;A=q.eja.IOb(y.ID);y=w.Jd.decode(y.DHB).subarray(4,12);A=w.Jd.decode(u[A]).subarray(0,8);return {from:y,to:A};});}catch(y){throw new e.fk(c.da.a_b,void 0,void 0,void 0,y);}};a=d;b.vGa=a;b.vGa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.MN)),t.__param(1,(0,n.v)(k.mm)),t.__param(2,(0,n.v)(g.oF)),t.__param(3,(0,n.v)(r.oz))],a);},63341:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperty(b,"__esModule",{value:!0});b.tvb=void 0;t=a(22674);d=a(62502);n=a(15031);c=a(76691);f=a(69936);g=a(33399);e=a(14318);h=a(75447);k=a(69484);b.tvb=new t.Be(function(l){l(k.b9a).to(d.mBa).sa();l(k.Afb).to(n.dGa).sa();l(k.zfb).to(c.cGa).sa();l(e.$8a).to(f.kBa).sa();l(h.a$a).to(g.MBa).sa();});},14318:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$8a="FtlDataParserSymbol";},69484:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Afb="ReportSyncSymbol";b.zfb="ReportApiErrorSyncSymbol";b.a9a="FtlProbeConfigSymbol";b.b9a="FtlProbeSymbol";},75447:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.a$a="HttpRequesterSymbol";},69936:function(t,b,a){var n,c,f,g,e;function d(h,k){this.is=h;this.json=k;(0,c.hw)(this,"json");}Object.defineProperty(b,"__esModule",{value:!0});b.kBa=void 0;t=a(22970);n=a(22674);c=a(66523);f=a(63368);g=a(5021);a=a(42207);d.prototype.parse=function(h){var l;h=this.json.parse(h);if(!this.is.SJa(h))throw Error("FtlProbe: param: not an object");if(h.next && !this.is.U6(h.next))throw Error("FtlProbe: param.next: not a positive integer");if(!this.is.U6(h.pulses))throw Error("FtlProbe: param.pulses: not a positive integer");if(h.pulse_delays && !this.is.yP(h.pulse_delays))throw Error("FtlProbe: param.pulse_delays: not an array");if(!this.is.U6(h.pulse_timeout))throw Error("FtlProbe: param.pulse_timeout: not a positive integer");if(!this.is.yP(h.urls))throw Error("FtlProbe: param.urls: not an array");if(!this.is.qx(h.logblob))throw Error("FtlProbe: param.logblob: not a string");if(!this.is.p7(h.ctx))throw Error("FtlProbe: param.ctx: not an object");for(var k=0;k < h.urls.length;++k){l=h.urls[k];if(!this.is.SJa(l))throw Error("FtlProbe: param.urls[" + k + "]: not an object");if(!this.is.Ft(l.name))throw Error("FtlProbe: param.urls[" + k + "].name: not a string");if(!this.is.Ft(l.method))throw Error("FtlProbe: param.urls[" + k + "].method: not a string");if(!this.is.Ft(l.url))throw Error("FtlProbe: param.urls[" + k + "].url: not a string");}return {yKc:h.pulses,lJb:h.pulse_delays?h.pulse_delays.map(g.ic):[],xKc:(0,g.ic)(h.pulse_timeout),kBb:h.next?(0,g.ic)(h.next):void 0,urls:h.urls,JVa:h.logblob,context:h.ctx};};e=d;b.kBa=e;b.kBa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mi)),t.__param(1,(0,n.v)(f.AV))],e);},34731:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p){l=g.Qf.call(this,l,"FtlProbeConfigImpl") || this;l.mk=m;l.Ma=p;return l;}Object.defineProperty(b,"__esModule",{value:!0});b.lBa=void 0;t=a(22970);n=a(30869);c=a(22674);f=a(5021);g=a(64174);e=a(24747);h=a(12501);a=a(83767);Ia(d,g.Qf);Ha.Object.defineProperties(d.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return !0;}},endpoint:{configurable:!0,enumerable:!0,get:function(){return "" + this.uQa + (-1 === this.uQa.indexOf("?")?"?":"&") + "monotonic=" + this.Ma.MEb + "&device=web";}},UNb:{configurable:!0,enumerable:!0,get:function(){return f.ia;}},dQa:{configurable:!0,enumerable:!0,get:function(){return "";}},uQa:{configurable:!0,enumerable:!0,get:function(){return this.mk.endpoint + "/ftl/probe" + (this.dQa?"?force=" + this.dQa:"");}}});k=d;b.lBa=k;t.__decorate([h.config(h.pd,"ftlEnabled")],k.prototype,"enabled",null);t.__decorate([h.config(h.ro,"ftlStartDelay")],k.prototype,"UNb",null);t.__decorate([h.config(h.string,"ftlEndpointForceParam")],k.prototype,"dQa",null);t.__decorate([h.config(h.url,"ftlEndpoint")],k.prototype,"uQa",null);b.lBa=k=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(a.Po)),t.__param(1,(0,c.v)(e.vga)),t.__param(2,(0,c.v)(n.Li))],k);},62502:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r,q,u,v,w){this.config=m;this.fzb=p;this.Ad=r;this.Le=q;this.DMc=u;this.wKb=v;this.Wxc=0;this.wa=w.wb("FTL");}Object.defineProperty(b,"__esModule",{value:!0});b.mBa=void 0;t=a(22970);c=a(22674);f=a(5021);g=a(53085);e=a(87386);h=a(14318);k=a(75447);a=a(69484);d.prototype.start=function(){this.config.enabled && !this.Hy && (this.Hy=this.Ad.Tq(this.config.UNb,this.HM.bind(this)));};d.prototype.stop=function(){this.Hy && (this.Hy.cancel(),this.Hy=void 0);};d.prototype.HM=function(){var m,p;m=this;p="" + this.config.endpoint + (-1 === this.config.endpoint.indexOf("?")?"?":"&") + "iter=" + this.Wxc++;this.Osc(p).then(function(r){return Promise.all(r.urls.map(function(q){return m.Ytc(r,q.name,q.method,q.url);})).then(function(q){0 < q.length && m.DMc.sva({data:q,context:r.context,JVa:r.JVa});}).then(function(){return r;});}).then(function(r){m.Hy && (r.kBb?m.Hy=m.Ad.Tq(r.kBb,m.HM.bind(m)):m.stop());}).catch(function(r){return m.wa.error("FTL run failed",r);});};d.prototype.Osc=function(m){var p;p=this;return this.fzb.get(m,!1).then(function(r){if(200 != r.status || null == r.body)return (p.wKb.sva({url:m,status:r.status,NHb:"FTL API request failed",Ef:r.Ef}),Promise.reject(Error("FTL API request failed: " + r.status)));r=p.Le.parse(r.body);return Promise.resolve(r);}).catch(function(r){r instanceof Error && (p.wKb.sva({url:m,status:0,NHb:r.message}),p.wa.error("FTL API call failed",r.message));return Promise.reject(r);});};d.prototype.Ytc=function(m,p,r,q){var u;u=this;return new Promise(function(v,w){var H;for(var x,y,A,z,B,C=[],D={},F=0;F < m.yKc;(D={mya:D.mya,nya:D.nya},++F)){D.mya=F < m.lJb.length?m.lJb[F]:f.ia;D.nya="" + q + (-1 === q.indexOf("?")?"?":"&") + "pulse=" + (F + 1);H=(function(E){return function(){return new Promise(function(G,J){u.Ad.Tq(E.mya,function(){n.NJc(u.fzb,E.nya,m.xKc).then(function(L){function K(M,P,I){M || (M=I.headers[P]);return M;}x=K(x,"via",L);y=K(y,"x-ftl-probe-data",L);A=K(A,"x-ftl-error",L);z=K(z,"x-ftl-probe-recv-ts",L);B=K(B,"latency-trace",L);L={method:r,status:L.status,Ef:L.Ef,$Wc:x || "",mbc:y || "",u9:A || "",dPc:z || "",Eyc:u.iHc(B)};G(L);}).catch(function(L){J(L);});});});};})(D);C.push(0 < F?C[F - 1].then(H):H());}Promise.all(C).then(function(E){v({name:p,method:r,url:q,data:E});}).catch(function(E){w(E);});});};d.prototype.iHc=function(m){var p;if(m){p={};m=Ea(m.split(";"));for(var r=m.next();!r.done;r=m.next())if((r=r.value.trim().split("=")) && 2 == r.length)try{p[r[0].trim()]=Number.parseInt(r[1]);}catch(q){}return p;}};d.NJc=function(m,p,r){return m.get(p,!1,r).then(function(q){return Object.assign({},q);});};l=n=d;b.mBa=l;b.mBa=l=n=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(a.a9a)),t.__param(1,(0,c.v)(k.a$a)),t.__param(2,(0,c.v)(g.Cl)),t.__param(3,(0,c.v)(h.$8a)),t.__param(4,(0,c.v)(a.Afb)),t.__param(5,(0,c.v)(a.zfb)),t.__param(6,(0,c.v)(e.zb))],l);},33399:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r,q){this.Ma=p;this.bYc=r;this.performance=q;(0,c.hw)(this,"performance");}Object.defineProperty(b,"__esModule",{value:!0});b.MBa=void 0;t=a(22970);c=a(66523);f=a(64274);g=a(72574);e=a(63368);h=a(30869);k=a(22674);l=a(81438);m=a(5021);d.prototype.get=function(p,r,q){var u;u=this;return new Promise(function(v,w){var x,y,A;try{x=u.bYc.create();("withCredentials" in x) || w(Error("Missing CORS support"));x.open("GET",p,!0);r && (x.withCredentials=!0);q && (x.timeout=q.na(m.ya));y=u.Ma.Mg;A=void 0;x.onreadystatechange=function(){var z;switch(x.readyState){case XMLHttpRequest.HEADERS_RECEIVED:A=u.Ma.Mg.ea(y);break;case XMLHttpRequest.DONE:z=u.Ma.Mg.ea(y);z={body:x.responseText,status:x.status,headers:n.jYa(x.getAllResponseHeaders()),Ef:u.ARa(p,(0,g.ma)(x.responseText.length),z,A)};v(z);}};x.send();}catch(z){w(z);}});};d.jYa=function(p){var r,u,v;r={};p=p.split("\r\n");for(var q=0;q < p.length;q++){u=p[q];v=u.indexOf(": ");0 < v && (r[u.substring(0,v).toLowerCase()]=u.substring(v + 2));}return r;};d.prototype.ARa=function(p,r,q,u){r={size:r,duration:q,x2a:u};if(!this.performance || !this.performance.getEntriesByName)return r;q=this.performance.getEntriesByName(p);if(0 == q.length && (q=this.performance.getEntriesByName(p + "/"),0 == q.length))return r;p=q[q.length - 1];r=(0,f.xba)(r);p.decodedBodySize && (r.size=(0,g.ma)(p.decodedBodySize));0 < p.duration?r.duration=(0,m.timestamp)(p.duration):0 < p.startTime && 0 < p.responseEnd && (r.duration=(0,m.timestamp)(p.responseEnd - p.startTime));0 < p.requestStart && (r.ssb=(0,m.timestamp)(p.domainLookupEnd - p.domainLookupStart),r.j2a=(0,m.timestamp)(p.connectEnd - p.connectStart),r.x2a=(0,m.timestamp)(p.responseStart - p.startTime),0 === p.secureConnectionStart?r.D2a=(0,m.timestamp)(0):void 0 !== p.secureConnectionStart && (q=p.connectEnd - p.secureConnectionStart,r.D2a=(0,m.timestamp)(q),r.j2a=(0,m.timestamp)(p.connectEnd - p.connectStart - q)),0 < this.performance.timeOrigin && 0 < p.responseStart && (r.FKb=(0,m.timestamp)(this.performance.timeOrigin + p.requestStart),r.UKb=(0,m.timestamp)(this.performance.timeOrigin + p.responseStart)));return r;};a=n=d;b.MBa=a;b.MBa=a=n=t.__decorate([(0,k.aa)(),t.__param(0,(0,k.v)(h.Li)),t.__param(1,(0,k.v)(l.Iib)),t.__param(2,(0,k.v)(e.wia)),t.__param(2,(0,k.optional)())],a);},76691:function(t,b,a){var n,c,f,g,e,h;function d(k,l){this.ci=k;this.Bk=l;}Object.defineProperty(b,"__esModule",{value:!0});b.cGa=void 0;t=a(22970);c=a(22674);f=a(72574);g=a(5021);e=a(45118);a=a(31850);d.prototype.sva=function(k){k=this.Bk.Tt("ftlProbeError","info",n.SXc({url:k.url,sc:k.status,pf_err:k.NHb},k));this.ci.Vc(k);};d.SXc=function(k,l){l.Ef && (l=l.Ef,n.Ht(k,"d",l.duration),n.Ht(k,"dns",l.ssb),n.Ht(k,"tcp",l.j2a),n.Ht(k,"tls",l.D2a),n.Ht(k,"ttfb",l.x2a),n.Ht(k,"client_send_ts",l.FKb),n.Ht(k,"client_recv_ts",l.UKb),k.sz=l.size.na(f.hz));return k;};d.Ht=function(k,l,m){m && (k[l]=m.na(g.ya));};h=n=d;b.cGa=h;b.cGa=h=n=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(e.Up)),t.__param(1,(0,c.v)(a.YE))],h);},15031:function(t,b,a){var n,c,f,g,e,h;function d(k,l){this.ci=k;this.Bk=l;}Object.defineProperty(b,"__esModule",{value:!0});b.dGa=void 0;t=a(22970);c=a(22674);f=a(72574);g=a(5021);e=a(45118);a=a(31850);d.prototype.sva=function(k){var l;l={ctx:k.context,data:k.data.map(function(m){return {name:m.name,method:m.method,url:m.url,data:m.data.map(function(p){return n.TXc({method:p.method,d:p.Ef.duration.na(g.ya),sc:p.status,sz:p.Ef.size.na(f.hz),via:p.$Wc,cip:p.mbc,err:p.u9,server_recv_ts:p.dPc},p);})};})};k=this.Bk.Tt(k.JVa,"info",l);this.ci.Vc(k);};d.TXc=function(k,l){n.Ht(k,"dns",l.Ef.ssb);n.Ht(k,"tcp",l.Ef.j2a);n.Ht(k,"tls",l.Ef.D2a);n.Ht(k,"ttfb",l.Ef.x2a);n.T5b(k,l.Eyc);n.Ht(k,"client_send_ts",l.Ef.FKb);n.Ht(k,"client_recv_ts",l.Ef.UKb);return k;};d.T5b=function(k,l){l && (k.rtts=l);};d.Ht=function(k,l,m){m && (k[l]=m.na(g.ya));};h=n=d;b.dGa=h;b.dGa=h=n=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(e.Up)),t.__param(1,(0,c.v)(a.YE))],h);},43367:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.wD=void 0;t=a(22674);d=a(80012);n=a(26971);b.wD=new t.Be(function(c){c(d.pab).to(n.xCa);});},80012:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.pab="LicenseBrokerFactorySymbol";},20124:function(t,b,a){var n,c,f,g,e,h;function d(k,l){this.ac=k;this.j=l;this.bba=[];}Object.defineProperty(b,"__esModule",{value:!0});b.Ega=void 0;t=a(22970);n=a(36129);c=a(22674);f=a(32687);g=a(3887);e=a(31276);h=a(82100);d.prototype.OPa=function(k){this.bba.forEach(function(l){return l(k);});};d.prototype.wg=function(k,l,m){this.j.wg(k,l,m);};d.prototype.N5b=function(k){-1 === this.bba.indexOf(k) && this.bba.push(k);};d.prototype.gMc=function(k){k=this.bba.indexOf(k);0 <= k && this.bba.splice(k,1);};d.prototype.ctc=function(k){var l,m;l={};(0,f.$c)(k.code)?l.Ta=(0,n.J8a)(k.code):l.Ta=n.Y.nr;try{m=(0,h.LRa)(k.message);m && (l.Ng=(0,e.qLa)(m,4));}catch(p){}l.qf=(0,g.jj)(k);return l;};a=d;b.Ega=a;b.Ega=a=t.__decorate([(0,c.aa)()],a);},26971:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m,p){this.yY=k;this.config=l;this.O_=m;this.og=p;}Object.defineProperty(b,"__esModule",{value:!0});b.xCa=void 0;t=a(22970);n=a(22674);c=a(47737);f=a(128);g=a(4203);e=a(92395);a=a(66476);d.prototype.create=function(k,l){return new f.yCa(this.config(),this.og,k,l,this.yY,this.O_());};h=d;b.xCa=h;b.xCa=h=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.hha)),t.__param(1,(0,n.v)(g.Hc)),t.__param(2,(0,n.v)(e.g5)),t.__param(3,(0,n.v)(a.FO))],h);},128:function(t,b,a){var n,c,f,g,e,h,k,l,m,p;function d(r,q,u,v,w,x){u=h.Ega.call(this,u,v) || this;u.config=r;u.og=q;u.yY=w;u.lsa=x;u.log=(0,c.jo)(u.j,"LicenseBroker");u.lVa=new Set();u.nWa=!1;return u;}Object.defineProperty(b,"__esModule",{value:!0});b.yCa=void 0;t=a(22970);n=a(36129);c=a(31276);f=a(28289);g=a(5021);e=a(22674);h=a(20124);k=a(85001);l=a(82100);m=a(56039);p=a(54973);Ia(d,h.Ega);d.prototype.iGb=function(){var r,q;r=this;q=this.j.ga;this.lVa.has(q.R) || (this.lVa.add(q.R),this.n7b(q).catch(function(){return r.AKb(q);}).then(function(){return r.Fmb(q);}).catch(function(u){return r.Emb(q,u);}).catch(function(u){return r.wg(u.code,u,u.extCode);}));};d.prototype.n7b=function(r){var q;q=this;return Promise.all([this.og.Moc(r.R),this.yY()]).then(function(u){var v,w;u=Ea(u);v=u.next().value;w=u.next().value;return v.iwa.then(function(x){var y;y=q.lsa.mediaKeys;if(y && y !== x.mediaKeys)return (q.log.warn("Cannot use cached license session as its uses different MediaKeys"),Promise.reject());"manifest" === v.mVa.source && (y=q.Kwb(r),w.IEb(y,x));return x;}).then(function(x){return q.q7b(x,r,v.mVa);});}).catch(function(u){q.log.warn("eme not in cache",u);throw u;});};d.prototype.q7b=function(r,q,u){this.TIb(r,q);q.DX=u;this.lsa.Glb(r.mediaKeys);return r.RKa();};d.prototype.unc=function(r){var q;q={};r.forEach(function(u){q[(0,f.Oic)(u.Wba)]=u.time.na(g.ya);});return q;};d.prototype.TIb=function(r,q){var u;u=this;q.Rl=r;r.BPc(function(v){u.wg(v.code,v,v.extCode);});};d.prototype.Fmb=function(r){this.log.info("Successfully applied license for xid: " + r.Ha + ", viewable: " + r.R + ", segment: " + r.L);this.aL(r);this.nWa?this.OPa(r.R):this.setMediaKeys(r);};d.prototype.Emb=function(r,q){this.aL(r);throw q;};d.prototype.aL=function(r){r.Rl && r.aL(this.unc(r.Rl.Ff));};d.prototype.Kwb=function(r){var q,u,v;u=r.BE[0];v=u.streams[0].Uc;v=(0,l.oAb)(v);u=(0,m.nRa)(u.streams);return {type:(0,p.t$)(this.config,!1),initData:r.lT.map(function(w){return (0,c.XF)(w);}),Gqa:v,MA:u,Is:{R:r.R,Ha:r.Ha,Xd:r.Xd,$r:r.$r,vp:r.S.vp,Yf:r.S.Aa.Yf,Sp:(null === (q=r.ka.Lh) || void 0 === q?void 0:q.trackId) || r.Yc.S8.trackId}};};d.prototype.AKb=function(r){var q;q=this;return this.yY().then(function(u){var v;v=q.Kwb(r);q.lVa.add(r.R);return u.qu(v,q.lsa).then(function(w){q.TIb(w,r);q.j.fireEvent(k.ja.nVa,{R:r.R});return w.RKa();});});};d.prototype.setMediaKeys=function(r){var q;q=this;if(this.nWa)this.log.trace("Media Keys already set");else try{this.ac.Ga?(this.nWa=!0,this.ac.Ga.setMediaKeys(r.Rl.mediaKeys).then(function(){q.OPa(r.R);}).catch(function(u){u=q.ctc(u);q.wg(n.da.qdb,u,u.Ng);})):this.OPa(r.R);}catch(u){this.wg(n.da.qdb,u,void 0);}};d.prototype.KMc=function(r){var q;q=this;r=void 0 === r?this.j:r;return this.AKb(r).then(function(){return q.Fmb(r);}).catch(function(u){return q.Emb(r,u);});};d.prototype.close=function(){this.lsa.hMc();};Ha.Object.defineProperties(d.prototype,{fy:{configurable:!0,enumerable:!0,get:function(){return this.config.fy;}}});a=d;b.yCa=a;b.yCa=a=t.__decorate([(0,e.aa)()],a);},13847:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.d5a="AppLogSinkSymbol";},21009:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H;Object.defineProperty(b,"__esModule",{value:!0});b.logblobs=void 0;t=a(22674);d=a(97996);n=a(31966);c=a(79428);f=a(50723);g=a(33345);e=a(74621);h=a(4203);k=a(41320);l=a(69124);m=a(74031);p=a(53085);r=a(33554);q=a(13847);u=a(53234);v=a(33945);w=a(31850);x=a(81829);y=a(45118);A=a(98326);z=a(52025);B=a(30895);C=a(36792);D=a(74714);F=a(73449);H=a(26158);b.logblobs=new t.Be(function(E){E(y.Up).to(c.ICa).sa();E(u.bcb).to(f.FDa).sa();E(v.$ab).to(g.TCa).sa();E(x.Yab).to(e.QCa).sa();E(y.HCa).to(k.GCa).sa();E(w.YE).to(l.OCa).sa();E(x.Xab).to(m.PCa).sa();E(A.Z4).to(z.nO).sa();E(A.SCa).to(D.RCa).sa();E(F.b5).to(H.oO).sa();E(B.R7a).to(C.sAa).sa();E(q.d5a).to(n.Qya).sa();E(y.Uab).tfa(function(G){return function(){return G.Ib.get(d.m5)().then(function(J){return new Promise(function(L){var M,P,I;function K(){P() && I() && J.oS?L(G.Ib.get(y.Up)):M.ig(K);}M=G.Ib.get(p.Cl);P=G.Ib.get(h.Hc);I=G.Ib.get(r.WB);M.ig(K);});});};});});},30895:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.R7a="DownloadReportBuilderSymbol";},45118:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.HCa="LogBatcherConfigSymbol";b.Up="LogBatcherSymbol";b.Uab="LogBatcherProviderSymbol";},33945:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$ab="LogblobSenderSymbol";},31850:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.YE="LogMessageFactorySymbol";},81829:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Xab="LogMessageRulerConfigSymbol";b.Yab="LogMessageRulerSymbol";},98326:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Z4="LogblobBuilderFactorySymbol";b.SCa="LogblobBuilderCommonSymbol";},18169:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.Sd={};t.l9b="bitraterestriction";t.rob="cdnsel";t.hG="chgstrm";t.debug="debug";t.vic="dlreport";t.Lv="endplay";t.zR="intrplay";t.CH="midplay";t.kM="playbackaborted";t.zda="renderstrmswitch";t.CM="repos";t.Du="resumeplay";t.gPc="serversel";t.Kp="startplay";t.Oea="statechanged";t.transition="transition";t.j0a="segmentdropped";t.CKa="advertsmismatch";t.C7b="asereport";t.pH="livereport";t.Szc="livepipelinefailover";t.bnb="audioswitch";t.Enb="blockedautoplay";t.config="config";t.m8c="ftlProbeError";t.fTc="subtitleerror";t.gTc="subtitleqoe";t.mUc="timedtextrebuffer";t.vPb="timedtextswitch";t.PNb="speedchanged";},73449:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.b5="LogblobMonitorFactorySymbol";},53234:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.bcb="MessageQueueSymbol";},31966:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r){var q;q=this;this.uAc=l;this.rH=m;this.config=r;this.XZa=[];this.uAc.kva(n.PSb,this.Htc.bind(this));p().then(function(u){var v;v=r().Jv.jnc;q.rBc=v?k.No[v.toUpperCase()]:k.No.Tp;q.ci=u;q.VOc();});}Object.defineProperty(b,"__esModule",{value:!0});b.Qya=void 0;t=a(22970);c=a(22674);f=a(4203);g=a(36410);e=a(45118);h=a(31850);k=a(87386);d.prototype.Htc=function(l,m){this.ci?this.qJb(l,m):this.XZa.push([l,m]);};d.prototype.VOc=function(){var l,m;l=this;m=this.XZa;this.XZa=[];m.forEach(function(p){l.qJb(p[0],p[1]);});};d.prototype.qJb=function(l,m){var p;if(this.ci && this.IQc(l)){p={debugMessage:l.message,debugCategory:l.ud};l.Nc.forEach(function(r){return p=Object.assign(Object.assign({},p),r.value);});p=Object.assign(Object.assign({},p),{prefix:"debug"});l=this.rH.Tt("debug",k.No[l.level].toLowerCase(),p,m);this.ci.Vc(l);}};d.prototype.IQc=function(l){var m;m=this.rBc;return void 0 !== m && l.level <= m && !l.Nc.find(function(p){return p.s9(k.gha);});};a=n=d;b.Qya=a;a.PSb="adaptorAll";b.Qya=a=n=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(g.FV)),t.__param(1,(0,c.v)(h.YE)),t.__param(2,(0,c.v)(e.Uab)),t.__param(3,(0,c.v)(f.Hc))],a);},36792:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m){this.config=m;}Object.defineProperty(b,"__esModule",{value:!0});b.sAa=void 0;t=a(22970);n=a(82956);c=a(51344);f=a(3887);g=a(36129);e=a(45146);h=a(22365);k=a(22674);a=a(4203);d.prototype.construct=function(m,p){var r,q,u;r=this;q={};m.forEach(function(v){var w;w=v.url;q[w] || (q[w]=[]);q[w].push(v);});u=[];(0,f.Di)(q,function(v,w){u.push(r.htc(w,p));});return {urls:u};};d.prototype.htc=function(m,p){var r,q,u,v,w;r=this;u=m[0];v={url:u.url,bitrate:u.bitrate,cdnid:null === (q=u.Tc) || void 0 === q?void 0:q.id,dltype:u.xic,id:u.ob};w={};m.forEach(function(x){var y;y=r.vAb(x)?"fail":"success";w[y] || (w[y]=[]);w[y].push(x);});(0,f.Di)(w,function(x,y){"fail" === x?v.failures=r.Ipc(y,p):"success" === x && (v.downloads=r.vpc(y,p));});return v;};d.prototype.vpc=function(m,p){var r,q,u;r=this;q={};m.forEach(function(v){var w;w=v.Lbc;q[w] || (q[w]=[]);q[w].push(v);});u=[];(0,f.Di)(q,function(v,w){var x;x=[];w.forEach(function(y){x.push(y);r.iwc(y) && (u.push(r.jwb(x,p,v)),x=[]);});0 < x.length && u.push(r.jwb(x,p,v));});return u;};d.prototype.jwb=function(m,p,r){var q,u,v,w,y;q=m.sort(function(A,z){return A.Jq.em < z.Jq.em?-1:A.Jq.em > z.Jq.em?1:0;});u=q[0].Jq;v=u.$H;w=u.em;u=u.Ew;for(var x=1;x < m.length;x++){y=m[x].Jq;y.$H < v && (v=y.$H);y.em < w && (w=y.em);y.Ew > u && (u=y.Ew);}x=this.Urc(q);y=q[q.length - 1];return {time:v - p,tcpid:r?parseInt(r):-1,tresp:w - v,first:x,ranges:this.Vrc(q,x),dur:u - w,trace:this.QZ(m),status:this.OZ(y),enctimeinfo:y.Vna};};d.prototype.Urc=function(m){var p;p=0;m.forEach(function(r){r.bE && (p=(0,h.aF)(p,r.bE[0]));});return p;};d.prototype.Vrc=function(m,p){var r;r=[];m.forEach(function(q){q.bE?r.push([q.bE[0] - p,q.bE[1] - p]):r.push([0,-1]);});return r;};d.prototype.QZ=function(m){var p,r;p=[];m.forEach(function(q){var u;q=q.Jq;if(r){u=q.$H - r.Ew;0 < u && p.push([u,-2]);u=(0,h.jz)(r.Ew,q.$H);u=q.em - u;0 < u && p.push([u,-3]);}p.push([q.Ew - q.em,q.Vn || 0]);r=q;});return p;};d.prototype.iwc=function(m){if(m.Ta === g.Y.eO || m.Ta === g.Y.fO)return !0;};d.prototype.OZ=function(m){if(m.success)return "complete";if(m.Ta === g.Y.eO)return "abort";if(m.Ta === g.Y.fO)return "stall";(0,e.va)(!1,"download status should never be: other");return "other";};d.prototype.Ipc=function(m,p){var r,q;r=this;q=[];m.forEach(function(u){var v;v=u.Jq;u={time:v.em - p,tresp:v.em - v.$H,dur:v.Ew - v.em,range:u.bE,reason:r.Xrc(u),httpcode:u.ds,nwerr:(0,n.Xqc)(u.Ta),enctimeinfo:u.Vna};q.push(u);});return q;};d.prototype.Xrc=function(m){return m.ds || m.Ta === g.Y.F4?"http":m.Ta === g.Y.I4?"timeout":"network";};d.prototype.vAb=function(m){return m.success || void 0 === m.success || m.Ta === g.Y.eO || m.Ta === g.Y.fO?!1:!0;};d.prototype.Zcc=function(m){var p,r,q,u,v,w;p=m.request;r=p.stream;q=p.track;u=p.url;v=this.spc(q,u);switch(v){case c.Ln.audio:case c.Ln.video:w=p.stream.ob;break;case c.Ln.v2:case c.Ln.U2a:w=q.ob;}m={bitrate:r && r.bitrate,xic:v,ob:w,Jq:m.Jq,Tc:p.Tc,url:u,Ng:m.Ng,ds:m.ds,Ta:m.Ta,success:m.success,Lbc:this.Mlc(m),Vna:p.CK};void 0 !== p.offset && void 0 != p.length && (m.bE=[p.offset,p.offset + p.length - 1]);return m;};d.prototype.spc=function(m,p){if(m)return m.type;if(0 <= p.indexOf("netflix.com")){if(0 <= p.indexOf("nccp"))return "nccp";if(0 <= p.indexOf("api"))return "api";}return "other";};d.prototype.Mlc=function(m){if(m.headers && (m=m.headers["x-tcp-info"]))return (m=m.split(";").filter(function(p){return 0 == p.indexOf("port=");}).map(function(p){return p.split("=")[1];})[0])?(0,f.am)(m):m;};l=d;b.sAa=l;b.sAa=l=t.__decorate([(0,k.aa)(),t.__param(0,(0,k.v)(a.Hc))],l);},41320:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m){l=h.Qf.call(this,l,"LogBatcherConfigImpl") || this;l.config=m;l.lBc=(0,n.ma)(5E5);l.SOc=(0,c.CWa)(1);l.JDb=(0,n.ma)(1E6);return l;}Object.defineProperty(b,"__esModule",{value:!0});b.GCa=void 0;t=a(22970);n=a(72574);c=a(5021);f=a(22674);g=a(4203);e=a(12501);h=a(64174);a=a(83767);Ia(d,h.Qf);Ha.Object.defineProperties(d.prototype,{nKa:{configurable:!0,enumerable:!0,get:function(){return this.config().nKa;}},jNb:{configurable:!0,enumerable:!0,get:function(){return [];}},iNb:{configurable:!0,enumerable:!0,get:function(){return ["MslTransport","Pbo","LogblobSender"];}}});k=d;b.GCa=k;t.__decorate([e.config(e.object(),"shedLogblobTypes")],k.prototype,"jNb",null);t.__decorate([e.config(e.Pz("string"),"shedDebugTypes")],k.prototype,"iNb",null);b.GCa=k=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(a.Po)),t.__param(1,(0,f.v)(g.Hc))],k);},79428:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x,y){this.config=q;this.json=u;this.Ad=v;this.lAc=w;this.Uba=y;this.Mqa=this.gL=!1;this.listeners=[];(0,c.hw)(this,"json");this.wa=x.wb("LogBatcher");}Object.defineProperty(b,"__esModule",{value:!0});b.ICa=void 0;t=a(22970);n=a(22674);c=a(66523);f=a(63368);g=a(33945);e=a(53085);h=a(87386);k=a(45118);l=a(53234);m=a(36129);p=a(15160);a(2762);r=a(18169);d.prototype.Tb=function(){this.gL=!0;};d.prototype.Vc=function(q){var u;u=this;this.WQc(q) || (!1,0 < q.size.Ml(this.config.lBc)?this.wa.error("Logblob is too large, dropping from the queue",{logblobType:q.type,logblobSize:q.size.toString()}):(this.listeners.forEach(function(v){return v.eCc(q);}),!1,this.Uba.tKa(q),this.Ad.ig(function(){u.Pmc();})));};d.prototype.flush=function(q){var u;u=this;q=void 0 === q?!1:q;return this.Mqa?(this.wa.trace("LogBatcher is in error state, ignoring flush"),Promise.reject()):new Promise(function(v,w){u.wa.trace("Flushing",h.gha);u.Yq();u.Ad.ig(function(){u.o0a(q).then(function(){v();}).catch(function(x){w(x);});});});};d.prototype.addListener=function(q){this.listeners.push(q);};d.prototype.removeListener=function(q){q=this.listeners.indexOf(q);0 <= q && this.listeners.splice(q,1);};d.prototype.o0a=function(q){var u,v;u=this;q=void 0 === q?!1:q;if(!this.gL)return (this.wa.trace("LogBatcher is not initialized"),Promise.resolve());if(this.Mqa)return (this.wa.trace("LogBatcher is in error state, ignoring sendLogMessages"),Promise.resolve());v=this.Uba.Eoc();if(0 === v.length && !q)return (this.wa.trace("No logblobs to send"),Promise.resolve());!1;this.Yq();this.listeners.forEach(function(){});q=Promise.resolve();for(var w={},x=Ea(v),y=x.next();!y.done;(w={lya:w.lya},y=x.next()))(w.lya=y.value,q=q.then((function(A){return function(){return u.ROc(A.lya);};})(w)));return q.then(function(){return u.DK();}).catch(function(A){v.filter(function(z){return !z.gH;}).forEach(function(z){return z.Ud();});u.DK();throw Error("Send failure. " + A);});};d.prototype.ROc=function(q){var u;u=this;this.wa.trace("Sending batch: " + q.size,h.gha);return Promise.resolve(this.Uba.aMc(q)).then(function(){return u.lAc.send(q.iS);}).then(function(){return q.j2();}).catch(function(v){u.wa.warn("Failed to send batch of logblobs.",v,h.gha);q.Ud();u.DQc(v) && u.Uba.z5b(q);u.$Qc(v) && (u.Mqa=!0);throw v;});};d.prototype.DQc=function(q){return q.extCode === m.Bha.Fdb?!1:this.config.nKa;};d.prototype.$Qc=function(q){return q.subCode === m.Y.c9a || q.subCode === m.Y.E4 || q.subCode === m.Y.J4?!0:!1;};d.prototype.Pmc=function(){var q;q=this;0 < this.Uba.size.Ml(this.config.JDb)?this.o0a().catch(function(u){return q.wa.warn("Failed to send log messages on size threshold. " + u);}):this.DK();};d.prototype.Yq=function(){this.bra && (!1,this.bra.cancel(),this.bra=void 0);};d.prototype.DK=function(){this.bra || (!1,this.bra=this.Ad.Tq(this.config.SOc,this.x0.bind(this)));};d.prototype.x0=function(){var q;q=this;this.Mqa=!1;this.Yq();this.o0a().catch(function(u){return q.wa.warn("Failed to send log messages on timer. " + u);});};d.prototype.stringify=function(q){var u;u="";try{u=this.json.stringify(q.data,void 0," ");}catch(v){}return u;};d.prototype.WQc=function(q){return 0 <= this.config.jNb.indexOf(q.type)?!0:q.type === r.Sd.debug?0 <= this.config.iNb.indexOf(q.data.debugCategory):!1;};a=d;b.ICa=a;b.ICa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(k.HCa)),t.__param(1,(0,n.v)(f.AV)),t.__param(2,(0,n.v)(e.Cl)),t.__param(3,(0,n.v)(g.$ab)),t.__param(4,(0,n.v)(h.zb)),t.__param(5,(0,n.v)(l.bcb)),t.__param(6,(0,n.v)(p.bha))],a);},69124:function(t,b,a){var c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x,y,A,z,B,C,D){this.platform=u;this.ENa=v;this.userAgentData=w;this.type=x;this.severity=y;this.timestamp=A;this.Va=B;this.data=z;this.data.type=x;this.data.sev=y;this.data.devmod=this.platform.sK;this.data.clver=this.platform.version;q && q.Je && (q.Je.os && (this.data.osplatform=q.Je.os.name,this.data.osver=w.platformVersion.sD?w.platformVersion.version:q.Je.os.version),this.data.browsername=q.Je.name,this.data.browserver=q.Je.version);q.EUa && (this.data.tester=!0);q.groupName && !this.data.groupname && (this.data.groupname=q.groupName);q.IX && (this.data.groupname=this.data.groupname?this.data.groupname + "|" + q.IX:q.IX);q.Ffa && (this.data.uigroupname=q.Ffa);this.data.uigroupname && (this.data.groupname=this.data.groupname?this.data.groupname + ("|" + this.data.uigroupname):this.data.uigroupname);this.data.appLogSeqNum=this.Va.Fqc();this.data.uniqueLogId=C.Evb();this.data.appId=this.Va.id;D && (q=this.Va.yc(),this.data.soffms=q.ea(D.Xj).na(e.ya),this.data.mid=this.data.mid || D.R,this.data.lvpi=D.TCb,this.data.uiLabel=D.ff,this.data.uxLabels=D.Mxa,x="startup" === x?"playbackxid":"xid",this.data[x]="xid" === x && this.data.xid || D.Ha,D.PT && (x=D.PT,(D=D.PT.split(".")) && 1 < D.length && "S" !== D[0][0] && (x="SABTest" + D[0] + ".Cell" + D[1]),this.data.groupname=this.data.groupname?this.data.groupname + "|" + x:x));}function n(q,u,v,w,x,y,A){this.Ma=q;this.ENa=u;this.config=v;this.Va=w;this.IWc=x;this.platform=y;this.userAgentData=A;}Object.defineProperty(b,"__esModule",{value:!0});b.OCa=void 0;t=a(22970);c=a(72574);f=a(22674);g=a(30869);e=a(5021);h=a(58098);k=a(34231);l=a(81918);m=a(96723);p=a(91581);a=a(75236);n.prototype.Tt=function(q,u,v,w){return new d(this.config,this.platform,this.ENa,this.userAgentData,q,u,this.Ma.Mg,v,this.Va,this.IWc,w);};r=n;b.OCa=r;b.OCa=r=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(g.Li)),t.__param(1,(0,f.v)(h.j7a)),t.__param(2,(0,f.v)(k.st)),t.__param(3,(0,f.v)(l.fe)),t.__param(4,(0,f.v)(m.eib)),t.__param(5,(0,f.v)(p.xt)),t.__param(6,(0,f.v)(a.vja))],r);Ha.Object.defineProperties(d.prototype,{size:{configurable:!0,enumerable:!0,get:function(){this.Wnb || (this.Wnb=(0,c.ma)(this.ENa.encode(this.data).length));return this.Wnb;}}});},74031:function(t,b,a){var n,c,f;function d(g){this.gp=g;}Object.defineProperty(b,"__esModule",{value:!0});b.PCa=void 0;t=a(22970);n=a(22674);c=a(72574);a=a(33554);d.prototype.pAc=function(){var g;g=this.gp()?this.gp().ij.length:40;return (0,c.ma)(g + 33);};f=d;b.PCa=f;b.PCa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.WB))],f);},74621:function(t,b,a){var n,c,f;function d(g){this.config=g;}Object.defineProperty(b,"__esModule",{value:!0});b.QCa=void 0;t=a(22970);n=a(22674);c=a(81829);f=a(72574);d.prototype.measure=function(g){var e;e=this;return g.map(function(h){return h.size.add(e.config.pAc());}).reduce(function(h,k){return h.add(k);},(0,f.ma)(0));};a=d;b.QCa=a;b.QCa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Xab))],a);},74714:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w){this.platform=q;this.config=u;this.Va=v;this.userAgentData=w;this.mib=/-?l(\d\d)/i;}Object.defineProperty(b,"__esModule",{value:!0});b.RCa=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(36129);g=a(91581);e=a(5021);h=a(4203);k=a(3887);l=a(22365);m=a(82956);p=a(75236);r=a(26388);d.prototype.Zv=function(q,u,v){v && (q.adlid=v.ob,q.abitrate=v.bitrate);u && (q.vdlid=u.ob,q.vbitrate=u.bitrate);};d.prototype.szb=function(q,u,v){v?q=Object.assign(q,(0,m.Frc)(this.platform.Jx,v)):q.errorcode=f.da.yh;q.errorcode === this.platform.Jx + f.da.mdb && (q.lastSyncWithVideoElement=this.getTime() - u.cfa);};d.prototype.xzb=function(q,u){var v;try{Object.assign(q,(0,m.Kxb)());v=u.getBoundingClientRect();q.rendersize=v.width + "x" + v.height;q.renderpos=v.left + "x" + v.top;}catch(w){}};d.prototype.wzb=function(q,u){var v,w,x;v=u.Tc[r.u.U].value;w=u.Tc[r.u.X].value;x=u.We.value;u=u.ye.value;v && (q.cdnid=v.id,q.cdnname=v.name);w && (q.acdnid=w.id,q.acdnname=w.name);if(null === x || void 0 === x?0:x.stream)(q.adlid=x.stream.ob,q.abitrate=x.stream.bitrate);if(null === u || void 0 === u?0:u.stream)(q.vdlid=u.stream.ob,q.vbitrate=u.stream.bitrate,q.vheight=u.stream.height,q.vwidth=u.stream.width);};d.prototype.uzb=function(q,u,v){var w;w=u.j;0 <= u.mediaTime.value && (u=v && !u.qb.Pg?u.Yr:w && w.i_()?w.owb():u.mediaTime.value,q.moff=(0,k.hs)(u),q.moffms=(0,k.Zh)(u));};d.prototype.qzb=function(q,u){u.correlationId && (q.pbcid=u.correlationId);u.Xd && (q.playbackcontextid=u.Xd);};d.prototype.yTa=function(q){var u,v;q.browserua=l.OV;q.browseruad=null === (v=null === (u=l.zg.userAgentData) || void 0 === u?void 0:u.brands) || void 0 === v?void 0:v.map(function(w){return [w.brand,w.version];});q.browseruadpv=this.userAgentData.platformVersion.sD?this.userAgentData.platformVersion.version:this.userAgentData.platformVersion.reason;q.browseruada=this.userAgentData.architecture.sD?this.userAgentData.architecture.architecture:this.userAgentData.architecture.reason;q.browserhref=location.href;(u=l.zg && l.zg.connection && l.zg.connection.type) && (q.nettype=u);};d.prototype.WZ=function(q){var u,v,w,x,y;if(this.config().ykc){y=null === (u=null === l.zg || void 0 === l.zg?void 0:l.zg.connection) || void 0 === u?void 0:u.effectiveType;u=null === l.zg || void 0 === l.zg?void 0:l.zg.deviceMemory;y && (q.effectiveType=y);u && (q.deviceMemory=u);}(y=null === (v=null === l.zg || void 0 === l.zg?void 0:l.zg.connection) || void 0 === v?void 0:v.type) && (q.connectionType=y);v=null === (w=null === l.zg || void 0 === l.zg?void 0:l.zg.connection) || void 0 === w?void 0:w.downlink;"number" === typeof v && isFinite(v) && (q.downlink=v);w=null === (x=null === l.zg || void 0 === l.zg?void 0:l.zg.connection) || void 0 === x?void 0:x.rtt;"number" === typeof w && isFinite(w) && (q.rtt=w);};d.prototype.lqa=function(q,u){if(u=u.qb.Xq)(u.isUIAutoPlay && (q.isUIAutoPlay=!0),u.clLogId && (q.cl_log_id=u.clLogId));};d.prototype.XZ=function(q,u,v,w){var x,y,A,z,B;x=this;if(v=v && v.streams){A=new Set();z=new Set();B=new Set();v.forEach(function(C){C=C.Uc;A.add(C);z.add(C.replace(x.mib,""));(C=C.match(x.mib)) && 0 < C.length && B.add(C[1]);});q.videoProfiles=[].concat(za(A));q.videoProfile=0 === z.size?"none":[].concat(za(z))[0];q.videoProfileLevels=[].concat(za(B));v && v.length && (q.isMcClearen=!!v[0].Mk.find(function(C){return 0 <= C.toLowerCase().indexOf("mcclearen");}));}u && (null === (y=w.S) || void 0 === y?0:y.Zfa) && (q.videoProfilesStatus=this.uDb(w.S.Zfa));};d.prototype.uDb=function(q){return this.XAc(q.OZ(),function(u){return u.supported?!0:u.reason;});};d.prototype.XAc=function(q,u){return Object.entries(q).reduce(function(v,w){var x;x=Ea(w);w=x.next().value;x=x.next().value;v[w]=u(x);return v;},{});};d.prototype.VZ=function(q,u,v,w){var x,y;if(v=v && v.streams){y={};v.forEach(function(A){y[A.Uc]=void 0;});q.audioProfiles=Object.keys(y);}u && (null === (x=w.S) || void 0 === x?0:x.z7) && (q.audioProfilesStatus=this.uDb(w.S.z7));};d.prototype.rzb=function(q){q.configversion=this.config().version;this.config().endpoint || (q.configendpoint="error");};d.prototype.getTime=function(){return this.Va.yc().na(e.ya);};a=d;b.RCa=a;b.RCa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(g.xt)),t.__param(1,(0,n.v)(h.Hc)),t.__param(2,(0,n.v)(c.fe)),t.__param(3,(0,n.v)(p.vja))],a);},52025:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C;function d(D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z){this.nPb=D;this.ci=F;this.DPa=H;this.Of=E;this.Ana=G;this.Ke=J;this.config=L;this.og=K;this.Ma=M;this.Va=P;this.platform=I;this.fB=O;this.rH=Q;this.ol=T;this.NG=U;this.jS=X;this.Jc=Y;this.ly=W;this.rD=Z;}Object.defineProperty(b,"__esModule",{value:!0});b.nO=void 0;t=a(22970);n=a(87549);c=a(45118);f=a(74870);g=a(94800);e=a(22674);h=a(98326);k=a(74098);l=a(30895);m=a(32934);p=a(4203);r=a(30869);q=a(81918);u=a(91581);v=a(31850);w=a(66476);x=a(52531);y=a(63368);A=a(34231);z=a(2160);B=a(21103);a=a(18647);d.prototype.create=function(D,F){return new k.a5(D,F,this.nPb,this.ci,this.DPa,this.Of,this.Ana,this.Ke,this.config,this.og,this.Ma,this.Va,this.fB,this.rH,this.ol,this.NG,this.jS,this.Jc,this.ly,this.rD);};C=d;b.nO=C;b.nO=C=t.__decorate([(0,e.aa)(),t.__param(0,(0,e.v)(n.qhb)),t.__param(1,(0,e.v)(c.Up)),t.__param(2,(0,e.v)(g.bBa)),t.__param(3,(0,e.v)(f.Am)),t.__param(4,(0,e.v)(l.R7a)),t.__param(5,(0,e.v)(m.bC)),t.__param(6,(0,e.v)(p.Hc)),t.__param(7,(0,e.v)(w.FO)),t.__param(8,(0,e.v)(r.Li)),t.__param(9,(0,e.v)(q.fe)),t.__param(10,(0,e.v)(u.xt)),t.__param(11,(0,e.v)(y.yia)),t.__param(12,(0,e.v)(v.YE)),t.__param(13,(0,e.v)(x.zO)),t.__param(14,(0,e.v)(A.st)),t.__param(15,(0,e.v)(z.IDa)),t.__param(16,(0,e.v)(h.SCa)),t.__param(17,(0,e.v)(B.lz)),t.__param(18,(0,e.v)(a.oCa))],C);},74098:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E;function d(G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha,S){var N;N=this;this.j=G;this.Na=J;this.nPb=L;this.ci=K;this.DPa=M;this.Of=P;this.Ana=I;this.Ke=O;this.config=Q;this.og=T;this.Ma=U;this.Va=X;this.fB=Y;this.rH=W;this.ol=Z;this.NG=aa;this.jS=ca;this.Jc=da;this.ly=ha;this.rD=S;this.q_=new WeakMap();this.HBb=new WeakMap();this.nfa=[];this.sWa=this.jL=this.Fda=0;this.xY=[];this.wKa=!1;this.Kp=function(V){var ba,fa,ia,ka,pa,oa,la,R,ea,ja,sa,ta,qa,Aa,Ga,na,va,xa,ra;qa={};try{qa={playdelaysdk:(0,l.Zh)(N.j.Y7()),applicationPlaydelay:(0,l.Zh)(N.j.SLa()),playdelay:(0,l.Zh)(N.j.TLa()),trackid:N.j.Hn,bookmark:(0,l.Zh)(N.j.mq || 0),pbnum:N.j.index,endianness:(0,e.Fpc)(),isStandaloneDisplay:N.config().SNb};N.config().Fkc && (qa.transitiontime=N.j.er,qa.uiplaystarttime=N.j.qb.QB,qa.playbackrequestedat=N.j.Xj.na(m.ya),qa.clockgettime=N.getTime(),qa.clockgetpreciseepoch=N.Ma.Mg.na(m.ya),qa.clockgetpreciseappepoch=N.Va.nH.na(m.ya),qa.absolutestarttime=N.j.QQ(),qa.relativetime=N.j.Gxb());Aa=N.j.ka.he;Ga=null === (fa=null === (ba=N.j.We.value) || void 0 === ba?void 0:ba.stream) || void 0 === fa?void 0:fa.ob;qa.audiotrackinfo=N.TQ(Aa,Ga);na=N.j.ka.Lh;va=null === (ka=null === (ia=N.j.ye.value) || void 0 === ia?void 0:ia.stream) || void 0 === ka?void 0:ka.ob;qa.videotrackinfo=N.zSa(na,va);qa.texttrackinfo=N.lR(N.j.ka.Qd);qa.mediabufferedsegments=null === (pa=N.j.Wd) || void 0 === pa?void 0:pa.vZ();N.Joa(qa,"startplay");}catch(ya){N.log.error("error in startplay log fields",ya);}N.j.Gj && (qa.blocked=N.j.Gj);N.Jc.rzb(qa);(0,x.pc)(N.j.Hnb) && (qa.bookmarkact=(0,l.Zh)(N.j.Hnb));(ba=N.j.Ff.at && N.j.Ff.ats?N.j.Ff.at - N.j.Ff.ats:void 0) && (qa.nccpat=ba);(ba=N.j.Ff.lr && N.j.Ff.lc?N.j.Ff.lr - N.j.Ff.lc:void 0) && (qa.nccplt=ba);(ba=N.j.Ff.lc && N.j.Ff.lg?N.j.Ff.lc - N.j.Ff.lg:void 0) && (qa.lct=ba);(ba=N.$n()) && (qa.downloadables=ba);Ba._cad_global.device && (0,x.$c)(Ba._cad_global.device.$na) && (qa.esnSource=Ba._cad_global.device.$na);(0,l.Gf)(qa,N.fB,{prefix:"pi_"});N.j.Pt && N.j.Pt.initBitrate && (qa.initvbitrate=N.j.Pt.initBitrate);N.j.Pt && N.j.Pt.selector && (qa.selector=N.j.Pt.selector);qa.fullDlreports=N.B3a;if(N.j.state.value >= w.Fc.zf)try{xa=N.j.PC();xa && (N.maxBitrate=(0,e.wga)(xa.map(function(ya){return ya.bitrate;})),N.ODb=(0,e.wga)(xa.map(function(ya){return ya.height;})),qa.maxbitrate=N.maxBitrate,qa.maxresheight=N.ODb);}catch(ya){N.log.error("Exception computing max bitrate",ya);}try{ra=(0,e.HZ)();ra && (qa.pdltime=ra);}catch(ya){}try{(0,l.Gf)(qa,N.j.Ff,{prefix:"sm_"});(0,l.Gf)(qa,N.j.Kpa(),{prefix:"vd_"});}catch(ya){}V && N.j.lT && (qa.pssh=N.j.lT);N.vzb(N.j,qa);qa.avtp=N.oU.gl().t2a;(null === (oa=N.j.bb) || void 0 === oa?0:oa.xF) && N.kqa(qa);if(N.j.ka.Qd)try{qa.ttTrackFields=N.j.ka.Qd.Ki;}catch(ya){}qa.itsxheaac=MediaSource.isTypeSupported('audio/mp4; codecs="mp4a.40.42"');N.Jc.VZ(qa,!0,N.j.ka.he,N.Na);N.Jc.XZ(qa,!0,N.j.ka.Lh,N.Na);N.j.S && (qa.packageId=N.j.S.Aa.Gs);if(null === (la=N.j.S) || void 0 === la?0:la.Aa.Sr)qa.hasChoiceMap=!0;N.config().WOa && (qa.reusedManifest=null !== (ea=null === (R=N.j.S) || void 0 === R?void 0:R.F3a) && void 0 !== ea?ea:!1);if(null === (ta=null === (sa=null === (ja=N.j.S) || void 0 === ja?void 0:ja.Aa.qE) || void 0 === sa?void 0:sa.aN) || void 0 === ta?0:ta.JA)qa.isSteeringSticky=!0;N.myc();V && (N.zTa(qa),N.BTa(qa));N.pzb(N.j,qa);N.uR(N.j,qa);N.vR(N.j,qa);N.Vx(N.j,qa);N.oaa(N.j,qa);N.bL(N.j,qa,N.wKa);N.paa(N.j,qa);N.mvc(N.j,qa);N.ATa(qa);N.DTa(qa);N.Jc.WZ(qa);N.ozb(qa);N.Jc.lqa(qa,N.Na);N.CTa(qa);N.BA(qa,c.Td.Kp);N.nzb(qa);N.Vc(y.Sd.Kp,V,E.hf | E.cx | E.xl | E.rz | E.QN | E.Kga | E.aO | E.Su,qa);};this.Du=function(V,ba,fa){ba={playdelay:(0,l.Zh)(V),reason:fa,intrplayseq:N.jL - 1,skipped:ba};"repos" === fa && (ba.prstate=!0 === N.j.paused.value?"paused":"playing");N.BA(ba,c.Td.Du);N.vR(N.j,ba);N.Vx(N.j,ba);N.oaa(N.j,ba);N.Vc(y.Sd.Du,!1,E.hf | E.cx | E.xl,ba);"rebuffer" !== fa && "force_rebuffer" !== fa || N.j.Cp.J5b(Number((0,l.Zh)(V)));};this.hG=function(V,ba,fa,ia){V={moff:(0,l.hs)(fa),moffms:(0,l.Zh)(fa),vbitrate:ba.bitrate,vbitrateold:V.bitrate,vdlid:ba.ob,vdlidold:V.ob,vheight:ba.height,vheightold:V.height,vwidth:ba.width,vwidthold:V.width,bw:ia};N.vR(N.j,V);N.Vx(N.j,V);N.bL(N.j,V);N.BA(V,c.Td.hG);N.Vc(y.Sd.hG,!1,E.xl,V);};this.g_a=function(V,ba,fa){V={moff:(0,l.hs)(fa),moffms:(0,l.Zh)(fa),vdlidold:V.ob,vbitrateold:V.bitrate};N.vR(N.j,V);N.Vx(N.j,V);N.bL(N.j,V);N.Jc.Zv(V,ba,N.j.We.value && N.j.We.value.stream);N.BA(V,c.Td.zda);N.Vc(y.Sd.zda,!1,E.xl,V);};this.EYa=function(){var V,ba;V={waittime:(0,l.Zh)(N.j.Gxb()),abortedevent:"startplay",trackid:N.j.Hn,prstate:N.XG(),paustate:N.j.paused.value};N.Joa(V,"endplay");N.BA(V,c.Td.kM);N.NG.o9 && (V.eventlist_version=1,V.eventlist=N.jS.pxb(N.j));N.j.Pt && N.j.Pt.initBitrate && (V.initvbitrate=N.j.Pt.initBitrate);try{ba=(0,e.HZ)();ba && (V.pdltime=ba);(0,l.Gf)(V,N.j.Ff,{prefix:"sm_"});}catch(fa){}N.wTa(V);N.Jc.lqa(V,N.Na);V.itsxheaac=MediaSource.isTypeSupported('audio/mp4; codecs="mp4a.40.42"');N.Jc.VZ(V,!1,N.j.ka.he,N.Na);N.Jc.XZ(V,!1,N.j.ka.Lh,N.Na);N.zTa(V);N.Jc.Zv(V,N.j.$f.value,N.j.fj.value);N.vzb(N.j,V);N.uR(N.j,V);N.paa(N.j,V);N.CTa(V);N.BTa(V);N.Vx(N.j,V);N.Vc(y.Sd.kM,!1,E.hf | E.xl | E.QN | E.rz | E.Su,V);};this.DYa=function(V,ba){V={waittime:(0,l.Zh)(V),abortedevent:"resumeplay",resumeplayreason:ba};N.j.Pt && N.j.Pt.initBitrate && (V.initvbitrate=N.j.Pt.initBitrate);N.Jc.Zv(V,N.j.$f.value,N.j.fj.value);N.paa(N.j,V);N.Vx(N.j,V);N.BA(V,c.Td.kM);N.Vc(y.Sd.kM,!1,E.hf | E.xl | E.Su,V);};this.F1a=function(V,ba,fa){V={newstate:ba?"Paused":"Playing",oldstate:V?"Paused":"Playing",reason:fa};N.vR(N.j,V);N.Vx(N.j,V);N.bL(N.j,V);N.Jc.Zv(V,N.j.ye.value && N.j.ye.value.stream,N.j.We.value && N.j.We.value.stream);N.BA(V,c.Td.Oea);N.Vc(y.Sd.Oea,!1,E.hf | E.xl,V);};this.zR=function(V,ba,fa){var ia,ka,pa,oa,la;V=(0,l.Gf)({vdlid:N.j.$f.value.ob,playingms:V,pausedms:ba,intrplayseq:N.jL++,prstate:N.XG(),paustate:N.j.paused.value},fa);N.Joa(V,"intrplay");N.BA(V,c.Td.zR);ba=N.j.Tc[z.u.U].value;fa=N.j.Tc[z.u.X].value;V.cdnid=V.vcdnid=ba && ba.id;V.acdnid=fa && fa.id;ba=null === (ia=N.j.Oj(N.j.pG).S) || void 0 === ia?void 0:ia.Aa;V.locid=N.q_ && ba && (null === (ka=N.q_.get(ba)) || void 0 === ka?void 0:ka.AVa);V.loclv=N.q_ && ba && (null === (pa=N.q_.get(ba)) || void 0 === pa?void 0:pa.QCb);V.avtp=N.oU.gl().t2a;V.mediabuffered=null === (oa=N.j.Wd) || void 0 === oa?void 0:oa.uZ();V.hidden=document.hidden;V.volume=N.j.oY;if(null === (la=N.j.bb) || void 0 === la?0:la.xF)(N.wTa(V),N.kqa(V),N.tzb(V));try{(0,l.Gf)(V,N.j.Kpa(),{prefix:"vd_"});}catch(R){}N.vR(N.j,V);N.Vx(N.j,V);N.oaa(N.j,V);N.bL(N.j,V);N.Jc.Zv(V,N.j.ye.value && N.j.ye.value.stream,N.j.We.value && N.j.We.value.stream);N.Vc(y.Sd.zR,!1,E.hf | E.xl,V);};this.CM=function(V,ba,fa,ia){V={moffold:(0,l.hs)(V),reposseq:N.Fda++,prstate:N.XG(),paustate:N.j.paused.value};ia === w.Mc.V3 && (V.reason="missing_segments");N.bL(N.j,V);N.Jc.Zv(V,fa && fa.stream,ba && ba.stream);N.BA(V,c.Td.CM);N.Vc(y.Sd.CM,!1,E.hf | E.xl,V);};this.jLa=function(){var V,ba,fa,ia;ba=N.TQ(N.j.ka.he,N.j.fj.value.ob);fa=N.mH;ia=null === (V=N.SUa) || void 0 === V?void 0:V.ob;V=N.TQ(fa,ia);N.Vc(y.Sd.bnb,!1,E.hf | E.xl,{switchdelay:(0,l.Zh)(N.getTime() - N.TUa),track:ba,oldtrack:V});};this.Gea=function(V){N.Vc(y.Sd.PNb,!1,E.hf | E.xl,{speedold:Math.floor(1E3 * V.oldValue),speed:Math.floor(1E3 * V.newValue)});};this.t2=function(){N.Vc(y.Sd.mUc,!1,E.hf | E.xl,{track:N.j.ka.Qd.Ki});};this.tI=function(V){var ba,fa;fa=N.j.ka.Qd;if(V.newValue || fa && fa.Gq() && !fa.pp())(V=null !== (ba=V.newValue) && void 0 !== ba?ba:fa,ba=N.lR(V),V=N.lR(N.fVa),ba={switchdelay:(0,l.Zh)(N.getTime() - N.eVa),track:ba,oldtrack:V},N.Jc.Zv(ba,N.j.ye.value && N.j.ye.value.stream,N.j.We.value && N.j.We.value.stream),N.Vc(y.Sd.vPb,!1,E.hf | E.xl,ba));};this.zv=function(V){N.Vc(y.Sd.l9b,!1,E.hf | E.xl,V.newValue);};this.vac=function(V,ba){var fa,ia;fa=ba.serverid;ia={locid:ba.location,loclv:ba.locationlv,selocaid:fa,selcdnid:fa,selocaname:ba.servername};ia.mediatype=ba.mediatype;ia.selreason=ba.selreason || "unknown";ia.seldetail=ba.seldetail;ia.cdnbwdata=JSON.stringify([{id:fa}]);V && (ia.oldlocid=V.AVa,ia.oldloclv=V.QCb,ia.oldocaid=V.ePc,ia.oldocaname=V.oea);(V=ba.manifest && ba.manifest.movieId)?((ba=N.j.Oj(V).Uh) && (ia.cdninfo=N.d$(ba)),ia.viewableId=V):N.log.warn("ASE is missing manifest for viewable");N.Vc(y.Sd.rob,!1,E.Kga,ia);};this.rsb=function(){var V,ba,fa;if(N.j.Uh)try{V=!1;N.B3a || (V=!0,N.xY=N.xY.filter(function(ia){return !ia.success;}));if(0 < N.xY.length){ba=N.Ana.construct(N.xY,N.j.Xj.na(m.ya));N.xY=[];ba.erroronly=V;fa={};(0,l.Di)(ba,function(ia,ka){fa[ia]=JSON.stringify(ka);});N.Vc(y.Sd.vic,!1,E.xl,fa);}}catch(ia){N.log.error("Exception in dlreport.",ia);}};this.XG=function(){var V;V=N.j.Zb.value;return V === w.Nb.rg?"playing":V === w.Nb.Oi?"paused":V === w.Nb.Zw?"ended":"waiting";};this.CH=function(){var V,ba,fa;if(N.j.state.value == w.Fc.zf){fa=N.Sca();N.config().p_a && (fa.avtp=N.oU.gl().t2a,(null === (V=N.j.bb) || void 0 === V?0:V.xF) && N.kqa(fa));fa.mediabuffered=null === (ba=N.j.Wd) || void 0 === ba?void 0:ba.uZ();fa.midplayseq=N.sWa++;fa.prstate=N.XG();fa.paustate=N.j.paused.value;N.config().XOc && N.MOb("midplay");N.config().Ay && N.ETa(fa);N.ATa(fa);N.DTa(fa);N.Vx(N.j,fa);N.Jc.WZ(fa);N.Vc(y.Sd.CH,!1,E.hf | E.xl | E.QN | E.rz,fa);}};this.MOb=function(V){var ba,fa;ba={};ba.trigger=V;try{fa=N.j.ORa();ba.subtitleqoescore=N.j.$q.Msc(fa);ba.metrics=JSON.stringify(N.j.$q.jSa(fa));}catch(ia){N.log.error("error getting subtitle qoe data",ia);}N.Vc(y.Sd.gTc,!1,E.hf | E.QN | E.cx,ba);};this.transition=function(V){var ba;V.mediabufferedsegments=null === (ba=N.j.Wd) || void 0 === ba?void 0:ba.vZ();N.bL(N.j,V);N.paa(N.j,V);N.Vc(y.Sd.transition,!1,0,V);};this.j0a=function(V,ba){N.Vc(y.Sd.j0a,ba,0,V);};this.CKa=function(V){N.Vc(y.Sd.CKa,!1,0,V);};this.Lv=function(V){var ba,fa,ia,ka,pa,oa,la;ka=N.Sca();N.Joa(ka,"endplay");ka.prstate=N.XG();ka.paustate=N.j.paused.value;ka.muted=N.j.muted.value;ka.isStandaloneDisplay=N.config().SNb;ka.hidden=document.hidden;ka.volume=N.j.oY;ka.fullDlreports=N.B3a;ka.mediabuffered=null === (ba=N.j.Wd) || void 0 === ba?void 0:ba.uZ();ka.mediabufferedsegments=null === (fa=N.j.Wd) || void 0 === fa?void 0:fa.vZ();N.j.wI && "downloaded" === N.j.wI.OZ() && (ka.trickplay_ms=N.j.Dfa.offset,ka.trickplay_res=N.j.Dfa.HKb);N.config().yRb && (ka.rtinfo=N.j.gsc());N.config().p_a && (null === (ia=N.j.bb) || void 0 === ia?0:ia.xF) && N.kqa(ka);ka.endreason=V?"error":N.j.Zb.value === w.Nb.Zw?"ended":"stopped";(ba=N.fB) && (0,l.Gf)(ka,ba,{prefix:"pi_"});try{(0,l.Gf)(ka,N.j.Ff,{prefix:"sm_"});}catch(ja){}N.j.vTa && (ka.inactivityTime=N.j.vTa);N.wTa(ka);N.tzb(ka);if(N.j.Zla){ba=N.j.Zla;fa=N.config().Lnb;ia=N.j.loadTime;pa={iv:fa,seg:[]};oa=function(ja,sa,ta){return 0 === sa || void 0 === ta[sa - 1]?ja:ja - ta[sa - 1];};la=ba.u8b.map(oa);oa=ba.lXc.map(oa);for(var R,ea=0;ea < la.length;ea++){if(la[ea] || oa[ea])R?(R.ams.push(la[ea]),R.vms.push(oa[ea])):R={ams:[ba.u8b[ea]],vms:[ba.lXc[ea]],soffms:ba.startTime + ea * fa - ia};ea !== la.length - 1 && la[ea] && oa[ea] || !R || (pa.seg.push(R),R=void 0);}ka.bt=JSON.stringify(pa);}V && (N.zTa(ka),N.BTa(ka));N.MOb("endplay");N.config().Ay && N.ETa(ka);N.Jc.VZ(ka,!1,N.j.ka.he,N.Na);N.Jc.XZ(ka,!1,N.j.ka.Lh,N.Na);N.pzb(N.j,ka);N.uR(N.j,ka);N.vR(N.j,ka);N.bL(N.j,ka,N.wKa);N.Vx(N.j,ka);N.oaa(N.j,ka);N.paa(N.j,ka);N.ATa(ka);N.DTa(ka);N.Jc.WZ(ka);N.ovc(ka);N.ozb(ka);N.pvc(ka);N.svc(ka);N.CTa(ka);N.tvc(ka);N.BA(ka,c.Td.Lv);N.nzb(ka);N.Vc(y.Sd.Lv,V,E.hf | E.cx | E.xl | E.QN | E.rz | E.aO | E.Su,ka);};this.Dic=function(V){N.xY.push(N.Ana.Zcc(V.response));};this.Gj=function(){N.Vc(y.Sd.Enb,!1,E.hf | E.QN | E.Su,{});};this.ccc=function(V){var ba,fa;ba=V.response.Jq;V=(0,m.ic)(ba.em);fa=(0,m.ic)(ba.Ew);ba=(0,r.ma)(ba.Vn || 0);ba.XAb() || ba.lUa() || (V=new q.$Fa(V,fa),N.oU.B5b(new u.Q7a(V,ba)));};this.gua=function(V){var ba,fa,ia;ia=V.newValue;V.Xm && V.Xm.bB && ia && (null === (ba=V.Xm) || void 0 === ba || !ba.reason) || ia == N.MR || (N.F1a(N.MR,ia,null === (fa=V.Xm) || void 0 === fa?void 0:fa.reason),N.MR=ia);};this.aG=function(V){function ba(fa){var ia;if(N.j.ac && N.j.ac.sourceBuffers){ia=N.j.ac.sourceBuffers.filter(function(ka){return ka.type === fa;}).pop();if(ia)return {busy:ia.Nj(),updating:ia.updating(),ranges:ia.Roa()};}}V={cause:V.Dc};V.cause && V.cause === g.iFa && (V.mediaTime=N.j.mediaTime.value,V.buf_audio=ba(f.Uha),V.buf_video=ba(f.e5));N.zR(N.nfa[w.Nb.rg] || 0,N.nfa[w.Nb.Oi] || 0,V);};this.QPb=function(V){var ba;V=V.oldValue;ba=N.getTime();V === w.Nb.mh?N.nfa=[]:N.nfa[V]=(N.nfa[V] || 0) + (ba - N.wyc);N.wyc=ba;};this.kq=function(V){N.TUa=N.getTime();N.mH=V.lw;};this.Op=function(V){N.eVa=N.getTime();N.fVa=V.vy;};this.B7=function(V){N.SUa=V.oldValue;};this.kba=function(V){var fa;function ba(ia,ka){var pa;if(!ia || ia.AVa !== ka.location){pa={AVa:ka.location,QCb:ka.locationlv,ePc:ka.serverid,oea:ka.servername};N.vac(ia,ka);return pa;}}fa=V.manifest;"audio" === V.mediatype?(V=ba(N.HBb.get(fa),V)) && N.HBb.set(fa,V):(V=ba(N.q_.get(fa),V)) && N.q_.set(fa,V);};this.nea=function(V){var ba,fa;ba=V.mediatype;fa=V.reason;"video" === ba?"serverswitchaway" === fa?(N.im.summary.bSb++,N.im.ora=N.Ma.Mg.na(m.ya)):"serverswitchback" === fa && (N.im.summary.cSb++,N.im.ora && (N.im.summary.dSb.push(N.Ma.Mg.na(m.ya) - N.im.ora),N.im.ora=void 0)):"audio" === ba && ("serverswitchaway" === fa?(N.im.summary.Kmb++,N.im.ira=N.Ma.Mg.na(m.ya)):"serverswitchback" === fa && (N.im.summary.Lmb++,N.im.ira && (N.im.summary.Mmb.push(N.Ma.Mg.na(m.ya) - N.im.ira),N.im.ira=void 0)));N.Vc(y.Sd.gPc,!1,E.hf | E.xl,{mediatype:V.mediatype,server:V.server,selreason:V.reason,location:V.location,bitrate:V.bitrate,confidence:V.confidence,throughput:V.throughput,oldserver:V.oldserver});};this.lX=function(V){var ba;ba=V.TA;V=n.__rest(V,["type","logblobType"]);delete V.inner;switch(ba){case "asereport":N.Vc(y.Sd.C7b,!1,E.xl,V);break;case "livereport":N.Vx(N.j,V);N.oaa(N.j,V);N.BA(V,c.Td.pH);N.Vc(y.Sd.pH,!1,E.hf | E.cx,V);break;default:N.Vc(ba,!1,E.hf,V);}};this.Era=function(V){var ba,fa,ia,ka;ba=V.mediaType;fa=V.current;ia=V.Pq;ka=V.bwa;V=V.ob;ba={mediatype:(0,D.AH)(ba),curr:{enc:fa.bo,origin:fa.ao},prev:{enc:ia.bo,origin:ia.ao},segmentnumber:ka,dlid:V};N.Vx(N.j,ba);N.Vc(y.Sd.Szc,!1,E.hf,ba);};this.i2=function(V){V=Object.assign({},V);V.details && (V.details=JSON.stringify(V.details));N.Vc(y.Sd.fTc,!0,E.hf | E.cx | E.Kga,V);};this.wKa=Z.D3a || Z.Lxa || Z.jvb;this.oU=L();this.log=(0,h.jo)(G,"LogblobBuilder");this.MR=G.paused.value;this.Ha=this.Na.Ha;this.im={summary:{bSb:0,cSb:0,dSb:[],Kmb:0,Lmb:0,Mmb:[]},ora:void 0,ira:void 0};}Object.defineProperty(b,"__esModule",{value:!0});b.a5=void 0;n=a(22970);c=a(45247);f=a(33096);g=a(13044);e=a(52569);h=a(31276);k=a(45146);l=a(3887);m=a(5021);p=a(36129);r=a(72574);q=a(74267);u=a(70826);v=a(22365);w=a(85001);x=a(32687);y=a(18169);A=a(32573);z=a(26388);B=a(30873);C=a(79542);D=a(45247);F=a(82100);H=a(24735);d.prototype.vzb=function(G,J){var L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha;if(this.config().Ay)try{L={};K=this.og.getStats(void 0,void 0,G.R);M=G.QQ();P=K.mU.occ || [];L.attempts=K.Cua || 0;L.num_completed_tasks=P.length;I=this.Of.jmc;O={};Q=A.wr.j2;T=A.wr.Ud;U=A.wr.aMa;K.ip && (O.scheduled=K.ip - M);X=G.S;X && (0,x.pc)(X.zT) && (O.preauthsent=X.zT - G.loadTime,O.preauthreceived=X.q1 - G.loadTime);Y=P.filter(function(S){return "manifest" === S.type;});L.mf_succ=Y.filter(I("status",Q)).length;L.mf_fail=Y.filter(I("status",T)).length;W=G.Ff;(0,x.$c)(W.lg) && 0 > W.lg && G.loadTime && (O.ldlsent=W.lc,O.ldlreceived=W.lr);Z=P.filter(function(S){return "license" === S.type;});L.ldl_succ=Z.filter(I("status",Q)).length;L.ldl_fail=Z.filter(I("status",T)).length;K=!0;M=[];"notcached" === G.LP && (K=!1,M.push("Missing cached manifest"));this.config().Nna || (K=!1,M.push("LDL prefetch disabled"));aa=Z.filter(I("status",U)).length;this.config().Nna && 0 === aa && (!O.ldlreceived || 0 <= O.ldlreceived) && (K=!1,M.push("LDL received after start"));if(this.config().Pna)if(J.isPrefetchItem){ca=J.prefetchedAudioMs / J.bcABufferLevelMs;if(1 > J.prefetchedVideoMs / J.bcVBufferLevelMs || 1 > ca)(K=!1,M.push("Insufficient media fetched"));}else (K=!1,M.push("aseStats not initialized"));da=P.filter(function(S){return "getHeaders" === S.type;});L.header_succ=da.filter(I("status",Q)).length;L.header_fail=da.filter(I("status",T)).length;ha=P.filter(function(S){return "getMedia" === S.type;});L.media_succ=ha.filter(I("status",Q)).length;L.media_fail=ha.filter(I("status",T)).length;L.hm_succ=L.header_succ + L.media_succ;L.hm_fail=L.header_fail + L.media_fail;(0,l.Gf)(J,L,{prefix:"pr_"});this.NG.o9 && (J.eventlist_version=1,J.eventlist=this.jS.pxb(G));(J.prefetchCompleted=K) || (J.prefetchFailed=M,(0,l.Gf)(J,O,{prefix:"pe_"}));this.ETa(J);}catch(S){this.log.warn("error in collecting video prepare data",S);}};d.prototype.zSa=function(G,J){return G?{id:G.trackId,downloadableId:J,rank:G.Ac}:{};};d.prototype.TQ=function(G,J){return G?{id:G.trackId,trackId:G.trackId,bcp47:G.Ig,downloadableId:J,rank:G.Ac,chan:G.channels}:{};};d.prototype.lR=function(G){return G?{id:G.trackId,trackId:G.trackId,bcp47:G.Ig,downloadableId:G.ob,rank:G.Ac,isImageBased:G.Fq,profile:G.profile}:{};};d.prototype.psc=function(G,J){if(G=G.e$())if(J=G[J])return J.Ua;};d.prototype.pzb=function(G,J){G.qb.Pg && (J.isBranching=!0);};d.prototype.uR=function(G,J){J.cachedManifest=G.LP;J.cachedLicense=G.DX.source;J.usedldl=this.config().Nna?(G.DX.type === H.pr.XI).toString():"not_capable";};d.prototype.vR=function(G,J){var L,K;if(this.config().rvc){L=G.PRa();K=G.ga.S;L && K && (J.segment=L,K=G.RK(),J.segmenttime=K,G=this.psc(G,L),null !== K && void 0 !== G && (J.segmentoffset=K - G));}};d.prototype.bL=function(G,J,L){J.pxid=G.un;(void 0 === L?0:L) && (J.playgraph_trace=G.pIb);};d.prototype.paa=function(G,J){var L,K;K=[];G.i_() && K.push("ux");G.Ppa() && K.push("content");G.Wv() && K.push("ads");(null === (L=this.j.S) || void 0 === L?0:L.Aa.Sr) && K.push("choiceMap");J.playgraphTypes=K;};d.prototype.mvc=function(G,J){var L,K,M;L=new Set();G.i_() && G.lyb().forEach(function(P){P != G.Cf && L.add(P);});if(G.Ppa()){K=G.pG;M=G.S.Aa.OC.Z;Object.keys(M.ba).map(function(P){return M.ba[P].J;}).filter(function(P,I,O){return P !== K && O.indexOf(P) === I;}).forEach(function(P){return L.add(P);});}0 < L.size && (J.auxViewables=[].concat(za(L)));};d.prototype.tzb=function(G){var J,L;J=this.j.m9c;L=J && J.EMc;J && J.Puc && (G.htwbr=J.Puc,G.pbtwbr=J.Bbd,G.hptwbr=J.u9c);J && J.ONc && (G.rr=J.ONc,G.ra=J.acd);J && L && 0 < (L.length || 0) && (G.qe=JSON.stringify(L));};d.prototype.zTa=function(G){var J,L,K;try{J=this.Of.createElement("canvas");L=J.getContext("webgl") || J.getContext("experimental-webgl");if(L){K=L.getExtension("WEBGL_debug_renderer_info");K && (G.WebGLRenderer=L.getParameter(K.UNMASKED_RENDERER_WEBGL),G.WebGLVendor=L.getParameter(K.UNMASKED_VENDOR_WEBGL));}}catch(M){}};d.prototype.svc=function(G){G.switchAwaySummary={vsa:this.im.summary.bSb,vsb:this.im.summary.cSb,vsbt:this.im.summary.dSb,asa:this.im.summary.Kmb,asb:this.im.summary.Lmb,asbt:this.im.summary.Mmb};};d.prototype.z2b=function(G){var J;J=[];return G?Object.keys(G).map(function(L){return +L;}):J;};d.prototype.$n=function(){var G,J;G=this;if(this.j.BE && this.j.Yk){J=[];this.j.BE.concat(this.j.Yk).forEach(function(L){L.streams.forEach(function(K){J.push({dlid:K.ob,type:K.type,bitrate:K.bitrate,vmaf:K.Pb,cdn_ids:G.z2b(K.zOa)});});});return JSON.stringify(J);}};d.prototype.uac=function(){var J,L,K;function G(M,P){var I,O,Q;I=M.cdnId + "$" + M.correlationId;O=K[I];O || (O={cdnid:M.cdnId,pbcid:M.correlationId,dls:[]},K[I]=O,L.push(O));(0,k.pY)(M.bitrate);(0,k.pY)(M.duration);I={bitrate:M.bitrate,tm:(0,v.ut)(M.duration)};Q=M.vmaf;Q && ((0,k.pY)(M.vmaf),I.vf=Q);I[P]=(0,l.am)(M.downloadableId);O.dls.push(I);}J=this.j.Cp.yoc();L=[];K={};J.audio.forEach(function(M){G(M,"adlid");});J.video.forEach(function(M){G(M,"dlid");});return JSON.stringify(L);};d.prototype.Sca=function(){var G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca;L=this.j.Cp;K={totaltime:(0,l.hs)(L.Uv("content")),totalcontenttime:(0,l.hs)(L.P$("content")),totaladtime:(0,l.hs)(L.Uv("ads")),totalothertime:(0,l.hs)(L.Uv("other")),cdndldist:this.uac(),reposcount:this.Fda,intrplaycount:this.jL};try{M={numskip:0,numlowqual:0};P=this.j.Wd;I=P.mA();(0,x.pc)(I) && (K.totfr=I,M.numren=I);I=P.ZQ();(0,x.pc)(I) && (K.totdfr=I,M.numrendrop=I);I=P.j$();(0,x.pc)(I) && (K.totcfr=I,M.numrenerr=I);K.playqualvideo=JSON.stringify(M);O=this.j.$f.value;O && (K.videofr=O.framerate.toFixed(3));Q=L.DQa();Q && (K.abrdel=Q);T=L.Xpa() && L.Nvb();T && (K.tw_vmaf=T);U=L.Lvb();U && (0,l.Gf)(K,U);K.rbfrs=this.jL;K.maxbitrate=this.maxBitrate;K.maxresheight=this.ODb;X=this.j.VK();for(L=0;L < X.length;L++){Y=X[L];W=this.Na.Q_.kI(Y);if(W){(0,k.va)(Z);K.maxbitrate=Z?Z.bitrate:0;K.maxresheight=Z?Z.height:0;K.bitratefilters=W.join("|");break;}Z=Y;}this.j.wI && (K.trickplay=this.j.wI.OZ());null !== this.j.$q.onb && (K.avg_subt_delay=this.j.$q.onb);aa=null === (G=this.j.Wd) || void 0 === G?void 0:G.vQb;aa && 0 < aa && (K.unexpectedrewindcount=aa);ca=null === (J=this.j.Wd) || void 0 === J?void 0:J.PRb.svb;ca && 0 < ca.length && (K.frozenFrames=ca);}catch(da){this.log.error("Exception reading some of the endplay fields",da);}(0,l.Gf)(K,this.j.Kpa(),{prefix:"vd_"});return K;};d.prototype.getTime=function(){return this.Va.yc().na(m.ya);};d.prototype.aSa=function(){return this.getTime() - this.Na.Xj.na(m.ya);};d.prototype.ETa=function(G){var J;try{J=this.og.getStats();G.pr_cache_size=JSON.stringify(J.cache);G.pr_stats=JSON.stringify(J.Nnc);}catch(L){}};d.prototype.ATa=function(G){this.log.debug("httpstats",this.Ke.stats);(0,l.Gf)(G,this.Ke.stats,{prefix:"http_"});};d.prototype.Vx=function(G,J){G=G.Bc;G.za && (J.intenttoplayatedge=G.gu(),G=G.QK(),J.livestage=this.Aqc(G));};d.prototype.oaa=function(G,J){var L;L=G.Bc;G.bb && L.za && [{mediaType:z.u.X,poa:"aencodingpipeline"},{mediaType:z.u.U,poa:"vencodingpipeline"},{mediaType:z.u.Ca,poa:"tencodingpipeline"},{mediaType:z.u.sm,poa:"mencodingpipeline"}].forEach(function(K){var M;M=G.bb.SA[K.mediaType];if(M.bo || M.ao)J[K.poa]={enc:M.bo,origin:M.ao};});};d.prototype.Aqc=function(G){switch(G){case B.iz.E5:case B.iz.rCa:case B.iz.HAa:return G.toLowerCase();default:return (0,C.FG)(G);}};d.prototype.wTa=function(G){var J,L,K;J=this.config().Brb && !(this.Ha % this.config().Brb);L=this.j.bb;K=null === L || void 0 === L?void 0:L.kk;J && K && (G.ASEstats=JSON.stringify(L.aAb()));};d.prototype.kqa=function(G){Object.assign(G,this.j.bb.bd.Usc());};d.prototype.DTa=function(G){var J;try{J=v.eC.memory;(0,x.VAb)(J) && (G.totalJSHeapSize=J.totalJSHeapSize,G.usedJSHeapSize=J.usedJSHeapSize,G.jsHeapSizeLimit=J.jsHeapSizeLimit);}catch(L){}};d.prototype.ozb=function(G){var J;try{if(this.config().c8){J=this.j.Goc();G.battery=J;this.log.trace("batterystatuses",J);}}catch(L){}};d.prototype.ovc=function(G){this.j.cna && (G.dqec=this.j.cna);};d.prototype.CTa=function(G){var J,L,K;(null === (J=this.j.Rl) || void 0 === J?0:J.rqc)?G.keySystem=this.j.Rl.py.gy:(null === (K=null === (L=this.j.Rl) || void 0 === L?void 0:L.mediaKeys) || void 0 === K?0:K.keySystem)?G.keySystem=this.j.Rl.mediaKeys.keySystem:this.ly.xBb && (G.keySystem=this.ly.xBb);G.keySystem && (G.keysys=G.keySystem);this.ly.BBb && (G.keySystemStatuses=this.RAc(this.ly.BBb));this.ly.wBb && (G.keySystemHasHwdrmAvailable=this.ly.wBb);this.ly.ksa && (G.keySystemMediaKeysCount=this.ly.ksa);0 < this.rD.zBb.length && (G.keySystemRestrictions=this.rD.zBb);0 < Object.keys(this.rD.ABb).length && (G.keySystemRestrictionsDebug=this.rD.ABb);0 < Object.keys(this.rD.yBb).length && (G.keySystemRestrictionReasons=this.rD.yBb);G.useEncryptedEvent=this.config().A3a;};d.prototype.RAc=function(G){var J;J=this;return G.reduce(function(L,K){var M;M=(0,F.Lpb)(K.hra);L[M]=J.VAc(K.status);return L;},{});};d.prototype.VAc=function(G){return G.supported?!0:G.reason;};d.prototype.BTa=function(G){var J;if(null === (J=this.j.Rl) || void 0 === J?0:J.Fwb)G.keystatus=this.j.Rl.PUa;};d.prototype.pvc=function(G){this.CPa && (G.externaldisplay=this.CPa.aZ);};d.prototype.tvc=function(G){G.didHydrateTracks=this.j.tna;};d.prototype.myc=function(){void 0 === this.CPa && (this.CPa=this.DPa.dmc());};d.prototype.Joa=function(G,J){(J=this.j.CZ(J)) && Object.entries(J).forEach(function(L){var K;K=Ea(L);L=K.next().value;K=K.next().value;G[L]=K;});};d.prototype.BA=function(G,J){var L;(J=null === (L=this.j.bb) || void 0 === L?void 0:L.lpa(void 0,J)) && Object.entries(J).forEach(function(K){var M;M=Ea(K);K=M.next().value;M=M.next().value;G[K]=M;});};d.prototype.nzb=function(G){var J,L,K,M,P;K=String.fromCharCode.apply(String,[97,100,118,101,114,116,115]);M=!JSON.parse('{"result": { "' + K + '": {}}}').result[K];P=String.fromCharCode.apply(String,[100,97,105,83,117,112,112,111,114,116,101,100]);K=!(null === (L=null === (J=JSON.parse('{"result": { "' + K + '": {"' + P + '": true}}}').result) || void 0 === J?void 0:J[K]) || void 0 === L?0:L[P]);G.ab1=M;G.ab2=K;G.ab=M || K;};d.prototype.Vc=function(G,J,L,K){var M,P;P=K.sev;P=J?"error":null !== P && void 0 !== P?P:"info";J && this.j.Mj && (0,p.nha)(this.j.Mj.errorCode,this.j.Mj.Ta,this.aSa(),null === (M=this.j.Wd) || void 0 === M?void 0:M.mA()) && (P="info");this.j.qH.nAc(G) || (this.jKa(K,this.j,J,L),G=this.rH.Tt(G,P,K,this.Na),this.ci.Vc(G));};d.prototype.nvc=function(G,J){var L,K;K=null === (L=J.bb) || void 0 === L?void 0:L.irb;K && (null === K || void 0 === K?void 0:K.J) !== J.pG && (G.auxMid || (G.auxMid=K.J),G.auxPlaybackcontextid || (G.auxPlaybackcontextid=J.Oj(K.J).Xd));};d.prototype.jKa=function(G,J,L,K){var M,P,I,O,Q,T,U;this.Jc.qzb(G,J);this.nvc(G,J);K & E.hf && ((0,k.va)(!G || void 0 === G.moff),this.Jc.uzb(G,J.ga,J.Ppa()));K & E.cx && this.Jc.wzb(G,J);K & E.xl && (null === (M=J.bb) || void 0 === M?0:M.kk) && (G.abuflbytes=null !== (P=G.abuflbytes) && void 0 !== P?P:J.cLa(),G.abuflmsec=null !== (I=G.abuflmsec) && void 0 !== I?I:J.w7(),G.vbuflbytes=null !== (O=G.vbuflbytes) && void 0 !== O?O:J.M3a(),G.vbuflmsec=null !== (Q=G.vbuflmsec) && void 0 !== Q?Q:J.Vfa(),G.tbuflbytes=null !== (T=G.tbuflbytes) && void 0 !== T?T:J.STc(),G.tbuflmsec=null !== (U=G.tbuflmsec) && void 0 !== U?U:J.TTc());K & E.rz && this.Jc.xzb(G,J.Eu);K & E.QN && (M=v.zg.hardwareConcurrency,0 <= M && (G.numcores=M),M=this.Na.FOa) && (P=M.EQa(),G.droppedFrames=JSON.stringify(P),M=M.B$(this.config().Xic),(0,l.Di)(M,function(X,Y){G["droppedFramesP" + X]=JSON.stringify(Y);}));if(K & E.Kga)try{J.Uh && void 0 === G.cdninfo && (G.cdninfo=this.d$(J.Uh));}catch(X){}L && K & E.aO && ((0,k.va)(J.Mj),this.Jc.szb(G,J,J.Mj));K & E.Su && this.Jc.yTa(G);};d.prototype.d$=function(G){return JSON.stringify(G.map(function(J){return {id:J.id,nm:J.name,rk:J.Ac,wt:J.location.weight,lv:J.location.level};}));};Ha.Object.defineProperties(d.prototype,{B3a:{configurable:!0,enumerable:!0,get:function(){return this.j.zK || this.j.HY;}}});b.a5=d;(function(G){G[G.hf=1]="MOFF";G[G.cx=2]="PRESENTEDSTREAMS";G[G.xl=4]="BUFFER";G[G.rz=8]="SCREEN";G[G.QN=16]="CPU";G[G.Kga=32]="CDN";G[G.aO=64]="FATALERROR";G[G.Su=128]="BROWSERINFO";})(E || (E={}));},26158:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r,q){this.ci=l;this.config=m;this.Ma=p;this.Va=r;this.IVa=q;}Object.defineProperty(b,"__esModule",{value:!0});b.oO=void 0;t=a(22970);n=a(45118);c=a(22674);f=a(98326);g=a(4203);e=a(30869);h=a(81918);k=a(99400);d.prototype.create=function(l,m,p,r){var q;q=this.IVa.create(l,m);return new k.c5(l,m,p,r,this.ci,this.config,this.Va,q);};a=d;b.oO=a;b.oO=a=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(n.Up)),t.__param(1,(0,c.v)(g.Hc)),t.__param(2,(0,c.v)(e.Li)),t.__param(3,(0,c.v)(h.fe)),t.__param(4,(0,c.v)(f.Z4))],a);},99400:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m,p,r,q,u,v){var w;w=this;this.j=k;this.Na=l;this.iR=p;this.ci=r;this.config=q;this.Va=u;this.jb=v;this.DL=function(x,y){return function(A){var z;z=y(A);if("number" !== typeof z)throw Error("Event " + JSON.stringify(A) + " does not have movie Id");w.SCc.includes(z) && x(A);};};this.pDb=this.DL(function(x){w.Iwa(x.AR);},function(x){return x.R;});this.nDb=this.DL(function(){w.e8();},function(x){return x.R;});this.qpb=this.DL(function(){w.e8();},function(x){return x.movieId;});this.lMa=this.DL(function(){w.j.Zb.value === g.Nb.rg && (w.j.Zb.removeListener(w.lMa),w.iB());},function(){return w.j.R;});this.tI=function(x){w.tw && w.jb.tI(x);};this.vpb=this.DL(this.jb.ccc,function(x){return x.R;});this.Bsb=this.DL(this.jb.Dic,function(x){return x.R;});this.NCb=this.DL(this.jb.kba,function(x){return w.j.Vl(x.segmentId).R;});this.qMb=this.DL(this.jb.nea,function(x){return w.j.Vl(x.segmentId).R;});this.Ms=function(x){x.skip && (w.YM=!0);switch(x.Dc){case g.Mc.Xu:case g.Mc.CV:case g.Mc.P5:case g.Mc.V3:case g.Mc.Vha:w.y1 && w.Qu && w.jb.DYa(w.getTime() - w.Qu,w.y1);w.y1="repos";w.jb.CM(x.yS,x.We,x.ye);w.Qu=w.getTime();(0,f.Xh)(w.JC);break;case g.Mc.pha:w.y1="force_rebuffer";w.Qu=w.getTime();(0,f.Xh)(w.JC);break;case g.Mc.dW:case g.Mc.Mo:break;default:return (0,e.FG)(x.Dc);}};this.kq=function(x){w.mH=x.lw;w.jb.kq(x);};this.JC=function(){var x;if(w.Qu && w.j.Zb.value !== g.Nb.mh){x=w.getTime() - w.Qu;w.jb.Du(x,w.YM,w.y1);w.mH && w.mH != w.j.ka.he && w.jb.jLa();w.Qu=void 0;w.y1=void 0;w.YM=void 0;}};this.iB=function(){w.tw || (w.tw=!0,w.jb.Kp(!1),w.HTa(),w.config().rqa && (w.dH=Ba.setTimeout(function(){w.ci.flush(!1).catch(function(){return w.log.warn("failed to flush log batcher on initialLogFlushTimeout");});w.dH=void 0;},w.config().rqa)));};this.ph=function(){w.dH && (Ba.clearTimeout(w.dH),w.dH=void 0);if(w.hvb() || w.config().vv)(w.yOa && (Ba.clearInterval(w.yOa),w.yOa=void 0),w.jb.rsb());w.Gfa && w.Gfa();w.tw?w.jb.Lv(!!w.j.Mj):w.j.Mj?w.jb.Kp(!0):w.Na.background.value || w.jb.EYa();};this.bga=function(x){x.oldValue && x.Xm && x.Xm.NP && w.jb.hG(x.oldValue,x.newValue,x.Xm.NP,x.Xm.I7);};this.$ca=function(x){var y;if(x.newValue){y=x.newValue.stream;w.NR != y && (w.NR && y && w.jb.g_a(w.NR,y,w.iR(x.newValue.NX.startTime)),w.NR=y);}};this.SCc=l.Cf?k.lyb():[l.R];this.log=(0,n.jo)(k,"LogblobBuilder");this.Tb();m && this.Iwa();}Object.defineProperty(b,"__esModule",{value:!0});b.c5=void 0;n=a(31276);c=a(5021);f=a(32219);g=a(85001);e=a(79542);h=a(26388);d.prototype.Tb=function(){this.j.addEventListener(g.ja.KL,this.pDb);this.j.addEventListener(g.ja.TVa,this.nDb);this.j.addEventListener(g.ja.kba,this.NCb);this.j.addEventListener(g.ja.nea,this.qMb);this.j.addEventListener(g.ja.ph,this.qpb);if(this.hvb() || this.config().vv)(this.j.addEventListener(g.ja.hQ,this.Bsb),this.yOa=Ba.setInterval(this.jb.rsb,this.config().Hic));this.config().p_a && this.j.addEventListener(g.ja.hQ,this.vpb);};d.prototype.Iwa=function(k){var l;l=this;this.JEb || (this.j.Zb.value !== g.Nb.rg || (void 0 === k?0:k)?this.j.Zb.addListener(this.lMa):this.iB(),this.j.Wk.addListener(this.tI),this.j.ka.addListener([h.u.Ca],this.jb.Op),this.j.ka.addListener([h.u.X],this.kq),this.j.fj.addListener(this.jb.B7),this.j.paused.addListener(this.jb.gua),this.j.ye.addListener(this.$ca),this.j.Zb.addListener(this.JC),this.j.Zb.addListener(this.jb.QPb),this.j.$f.addListener(this.bga),this.j.playbackRate.addListener(this.jb.Gea),this.j.addEventListener(g.ja.Gj,this.jb.Gj),this.j.addEventListener(g.ja.lX,this.jb.lX),this.j.addEventListener(g.ja.Era,this.jb.Era),this.j.addEventListener(g.ja.i2,this.jb.i2),this.j.addEventListener(g.ja.aG,function(m){l.y1="rebuffer";l.jb.aG(m);l.Qu=l.getTime();(0,f.Xh)(l.JC);}),this.j.addEventListener(g.ja.Ms,this.Ms),this.j.addEventListener(g.ja.t2,this.jb.t2),this.Na.zv && this.Na.zv.addListener(this.jb.zv),this.JEb=!0);};d.prototype.e8=function(){this.ph();this.JEb && (this.j.removeEventListener(g.ja.KL,this.pDb),this.j.removeEventListener(g.ja.TVa,this.nDb),this.j.removeEventListener(g.ja.kba,this.NCb),this.j.removeEventListener(g.ja.nea,this.qMb),this.j.Wk.removeListener(this.tI),this.j.ka.removeListener(this.jb.Op),this.j.ka.removeListener(this.kq),this.j.fj.removeListener(this.jb.B7),this.j.paused.removeListener(this.jb.gua),this.j.ye.removeListener(this.$ca),this.j.Zb.removeListener(this.JC),this.j.Zb.removeListener(this.lMa),this.j.Zb.removeListener(this.jb.QPb),this.j.$f.removeListener(this.bga),this.j.playbackRate.removeListener(this.jb.Gea),this.j.removeEventListener(g.ja.ph,this.qpb),this.j.removeEventListener(g.ja.Gj,this.jb.Gj),this.j.removeEventListener(g.ja.lX,this.jb.lX),this.j.removeEventListener(g.ja.i2,this.jb.i2),this.j.removeEventListener(g.ja.aG,this.jb.aG),this.j.removeEventListener(g.ja.Ms,this.Ms),this.j.removeEventListener(g.ja.t2,this.jb.t2),this.Na.zv && this.Na.zv.removeListener(this.jb.zv),this.j.removeEventListener(g.ja.hQ,this.Bsb),this.j.removeEventListener(g.ja.hQ,this.vpb));};d.prototype.getTime=function(){return this.Va.yc().na(c.ya);};d.prototype.HTa=function(){var k,l,m;k=this;m=[];this.config().jEb && (this.config().kEb.forEach(function(p){m.push(Ba.setTimeout(k.jb.CH,p));}),this.config().psa && (l=Ba.setInterval(this.jb.CH,this.config().psa)),this.Gfa=function(){m.forEach(function(p){Ba.clearTimeout(p);});l && Ba.clearInterval(l);});};d.prototype.hvb=function(){var k,l,m;m=null === (l=null === (k=this.j.ga.S) || void 0 === k?void 0:k.Aa.qE) || void 0 === l?void 0:l.O1a;if(void 0 !== m && void 0 !== m.downloadReportDenominator)try{return parseInt(m.downloadReportDenominator,10);}catch(p){this.log.error("Unable to parse manifest config override:" + m.downloadReportDenominator);}return this.config().Esb;};b.c5=d;},33345:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q;function d(u,v,w,x,y,A,z){this.Va=u;this.platform=w;this.gp=x;this.Nk=y;this.Yi=A;this.UCb=z;(0,f.hw)(this,"json");this.wa=v.wb("LogblobSender");}function n(){this.entries=[];}Object.defineProperty(b,"__esModule",{value:!0});b.TCa=b.Sia=void 0;t=a(22970);c=a(22674);f=a(66523);g=a(5021);e=a(74870);h=a(81918);k=a(91581);l=a(33554);m=a(87386);p=a(40953);r=a(7605);q=a(51658);b.Sia=n;d.prototype.send=function(u){var v;v=this;return new Promise(function(w,x){var y;try{y=u.reduce(function(A,z){A.entries.push(v.wfc(z));return A;},new n());w(y);}catch(A){v.wa.error(A.message);x(A);}}).then(function(w){return v.q0a(w);});};d.prototype.wfc=function(u){var v;v={};this.UCb.XM && (v.transport=q.tgb.JXc);return this.Nk.Y_(this.Nk.Y_(v,u.data),{esn:this.gp().ij,sev:u.severity,type:u.type,lver:this.platform.HVa,jssid:this.Va.id,devmod:this.platform.sK,jsoffms:u.timestamp.ea(this.Va.nH).na(g.ya),clienttime:u.timestamp.na(g.ya),client_utc:u.timestamp.na(g.Yu),uiver:this.Yi.uiVersion});};d.prototype.q0a=function(u){var v;v=this;return this.UCb.Se({log:this.wa},{logblobs:u}).then(function(){!1;}).catch(function(w){v.wa.error("PBO logblob failed",w);return Promise.reject(w);});};a=d;b.TCa=a;b.TCa=a=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(h.fe)),t.__param(1,(0,c.v)(m.zb)),t.__param(2,(0,c.v)(k.xt)),t.__param(3,(0,c.v)(l.WB)),t.__param(4,(0,c.v)(e.Am)),t.__param(5,(0,c.v)(r.oz)),t.__param(6,(0,c.v)(p.Rdb))],a);},82956:function(t,b,a){var n,c;function d(f){switch(f){case n.Y.F4:return "http";case n.Y.I4:return "connectiontimeout";case n.Y.fO:return "readtimeout";case n.Y.K9a:return "corruptcontent";case n.Y.eO:return "abort";case n.Y.J4:case n.Y.GBa:return "unknown";}}Object.defineProperty(b,"__esModule",{value:!0});b.Xqc=d;b.Frc=function(f,g){var e;f={errorcode:f + (g.errorCode || n.da.yh)};g.Ta && (f.errorsubcode=g.Ta);g.Ng && (f.errorextcode=g.Ng);g.w9 && (f.erroredgecode=g.w9);g.qf && (f.errordetails=g.qf);g.ds && (f.httperr=g.ds);g.GH && (f.aseneterr=g.GH);g.v9 && (f.errordata=g.v9);g.Qba && (f.mediaerrormessage=g.Qba);e=d(Number(g.Ta));e && (f.nwerr=e);g.Xd && (f.playbackcontextid=g.Xd);return f;};b.Kxb=function(){return {screensize:c.dJ.width + "x" + c.dJ.height,screenavailsize:c.dJ.availWidth + "x" + c.dJ.availHeight,clientsize:Ba.innerWidth + "x" + Ba.innerHeight,devicePixelRatio:c.ocb};};n=a(36129);c=a(22365);},50723:function(t,b,a){var c,f,g,e,h,k,l;function d(m){this.BJ=g.ia;this.RIa=[];this.l6=this.eka=!1;m && (this.BJ=m.size,this.RIa=m.iS);}function n(m,p,r,q){this.fCc=m;this.config=p;this.th=r;this.json=q;(0,f.hw)(this,"json");this.wa=this.th.wb("MessageQueue");this.Vz=[];}Object.defineProperty(b,"__esModule",{value:!0});b.FDa=void 0;t=a(22970);c=a(22674);f=a(66523);g=a(72574);e=a(81829);h=a(87386);k=a(63368);a=a(45118);n.prototype.tKa=function(m){var p,r;0 === this.Vz.length && this.Vz.push(this.VQa());if(m=this.msc(m)){p=this.fCc.measure([m]);r=this.Vz[this.Vz.length - 1];0 < r.size.add(p).Ml(this.config.JDb) && (r=this.VQa(),this.Vz.push(r));r.tKa(m);}};n.prototype.Eoc=function(){var m;m=this.Vz.filter(function(p){return p.hac;});this.Vz.push(this.VQa());m.forEach(function(p){return p.$Ac();});return m;};n.prototype.z5b=function(m){m.gH || this.Vz.unshift(new d(m));};n.prototype.aMc=function(m){m=this.Vz.indexOf(m);0 <= m && this.Vz.splice(m,1);};n.prototype.msc=function(m){try{return {data:this.json.parse(this.json.stringify(m.data)),severity:m.severity,size:m.size,timestamp:m.timestamp,type:m.type};}catch(q){var p,r;p={};m=m.data;r=m.debugMessage;r && "string" === typeof r && (p.originalDebugMessage=r);(m=m.debugCategory) && "string" === typeof m && (p.originalDebugCategory=m);this.wa.error("JSON.stringify error: " + q.message,p);}};n.prototype.VQa=function(){return new d();};Ha.Object.defineProperties(n.prototype,{size:{configurable:!0,enumerable:!0,get:function(){return this.Vz.reduce(function(m,p){return m.add(p.size);},g.ia);}}});l=n;b.FDa=l;b.FDa=l=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(e.Yab)),t.__param(1,(0,c.v)(a.HCa)),t.__param(2,(0,c.v)(h.zb)),t.__param(3,(0,c.v)(k.AV))],l);d.prototype.j2=function(){this.eka=!1;this.l6=!0;};d.prototype.Ud=function(){this.eka=!1;};d.prototype.tKa=function(m){this.RIa.push(m);this.BJ=this.BJ.add(m.size);};d.prototype.$Ac=function(){this.eka=!0;};Ha.Object.defineProperties(d.prototype,{size:{configurable:!0,enumerable:!0,get:function(){return this.BJ;}},iS:{configurable:!0,enumerable:!0,get:function(){return this.RIa;}},hac:{configurable:!0,enumerable:!0,get:function(){return 0 < this.iS.length && !1 === this.eka;}},gH:{configurable:!0,enumerable:!0,get:function(){return this.l6;}}});},29670:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.uTb={"playready-oggvorbis-2-piff":"OGG_VORBIS","playready-oggvorbis-2-dash":"OGG_VORBIS","heaac-2-piff":"AAC","heaac-2-dash":"AAC","heaac-2hq-dash":"AAC","heaac-5.1-dash":"AAC","playready-heaac-2-dash":"AAC","heaac-2-elem":"AAC","heaac-2-m2ts":"AAC","xheaac-dash":"XHEAAC","ddplus-5.1-piff":"DDPLUS","ddplus-2.0-dash":"DDPLUS","ddplus-5.1-dash":"DDPLUS","ddplus-5.1hq-dash":"DDPLUS","ddplus-atmos-dash":"DDPLUS","dd-5.1-elem":"DD","dd-5.1-m2ts":"DD"};},51770:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;Object.defineProperty(b,"__esModule",{value:!0});b.oDb=void 0;t=a(22674);d=a(37104);n=a(83081);c=a(43185);f=a(23176);g=a(17950);e=a(24273);h=a(44236);k=a(17398);l=a(47930);m=a(60042);p=a(97791);b.oDb=new t.Be(function(r){r(c.tbb).to(f.nDa).sa();r(d.pDa).to(n.oDa).sa();r(g.Deb).Pp(function(q){for(var u=[],v=0;v < arguments.length;++v)u[v - 0]=arguments[v];v=a(26159).EO;return new (Function.prototype.bind.apply(v,[null].concat(za(u))))();});r(e.wbb).Zf(function(){return function(q){return new h.xbb(q);};});r(k.IV).to(l.kDa).sa();r(m.rbb).to(p.jDa).sa();});},43185:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.tbb="ManifestProviderConfigSymbol";},37104:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.pDa="ManifestParserFactorySymbol";},24273:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.wbb="ManifestVerifyErrorFactorySymbol";},17950:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Deb="PlayerTextTrackFactorySymbol";},77939:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p){l=c.h5.call(this,l) || this;l.config=m;l.j=p;return l;}Object.defineProperty(b,"__esModule",{value:!0});b.I5a=void 0;n=a(29670);c=a(28518);f=a(45266);g=a(51344);e=a(35128);h=a(36129);k=a(31149);Ia(d,c.h5);d.prototype.cHb=function(l,m,p){var r,q;r=this;q=this.config.cxa;m=m.filter(function(u){var v,w;v=u.ay || !u.cf || u.streams && 0 < u.streams.length;v || r.log.warn("Audio track is missing streams",r.Dpa(u));w=0 === q.length || 0 <= q.indexOf(u.aj);w || r.log.warn("Audio track is not supported",r.Dpa(u));return v && w;});if(!m.length)throw Error("no valid audio tracks");m=m.map(function(u){return r.bHb(l,u,r.roc(u,p));});this.log.trace("Parsed audio tracks",{Count:m.length});return m;};d.prototype.XGc=function(l,m,p,r){var q,u,v,w;q=this;u=Ea((0,f.fM)(function(x){return x.ay;},m));m=u.next().value;u=u.next().value;u=Ea((0,f.fM)(function(x){return x.streams && 0 < x.streams.length;},u));v=u.next().value;u.next().value.forEach(function(x){return q.log.warn("Audio track is missing streams",q.Dpa(x));});w=this.config.cxa;u=Ea((0,f.fM)(function(x){return 0 === w.length || 0 <= w.indexOf(x.aj);},v));v=u.next().value;u.next().value.forEach(function(x){return q.log.warn("Audio track is not supported",q.Dpa(x));});m=[].concat(za(v),za(m)).map(function(x){return q.bHb(l,x,q.wqc(x.Ue,p,r));});if(!m.length)throw Error("no valid audio tracks");this.log.trace("Transformed audio tracks",{Count:m.length});return m;};d.prototype.C8b=function(l){var m,p;m=this;p=this.config.bQa;if(p){if(l=Ea(l.filter(function(r){return r.Ig == p || r.trackId == p;})).next().value)return l;}else if(this.j.Aoa && (l=Ea(l.filter(function(r){return r.trackId == m.j.Aoa;})).next().value))return l;};d.prototype.qmc=function(l,m){this.config.jnb.forEach(function(p){var r,q,u;r=m.Om.filter(function(v){return v.profile === p;}).reduce(function(v,w){w.streams.map(function(x){return x.bitrate;}).forEach(function(x){v.add(x);});return v;},new Set());q=!1;u=l.Aa.Om.map(function(v){var w;if(v.profile === p){w=v.streams.filter(function(x){return r.has(x.bitrate);});if(w.length === v.streams.length)return v;q=!0;if(0 === w.length)throw new k.re(h.da.ebb,h.Y.hTb);return Object.assign(Object.assign({},v),{streams:w});}return v;});q && (l.Aa=Object.assign(Object.assign({},l.Aa),{Om:u}));});return l;};d.prototype.bHb=function(l,m,p){var r,q,u,v;v=m.aj;l=Object.assign(Object.assign({},l),{type:g.Ln.audio,hU:m.hU,variant:m.variant,trackId:m.Ue,aj:e.rja[v.toLowerCase()] || e.Zu.UV,yM:v,Ig:m.language,displayName:m.xL,Ac:null !== (r=m.Ac) && void 0 !== r?r:-1,cf:null !== (q=m.cf) && void 0 !== q?q:!0,channels:m.channels,R5c:m.channels,vj:p,Ki:{Bcp47:m.language,TrackId:m.Ue},streams:[],isNative:m.isNative,Gq:m.ay,Zea:m.Zea});l.streams=this.XPb(m.streams,l);this.log.trace("Transformed audio track",l,{StreamCount:l.streams.length,AllowedTimedTextTracks:l.vj.length});l.f8=n.uTb[null === (u=l.streams[0]) || void 0 === u?void 0:u.Uc];return l;};d.prototype.Dpa=function(l){return {language:l.xL,bcp47:l.language,type:l.aj};};d.prototype.roc=function(l,m){var p;p=this;return m.filter(function(r){var q;if(0 <= (null === (q=l.pic) || void 0 === q?void 0:q.indexOf(r.trackId)))return !1;if(!p.config.KKa || !r.Gq() || r.pp())if(l.Mrb){if(l.Mrb !== r.trackId && (r.Gq() || r.pp()))return !1;}else if(l.BEc){if(r.Gq() || r.pp())return !1;}else if(r.pp())return !1;return !0;});};d.prototype.wqc=function(l,m,p){var r;m=m.filter(function(q){return q.ka.X === l;}).map(function(q){return q.ka.Ca;}).map(function(q){return p.find(function(u){return u.trackId === q;});}).filter(Boolean);if(this.config.KKa && !m.find(function(q){return q.Gq() && !q.pp();})){r=p.find(function(q){return q.Gq() && !q.pp();});r && m.push(r);}return m;};b.I5a=d;},82409:function(t,b,a){var n,c;function d(f,g){this.log=f;this.config=g;}Object.defineProperty(b,"__esModule",{value:!0});b.M6a=void 0;n=a(45266);c=a(64274);d.prototype.dHb=function(f,g){var e,h,k,l;e=this;h=this.config.cMa;k=this.config.bMa;f=Ea((0,n.fM)(function(m){return (!h.length || 0 <= h.indexOf(m.id)) && 0 > k.indexOf(m.id);},f || []));l=f.next().value;f.next().value.forEach(function(m){return e.log.warn("Cdn is not allowed",{Id:m.id});});f=l.map(function(m){var p;p=(g?g.find(function(r){return r.key === m.key;}):void 0) || ({});return {id:m.id,name:m.name,Ac:m.Ac,type:m.type,WR:m.key,axc:m.YCb,location:{id:p.key,Ac:p.Ac,level:p.level,weight:p.weight}};});f.sort(function(m,p){return m.Ac - p.Ac;});this.log.trace("Transformed cdns",{Count:f.length});if(!f.length)throw Error("no valid cdns");return f;};d.prototype.Wuc=function(f,g,e,h){var k;k=f.filter(function(l){return -1 === e.findIndex(function(m){return m.id === l.id;});}).map(function(l){return {IGb:!0,Ab:l};}).concat(e.map(function(l){return {IGb:!1,Ab:l};})).sort(function(l,m){return l.Ab.Ac === m.Ab.Ac?l.IGb?-1:1:l.Ab.Ac - m.Ab.Ac;}).map(function(l,m){(0,c.xba)(l.Ab).Ac=m + 1;return l.Ab;});f=g.filter(function(l){return -1 === h.findIndex(function(m){return m.key === l.key;});}).concat(h).map(function(l){var m;m=k.findIndex(function(p){return p.key === l.key;});if(-1 !== m)return (m=k[m],(0,c.xba)(l).Ac=m.Ac,l);}).filter(function(l){return void 0 !== l;});return {cPc:k,gAc:f};};b.M6a=d;},23176:function(t,b,a){var n,c,f,g,e,h;function d(k,l){k=c.Qf.call(this,k,"ManifestParserConfigImpl") || this;k.eg=l;return k;}Object.defineProperty(b,"__esModule",{value:!0});b.nDa=void 0;t=a(22970);n=a(22674);c=a(64174);f=a(83767);g=a(12501);e=a(5614);h=a(72574);Ia(d,c.Qf);Ha.Object.defineProperties(d.prototype,{cxa:{configurable:!0,enumerable:!0,get:function(){return [];}},bQa:{configurable:!0,enumerable:!0,get:function(){return "";}},cMa:{configurable:!0,enumerable:!0,get:function(){return [];}},bMa:{configurable:!0,enumerable:!0,get:function(){return [];}},eQa:{configurable:!0,enumerable:!0,get:function(){return "";}},mTa:{configurable:!0,enumerable:!0,get:function(){return 0;}},u2:{configurable:!0,enumerable:!0,get:function(){return this.eg.u2.na(h.hz);}},NB:{configurable:!0,enumerable:!0,get:function(){return this.eg.NB;}},jnb:{configurable:!0,enumerable:!0,get:function(){return ["heaac-2-dash"];}},KKa:{configurable:!0,enumerable:!0,get:function(){return !1;}}});a=d;b.nDa=a;t.__decorate([g.config(g.f2,"supportedAudioTrackTypes")],a.prototype,"cxa",null);t.__decorate([g.config(g.string,"forceAudioTrack")],a.prototype,"bQa",null);t.__decorate([g.config(g.a3a,"cdnIdWhiteList")],a.prototype,"cMa",null);t.__decorate([g.config(g.a3a,"cdnIdBlackList")],a.prototype,"bMa",null);t.__decorate([g.config(g.string,"forceTimedTextTrack")],a.prototype,"eQa",null);t.__decorate([g.config(g.Vy,"imageSubsResolution")],a.prototype,"mTa",null);t.__decorate([g.config(g.Vy,"timedTextSimpleFallbackThreshold")],a.prototype,"u2",null);t.__decorate([g.config(g.f2,"timedTextProfiles")],a.prototype,"NB",null);t.__decorate([g.config(g.f2,"auxiliaryManifestAudioProfileNeedsBitrateMatching")],a.prototype,"jnb",null);t.__decorate([g.config(g.pd,"alwaysIncludeOffTimedTextTrack")],a.prototype,"KKa",null);b.nDa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.Po)),t.__param(1,(0,n.v)(e.XV))],a);},83081:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w){this.th=q;this.config=u;this.QYa=v;this.S2a=w;}Object.defineProperty(b,"__esModule",{value:!0});b.oDa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(43185);g=a(82409);e=a(71420);h=a(85696);k=a(6795);l=a(77939);m=a(44858);p=a(17950);a=a(77601);d.prototype.create=function(q){var u,v;u=this.th.wb("ManifestParser",q);v=new g.M6a(u,this.config);return new h.ubb(v,new e.ohb(u,this.config,q,this.QYa),new k.Ihb(u,q,this.S2a),new l.I5a(u,this.config,q),new m.oib(u));};r=d;b.oDa=r;b.oDa=r=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(f.tbb)),t.__param(2,(0,n.v)(p.Deb)),t.__param(3,(0,n.v)(a.Hhb))],r);},85696:function(t,b,a){var n;function d(c,f,g,e,h){this.dMa=c;this.q2a=f;this.QUc=g;this.E7=e;this.WRb=h;}Object.defineProperty(b,"__esModule",{value:!0});b.ubb=void 0;n=a(64274);d.prototype.mHb=function(c){var f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B;e=c.Aa;h={correlationId:null !== (g=null === (f=e.Xz) || void 0 === f?void 0:f.Jf) && void 0 !== g?g:"",Mq:e.qs?"ads":"content"};k=!!e.sB;f=this.dMa.dHb(e.Hk,e.Sj);g=this.q2a.uHb(h,e.ht);c=this.QUc.qHc(e.AU);l=k?this.E7.cHb(h,e.Om,g):this.E7.XGc(h,e.Om,e.media,g);h=this.WRb.sHc(h,e.jm);m=h.find(function(C){return k?C.trackId === e.sB.Sp:C.trackId === e.Q8[0].Sp;}) || h[0];p=this.E7.C8b(l) || l.find(function(C){return k?C.trackId === e.sB.yv:C.trackId === e.Q8[0].yv;}) || l[0];r=this.q2a.lUc(p.vj) || g.find(function(C){return k?C.trackId === e.sB.Ty:C.trackId === e.Q8[0].NOb;}) || p.vj[0];q=this.WRb.eHc(e.jm);u=e.Xd;v=e.Hb;w=e.Kbc;x=e.YK;y=e.$r;A=e.Om.findIndex(function(C){return C.Ue == p.trackId;});z=e.jm.findIndex(function(C){return C.Ue == m.trackId;});B=e.ht.findIndex(function(C){return C.Ue == r.trackId;});return {lT:q,Uh:f,Yk:l,BE:h,vj:g,xI:c,Xd:u,Hb:v,hPc:w,ER:x,$r:y,ghc:A,rhc:z,phc:B,S8:m,M8:p,O8:r};};d.prototype.Xuc=function(c,f,g){var e,h,k,l,m,p;e=this;l=this.dMa.Wuc(c.Aa.Hk,c.Aa.Sj,g.Aa.Hk,g.Aa.Sj);m=l.cPc;l=l.gAc;(0,n.xba)(c.Aa).Hk=m;(0,n.xba)(c.Aa).Sj=l;f.Uh=this.dMa.dHb(m,l);p={correlationId:null !== (k=null === (h=g.Aa.Xz) || void 0 === h?void 0:h.Jf) && void 0 !== k?k:"",Mq:g.Aa.qs?"ads":"content"};g=g.Aa;h=g.Om;g.ht.forEach(function(r){var q;if(r.cf){q=e.vKb(c.Aa.ht,f.vj,r,function(u){return e.q2a.uHb(p,[u])[0];});q && f.Yk.forEach(function(u){var v;u=u.vj;v=u.findIndex(function(w){return w.trackId === q.trackId;});-1 !== v && (u[v]=q);});}});h.forEach(function(r){r.cf && e.vKb(c.Aa.Om,f.Yk,r,function(q){return e.E7.cHb(p,[q],f.vj)[0];});});return {S:c,Yc:f};};d.prototype.aOc=function(c,f){return this.E7.qmc(c,f);};d.prototype.vKb=function(c,f,g,e){var h,k,l,m;h=c.findIndex(function(p){return p.Ue === g.Ue;});k=-1 !== h?c[h]:void 0;l=f.findIndex(function(p){return p.trackId === g.Ue;});m=-1 !== l?f[l]:void 0;if(k && !k.cf && m && !m.cf)return (e=e(g),c[h]=g,f[l]=e);};b.ubb=d;},44236:function(t,b){function a(d){this.Yc=d;this.qf=JSON.stringify(this.Iqc());}Object.defineProperty(b,"__esModule",{value:!0});b.xbb=void 0;a.prototype.Iqc=function(){var d;d=[];(!this.Yc.Uh || 0 >= this.Yc.Uh.length) && d.push({error:"No CDN."});this.Yc.M8 || d.push({error:"No default audio track.",foundTracks:this.$Qa(this.Yc.Yk)});this.Yc.S8 || d.push({error:"No default video track.",foundTracks:this.$Qa(this.Yc.BE)});this.Yc.O8 || d.push({error:"No default subtitle track.",foundTracks:this.$Qa(this.Yc.vj)});return d;};a.prototype.$Qa=function(d){return d && 0 < d.length?d.map(function(n){return n.trackId;}):"No tracks found.";};b.xbb=a;},28518:function(t,b,a){var n;function d(c){this.log=c;}Object.defineProperty(b,"__esModule",{value:!0});b.h5=void 0;n=a(6305);d.prototype.XPb=function(c,f){var g,e;g=this;if(!c)return (this.log.warn("There are no media streams for " + f.type + " track - " + f.trackId),[]);e=c.map(function(h){var k,l,m,p,r,q,u,v;v=new n.MediaStream(f,f.type,h.$g,h.bitrate,h.Pb,h.size,g.tpc(h.urls),h.Wr,h.rQa / h.qQa,h.xk,h.Mk);v.qQc(h.B_a,h.Bva,h.BYa,h.AYa);v.uPc(null !== (k=h.erb) && void 0 !== k?k:void 0,null !== (l=h.frb) && void 0 !== l?l:void 0,null !== (m=h.drb) && void 0 !== m?m:void 0,null !== (p=h.crb) && void 0 !== p?p:void 0,null !== (r=h.BYa) && void 0 !== r?r:void 0,null !== (q=h.AYa) && void 0 !== q?q:void 0);f.$r && (v.$r=f.$r);h.jQ && (v.jQ=null !== (u=h.jQ) && void 0 !== u?u:void 0);h.Wr && (v.Uc=h.Wr);return v;});e.sort(function(h,k){return h.bitrate - k.bitrate;});e.forEach(function(h,k){h.lower=e[k - 1];h.l9c=e[k + 1];});return e;};d.prototype.tpc=function(c){return c.reduce(function(f,g){f[g.Kg]=g.url;return f;},{});};b.h5=d;},71420:function(t,b,a){var n,c,f,g;function d(e,h,k,l){this.log=e;this.config=h;this.j=k;this.QYa=l;}Object.defineProperty(b,"__esModule",{value:!0});b.ohb=void 0;n=a(75568);c=a(22365);f=a(35128);g=a(14423);d.prototype.uHb=function(e,h){var k;k=this;h=h.map(function(l){var m,p,r,q;r=k.GUc(l);l.ay || !l.cf || r && 0 < r.length || k.log.error("track without downloadables",k.Eqc(l));q={};0 < r.length && (q=r[0],q.profile == n.Cr.NV && (q=k.MOc(r),!1));l=k.QYa(k.j,l.Ue,null !== (m=l.Ac) && void 0 !== m?m:-1,null !== (p=l.cf) && void 0 !== p?p:!0,e,q.ob,q.urls || [],l.language,l.xL,f.rja[l.aj.toLowerCase()] || f.Zu.UV,l.hU,l.variant,l.yM.toUpperCase(),q.profile,k.Rqc(q) || ({}),l.ay,l.Haa,l.Oqa,l.xA);k.log.trace("Transformed timed text track",l);return l;});this.log.trace("Transformed timed text tracks",{Count:h.length});return h;};d.prototype.lUc=function(e){var h,k;h=this;k=this.config.eQa;if(k){if(e=Ea(e.filter(function(l){return l.Ig == k || l.trackId == k;})).next().value)return e;}else if(this.j.Boa && (e=Ea(e.filter(function(l){return l.trackId == h.j.Boa;})).next().value))return e;};d.prototype.GUc=function(e){var h,k;h=this;k=e.Hsb;e=Object.entries(e.yI || ({})).map(function(l){var m;m=Ea(l);l=m.next().value;m=m.next().value;return {ob:k[l],profile:l,size:m.size || 0,priority:h.upc(l,m),offset:m.tWa || 0,NHc:m.width,RHb:m.height,urls:m.urls};});e.sort(function(l,m){return l.priority - m.priority;});return e;};d.prototype.upc=function(e,h){var k,l;k=this.config.NB.indexOf(e);h=h.size;l=this.config.u2;return e === n.Cr.Yza && 0 < l && h > l?this.config.NB.length + 1:0 <= k?k:this.config.NB.length;};d.prototype.Rqc=function(e){if(e.profile === n.Cr.NV)return {offset:e.offset,length:e.size,yo:{width:e.NHc,height:e.RHb}};};d.prototype.MOc=function(e){var h,k;h=this.config.mTa || g.XGa.zxb();k=Ea(e.filter(function(l){return l.profile === n.Cr.NV;}).filter(function(l){return l.RHb === h;})).next().value;if(k)return k;this.log.warn("none of the downloadables match the intended resolution",{screenHeight:c.dJ.height,intendedResolution:h});return e[0];};d.prototype.Eqc=function(e){return {isNone:e.ay,isForced:e.Haa,bcp47:e.language,id:e.Ue};};b.ohb=d;},6795:function(t,b){function a(d,n,c){this.log=d;this.j=n;this.S2a=c;}Object.defineProperty(b,"__esModule",{value:!0});b.Ihb=void 0;a.prototype.qHc=function(d){var n;n=this;d=(d || []).filter(function(c){return c.urls && 0 < c.urls.length;}).map(function(c){return n.S2a(n.j,c.id,c.height,c.width,c.QHc,c.RHc,c.size,c.xA,{unknown:c.urls[0]});});0 === d.length && this.log.warn("There are no trickplay tracks");d.sort(function(c,f){return c.size - f.size;});this.log.trace("Transformed trick play tracks",{Count:d.length});return d;};b.Ihb=a;},44858:function(t,b,a){var n,c,f,g;function d(e){return c.h5.call(this,e) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.oib=void 0;n=a(45266);c=a(28518);f=a(51344);g=a(35128);Ia(d,c.h5);d.prototype.sHc=function(e,h){var k,l;k=this;h=Ea((0,n.fM)(function(m){return m.streams && 0 < m.streams.length;},h));l=h.next().value;h.next().value.forEach(function(m){return k.log.warn("Video track is missing streams",{trackId:m.Ue});});h=l.map(function(m){var p,r;r=m.aj;r=Object.assign(Object.assign({},e),{type:f.Ln.video,trackId:m.Ue,aj:g.rja[r.toLowerCase()] || g.Zu.UV,yM:r,streams:[],Ki:{},Oua:m.Oua,Ac:null !== (p=m.Ac) && void 0 !== p?p:-1});r.streams=k.XPb(m.streams,r);k.log.trace("Transformed video track",{StreamCount:r.streams.length});return r;});if(!h.length)throw Error("No valid video tracks");this.log.trace("Transformed video tracks",{Count:h.length});return h;};d.prototype.eHc=function(e){var h;h=e.map(function(k){return k.Oua;}).filter(Boolean);h=[].concat.apply([],za(h)).map(function(k){return k.ma;});e=e.map(function(k){return k.Jsb;}).filter(Boolean).map(function(k){return k.ma;});return 0 < h.length?h:e;};b.oib=d;},81737:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.S=void 0;t=a(22674);d=a(99070);n=a(49745);c=a(704);f=a(3861);b.S=new t.Be(function(g){g(n.JV).to(d.lDa).sa();g(c.sbb).to(f.mDa);});},60042:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.rbb="ManifestEnricherSymbol";},17398:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.IV="ManifestFactorySymbol";},49745:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.JV="ManifestFetcherSymbol";},704:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.sbb="ManifestMigrationSymbol";},91622:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.a6a="BookmarkSymbol";},72516:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$5a="BookmarkConfigSymbol";},81364:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Z5a="BookmarkConfigParserSymbol";},66393:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.FP=void 0;t=a(22674);d=a(91622);n=a(72516);c=a(81364);f=a(63143);g=a(25293);e=a(12563);b.FP=new t.Be(function(h){h(d.a6a).to(f.sza).sa();h(n.$5a).to(g.qza).sa();h(c.Z5a).to(e.rza).sa();});},25293:function(t,b,a){var n,c;function d(f){this.config=f;}Object.defineProperty(b,"__esModule",{value:!0});b.qza=void 0;t=a(22970);n=a(22674);a=a(4203);d.prototype.eRa=function(){return this.XQ().n9b;};d.prototype.fRa=function(){return this.XQ().o9b;};d.prototype.eqc=function(){return this.XQ().p9b;};d.prototype.GQa=function(){return this.XQ().Fnb;};d.prototype.XQ=function(){return this.config();};c=d;b.qza=c;b.qza=c=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Hc))],c);},12563:function(t,b,a){var n,c,f;function d(g){this.ec=g;}Object.defineProperty(b,"__esModule",{value:!0});b.rza=void 0;t=a(22970);n=a(22674);c=a(42207);f=a(5021);d.prototype.OSc=function(g,e){var h,k;h=parseFloat(g);k=0;"%" === g[g.length - 1] && this.ec.Wo(h)?k=Math.round(h * e.na(f.ya) / 100):(g=parseInt(g),this.ec.q7(g) && (k=g));return (0,f.ic)(Math.min(k,e.na(f.ya)));};a=d;b.rza=a;b.rza=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Mi))],a);},63143:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m,p){this.Wla=l;this.ec=m;this.m9b=p;this.wa=k.wb("Bookmark");}Object.defineProperty(b,"__esModule",{value:!0});b.sza=void 0;t=a(22970);n=a(22674);c=a(72516);f=a(81364);g=a(87386);e=a(42207);h=a(5021);d.prototype.A6b=function(k){var l,m;l=k.qb.playbackState && k.qb.playbackState.currentTime;m=this.bpc(k.R);l=this.ec.tY(l)?(0,h.ic)(l):m;m=0;this.ec.Ci(l)?(this.wa.info("Overriding bookmark",{From:k.yE.na(h.ya),To:l.na(h.ya)}),l=Object.assign({},k,{yE:l})):l=k;return k.Bc.za && (m=k.Bc.rRa(k.yE.na(h.ya)),l=Object.assign({},l,{yE:(0,h.ic)(m.mq),jM:(0,h.ic)(m.jM)}),m=m.Irb,!k.Bc.CR())?(this.wa.trace("Do not apply bookmark ignore logic for ongoing LIVE events"),l.yE):l.yE.lUa()?(this.wa.trace("Ignoring bookmark because it's negative"),(0,h.ic)(m)):this.fvc(l)?(this.wa.trace("Ignoring bookmark because it's too close to beginning"),(0,h.ic)(m)):this.evc(l)?(this.wa.trace("Ignoring bookmark because it's too close to end"),(0,h.ic)(m)):this.dvc(l)?(this.wa.trace("Ignoring bookmark because it's too close to the end to start decoding"),(0,h.ic)(m)):l.yE;};d.prototype.fvc=function(k){return 0 > k.yE.Ml(this.eRa(k));};d.prototype.eRa=function(k){return this.Gnb(this.Wla.eRa(),k.jM);};d.prototype.evc=function(k){return 0 < k.yE.Ml(this.fRa(k));};d.prototype.fRa=function(k){var l;l=k.qb.Pg?this.Wla.eqc():this.Wla.fRa();return k.jM.ea(this.Gnb(l,k.jM));};d.prototype.dvc=function(k){return 0 < k.yE.Ml(this.Epc(k));};d.prototype.Epc=function(k){return k.jM.ea((0,h.ic)(k.dM));};d.prototype.bpc=function(k){var l;k=this.Wla.GQa()[k];l=-1;this.ec.Ft(k)?l=parseInt(k):this.ec.Wo(k) && (l=k);if(this.ec.q7(l))return (0,h.ic)(l);};d.prototype.Gnb=function(k,l){return this.m9b.OSc(k,l);};a=d;b.sza=a;b.sza=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(g.zb)),t.__param(1,(0,n.v)(c.$5a)),t.__param(2,(0,n.v)(e.Mi)),t.__param(3,(0,n.v)(f.Z5a))],a);},34029:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.s6a="CDMAttestedDescriptorProvider";},6498:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.Xnb=void 0;t=a(22674);d=a(34029);n=a(28419);b.Xnb=new t.Be(function(c){c(d.s6a).to(n.yza).sa();});},28419:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r,q,u,v,w){this.config=p;this.XL=q;this.profile=u;this.R2a=v;this.b8=w;this.Yub=!0;this.log=r.wb("CDMAttestedDescriptor");this.Xvb(l.ax.AO);}Object.defineProperty(b,"__esModule",{value:!0});b.yza=void 0;t=a(22970);n=a(22674);c=a(4203);f=a(87386);g=a(97996);e=a(70865);h=a(71501);k=a(2492);l=a(34231);m=a(24735);d.prototype.Xvb=function(p){var r;r=this;return this.R2a.WT(p)?this.config().Tjc?this.Vvb().then(function(q){return q?(!1,Promise.resolve(void 0)):r.zqc();}).then(function(q){return Promise.all([Promise.resolve(q),r.Vvb()]);}).then(function(q){var u;q=Ea(q);u=q.next().value;if(q.next().value)!1;else return u;}):this.XL().then(function(q){q.oS.nKb();}):Promise.resolve(void 0);};d.prototype.Vvb=function(){var p;p=this;return this.XL().then(function(r){if(p.Yub)(p.Yub=!1,r.oS.nKb());else return (r=r.oS.TK(p.profile)) && r.find(function(q){return "cad" === q.name;});});};d.prototype.zqc=function(){var p;p=this;this.gCb || (this.gCb=this.b8.$Ra(m.pr.XI).then(function(r){r.tl.close();return r.eMa;}).catch(function(r){p.log.error("Failed to generate challenge",r);}));return this.gCb;};a=d;b.yza=a;b.yza=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Hc)),t.__param(1,(0,n.v)(f.zb)),t.__param(2,(0,n.v)(g.m5)),t.__param(3,(0,n.v)(h.ZV)),t.__param(4,(0,n.v)(e.tja)),t.__param(5,(0,n.v)(k.Qga))],a);},97791:function(t,b,a){var n,c;function d(f){this.blc=f;this.OLb={J:"viewableId",Ua:"startTimeMs",fb:"endTimeMs",next:["next",{Bj:[c.Bj,{weight:"weight",Yd:"transitionType"}]}],Gc:"defaultNext",Ul:"exitZones",wp:"main",type:"type",Yd:"transitionType",playbackRate:"playbackRate",weight:"weight"};this.kIb={Gh:"mediaTypes",sf:"initialSegment",ba:["segments",{Bj:[c.Bj,Object.assign(Object.assign({},this.OLb),{next:["next",{Bj:[c.Bj,{weight:"weight",Yd:"transitionType",ZPb:"transitionHint",ddd:"skipRegionOffset",edd:"skipRegionWeight",ajc:"earliestSkipRequestOffset"}]}],ZPb:"transitionHint",ajc:"earliestSkipRequestOffset"})]}]};this.kDb={FP:"bookmark",Z$c:"manifestVersion",kQ:"drmType",f7c:"drmVersion",expiration:"expiration",R:"movieId",Gs:"packageId",duration:"duration",Xd:"playbackContextId",Q8:["defaultTrackOrderList",{N_:"mediaId",Sp:"videoTrackId",NOb:"subtitleTrackId",yv:"audioTrackId",Obd:"preferenceOrder"}],M_:["mediaEventTracks",{id:"id",profile:"profile",type:"type",qT:["relay_servers",{id:"id",k7:"address",port:"port"}],streams:["streams",{$g:"downloadable_id",urls:["urls",{Kg:"cdn_id",url:"url",y_:"liveOcaCapabilities"}]}]}],m7c:["eligibleABTestMap",{Bj:c.Bj}],p5c:["badgingInfo",{Z6c:"dolbyDigitalAudio",j9c:"hdrVideo",$6c:"dolbyVisionVideo",ied:"ultraHdVideo","3dVideo":"3dVideo",Y6c:"dolbyAtmosAudio",a5c:"assistiveAudio",Dcd:"sdVideo",h9c:"hdVideo",i9c:"hdr10PlusVideo"}],type:"type",pX:["audioTextShortcuts",{id:"id",yv:"audioTrackId",Ry:"textTrackId"}],Abd:"partiallyHydrated",MDb:"maxRecommendedAudioRank",NDb:"maxRecommendedTextRank",$r:"drmContextId",Cyb:"hasDrmProfile",buc:"hasClearProfile",YK:"hasDrmStreams",Opa:"hasClearStreams",Sj:["locations",{Ac:"rank",level:"level",weight:"weight",key:"key"}],links:["links",{}],Hk:["servers",{id:"id",name:"name",type:"type",Ac:"rank",YCb:"lowgrade",yic:["dns",{host:"host",fwc:"ipv4",gwc:"ipv6",nnc:"forceLookup"}],key:"key"}],Om:["audio_tracks",{type:"type",hU:"subType",variant:"variant",aj:"trackType",Ue:"new_track_id",jt:"track_id",fKc:"profileType",oSc:"stereo",profile:"profile",channels:"channels",language:"language",Fac:"channelsFormat",Zea:"surroundFormatLabel",xL:"languageDescription",pic:"disallowedSubtitleTracks",Mrb:"defaultTimedText",isNative:"isNative",ay:"isNoneTrack",u5c:"bitrates",V6b:"allowedVideoTrackId",qT:["relay_servers",{id:"id",k7:"address",port:"port"}],streams:["streams",{$g:"downloadable_id",size:"size",Wr:"content_profile",aj:"trackType",bitrate:"bitrate",xk:"isDrm",urls:["urls",{Kg:"cdn_id",url:"url",y_:"liveOcaCapabilities"}],tS:"new_stream_id",type:"type",channels:"channels",Fac:"channelsFormat",Zea:"surroundFormatLabel",language:"language",f5c:"audioKey",RCc:["moov",{size:"size",offset:"offset"}],Ao:["sidx",{size:"size",offset:"offset"}],MRc:["ssix",{size:"size",offset:"offset"}],Mk:"tags",GMc:"representationId",Hna:["ellaChannels",{ce:"channelName",zob:"channel_id",kMb:"sendrate",Tna:"bitrate",iub:"fecLevel",Rpb:"containsFullData",yTc:"symmetric_key",KDc:"nonces"}]}],f8:"codecName",yM:"rawTrackType",id:"id",Ac:"rank",cf:"hydrated",BEc:"offTrackDisallowed"}],jm:["video_tracks",{aj:"trackType",Ue:"new_track_id",type:"type",jt:"track_id",Cyb:"hasDrmProfile",buc:"hasClearProfile",YK:"hasDrmStreams",Opa:"hasClearStreams",groupName:"groupName",qT:["relay_servers",{id:"id",k7:"address",port:"port"}],streams:["streams",{$g:"downloadable_id",size:"size",Wr:"content_profile",aj:"trackType",jQ:"drmHeaderId",bitrate:"bitrate",xk:"isDrm",urls:["urls",{Kg:"cdn_id",url:"url",y_:"liveOcaCapabilities"}],tS:"new_stream_id",type:"type",Cbd:"peakBitrate",jic:"dimensionsCount",kic:"dimensionsLabel",BYa:"pix_w",AYa:"pix_h",B_a:"res_w",Bva:"res_h",erb:"crop_x",frb:"crop_y",drb:"crop_w",crb:"crop_h",rQa:"framerate_value",qQa:"framerate_scale",TNb:"startByteOffset",Pb:"vmaf",RCc:["moov",{size:"size",offset:"offset"}],Ao:["sidx",{size:"size",offset:"offset"}],MRc:["ssix",{size:"size",offset:"offset"}],NT:["segmentVmaf",{offset:"offset",Pb:"vmaf"}],Mk:"tags",GMc:"representationId",Hna:["ellaChannels",{ce:"channelName",zob:"channel_id",kMb:"sendrate",Tna:"bitrate",iub:"fecLevel",Rpb:"containsFullData",yTc:"symmetric_key",KDc:"nonces"}]}],fKc:"profileType",oSc:"stereo",profile:"profile",jic:"dimensionsCount",kic:"dimensionsLabel",hdd:["snippets",{Bj:[c.Bj,{gdd:"snippetSpec",Ua:"startTimeMs",fb:"endTimeMs"}]}],Jsb:["drmHeader",{ma:"bytes",hbc:"checksum",jQ:"drmHeaderId",NA:"keyId",yo:["resolution",{height:"height",width:"width"}]}],Oua:["prkDrmHeaders",{ma:"bytes",hbc:"checksum",jQ:"drmHeaderId",NA:"keyId",yo:["resolution",{height:"height",width:"width"}]}],$t:"flavor",z9c:"ict",maxWidth:"maxWidth",maxHeight:"maxHeight",VHb:"pixelAspectX",WHb:"pixelAspectY",had:"maxCroppedWidth",gad:"maxCroppedHeight",iad:"maxCroppedX",jad:"maxCroppedY",Mba:"max_framerate_value",Lba:"max_framerate_scale",minWidth:"minWidth",minHeight:"minHeight",Gad:"minCroppedWidth",Fad:"minCroppedHeight",Had:"minCroppedX",Iad:"minCroppedY",cf:"hydrated",Ac:"rank",qu:["license",{Qyc:"licenseResponseBase64",Xbd:"providerSessionToken",Icd:"secureStopExpected",e7c:"drmSessionId",d7c:"drmGroupId",links:["links",{}]}]}],Xz:["cdnResponseData",{PT:"sessionABTestCell",Jf:"pbcid"}],Sr:["choiceMap",Object.assign(Object.assign({},this.kIb),{type:"type",J:"viewableId",Yd:"transitionType",ZPb:"transitionHint",JWc:"uxlabel",wbd:["parallelGraphs",{Bj:[c.Bj,this.kIb]}]})],OC:["contentPlaygraph",{Z:["playgraph",{sf:"initialSegment",Yd:"transitionType",JWc:"uxlabel",ba:["segments",{Bj:[c.Bj,this.OLb]}]}],jdd:["startIdent",{A9c:"identToken",J:"viewableId"}]}],media:["media",{id:"id",ka:["tracks",{X:"AUDIO",Ca:"TEXT",U:"VIDEO"}]}],sB:["recommendedMedia",{Sp:"videoTrackId",yv:"audioTrackId",Ty:"timedTextTrackId"}],ht:["timedtexttracks",{aj:"trackType",Ue:"new_track_id",type:"type",hU:"subType",variant:"variant",yM:"rawTrackType",xL:"languageDescription",language:"language",id:"id",ay:"isNoneTrack",Haa:"isForcedNarrative",Hsb:["downloadableIds",{}],aed:"trackVariant",u7c:"encodingProfileNames",V6b:"allowedVideoTrackId",N5c:["cdnlist",{id:"id",name:"name",type:"type",Ac:"rank",YCb:"lowgrade",yic:["dns",{host:"host",fwc:"ipv4",gwc:"ipv6",nnc:"forceLookup"}],key:"key"}],yI:["ttDownloadables",{Bj:[c.Bj,{id:"id",size:"size",Fdd:"textKey",g9c:"hashValue",f9c:"hashAlgo",R9c:"isImage",tWa:"midxOffset",lEb:"midxSize",height:"height",width:"width",zOa:["downloadUrls",{}],urls:["urls",{url:"url",Kg:"cdn_id",y_:"liveOcaCapabilities"}]}]}],Oqa:"isLanguageLeftToRight",xA:"headIdentDuration",Ac:"rank",cf:"hydrated"}],AU:["trickplays",{$g:"downloadable_id",size:"size",urls:"urls",id:"id",interval:"interval",RHc:"pixelsAspectY",QHc:"pixelsAspectX",width:"width",height:"height",xA:"headIdentDuration",C9c:"imageCount"}],lSb:["watermarkInfo",{opacity:"opacity",id:"id",anchor:"anchor"}],c7c:"dpsid",Pg:"isBranching",Ged:"viewableType",qs:"isAd",l_:"isSupplemental",Kbc:"clientIpAddress",ned:"urlExpirationDuration",U$c:"manifestExpirationDuration",qE:["steeringAdditionalInfo",{mdd:"steeringId",M4c:"additionalGroupNames",O1a:["streamingClientConfig",{}],aN:["stickySteeringMetadata",{JA:"isSteeringSticky",Mwa:"stickySteeringToken"}],wRc:"slowInitialBufferingSignal",rVa:"liveEdgeCushionWithSpreadMs"}],Hb:"auxiliaryManifestToken",Ji:["liveMetadata",{Bna:["downloadableIdToSegmentTemplateId",{Bj:c.Bj}],LT:["segmentTemplateIdToSegmentTemplate",{Bj:[c.Bj,{CP:"availabilityStartTime",Pvc:"initialization",media:"media",kJc:"presentationTimeOffset",XNb:"startNumber",duration:"duration",O:"timescale"}]}],zEc:"ocLiveWindowDurationSeconds",boa:"eventAvailabilityOffsetMs",z9:"eventStartTime",CQ:"eventEndTime",nsb:"disableLiveUi",maxBitrate:"maxBitrate",CP:"availabilityStartTime",vOc:"segmentAvailabilityWindowSeconds"}],L_:["mediaEventHistory",{O:"timescale",a9b:"baseTimeMs",Egc:"cutoffTimeMs",po:["mediaEvents",{type:"type",id:"id",timestamp:"timestamp",duration:"duration",zo:"segmentationTypeId",eb:"adBreakTriggerId",Ej:"applicationScope"}]}],Yf:"streamingType",y2a:["timecodeAnnotations",{Ukc:"endOffsetMs",Jea:"startOffsetMs",type:"type"}],FIb:"prefetchTtl",lq:"auxiliaryManifests",Hd:"adverts",kTa:"ignoreUserTextPreferences"};this.klb={fw:"locationMs",Xk:"adBreakToken",eb:"adBreakTriggerId",FY:"embedded",SIc:"prefetchWindowOffsetMs",VJb:"refreshCache",RIc:"prefetchWindowDurationMs",Un:"autoSkip",N2:["uxDisplay",{HRb:"uxIndication",Nxa:"uxPlayerControl"}],Kb:["ads",{id:"id",Ua:"startTimeMs",fb:"endTimeMs",nxa:["timedAdEvents",{event:"event",tx:"adEventToken",Np:"timeMs"}],QF:["actionAdEvents",{start:["start",{event:"event",tx:"adEventToken"}],complete:["complete",{event:"event",tx:"adEventToken"}],stop:["stop",{event:"event",tx:"adEventToken"}]}],Un:"autoSkip",c_:"is3pVerificationEnabled",q2:"thirdPartyVerificationToken",$2a:["uiComponent",{K4c:"adImpressionMetadataId",hed:"uiToken",ged:"uiLoadDelayMaxMs"}]}],NJ:["actionAdBreakEvents",{complete:["complete",{event:"event",tx:"adEventToken"}],start:["start",{event:"event",tx:"adEventToken"}],stop:["stop",{event:"event",tx:"adEventToken"}]}],qX:"auditPingUrl"};this.F6b={lb:["adBreaks",this.klb],qX:"auditPingUrl",dLb:"retainAdBreaks",a7:["adBreakCacheUpdates",{Bj:[c.Bj,{action:"action",Ra:["adBreak",this.klb]}]}],Hj:"daiSupported",Lrb:"defaultPrefetchWindowDurationMs",lhc:"defaultPrefetchWindowOffsetMs",Nvc:"initialPrefetchWindowDurationMs",Ovc:"initialPrefetchWindowOffsetMs",cGc:"orderedAdBreakTriggerIds"};this.KAc=Object.assign(Object.assign({},this.kDb),{lq:["auxiliaryManifests",this.kDb],Hd:["adverts",this.F6b]});}Object.defineProperty(b,"__esModule",{value:!0});b.jDa=void 0;t=a(22970);n=a(22674);c=a(90030);d.prototype.VY=function(f){this.blc.VY(f,this.KAc);};a=d;b.jDa=a;b.jDa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.F8a))],a);},47930:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p){this.oCb=l;this.JAc=m;this.LAc=p;}Object.defineProperty(b,"__esModule",{value:!0});b.kDa=void 0;t=a(22970);n=a(22674);c=a(81025);f=a(60042);g=a(31149);e=a(36129);h=a(91176);a=a(704);d.prototype.create=function(l){var m,p,r,q;m=this;if(l && !this.Zwc(l)){if(this.dxc(l))throw g.re.RXc(e.da.pO,e.Y.D0b,l);this.LAc.forEach(function(u){var v;u.mEb(l);null === (v=l.auxiliaryManifests) || void 0 === v?void 0:v.forEach(function(w){u.mEb(w);});});(0,h.jLb)(l,h.rDb);q=this.oCb();q.pKa(l.links);this.JAc.VY(l);return {Aa:l,vp:q,eUa:!1,lq:null !== (r=null === (p=l.lq) || void 0 === p?void 0:p.map(function(u){var v;v=m.oCb();v.pKa(u.links);return {Aa:u,vp:v,eUa:!1,lq:[]};})) && void 0 !== r?r:[]};}};d.prototype.dxc=function(l){return ("type" in l) && "muxed" === l.type;};d.prototype.Zwc=function(l){return ("runtime" in l) && !!l.runtime;};k=d;b.kDa=k;b.kDa=k=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Pdb)),t.__param(1,(0,n.v)(f.rbb)),t.__param(2,(0,n.FH)(a.sbb))],k);},99070:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;function d(x,y,A,z,B,C,D){this.wi=y;this.IAc=z;this.config=B;this.zba=C;this.Ma=D;this.uda=new Map();this.log=x.wb("ManifestFetcher");this.cg=A.cg;}Object.defineProperty(b,"__esModule",{value:!0});b.lDa=void 0;n=a(22970);t=a(22674);c=a(81918);f=a(30869);g=a(31149);e=a(87386);h=a(5021);k=a(4203);l=a(72639);m=a(91176);p=a(18148);r=a(17398);q=a(13044);u=a(17612);v=a(21103);w=a(31276);d.prototype.kp=function(x,y,A,z){var B;B=this;A=void 0 === A?!0:A;z && this.$5b(x.J,z);return A && this.Yv(x.J)?this.c$(x.J).catch(function(){return B.BKb(x,y,A);}):this.BKb(x,y,A);};d.prototype.Yv=function(x){return this.cg.V$(x,"manifest");};d.prototype.NIb=function(){var x;x=this;this.cg.YPc();setTimeout(function(){x.cg.xNc();},1);};d.prototype.fU=function(x,y){var A,z;A=this;if(this.config().pkc){z=y?Promise.resolve(y):void 0;this.cg.setData(x,"manifest",y,function(){return A.Itc(x,z);});null === z || void 0 === z?void 0:z.then(function(B){var C,D;(0,q.nFa)() && (null === (D=null === (C=B.Aa.qE) || void 0 === C?void 0:C.aN) || void 0 === D?0:D.JA) && A.cg.NQb(x,"manifest",void 0,p.lab);}).catch(function(){});}};d.prototype.c$=function(x,y){var A;A=this;y=void 0 === y?!1:y;return this.cg.getData(x,"manifest").then(function(z){var B;if(!z)throw Error("Manifest not found");if(z.Aa.expiration <= A.Ma.hI.na(h.ya))throw (A.cg.clearData(x,"manifest"),Error("Manifest has expired"));B=z.Aa.Yf;if(!y && (0,m.GA)(B) && z.F3a)throw Error("Cached live manifest not available for reuse");return z;});};d.prototype.Itc=function(x,y){var A;null === (A=this.uda.get(x)) || void 0 === A?void 0:A.forEach(function(z){return z(y);});this.uda.delete(x);};d.prototype.$5b=function(x,y){this.uda.has(x) || this.uda.set(x,[]);this.uda.get(x).push(y);};d.prototype.BKb=function(x,y,A){return n.__awaiter(this,void 0,void 0,function B(){var C,D,F,H,E,G,J,L,K,M,P,I;C=this;return Ua(B,function(O){switch(O.Ds){case 1:D=C;C.log.trace("Requesting a new manifest",x.J);J=C.wi.yc().na(h.ya);if(!(A && C.config().WOa && C.Yv(x.J))){O.Ds=2;break;}O.LX=3;return cb(O,C.c$(x.J,!0),5);case 5:L=O.TU;K=L.Aa.Yf;(0,m.GA)(K) && L.F3a && (x.Yv=!0);Cb(O);break;case 3:kb(O);case 2:if(M=(0,q.nFa)())x.Mwa=null === (E=null === (H=null === (F=M.S) || void 0 === F?void 0:F.Aa.qE) || void 0 === H?void 0:H.aN) || void 0 === E?void 0:E.Mwa;P=function(){return D.IAc.Se({log:D.log,JJ:y,J:x.J},x).catch(function(Q){if(L)return L;throw Q;});};I=((null === (G=x.ue) || void 0 === G?0:G.fd) && !x.ue.Xk && !x.ue.eb?C.bVc(x).catch(function(Q){D.log.warn(Q.message);return P();}):P()).then(function(Q){var T,U,X,Y,W;if(!(!Q.uG || null !== (T=x.ue) && void 0 !== T && T.Xk || null !== (U=x.ue) && void 0 !== U && U.eb)){W=Q.uG;T={iwa:Promise.resolve(W),mVa:{source:"manifest",type:x.Hi}};delete Q.uG;U=(0,q.nFa)() && (null === (Y=null === (X=Q.Aa.qE) || void 0 === X?void 0:X.aN) || void 0 === Y?0:Y.JA)?p.lab:void 0;D.cg.setData(x.J,"ldl",T,function(){W.close().catch(function(Z){D.log.info("Unable to cleanup LDL session.",Z);});},void 0,U);}x.$t === l.Wp.u5 && (Q.zT=J,Q.q1=D.wi.yc().na(h.ya));return Q;}).then(function(Q){return D.sZa(Q);}).catch(function(Q){A && D.fU(x.J,void 0);D.log.error("Failed to fetch manifest",g.re.jj(Q));throw Q;});A && C.fU(x.J,I);return O.return(I);}});});};d.prototype.bVc=function(x){var y;y=this;return new Promise(function(A,z){var B,C,D,F,H;y.log.trace("Trying to retrieve an auxiliary manifest from parent manifest",x.J);F=null === (B=x.ue) || void 0 === B?void 0:B.Fca;if(!F)return z(Error("Parent manifest does not exist."));H=null === (C=x.ue) || void 0 === C?void 0:C.Hb;B=null === (D=F.lq) || void 0 === D?void 0:D.find(function(E){return E.R === x.J && (void 0 === H || E.Hb === H);});if(!B)return z(Error("Auxiliary manifest not found in parent manifest."));A(y.zba.create(B));});};d.prototype.sZa=function(x){var y,A;y=this;return this.config().msb && (null === (A=x.Aa.Hd) || void 0 === A?0:A.Hj)?w.Xa.get(v.lz).TG().then(function(z){u.mb.g_(z.gy) && (y.log.info("Force disabling daiSupported for HWDRM"),x.Aa.Hd.Hj=!1);return x;}):Promise.resolve(x);};a=d;b.lDa=a;b.lDa=a=n.__decorate([(0,t.aa)(),n.__param(0,(0,t.v)(e.zb)),n.__param(1,(0,t.v)(c.fe)),n.__param(2,(0,t.v)(p.Eza)),n.__param(3,(0,t.v)(l.QEa)),n.__param(4,(0,t.v)(k.Hc)),n.__param(5,(0,t.v)(r.IV)),n.__param(6,(0,t.v)(f.Li))],a);},3861:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.mDa=void 0;t=a(22970);a=a(22674);d.prototype.mEb=function(c){var f,g,e;if("v3" !== c.manifestVersion && void 0 !== c.timedtexttracks && void 0 !== c.audio_tracks && void 0 !== c.video_tracks){f=c.timedtexttracks.reduce(function(h,k){h[k.id]=k.new_track_id;k.id=k.new_track_id;return h;},{});g=c.audio_tracks.reduce(function(h,k){h[k.id]=k.new_track_id;k.id=k.new_track_id;k.track_id=k.new_track_id;return h;},{});e=c.video_tracks.reduce(function(h,k){h[k.track_id]=k.new_track_id;k.track_id=k.new_track_id;return h;},{});c.audio_tracks.forEach(function(h){h.disallowedSubtitleTracks=h.disallowedSubtitleTracks.map(function(k){return f[k];});h.defaultTimedText && (h.defaultTimedText=f[h.defaultTimedText]);});c.defaultTrackOrderList && (c.defaultTrackOrderList=c.defaultTrackOrderList.map(function(h){return Object.assign(Object.assign({},h),{videoTrackId:e[h.videoTrackId],subtitleTrackId:f[h.subtitleTrackId],audioTrackId:g[h.audioTrackId]});}));}};n=d;b.mDa=n;b.mDa=n=t.__decorate([(0,a.aa)()],n);},16520:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.Pk={};t[t.Dwa=1]="sourceopen";t[t.Wt=2]="currentTimeChanged";t[t.eea=3]="seeked";t[t.lCb=5]="licenseadded";t[t.MNb=6]="sourceBufferAdded";t[t.kbd=7]="onNeedKey";t[t.GJb=8]="readyStateChanged";},12653:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.QEb=void 0;t=a(22674);d=a(21801);n=a(59586);b.QEb=new t.Be(function(c){c(d.MDa).to(n.LDa).sa();});},21801:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.MDa=b.zYb=void 0;b.zYb=function(){};b.MDa="MseConfigSymbol";},59586:function(t,b,a){var n,c,f,g,e;function d(h){return c.Qf.call(this,h,"MseConfigImpl") || this;}Object.defineProperty(b,"__esModule",{value:!0});b.LDa=void 0;t=a(22970);n=a(12501);c=a(64174);f=a(22674);g=a(83767);e=a(5021);Ia(d,c.Qf);Ha.Object.defineProperties(d.prototype,{CEb:{configurable:!0,enumerable:!0,get:function(){return (0,e.ic)(5E3);}},GGb:{configurable:!0,enumerable:!0,get:function(){return (0,e.ic)(1E3);}},HGb:{configurable:!0,enumerable:!0,get:function(){return (0,e.ic)(1E3);}}});a=d;b.LDa=a;t.__decorate([n.config(n.ro,"minDecoderBufferMilliseconds")],a.prototype,"CEb",null);t.__decorate([n.config(n.ro,"optimalDecoderBufferMilliseconds")],a.prototype,"GGb",null);t.__decorate([n.config(n.ro,"optimalDecoderBufferMillisecondsBranching")],a.prototype,"HGb",null);b.LDa=a=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(g.Po))],a);},7826:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.XL=void 0;t=a(22674);d=a(50681);n=a(63390);c=a(97996);b.XL=new t.Be(function(f){f(d.PDa).to(n.ODa).sa();f(c.m5).tfa(function(g){return function(){return g.Ib.get(d.PDa).aDc;};});});},97996:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.m5="MslProviderSymbol";},50681:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.PDa="MslReadyNotifierSymbol";},63390:function(t,b,a){var n;function d(){var c;c=this;this.ready=!1;this.aDc=new Promise(function(f){c.lNc=f;});}Object.defineProperty(b,"__esModule",{value:!0});b.ODa=void 0;t=a(22970);a=a(22674);d.prototype.bDc=function(c){this.ready || (this.lNc(c),this.ready=!0);};d.prototype.ws=function(){return this.ready;};n=d;b.ODa=n;b.ODa=n=t.__decorate([(0,a.aa)()],n);},30698:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperty(b,"__esModule",{value:!0});b.dFb=void 0;t=a(22674);d=a(76698);n=a(32934);c=a(81438);f=a(59806);g=a(21941);e=a(55823);h=a(27E3);k=a(2571);l=a(17559);b.dFb=new t.Be(function(m){m(c.Iib).to(d.NHa).sa();m(n.bC).jN(function(){return Ba._cad_global.http;});m(g.Bcb).to(f.ZDa).sa();m(e.Ccb).Pp(h.default);m(k.X9a).to(l.LBa).sa();});},2571:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.X9a="HttpDispatcherSymbol";},32934:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.bC=b.q5=b.ResponseType=void 0;b.ResponseType={Text:1,q4c:2,OTb:3};b.q5="OPEN_CONNECT_APPLIANCE";b.bC="LegacyHttpSymbol";},55823:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Ccb="NetworkMonitorSymbol";},48004:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Acb="NetworkMonitorConfigSymbol";},21941:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Bcb="NetworkMonitorFactorySymbol";},81438:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Iib="XhrFactorySymbol";},17559:function(t,b,a){var n,c,f;function d(g,e){this.Ke=e;this.wa=g.wb("HttpDispatcherImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.LBa=void 0;t=a(22970);n=a(22674);c=a(87386);a=a(32934);d.prototype.download=function(g,e){var h;h=this;e=void 0 === e?{I_:0}:e;return new Promise(function(k,l){var p;function m(r){if(r.success)return k(r.content);if(p === e.I_)return l({Ta:r.Ta,wk:r.ds});p++;!1;h.Ke.download(g,m);}p=0;h.Ke.download(g,m);});};f=d;b.LBa=f;b.LBa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(a.bC))],f);},40158:function(t,b,a){var n,c,f,g;function d(e,h){return f.Qf.call(this,e,void 0 === h?"NetworkMonitorConfigImpl":h) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.YDa=void 0;t=a(22970);n=a(22674);c=a(12501);f=a(64174);a=a(83767);Ia(d,f.Qf);Ha.Object.defineProperties(d.prototype,{vRb:{configurable:!0,enumerable:!0,get:function(){return !0;}}});g=d;b.YDa=g;t.__decorate([c.config(c.pd,"useNetworkMonitor")],g.prototype,"vRb",null);b.YDa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Po)),t.__param(1,(0,n.v)(a.Tga)),t.__param(1,(0,n.optional)())],g);},59806:function(t,b,a){var n,c,f,g;function d(e,h,k){this.config=e;this.eAc=h;this.bd=k;}Object.defineProperty(b,"__esModule",{value:!0});b.ZDa=void 0;t=a(22970);n=a(48004);c=a(22674);f=a(48159);a=a(55823);d.prototype.Kfc=function(){if(this.config.vRb)return this.bd(this.eAc());};g=d;b.ZDa=g;b.ZDa=g=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(n.Acb)),t.__param(1,(0,c.v)(f.tcb)),t.__param(2,(0,c.v)(a.Ccb))],g);},76698:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.NHa=void 0;t=a(22970);a=a(22674);d.prototype.create=function(){return new XMLHttpRequest();};n=d;b.NHa=n;b.NHa=n=t.__decorate([(0,a.aa)()],n);},31360:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u;Object.defineProperty(b,"__esModule",{value:!0});b.CHb=void 0;t=a(22674);d=a(30650);n=a(71976);c=a(7605);f=a(17705);g=a(31071);e=a(91918);h=a(81025);k=a(23632);l=a(15348);m=a(17108);p=a(82229);r=a(97361);q=a(17391);u=a(85432);b.CHb=new t.Be(function(v){v(c.oz).to(f.GEa).sa();v(d.Ldb).to(n.HEa).sa();v(h.Qdb).to(k.NEa);v(h.Pdb).Zf(function(w){return function(){return w.Ib.get(h.Qdb);};});v(g.Ydb).to(e.bFa).sa();v(l.aFa).to(m.$Ea).sa();v(p.Jib).to(r.OHa).sa();v(q.Hdb).to(u.BEa).sa();});},7605:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.oz="PboConfigSymbol";},30650:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Ldb="PboDispatcherSymbol";},81025:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Qdb="PboLinksManagerSymbol";b.Pdb="PboLinksManagerFactorySymbol";},15348:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.aFa="PboPublisherSymbol";},31071:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Ydb="PboRequestFactorySymbol";},82229:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Jib="ZuulRetryPolicyParserSymbol";},49917:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Dya="AdEventPboCommandSymbol";b.Bya="AdBreakEventPboCommandSymbol";},18880:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da;Object.defineProperty(b,"__esModule",{value:!0});b.Apb=void 0;t=a(22674);d=a(40953);n=a(30543);c=a(72639);f=a(86563);g=a(81378);e=a(13158);h=a(16257);k=a(46303);l=a(829);m=a(45830);p=a(87607);r=a(84860);q=a(35329);u=a(31149);v=a(36129);w=a(25546);x=a(69740);y=a(22503);A=a(52137);z=a(88951);B=a(83998);C=a(54949);D=a(62898);F=a(15153);H=a(70285);E=a(76427);G=a(36642);J=a(15614);L=a(95738);K=a(82306);M=a(7605);P=a(67658);I=a(3035);O=a(46320);Q=a(595);T=a(49917);U=a(49449);X=a(41332);Y=a(20424);W=a(36475);Z=a(25743);aa=a(70885);ca=a(54861);da=a(21015);b.Apb=new t.Be(function(ha){ha(B.Mn).to(C.FEa);ha(ca.KGa).to(aa.JGa).sa();ha(da.ija).to(da.IGa).sa();ha(d.Rdb).to(n.OEa);ha(D.Idb).to(F.CEa);ha(H.Jdb).to(E.DEa);ha(c.QEa).to(f.PEa);ha(P.Sdb).Zf(function(S){return function(){var N;N=S.Ib.get(M.oz);return N && N.ARb?S.Ib.resolve(O.cFa):S.Ib.resolve(I.REa);};});ha(g.zEa).to(e.yEa);ha(h.Odb).to(k.KEa);ha(l.MEa).to(m.LEa);ha(p.Mgb).to(r.PGa);ha(p.Rgb).to(q.TGa);ha(p.aab).to(w.lCa);ha(p.Jgb).to(x.NGa);ha(p.Edb).to(y.xEa);ha(p.Lfb).to(A.iGa);ha(p.D8a).to(z.TAa);ha(J.s_b).to(G.SEa);ha(W.Gdb).to(Z.AEa);ha(L.Ndb).to(K.JEa);ha(T.Dya).to(Q.Cya);ha(T.Bya).to(U.Aya);ha(p.YAa).Zf(function(S){return function(N){switch(N){case p.Ko.start:return S.Ib.get(p.Mgb);case p.Ko.stop:return S.Ib.get(p.Rgb);case p.Ko.cra:return S.Ib.get(p.aab);case p.Ko.splice:return S.Ib.get(p.Jgb);case p.Ko.pause:return S.Ib.get(p.Edb);case p.Ko.resume:return S.Ib.get(p.Lfb);case p.Ko.TY:return S.Ib.get(p.D8a);}throw new u.re(v.da.AZb,void 0,void 0,void 0,void 0,"The event key was invalid - " + N);};});ha(X.vbb).to(Y.CCa);});},87607:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Ko={start:"start",stop:"stop",cra:"keepAlive",TY:"engage",splice:"splice",pause:"pause",resume:"resume"};b.YAa="EventPboCommandFactorySymbol";b.Mgb="StartEventPboCommandSymbol";b.Rgb="StopEventPboCommandSymbol";b.aab="KeepAliveEventPboCommandSymbol";b.Jgb="SpliceEventPboCommandSymbol";b.D8a="EngageEventPboCommandSymbol";b.Edb="PauseEventPboCommandSymbol";b.Lfb="ResumeEventPboCommandSymbol";},41332:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.vbb="ManifestPostProcessorSymbol";},81378:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.zEa=b.b5a=void 0;b.C_b=["prefetch/license","prefetch/license/live","prefetch/license/linear"];b.CXb=["license","license/live","license/linear"];b.b5a=[].concat(za(b.C_b),za(b.CXb));b.zEa="PboAcquireLicenseCommandSymbol";},36475:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Gdb="AleProvisionCommand";},17391:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Hdb="PboBackoffManagerSymbol";},62898:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Idb="PboBindCommandSymbol";},70285:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Jdb="PboBindDeviceCommandSymbol";},19114:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.dj={ZR:"logblob",S:"manifest",Syc:"licensedmanifest",qu:"license",events:"events",bind:"bind",ping:"ping",config:"config",Qbd:"prefetchLiveAds",EKa:"aleProvision"};b.Z_b={Efb:"X-Netflix.Request.Id",Dfb:"X-Netflix.Request.Attempt",hGa:"X-Netflix.Client.Request.Name",j6a:"x-netflix.browsername",k6a:"x-netflix.browserversion",Tcb:"x-netflix.osname",Ucb:"x-xetflix.osversion",T6a:"x-netflix.clienttype",Nhb:"x-netflix.uiversion"};b.hC={Efb:"reqId",Dfb:"reqAttempt",hGa:"reqName",j6a:"browsername",k6a:"browserversion",Tcb:"osname",Ucb:"osversion",T6a:"clienttype",Nhb:"uiversion",qYb:"mainContentViewableId"};},83998:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Mn="PboCommandContextSymbol";},95738:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Ndb="PboGenerateScreenshotsCommandSymbol";},16257:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Odb="PboLicenseRequestTransformerSymbol";},829:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.MEa="PboLicenseResponseTransformerSymbol";},40953:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Rdb="PboLogblobCommandSymbol";},72639:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.QEa=b.c5a=void 0;t=b.Wp={};t.u5="PRE_FETCH";t.M_b="QC";t.yr="STANDARD";t.bja="SUPPLEMENTAL";t.e_c="DOWNLOAD";b.D_b=("prefetch/licensedManifest prefetch/manifest prefetch/licensedManifest/live prefetch/manifest/live prefetch/licensedManifest/ad prefetch/manifest/ad prefetch/licensedManifest/live/ad prefetch/manifest/live/ad").split(" ");b.tYb=("licensedManifest manifest licensedManifest/live manifest/live adBreakHydration adBreakHydration/live prefetchLiveAds licensedManifest/ad manifest/ad licensedManifest/live/ad manifest/live/ad adBreakHydration/ad adBreakHydration/live/ad prefetchLiveAds/ad").split(" ");b.c5a=[].concat(za(b.D_b),za(b.tYb));b.QEa="PboManifestCommandSymbol";},67658:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Sdb="PboManifestRequestTransformerSymbol";},15614:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.s_b="PboPingCommandSymbol";},49449:function(t,b,a){var n,c,f,g,e,h;function d(k){return g.bj.call(this,k,c.da.h4a) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.Aya=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(19114);g=a(51658);e=a(83998);a(2762);h=a(71977);Ia(d,g.bj);d.prototype.gR=function(k){var l;l=(0,h.gSa)(k.Yf);return f.dj.events + "/" + l + k.event;};d.prototype.Se=function(k,l){var m,p,r;m=this;p=this.IP(l);!1;!1;r={url:l.href,name:f.dj.events,pl:this.gR(l),xn:2};return this.send(k,r,p).then(function(){return l;}).catch(function(q){throw m.Sv(q);});};d.prototype.IP=function(k){return {xid:k.Ha,event:k.event,adEventToken:k.tx,adBreakTriggerId:k.eb,adBreakLocationMs:k.pv,eventLocationMs:k.DG,adInsertionType:k.eKa,position:k.position,clientTime:k.jG,sessionStartTime:k.Ik,appId:k.appId,sessionId:k.sessionId,playTimes:{},adBreakStartTime:k.$Ja,playbackOffsetRefAdBreakStart:k.Rca,adBreakStartOffset:k.ZJa,mainManifestPlaybackContextId:k.OVa,embeddedReason:k.Zm};};a=d;b.Aya=a;b.Aya=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(e.Mn))],a);},595:function(t,b,a){var n,c,f,g,e,h;function d(k){return g.bj.call(this,k,c.da.h4a) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.Cya=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(19114);g=a(51658);e=a(83998);a(2762);h=a(71977);Ia(d,g.bj);d.prototype.gR=function(k){var l;l=(0,h.gSa)(k.Yf);return f.dj.events + "/" + l + k.event;};d.prototype.Se=function(k,l){var m,p,r;m=this;p=this.IP(l);!1;!1;r={url:l.href,name:f.dj.events,pl:this.gR(l),xn:2};return this.send(k,r,p).then(function(){return l;}).catch(function(q){throw m.Sv(q);});};d.prototype.IP=function(k){return {xid:k.Ha,event:k.event,adEventToken:k.tx,adBreakTriggerId:k.eb,adBreakLocationMs:k.pv,eventLocationMs:k.DG,adInsertionType:k.eKa,position:k.position,adStartPosition:k.gKa,clientTime:k.jG,sessionStartTime:k.Ik,appId:k.appId,sessionId:k.sessionId,playTimes:this.JLa(k.hB),mainManifestPlaybackContextId:k.OVa,thirdPartyAdVerificationMetadata:k.XTc,embeddedReason:k.Zm};};d.prototype.JLa=function(k){return {total:k.total,audio:k.audio.map(function(l){return {duration:l.duration,downloadableId:l.ob,cdnId:l.Th};}),video:k.video.map(function(l){return {duration:l.duration,downloadableId:l.ob,cdnId:l.Th};}),text:k.text.map(function(l){return {duration:l.duration,downloadableId:l.ob,cdnId:l.Th};})};};a=d;b.Cya=a;b.Cya=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(e.Mn))],a);},88496:function(t,b,a){var n,c,f,g,e;function d(h,k,l,m){k=f.bj.call(this,h,k) || this;k.context=h;k.sPa=l;k.xn=m;return k;}Object.defineProperty(b,"__esModule",{value:!0});b.Io=void 0;t=a(22970);n=a(22674);c=a(19114);f=a(51658);a(2762);g=a(71977);e=a(42933);Ia(d,f.bj);d.prototype.gR=function(h){h=(0,g.gSa)(h.Yf);return c.dj.events + "/" + h + this.sPa;};d.prototype.Se=function(h,k){var l,m,p,r,q;l=this;p=h.links;r=this.IP(k);!1;!1;q={url:null !== (m=null === p || void 0 === p?void 0:p.BZ("events").href) && void 0 !== m?m:k.href,name:c.dj.events,pl:this.gR(k),xn:this.xn,XM:this.XM};return this.send(h,q,r).then(function(u){null === p || void 0 === p?void 0:p.pKa(u.result.links);return k;}).catch(function(u){throw l.Sv(u);});};d.prototype.IP=function(h){return {event:this.sPa,xid:h.Ha,position:h.position || 0,clientTime:h.jG,sessionStartTime:h.Ik,videoTrackId:h.Sp,audioTrackId:h.yv,timedTextTrackId:h.Ty,mediaId:h.N_,trackId:h.trackId,sessionId:h.sessionId,appId:h.appId,playTimes:this.JLa(h.hB),sessionParams:h.Xq};};d.prototype.ILa=function(h){return {downloadableId:h.ob,duration:h.duration};};d.prototype.JLa=function(h){var k;k={total:h.total,audio:h.audio.map(this.ILa),video:h.video.map(this.ILa),text:h.text.map(this.ILa)};h.total !== h.uU && (k.totalContentTime=h.uU);0 !== h.lN && (k.totalAdDuration=h.lN);0 !== h.nN && (k.totalOtherDuration=h.nN);if(0 !== h.nN || 0 !== h.lN)k.totalCombinedDuration=h.x2;0 !== h.vU && (k.totalLiveEdgeDuration=h.vU);0 !== h.wU && (k.totalStartSlateDuration=h.wU);return k;};Ha.Object.defineProperties(d.prototype,{XM:{configurable:!0,enumerable:!0,get:function(){return this.socketRouterConfig.enabled && this.socketRouterConfig.sNb && e.X5.supported;}}});a=d;b.Io=a;b.Io=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.Ou)()),t.__param(1,(0,n.Ou)()),t.__param(2,(0,n.Ou)()),t.__param(3,(0,n.Ou)())],a);},51658:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p){this.context=m;this.errorCode=p;}Object.defineProperty(b,"__esModule",{value:!0});b.bj=b.tgb=void 0;n=a(22970);t=a(22674);c=a(71977);f=a(31149);g=a(34231);e=a(54861);h=a(21015);k=a(70885);(function(m){m.JXc="websocket";m.Wlc="httpAfterWS";})(l || (b.tgb=l={}));d.prototype.YOc=function(m,p,r){return n.__awaiter(this,void 0,void 0,function u(){var v,w,x,y;v=this;return Ua(u,function(A){w=v;if(null === (x=v.socketRouterClient) || void 0 === x?0:x.mUa)return A.return(v.iwb(m,p,r,g.ax.AO).then(function(z){var B;z={type:p.name,payload:z.request,options:k.tib[p.name]};return null === (B=w.socketRouterClient) || void 0 === B?void 0:B.request(z).then(function(C){var D,F;if(!("logblob" === p.name?null === (F=null === (D=null === C || void 0 === C?void 0:C.body) || void 0 === D?void 0:D.result) || void 0 === F?0:F.nlp:1))throw Error("SRC message not acknowledged");return C.body;});}).catch(function(){return w.fMb(m,p,r);}));null === (y=v.socketRouterClient) || void 0 === y?void 0:y.start();return A.return(v.fMb(m,p,r));});});};d.prototype.fMb=function(m,p,r){return n.__awaiter(this,void 0,void 0,function u(){var v,w,x;x=this;return Ua(u,function(y){w=r.logblobs;null === (v=null === w || void 0 === w?void 0:w.entries) || void 0 === v?void 0:v.forEach(function(A){A.transport=l.Wlc;});p.XM=!1;return y.return(x.send(m,p,r));});});};d.prototype.send=function(m,p,r,q,u){var v;v=this;u=void 0 === u?g.ax.AO:u;return p.XM && u !== g.ax.Gcb?this.YOc(m,p,r):this.iwb(m,p,r,u,q).then(function(w){return v.context.ric.send(w.context,w.request);});};d.prototype.iwb=function(m,p,r,q,u){var v,w;try{v=this.context.OMc.create(this.context.AA.nG(),p.url,r,u,q);w=this.M9b(p,m,q);return Promise.resolve({context:w,request:v});}catch(x){return Promise.reject(x);}};d.prototype.M9b=function(m,p,r){var q;return {Ke:this.context.Ke,Tr:m.name,url:this.context.wWc((0,c.R9b)(this.context.mk,this.context.Yi,m.name,r)),xn:m.xn,timeout:this.context.Yi.timeout,headers:Object.assign(Object.assign({},(0,c.Q9b)(this.context.mk,this.context.Yi,this.context.dQ,m.name,r)),null !== (q=m.PMc) && void 0 !== q?q:{}),pl:m.pl,log:p.log,uLa:p.uLa,JJ:p.JJ,J:p.J,requestId:this.context.AA.jfc()};};d.prototype.Sv=function(m){return m instanceof f.re?m:(0,c.Sv)(this.errorCode,m);};a=d;b.bj=a;n.__decorate([(0,t.v)(e.KGa)],a.prototype,"socketRouterClient",void 0);n.__decorate([(0,t.v)(h.ija)],a.prototype,"socketRouterConfig",void 0);b.bj=a=n.__decorate([(0,t.aa)(),n.__param(0,(0,t.Ou)()),n.__param(1,(0,t.Ou)())],a);},88951:function(t,b,a){var n,c,f,g,e;function d(h){return f.Io.call(this,h,c.da.VVb,g.Ko.TY,3) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.TAa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(88496);g=a(87607);a=a(83998);Ia(d,f.Io);d.prototype.IP=function(h){return Object.assign(Object.assign({},f.Io.prototype.IP.call(this,h)),{action:h.action});};e=d;b.TAa=e;b.TAa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},82306:function(t,b,a){var n,c,f,g,e;function d(h){return g.bj.call(this,h,c.da.lWb) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.JEa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(19114);g=a(51658);a=a(83998);Ia(d,g.bj);d.prototype.Se=function(h,k){var l,m,p;l=this;p=h.links;p={url:null !== (m=null === p || void 0 === p?void 0:p.BZ("generateScreenshots").href) && void 0 !== m?m:"/generateScreenshots",name:f.dj.S,pl:"generateScreenshots",xn:2};return this.send(h,p,k).then(function(r){return r.result;}).catch(function(r){throw l.Sv(r);});};e=d;b.JEa=e;b.JEa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},25546:function(t,b,a){var n,c,f,g,e;function d(h){return f.Io.call(this,h,c.da.W$a,g.Ko.cra,1) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.lCa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(88496);g=a(87607);a=a(83998);Ia(d,f.Io);e=d;b.lCa=e;b.lCa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},20424:function(t,b,a){var n,c,f;function d(g){this.config=g;}Object.defineProperty(b,"__esModule",{value:!0});b.CCa=void 0;t=a(22970);n=a(4203);c=a(22674);f=a(91176);d.prototype.process=function(g){var e,h,k,l;e=this;if((0,f.GA)(g.streamingType) && this.config().UR){h=Object.assign(Object.assign({template:"$baseUrl/$packageId/$encoder/$feed/$mediaOutputGroup/$downloadableId"},this.config().UR),this.config().UR.video);g.video_tracks.forEach(function(m){m.streams.forEach(function(p){var r;p.urls=[p.urls[0]];r=Object.assign(Object.assign({},h),{downloadableId:p.downloadable_id});p.urls[0].url=e.tSa(r.template,r);});});k=Object.assign(Object.assign({template:"$baseUrl/$packageId/$encoder/$feed/$mediaOutputGroup/$downloadableId"},this.config().UR),this.config().UR.audio);g.audio_tracks.forEach(function(m){m.streams.forEach(function(p){var r;p.urls=[p.urls[0]];r=Object.assign(Object.assign({},k),{downloadableId:p.downloadable_id});p.urls[0].url=e.tSa(r.template,r);});});l=Object.assign(Object.assign({template:"$baseUrl/$packageId/$encoder/$feed/$mediaOutputGroup/$downloadableId"},this.config().UR),this.config().UR.text);g.timedtexttracks.forEach(function(m){Object.entries(m.ttDownloadables).forEach(function(p){var r,q;r=Ea(p);p=r.next().value;r=r.next().value;r.urls && 0 < (null === (q=r.urls) || void 0 === q?void 0:q.length) && (r.urls=[r.urls[0]],q=Object.assign(Object.assign({},l),{downloadableId:m.downloadableIds[p]}),r.urls[0].url=e.tSa(q.template,q));});});}};d.prototype.tSa=function(g,e){return g.split("/").map(function(h){var k;if(h.startsWith("$")){k=h.substring(1);if(e.hasOwnProperty(k))return e[k];}return h;}).join("/");};a=d;b.CCa=a;b.CCa=a=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(n.Hc))],a);},22503:function(t,b,a){var n,c,f,g,e;function d(h){return f.Io.call(this,h,c.da.ddb,g.Ko.pause,1) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.xEa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(88496);g=a(87607);a=a(83998);Ia(d,f.Io);e=d;b.xEa=e;b.xEa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},13158:function(t,b,a){var n,c,f,g,e,h;function d(k){return g.bj.call(this,k,c.da.kab) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.yEa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(19114);g=a(51658);e=a(83998);h=a(71977);Ia(d,g.bj);d.prototype.gR=function(k){var l;l="ldl" === k.oVa?"prefetch/license":"license";k=(0,h.Lsc)(k.Yf);return "" + l + k;};d.prototype.Se=function(k,l){var m,p;m=this;p={url:k.links.BZ(l.oVa).href,name:f.dj.qu,pl:this.gR(l),xn:"ldl" === l.oVa?0:3};return this.send(k,p,l.inputs,"drmSessionId").then(function(r){r=r.result;m.Mac(r);return r;}).catch(function(r){throw m.Sv(r);});};d.prototype.Mac=function(k){k.forEach(function(l){if(!l.licenseResponseBase64)throw Error("Received empty licenseResponseBase64");});};a=d;b.yEa=a;b.yEa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(e.Mn))],a);},25743:function(t,b,a){var n,c,f,g,e,h;function d(k){return g.bj.call(this,k,c.da.OSb) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.AEa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(19114);g=a(51658);e=a(83998);h=a(34231);Ia(d,g.bj);d.prototype.Se=function(k){var l;l=this;return this.send(k,{url:"/" + f.dj.EKa,name:f.dj.EKa,pl:f.dj.EKa,xn:1,PMc:{"Content-Type":"application/json","content-encoding":"msl_v1"}},{provisionRequest:'{"ver":1,"scheme":"A128CBC-HS256","type":"SOCKETROUTER","keyx":{"scheme":"CLEAR"}}'},void 0,h.ax.AO).then(function(m){return m.result;}).catch(function(m){throw l.Sv(m);});};a=d;b.AEa=a;b.AEa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(e.Mn))],a);},15153:function(t,b,a){var n,c,f,g,e;function d(h){return g.bj.call(this,h,c.da.yTb) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.CEa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(19114);g=a(51658);a=a(83998);Ia(d,g.bj);d.prototype.Se=function(h,k){var l;l=this;return this.send(h,{url:"/" + f.dj.bind,name:f.dj.bind,pl:f.dj.bind,xn:2},k).then(function(m){return m.result;}).catch(function(m){throw l.Sv(m);});};e=d;b.CEa=e;b.CEa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},76427:function(t,b,a){var n,c,f,g,e;function d(h){return g.bj.call(this,h,c.da.zTb) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.DEa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(19114);g=a(51658);a=a(83998);Ia(d,g.bj);d.prototype.Se=function(h,k){var l;l=this;return this.send(h,{url:"/bindDevice",name:f.dj.bind,pl:f.dj.bind,xn:2},k).then(function(m){return m.result;}).catch(function(m){throw l.Sv(m);});};e=d;b.DEa=e;b.DEa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},54949:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r,q,u,v,w,x,y,A){this.mk=p;this.Ke=r;this.Yi=q;this.ric=u;this.AA=v;this.wWc=w;this.OMc=y;this.dQ=A;}Object.defineProperty(b,"__esModule",{value:!0});b.FEa=void 0;t=a(22970);n=a(22674);c=a(24747);f=a(7605);g=a(31071);e=a(30650);h=a(62665);k=a(32934);l=a(77687);m=a(15160);a=a(33554);b.FEa=d;b.FEa=d=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.vga)),t.__param(1,(0,n.v)(k.bC)),t.__param(2,(0,n.v)(f.oz)),t.__param(3,(0,n.v)(e.Ldb)),t.__param(4,(0,n.v)(h.XE)),t.__param(5,(0,n.v)(l.$hb)),t.__param(6,(0,n.v)(m.bha)),t.__param(7,(0,n.v)(g.Ydb)),t.__param(8,(0,n.v)(a.WB))],d);},71977:function(t,b,a){var h,k,l;function d(m){return !(!m || !m.MH && !m.pboc || !m.code && !m.code);}function n(m){return !(!m || !m.subCode);}function c(m){return !!(m instanceof Error);}function f(m){switch(m){case "ACCOUNT_ON_HOLD":return k.Y.pZb;case "STREAM_QUOTA_EXCEEDED":return k.Y.yZb;case "INSUFFICICENT_MATURITY":return k.Y.EZb;case "TITLE_OUT_OF_WINDOW":return k.Y.NZb;case "CHOICE_MAP_ERROR":return k.Y.xZb;case "BadRequest":return k.Y.IZb;case "Invalid_SemVer_Format":return k.Y.FZb;case "RESTRICTED_TO_TESTERS":return k.Y.LZb;case "AGE_VERIFICATION_REQUIRED":return k.Y.vZb;case "BLACKLISTED_IP":return k.Y.wZb;case "DEVICE_EOL_WARNING":return k.Y.nEa;case "DEVICE_EOL_FINAL":return k.Y.edb;case "INCORRECT_PIN":return k.Y.oEa;case "MOBILE_ONLY":return k.Y.KZb;case "MDX_CONTROLLER_CTICKET_INVALID":return k.Y.JZb;case "VIEWABLE_RESTRICTED_BY_PROFILE":return k.Y.OZb;case "RESET_DEVICE":return k.Y.hdb;case "RELOAD_DEVICE":return k.Y.gdb;case "EXIT_DEVICE":return k.Y.fdb;case "FREE_PREVIEW_ENDED":return k.Y.DZb;case "STREAMING_LOCATION_DISALLOWED":return k.Y.MZb;case "EXTRA_MEMBER_STREAM_HOLD":return k.Y.CZb;case "EXTRA_MEMBER_REMOVED_STREAM_HOLD":return k.Y.BZb;case "ADS_UNAVAILABLE_VIEWABLE":return k.Y.qZb;case "ADS_UNSUPPORTED_DEVICE":return k.Y.tZb;case "ADS_UNSUPPORTED_CLIENT_APP_VERSION":return k.Y.rZb;case "ADS_UNSUPPORTED_COUNTRY":return k.Y.sZb;case "ADS_VPN_USE_DETECTED":return k.Y.uZb;case "LIVE_STREAMING_UNSUPPORTED_DEVICE":return k.Y.HZb;case "LIVE_STREAMING_UNSUPPORTED_APP_VERSION":return k.Y.GZb;case "CONTENT_PREVIEW_MFA_REQUIRED":return k.Y.zZb;default:return k.Y.c9a;}}function g(m,p){var r;r=f(p.code);return new h.re(m,r,"BadRequest" === p.code?k.Bha.NTb:void 0,p.code,void 0,p.display,void 0,p.detail,p.display,p.bladeRunnerCode?Number(p.bladeRunnerCode):void 0,p.alert,p.alertTag,p.playbackContextId,p.displayCode);}function e(m,p){return new h.re(m,p.subCode,p.extCode,void 0,p.EH,p.message,p.details,p.data);}Object.defineProperty(b,"__esModule",{value:!0});b.Rqa=d;b.M9c=n;b.nL=c;b.k8c=f;b.Sv=function(m,p){return n(p)?e(m,p):d(p)?g(m,p):c(p)?h.re.Eoa(m,p):new h.re(m,void 0,void 0,void 0,void 0,"Recieved an unexpected error type",void 0,p);};b.l8c=g;b.j8c=e;b.R9b=function(m,p,r,q,u){var v,w,x,y;u=void 0 === u?"router":u;v=p.A0a[r];if(void 0 === v)throw {MH:!0,code:"FAIL",display:"Unable to build the URL for " + r + " because there was no configuration information",detail:p};w=v.version;if(void 0 === w)throw {MH:!0,code:"FAIL",display:"Unable to build the URL for " + r + " because there was no version information",detail:p};x=v.service;if(void 0 === x)throw {MH:!0,code:"FAIL",display:"Unable to build the URL for " + r + " because there was no service information",detail:p};y=v.orgOverride;if(void 0 === y && (y=p.organization,void 0 === y))throw {MH:!0,code:"FAIL",display:"Unable to build the URL for " + r + " because there was no organization information",detail:p};return v.isLogsApiDirect?m.stb + "/" + y + "/" + x + "/" + encodeURIComponent(w):v.isPlayApiDirect?m.Crc(q) + "/" + y + "/" + x + "/" + encodeURIComponent(w):m.irc(q) + "/" + y + "/" + x + "/" + encodeURIComponent(w) + "/" + u;};b.Q9b=function(m,p,r,q,u){var v;v=p.A0a[q];if(void 0 === v)throw {MH:!0,code:"FAIL",display:"Unable to build the header map for " + q + " because there was no configuration information",detail:p};q={"Content-Type":"text/plain"};v.isLogsApiDirect && m.WT(u) && (q["content-encoding"]="msl_v1");m=r();p.Ulb && m && (q["X-Esn"]=m.ij);return q;};b.gSa=function(m){return (0,l.za)(m)?"live/":(0,l.hH)(m)?"linear/":"";};b.Lsc=function(m){return (0,l.za)(m)?"/live":(0,l.hH)(m)?"/linear":"";};h=a(31149);k=a(36129);l=a(91176);},46303:function(t,b,a){var n,c,f,g,e;function d(h,k,l){this.Ma=h;this.platform=k;this.config=l;}Object.defineProperty(b,"__esModule",{value:!0});b.KEa=void 0;t=a(22970);n=a(22674);c=a(30869);f=a(5021);g=a(91581);a=a(4203);d.prototype.FUc=function(h){var k,l;k=this;l=this.Ma.Mg.na(f.Yu);return {inputs:h.gK.map(function(m){var p,r,q,u,v;return {drmSessionId:m.sessionId,clientTime:l,challengeBase64:m.dataBase64,xid:h.Ha.toString(),videoTrackName:h.Sp,platform:null === (p=k.config().Je) || void 0 === p?void 0:p.version,clientVersion:k.platform.version,osVersion:null === (q=null === (r=k.config().Je) || void 0 === r?void 0:r.os) || void 0 === q?void 0:q.version,osName:null === (v=null === (u=k.config().Je) || void 0 === u?void 0:u.os) || void 0 === v?void 0:v.name};}),oVa:"standard" === h.Hi.toLowerCase()?"license":"ldl",Yf:h.Yf,J:h.J};};e=d;b.KEa=e;b.KEa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Li)),t.__param(1,(0,n.v)(g.xt)),t.__param(2,(0,n.v)(a.Hc))],e);},45830:function(t,b,a){var n,c,f;function d(g,e){this.Nk=g;this.wx=e;}Object.defineProperty(b,"__esModule",{value:!0});b.LEa=void 0;t=a(22970);n=a(22674);c=a(74870);a=a(2248);d.prototype.WPb=function(g){var e,h;e=this;h=g.map(function(k){return k.links.releaseLicense.href;}).map(function(k){return e.Nk.Zta(k.substring(k.indexOf("?") + 1));});return {success:!0,o_:g.map(function(k,l){return {id:k.drmSessionId,hCb:h[l].drmlicensecontextid,iCb:h[l].licenseid};}),RA:g.map(function(k){return {data:e.wx.decode(k.licenseResponseBase64),sessionId:k.drmSessionId};})};};f=d;b.LEa=f;b.LEa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Am)),t.__param(1,(0,n.v)(a.mm))],f);},30543:function(t,b,a){var n,c,f,g,e,h;function d(k){return g.bj.call(this,k,c.da.zXb) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.OEa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(19114);g=a(51658);e=a(83998);h=a(42933);Ia(d,g.bj);d.prototype.Se=function(k,l){var m;m=this;return this.send(k,{url:"/" + f.dj.ZR,name:f.dj.ZR,pl:f.dj.ZR,xn:1,XM:this.XM},l).then(function(p){return p.result;}).catch(function(p){throw m.Sv(p);});};Ha.Object.defineProperties(d.prototype,{XM:{configurable:!0,enumerable:!0,get:function(){return this.socketRouterConfig.enabled && this.socketRouterConfig.uNb && h.X5.supported;}}});a=d;b.OEa=a;b.OEa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(e.Mn))],a);},86563:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u;function d(v,w,x,y,A,z){v=g.bj.call(this,v,c.da.pO) || this;v.platform=w;v.zba=x;v.Ryc=y;v.MAc=A;v.CIc=z;return v;}Object.defineProperty(b,"__esModule",{value:!0});b.PEa=void 0;t=a(22970);n=a(72639);c=a(36129);f=a(19114);a(2762);g=a(51658);e=a(83998);h=a(91581);k=a(34231);l=a(17398);m=a(829);p=a(22674);r=a(67658);q=a(41332);u=a(56039);Ia(d,g.bj);d.prototype.csc=function(v,w){var x,y,A,z,B,C;A=w?f.dj.Syc:f.dj.S;w=w?"licensedManifest":"manifest";z=v.$t === n.Wp.u5;z && (w="prefetch/" + w);B="live" === v.qb.ff;B && (w+="/live");C=!(null === (x=v.ue) || void 0 === x || !x.Xk) || !(null === (y=v.ue) || void 0 === y || !y.eb);C && (w="adBreakHydration" + (B?"/live":""));if(x=!!v.uy)A=w="prefetchLiveAds";!v.qs || C || x || (w+="/ad");v=!!v.Yv;return {pl:w,hcc:A,xn:z || v?0:3};};d.prototype.Se=function(v,w){var x,y;x=this;y=w.$t === n.Wp.bja?k.ax.Seb:k.ax.AO;return this.MAc().transform(w,y).then(function(A){var z,B;z=Ea(A);A=z.next().value;B=z.next().value;!1;z=x.csc(w,"licensedManifest" === B.Tr);return x.send(v,{url:B.Tr,name:z.hcc,pl:z.pl,xn:z.xn},A,void 0,y).then(function(C){var D,F,H;D=C.result;x.CIc.forEach(function(E){return E.process(D);});C=x.zba.create(D);F=C.Aa;if(B.uG){H=F.jm.map(function(E){return E.qu;}).filter(Boolean);0 < H.length?(H=x.Ryc.WPb(H),F=(0,u.nRa)(F.jm[0].streams),B.uG.Elb(H,F),C.uG=B.uG,C.eUa=!0):B.uG.close();}C.z7=B.z7;C.Zfa=B.Zfa;!1;return C;});}).catch(function(A){!1;throw x.Sv(A);});};a=d;b.PEa=a;b.PEa=a=t.__decorate([(0,p.aa)(),t.__param(0,(0,p.v)(e.Mn)),t.__param(1,(0,p.v)(h.xt)),t.__param(2,(0,p.v)(l.IV)),t.__param(3,(0,p.v)(m.MEa)),t.__param(4,(0,p.v)(r.Sdb)),t.__param(5,(0,p.optional)()),t.__param(5,(0,p.FH)(q.vbb))],a);},3035:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;function d(x,y,A,z,B,C,D,F,H){this.Yi=x;this.platform=y;this.config=A;this.sac=z;this.ZHc=B;this.uu=C;this.b8=D;this.Ma=F;this.cA=H;}Object.defineProperty(b,"__esModule",{value:!0});b.REa=void 0;t=a(22970);n=a(22674);c=a(72639);f=a(4203);g=a(14423);e=a(34029);h=a(67650);k=a(21103);l=a(91581);m=a(30869);p=a(5021);r=a(2492);q=a(7605);u=a(56800);v=a(24735);w=a(17612);d.prototype.transform=function(x,y){var A,z,B,C,D,F,H,E;A=this;z=x.qb;B=Object.assign({},z.Nla,z.Xq);C={};D=x.J;F=this.config();C[D]={unletterboxed:!!B.preferUnletterboxed || F.KIc};H=this.uu.wpc();E={ff:null === z || void 0 === z?void 0:z.ff};return Promise.all([this.cA.Wxb(E),this.cA.Yxb(E),this.cA.C$(),this.Ooc(x.Ha,y),this.Bpc(x),H,(function(){return A.config().msb?A.uu.TG().then(function(G){return w.mb.g_(G.gy)?"replace":A.config().uCb;}):Promise.resolve(A.config().uCb);})()]).then(function(G){var J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha;J=Ea(G);L=J.next().value;K=J.next().value;M=J.next().value;P=J.next().value;G=J.next().value;I=J.next().value;O=J.next().value;J=L.Bpa().concat(K.Bpa()).concat(A.config().NB).concat(["iso_23001_18-dash-live"]).concat(["BIF240","BIF320"]).filter(Boolean);ha="postplay" === z.ff?!0:!!B.isUIAutoPlay;M={type:"standard",manifestVersion:A.Yi.ltb?"v3":A.Yi.ktb?"v2":"v1",viewableId:D,profiles:J,flavor:x.$t,drmType:I,drmVersion:"playready" === I?30:0,usePsshBox:!0,isBranching:!!x.qb.Pg,useHttpsStreams:!0,supportsUnequalizedDownloadables:A.config().uTc,imageSubtitleHeight:g.XGa.zxb(),uiVersion:A.Yi.uiVersion,uiPlatform:A.Yi.uiPlatform,clientVersion:A.platform.version,platform:null === (Q=A.config().Je) || void 0 === Q?void 0:Q.version,osVersion:null === (U=null === (T=A.config().Je) || void 0 === T?void 0:T.os) || void 0 === U?void 0:U.version,osName:null === (Y=null === (X=A.config().Je) || void 0 === X?void 0:X.os) || void 0 === Y?void 0:Y.name,supportsPreReleasePin:A.config().Jv.lTc,supportsWatermark:A.config().Jv.mTc,packageId:A.wrc(z),videoOutputInfo:M,titleSpecificData:C,preferAssistiveAudio:!!B.assistiveAudioPreferred,preferredTextLocale:B.preferredTextLocale,preferredAudioLocale:B.preferredAudioLocale,isUIAutoPlay:ha,challenge:P,isNonMember:A.Yi.EAb,pin:z.PHb,desiredVmaf:A.config().uRb?A.config().$rb:A.config().bsb,desiredSegmentVmaf:A.config().uRb?A.config().$rb:A.config().bsb,requestSegmentVmaf:A.config().VMc,supportsPartialHydration:A.Yi.NY,contentPlaygraph:x.qb.Pg?[]:A.Yi.Jma,supportsAdBreakHydration:!0,auxiliaryManifestToken:x.qb.Pg?void 0:null === (W=x.ue) || void 0 === W?void 0:W.Hb,adBreakToken:x.qb.Pg?void 0:null === (Z=x.ue) || void 0 === Z?void 0:Z.Xk,adBreakTriggerId:x.qb.Pg?void 0:null === (aa=x.ue) || void 0 === aa?void 0:aa.eb,originalPlaybackContextId:!x.qb.Pg && (null === (ca=x.ue) || void 0 === ca?0:ca.Hb)?null === (da=x.ue) || void 0 === da?void 0:da.OD:void 0,liveMetadataFormat:"INDEXED_SEGMENT_TEMPLATE",useBetterTextUrls:!0,liveAdsCapability:O,supportsNetflixMediaEvents:!0,cachedAdBreaks:x.U7,occurredAdBreaks:x.uy};z.Stb && (M.extraParams=z.Stb);z.Yrb && (M.desiredDownloadables=z.Yrb);z.u_a && (M.requestReference=z.u_a);F.knb && (M.auxiliaryManifestToken=F.knb);F.TOb && (M.supportsAdLazyLoading=F.TOb,void 0 !== F.SDb && (M.maxSupportedAdAuxiliaryManifests=F.SDb));F.pQb && (M.uiContext=F.pQb);Q={Tr:M.occurredAdBreaks?"prefetchLiveAds":M.adBreakToken || M.adBreakTriggerId?"adBreakHydration":G?"licensedManifest":"manifest",uG:null === G || void 0 === G?void 0:G.tl,z7:L,Zfa:K};G && (G={drmSessionId:G.tl.cR() || "session",clientTime:A.Ma.hI.na(p.Yu),challengeBase64:G.eMa},M.challenges={"default":[G]},M.profileGroups=[{name:"default",profiles:J}],M.licenseType=x.Hi == v.pr.XI?"limited":"standard",x.Ha && (M.xid=x.Ha.toString()));A.Yi.NY || (M.showAllSubDubTracks=A.config().Jv.cRc || !!B.showAllSubDubTracks);A.Yi.etb && x.$t === c.Wp.bja && (M.maxSupportedLanguages=2);x.oN && (M.originalPlaybackContextId=x.oN.OD,M.requiredAudioTrackId=x.oN.aNc,M.requiredTextTrackId=x.oN.eNc);x.Yv && (M.hasCachedManifest=x.Yv);x.Mwa && (M.stickySteeringToken=x.Mwa);return [M,Q];});};d.prototype.wrc=function(x){if(this.config().ava.enabled){if(void 0 !== x.Gs)return x.Gs;if(void 0 !== this.config().ava.Gs)return Number(this.config().ava.Gs);}};d.prototype.Ooc=function(x,y){var A;A=this;return this.sac.Xvb(y).then(function(z){var B;B=x && A.ZHc.Erc(x);B && B.sv("cad");return z;});};d.prototype.Bpc=function(x){var y;if(void 0 === x.Hi)return Promise.resolve(void 0);y=x.Hi === v.pr.yr && this.Yi.LC;return x.Hi === v.pr.XI && this.Yi.AK || y?this.b8.$Ra(x.Hi):Promise.resolve(void 0);};a=d;b.REa=a;b.REa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(q.oz)),t.__param(1,(0,n.v)(l.xt)),t.__param(2,(0,n.v)(f.Hc)),t.__param(3,(0,n.v)(e.s6a)),t.__param(4,(0,n.v)(h.rFa)),t.__param(5,(0,n.v)(k.lz)),t.__param(6,(0,n.v)(r.Qga)),t.__param(7,(0,n.v)(m.Li)),t.__param(8,(0,n.v)(u.kV))],a);},36642:function(t,b,a){var n,c,f,g,e;function d(h){return g.bj.call(this,h,c.da.PZb) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.SEa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(19114);g=a(51658);a=a(83998);Ia(d,g.bj);d.prototype.Se=function(h,k){var l;l=this;return this.send(h,{url:"/" + f.dj.ping,name:f.dj.ping,pl:f.dj.ping,xn:1},k).then(function(m){return m.result;}).catch(function(m){throw l.Sv(m);});};e=d;b.SEa=e;b.SEa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},46320:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m,p){this.platform=k;this.config=l;this.b8=m;this.cA=p;}Object.defineProperty(b,"__esModule",{value:!0});b.cFa=void 0;t=a(22970);n=a(22674);c=a(4203);f=a(91581);g=a(2492);e=a(56800);h=a(24735);d.prototype.transform=function(k){var l,m,p;l=this;m=k.qb;p={ff:void 0};return Promise.all([this.cA.Wxb(p),this.cA.Yxb(p),this.b8.$Ra(h.pr.yr)]).then(function(r){var q,u;q=Ea(r);r=q.next().value;u=q.next().value;q=q.next().value;return [{viewableId:k.J,packageId:m.Gs,assetId:m.v7,challenge:q.eMa,audioProfiles:r.Bpa(),textProfiles:l.config().NB,trickplayProfiles:["BIF240","BIF320"],videoProfiles:u.Bpa(),audioLanguages:m.o8b,textLanguages:m.UTc,videoLanguages:m.QRb?[m.QRb]:void 0,videoAspectRatios:m.NRb?[m.NRb]:void 0,requestReference:m.u_a,additionalAudioAssets:m.r6b,additionalTextAssets:m.u6b,useBetterTextUrls:!0},{uG:null === q || void 0 === q?void 0:q.tl,Tr:"studioManifest",z7:r,Zfa:u}];});};a=d;b.cFa=a;b.cFa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.xt)),t.__param(1,(0,n.v)(c.Hc)),t.__param(2,(0,n.v)(g.Qga)),t.__param(3,(0,n.v)(e.kV))],a);},52137:function(t,b,a){var n,c,f,g,e;function d(h){return f.Io.call(this,h,c.da.rfb,g.Ko.resume,1) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.iGa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(88496);g=a(87607);a=a(83998);Ia(d,f.Io);e=d;b.iGa=e;b.iGa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},69740:function(t,b,a){var n,c,f,g,e;function d(h){return f.Io.call(this,h,c.da.Yfb,g.Ko.splice,1) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.NGa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(88496);g=a(87607);a=a(83998);Ia(d,f.Io);e=d;b.NGa=e;b.NGa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},84860:function(t,b,a){var n,c,f,g,e;function d(h){return f.Io.call(this,h,c.da.x0b,g.Ko.start,3) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.PGa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(88496);g=a(87607);a=a(83998);Ia(d,f.Io);e=d;b.PGa=e;b.PGa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},35329:function(t,b,a){var n,c,f,g,e;function d(h){return f.Io.call(this,h,c.da.G5,g.Ko.stop,3) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.TGa=void 0;t=a(22970);n=a(22674);c=a(36129);f=a(88496);g=a(87607);a=a(83998);Ia(d,f.Io);e=d;b.TGa=e;b.TGa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Mn))],e);},85432:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r){this.performance=m;this.config=r;this.H7=[];this.log=p.wb("PboBackoffManager");}Object.defineProperty(b,"__esModule",{value:!0});b.BEa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(63368);g=a(5021);e=a(79542);h=a(81378);k=a(72639);a=a(7605);l=[].concat(za(h.b5a),za(k.c5a));d.prototype.aKc=function(m,p){var r;if(this.config.YOa && (0,e.FJb)(l,p) && (m=(null !== m && void 0 !== m?m:{})["x-netflix.playapi.backoff"]))try{r=JSON.parse(m);this.RWc(r);this.log.debug("Adding backoff",r);this.H7.push({N_a:r.retryAfterSeconds,XMc:r.requestTypes,$y:r.viewableIds,S8b:this.performance.now()});}catch(q){}};d.prototype.Boc=function(m,p){var r,q,u;r=this;if(this.config.YOa){q=this.performance.now();this.Dbc(q);u=this.H7.filter(function(v){return (0,e.FJb)(v.XMc,m);}).filter(function(v){return void 0 === v.$y || 0 === v.$y.length || v.$y.includes(p);});if(0 !== u.length){if(m.startsWith("prefetch"))return (this.log.debug("getBackoff: cancelling " + m + " request for " + p),{KX:!0});u=u.map(function(v){return r.Hxb(v,q);}).reduce(function(v,w){return 0 < w.Ml(v)?w:v;},(0,g.Zi)(0));this.log.debug("getBackoff: delaying " + m + " request for " + p + " for " + u.na(g.ya) + "ms");return {KX:!1,ANc:u};}}};d.prototype.RWc=function(m){if("number" !== typeof m.retryAfterSeconds)throw Error("retryAfterSeconds is not a number");if(!Array.isArray(m.requestTypes))throw Error("requestTypes is not an array");if(0 === m.requestTypes.length)throw Error("requestTypes is empty");if(!m.requestTypes.every(function(p){return "string" === typeof p;}))throw Error("requestTypes contains a non-string element");if(void 0 !== m.viewableIds){if(!Array.isArray(m.viewableIds))throw Error("viewableIds is not an array");if(!m.viewableIds.every(function(p){return "number" === typeof p;}))throw Error("viewableIds contains a non-number element");}};d.prototype.Dbc=function(m){for(var p=this.H7.length - 1;0 <= p;)(this.Hxb(this.H7[p],m).tUa() || this.H7.splice(p,1),--p);};d.prototype.Hxb=function(m,p){p=(0,g.ic)(p).ea((0,g.ic)(m.S8b));return (0,g.Zi)(m.N_a).ea(p);};h=d;b.BEa=h;b.BEa=h=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.wia)),t.__param(1,(0,n.v)(c.zb)),t.__param(2,(0,n.v)(a.oz))],h);},17705:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r,q){m=c.Qf.call(this,m,"PboConfigImpl") || this;m.config=p;m.Z6b=r;m.eg=q;return m;}Object.defineProperty(b,"__esModule",{value:!0});b.GEa=void 0;t=a(22970);n=a(22674);c=a(64174);f=a(83767);g=a(12501);e=a(4203);h=a(24747);k=a(5614);l=a(5021);Ia(d,c.Qf);Ha.Object.defineProperties(d.prototype,{uiVersion:{configurable:!0,enumerable:!0,get:function(){return this.config().Jv.uiVersion || "";}},uiPlatform:{configurable:!0,enumerable:!0,get:function(){return this.config().Jv.uiPlatform || "";}},version:{configurable:!0,enumerable:!0,get:function(){return 2;}},organization:{configurable:!0,enumerable:!0,get:function(){return "cadmium";}},languages:{configurable:!0,enumerable:!0,get:function(){return this.config().Jv.dZa;}},EAb:{configurable:!0,enumerable:!0,get:function(){return !1;}},A0a:{configurable:!0,enumerable:!0,get:function(){return Object.assign({logblob:{service:"logblob",isLogsApiDirect:!0,version:"1"},manifest:{service:"manifest",isPlayApiDirect:!0,version:"1"},licensedmanifest:{service:"licensedmanifest",isPlayApiDirect:!0,version:"1"},license:{service:"pbo_licenses",version:"^1.0.0"},events:{service:"event",isPlayApiDirect:!0,version:"1"},bind:{service:this.Z6b.Cnb,version:"^1.0.0"},ping:{service:"pbo_events",version:"^1.0.0"},config:{service:"pbo_config",version:"^1.0.0"},prefetchLiveAds:{service:"prefetchLiveAds",isPlayApiDirect:!0,version:"1"},aleProvision:{service:"pbo_tokens",version:"^1.0.0",orgOverride:"nrdjs"}},this.tMb);}},tMb:{configurable:!0,enumerable:!0,get:function(){return {};}},TJb:{configurable:!0,enumerable:!0,get:function(){return !1;}},aTa:{configurable:!0,enumerable:!0,get:function(){return 10;}},Ulb:{configurable:!0,enumerable:!0,get:function(){return !1;}},LC:{configurable:!0,enumerable:!0,get:function(){return this.eg.LC;}},AK:{configurable:!0,enumerable:!0,get:function(){return this.eg.AK;}},GU:{configurable:!0,enumerable:!0,get:function(){return this.eg.GU;}},ARb:{configurable:!0,enumerable:!0,get:function(){return !1;}},etb:{configurable:!0,enumerable:!0,get:function(){return !0;}},tRb:{configurable:!0,enumerable:!0,get:function(){return [];}},ktb:{configurable:!0,enumerable:!0,get:function(){return !0;}},ltb:{configurable:!0,enumerable:!0,get:function(){return !1;}},NY:{configurable:!0,enumerable:!0,get:function(){return this.eg.NY;}},Jma:{configurable:!0,enumerable:!0,get:function(){return this.eg.Jma;}},timeout:{configurable:!0,enumerable:!0,get:function(){return (0,l.Zi)(59);}},YOa:{configurable:!0,enumerable:!0,get:function(){return !0;}}});a=d;b.GEa=a;t.__decorate([g.config(g.string,"uiVersion")],a.prototype,"uiVersion",null);t.__decorate([g.config(g.string,"uiPlatform")],a.prototype,"uiPlatform",null);t.__decorate([g.config(g.Vy,"pboVersion")],a.prototype,"version",null);t.__decorate([g.config(g.string,"pboOrganization")],a.prototype,"organization",null);t.__decorate([g.config(g.f2,"pboLanguages")],a.prototype,"languages",null);t.__decorate([g.config(g.pd,"hasLimitedPlaybackFunctionality")],a.prototype,"EAb",null);t.__decorate([g.config(g.object(),"pboCommands")],a.prototype,"A0a",null);t.__decorate([g.config(g.object(),"pboCommandsOverride")],a.prototype,"tMb",null);t.__decorate([g.config(g.pd,"pboRecordHistory")],a.prototype,"TJb",null);t.__decorate([g.config(g.Vy,"pboHistorySize")],a.prototype,"aTa",null);t.__decorate([g.config(g.pd,"pboAddXEsnHeader")],a.prototype,"Ulb",null);t.__decorate([g.config(g.pd,"combineManifestAndLicense")],a.prototype,"LC",null);t.__decorate([g.config(g.pd,"enableLicensedManifestForPrefetch")],a.prototype,"AK",null);t.__decorate([g.config(g.pd,"useLdlForPrefetchLicensedManifest")],a.prototype,"GU",null);t.__decorate([g.config(g.pd,"pboUseStudioManifest")],a.prototype,"ARb",null);t.__decorate([g.config(g.pd,"pboEnableLeanManifest")],a.prototype,"etb",null);t.__decorate([g.config(g.pd,"useHeaderForRequestNames")],a.prototype,"tRb",null);t.__decorate([g.config(g.pd,"pboEnableV2OptimizedManifest")],a.prototype,"ktb",null);t.__decorate([g.config(g.pd,"pboEnableV3Manifest")],a.prototype,"ltb",null);t.__decorate([g.config(g.pd,"pboEnableManifestPartialHydrationSupport")],a.prototype,"NY",null);t.__decorate([g.config(g.f2,"pboContentPlaygraphTypes")],a.prototype,"Jma",null);t.__decorate([g.config(g.ro,"pboTimeout")],a.prototype,"timeout",null);t.__decorate([g.config(g.pd,"enablePboBackoff")],a.prototype,"YOa",null);b.GEa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.Po)),t.__param(1,(0,n.v)(e.Hc)),t.__param(2,(0,n.v)(h.vga)),t.__param(3,(0,n.v)(k.XV))],a);},71976:function(t,b,a){var f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D;function d(F){this.config=F;this.kG=[];}function n(F,H,E){this.Va=F;this.transport=H;this.context=E;this.startTime=this.Va.yc();}function c(F,H,E,G,J,L,K,M,P,I,O,Q){this.eQb=H;this.json=E;this.Va=G;this.NG=J;this.JZa=L;this.Ad=K;this.config=M;this.jc=P;this.receiver=I;this.hYc=O;this.DHb=Q;this.log=F.wb("Pbo");M.TJb && (this.kG=new d(M));this.transport=this.eQb();}Object.defineProperty(b,"__esModule",{value:!0});b.HEa=void 0;t=a(22970);f=a(22674);g=a(5021);e=a(14543);h=a(87386);k=a(63368);l=a(81918);m=a(34231);p=a(10306);r=a(53085);q=a(71977);u=a(7605);v=a(15160);w=a(85001);x=a(19114);y=a(45385);A=a(15348);z=a(91176);B=a(82229);a=a(17391);C={"shakti-":"akira"};c.prototype.send=function(F,H){var E;E=new n(this.Va,this.transport,F);this.kG && this.kG.append(E);return this.q0a(F,H,E);};c.prototype.q0a=function(F,H,E){var G;G=this;return new Promise(function(J,L){G.retry(F,H).then(function(K){var M,P;G.WOc(K);M=Ea(G.UWc(K));P=M.next().value;M=M.next().value;P && (G.receiver.DZa({command:F.Tr,url:F.url,inputs:H,outputs:P}),G.Ybc(E),J(K));M && (G.rpb(E,M),L(M));}).catch(function(K){var M;G.receiver.DZa({command:F.Tr,inputs:H,outputs:K,url:F.url});M=G.rpb(E,K);K.qf && (K.qf=[K.qf," ",M].join(""));L(K);});});};c.prototype.WOc=function(F){(F=F.serverTime) && this.jc.qd(w.$Ba.rMb,(0,g.ic)(F));};c.prototype.UWc=function(F){var H;!1;H=F.result;if(("deviceCommand" in F)){F=F.deviceCommand;this.log.trace("Received device command '" + F + "'");switch(F){case "reset":H="RESET_DEVICE";break;case "reload":H="RELOAD_DEVICE";break;case "exit":H="EXIT_DEVICE";break;default:(H="FAIL",this.log.error("Unhandled device command '" + F + "'"));}return [,{MH:!0,code:H,detail:{message:"Server sent device action to '" + F + "' device"}}];}if(H)return (!1,[H,void 0]);if(F.code)return (this.log.error("Response did not contain a result or an error but did contain an error code",F),[,{code:F.code,detail:{message:F.message}}]);this.log.error("Response did not contain a result or an error",F);return [,{code:"FAIL",detail:{message:"Response did contain a result or an error"}}];};c.prototype.j8b=function(F,H,E){var G,J;G=this;this.rWc(H,F);this.transport=this.eQb(E);return this.transport.send(H,E).then(function(L){J=L.headers;return {retry:!1,FHb:y.sia.gHc(G.json,L.body),headers:J};}).catch(function(L){var K,M;J=null !== J && void 0 !== J?J:L.headers;K=G.hYc.isc(J);M=y.sia.Mqc(L,K);M=void 0 !== M?Math.min(M,H.xn):H.xn;return G.Vs(H,L,F,M)?(K=G.P$b(K,F,M),G.log.warn("Method failed, retrying",Object.assign({Method:H.Tr,Attempt:F + 1,WaitTime:K,MaxRetries:M},G.SNa(L))),Promise.resolve({retry:!0,delay:K,error:L,headers:J})):Promise.resolve({retry:!1,error:L,headers:J});});};c.prototype.eoc=function(F){var H,E;if(!this.TJa || this.TJa.nGc !== F){H="";E=F;Object.entries(C).find(function(G){var J;J=Ea(G);G=J.next().value;J=J.next().value;if(0 === F.indexOf(G))return (H=J,F=F.slice(G.length),!0);});this.TJa={kpb:H,uiVersion:F,nGc:E};}return this.TJa;};c.prototype.rWc=function(F,H){var E,G,J,L;L=F.url.searchParams;L.set(x.hC.Dfb,(H + 1).toString());this.config.tRb.includes(F.pl)?F.headers[x.Z_b.hGa]=F.pl:L.set(x.hC.hGa,F.pl);L.set(x.hC.Efb,F.requestId);F.J && L.set(x.hC.qYb,encodeURIComponent(F.J));F=this.eoc(null !== (E=this.config.uiVersion) && void 0 !== E?E:"");F.kpb && (L.set(x.hC.T6a,F.kpb),F.uiVersion && L.set(x.hC.Nhb,encodeURIComponent(F.uiVersion)),E=this.NG.Je,(null === E || void 0 === E?0:E.name) && L.set(x.hC.j6a,encodeURIComponent(E.name)),(null === E || void 0 === E?0:E.version) && L.set(x.hC.k6a,encodeURIComponent(E.version)),(null === (G=null === E || void 0 === E?void 0:E.os) || void 0 === G?0:G.name) && L.set(x.hC.Tcb,encodeURIComponent(E.os.name)),(null === (J=null === E || void 0 === E?void 0:E.os) || void 0 === J?0:J.version) && L.set(x.hC.Ucb,encodeURIComponent(E.os.version)));};c.prototype.retry=function(F,H,E){var G,J;G=this;E=void 0 === E?0:E;if(void 0 !== F.J){J=this.DHb.Boc(F.pl,F.J);if(J){if(J.KX)throw {pboc:!1,code:"FAIL",detail:{message:"The request is cancelled because of the backoff"}};return this.wait(F.JJ,J.ANc).then(function(){return G.retry(F,H,E);});}}return this.j8b(E++,F,H).then(function(L){G.receiver.DZa({command:F.Tr + "-attempt",inputs:H,outputs:L,url:F.url});G.DHb.aKc(L.headers,F.pl);if(L.retry)return G.wait(F.JJ,L.delay).then(function(){return G.retry(F,H,E);});if(L.error)throw L.error;if(void 0 === L.FHb)throw {pboc:!1,code:"FAIL",detail:{message:"The response was undefined"}};return L.FHb;});};c.prototype.Vs=function(F,H,E,G){var J;J=y.sia.pxc(H);if(J && E < G)return !0;J?this.log.error("Method failed, retry limit exceeded, giving up",Object.assign({Method:F.Tr,Attempt:E + 1,MaxRetries:G},this.SNa(H))):this.log.error("Method failed with an error that is not retriable, giving up",Object.assign({Method:F.Tr},this.SNa(H)));return !1;};c.prototype.P$b=function(F,H,E){F=null === F || void 0 === F?void 0:F.N_a;if(void 0 !== F)return (0,g.Zi)(F);F=1E3 * (0 === H?1:H);H=1E3 * Math.pow(2,Math.min(H,E));return (0,g.ic)(this.JZa.wJb(F,H));};c.prototype.wait=function(F,H){var E,G;E=this;G=new Promise(function(J){E.Ad.Tq(H || g.ia,J);});return F?(0,z.uJb)(F,G,!0):G;};c.prototype.SNa=function(F){return (0,q.Rqa)(F)?F:{message:F.message,subCode:F.subCode,extCode:F.extCode,mslCode:F.EH,data:F.data};};c.prototype.Ybc=function(F){F.j2();};c.prototype.rpb=function(F,H){var E;F.Ud(H);if(this.kG)try{E=this.json.stringify(this.kG);this.log.error("PBO command history",E);return E;}catch(G){}return "";};D=c;b.HEa=D;b.HEa=D=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(h.zb)),t.__param(1,(0,f.v)(e.Ghb)),t.__param(2,(0,f.v)(k.AV)),t.__param(3,(0,f.v)(l.fe)),t.__param(4,(0,f.v)(m.st)),t.__param(5,(0,f.v)(p.Pia)),t.__param(6,(0,f.v)(r.Cl)),t.__param(7,(0,f.v)(u.oz)),t.__param(8,(0,f.v)(v.pBa)),t.__param(9,(0,f.v)(A.aFa)),t.__param(10,(0,f.v)(B.Jib)),t.__param(11,(0,f.v)(a.Hdb))],D);n.prototype.j2=function(){this.success=!0;this.elapsedTime=this.Va.yc().ea(this.startTime);};n.prototype.Ud=function(F){this.success=!1;this.elapsedTime=this.Va.yc().ea(this.startTime);this.VSc=F.subCode || F.subCode;this.Hlc=F.extCode || F.extCode;};n.prototype.toString=function(){return JSON.stringify(this);};n.prototype.toJSON=function(){var F;F=Object.assign({success:this.success,method:this.context.Tr,startTime:this.startTime.na(g.ya),elapsedTime:this.elapsedTime?this.elapsedTime.na(g.ya):"in progress"},this.transport.YMa());return this.success?F:Object.assign(Object.assign(Object.assign({},F),this.transport.YMa()),{subcode:this.VSc,extcode:this.Hlc});};d.prototype.append=function(F){this.kG.push(F);0 < this.config.aTa && this.kG.length > this.config.aTa && this.kG.shift();};d.prototype.toJSON=function(){return this.kG;};},45385:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.sia=void 0;n=a(36129);d.pxc=function(c){var f,g;f=c && c.code;g=c && (c.Ta || c.subCode);c=c.extCode !== n.Bha.Fdb;g=!!g && g >= n.Y.J4 && g <= n.Y.G4 && c;return !("RETRY" !== f && "FAIL" !== f) || g;};d.Mqc=function(c,f){f=null === f || void 0 === f?void 0:f.I_;return void 0 !== f?f:"FAIL" === (null === c || void 0 === c?void 0:c.code)?1:void 0;};d.gHc=function(c,f){var g;if(f){try{g=c.parse(f);}catch(e){throw {MH:!0,code:"FAIL",message:"Unable to parse the response body",data:f};}if(g.error)throw g.error;if(g.result){if(Array.isArray(g.result) && (c=g.result.find(function(e){return e.error;})))throw c.error;return g;}throw {MH:!0,code:"FAIL",message:"There is no result property on the response"};}throw {MH:!0,code:"FAIL",message:"There is no body property on the response"};};b.sia=d;},23632:function(t,b,a){var n,c,f;function d(g,e){this.dQ=e;this.log=g.wb("Pbo");this.links={};}Object.defineProperty(b,"__esModule",{value:!0});b.NEa=void 0;t=a(22970);n=a(22674);c=a(87386);a=a(33554);d.prototype.pKa=function(g){g && (!1,this.links=Object.assign(Object.assign({},this.links),g));};d.prototype.BZ=function(g){!1;return this.links[g];};f=d;b.NEa=f;b.NEa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(a.WB))],f);},17108:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.$Ea=void 0;t=a(22970);a=a(22674);d.prototype.OPc=function(c){this.listener=c;};d.prototype.DZa=function(c){var f;null === (f=this.listener) || void 0 === f?void 0:f.call(this,c);};n=d;b.$Ea=n;b.$Ea=n=t.__decorate([(0,a.aa)()],n);},91918:function(t,b,a){var c,f;function d(g,e,h,k,l,m,p){this.version=g;this.url=e;this.id=h;this.languages=k;this.Cb=l;this.cjc=m;this.ZCc=p;}function n(g){this.Yi=g;}Object.defineProperty(b,"__esModule",{value:!0});b.bFa=void 0;t=a(22970);c=a(22674);a=a(7605);n.prototype.create=function(g,e,h,k,l){return new d(this.Yi.version,e,g,this.Yi.languages,h,k,l);};f=n;b.bFa=f;b.bFa=f=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(a.oz))],f);d.prototype.toJSON=function(){return {version:this.version,url:this.url,id:this.id,languages:this.languages,params:this.Cb,echo:this.cjc};};},97361:function(t,b,a){var n,c;function d(f){this.log=f.wb("ZuulRetryPolicyParser");}Object.defineProperty(b,"__esModule",{value:!0});b.OHa=void 0;t=a(22970);n=a(22674);a=a(87386);d.prototype.isc=function(f){var g,e;try{g=f["x-netflix.retry.server.policy"];if(g){e=JSON.parse(g);this.VWc(e);return {N_a:e.retryAfterSeconds,I_:e.maxRetries};}}catch(h){!1;}};d.prototype.VWc=function(f){if(void 0 !== f.retryAfterSeconds && "number" !== typeof f.retryAfterSeconds)throw Error("retryAfterSeconds is not a number");if(void 0 !== f.maxRetries && "number" !== typeof f.maxRetries)throw Error("maxRetries is not a number");};c=d;b.OHa=c;b.OHa=c=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.zb))],c);},5652:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.transports=void 0;t=a(22674);d=a(70865);n=a(14543);c=a(60204);f=a(89146);g=a(74429);e=a(34231);b.transports=new t.Be(function(h){h(d.tja).to(g.kHa).sa();h(n.kcb).to(c.RDa);h(n.Kgb).to(f.OGa);h(n.Ghb).Zf(function(k){return function(l){var m;return k.Ib.get(d.tja).WT(null !== (m=null === l || void 0 === l?void 0:l.ZCc) && void 0 !== m?m:e.ax.AO)?k.Ib.get(n.kcb):k.Ib.get(n.Kgb);};});});},14543:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Ghb="TransportFactorySymbol";b.kcb="MslTransportSymbol";b.Kgb="SslTransportSymbol";},70865:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.tja="TransportConfigSymbol";},60204:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m){var p;p=this;this.XL=l;this.profile=m;this.log=k.wb("MslTransport");this.XL().then(function(r){return p.Esa=r;});}Object.defineProperty(b,"__esModule",{value:!0});b.RDa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(97996);g=a(5021);a=a(71501);e={license:!0};d.prototype.send=function(k,l){var m,p;m=this;p={pS:Object.assign({Ke:k.Ke,log:k.log,profile:this.profile},k.uLa),method:k.Tr,url:k.url.href,body:JSON.stringify(l),timeout:k.timeout.na(g.ya),ERb:this.profile,tMc:!e[k.Tr],tFb:!!e[k.Tr],dA:!0,FT:k.xn,headers:k.headers};!1;return this.XL().then(function(r){return r.send(p).catch(function(q){var u;if(!q.error)throw (q.subCode=q.Ta || q.subCode,q);u=q.error;u.headers=q.headers;m.log.error("Error sending MSL request",{mslCode:u.EH,subCode:u.subCode,data:u.data,message:u.message});throw u;});});};d.prototype.YMa=function(){var k;return {userTokens:null === (k=this.Esa) || void 0 === k?void 0:k.oS.vSa()};};h=d;b.RDa=h;b.RDa=h=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(f.m5)),t.__param(2,(0,n.v)(a.ZV))],h);},89146:function(t,b,a){var n,c,f,g;function d(e,h){this.Ke=h;this.log=e.wb("SslTransport");}Object.defineProperty(b,"__esModule",{value:!0});b.OGa=void 0;t=a(22970);n=a(22674);c=a(5021);f=a(87386);a=a(32934);d.prototype.send=function(e,h){var k,l;k=this;l={url:e.url.href,tK:"nq-" + e.Tr,wIb:JSON.stringify(h),Gma:e.timeout.na(c.ya),headers:e.headers,withCredentials:!0,Gw:"pbo"};!1;return new Promise(function(m,p){k.Ke.download(l,function(r){r.success?m(r):p(r);});}).then(function(m){return {body:m.content,headers:m.headers};}).catch(function(m){var p;if(!m.error)throw (m.subCode=m.Ta || m.subCode,m);p=m.error;p.headers=m.headers;k.log.error("Error sending SSL request",{subCode:p.subCode,data:p.content,message:p.message});throw p;});};d.prototype.YMa=function(){return {};};g=d;b.OGa=g;b.OGa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.zb)),t.__param(1,(0,n.v)(a.bC))],g);},74429:function(t,b,a){var n,c,f,g,e;function d(h){return c.Qf.call(this,h,"TransportConfigImpl") || this;}Object.defineProperty(b,"__esModule",{value:!0});b.kHa=void 0;t=a(22970);n=a(22674);c=a(64174);f=a(83767);g=a(12501);e=a(34231);Ia(d,c.Qf);d.prototype.WT=function(h){var k,l;k=this.L2;l=this.jmb;switch(h){case e.ax.AO:return k;case e.ax.Seb:return k && !l;case e.ax.Gcb:return !1;}};Ha.Object.defineProperties(d.prototype,{L2:{configurable:!0,enumerable:!0,get:function(){return !0;}},jmb:{configurable:!0,enumerable:!0,get:function(){return !1;}}});a=d;b.kHa=a;t.__decorate([g.config(g.pd,"usesMsl")],a.prototype,"L2",null);t.__decorate([g.config(g.pd,"allowRequestsWithoutMsl")],a.prototype,"jmb",null);b.kHa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.Po))],a);},75236:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.vja="UserAgentDataProviderSymbol";b.bib="UserAgentDataAsyncProviderSymbol";},92623:function(t,b,a){var e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B;function d(C,D,F){this.ud=C;this.groups=D;this.xJ=F;C=v(C,D,F);this.info=C.info.bind(C);this.fatal=C.fatal.bind(C);this.error=C.error.bind(C);this.warn=C.warn.bind(C);this.trace=C.trace.bind(C);this.debug=C.debug.bind(C);this.log=C.log.bind(C);}function n(){}function c(){}function f(){return u?u:"0.0.0.0";}function g(C){C({rbd:0,zdd:0,k9c:0,O7c:0});}e=a(90745);n.prototype.set=function(C,D){l[C]=D;m.save(C,D);};n.prototype.get=function(C,D){if(l.hasOwnProperty(C))return l[C];q.trace("key: " + C + ", is not available in storage cache and needs to be retrieved asynchronously");m.load(C,function(F){F.success?(l[C]=F.data,D && D(F.data)):l[C]=void 0;});};n.prototype.remove=function(C){m.remove(C);};n.prototype.clear=function(){q.info("WARNING: Calling unimplemented function Storage.clear()");};c.prototype.now=function(){return p();};c.prototype.ha=function(){return r();};c.prototype.Bsa=function(C){return C + p() - r();};c.prototype.lta=function(C){return C + r() - p();};d.prototype.Qqb=function(C){var D;D=[];this.xJ && Array.isArray(this.xJ)?D.push.apply(D,za(this.xJ)):this.xJ && D.push(this.xJ);D.push(C);return new d(this.ud,this.groups,D);};Ha.Object.defineProperties(d.prototype,{prefix:{configurable:!0,enumerable:!0,get:function(){return Array.isArray(this.xJ)?this.xJ.join(" "):this.xJ;}}});w=(function(){var C;C=Promise;C.prototype.fail=Promise.prototype.catch;return C;})();t.exports=function(C){h=C.qua;v=C.gn;m=C.storage;l=C.PR;p=C.hrc;r=C.getTime;q=C.z7b;x=C.Al;B=C.vm;y=C.P3;A=C.SourceBuffer;z=C.MediaSource;u=C.I9c;k=C.PC;return {name:"cadmium",PC:k,qua:h,storage:new n(),Storage:n,time:new c(),events:new e.EventEmitter(),console:new d("JS-ASE",void 0,"default"),Console:d,options:{},Promise:w,Al:x,P3:y,s1c:A,MediaSource:z,vm:B,GD:{name:f},memory:{E8c:g},DZ:C.DZ,$ma:C.$ma,pK:C.pK,Sna:C.Sna,ping:function(D){fetch(D).catch(function(){});}};};},87141:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t.exports=function(a){return {minInitVideoBitrate:a.ny,maxInitVideoBitrate:a.WA,minInitAudioBitrate:a.my,maxInitAudioBitrate:a.tu,minAllowedVideoBitrate:a.mS,maxAllowedVideoBitrate:a.Dba,switchableAudioProfiles:a.Mp,switchableAudioProfilesOverride:a.rI,minAcceptableVideoBitrate:a.lS,minRequiredBuffer:a.oy,minPrebufSize:a.zp,minCheckBufferingCompleteInterval:a.Xba,rebufferingFactor:a.oda,useMaxPrebufSize:a.Qfa,maxPrebufSize:a.AD,maxRebufSize:a.Jba,maxBufferingTime:a.As,minAudioMediaRequestSizeBytes:a.qsa,minVideoMediaRequestSizeBytes:a.usa,initialBitrateSelectionCurve:a.fL,throughputPercentForAudio:a.nU,bandwidthMargin:a.J7,bandwidthMarginContinuous:a.K7,bandwidthMarginCurve:a.L7,conservBandwidthMargin:a.o8,switchConfigBasedOnInSessionTput:a.bfa,conservBandwidthMarginTputThreshold:a.q8,conservBandwidthMarginCurve:a.p8,maxTotalBufferLevelPerSession:a.eS,skipBitrateInUpswitch:a.Fea,watermarkLevelForSkipStart:a.gga,highStreamRetentionWindow:a.baa,lowStreamTransitionWindow:a.pba,highStreamRetentionWindowUp:a.daa,lowStreamTransitionWindowUp:a.rba,highStreamRetentionWindowDown:a.caa,lowStreamTransitionWindowDown:a.qba,highStreamInfeasibleBitrateFactor:a.aaa,lowestBufForUpswitch:a.UA,lockPeriodAfterDownswitch:a.XR,lowWatermarkLevel:a.tba,lowestWaterMarkLevel:a.VA,lowestWaterMarkLevelBufferRelaxed:a.vba,mediaRate:a.gS,maxTrailingBufferLen:a.xH,audioBufferTargetAvailableSize:a.x7,videoBufferTargetAvailableSize:a.Wfa,fastUpswitchFactor:a.eZ,fastDownswitchFactor:a.C9,maxMediaBufferAllowed:a.wH,simulatePartialBlocks:a.zwa,considerConnectTime:a.r8,connectTimeMultiplier:a.n8,maxNetworkErrorsDuringBuffering:a.csa,maxBufferingTimeAllowedWithNetworkError:a.Eba,locationStatisticsUpdateInterval:a.lba,probeServerWhenError:a.RH,allowSwitchback:a.xP,probeDetailDenominator:a.Pua,maxDelayToReportFailure:a.H_,maxActiveRequestsSABCell100:a.Wra,headerRequestSize:a.Y$,estimateHeaderSize:a.XY,minBufferLenForHeaderDownloading:a.T_,pipelineEnabled:a.Lq,maxParallelConnections:a.dsa,socketReceiveBufferSize:a.w1a,audioSocketReceiveBufferSize:a.A7,videoSocketReceiveBufferSize:a.aga,headersSocketReceiveBufferSize:a.bqa,aseReportDenominator:a.vv,aseReportIntervalMs:a.Qz,prebufferTimeLimit:a.U0,penaltyFactorForLongConnectTime:a.hua,longConnectTimeThreshold:a.Mra,additionalBufferingLongConnectTime:a.cla,additionalBufferingPerFailure:a.dla,rebufferCheckDuration:a.g1,enableOCSideChannel:a.sQ,OCSCBufferQuantizationConfig:a.RV,defaultHeaderCacheSize:a.fna,defaultHeaderCacheDataPrefetchMs:a.ena,networkFailureResetWaitMs:a.Lsa,networkFailureAbandonMs:a.Ksa,maxThrottledNetworkFailures:a.Kba,throttledNetworkFailureThresholdMs:a.jfa,lowThroughputThreshold:a.Nra,excludeSessionWithoutHistoryFromLowThroughputThreshold:a.doa,requireAudioStreamToEncompassVideo:a.BT,enableManagerDebugTraces:a.XOa,netIntrStoreWindow:a.ZEb,minNetIntrDuration:a.uEb,fastHistoricBandwidthExpirationTime:a.gub,bandwidthExpirationTime:a.snb,failureExpirationTime:a.cub,expandDownloadTime:a.Mtb,ignoreShortResponses:a.hqa,minimumMeasurementTime:a.ysa,minimumMeasurementBytes:a.xsa,probingMeasurementTime:a.Sua,probingMeasurementBytes:a.Rua,historicBandwidthUpdateInterval:a.$yb,ase_stream_selector:a.Pmb,liveStreamSelectorAlgorithm:a.fba,jointStreamSelectorEnabled:a.Taa,enableFilters:a.ctb,filterDefinitionOverrides:a.oub,defaultFilter:a.Jrb,secondaryFilter:a.KLb,defaultFilterDefinitions:a.YNa,bufferingSelectorAlgorithm:a.T7,ase_dump_fragments:a.Xma,ase_location_history:a.Zma,secondThroughputEstimator:a.Wva,marginPredictor:a.Vra,networkMeasurementGranularity:a.Nsa,maxIQRSamples:a.eWa,minIQRSamples:a.wWa,periodicHistoryPersistMs:a.Nca,saveBitrateMs:a.$da,needMinimumNetworkConfidence:a.Gsa,biasTowardHistoricalThroughput:a.Ula,maxFastPlayBufferInMs:a.Zra,minAudioMediaRequestDuration:a.ZA,minVideoMediaRequestDuration:a.CD,minAudioMediaRequestDurationCache:a.ZA,minVideoMediaRequestDurationCache:a.CD,addHeaderDataToNetworkMonitor:a.Vka,hindsightDenominator:a.XSa,hindsightDebugDenominator:a.WSa,hindsightParam:a.YSa,minimumTimeBeforeBranchDecision:a.dca,maxNumSessionHistoryStored:a.Iba,minSessionHistoryDuration:a.aca,waitForDrmToAppendMedia:a.bya,forceAppendHeadersAfterDrm:a.zoa,startMonitorOnLoadStart:a.Hwa,reportFailedRequestsToNetworkMonitor:a.tva,maxActiveRequestsPerSession:a.F_,limitAudioDiscountByMaxAudioBitrate:a.wra,appendFirstHeaderOnComplete:a.qla,applyProfileTimestampOffset:a.VJ,profileTimestampOffsets:a.gda,applyProfileStreamingOffset:a.Sh,mediaSourceSupportsNegativePts:a.Sba,requireDownloadDataAtBuffering:a.Nda,requireSetupConnectionDuringBuffering:a.Oda,selectStartingVMAFMethod:a.OM,activateSelectStartingVMAF:a.UW,minStartingVideoVMAF:a.jw,minAcceptableVMAF:a.kS,minAllowedVmaf:a.DH,enableCombinedPlaygraphs:a.nQ,enableAdPlaygraphs:a.WC,enableLiveAdPlaygraphs:a.qQ,enableLiveAdDynamicAutoskip:a.pQ,retainSbrOnFade:a.z1,excludedContentPlaygraphIds:a.A9,enableDiscontiguousBuffering:a.JY,forceImmediateTransitionTypeForTitles:a.Q9,forceImmediateTransitionExitZone:a.P9,useBufferSizeLimiter:a.FI,maxAllowedOutstandingRequests:a.G_,minStreamableConcurrencyWindow:a.bca,streamableConcurrencyFactor:a.Rea,bufferingConcurrencyWindow:a.HP,enableResolutionVMAFStreamFilter:a.QY,resolutionVMAFCappingRuleList:a.w1,percentCapTitlesForResolutionVMAFStreamFilter:a.Lca,useExitZones:a.Pfa,perFragmentVMAFConfig:a.MS,paddingDurationMs:a.Tta,paddingMediaType:a.Uta,paddingCodecSelector:a.HS,supportsPtsChanged:a.d2a,ciPredictorSource:a.sma,experimentalFilter:a.Ntb,simulationDurationStrategy:a.Awa,pipelineHealthThresholdCriticalMs:a.mua,pipelineHealthThresholdLowMs:a.nua,enableRequestAbandonment:a.tQ,requestAbandonmentLockIntervalMs:a.Gda,streamModeAppendAttachThreshold:a.Uwa,minProbeIntervalMs:a.Zba,liveEdgeCushion:a.zra,enableLive504Handling:a.Ona,liveStreamSelectorUseLatency:a.gba,latencyMultiplierForLive:a.pra,liveLowQualityAvoidance:a.Cra,liveLowQualityThreshold:a.eba,liveLowQualityMultiplier:a.w_,liveBufferRatioStrategy:a.xra,liveMaxUpswitchSteps:a.Dra,enableConditionalServerTimeUpdate:a.Lna,negligibleServerTimeDeltaDifference:a.Isa,liveSwitchStreamsOnErrorInPipeline:a.Ira,enableMissingSegmentsReplacement:a.rQ,simulateLiveEdge:a.YT,liveShouldAccountForPlayDelay:a.uVa,livePrefetchEnabled:a.Fra,livePrefetchEnabledForStickySteering:a.Gra,decryptOCSideChannelMinInterval:a.rY,decryptOCSideChannelMinIntervalAfterCompleted:a.dna,enableLiveOCSideChannelRefresh:a.LY,liveOCSideChannelRefreshInterval:a.x_,liveRequestSpreadMs:a.Hra,liveConsiderSpreadInCushion:a.qVa,enableTwoPartLiveFragmentEditing:a.Qna,liveSlowBufferFilling:a.VR,liveEarlyRequestProbability:a.yra,liveEarlyRequestDefaultOffsetMs:a.dba,supportLiveIdrMismatch:a.Vea,synthesizeLiveIdrMismatch:a.n2,alwaysRetainAds:a.o7,enableMediaEventsTrack:a.OY,liveAdManifestWindowMs:a.oH,liveAdManifestWindowAllowanceMs:a.QR,syntheticAdBreakUx:a.dfa,enableMediaEventHistory:a.n9,enableLiveAdBreakReportingEvents:a.oQ,enableBlackBoxNotification:a.yK,minimumPresentationDelayMs:a.ll,liveEdgeSegmentSkipCount:a.SR,probeBeforeSwitchingBackToPrimary:a.cda,minIntervalForSwitchingBackToPrimary:a.U_,maxIntervalForSwitchingBackToPrimary:a.Fba,enableLiveRequestPacing:a.MY,logarithmicRequestPacingCurveCenterPositionMs:a.B_,logarithmicRequestPacingCurveSharpness:a.C_,maxLiveTargetBufferDurationMs:a.OL,enableSvodRequestPacing:a.p9,minSvodTargetBufferDurationMs:a.W_,svodBufferGrowthRateSlope:a.k2,enableCprVideo:a.xG,enableCprVideoNonPipelined:a.k9,enableInitialThroughputHistory:a.KY,enableActiveRequestsInFilters:a.IY};};},31594:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I;Object.defineProperty(b,"__esModule",{value:!0});b.Xzc=function(O){O.load(d.MC,h.oU,n.VCb,k.cA,c.HEb,f.ba,g.URb,e.bzb,l.storage,m.FP,p.Xnb,r.oDb,q.XL,u.gp,v.logblobs,w.dFb,x.tvb,y.hJb,A.US,z.Msb,B.Tsb,C.Of,D.og,F.bb,H.QEb,E.CHb,G.j,J.Apb,L.transports,K.wD,M.Hh,P.Xmb,I.S);};d=a(28131);n=a(38385);c=a(56371);f=a(33194);g=a(36149);e=a(75950);h=a(40076);k=a(51259);l=a(62945);m=a(66393);p=a(6498);r=a(51770);q=a(7826);u=a(82656);v=a(21009);w=a(30698);x=a(63341);y=a(32754);A=a(72614);z=a(1891);B=a(49594);C=a(28838);D=a(99584);F=a(92692);H=a(12653);E=a(31360);G=a(65945);J=a(18880);L=a(5652);K=a(43367);M=a(87886);P=a(87284);I=a(81737);},83989:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.md=void 0;t=a(22674);d=a(71501);n=a(88351);c=a(49594);f=a(83810);g=a(51120);e=a(31594);a=a(99198);b.md=new t.Uga({ZT:!0});(0,e.Xzc)(b.md);b.md.load(n.platform);b.md.load(f.config);c.GY.load(g.Usb);b.md.load(a.umb);b.md.load(a.profile);b.md.bind(d.I$a).Pp(b.md);},76892:function(t,b,a){var c,f,g,e,h,k;function d(){}function n(){}Object.defineProperty(b,"__esModule",{value:!0});b.uHa=b.vHa=void 0;t=a(22970);g=a(22674);a=a(22365);e={sD:!1,reason:"uninitialized"};h={sD:!1,reason:"uninitialized"};k=null === (f=null === (c=null === a.zg || void 0 === a.zg?void 0:a.zg.userAgentData) || void 0 === c?void 0:c.getHighEntropyValues) || void 0 === f?void 0:f.call(c,["architecture","platformVersion"]);null === k || void 0 === k?void 0:k.then(function(l){var m;m=l.architecture;e=m?{sD:!0,architecture:m}:{sD:!1,reason:"undefined"};h=(l=l.platformVersion)?{sD:!0,version:l}:{sD:!1,reason:"undefined"};}).catch(function(){e={sD:!1,reason:"exception"};h={sD:!1,reason:"exception"};});Ha.Object.defineProperties(n.prototype,{architecture:{configurable:!0,enumerable:!0,get:function(){return e;}},platformVersion:{configurable:!0,enumerable:!0,get:function(){return h;}}});c=n;b.vHa=c;b.vHa=c=t.__decorate([(0,g.aa)()],c);Ha.Object.defineProperties(d.prototype,{architecture:{configurable:!0,enumerable:!0,get:function(){return Promise.resolve().then(function(){return null === k || void 0 === k?void 0:k.then(function(l){return l.architecture;});});}},platformVersion:{configurable:!0,enumerable:!0,get:function(){return Promise.resolve().then(function(){return null === k || void 0 === k?void 0:k.then(function(l){return l.platformVersion;});});}}});c=d;b.uHa=c;b.uHa=c=t.__decorate([(0,g.aa)()],c);},25066:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.Yoc=function(e){return Object.assign(Object.assign({},(0,g.g$)()),{Jx:e.PAb?"T":e.Tqa?"Q":e.yaa?"C":"M",Yt:e.PAb?"NFCDTS-01-":e.Tqa?"NFCDQS-01-":e.KA?"NFCDCH-02-":e.nD?"NFCDCH-MC-":e.yaa?"NFCDCH-01-":e.Bqa?"NFCDCH-AP-":e.waa?"NFCDCH-AT-":e.BR?"NFCDCH-PH-":"NFCDCH-LX-",sK:e.yaa?"chromeos-cadmium":"chrome-cadmium"});};b.Woc=function(e){var h,k,l,m,p,r;h=(0,g.f$)();k=Object.assign(Object.assign({},h),{LC:!0,AK:!0,GU:!0});l=[c.H.UI];m=[c.H.pV];p={minimumCores:3};r={minimumCores:5};e.KA && (k.ki=[].concat(za((0,f.wy).apply(null,[h.ki].concat(za(l)))),za((0,f.Lf)([c.H.Qw,c.H.Sw,c.H.GN,c.H.HN].concat(za(l),[c.H.Uw,c.H.Ww,c.H.IN,c.H.JN]),r))),k.Rj=[].concat(za((0,f.wy).apply(null,[h.Rj].concat(za(m)))),za((0,f.Lf)([c.H.Pw,c.H.Rw].concat(za(m),[c.H.Tw,c.H.Vw]),r))),115 <= e.Av && (k.ki=[].concat(za(k.ki),za((0,f.Lf)([].concat(za(c.xc.A3),za(c.xc.dV),za(c.xc.cV),za(c.xc.bV),za(c.xc.aV)))))));e.nD && (k.ki=[].concat(za((0,f.wy).apply(null,[h.ki].concat(za(l)))),za((0,f.Lf)([c.H.Qw,c.H.Sw,c.H.GN,c.H.HN].concat(za(l),[c.H.Uw,c.H.Ww,c.H.IN,c.H.JN]),p))),k.Rj=[].concat(za((0,f.wy).apply(null,[h.Rj].concat(za(m)))),za((0,f.Lf)([c.H.Pw,c.H.Rw].concat(za(m),[c.H.Tw,c.H.Vw]),p))));e.yaa && (k.ki=(0,f.Lf)([].concat(za(c.xc.a3),za(c.xc.A3),za(c.xc.cV),za(c.xc.dV),za(c.xc.aV),za(c.xc.bV))),k.Rj=(0,f.Lf)([].concat(za(c.xc.Z2),za(c.xc.Mga),za(c.xc.Lga),za(c.xc.Nga))));e.fUa && (k.ki=[].concat(za((0,f.wy).apply(null,[h.ki].concat(za(l)))),za((0,f.Lf)([c.H.Qw,c.H.Sw].concat(za(l),[c.H.Uw,c.H.Ww]),r))),k.Rj=[].concat(za((0,f.wy).apply(null,[h.Rj].concat(za(m)))),za((0,f.Lf)([c.H.Pw,c.H.Rw].concat(za(m),[c.H.Tw,c.H.Vw]),r))));e.Tqa && (k.ZJ=(0,f.Lf)([c.Pc.Lo,c.Pc.VE,c.Pc.Qo,c.Pc.UN,c.Pc.VN,c.Pc.WN]),k.ki=(0,f.Lf)([].concat(za(c.xc.a3),za(c.xc.A3),za(c.xc.cV),za(c.xc.dV),za(c.xc.aV),za(c.xc.bV),za(c.xc.zza))),k.Rj=(0,f.Lf)([].concat(za(c.xc.Z2),za(c.xc.Mga),za(c.xc.Lga),za(c.xc.Nga))));return k;};b.Xoc=function(e){var h;h={droppedFrameRateFilterEnabled:!0,workaroundValueForSeekIssue:500,logMediaPipelineStatus:!0,prepareCadmium:!0,enableLdlPrefetch:!0,captureBatteryStatus:!0,enableMediaPrefetch:!0,defaultHeaderCacheSize:15,enableSeamless:!0,videoCapabilityDetectorType:d.Fr.hV,preciseSeeking:!0,webkitDecodedFrameCountIncorrectlyReported:!0,enableCDMAttestedDescriptors:!0,enablePRK:!0,useEncryptedEvent:!1,applyProfileStreamingOffset:!0,applyProfileTimestampOffset:!0};80 <= e.Av && (h=Object.assign(Object.assign({},h),{enableMediaCapabilities:!0,enableMediaCapabilitiesSourceBufferCheck:!0}));e.waa && (h=Object.assign(Object.assign({},h),{enableFullHdForHWDRM:!0}));e.yaa && (h=Object.assign(Object.assign({},h),{enableHWDRM:!1,enableHwdrmOnArm:!0,prepareLdlCacheMaxCount:15,enableFullHdForHWDRM:!0,enableAvcHighHwdrm:!0,enableHevcPrkHwdrm:!0}),89 <= e.Av && (h=Object.assign(Object.assign({},h),{enableHEVC:!0,enableHDR:!0,enableMediaCapabilities:!0,enableHdcp:!0})));115 <= e.Av && e.KA && (h=Object.assign(Object.assign({},h),{enableHWDRM:!0,enableAvcHighHwdrm:!0,enableHevcPrkHwdrm:!0,prepareLdlCacheMaxCount:15,microsoftClearLeadRequiresSwdrm:!0,microsoftHwdrmRequiresHevc:!0,microsoftHwdrmRequiresQHD:!0,enableKeySystemRestrictor:!0,enableCachedErrors:!0,enableHEVC:!0,enableHdcp:!0,enableHDR:!0,validateKeySystemAccess:!0,keySystemList:[n.mb.Wc,n.mb.Bja],logKeySystemHasHwdrmAvailable:!0,enableNonSeamlessTransitions:!0,playreadySegmentTypesRequiringNonSeamlessTransitions:["paddingToContent","paddingToAd","contentToAd","adToContent"]}));if(e.KA || e.nD)h=Object.assign(Object.assign({},h),{enableFullHdForSWDRM:!0});e.KA && 99 <= e.Av && (h=Object.assign(Object.assign({},h),{enableAV1:!0}));e.nD && 113 <= e.Av && (h=Object.assign(Object.assign({},h),{enableAV1:!0}));e.fUa && 113 <= e.Av && (h=Object.assign(Object.assign({},h),{enableAV1:!0}));(e.nD || e.KA) && 113 <= e.Av && (h=Object.assign(Object.assign({},h),{enableXHEAAC:!0}));e.Tqa && (h=Object.assign(Object.assign({},h),{enableHWDRM:!0,prepareCadmium:!1,prepareLdlCacheMaxCount:10,enableFullHdForHWDRM:!0,enableSeamless:!1,enableDDPlus51:!0,enableDDPlusAtmos:!0}));return h;};d=a(56800);n=a(17612);c=a(75568);f=a(88195);g=a(64232);},30837:function(t,b,a){var m,p,r,q,u,v,w;function d(x,y){var A,z;if(x)(A=1440 <= Ba.screen.height * Ba.devicePixelRatio,z=(x=g() && e() && (A || h() || n())) || f());else z=(x=null === (z=Ba.MSMediaKeys) || void 0 === z?void 0:z.isTypeSupported(p.mb.Wc,u.uc.uWa)) || (null === (A=Ba.MSMediaKeys) || void 0 === A?void 0:A.isTypeSupported(p.mb.fC,u.uc.uWa));y && (x=z=!1);return {ixc:x,JAb:z};}function n(){var x;return !(null === (x=Ba.matchMedia) || void 0 === x || !x.call(Ba,"(dynamic-range: high)").matches);}function c(x,y){var A,z;try{return "probably" === (null === (z=null === (A=Ba.MSMediaKeys) || void 0 === A?void 0:A.isTypeSupportedWithFeatures) || void 0 === z?void 0:z.call(A,x,y));}catch(B){return !1;}}function f(){return c(p.mb.fC,u.uc.mCc);}function g(){return c(p.mb.Wc,"video/mp4;codecs=" + u.uc.HE + ";features=" + w.rm.CMa.join(","));}function e(){var x;return null === (x=Ba.MSMediaKeys) || void 0 === x?void 0:x.isTypeSupported(p.mb.Wc,u.uc.nCc);}function h(){return c(p.mb.Wc,"video/mp4;codecs=" + u.uc.mi + ";features=" + w.rm.vQa.join(","));}function k(x){var y;x=x.data;return "false" !== (null !== (y=null === x || void 0 === x?void 0:x.enableHWDRMForHEVCAndQHDOnly) && void 0 !== y?y:"true").toString().toLowerCase();}function l(x){var y;x=x.data;return "true" === (null !== (y=null === x || void 0 === x?void 0:x.disablePlayReady) && void 0 !== y?y:"false").toString().toLowerCase();}Object.defineProperty(b,"__esModule",{value:!0});b.Apc=function(x){return Object.assign(Object.assign({},(0,q.g$)()),{Jx:"D",Yt:x.nD?"NFCDIE-04-":x.fUa?"NFCDIE-LX-":x.Bqa?"NFCDIE-AP-":x.waa?"NFCDIE-AT-":x.BR?"NFCDIE-PH-":"NFCDIE-03-",sK:"edge-cadmium"});};b.ypc=function(x){var y,A;y=Object.assign(Object.assign({},(0,q.f$)()),{ZJ:(0,v.Lf)([r.Pc.Lo,r.Pc.VE,r.Pc.UN,r.Pc.VN,r.Pc.WN,r.Pc.Qo]),ki:(0,v.Lf)([].concat(za(r.xc.a3),za(r.xc.A3),za(r.xc.cV),za(r.xc.dV),za(r.xc.aV),za(r.xc.bV),za(r.xc.t6a),za(r.xc.u6a),za(r.xc.zza))),Rj:(0,v.Lf)([].concat(za(r.xc.Z2),za(r.xc.Mga),za(r.xc.Lga),za(r.xc.Nga))),fy:void 0,jaa:!1});A=k(x);x=l(x);d(A,x).JAb || (y.LC=!0,y.AK=!0,y.GU=!0);return y;};b.C8c=d;b.d9c=n;b.fxa=c;b.Wea=f;b.udd=g;b.wdd=e;b.vdd=h;b.zpc=function(x,y){var A,z,B,C;x=x.KA;A=k(y);y=l(y);A=d(A,y);y=A.JAb;z=A.ixc;B=(0,v.Lf)([r.H.SI,r.H.TI]);C=(0,v.Lf)([r.H.SI,r.H.TI,r.H.UI]);A={nudgeSourceBuffer:!0,audioCapabilityDetectorType:m.LE.bF,videoCapabilityDetectorType:m.Fr.bF,microsoftHwdrmRequiresHevc:!0,microsoftScreenSizeFilterEnabled:!0,addFailedLogBlobsToQueue:!1,bookmarkIgnoreBeginning:"2000",forceAppendEncryptedStreamHeaderFirst:!0,retainSbrOnFade:!0,enableXHEAAC:!0,useEncryptedEvent:!1};z={prepareCadmium:!0,enableLdlPrefetch:!y || z,licenseRenewalRequestDelay:5E3,enableMediaPrefetch:!0,defaultHeaderCacheSize:15,prepareLdlCacheMaxCount:15};B={audioCapabilityDetectorType:m.LE.PE,videoCapabilityDetectorType:m.Fr.hV,microsoftScreenSizeFilterEnabled:!1,keySystemList:[p.mb.Bja],licenseRenewalRequestDelay:0,audioProfiles:(0,v.Lf)([r.Pc.Lo,r.Pc.VE,r.Pc.Qo]),videoProfiles:x?C:B,liveVideoProfiles:(0,v.Lf)([r.H.bO,r.H.cO]),droppedFrameRateFilterEnabled:!0,enableCDMAttestedDescriptors:!0,enableFullHdForSWDRM:x?!0:!1};A=Object.assign(Object.assign({},A),z);x && (A=Object.assign(Object.assign({},A),{webkitDecodedFrameCountIncorrectlyReported:!0,noRenderTimeoutMilliseconds:1E4}));return y?Object.assign(Object.assign({},A),{microsoftClearLeadRequiresSwdrm:!0,enableHWDRM:!0,enableHEVC:!0,enablePRK:!0,enableDV:!0,enableHDR:!0,microsoftHwdrmRequiresHevc:!1,enableDDPlus51:!0,enableDDPlusAtmos:!0,keySystemList:[p.mb.Wc,p.mb.y_b],validateKeySystemAccess:!0,enableCDMAttestedDescriptors:!0,enableCachedErrors:!0,enableKeySystemRestrictor:!0,logKeySystemHasHwdrmAvailable:!0}):Object.assign(Object.assign({},A),B);};m=a(56800);p=a(17612);r=a(75568);q=a(64232);u=a(73796);v=a(88195);w=a(75456);},54534:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.Qpc=function(e){return Object.assign(Object.assign({},(0,f.g$)()),{Jx:"F",Yt:e.nD?"NFCDFF-MC-":e.KA?"NFCDFF-02-":e.Bqa?"NFCDFF-AP-":e.waa?"NFCDFF-AT-":e.BR?"NFCDFF-PH-":"NFCDFF-LX-",sK:"firefox-cadmium"});};b.Opc=function(e){var h,k,l,m;h=(0,f.f$)();k=Object.assign(Object.assign({},h),{LC:!0,AK:!0,GU:!0});l=[n.H.UI];if(e.KA){m={minimumCores:5};k.ki=[].concat(za((0,c.wy).apply(null,[h.ki].concat(za(l)))),za((0,c.Lf)([n.H.Qw,n.H.Sw].concat(za(l),[n.H.Uw,n.H.Ww]),m)));k.ki=[].concat(za(k.ki),za((0,c.Lf)([].concat(za(n.xc.dV),za(n.xc.cV),za(n.xc.bV),za(n.xc.aV)))));k.Rj=[].concat(za(k.Rj),za((0,c.Lf)([n.H.Pw,n.H.Rw,n.H.Tw,n.H.Vw],m)));}e.nD && (e={minimumCores:3},k.ki=[].concat(za((0,c.wy).apply(null,[h.ki].concat(za(l)))),za((0,c.Lf)([n.H.Qw,n.H.Sw].concat(za(l),[n.H.Uw,n.H.Ww]),e))),k.Rj=[].concat(za(k.Rj),za((0,c.Lf)([n.H.Pw,n.H.Rw,n.H.Tw,n.H.Vw],e))));return k;};b.Ppc=function(e){var h;h={droppedFrameRateFilterEnabled:!0,defaultHeaderCacheSize:15,enableMediaPrefetch:!0,enableLdlPrefetch:!0,prepareCadmium:!0,enableSeamless:!0,videoCapabilityDetectorType:d.Fr.hV,enableCDMAttestedDescriptors:!0,enablePRK:!0,preciseSeeking:!0,useEncryptedEvent:!1,forceAppendEncryptedStreamHeaderFirst:!1,retainSbrOnFade:!0,applyProfileStreamingOffset:!0};e.KA && 144 <= e.Av && (h=Object.assign(Object.assign({},h),{enableAvcHighHwdrm:!0,enableHevcPrkHwdrm:!0,microsoftClearLeadRequiresSwdrm:!0,prepareLdlCacheMaxCount:15,microsoftHwdrmRequiresHevc:!0,microsoftHwdrmRequiresQHD:!0,enableKeySystemRestrictor:!0,enableCachedErrors:!0,enableHEVC:!0,enableHdcp:!0,enableHDR:!0,validateKeySystemAccess:!0,enableFullHdForHWDRM:!0,keySystemList:[g.mb.geb,g.mb.Bja],logKeySystemHasHwdrmAvailable:!0}));(e.KA || e.nD) && 125 <= e.Av && (h=Object.assign(Object.assign({},h),{enableFullHdForSWDRM:!0,enableAV1:!0}));134 <= e.Av && (h=Object.assign(Object.assign({},h),{enableMediaCapabilities:!0}));return h;};d=a(56800);n=a(75568);c=a(88195);f=a(64232);g=a(17612);},64232:function(t,b,a){var n,c,f,g;function d(e,h){var k,l,m,p,r,q;k=e.tH;l=e.X_;e=e.J0;m=h.tH;p=h.X_;h=h.J0;r=void 0 === k || void 0 === m;q=r || void 0 === l || void 0 === p;return r || k > m || k === m && (q || l > p) || k === m && l === p && (q || void 0 === e || void 0 === h || e >= h);}Object.defineProperty(b,"__esModule",{value:!0});b.IAb=function(e,h,k,l){return d({tH:e.oGc,X_:e.pGc,J0:e.qGc},{tH:h,X_:k,J0:l});};b.lAb=function(e,h){return d({tH:e.Av},{tH:h});};b.g$c=d;b.g$=function(){return {version:"6.0054.419.911",Esa:!0,sZ:!0,Krb:["en-US"],HVa:"",Y8:"cadmium",GRb:!0,JKa:!0};};b.f$=function(){return {ZJ:(0,g.Lf)([f.Pc.Lo,f.Pc.VE,f.Pc.Qo]),ki:(0,g.Lf)([].concat(za(f.xc.a3))),Rj:(0,g.Lf)([].concat(za(f.xc.Z2))),fy:c.mb.Bja,vH:(0,n.ic)(31E3)};};n=a(5021);c=a(17612);f=a(75568);g=a(88195);},20447:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.mrc=function(g){return Object.assign(Object.assign({},(0,f.g$)()),{Jx:"O",Yt:g.Bqa?"NFCDOP-AP-":g.waa?"NFCDOP-AT-":g.BR?"NFCDOP-PH-":"NFCDOP-01-",sK:"opera-cadmium"});};b.krc=function(g){var e,h,k,l,m,p;e=(0,f.f$)();h=Object.assign(Object.assign({},e),{LC:!0,AK:!0,GU:!0});k=[n.H.UI];l=[n.H.pV];m={minimumCores:3};p={minimumCores:5};g.nD?(h.ki=[].concat(za((0,c.wy).apply(null,[e.ki].concat(za(k)))),za((0,c.Lf)([n.H.Qw,n.H.Sw].concat(za(k),[n.H.Uw,n.H.Ww]),m))),h.Rj=[].concat(za((0,c.wy).apply(null,[e.Rj].concat(za(l)))),za((0,c.Lf)([n.H.Pw,n.H.Rw].concat(za(l),[n.H.Tw,n.H.Vw]),m)))):(h.ki=[].concat(za((0,c.wy).apply(null,[e.ki].concat(za(k)))),za((0,c.Lf)([n.H.Qw,n.H.Sw].concat(za(k),[n.H.Uw,n.H.Ww]),p))),h.Rj=[].concat(za((0,c.wy).apply(null,[e.Rj].concat(za(l)))),za((0,c.Lf)([n.H.Pw,n.H.Rw].concat(za(l),[n.H.Tw,n.H.Vw]),p))));return h;};b.lrc=function(g){var e;e={droppedFrameRateFilterEnabled:!0,workaroundValueForSeekIssue:500,logMediaPipelineStatus:!0,prepareCadmium:!0,enableLdlPrefetch:!0,captureBatteryStatus:!0,enableMediaPrefetch:!0,defaultHeaderCacheSize:15,enableSeamless:!0,videoCapabilityDetectorType:d.Fr.hV,preciseSeeking:!0,webkitDecodedFrameCountIncorrectlyReported:!0,enableCDMAttestedDescriptors:!0,useEncryptedEvent:!1,retainSbrOnFade:!0,enableFullHdForSWDRM:!0};67 <= g.Av && (e=Object.assign(Object.assign({},e),{enableAV1:!0,enablePRK:!0}));return e;};d=a(56800);n=a(75568);c=a(88195);f=a(64232);},22224:function(t,b,a){var n,c,f,g,e,h;function d(){return Object.assign(Object.assign({},(0,h.f$)()),{ZJ:(0,e.Lf)([g.Pc.Lo,g.Pc.VE,g.Pc.Qo]),ki:(0,e.Lf)([].concat(za(g.xc.a3),za(g.xc.A3),za(g.xc.cV),za(g.xc.dV),za(g.xc.aV),za(g.xc.bV),za(g.xc.t6a),za(g.xc.u6a),za(g.xc.zza),za(g.xc.lUb))),Rj:(0,e.Lf)([].concat(za(g.xc.Z2),za(g.xc.Mga),za(g.xc.Lga),za(g.xc.Nga))),fy:f.mb.gWb,vH:(0,n.ic)(31E3)});}Object.defineProperty(b,"__esModule",{value:!0});b.lsc=function(k){return Object.assign(Object.assign({},(0,h.g$)()),{Jx:"S",Yt:k.BR?"NFCDSF-PH-":"NFCDSF-01-",sK:"safari-cadmium"});};b.cqc=function(k){return Object.assign(Object.assign({},d(k)),{Kxa:!0,NY:!1,NB:[g.Cr.Aja]});};b.jsc=d;b.ksc=function(k){var l;l={delayErrorHandling:{7361:"100",7371:"100",7373:"100"},licenseRenewalRequestDelay:5E3,addFailedLogBlobsToQueue:!1,logUnexpectedRewindDelay:0,fatalOnUnexpectedSeeking:!1,fatalOnUnexpectedSeeked:!1,waitForDrmToAppendMedia:!0,forceAppendHeadersAfterDrm:!0,videoCapabilityDetectorType:c.Fr.PE,enableSeamless:!0,enableCombinedPlaygraphs:!0,enableAdPlaygraphs:!0,forceAppendEncryptedStreamHeaderFirst:!1,retainSbrOnFade:!0,enableMissingSegmentsReplacement:!1,enableMediaPrefetch:!0,defaultHeaderCacheSize:15,prepareCadmium:!0,enableLdlPrefetch:!0,monitorFrozenFrames:!0};(0,h.IAb)(k,10,15,5) && (l=Object.assign(Object.assign({},l),{useEncryptedEvent:!1,enablePRK:!0,enableDV:!0,enableHEVC:!0,enableHDR:!0,enableCDMAttestedDescriptors:!0,waitForDrmToAppendMedia:!1,forceAppendHeadersAfterDrm:!1,enableMediaCapabilities:!0,powerEfficientForVideo:!0,preciseSeeking:!0}));(0,h.IAb)(k,10,15,6) && (l=Object.assign(Object.assign({},l),{keyStatusFilterEnabled:!0,enableUHD:!0}));(0,h.lAb)(k,16) && (l=Object.assign(Object.assign({},l),{enableAV1:!0}));(0,h.lAb)(k,16) && !k.BR && (l=Object.assign(Object.assign({},l),{enableXHEAAC:!0,enableMediaCapabilitiesSourceBufferCheck:!0}));return l;};n=a(5021);c=a(56800);f=a(17612);g=a(75568);e=a(88195);h=a(64232);},89397:function(t,b,a){var f,g,e,h,k,l,m,p,r;function d(q,u){this.Je=q;this.DA=u;}function n(q,u){var v;v=g.fFa.call(this) || this;q.BR?Object.assign(v,(0,p.cqc)(q)):q.Lqa?Object.assign(v,(0,m.Opc)(q)):q.nUa?Object.assign(v,(0,l.krc)(q)):q.Hqa || q.YTa?Object.assign(v,(0,k.ypc)(u)):q.Raa?Object.assign(v,(0,p.jsc)(q)):Object.assign(v,(0,h.Woc)(q));return v;}function c(q){this.data=q.Lqa?(0,m.Qpc)(q):q.nUa?(0,l.mrc)(q):q.Hqa || q.YTa?(0,k.Apc)(q):q.Raa?(0,p.lsc)(q):(0,h.Yoc)(q);}Object.defineProperty(b,"__esModule",{value:!0});b.xza=b.wza=b.vza=void 0;t=a(22970);f=a(22674);g=a(27081);e=a(22816);h=a(25066);k=a(30837);l=a(20447);m=a(54534);p=a(22224);a=a(83767);Ha.Object.defineProperties(c.prototype,{version:{configurable:!0,enumerable:!0,get:function(){return this.data.version;}},Esa:{configurable:!0,enumerable:!0,get:function(){return this.data.Esa;}},Jx:{configurable:!0,enumerable:!0,get:function(){return this.data.Jx;}},Yt:{configurable:!0,enumerable:!0,get:function(){return this.data.Yt;}},sZ:{configurable:!0,enumerable:!0,get:function(){return this.data.sZ;}},sK:{configurable:!0,enumerable:!0,get:function(){return this.data.sK;}},Krb:{configurable:!0,enumerable:!0,get:function(){return this.data.Krb;}},HVa:{configurable:!0,enumerable:!0,get:function(){return this.data.HVa;}},Y8:{configurable:!0,enumerable:!0,get:function(){return this.data.Y8;}},GRb:{configurable:!0,enumerable:!0,get:function(){return this.data.GRb;}},JKa:{configurable:!0,enumerable:!0,get:function(){return this.data.JKa;}}});r=c;b.vza=r;b.vza=r=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(e.$U))],r);Ia(n,g.fFa);r=n;b.wza=r;b.wza=r=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(e.$U)),t.__param(1,(0,f.v)(a.iO))],r);d.prototype.apply=function(){this.Je.Lqa?Object.assign(this,(0,m.Ppc)(this.Je)):this.Je.nUa?Object.assign(this,(0,l.lrc)(this.Je)):this.Je.Hqa || this.Je.YTa?Object.assign(this,(0,k.zpc)(this.Je,this.DA)):this.Je.Raa?Object.assign(this,(0,p.ksc)(this.Je)):Object.assign(this,(0,h.Xoc)(this.Je));return this;};r=d;b.xza=r;b.xza=r=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(e.$U)),t.__param(1,(0,f.v)(a.iO))],r);},88351:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.platform=void 0;t=a(22674);d=a(91581);n=a(5614);c=a(52033);f=a(89397);b.platform=new t.Be(function(g){g(d.xt).to(f.vza).sa();g(n.XV).to(f.wza);g(c.deb).to(f.xza);});},80966:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Eya={x5b:"adStart",ulb:"adProgress",J4c:"adComplete",y5b:"adStop"};b.x4a={Qka:"adBreakComplete",G4c:"adBreakStart",H4c:"adBreakStop"};b.Kya={error:"error",Alc:"exit",AQb:"unload"};b.F4a="AdImpressionLoggerrFactorySymbol";},70068:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.Hya=b.kXb=b.lTb=void 0;d=a(45247);Object.defineProperty(b,"AdBreakResult",{enumerable:!0,get:function(){return d.lTb;}});Object.defineProperty(b,"IPlayerControlState",{enumerable:!0,get:function(){return d.kXb;}});b.Hya="AdManagerFactorySymbol";},1200:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.h3="AdTrackerBaseSymbol";},25540:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.P4a="AdFocusMonitorSymbol";},69377:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.R4a="AdvertsMismatchLoggerSymbol";},12826:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.T5a="BandwidthMeterFactorySymbol";},65945:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha,S,N,V,ba,fa,ia,ka,pa,oa,la,R,ea,ja,sa,ta,qa,Aa,Ga,na,va,xa;Object.defineProperty(b,"__esModule",{value:!0});b.j=void 0;t=a(22674);d=a(77601);n=a(78388);c=a(18181);f=a(12826);g=a(31085);e=a(41106);h=a(51038);k=a(24722);l=a(27104);m=a(4203);p=a(81918);r=a(90597);q=a(42207);u=a(87386);v=a(65090);w=a(61861);x=a(37025);y=a(5021);A=a(89561);z=a(25837);B=a(65106);C=a(13889);D=a(15160);F=a(92205);H=a(52200);E=a(45842);G=a(74870);J=a(95162);L=a(33554);K=a(2160);M=a(67650);P=a(25138);I=a(77134);O=a(34231);Q=a(93367);T=a(82557);U=a(85405);X=a(56800);Y=a(39551);W=a(69334);Z=a(70068);aa=a(89540);ca=a(30869);da=a(49917);ha=a(80966);S=a(72160);N=a(54952);V=a(97635);ba=a(74834);fa=a(25540);ia=a(38508);ka=a(30873);pa=a(78312);oa=a(53085);la=a(63013);R=a(14177);ea=a(56386);ja=a(1200);sa=a(24711);ta=a(13673);qa=a(31099);Aa=a(67590);Ga=a(6823);na=a(95735);va=a(69377);xa=a(79785);b.j=new t.Be(function(ra){ra(M.rFa).to(P.qFa).sa();ra(U.k5a).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja,Ka){return new (a(92720).$Ca)(Ja,Ka,Ca.get(r.VB),Ca.get(D.bha),Ca.get(Aa.eza));};});ra(d.Hhb).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja,Ka,La,Oa,Na,Qa,Va,Sa,Ta){return new (a(37517).z)(Ca.get(A.Khb),Ja,Ka,La,Oa,Na,Qa,Va,Sa,Ta);};});ra(A.Khb).to(z.mHa).sa();ra(n.Jhb).to(c.lHa).sa();ra(h.neb).to(k.oFa).sa();ra(V.ogb).to(ba.AGa).sa();ra(va.R4a).to(xa.Oya).sa();ra(Q.Cfb).to(T.fGa);ra(Q.Bfb).APb(Q.Cfb);ra(e.L7a).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja){return new (a(11372).nBa)(Ca.get(D.K7a),Ca.get(r.VB),Ca.get(p.fe),Ja);};});ra(f.T5a).Zf(function(){return function(ya){return new g.U5a(ya);};});ra(Y.vFa).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja){return new W.wFa(Ja,Ca.get(u.zb),Ca.get(q.Mi));};});ra(ha.F4a).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja){return new S.Fya(Ja,Ca.get(u.zb).wb("AdImpressionLogger"),Ca.get(ca.Li),Ca.get(m.Hc),Ca.get(p.fe),Ca.get(da.Dya),Ca.get(da.Bya));};});ra(fa.P4a).to(ia.Lya);ra(ja.h3).to(la.Iya);ra(ja.h3).to(ea.Jya);ra(ja.h3).to(sa.Mya);ra(ja.h3).to(R.Nya);ra(Z.Hya).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja,Ka){return new aa.J4a(Ja,Ka,Ca.get(u.zb).wb("AdManager"),Ca.get(m.Hc),Ca.get(V.ogb),Ca.get(va.R4a),Ca.getAll(ja.h3),Ca.get(ha.F4a),function(La){return new N.I4a(La);},Ca.get(fa.P4a));};});ra(v.ieb).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja){return new l.hFa(Ja,Ca.get(u.zb),Ca.get(m.Hc),Ca.get(q.Mi),Ca.get(r.VB),Ca.get(Y.vFa));};});ra(ka.Dab).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja,Ka){return new pa.Eab(Ca.get(m.Hc),Ca.get(ta.Fab),Ca.get(oa.Cl),Ca.get(u.zb),Ja,Ka);};});ra(ta.Fab).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja){return new qa.Gab(Ca.get(m.Hc),Ca.get(u.zb),Ca.get(E.nJ),Ja);};});ra(w.tFa).Zf(function(ya){var Ca;Ca=ya.Ib;return function(Ja,Ka,La,Oa,Na,Qa,Va,Sa,Ta,bb,Xa,gb){return new x.teb(Ja,Ka,La,Oa,Na,Qa,Va,Sa,Ta,Ca.get(v.ieb),Ca.get(M.rFa),Ca.get(ka.Dab),bb,Xa,gb);};});ra(B.kgb).Zf(function(ya){return function(Ca){var Ja,Ka;Ja=ya.Ib.get(m.Hc);Ka=ya.Ib.get(u.zb);return new C.lgb(Ja,Ca,Ka);};});ra(F.peb).Zf(function(ya){return function(Ca){var Ja,Ka,La,Oa,Na;Ja=ya.Ib.get(L.WB);Ka=ya.Ib.get(E.nJ);La=ya.Ib.get(G.Am);Oa=ya.Ib.get(J.MGa);Na=ya.Ib.get(X.kV);return new H.qeb(Ca,Ja,Ka((0,y.Zi)(1)),La,Oa,Na);};});ra(K.IDa).jN(function(ya){return new (a(51149).HDa)(ya.Ib.get(I.k5),ya.Ib.get(O.st));}).sa();ra(Ga.Tha).to(na.XCa).sa();});},41106:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.L7a="DiagnosticsFactorySymbol";},30873:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.iz={E5:"START_SLATE",rCa:"LIVE_EVENT",HAa:"END_SLATE"};b.Dab="LivePlaybackManagerFactorySymbol";},13673:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Fab="LivePlaybackRateControllerFactorySymbol";},6823:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.U4={};t[t.B9a=1]="HIGH";t[t.MEDIUM=2]="MEDIUM";t[t.W4=3]="LOW";b.Tha="LowNetworkActivityManagerSymbol";},45526:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});},2160:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.IDa="MilestonesEventBuilderSymbol";},65090:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.ieb="PlayTimeTrackerFactorySymbol";},51038:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.neb="PlaybackFactorySymbol";},92205:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.peb="PlaybackInfoPanelFactorySymbol";},67650:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.rFa="PlaybackMilestoneStoreSymbol";},61861:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.tFa="PlaybackSegmentDataFactorySymbol";},39551:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.vFa="PlayedSegmentsTrackerFactorySymbol";},93367:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Cfb="RepositionTraceSymbol";b.Bfb="RepositionTraceFactorySymbol";},65106:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.kgb="SeekManagerFactorySymbol";},97635:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.ogb="SegmentDroppedLoggerSymbol";},94025:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.xz={};t[t.gia=0]="NOT_LOADED";t[t.LOADING=1]="LOADING";t[t.lO=2]="LOADED";t[t.V4=3]="LOAD_FAILED";t[t.cdb=4]="PARSE_FAILED";},77601:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Hhb="TrickPlayFactorySymbol";},78388:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Jhb="TrickPlayManagerSymbol";},89561:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Khb="TrickPlayParserSymbol";},72160:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r,q,u,v){this.context=l;this.log=m;this.Ma=p;this.config=r;this.Va=q;this.w5b=u;this.q5b=v;this.B0a={};this.Kq=new Set();this.pVa=Math.floor(Math.random() * this.config().pVa);}Object.defineProperty(b,"__esModule",{value:!0});b.Fya=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(30869);g=a(5021);e=a(4203);h=a(49917);k=a(80966);d.prototype.OOc=function(l,m,p){var r,q,u,v,w;r=this;u=l.event;if(Object.values(k.x4a).includes(u)){v=m.eH?m.eH.na(g.ya):-1;w={href:m.S.vp.BZ("events").href,Yf:m.S.Aa.Yf,Ha:this.context.Ha.toString(),event:u,tx:l.tx,eb:l.eb,pv:l.pv,DG:l.DG,eKa:l.Gt,position:l.$h.offset.G,Ik:v,hB:{},jG:this.Ma.hI.na(g.ya),appId:this.config().appId || this.Va.id,sessionId:this.config().sessionId || this.Va.id,$Ja:l.$Ja,Rca:l.Rca,ZJa:l.ZJa,OVa:null === (q=m.S) || void 0 === q?void 0:q.Aa.Xd,Zm:l.Zm};this.Jtb(m,p,function(){r.q5b.Se({log:r.log,J:m.R},w).catch(function(x){r.log.error("Failed to send event",{eventKey:u,xid:m.Ha,error:x});});});}else this.log.debug("Ignoring unsupported event " + l.event);};d.prototype.POc=function(l,m,p,r){var q,u,v,w,x,y;q=this;v=l.event;if(Object.values(k.Eya).includes(v)){w=l.S.links.events.href;x=l.S.Yf;this.B0a[l.Ik] || (this.B0a[l.Ik]=this.Ma.z6b((0,g.ic)(l.Ik)).na(g.ya));y={href:w,Yf:x,Ha:this.context.Ha.toString(),event:v,tx:l.tx,eb:l.eb,pv:l.pv,DG:l.DG,eKa:l.Gt,position:l.$h.offset.G,gKa:l.gKa,Ik:this.B0a[l.Ik],hB:l.hB,jG:this.Ma.hI.na(g.ya),appId:this.config().appId || this.Va.id,sessionId:this.config().sessionId || this.Va.id,OVa:null === (u=m.S) || void 0 === u?void 0:u.Aa.Xd,XTc:null !== p && void 0 !== p?p:void 0,Zm:l.Zm};this.Jtb(m,r,function(){q.w5b.Se({log:q.log,J:m.R},y).catch(function(A){q.log.error("Failed to send event",{eventKey:v,xid:q.context.Ha,error:A});});});}else this.log.debug("Ignoring unsupported event " + l.event);};d.prototype.anc=function(){this.Kq.forEach(function(l){l();});};d.prototype.Jtb=function(l,m,p){var r,q,u;r=this;l=l.Bc.za && !m?this.pVa:0;if(0 < l){q=function(){Ba.clearTimeout(u);r.Kq.delete(q);p();};u=Ba.setTimeout(q,l);this.Kq.add(q);}else p();};a=d;b.Fya=a;b.Fya=a=t.__decorate([t.__param(2,(0,n.v)(f.Li)),t.__param(3,(0,n.v)(e.Hc)),t.__param(4,(0,n.v)(c.fe)),t.__param(5,(0,n.v)(h.Dya)),t.__param(6,(0,n.v)(h.Bya))],a);},54952:function(t,b){function a(m){this.Rc=m;}function d(m){this.padding=m;}function n(m){this.Af=m;}function c(m){this.$h=m;}function f(m){this.Iua=m;}function g(m){this.kZa=m;}function e(m){this.jZa=m;}function h(m){this.RF=m;}function k(m){this.pM=m;}function l(m){this.Cc=m;}Object.defineProperty(b,"__esModule",{value:!0});b.oTb=b.q_b=b.nTb=b.pWb=b.G_b=b.H_b=b.F_b=b.mTb=b.E_b=b.I4a=void 0;l.prototype.getPresentingAdBreak=function(){var m;m=this.Cc.gD();if(m)return new k(m);};l.prototype.getPlayerControlState=function(){var m;m=this.Cc.D$();return {seekEnabled:m.fI,playPauseEnabled:m.NH,languageSelectionEnabled:m.lH};};l.prototype.getAds=function(){return this.Cc.OG();};l.prototype.getLogInfo=function(){return this.Cc.Nwb();};b.I4a=l;Ha.Object.defineProperties(k.prototype,{adBreak:{configurable:!0,enumerable:!0,get:function(){return new h(this.pM.Ra);}},adInfo:{configurable:!0,enumerable:!0,get:function(){var m;m=this.pM.PJ;if(m)return new e(m);}},paddingInfo:{configurable:!0,enumerable:!0,get:function(){var m;m=this.pM.fYa;if(m)return new g(m);}},progress:{configurable:!0,enumerable:!0,get:function(){return new f(this.pM.progress);}},position:{configurable:!0,enumerable:!0,get:function(){return new c(this.pM.position);}},index:{configurable:!0,enumerable:!0,get:function(){return this.pM.index;}}});b.E_b=k;Ha.Object.defineProperties(h.prototype,{adCollection:{configurable:!0,enumerable:!0,get:function(){return new n(this.RF.Af);}},startPadding:{configurable:!0,enumerable:!0,get:function(){return new d(this.RF.Kea);}},endPadding:{configurable:!0,enumerable:!0,get:function(){return new d(this.RF.SY);}},hasPadding:{configurable:!0,enumerable:!0,get:function(){return this.RF.muc;}},duration:{configurable:!0,enumerable:!0,get:function(){return {ms:this.RF.duration.G};}},paddingDuration:{configurable:!0,enumerable:!0,get:function(){return {ms:this.RF.Sta.G};}},type:{configurable:!0,enumerable:!0,get:function(){return this.RF.type;}},segmentationTypeId:{configurable:!0,enumerable:!0,get:function(){return this.RF.zo;}},isPreroll:{configurable:!0,enumerable:!0,get:function(){return this.RF.h_;}}});b.mTb=h;Ha.Object.defineProperties(e.prototype,{ad:{configurable:!0,enumerable:!0,get:function(){return new a(this.jZa.Rc);}},adProgress:{configurable:!0,enumerable:!0,get:function(){return this.jZa.ulb;}},index:{configurable:!0,enumerable:!0,get:function(){return this.jZa.index;}}});b.F_b=e;Ha.Object.defineProperties(g.prototype,{paddingType:{configurable:!0,enumerable:!0,get:function(){return this.kZa.Vta;}},paddingProgress:{configurable:!0,enumerable:!0,get:function(){return this.kZa.IGc;}},paddingDuration:{configurable:!0,enumerable:!0,get:function(){return {ms:this.kZa.Sta.G};}}});b.H_b=g;Ha.Object.defineProperties(f.prototype,{adBreakProgress:{configurable:!0,enumerable:!0,get:function(){return this.Iua.t5b;}},adBreakOffset:{configurable:!0,enumerable:!0,get:function(){return {ms:this.Iua.llb.G};}},adBreakWithPaddingProgress:{configurable:!0,enumerable:!0,get:function(){return this.Iua.v5b;}},adBreakWithPaddingOffset:{configurable:!0,enumerable:!0,get:function(){return {ms:this.Iua.u5b.G};}}});b.G_b=f;Ha.Object.defineProperties(c.prototype,{segmentId:{configurable:!0,enumerable:!0,get:function(){return this.$h.L;}},offset:{configurable:!0,enumerable:!0,get:function(){return {ms:this.$h.offset.G};}}});b.pWb=c;Ha.Object.defineProperties(n.prototype,{ads:{configurable:!0,enumerable:!0,get:function(){return this.Af.Kb.map(function(m){return new a(m);});}},duration:{configurable:!0,enumerable:!0,get:function(){return {ms:this.Af.duration.G};}},type:{configurable:!0,enumerable:!0,get:function(){return this.Af.type;}},segmentationTypeId:{configurable:!0,enumerable:!0,get:function(){return this.Af.zo;}},isPreroll:{configurable:!0,enumerable:!0,get:function(){return this.Af.h_;}}});b.nTb=n;Ha.Object.defineProperties(d.prototype,{duration:{configurable:!0,enumerable:!0,get:function(){return {ms:this.padding.duration.G};}}});b.q_b=d;Ha.Object.defineProperties(a.prototype,{hasPlayed:{configurable:!0,enumerable:!0,get:function(){return this.Rc.ai;}},id:{configurable:!0,enumerable:!0,get:function(){return this.Rc.id;}},startTime:{configurable:!0,enumerable:!0,get:function(){return {ms:this.Rc.startTime.G};}},endTime:{configurable:!0,enumerable:!0,get:function(){return {ms:this.Rc.endTime.G};}},is3pVerificationEnabled:{configurable:!0,enumerable:!0,get:function(){return this.Rc.c_;}},thirdPartyVerificationToken:{configurable:!0,enumerable:!0,get:function(){return this.Rc.q2;}},uiComponent:{configurable:!0,enumerable:!0,get:function(){return this.Rc.$2a;}}});b.oTb=a;},89540:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m,p,r,q,u,v,w,x){var y;y=this;this.bb=k;this.j=l;this.log=m;this.config=p;this.zOc=r;this.G6b=q;this.iPb=u;this.Xo=new n.wc(!1);this.jc=new e.qm();this.Sla=!1;this.uca=function(){y.Sla=!0;y.qv.anc();h.xe.removeListener(h.hn,y.uca);};this.uQ=w(this);k=k.cn();this.qv=v({Ha:l.Ha.toString()});v=null === k || void 0 === k?void 0:k.Js.events;null === v || void 0 === v?void 0:v.addListener("adPresenting",function(){!1;y.fub();});null === v || void 0 === v?void 0:v.addListener("adBreakPresenting",function(A){!1;!1;y.mka=A.presentingInfo.Ra.type;"embedded" === y.mka || y.j.Pqa() || x.$_(l);y.Xo.set(!0);});null === v || void 0 === v?void 0:v.addListener("adBreakEnded",function(){!1;y.Xo.set(!1);});null === v || void 0 === v?void 0:v.addListener("adPlaygraphUpdated",function(){!1;});null === v || void 0 === v?void 0:v.addListener("segmentDropped",function(A){var z;!1;z=y.j.Vl(A.segmentId);y.zOc.bKc(A,z);});null === v || void 0 === v?void 0:v.addListener("advertsMismatch",function(A){!1;y.G6b.PJc(A,y.j.ga);});this.tw=new f.Fia();this.j.addEventListener("playbackStart",function(){y.tw.resolve();});v=null === k || void 0 === k?void 0:k.sR.events;null === v || void 0 === v?void 0:v.addListener("adEvent",function(A){y.tw.promise.then(function(){var z,B;A.event === c.Eya.x5b && y.iPb.forEach(function(C){return C.start(y.j);});z=y.Tsc(A);if(A.event === c.Eya.y5b && z){B=y.Sla?c.Kya.AQb:l.Mj?c.Kya.error:c.Kya.Alc;z=Object.assign(Object.assign({},z),{reason:B});}y.qv.POc(A,l,z,y.Sla);});});null === v || void 0 === v?void 0:v.addListener("adBreakEvent",function(A){A.event === c.x4a.Qka && y.jc.qd(g.Gya.Qka);y.tw.promise.then(function(){y.qv.OOc(A,l,y.Sla);});});h.xe.addListener(h.hn,this.uca);}Object.defineProperty(b,"__esModule",{value:!0});b.J4a=void 0;n=a(81734);c=a(80966);f=a(94293);g=a(85001);e=a(94886);h=a(37509);d.prototype.addEventListener=function(k,l,m){this.jc.addListener(k,l,m);};d.prototype.removeEventListener=function(k,l){this.jc.removeListener(k,l);};d.prototype.gD=function(){var k,l;if(this.SOa && !1 !== this.Xo.value)return null === (l=null === (k=this.bb) || void 0 === k?void 0:k.cn()) || void 0 === l?void 0:l.sj.pM;};d.prototype.D$=function(){var k,l;return (null === (l=null === (k=this.bb) || void 0 === k?void 0:k.cn()) || void 0 === l?void 0:l.Js.D$()) || ({fI:void 0,NH:void 0,lH:void 0});};d.prototype.Nwb=function(){var k,l,m,p;m=this.gD();if(m){p={position:null === m || void 0 === m?void 0:m.position.offset.G,adDuration:null === (k=null === m || void 0 === m?void 0:m.PJ) || void 0 === k?void 0:k.Rc.endTime.G,adIndex:null === (l=m.PJ) || void 0 === l?void 0:l.index,adBreakIndex:m.index,adBreakDuration:null === m || void 0 === m?void 0:m.Ra.duration.G};(k=m.fYa) && (p.padding={type:k.Vta,duration:k.Sta.G});return p;}};d.prototype.OG=function(){var k,l,m,p,r;if(!this.SOa)return [];p=this.j.ga.R.toString();r=null === (l=null === (k=this.bb) || void 0 === k?void 0:k.cn()) || void 0 === l?void 0:l.Js.OG({$y:[p]});return null !== (m=null === r || void 0 === r?void 0:r.result[p]) && void 0 !== m?m:[];};d.prototype.Wv=function(){var k,l,m,p,r;p=this.j.ga.R.toString();r=null === (l=null === (k=this.bb) || void 0 === k?void 0:k.cn()) || void 0 === l?void 0:l.Js.Wv({$y:[p]});return null !== (m=null === r || void 0 === r?void 0:r.result[p]) && void 0 !== m?m:!1;};d.prototype.fub=function(){};d.prototype.Tsc=function(k){var l;l=this.iPb.reduce(function(m,p){return Object.assign(Object.assign({},m),p.Epa(k));},{});return Object.assign(Object.assign({},l),{thirdPartyVerificationToken:k.q2});};Ha.Object.defineProperties(d.prototype,{SOa:{configurable:!0,enumerable:!0,get:function(){var k;return this.mka?this.config().ftb || "embedded" !== this.mka:(null === (k=this.j.Bc) || void 0 === k?0:k.za)?this.config().ftb:!0;}},YUa:{configurable:!0,enumerable:!0,get:function(){return this.mka;}}});b.J4a=d;},63013:function(t,b,a){var n,c,f,g,e;function d(h,k){var l;l=e.Go.call(this) || this;l.Va=h;l.paused=!1;l.Ax=function(){var m,p,r;p=l.Cc.Xo.value;r=l.Cc.gD();p && r?(p=null === (m=r.PJ) || void 0 === m?void 0:m.Rc.id,m=l.paused,l.paused=l.j.paused.value,m !== l.paused && (l.paused?(l.fua=l.Va.yc(),l.d7=r.position.offset.G,l.wa.debug("Ad " + p + " paused at " + l.d7 + " ms into the ad")):void 0 !== l.fua && void 0 !== l.d7 && (r=l.Va.yc().ea(l.fua).na(g.ya),l.wa.debug("Ad " + p + " resumed. Pause duration: " + r),l.trace.push([l.d7,r]),l.d7=void 0,l.fua=void 0))):l.unsubscribe();};l.wa=k.wb("AdPauseStateTracker");return l;}Object.defineProperty(b,"__esModule",{value:!0});b.Iya=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(87386);g=a(5021);e=a(87144);Ia(d,e.Go);d.prototype.start=function(h){e.Go.prototype.start.call(this,h);this.pD || (this.j.paused.addListener(this.Ax),this.pD=!0);};d.prototype.Epa=function(){return {pauseTrace:this.trace};};d.prototype.Pda=function(){this.d7=void 0;this.paused=this.j.paused.value;this.fua=void 0;this.trace=[];};d.prototype.unsubscribe=function(){e.Go.prototype.unsubscribe.call(this);this.j.paused.removeListener(this.Ax);};a=d;b.Iya=a;b.Iya=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.fe)),t.__param(1,(0,n.v)(f.zb))],a);},56386:function(t,b,a){var n,c,f,g,e;function d(h,k){var l;l=e.Go.call(this) || this;l.RNa=k;l.jNc=function(){0 === l.trace.length?l.Ax():l.pPa.ig(function(){l.Ax();});};l.Ax=function(){var m,p,r,q;m=l.Cc.Xo.value;p=l.Cc.gD();if(m && p){(m=l.trace[l.trace.length - 1]) && m[0] === p.position.offset.G && l.trace.pop();m=l.trace[l.trace.length - 1];r=l.j.Eu.getBoundingClientRect();q=r.height;r=r.width;0 < q && 0 < r && (!m || m[1] !== r || m[2] !== q) && l.trace.push([p.position.offset.G,r,q]);}else l.unsubscribe();};l.wa=h.wb("AdResizeTracker");l.pPa=k((0,g.Zi)(1));return l;}Object.defineProperty(b,"__esModule",{value:!0});b.Jya=void 0;t=a(22970);n=a(22674);c=a(34043);f=a(87386);g=a(5021);e=a(87144);Ia(d,e.Go);d.prototype.start=function(h){e.Go.prototype.start.call(this,h);this.pD || (this.SFb=new ResizeObserver(this.jNc),this.SFb.observe(this.j.Eu),this.pD=!0);};d.prototype.Epa=function(){return {resizeTrace:this.trace.slice(1)};};d.prototype.Pda=function(){this.trace=[];};d.prototype.unsubscribe=function(){var h;e.Go.prototype.unsubscribe.call(this);null === (h=this.SFb) || void 0 === h?void 0:h.disconnect();};a=d;b.Jya=a;b.Jya=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.zb)),t.__param(1,(0,n.v)(c.aha))],a);},87144:function(t,b){function a(){var d;d=this;this.pD=!1;this.trace=[];this.Wma=function(){d.pPa.ig(function(){d.Ax();});};}Object.defineProperty(b,"__esModule",{value:!0});b.Go=void 0;a.prototype.start=function(d){var n;n=this;this.j=d;this.Cc=this.j.cn();this.pD || (this.Cc.Xo.addListener(this.Ax),this.j.addEventListener("closing",function(){return n.unsubscribe();}));this.Pda();};a.prototype.unsubscribe=function(){this.Cc.Xo.removeListener(this.Ax);this.pD=!1;this.Pda();};b.Go=a;},38508:function(t,b,a){var n,c;function d(f){var g;g=this;this.MP=function(){var e,h,k;h=!document.hidden;k=null === (e=g.j.cn()) || void 0 === e?void 0:e.Xo.value;e=g.j.paused.value;h || !k || e || (g.wa.debug("Pausing playback because window is not visible"),g.j.paused.set(!0,{bB:!0,reason:"adnotvisible"}));};this.unsubscribe=function(){document.removeEventListener("visibilitychange",g.MP);g.j.cn().Xo.removeListener(g.MP);g.j.paused.removeListener(g.MP);};this.wa=f.wb("AdVisibilityMonitor");}Object.defineProperty(b,"__esModule",{value:!0});b.Lya=void 0;t=a(22970);n=a(22674);a=a(87386);d.prototype.$_=function(f){this.PCc || (this.wa.debug("Starting to monitor playback for visibility"),this.j=f,this.PCc=!0,document.addEventListener("visibilitychange",this.MP),this.j.cn().Xo.addListener(this.MP),this.j.paused.addListener(this.MP),this.j.addEventListener("closing",this.unsubscribe),this.MP());};c=d;b.Lya=c;b.Lya=c=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.zb))],c);},24711:function(t,b,a){var n,c,f;function d(g){var e;e=f.Go.call(this) || this;e.hWa=0;e.hrb=[0];e.dS=[0];e.visibility=0;e.Ax=function(){var h,k;h=e.Cc.Xo.value;k=e.Cc.gD();h && k?(h=e.visibility,e.visibility=document.hidden?0:1,h !== e.visibility && (1 === e.visibility?(e.hWa=e.visibility,e.fsa=k.position.offset.G):(k=k.position.offset.G - (e.fsa || 0),k > e.dS[0] && (e.dS[0]=k),e.fsa=void 0))):e.unsubscribe();};e.wa=g.wb("AdVisibilityTracker");return e;}Object.defineProperty(b,"__esModule",{value:!0});b.Mya=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(87144);Ia(d,f.Go);d.prototype.start=function(g){f.Go.prototype.start.call(this,g);this.pD || (document.addEventListener("visibilitychange",this.Ax),this.pD=!0);};d.prototype.Epa=function(g){var e,h,k;h=this.j.Eu.getBoundingClientRect();k=h.height;h=h.width;"adStart" === g.event && (k=0 === k?document.documentElement.clientHeight:k,h=0 === h?document.documentElement.clientWidth:h);g=g.$h.offset.G - (null !== (e=this.fsa) && void 0 !== e?e:0);g > this.dS[0] && (this.dS[0]=g);e=document.fullscreenElement?!0:screen.height === Ba.outerHeight && screen.width === Ba.outerWidth;this.hrb=this.dS;return {cumulativeTimeByVisibilityMs:this.hrb,maxContinuousTimeByVisibilityMs:this.dS,visibility:this.visibility,maxVisibility:this.hWa,screenHeight:screen.height,screenWidth:screen.width,adHeight:k,adWidth:h,fullScreen:e};};d.prototype.Pda=function(){this.fsa=void 0;this.dS=[0];this.hWa=this.visibility=document.hidden?0:1;};d.prototype.unsubscribe=function(){f.Go.prototype.unsubscribe.call(this);document.removeEventListener("visibilitychange",this.Ax);};a=d;b.Mya=a;b.Mya=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb))],a);},14177:function(t,b,a){var n,c,f,g,e;function d(h,k){var l;l=e.Go.call(this) || this;l.th=h;l.RNa=k;l.Ax=function(){var m,p;m=l.Cc.Xo.value;p=l.Cc.gD();m && p?(m=l.trace[l.trace.length - 1],p=p.position.offset.G,m && m[0] === p && l.trace.pop(),(m=l.trace[l.trace.length - 1]) && m[1] === l.j.oY || l.trace.push([p,l.j.oY])):l.unsubscribe();};l.wa=h.wb("AdVolumeTracker");l.pPa=k((0,g.Zi)(1));return l;}Object.defineProperty(b,"__esModule",{value:!0});b.Nya=void 0;t=a(22970);n=a(22674);c=a(34043);f=a(87386);g=a(5021);e=a(87144);Ia(d,e.Go);d.prototype.start=function(h){e.Go.prototype.start.call(this,h);this.pD || (this.j.volume.addListener(this.Wma),this.j.muted.addListener(this.Wma),this.pD=!0);};d.prototype.Epa=function(){return {volumeChangeTrace:this.trace,volume:this.j.oY};};d.prototype.Pda=function(){this.trace=[];};d.prototype.unsubscribe=function(){e.Go.prototype.unsubscribe.call(this);this.j.volume.removeListener(this.Wma);this.j.muted.removeListener(this.Wma);};a=d;b.Nya=a;b.Nya=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.zb)),t.__param(1,(0,n.v)(c.aha))],a);},79785:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.Oya=void 0;t=a(22970);a=a(22674);d.prototype.PJc=function(c,f){f.IL.jb.CKa({xid:f.Ha,playbackcontextid:f.Xd,pbcid:f.correlationId,manifestUnmatchedAdBreakLocations:c.manifestUnmatchedAdBreakLocations,mediaEventsUnmatchedAdBreakLocations:c.mediaEventsUnmatchedAdBreakLocations,sev:c.sev});};n=d;b.Oya=n;b.Oya=n=t.__decorate([(0,a.aa)()],n);},31085:function(t,b){function a(d){this.j=d;}Object.defineProperty(b,"__esModule",{value:!0});b.U5a=void 0;a.prototype.eRb=function(){var d;d=this.j.bb;if(null !== d && void 0 !== d && d.xF){d=d.bd.get();if(null === d || void 0 === d?0:d.Ih)this.j.Ih=d.Ih.Fa;if(null === d || void 0 === d?0:d.kb)this.j.kb=d.kb.Fa;}};a.prototype.gl=function(){-1 === this.j.kb && this.eRb();return this.j.kb;};a.prototype.s$b=function(d){-1 !== this.j.Ih && -1 !== this.j.kb || this.eRb();return -1 === this.j.Ih || -1 === this.j.kb?Number.MAX_VALUE:this.j.Ih + 8 * d / this.j.kb;};b.U5a=a;},11372:function(t,b,a){var n;function d(c,f,g,e){this.oOa=c;this.debug=f;this.Va=g;this.j=e;this.Wta=[];this.Asa={};this.rOa={};this.QPa=!1;this.ePb=1;this.P5a=7.8125;}b.nBa=void 0;n=a(5021);a(85001);a(32687);a(61726);d.prototype.register=function(c,f){this.debug.assert(!(0 <= this.Wta.indexOf(c)),"panel already registered");this.Asa[c]=f;this.Wta.push(c);};d.prototype.FFb=function(c){var f;f=this;this.rOa[c]=!0;this.QPa || (this.QPa=!0,setTimeout(function(){return f.Rmc();},0));};d.prototype.Tqc=function(c){return (c=this.Asa[c])?c():void 0;};d.prototype.p$=function(){var c;c=this.j.pua;return c?c.p$():[];};d.prototype.addEventListener=function(c,f){this.oOa.addListener(c,f);this.Asa[c] && this.FFb(c);};d.prototype.removeEventListener=function(c,f){this.oOa.removeListener(c,f);};d.prototype.getTime=function(){return this.Va.yc().na(n.ya);};d.prototype.Rmc=function(){this.QPa=!1;for(var c=this.Wta.length,f;c--;)(f=this.Wta[c],this.rOa[f] && (this.rOa[f]=!1,this.oOa.qd(f + "changed",{getModel:this.Asa[f]})));};b.nBa=d;},78312:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r,q,u,v){var w,x,y,A,z;w=this;this.config=m;this.Ad=r;this.K=u;this.j=v;this.xR=new h.wc(!1);this.aLa=new h.wc(!1);this.co=this.sk=void 0;this.k1a=!1;this.LQ=void 0;this.log=q.wb("LivePlaybackManager");this.LQ=this.config().inc;x=this.config().gSc;y=this.config().Lzc;this.k1a=(0,f.pc)(x) && (0,f.pc)(y);null === v || void 0 === v?void 0:v.addEventListener(g.ja.Dp,function(){var B;if(w.za && ((0,c.va)(w.j && w.j.ga === w.K,"Unexpected playback segment on playbackReady"),w.config().mkc && (w.dIb=p(function(C){(0,c.va)(w.za && w.j && w.j.ga === w.K,"Unexpected playback segment on playback rate update");w.K.playbackRate.value !== C && (w.K.playbackRate.set(C),w.j.fireEvent(g.ja.GL));})),w.k1a)){B=w.oA();A=w.Ad.JT((0,n.ic)(500),function(){var C,D,F,H;C=w.oA();F=B + x;C >= F - 500 && (D=w.eNa(F));F=B + x + y;if(C >= F - 500){H=w.eNa(F);null === A || void 0 === A?void 0:A.cancel();}w.I0a(D,H,!0);});}});null === v || void 0 === v?void 0:v.addEventListener(g.ja.ph,function(){var B;w.za && ((0,c.va)(w.j && w.j.ga === w.K,"Unexpected playback segment on closing"),w.dIb=void 0,null === (B=w.cba) || void 0 === B?void 0:B.cancel(),w.cba=void 0,null === A || void 0 === A?void 0:A.cancel());});null === v || void 0 === v?void 0:v.addEventListener(g.ja.vva,function(B){w.za && ((0,c.va)(w.j && w.j.ga === w.K,"Unexpected playback segment on repositioning"),B.Dc !== g.Mc.Xu && B.Dc !== g.Mc.CV || w.xR.set((B.Dc === g.Mc.CV || w.config().YT) && !w.KAb()));});null === v || void 0 === v?void 0:v.addEventListener(g.ja.G3a,function(){w.za && ((0,c.va)(w.j && w.j.ga === w.K,"Unexpected playback segment on userInitiatedPause"),w.xR.set(!1));});null === v || void 0 === v?void 0:v.background.addListener(function(){var B;w.za && ((0,c.va)(w.j && w.j.ga === w.K,"Unexpected playback segment on background update"),!w.j.background.value && w.gu() && void 0 === w.LQ && (w.CR()?null === (B=w.j.Wd) || void 0 === B?void 0:B.seek(w.sk,g.Mc.Xu):w.I1()));});this.K.mediaTime.addListener(function(){var B,C,D,F,H,E;if(w.za){(0,c.va)(w.j && w.j.ga === w.K,"Unexpected playback segment on mediaTime update");F=w.j;w.hma();H=z;E=null !== (B=w.K.Yr) && void 0 !== B?B:void 0;z=E;B=w.QK(H);H=w.QK(E);B !== H && (!1,F.fireEvent(g.ja.GL));w.CR()?(null === (C=w.cba) || void 0 === C?void 0:C.cancel(),w.cba=void 0):w.cba || (w.cba=w.Ad.JT((0,n.ic)(1E3),function(){w.hma();F.fireEvent(g.ja.GL);}));null === (D=w.dIb) || void 0 === D?void 0:D.G2(w.j.Zj.value && w.gu(),E,w.oA());w.config().$jc && w.$wc() && w.ivb();}});null === v || void 0 === v?void 0:v.Zj.addListener(function(){w.za && ((0,c.va)(w.j && w.j.ga === w.K,"Unexpected playback segment on playing update"),w.config().akc && w.ivb());});this.xR.addListener(function(){(0,c.va)(w.za,"Unexpected call to intentToPlayAtLiveEdge.set(). isLive:" + w.za);(0,c.va)(w.j && w.j.ga === w.K,"Playback is required for live.");w.hma();});this.aLa.addListener(function(){(0,c.va)(w.za,"Unexpected call to intentToPlayAtLiveEdge.set(). isLive:" + w.za);(0,c.va)(w.j && w.j.ga === w.K,"Playback is required for live.");!1;w.j.fireEvent(g.ja.GL);});}Object.defineProperty(b,"__esModule",{value:!0});b.Eab=void 0;n=a(5021);c=a(45146);f=a(32687);g=a(85001);e=a(30873);h=a(81734);k=a(45247);l=a(91176);d.prototype.kSc=function(){var m,p;return void 0 !== (null === (p=null === (m=this.K.S) || void 0 === m?void 0:m.Aa.Ji) || void 0 === p?void 0:p.CQ);};d.prototype.QQc=function(){var m,p,r,q;(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");q=null !== (r=null === (p=null === (m=this.K.S) || void 0 === m?void 0:m.Aa.Ji) || void 0 === p?void 0:p.nsb) && void 0 !== r?r:!1;return this.config().lnc || q && this.kSc();};d.prototype.sZa=function(){var m;(0,c.va)(this.za,"Unexpected call to processManifest(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");(0,c.va)(null === (m=this.K.S) || void 0 === m?void 0:m.Aa.Ji,"Live manifest is unavailable.");m=this.K.S.Aa.Ji;this.I0a(m.z9,m.CQ);m=this.config().mnc;void 0 !== m && void 0 !== this.sk && (this.LQ=this.sk + m);};d.prototype.I0a=function(m,p,r){var q,u,v,w,x;(0,c.va)(this.za,"Unexpected call to setLiveEventTimes(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");if(!this.k1a || r){r=this.j;v=this.sk;w=this.co;x=null !== (q=this.Zpb(m)) && void 0 !== q?q:v;q=null !== (u=this.Zpb(p)) && void 0 !== u?u:w;if(void 0 === x && void 0 === q || void 0 !== x && 0 <= x && void 0 === q || void 0 !== x && 0 <= x && void 0 !== q && q > x){if((this.sk=x,this.co=q,v !== this.sk || w !== this.co))(!1,r.fireEvent(g.ja.GL));}else this.log.error("Unexpected live event times. Ignoring:startTime:" + (m + ", startPts:") + (x + ", endTime:") + (p + ", endPts:") + q);}};d.prototype.hpc=function(){var m;(0,c.va)(this.za,"Unexpected call to getCurrentContentEventTime(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");m=this.K.Yr;if(null !== m)return this.eNa(m);};d.prototype.ipc=function(){var m,p,r;(0,c.va)(this.za,"Unexpected call to getCurrentSegmentNumber(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");(0,c.va)(null === (m=this.K.S) || void 0 === m?void 0:m.Aa.Ji,"Live manifest is unavailable.");m=this.K.Yr;if(null !== m){p=this.K.S.Aa.Ji;r=p.LT[p.Bna[this.K.S.Aa.jm[0].streams[0].$g]];p=Number(r.XNb);r=new k.I(r.duration,r.O);return p + Math.floor(m / r.G);}};d.prototype.Gpa=function(){var m;(0,c.va)(this.za,"Unexpected call to getUIAdjustedCurrentContentPts(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");m=this.K.Yr;if(null !== m)switch(this.QK(m)){case e.iz.E5:return 0;case e.iz.rCa:return ((0,c.va)(void 0 !== this.sk,"eventStartPts should be defined in LIVE_EVENT slate."),m - this.sk);case e.iz.HAa:return ((0,c.va)(void 0 !== this.sk && void 0 !== this.co,"eventStartPts and eventEndPts should be defined in END_SLATE slate."),this.co - this.sk);}};d.prototype.hLb=function(m){var p,r;(0,c.va)(this.za,"Unexpected call to revertUIAdjustedTime(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");return void 0 === this.sk?null !== (r=null !== (p=this.oA()) && void 0 !== p?p:this.K.Yr) && void 0 !== r?r:m:this.sk + m;};d.prototype.WAb=function(m){var p;(0,c.va)(this.za,"Unexpected call to isWithinUILiveEdgeThreshold(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");p=this.oA();return void 0 !== p && m >= p - this.config().pzc;};d.prototype.rRa=function(m,p){var r,q,u;(0,c.va)(this.za,"Unexpected call to getLiveBookmark(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");if(void 0 !== this.LQ)return {mq:this.LQ,jM:Number.MAX_SAFE_INTEGER,Irb:this.LQ};this.config().YT && this.xR.set(!0);u=Number.MAX_SAFE_INTEGER;p || void 0 === this.sk || void 0 === this.co && 0 === m?(this.xR.set(!0),m=u):(m=this.sk + m,void 0 !== this.co && m > this.co && (m=this.sk));return {mq:m,jM:null !== (r=this.co) && void 0 !== r?r:Number.MAX_SAFE_INTEGER,Irb:null !== (q=this.sk) && void 0 !== q?q:u};};d.prototype.NK=function(){var m,p,r;return Math.max(null !== (m=this.co) && void 0 !== m?m:0,null !== (p=this.oA()) && void 0 !== p?p:0,null !== (r=this.K.Yr) && void 0 !== r?r:0);};d.prototype.gyb=function(){var m;(0,c.va)(this.za,"Unexpected call to getLiveContentDuration(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");if(void 0 === this.sk)return 0;m=this.K.Yr;return (void 0 !== this.co?this.co:this.FA() && null !== m?m:this.NK()) - this.sk;};d.prototype.Nqc=function(){var m;(0,c.va)(this.za,"Unexpected call to getMaxSeekPts(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");m=this.oA();m=void 0 !== this.co && void 0 !== m?Math.min(this.co,m):m;!1;return null !== m && void 0 !== m?m:0;};d.prototype.oA=function(){var m,p;(0,c.va)(this.za,"Unexpected call to getLiveEdge(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");return null === (p=null === (m=this.j.bb) || void 0 === m?void 0:m.fo(this.K.R)) || void 0 === p?void 0:p.G;};d.prototype.I1=function(){var m;(0,c.va)(this.za,"Unexpected call to seekToLiveEdge(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");this.xR.set(!this.KAb());if(this.j.Wd){m=this.oA();void 0 !== m?this.j.Wd.seek(m,g.Mc.CV,this.K.L):!1;}else this.K.mq=this.rRa(0,!0).mq;};d.prototype.FA=function(){(0,c.va)(this.za,"Unexpected call to isAtLiveEdge(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");this.hma();return this.aLa.value;};d.prototype.gu=function(){(0,c.va)(this.za,"Unexpected call to intentToPlayAtLiveEdge(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");return this.xR.value;};d.prototype.QK=function(m){var p,r,q;(0,c.va)(this.za,"Unexpected call to getLiveEventState(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");m=null !== (p=null !== m && void 0 !== m?m:this.K.Yr) && void 0 !== p?p:0;p=null !== (r=this.sk) && void 0 !== r?r:Infinity;r=null !== (q=this.co) && void 0 !== q?q:Infinity;return m < p?e.iz.E5:m > r?e.iz.HAa:e.iz.rCa;};d.prototype.CR=function(m){(0,c.va)(this.za,"Unexpected call to isLiveEventEnded(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");if(m)return void 0 !== this.co;m=this.oA();return void 0 !== this.co && void 0 !== m && this.co < m;};d.prototype.$wc=function(){var m;(0,c.va)(this.za,"Unexpected call to isLiveEventStarted(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");m=this.oA();return void 0 !== this.sk && void 0 !== m && this.sk < m;};d.prototype.KAb=function(){var m;(0,c.va)(this.za,"Unexpected call to isPlaybackPausedByUser(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");return this.j.paused.value && !(null === (m=this.j.paused.Xm) || void 0 === m?0:m.bB);};d.prototype.hma=function(){var m;(0,c.va)(this.za,"Unexpected call to calculateIsAtLiveEdge(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");this.aLa.set(this.gu() && this.WAb(null !== (m=this.K.Yr) && void 0 !== m?m:0));};d.prototype.ivb=function(){(0,c.va)(this.za,"Unexpected call to forceLiveEdgeInStartSlate(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");this.j.Zj.value && this.QK() === e.iz.E5 && !this.FA() && void 0 === this.LQ && this.I1();};d.prototype.eNa=function(m){var p,r;(0,c.va)(this.za,"Unexpected call to convertPtsToEventTime(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");(0,c.va)(null === (p=this.K.S) || void 0 === p?void 0:p.Aa.Ji,"Live manifest is unavailable.");p=this.K.S.Aa.Ji;r=new Date(p.LT[p.Bna[this.K.S.Aa.jm[0].streams[0].$g]].CP).getTime();return new Date(r - p.boa + m).toISOString();};d.prototype.Zpb=function(m){var p,r,q;(0,c.va)(this.za,"Unexpected call to convertEventTimeToPts(). isLive:" + this.za);(0,c.va)(this.j && this.j.ga === this.K,"Playback is required for live.");(0,c.va)(null === (p=this.K.S) || void 0 === p?void 0:p.Aa.Ji,"Live manifest is unavailable.");if(m){p=this.K.S.Aa.Ji;r=p.LT[p.Bna[this.K.S.Aa.jm[0].streams[0].$g]];q=new Date(m).getTime() + p.boa - new Date(r.CP).getTime();if(isNaN(q) || 0 > q)this.log.error("Invalid live event time. Ignoring: eventDateString:" + (m + ", eventAvailabilityOffsetMs:") + (p.boa + ", availabilityStartTime:") + r.CP);else return q;}};Ha.Object.defineProperties(d.prototype,{za:{configurable:!0,enumerable:!0,get:function(){var m,p;m=this.K;p=m.S;m=m.ff;return p?(0,l.GA)(p.Aa.Yf):"live" === m;}}});b.Eab=d;},31099:function(t,b,a){var n,c;function d(f,g,e,h){this.config=f;this.nwa=h;this.log=g.wb("LivePlaybackRateController");this.ixa=e((0,n.ic)(this.config().Czc));}Object.defineProperty(b,"__esModule",{value:!0});b.Gab=void 0;n=a(5021);c=a(8825);d.prototype.G2=function(f,g,e){var h,k;h=this;if(!f || void 0 === g || void 0 === e || Math.abs(g - e) < this.config().Dzc)k=1;else (f=e - g,f=1 + this.config().Bzc / 1E3 * f,k=(0,c.eF)(f,this.config().Fzc,this.config().Ezc));this.ixa.ig(function(){!1;h.nwa(k);});};b.Gab=d;},95735:function(t,b,a){var n,c,f,g;function d(){this.XO=!1;this.rka=n.U4.W4;this.umc=["chgstrm","debug","cdnsel","netstats","midplay"];}Object.defineProperty(b,"__esModule",{value:!0});b.XCa=void 0;t=a(22970);n=a(6823);c=a(22674);f=a(29204);g=a(45146);d.prototype.vtb=function(e){var h,k,l,m;h=this;k=e.duration;l=e.lnaStartTime;m=e.level;(0,g.va)(void 0 !== k && 0 < k,"Unexpected or undefined duration value");(0,g.va)(void 0 !== l && 0 < l,"Unexpected or undefined start time value");e.platform && !e.platform.includes("web") || f.config.knc || (this.rka=null !== m && void 0 !== m?m:n.U4.W4,setTimeout(function(){h.XO=!0;h.Ltb({lnaStopTime:k});},l));};d.prototype.Ltb=function(e){var h,k;h=this;e=e.lnaStopTime;(0,g.va)(void 0 !== e && 0 < e,"Unexpected or undefined stop time value");k=Math.floor(Math.random() * f.config.Uzc) + 1;this.wPa && clearTimeout(this.wPa);this.wPa=setTimeout(function(){h.XO && (h.XO=!1,h.wPa=void 0);},e + k);};d.prototype.TJc=function(e){var h,k,l,m;if("enterLNAMode" === e.type && e.payload)this.vtb(e.payload);else if("exitLNAMode" === e.type && e.payload)this.Ltb(e.payload);else if("lna" === e.type){h=e.lnaStartTime;k=e.lnaEndTime;l=e.serverCurrTime;e=e.level;if(h && k && l){m=Math.min(k - l,f.config.qBc);l < k && l > h && this.vtb({lnaStartTime:1,duration:m,level:e});}}};d.prototype.kXc=function(){return this.XO && this.rka === n.U4.B9a;};d.prototype.DIb=function(){return this.XO && (this.rka === n.U4.MEDIUM || this.rka === n.U4.B9a);};d.prototype.nAc=function(e){return this.XO && this.umc.includes(e);};Ha.Object.defineProperties(d.prototype,{Tzc:{configurable:!0,enumerable:!0,get:function(){return this.XO;}}});a=d;b.XCa=a;b.XCa=a=t.__decorate([(0,c.aa)()],a);},11953:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G;function d(){this.txa=[];this.CUc=50;}function n(J){var L;L=this;this.j=J;Promise.resolve();this.CJ=[];this.Cm=new e.qm();this.fjb=0;this.Lja=[];this.sg=(0,l.jo)(this.j,"MediaElementASE");this.zkb=f.eJ;this.kIa=!1;this.gb=new d();this.tg=new E.wc(C.Uu.VI.HAVE_NOTHING);this.MJa={};this.$oa=this.Mja(function(){var K;if(L.Ga)return null !== (K=L.Ga.webkitDecodedFrameCount) && void 0 !== K?K:0;});this.mA=this.Mja(function(){var K;if(L.Ga){K=L.yIa();return K?K.totalVideoFrames:L.Ga.webkitDecodedFrameCount;}});this.ZQ=this.Mja(function(){var K;if(L.Ga){K=L.yIa();return K?K.droppedVideoFrames:L.Ga.webkitDroppedFrameCount;}});this.j$=this.Mja(function(){var K;if(L.Ga){K=L.yIa();return K && K.corruptedVideoFrames;}});this.Njb=function(K){!1;L.Cm.qd(A.Pk.lCb,{J:K});};this.ZIa=function(){!0 === w.Ni.hidden?L.Lja.forEach(function(K){K.refresh();K.RRc();}):L.Lja.forEach(function(K){K.refresh();K.qSc();});};this.hkb=function(K){var M,I;if(L.Ga){K=K.Txa;M=L.I2b();M && (K.ConstrictionActive=M.constrictionActive,K.Status=M.status);try{K.readyState="" + L.Ga.readyState;K.currentTime="" + L.Ga.currentTime;K.pbRate="" + L.Ga.playbackRate;}catch(O){}M=L.CJ.length;for(var P;M--;){P=L.CJ[M];I="";P.type == f.Uha?I="audio":P.type == f.e5 && (I="video");(0,u.Gf)(K,P.Roa(),{prefix:I});}L.sC && (M=L.sC.duration) && !isNaN(M) && (K.duration=M.toFixed(4));}};this.fkb=function(){L.Cm.qd(A.Pk.GJb);};G?(this.wD=l.Xa.get(y.pab).create(this,this.j),this.Ad=l.Xa.get(H.Cl),g.config.v_ && new Promise(function(K){L.zkb=K;L.j.addEventListener(B.ja.ph,K);}),this.sg.trace("Created Media Element"),this.addEventListener=this.Cm.addListener,this.removeEventListener=this.Cm.removeListener,this.Pkc="encrypted"):this.Ija(m.da.pdb);}Object.defineProperty(b,"__esModule",{value:!0});b.tDa=void 0;c=a(90762);f=a(33096);g=a(29204);e=a(94886);h=a(37509);k=a(52569);l=a(31276);m=a(36129);p=a(45146);r=a(8825);q=a(67572);u=a(3887);v=a(77705);w=a(22365);x=a(32687);y=a(80012);A=a(16520);z=a(5021);B=a(85001);C=a(63156);D=a(82100);F=a(26388);H=a(53085);E=a(81734);G=!!(w.vO && HTMLVideoElement && URL && HTMLVideoElement.prototype.play);n.prototype.lA=function(J){try{this.Ga && (this.fjb=this.Ga.currentTime);}catch(L){this.sg.error("Exception while getting VIDEO.currentTime",L);J && this.c6(m.da.f_b,L);}return (0,w.ut)(this.fjb * f.qr);};n.prototype.seek=function(J,L){var K;L=void 0 === L?!1:L;(0,p.va)(!this.Kr);this.skb();K=this.lA(!0);if(!L && !g.config.T6b && (0,w.Wha)(K - J) <= this.NLb)(this.sg.trace("Seek delta too small",{currentTime:K,seekTime:J,min:this.NLb}),this.gb.trace("smallseek",J));else {this.gb.trace("seek",J);try{this.sg.trace("Setting video elements currentTime",{From:(0,r.hk)(K),To:(0,r.hk)(J)});this.Kr={};this.Ga.currentTime=J / f.qr;this.Cm.qd(A.Pk.Wt);}catch(M){this.sg.error("Exception while setting VIDEO.currentTime",M);this.c6(m.da.g_b,M);}}};n.prototype.Lxb=function(){return !!this.Kr;};n.prototype.addSourceBuffer=function(J){var L;try{L=new c.uDa(this.j,J,this.sC,this.sg);this.CJ.push(L);J == f.e5 && L.TPa && L.TPa.addListener(this.zkb);this.Cm.qd(A.Pk.MNb);return L;}catch(K){L=(0,u.jj)(K);this.sg.error("Unable to add source buffer.",{error:L});this.j.wg(m.da.tEa,{Ta:J === F.u.X?m.Y.fDa:m.Y.gDa,qf:L});}};n.prototype.i7=function(J){var L;L=this;J.forEach(function(K){return L.addSourceBuffer(K);});return !0;};n.prototype.removeSourceBuffer=function(J){this.CJ=this.CJ.filter(function(L){return !(0,k.jcc)(J,L);});this.sC.removeSourceBuffer(J);};n.prototype.endOfStream=function(){this.gb.trace("endofstream");!1;g.config.VLa && this.sC.endOfStream();};n.prototype.Xt=function(J){!1;this.CJ=[];J && J.mbd();return !0;};n.prototype.zRa=function(){if(this.sC)return (0,z.GIc)(this.sC.duration);};n.prototype.fic=function(){var J;if(!this.kIa && this.Ga && this.Ga.readyState >= C.Uu.VI.HAVE_CURRENT_DATA){J=this.Ga.webkitDecodedFrameCount;if(void 0 === J || 0 < J || g.config.HXc)this.kIa=!0;}return this.kIa;};n.prototype.open=function(J){var L;L=this;this.Ga=J || (0,k.createElement)("VIDEO","position:absolute;width:100%;height:100%");try{this.sC=new w.vO();}catch(K){this.c6(m.da.XZb,K);return;}try{this.Hg=URL.createObjectURL(this.sC);}catch(K){this.c6(m.da.YZb,K);return;}try{this.sC.addEventListener("sourceopen",function(K){return L.R3b(K);});this.wD.N5b(this.Njb);this.o6b(this.Ga);this.p6b(this.Ga);this.Ga.src=this.Hg;this.tg.addListener(this.fkb);this.j.addEventListener(B.ja.i1a,this.hkb);h.xe.addListener(h.ls,this.ZIa);this.ZIa();}catch(K){this.c6(m.da.ZZb,K);return;}J || !this.j.ER || g.config.A3a || this.wD.iGb();};n.prototype.close=function(){this.gb.trace("close");this.Ga && (this.lA(!1),this.skb(),this.CJ=[],this.nMc(this.Ga),this.iMc(this.Ga),this.wD.gMc(this.Njb),this.wD.close(),clearTimeout(this.wD.hcd),this.tg.removeListener(this.fkb),this.j.removeEventListener(B.ja.i1a,this.hkb),h.xe.removeListener(h.ls,this.ZIa),this.Ga=void 0);};n.prototype.iNc=function(){this.Kr && (this.gb.trace("resetSeek"),this.Kr=void 0);};n.prototype.L3b=function(){g.config.A3a && this.wD.iGb();};n.prototype.yIa=function(){if(this.Ga)return this.Ga.getVideoPlaybackQuality && this.Ga.getVideoPlaybackQuality() || this.Ga.videoPlaybackQuality || this.Ga.playbackQuality;};n.prototype.x4b=function(){var J;J=this.j.Mj;return (J=J && J.errorCode) && 0 <= [m.da.qia,m.da.Eha].indexOf(J);};n.prototype.Mja=function(J){var L;L=l.Xa.get(q.$cb)(J);this.Lja.push(L);return function(){L.refresh();return L.gpc();};};n.prototype.c6=function(J,L){var K,M;K={Ta:m.Y.nr,qf:(0,u.jj)(L)};try{M=L.message.match(/(?:[x\W\s]|^)([0-9a-f]{8})(?:[x\W\s]|$)/i)[1].toUpperCase();M && 8 == M.length && (K.Ng=M);}catch(P){}this.j.wg(J,K);};n.prototype.skb=function(){this.Lja.forEach(function(J){J.refresh();});};n.prototype.I2b=function(){return this.Ga && this.Ga.msGraphicsTrustStatus;};n.prototype.Ija=function(J,L){this.j.wg(J,L,void 0);};n.prototype.R3b=function(J){!1;this.A4b || (this.A4b=!0,this.Cm.qd(A.Pk.Dwa,J));};n.prototype.Q3b=function(){this.gb.trace("seeking");this.sg.trace("Video element event: seeking");this.Kr?this.Kr.pEc=!0:(this.sg.error("unexpected seeking event"),g.config.bmc && this.Ija(m.da.l_b,{qf:{Trace:this.gb.QZ()}}));};n.prototype.P3b=function(){this.gb.trace("seeked");this.sg.trace("Video element event: seeked");this.Kr?((0,p.va)(this.Kr.pEc),this.Kr.oEc=!0,this.Vkb()):(this.sg.error("unexpected seeked event"),g.config.amc && this.Ija(m.da.k_b,{qf:{Trace:this.gb.QZ()}}));};n.prototype.S3b=function(){var J;this.gb.trace("timeupdate",null === (J=this.Ga) || void 0 === J?void 0:J.currentTime);!1;this.Kr && (this.Kr.rEc=!0,this.Vkb());this.Cm.qd(A.Pk.Wt);};n.prototype.O3b=function(){this.sg.trace("Video element event: loadstart");};n.prototype.T3b=function(J){this.sg.trace("Video element event:",J.type);try{this.j.volume.set(this.Ga.volume);this.j.muted.set(this.Ga.muted);}catch(L){this.sg.error("error updating volume",L);}};n.prototype.M3b=function(J){var L,K,M,P,I,O,Q,T;L=this.Ija;K=m.da.odb;M=m.I8a;P=this.gb.QZ();I=J.target;O=I && I.error;Q=J.errorCode;I=O && O.code;(0,x.$c)(I) || (I=Q && Q.code);Q=O && O.message;T=O && O.msExtendedCode;(0,x.$c)(T) || (T=O && O.systemCode);(0,x.$c)(T) || (T=J.systemCode);(0,x.$c)(T) || (T=(0,D.LRa)(Q));J=(0,u.Gf)({},{code:I,systemCode:T,trace:JSON.stringify(P)},{Ita:!0});M={Ta:M(I),qf:(0,v.PVa)(J)};try{Q && (M.Qba=Q);}catch(U){}T=(0,u.am)(T);(0,x.pc)(T) && (M.Ng=(0,l.qLa)(T,4));L.call(this,K,M);};n.prototype.Vkb=function(){this.Kr && this.Kr.oEc && this.Kr.rEc && (this.gb.trace("seekcomplete"),this.Kr=void 0,this.Cm.qd(A.Pk.eea));};n.prototype.o6b=function(J){var K,M;function L(P,I){J.addEventListener(P,M[P]=I);}K=this;M=this.MJa;L("error",function(P){return K.M3b(P);});L("seeking",function(){return K.Q3b();});L("seeked",function(){return K.P3b();});L("timeupdate",function(){return K.S3b();});L("loadstart",function(){return K.O3b();});L("volumechange",function(P){return K.T3b(P);});L(this.Pkc,function(){return K.L3b();});g.config.nic && L("contextmenu",function(P){return P.preventDefault();});this.XKc=this.Ad.JT((0,z.ic)(500),function(){K.tg.set(J.readyState);});};n.prototype.nMc=function(J){var L,P;if(J){for(var K=Ea(Object.entries(this.MJa)),M=K.next();!M.done;M=K.next()){P=Ea(M.value);M=P.next().value;P=P.next().value;J.removeEventListener(M,P);delete this.MJa[M];}null === (L=this.XKc) || void 0 === L?void 0:L.cancel();this.tg.set(C.Uu.VI.HAVE_NOTHING);}};n.prototype.p6b=function(J){var L,K;L=this.j.Eu;K=L.lastChild;K?L.insertBefore(J,K):L.appendChild(J);};n.prototype.iMc=function(J){g.config.sJc && this.x4b() || (J.removeAttribute("src"),J.load(),this.j.Eu.removeChild(J));this.Hg && (URL.revokeObjectURL(this.Hg),this.Hg=void 0);this.sC=void 0;};Ha.Object.defineProperties(n.prototype,{sourceBuffers:{configurable:!0,enumerable:!0,get:function(){return this.CJ;}},NLb:{configurable:!0,enumerable:!0,get:function(){return g.config.xRc;}}});b.tDa=n;d.prototype.trace=function(J,L){this.txa.push([J,L]);this.txa.length > this.CUc && this.txa.shift();};d.prototype.QZ=function(){return this.txa;};},51149:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p){var r;r=this;this.Nq=m;this.NG=p;this.OPb=function(q){var u,v,w,x,y,A;u=r.ePb++;v=q.request.tK || "dl";w=r.eyb(v,"start");if(w){x=q.request.TL.L;if(x && !r.hOb.has(x)){y=r.oxb(x);A=q.bE;r.Nq.mark(w,y,A?v + "-" + A + "-" + u:v);q.Tka(function(){var z,B;z=r.eyb(v,"end");B=A?v + "-" + A + "-" + u:v;z && r.Nq.mark(z,y,B);});}}};this.ePb=0;this.hOb=new Set();this.l0a=new Map();p.o9 && this.MXc();}Object.defineProperty(b,"__esModule",{value:!0});b.HDa=void 0;t=a(22970);n=a(22674);c=a(63156);f=a(77134);g=a(5021);e=a(61726);h=a(34231);k=a(79542);l={start:{video:c.nb.z3,audio:c.nb.v3},end:{video:c.nb.y3,audio:c.nb.u3}};d.prototype.pxb=function(m){var r,q,u,v,w,x,y,A;function p(z){return (0,g.timestamp)(r.cmb((0,g.timestamp)(z),m,!0));}r=this;q=new Set();u=m.Ff;v=m.Ha;w=void 0 === m.aOb?null:m.aOb;x=m.L;y=this.Nq.Vwb(v);A=x && this.oxb(x);A && y.push.apply(y,za(this.Nq.Vwb(A)));this.Nq.gKb(m.Ha);A && this.Nq.gKb(A);x && this.hOb.add(x);x=[];("pr_ats" in u) && x.push({name:c.nb.Mia,Sy:p(u.pr_ats),Ha:v,correlationId:"request-pre-manifest"});("ats" in u) && x.push({name:c.nb.Kia,Sy:p(u.ats),Ha:v,correlationId:"request-manifest"});("pr_at" in u) && x.push({name:c.nb.Lia,Sy:p(u.pr_at),Ha:v,correlationId:"request-pre-manifest"});("at" in u) && x.push({name:c.nb.Jia,Sy:p(u.at),Ha:v,correlationId:"request-manifest"});("lg" in u) && x.push({name:c.nb.Iia,Sy:p(u.lg),Ha:v,correlationId:"request-license"});("lr" in u) && (x.push({name:c.nb.Hia,Sy:p(u.lr),Ha:v,correlationId:"request-license"}),x.push({name:c.nb.pga,Sy:p(u.lr),Ha:v,correlationId:"apply-license"}));("ld" in u) && x.push({name:c.nb.oga,Sy:p(u.ld),Ha:v,correlationId:"apply-license"});("tt_start" in u) && x.push({name:c.nb.x3,Sy:p(u.tt_start),Ha:v,correlationId:"request-timed-text"});("tt_comp" in u) && x.push({name:c.nb.w3,Sy:p(u.tt_comp),Ha:v,correlationId:"request-timed-text"});return x.concat(y).map(function(z){return r.nUc(z,m);}).filter(function(z){return z.ts <= (null !== w && void 0 !== w?w:z.ts)?("end" === z.step && q.add(z.eventId),!0):!1;}).filter(function(z){return "start" !== z.step || q.has(z.eventId)?!0:!1;}).sort(function(z,B){return z.ts - B.ts;}).reduce(function(z,B){var C;C=B.eventName;delete B.eventName;C && (z[C]=B);return z;},{});};d.prototype.y6b=function(m,p,r){return (void 0 === r?0:r)?m.na(g.ya) + p.Xj.na(g.ya):m.na(g.ya) - p.Xj.na(g.ya);};d.prototype.cmb=function(m,p,r){r=void 0 === r?!1:r;if(p.er)if(r)m.na(g.ya) + p.er;else return m.na(g.ya) - p.er;return this.y6b(m,p,r);};d.prototype.nUc=function(m,p){var r,q;r=m.correlationId;q=m.name;return {eventName:this.MDc(q,r),eventId:r || q,ts:this.cmb(m.Sy,p),comp:this.h$(q),cat:this.Noc(q),step:this.Dsc(q)};};d.prototype.MDc=function(m,p){switch(m){case c.nb.x3:case c.nb.w3:case c.nb.v3:case c.nb.u3:case c.nb.z3:case c.nb.y3:return m + "-" + p;default:return m;}};d.prototype.h$=function(m){switch(m){case c.nb.Mia:case c.nb.Lia:case c.nb.Kia:case c.nb.Jia:return "manifest";case c.nb.Iia:case c.nb.Hia:case c.nb.mGa:case c.nb.lGa:case c.nb.rha:case c.nb.qha:case c.nb.pga:case c.nb.oga:return "license";case c.nb.x3:case c.nb.w3:case c.nb.v3:case c.nb.u3:case c.nb.z3:case c.nb.y3:case c.nb.qya:case c.nb.pya:return "buffering";case c.nb.qEa:case c.nb.pEa:return "playback";default:return (0,k.FG)(m);}};d.prototype.Noc=function(m){switch(m){case c.nb.Mia:case c.nb.Lia:case c.nb.Kia:case c.nb.Jia:return "aws";case c.nb.Iia:case c.nb.Hia:return "mixed";case c.nb.qEa:case c.nb.pEa:case c.nb.mGa:case c.nb.lGa:case c.nb.rha:case c.nb.qha:case c.nb.pga:case c.nb.oga:case c.nb.qya:case c.nb.pya:return "device";case c.nb.x3:case c.nb.w3:case c.nb.v3:case c.nb.u3:case c.nb.z3:case c.nb.y3:return "cdn";default:return (0,k.FG)(m);}};d.prototype.Dsc=function(m){switch(m){case c.nb.Mia:case c.nb.qEa:case c.nb.Kia:case c.nb.Iia:case c.nb.qya:case c.nb.x3:case c.nb.v3:case c.nb.z3:case c.nb.mGa:case c.nb.rha:case c.nb.pga:return "start";case c.nb.Lia:case c.nb.pEa:case c.nb.Jia:case c.nb.Hia:case c.nb.lGa:case c.nb.qha:case c.nb.oga:case c.nb.pya:case c.nb.w3:case c.nb.u3:case c.nb.y3:return "end";default:return (0,k.FG)(m);}};d.prototype.eyb=function(m,p){if((m in l[p]))return l[p][m];};d.prototype.vVc=function(){e.Ke.removeEventListener(e.cqa,this.OPb);};d.prototype.MXc=function(){this.vVc();e.Ke.addEventListener(e.cqa,this.OPb);};d.prototype.oxb=function(m){var p;if(this.l0a.has(m))return this.l0a.get(m);p=Date.now();this.l0a.set(m,p);return p;};a=d;b.HDa=a;b.HDa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.k5)),t.__param(1,(0,n.v)(h.st))],a);},27104:function(t,b,a){var c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x,y){var A;A=this;this.rj=q;this.config=v;this.ec=w;this.debug=x;this.DP={};this.zsb=!1;this.G7={};this.RTa=0;this.bpa=function(z){var B,C,D;B=z.stream;if(B){z=B.ob;C=B.bitrate;D=B.Pb;}else z=z.track.ob;return {key:z + "$" + C + "$" + D,ob:z,bitrate:C,Pb:D};};this.kwb=function(z){var B,C,D;C=A.bpa(z);D=null === (B=z.Tc) || void 0 === B?void 0:B.id;z=z.track.correlationId;return Object.assign({},C,{key:C.key + "$" + D + "$" + z,Th:D,correlationId:z});};this.Ioc=function(z){var B;B=z.stream;z=null === B || void 0 === B?void 0:B.ob;B=null === B || void 0 === B?void 0:B.bitrate;return {key:z + "$" + B,ob:null !== z && void 0 !== z?z:"",S_:B};};this.stc=function(z){var B;B=z.stream;z=null === B || void 0 === B?void 0:B.ob;B=null === B || void 0 === B?void 0:B.Pb;return {key:z + "$" + B,ob:null !== z && void 0 !== z?z:"",S_:B};};this.log=u.wb("PlayTimeTracker");this.uua=y(q);this.kB=y(q);this.JYa=y(q);this.startTime=this.rj.mediaTime.value;this.Lra=this.config().d5b;this.QU();this.DP.abrdel=0;this.Lra.forEach(function(z){z="abrdel" + z;A.G7[z]=0;A.DP[z]=0;});}function n(){}Object.defineProperty(b,"__esModule",{value:!0});b.hFa=void 0;t=a(22970);c=a(22674);f=a(87386);g=a(4203);e=a(71501);a(5021);h=a(42207);k=a(90597);l=a(33096);m=a(3887);p=a(39551);r=a(30873);n.prototype.encode=function(q){return {downloadableId:q.ob,correlationId:q.correlationId,bitrate:q.bitrate,vmaf:q.Pb,duration:q.duration,metric:q.S_,cdnId:q.Th};};n.prototype.decode=function(q){return {ob:q.downloadableId,correlationId:q.correlationId,bitrate:q.bitrate,Pb:q.vmaf,duration:q.duration,S_:q.metric,Th:q.cdnId};};d.prototype.Uv=function(q){q=void 0 === q?"content":q;this.ZM(this.rj.mediaTime.value);return Math.floor(this.kB.Uv(function(u){return u.Mq === q;}));};d.prototype.qwb=function(q){this.ZM(this.rj.mediaTime.value);return Math.floor(this.kB.Uv(q));};d.prototype.P$=function(q){var u;q=void 0 === q?"content":q;this.ZM(this.rj.mediaTime.value);u=this.kB.P$(function(v){return v.Mq === q;});this.debug.assert(u === Math.floor(u),"Value of totalContentPlayTime is not an integer.");return Math.floor(u);};d.prototype.yoc=function(){this.ZM(this.rj.mediaTime.value);return {audio:this.m$(this.uua,this.kwb),video:this.m$(this.kB,this.kwb)};};d.prototype.Drc=function(){var q,u,v;q=this.Uv("content");u=this.Uv("ads");v=this.Uv("other");q={total:q,totalAdDuration:u,totalOtherDuration:v,totalCombinedDuration:q + u + v,totalContentTime:this.P$("content"),totalStartSlateDuration:this.qwb(function(w){return !0 === w.Jaa;}),totalLiveEdgeDuration:this.qwb(function(w){return !0 === w.FA;}),audio:this.m$(this.uua,this.bpa),video:this.m$(this.kB,this.bpa),timedtext:this.m$(this.JYa,this.bpa)};this.debug.assert(!(!q.audio || !q.video));return q;};d.prototype.DQa=function(){var q,u;this.ZM(this.rj.mediaTime.value);q=this.kB.zQa(this.Ioc);try{u=this.Mvb(q);}catch(v){return (this.log.warn("Failed to calc average bitrate."),null);}this.DP.abrdel=Math.round(u);return this.DP.abrdel;};d.prototype.Nvb=function(){var q,u;this.ZM(this.rj.mediaTime.value);q=this.kB.zQa(this.stc);try{u=this.Mvb(q);}catch(v){return (this.log.warn("Failed to calc average vmaf."),null);}return Math.round(u);};d.prototype.Lvb=function(){var q,u;q=this;if(!this.zsb){u=this.Uv();this.Lra.forEach(function(v){var w,x,y;if(0 === q.G7["abrdel" + v] && u > v * l.qr){w=0;x=0;y=0;q.kB.some(function(A){w+=A.stream.bitrate * (A.endTime - A.startTime);x+=A.endTime - A.startTime;y=A.stream.bitrate;return x > v * l.qr;});w && (q.G7["abrdel" + v]=Math.round((w - y * (x - v * l.qr)) / (v * l.qr)));}});0 !== this.G7["abrdel" + this.Lra[this.Lra.length - 1]] && (this.zsb=!0);(0,m.Di)(this.G7,function(v,w){q.DP[v]=0 === w?q.DP.abrdel:w;});}return this.DP;};d.prototype.J5b=function(q){this.RTa+=q;};d.prototype.Xpa=function(){return this.kB.Xpa();};d.prototype.QU=function(){var q;q=this;this.rj.We.addListener(function(u){q.iY=q.vob(q.iY,q.uua,u.newValue);});this.rj.ye.addListener(function(u){q.nY=q.vob(q.nY,q.kB,u.newValue);});this.rj.playbackRate.addListener(function(u){q.ZM(q.rj.mediaTime.value,u.oldValue);});this.rj.Wk.addListener(this.IEc.bind(this));};d.prototype.fXa=function(q,u){this.ZM(q);this.startTime=u;this.nY=this.iY=void 0;this.mY && (this.mY.startTime=this.startTime);!1;};d.prototype.IEc=function(q){this.JYa.ag(this.mY,this.rj.mediaTime.value);this.mY=(q=q.newValue)?{track:q,startTime:this.rj.mediaTime.value,endTime:e.ZE}:void 0;};d.prototype.ZM=function(q,u){u=void 0 === u?this.rj.playbackRate.value:u;q && this.iY && this.nY && (q=Math.min(q,this.iY.endTime,this.nY.endTime),this.uua.ag(this.iY,q,u),this.iY.startTime=q,this.kB.ag(this.nY,q,u),this.nY.startTime=q,this.mY && (this.JYa.ag(this.mY,q,u),this.mY.startTime=q),this.startTime=q,!1);};d.prototype.vob=function(q,u,v){var w,x;q && u.ag(q,Math.min(q.endTime,this.rj.mediaTime.value));if(v && v.stream){q=v.NX;u=v.stream;w=v.Mq;x=this.rj.Bc;return {Tc:v.Tc,track:u.track,stream:u,startTime:Math.max(q.startTime,this.startTime),endTime:q.endTime,Jaa:x.za?x.QK(q.Spb) === r.iz.E5:void 0,FA:x.za?x.gu():void 0,Mq:w};}};d.prototype.m$=function(q,u){return q.zQa(u,"content").map(function(v){return new n().encode(v);});};d.prototype.Mvb=function(q){var u,v,w;u=this;v=0;q.forEach(function(x){if(u.ec.Ci(x.duration) && u.ec.Ci(x.S_))v+=x.duration;else throw Error("Invalid arguments: missing duration and/or metric in segment.");});if(!v)return 0;w=0;q.forEach(function(x){w+=x.S_ * x.duration / v;});return w;};a=d;b.hFa=a;b.hFa=a=t.__decorate([(0,c.aa)(),t.__param(1,(0,c.v)(f.zb)),t.__param(2,(0,c.v)(g.Hc)),t.__param(3,(0,c.v)(h.Mi)),t.__param(4,(0,c.v)(k.VB)),t.__param(5,(0,c.v)(p.vFa))],a);},24722:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M;function d(P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha,S,N,V,ba,fa,ia,ka,pa,oa,la,R,ea,ja,sa){this.AA=P;this.XJ=I;this.Va=O;this.Ma=Q;this.V8b=T;this.r2a=U;this.Aba=X;this.UVa=Y;this.D_=W;this.og=Z;this.Yj=aa;this.ol=ca;this.FP=da;this.Uca=ha;this.uh=S;this.T2a=N;this.ci=V;this.Nq=ba;this.Of=fa;this.HYa=ia;this.FMc=ka;this.XKa=pa;this.jS=oa;this.sYa=la;this.fKa=R;this.k$b=ea;this.qH=ja;this.kX=sa;}Object.defineProperty(b,"__esModule",{value:!0});b.oFa=void 0;t=a(22970);n=a(62665);c=a(22674);f=a(45842);g=a(11479);e=a(81918);h=a(30869);k=a(12826);l=a(37104);m=a(24273);p=a(73449);r=a(66476);q=a(79274);u=a(52531);v=a(24550);w=a(91622);x=a(61861);y=a(78388);A=a(45118);z=a(6823);B=a(74870);C=a(92205);D=a(77134);F=a(93367);H=a(85405);E=a(2160);G=a(49745);J=a(50889);L=a(70068);K=a(33258);d.prototype.create=function(P,I,O,Q,T,U,X,Y){return new (a(18128).oeb)(P,I,U,X,Q,T,this.AA,O,this.Va,this.XJ,this.Ma,this.Aba,this.V8b,this.r2a,this.UVa,this.D_,this.og,this.Yj,this.ol,this.FP,this.Uca,this.uh,this.T2a,this.ci,this.Of,this.HYa,this.Nq,this.FMc(),this.XKa,this.jS,this.sYa,this.fKa,this.k$b,this.qH,void 0,Y);};M=d;b.oFa=M;b.oFa=M=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(n.XE)),t.__param(1,(0,c.v)(g.ek)),t.__param(2,(0,c.v)(e.fe)),t.__param(3,(0,c.v)(h.Li)),t.__param(4,(0,c.v)(k.T5a)),t.__param(5,(0,c.v)(f.nJ)),t.__param(6,(0,c.v)(l.pDa)),t.__param(7,(0,c.v)(m.wbb)),t.__param(8,(0,c.v)(p.b5)),t.__param(9,(0,c.v)(r.FO)),t.__param(10,(0,c.v)(q.w5)),t.__param(11,(0,c.v)(u.zO)),t.__param(12,(0,c.v)(w.a6a)),t.__param(13,(0,c.v)(x.tFa)),t.__param(14,(0,c.v)(G.JV)),t.__param(15,(0,c.v)(y.Jhb)),t.__param(16,(0,c.v)(A.Up)),t.__param(17,(0,c.v)(D.k5)),t.__param(18,(0,c.v)(B.Am)),t.__param(19,(0,c.v)(C.peb)),t.__param(20,(0,c.v)(F.Bfb)),t.__param(21,(0,c.v)(H.k5a)),t.__param(22,(0,c.v)(E.IDa)),t.__param(23,(0,c.v)(J.Vdb)),t.__param(24,(0,c.v)(L.Hya)),t.__param(25,(0,c.v)(K.Hza)),t.__param(26,(0,c.v)(z.Tha)),t.__param(27,(0,c.v)(v.k3)),t.__param(27,(0,c.optional)())],M);},18128:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha;function d(S,N,V,ba,fa,ia,ka,pa,oa,la,R,ea,ja,sa,ta,qa,Aa,Ga,na,va,xa,ra,ya,Ca,Ja,Ka,La,Oa,Na,Qa,Va,Sa,Ta,bb,Xa,gb){var Fa,Ib;function wb(Da){Da.newValue && Da.newValue.stream && (Fa.ye.removeListener(wb),Fa.tqa=Da.newValue.stream.bitrate);}function xb(Da){Da.newValue !== O.Nb.mh && Da.newValue !== O.Nb.Oi && (Fa.Zb.removeListener(xb),Fa.eH=Fa.Ma.hI,Fa.jc.qd(O.ja.iB));}function yb(Da){Da.newValue !== O.Nb.mh && (Fa.Zb.removeListener(yb),Fa.Dp=!0,Fa.Tca=Fa.Ma.Mg.na(C.ya),Fa.jc.qd(O.ja.Dp));}Fa=this;this.xb=fa;this.km=ia;this.AA=ka;this.Va=oa;this.XJ=la;this.Ma=R;this.Aba=ea;this.UVa=ta;this.D_=qa;this.og=Aa;this.Yj=Ga;this.ol=na;this.FP=va;this.Uca=xa;this.uh=ra;this.T2a=ya;this.ci=Ca;this.Of=Ja;this.HYa=Ka;this.Nq=La;this.q_a=Oa;this.XKa=Na;this.jS=Qa;this.sYa=Va;this.fKa=Sa;this.PLa=Ta;this.qH=bb;this.kX=Xa;this.pIb=[];this.wo=new Map();this.hTa=new Map();this.Qh=new aa.AbortController();this.ka=new ca.zFa();this.Wk=new p.wc(null);this.MB=new p.wc(void 0);this.$f=new p.wc(null);this.fj=new p.wc(null);this.mediaTime=new p.wc(void 0);this.playbackRate=new Y.seb(1,r.config.gWa);this.background=new p.wc(!0);this.Mfa=function(Da){return Fa.ka.Ny(Da);};this.yVc=function(Da){return Fa.Wk.set(Da.newValue);};this.mWc=function(Da){return Fa.MB.set(Da.newValue);};this.oWc=function(Da){return Fa.$f.set(Da.newValue);};this.AVc=function(Da){return Fa.fj.set(Da.newValue);};this.eWc=function(Da){return Fa.ye.set(Da.newValue);};this.dWc=function(Da){return Fa.We.set(Da.newValue);};this.XVc=function(Da){return Fa.mediaTime.set(Da.newValue);};this.BVc=function(Da){return Fa.background.set(Da.newValue);};this.G2=function(Da){return Fa.playbackRate.set(Da.newValue);};this.ys={};this.H_a=this.J2a=0;this.jc=new q.qm();this.Txa={};this.Mea=this.fIb=this.Dp=!1;this.NU=new p.wc(void 0);this.state=new p.wc(O.Fc.PV);this.Zj=new p.wc(!1);this.paused=new p.wc(!1);this.muted=new p.wc(!1);this.volume=new p.wc(r.config.shc / 100);this.Zb=new p.wc(O.Nb.mh);this.ie=new p.wc(O.jh.Pf);this.Lt=new p.wc(O.jh.Pf);this.En=new p.wc(O.jh.Pf);this.We=new p.wc(null);this.ye=new p.wc(null);this.KLa=new p.wc(null);this.dqa=(0,l.CWb)(this);this.Tc=[new p.wc(null),new p.wc(null),new p.wc(null)];this.tLa={};this.HY=!1;this.kb=this.Ih=-1;this.iR=function(Da,Ra){var Ya;Da=void 0 === Da?null:Da;return (0,J.pc)(Da)?Ra && !Fa.Vl(Ra).S?Da:(null === (Ya=Fa.bb) || void 0 === Ya?0:Ya.kk)?Fa.bb.dNa(Da):Da:null;};this.uca=function(){Fa.A1a();};this.BGb=function(){var Da,Ra;Ra=document.hidden;0 === Fa.oY && Ra && !Fa.paused.value?(Fa.paused.set(!0,{bB:!0}),!1):Ra || !Fa.paused.value || !0 !== (null === (Da=Fa.paused.Xm) || void 0 === Da?void 0:Da.bB) || Fa.background.value || (Fa.Bc.za && Fa.Bc.gu() && Fa.Bc.I1(),Fa.paused.set(!1,{bB:!0}),!1);};this.zAc=this.pG=S;this.addEventListener=this.jc.addListener;this.removeEventListener=this.jc.removeListener;this.fireEvent=this.jc.qd;this.Xka({J:S,Cf:fa.ga.wp,L:ba,qb:V || ({})},r.config.Ay?this.og.rA(S):void 0,N);this.log=(0,B.jo)(this);this.gsb=pa(this);this.U8b=ja(this);this.Eu=(0,P.createElement)("DIV",m.YFa,void 0,{id:this.R});this.Hvc();this.nd=this.log.VP("Playback");(0,f.x_b)(this);w.pz.fca=this;w.pz.WPa || (w.pz.WPa=this);this.nd.info("Playback created",this.Ki);this.TCb?this.nd.info("Playback selected for trace playback info logging"):this.nd.trace("Playback not selected for trace playback info logging");r.config.Ay && (this.og.Qtc(this.R),this.addEventListener(O.ja.iB,function(){Fa.og.Stc(Fa.R);Fa.ka.addListener([Z.u.Ca],function(){Fa.og.uyb();});Fa.ka.addListener([Z.u.X],function(){Fa.og.uyb();});}),this.addEventListener(O.ja.ph,function(){Fa.og.Ptc(Fa.R);}));this.state.addListener(function(Da){Fa.nd.info("Playback state changed",{From:Da.oldValue,To:Da.newValue});(0,F.va)(Da.newValue > Da.oldValue);});v.xe.addListener(v.hn,this.uca,m.hEa);Ib=sa((0,C.Zi)(1));this.mediaTime.addListener(function(){Fa.Qmc();Ib.ig(function(){return Fa.Nub();});});this.Zb.addListener(function(Da){Fa.nd.info("PresentingState changed",{From:Da.oldValue,To:Da.newValue,MediaTime:(0,H.hk)(Fa.mediaTime.value)},Fa.XA());});this.Zb.addListener(function(){Fa.Zj.set(Fa.Zb.value === O.Nb.rg);});this.ie.addListener(function(Da){Fa.nd.info("BufferingState changed",{From:Da.oldValue,To:Da.newValue,MediaTime:(0,H.hk)(Fa.mediaTime.value)},Fa.XA());});this.Lt.addListener(function(Da){Fa.nd.info("AV BufferingState changed",{From:Da.oldValue,To:Da.newValue,MediaTime:(0,H.hk)(Fa.mediaTime.value)},Fa.XA());});this.En.addListener(function(Da){Fa.nd.info("Text BufferingState changed",{From:Da.oldValue,To:Da.newValue,MediaTime:(0,H.hk)(Fa.mediaTime.value)},Fa.XA());});this.ka.addListener([Z.u.X],function(Da){(0,F.va)(Da.ry && Da.ry.cf);Fa.nd.info("AudioTrack changed",Da.ry && ({ToBcp47:Da.ry.Ig,To:Da.ry.trackId}),Da.lw && ({FromBcp47:Da.lw.Ig,From:Da.lw.trackId}),{MediaTime:(0,H.hk)(Fa.mediaTime.value)});});this.ka.addListener([Z.u.Ca],function(Da){(0,F.va)(!Da.so || Da.so.cf);Fa.nd.info("TimedTextTrack changed",Da.so?{ToBcp47:Da.so.Ig,To:Da.so.trackId}:{To:"none"},Da.vy?{FromBcp47:Da.vy.Ig,From:Da.vy.trackId}:{From:"none"},{MediaTime:(0,H.hk)(Fa.mediaTime.value)});});this.Zb.addListener(yb,m.SV);this.Zb.addListener(xb);this.addEventListener(O.ja.iB,function(){Fa.Mea=!0;Fa.aOb=Fa.Y7();Fa.fh("start");});this.ye.addListener(wb);(0,z.z_b)(this);w.Zp.push(this);r.config.yda && (this.pua=this.HYa(this),this.sua=new y.ueb(this));w.lFa.forEach(function(Da){Da(Fa);});this.V5b=function(){Fa.addEventListener(O.ja.o1,function(Da){var Ra,Ya,ob,zb,Jb,$a,Ab,Kb,pb,Bb,Lb;zb=Da.Dc;Jb=Da.skip;$a=Da.sS;Ab=Da.yS;Kb=Da.R;pb=Da.Nl;if(zb !== O.Mc.dW && zb !== O.Mc.Mo)if((null === (Ra=Fa.bb) || void 0 === Ra?void 0:Ra.stop(),Jb)){if(null !== (Ya=Fa.bb) && void 0 !== Ya && Ya.$k($a)){Fa.nd.trace("Repositioned. Skipping from " + Ab + " to " + $a);Da=function(Pa){Fa.log.error("streamingSession.skipped threw an exception",Pa);Pa=Q.re.Eoa(D.da.WSb,Pa);Fa.yw(Pa.code,Pa);};try{Fa.bb.YM($a).then(function(Pa){var ab;Pa.d_ || (null === (ab=Fa.bb) || void 0 === ab?void 0:ab.play());}).catch(Da);}catch(Pa){Da(Pa);}}else Fa.log.error("can skip returned false");}else {Fa.nd.trace("Repositioned. Seeking from " + Ab + " to " + $a);try{Bb=Fa.xb.eR(Fa.ga);Lb=Object.keys(Bb.ba).find(function(Pa){var ab;Pa=Bb.ba[Pa];return Pa.J === Kb && Pa.Ua <= pb && (null !== (ab=Pa.fb) && void 0 !== ab?ab:Infinity) > pb;});null === (ob=Fa.bb) || void 0 === ob?void 0:ob.tOc(pb,Lb);}catch(Pa){Fa.log.error("streamingSession.seekByContentPts threw an exception",Pa);$a=Q.re.Eoa(D.da.USb,Pa);Fa.yw($a.code,$a);}}});Fa.addEventListener(O.ja.Ms,function(Da){Fa.q_a.Ms(Da);Fa.ga.Cp.fXa(Da.yS,Da.sS);});};this.playbackRate.addListener(function(){var Da,Ra;if(null === (Da=Fa.bb) || void 0 === Da?0:Da.kk)null === (Ra=Fa.bb) || void 0 === Ra?void 0:Ra.$Hc();});this.addEventListener(O.ja.aG,function(Da){var Ra;if(Da.Dc == w.jFa)try{Fa.ie.set(O.jh.Pf);null === (Ra=Fa.bb) || void 0 === Ra?void 0:Ra.gr(Fa.Wd.lwb());}catch(Ya){Fa.log.error("streamingSession.underflow threw an exception",Ya);Da=Q.re.Eoa(D.da.XSb,Ya);Fa.yw(Da.code,Da);}});v.xe.addListener(v.ls,this.BGb);gb && (this.ga.S=gb,this.uh.fU(S,gb));}Object.defineProperty(b,"__esModule",{value:!0});b.oeb=void 0;n=a(22970);c=a(50040);f=a(86258);g=a(20318);e=a(66093);h=a(11953);k=a(73585);l=a(24427);m=a(33096);p=a(81734);r=a(29204);q=a(94886);u=a(42654);v=a(37509);w=a(13044);x=a(59032);y=a(62439);A=a(79014);z=a(39480);B=a(31276);C=a(5021);D=a(36129);F=a(45146);H=a(8825);E=a(3887);G=a(32219);J=a(32687);L=a(73056);K=a(45266);M=a(16520);P=a(52569);I=a(72639);O=a(85001);Q=a(31149);T=a(78719);U=a(35128);X=a(13494);Y=a(65361);W=a(79048);Z=a(26388);aa=a(91176);ca=a(73403);da=a(54973);ha=a(99416);d.prototype.fh=function(S,N){var V;N=void 0 === N?this.pG:N;null === (V=this.wo.get(N)) || void 0 === V?void 0:V.fh(S);};d.prototype.aL=function(S){this.ga.aL(S);};d.prototype.Ppa=function(){var S;return !(null === (S=this.S) || void 0 === S || !S.Aa.OC);};d.prototype.i_=function(){return this.xb.i_();};d.prototype.Wv=function(){var S,N,V,ba;ba=null === (S=this.S) || void 0 === S?void 0:S.Aa.Hd;return 0 < (null !== (N=null === ba || void 0 === ba?void 0:ba.lb.length) && void 0 !== N?N:0) || !0 === (null === ba || void 0 === ba?void 0:ba.Hj) || !0 === (null === (V=this.Cc) || void 0 === V?void 0:V.Wv());};d.prototype.BUa=function(S){return void 0 !== S && S === this.Cf;};d.prototype.Hvc=function(){var S;S=this;this.ka.addListener([Z.u.X,Z.u.Ca,Z.u.U],function(N){return S.ga.ka.Ny(N);});this.Wk.addListener(function(N){return S.ga.Wk.set(N.newValue);});this.MB.addListener(function(N){return S.ga.MB.set(N.newValue);});this.$f.addListener(function(N){return S.ga.$f.set(N.newValue);});this.fj.addListener(function(N){return S.ga.fj.set(N.newValue);});this.ye.addListener(function(N){return S.ga.ye.set(N.newValue);});this.We.addListener(function(N){return S.ga.We.set(N.newValue);});this.Tc[Z.u.X].addListener(function(N){return S.ga.Tc[Z.u.X].set(N.newValue);});this.Tc[Z.u.U].addListener(function(N){return S.ga.Tc[Z.u.U].set(N.newValue);});this.Tc[Z.u.Ca].addListener(function(N){return S.ga.Tc[Z.u.Ca].set(N.newValue);});this.mediaTime.addListener(function(N){return S.ga.mediaTime.set(N.newValue);});this.background.addListener(function(N){return S.ga.background.set(N.newValue);});this.playbackRate.addListener(function(N){return S.ga.playbackRate.set(N.newValue);});this.kLb();};d.prototype.kLb=function(){var S;S=this;this.ga !== this.iea && (this.ga.mediaTime.set(this.mediaTime.value),this.ga.background.set(this.background.value),this.ga.playbackRate.set(this.playbackRate.value),this.NXc(this.Mfa),this.cz(function(N){return N.MB;},this.mWc),this.cz(function(N){return N.Wk;},this.yVc),this.cz(function(N){return N.$f;},this.oWc),this.cz(function(N){return N.fj;},this.AVc),this.cz(function(N){return N.We;},this.dWc),this.cz(function(N){return N.ye;},this.eWc),this.cz(function(N){return N.Tc[Z.u.X];},function(N){return S.Tc[Z.u.X].set(N.newValue);}),this.cz(function(N){return N.Tc[Z.u.U];},function(N){return S.Tc[Z.u.U].set(N.newValue);}),this.cz(function(N){return N.Tc[Z.u.Ca];},function(N){return S.Tc[Z.u.Ca].set(N.newValue);}),this.cz(function(N){return N.mediaTime;},this.XVc),this.cz(function(N){return N.background;},this.BVc),this.cz(function(N){return N.playbackRate;},this.G2),this.ka.Jp(this.ga.ka.Qd),this.ka.yB(this.ga.ka.he,{TF:!0}),this.ka.b1a(this.ga.ka.Lh),this.Wk.set(this.ga.Wk.value),this.MB.set(this.ga.MB.value),this.$f.set(this.ga.$f.value),this.fj.set(this.ga.fj.value),this.iea=this.ga);};d.prototype.NXc=function(S){this.iea && this.iea.ka.removeListener(S);this.ga.ka.addListener([Z.u.X,Z.u.U,Z.u.Ca],S);};d.prototype.cz=function(S,N){this.iea && S(this.iea).removeListener(N);S(this.ga).addListener(N);};d.prototype.gac=function(){var S,N;N=!(null === (S=this.Cc) || void 0 === S || !S.Xo.value);S=!N;if(N && "embedded" === this.Cc.YUa || this.Pqa())S=!0;return S;};d.prototype.Pqa=function(){var S,N;return this.Bc.za && !(null === (N=null === (S=this.S) || void 0 === S?void 0:S.Aa.Hd) || void 0 === N || !N.Hj);};d.prototype.load=function(S){var N,V;N=this;this.load=function(){};this.vIb=S;if(!(this.state.value != O.Fc.PV || this.CAb() && this.qH.kXc())){this.nd.info("Playback loading",this);this.VDc();this.fh("asl_load_start");V=this.XJ;S=V.startTime;V=V.endTime;(0,J.$c)(S)?(0,J.$c)(V)?this.fh("asl_ended"):this.fh("asl_in_progress"):this.fh("asl_not_started");this.XJ.iba(function(ba){N.fh("asl_load_complete");ba.success?N.Sec():N.yw(ba.errorCode || D.da.OBa,ba);});}};d.prototype.zIc=function(){!1;try{this.state.value === O.Fc.LOADING && (this.hRb(),this.mq=this.FP.A6b({yE:(0,C.ic)(this.Gb),R:this.R,jM:this.mG,qb:this.qb,dM:this.qb.Pg?r.config.TXa:r.config.dM,Bc:this.Bc}).na(C.ya),this.SKa(),this.sgc());}catch(S){this.yw(D.da.ZWb,{Ta:D.Y.nr,qf:(0,E.jj)(S)});}};d.prototype.hRb=function(){var S,N,V;V={width:1,height:1};this.VK({rRb:!0}).forEach(function(ba){V.width * V.height < ba.width * ba.height && (V={width:ba.width,height:ba.height});});V.height === (null === (S=this.NU.value) || void 0 === S?void 0:S.height) && V.width === (null === (N=this.NU.value) || void 0 === N?void 0:N.width) || this.NU.set(V);};d.prototype.MD=function(){var S,N;!1;N=this.xb.eR(this);this.Gqb(N);null === (S=this.bb) || void 0 === S?void 0:S.vN(N);};d.prototype.zS=function(S){var N,V;!1;(0,F.va)(this.bb,"ASE should be initialized");V=this.xb.x$(S);V?S === this.xb.Bi?this.bb.rma(V,!0) || this.T$(V,{}):null === (N=this.bb) || void 0 === N?void 0:N.Bn(S,V,!1,!0):this.log.warn("onNextSegmentChanged: Next segment not found");};d.prototype.T$=function(S,N,V){var ba,fa,ia,ka,pa;ba=this;V=void 0 === V?!0:V;!1;ka=this.xb.fu(S);if(this.ol.Lxa && this.xb.ga.J === ka.J)return Promise.resolve(this.Wd.seek(ka.Ua,O.Mc.Xu,void 0));ka=this.km.nR(ka.J);N=(0,K.osa)(ka.Cb,N);if(null === (fa=this.bb) || void 0 === fa || !fa.kk)throw (!1,Error("No streaming session"));!1;this.vP("Transition " + this.xb.Bi + "->" + S);pa=this.Vl(S);pa.er=this.Va.yc().na(C.ya);pa.qb=N;return "seamless" !== (null !== (ia=this.xb.fu(S).Yd) && void 0 !== ia?ia:"seamless") || V?(this.bb.y$(S).S7?this.vtc(S,pa.R):this.dea(S,pa.R)).then(function(){ba.snc(pa.R);}):Promise.resolve();};d.prototype.dea=function(S,N){var V;V=this.xb.vn.ba[S].Ua;!1;this.vP("NO DATA " + S + ", SEEKING " + V + ", viewableId: " + N);return Promise.resolve(this.Wd.seek(V,O.Mc.Xu,S,!0));};d.prototype.vtc=function(S,N){var V,ba,fa,ia,ka;V=this;!1;ba=this.bb;if(null === ba || void 0 === ba || !ba.kk)throw Error("No streaming session");fa=new Promise(function(pa){function oa(){!1;ba.removeEventListener("stop",oa);pa();}ba.addEventListener("stop",oa);});ia=!1;ka=new Promise(function(pa){function oa(la){!1;V.removeEventListener(O.ja.o1,oa);ba.stop();ia=la.skip;pa();}V.addEventListener(O.ja.o1,oa);});fa=Promise.all([fa,ka]).then(function(){var pa;pa=!1;ia && (pa=ba.rma(S,!1));if(!pa)return (V.vP("Seek forced - ASE chooseNextSegment failed. Likely ASE entered panic mode and chose a default segment."),V.dea(S,N));});ka=ba.fNa(S,this.xb.vn.ba[S].Ua);!1;this.Wd.seek(ka,O.Mc.dW,S,!0);return fa;};d.prototype.Xka=function(S,N,V){var ba,fa,ia,ka,pa,oa,la,R,ea;N=void 0 === N?this.AA.nG():N;V=void 0 === V?this.Va.yc():V;ia=!!r.config.MRb && !(N % r.config.MRb);ka=S.J;pa=S.Cf;oa=S.L;la=S.qb;R=S.ue;if(this.wo.has(ka))N=this.wo.get(ka);else {N=this.Uca(w.pz.index++,ka,oa,la,N,V,ia,this.ga,this.iR,R,pa,this);this.wo.set(ka,N);1 < this.wo.size && (N.IL=this.BUa(N.Cf)?this.IL:this.D_.create(this,N,!1,this.iR));N.Q_=new x.Wbb(this,N);ea=null === R || void 0 === R?void 0:R.Hb;(S=S.J8b) || (S=null === (fa=null === (ba=this.ga.S) || void 0 === ba?void 0:ba.lq) || void 0 === fa?void 0:fa.find(function(ja){return ja.Aa.R === ka && (void 0 === ea || ja.Aa.Hb === ea);}));S?this.eda(S,N):1 < this.wo.size && this.uh.Yv(N.R) && this.cva(N);}};d.prototype.Fqb=function(S,N,V,ba){var fa,ia,ka,pa,oa,la,R,ea,ja,sa,ta;fa=this;!1;ea={oD:!0,Pg:!1,QB:Date.now()};(0,F.va)(N.Rf,"Auxiliary viewable config request options must have auxiliary options");ja=N.Rf;sa=ja.Hb;if((ja=ja.fd) && this.W$(ja)){ta=null === (ia=this.Oj(ja).S) || void 0 === ia?void 0:ia.Aa;N={Hb:sa,OD:this.Xd,fd:ja,Fca:ta,qs:N.qs};(0,F.va)(null === (ka=this.bb) || void 0 === ka?void 0:ka.Vh,"If we have auxiliary viewables combined playgraph must exist");if(null === (oa=null === (pa=this.bb) || void 0 === pa?void 0:pa.Vh) || void 0 === oa?0:oa.ba)(ka=Object.keys(null === (R=null === (la=this.bb) || void 0 === la?void 0:la.Vh) || void 0 === R?void 0:R.ba).find(function(qa){var Aa,Ga;return (null === (Ga=null === (Aa=fa.bb) || void 0 === Aa?void 0:Aa.Vh) || void 0 === Ga?void 0:Ga.ba[qa].J) === S;}),!ka && this.Pqa() && (ka="placeholder-segmentId-" + S),(0,F.va)(!!ka,"Segment for the auxiliary viewable should exist in the combined playgraph"),ka && this.Xka({J8b:ba,ue:N,qb:ea,L:ka,J:S},V));}};d.prototype.W$=function(S){return !!this.wo.has(S);};d.prototype.Lyb=function(S){try{return (this.Vl(S),!0);}catch(N){return !1;}};d.prototype.Oj=function(S){if(S === W.vr)return this.ga;if(!this.wo.has(S))throw Error("Playback segment not found: " + S);return this.wo.get(S);};d.prototype.Vl=function(S){var N,V,ba;a:{for(var fa=Ea(this.SS),ia=fa.next();!ia.done;ia=fa.next())if((ia=ia.value,ia.L === S)){fa=ia;break a;}fa=void 0;}return fa?fa:(null === (V=null === (N=this.bb) || void 0 === N?void 0:N.Vh) || void 0 === V?0:V.ba[S])?(S=null === (ba=this.bb) || void 0 === ba?void 0:ba.Vh.ba[S].J,this.NVa.R === S && (fa=this.NVa),null !== fa && void 0 !== fa?fa:this.Oj(S)):this.ga;};d.prototype.ywb=function(S){return this.hTa.get(S);};d.prototype.cva=function(S){var N,V;N=this;!1;V=S.R;this.km.DPc(V);return this.mea(S).then(function(ba){N.eda(ba,S);ba=S.ER?N.ac.wD.KMc(S):Promise.resolve();N.OIc(S);return ba.then(function(){return N.km.BMb(V);});}).catch(function(ba){N.log.error("queueManifest failed",ba);N.km.CPc(V,ba);throw N.Yj(ba.code,ba);});};d.prototype.cJc=function(){var S,N,V,ba,fa,ia;V=this.ga;(0,F.va)(void 0 !== V.Cf,"segment should have mainViewableId defined to fetch main manifest");V.Ha=null !== (S=V.Ha) && void 0 !== S?S:this.AA.nG();ba=this.xb.eR(this);S=Object.keys(ba.ba).find(function(ka){return ba.ba[ka].J === V.Cf;});fa=I.Wp.yr;ia={oD:!0,Pg:!1};S && (ia=ba.ba[S],ia=Object.assign(null !== (N=this.km.nR(V.Cf).Cb) && void 0 !== N?N:this.qb,{Gb:ia.Ua,Lg:ia.fb,Pg:!1,QB:Date.now(),oD:!0}),this.Xka({J:V.Cf,Cf:V.Cf,L:S,qb:ia},V.Ha));return r.config.Ay && this.uh.Yv(this.R)?this.uh.c$(this.R):this.uh.kp({Ha:V.Ha,qb:ia,J:V.Cf,$t:fa,Hi:void 0,oN:void 0,ue:void 0},this.Qh.signal,!1);};d.prototype.yT=function(S){var N,V,ba,fa,ia,ka,pa;N=this;V=S.uy;ba=S.U7;fa=S.Rf;S=fa.Hb;ia=fa.fd;fa=this.Oj(ia);ka=I.Wp.yr;pa={oD:!0,Pg:!1,QB:Date.now()};return this.uh.kp({Ha:fa.Ha,qb:pa,J:fa.R,$t:ka,Hi:void 0,uy:V,U7:ba,ue:{Hb:S,OD:fa.Xd}},this.Qh.signal,!1).then(function(oa){N.uh.NIb();oa.lq.forEach(function(la){N.uh.fU(la.Aa.R,la);N.hTa.set(la.Aa.R,la);});if(!oa.Aa.Hd)throw Error("Dai prefetch request has no adverts forparentViewableId: " + ia);return oa.Aa.Hd;});};d.prototype.xT=function(S){var N,V,ba,fa,ia,ka,pa;N=this;(0,F.va)(S.Rf,"auxiliaryOptions must exist if an adBreak hydration was requested");V=S.Rf;ba=V.Hb;fa=V.fd;ia=S.Xk;ka=S.eb;(0,F.va)(!!ba,"auxiliaryManifestToken must exist if an adBreak hydration was requested");!1;S=this.Oj(S.Rf.fd);V=I.Wp.yr;pa={oD:!0,Pg:!1,QB:Date.now()};return this.uh.kp({Ha:S.Ha,qb:pa,J:S.R,$t:V,Hi:void 0,oN:void 0,ue:{Xk:ia,eb:ka,Hb:ba,fd:fa,OD:S.Xd}},this.Qh.signal,!1).then(function(oa){var la,R;oa.lq.forEach(function(ea){N.hTa.set(ea.Aa.R,ea);});if(null === (la=oa.Aa.Hd) || void 0 === la || !la.lb.length)throw Error("AdBreak hydration request came with no adBreak forparentViewableId: " + (fa + ", adBreakToken: " + ia + ", adBreakTriggerId: " + ka));return null === (R=oa.Aa.Hd) || void 0 === R?void 0:R.lb[0];});};d.prototype.zoc=function(){if((0,J.pc)(this.Ff.ats) && (0,J.pc)(this.Ff.at))return this.Ff.at - this.Ff.ats;};d.prototype.Rvb=function(){var S,N;S=this.Vfa();N=this.w7();return Math.min(S,N);};d.prototype.Y1=function(){this.background.value || (this.nd.info("Starting inactivity monitor for movie " + this.R),new u.mXb(this));};d.prototype.close=function(S){S && (this.state.value == O.Fc.CLOSED?S():this.addEventListener(O.ja.closed,function(){S();}));this.A1a();};d.prototype.wg=function(S,N,V){S=this.Yj(S,N,V);this.iK(S,void 0);};d.prototype.iK=function(S,N){var V,ba,fa,ia;V=this;!1;(0,D.nha)(S.errorCode,S.Ta,this.Va.yc().ea(this.Xj).na(C.ya),null === (ba=this.Wd) || void 0 === ba?void 0:ba.mA()) || this.PLa.add(this.Ma.Mg,null === (fa=this.Rl) || void 0 === fa?void 0:fa.py.gy,S.errorCode,S.Ta,S.Ng);S.OMb(this.Dp);if(this.state.value == O.Fc.PV)this.Mj || (this.Mj=S,this.load());else {N && (this.state.value == O.Fc.CLOSED?N():this.addEventListener(O.ja.closed,function(){N();}));ba=function(){V.A1a(S);};fa=r.config.Rrb && S && r.config.Rrb[S.errorCode];ia=-1;(0,J.n_)(fa) && (ia=(0,E.am)(fa));this.nd.error("Fatal playback error",{Error:"" + S,HandleDelay:"" + fa});0 <= ia?setTimeout(ba,ia):ba();}};d.prototype.vP=function(S){var N;N=void 0 === N?this.L:N;S=this.Va.yc().na(C.ya) + "-" + N + "-" + S;!1;this.pIb.push(S);};d.prototype.bnc=function(){this.Nub();};d.prototype.PRa=function(){var S;if(null === (S=this.bb) || void 0 === S?0:S.kk)if((S=this.bb.eu().id,void 0 !== S))return S;return null;};d.prototype.lyb=function(){var S;S=this.xb.eR(this);S=Object.values(S.ba).map(function(N){return N.J;});return [].concat(za(new Set(S)));};d.prototype.owb=function(){var S,N,V,ba;ba=this.Cf?null === (N=null === (S=this.wo.get(this.Cf)) || void 0 === S?void 0:S.S) || void 0 === N?void 0:N.Aa.duration:null === (V=this.S) || void 0 === V?void 0:V.Aa.duration;if(ba)return this.xb.yua.DOc(this.RK(),this.xb.Bi,ba);};d.prototype.RK=function(){var S,N;N=null === (S=this.bb) || void 0 === S?void 0:S.kk;return void 0 === this.ga.v8 || N?this.iR(this.mediaTime.value):this.ga.v8;};d.prototype.ORa=function(){var S;S=this.iR(this.Wd.lwb());return null === S?null:Math.min(this.mG.na(C.ya),Math.max(0,S));};d.prototype.e$=function(){var S,N;return null === (N=null === (S=this.S) || void 0 === S?void 0:S.Aa.Sr) || void 0 === N?void 0:N.ba;};d.prototype.Exa=function(S){!1;this.qb=(0,K.osa)(this.qb,S);this.SKa();};d.prototype.ASa=function(S){return (null === S || void 0 === S?0:S.J)?S.J:(null === S || void 0 === S?0:S.rRb) && this.QP?this.QP.J === W.vr?(S=this.QP.Gc) && this.bb && this.bb.Vh?this.bb.Vh.ba[S].J:this.R:this.QP.J:this.R;};d.prototype.voc=function(){var S;S=this.Oj(this.ASa(void 0)).ka.he;return S?S.streams:[];};d.prototype.VK=function(S){return (S=this.Oj(this.ASa(S)).ka.Lh)?S.streams:[];};d.prototype.Byb=function(S){for(var N=Ea(this.SS),V=N.next();!V.done;V=N.next())if(V=(V=V.value.Uh) && V.find(function(ba){return ba.id === S;}))return V;!1;};d.prototype.OIc=function(S){S=void 0 === S?this.ga:S;!1;S.ka.Qd?this.$q.eZa(S.ka.Qd):Promise.resolve();};d.prototype.dRb=function(S){var N,V;N=this;V=this.xb.eR(this);Object.values(V.ba).forEach(function(ba){var fa,ia;ba=N.wo.get(ba.J);ia=null === (fa=null === ba || void 0 === ba?void 0:ba.Yc) || void 0 === fa?void 0:fa.vj;ia && (fa=ia.filter(function(ka){return ka.Ig === S.Ig;}),1 < fa.length && (fa=fa.filter(function(ka){return ka.displayName === S.displayName;})),1 < fa.length && (fa=fa.filter(function(ka){return ka.aj === S.aj;})),(fa=Ea(fa.sort(function(ka,pa){return ka.Ac - pa.Ac;})).next().value) && fa !== ba.ka.Qd && (ba.ka.Jp(fa),N.$q.eZa(ba.ka.Qd)));});};d.prototype.xyb=function(S){for(var N=Ea(this.SS),V=N.next();!V.done;V=N.next()){V=Ea(V.value.Yk);for(var ba=V.next();!ba.done;ba=V.next())if(ba=ba.value.streams.find(function(fa){return fa.ob === S;}))return ba;}!1;};d.prototype.Qyb=function(S){for(var N=Ea(this.SS),V=N.next();!V.done;V=N.next()){V=Ea(V.value.BE);for(var ba=V.next();!ba.done;ba=V.next())if(ba=(ba=ba.value) && ba.streams.find(function(fa){return fa.ob === S;}))return ba;}!1;};d.prototype.nuc=function(S){for(var N=Ea(this.SS),V=N.next();!V.done;V=N.next())if(V.value.Xd === S)return !0;return !1;};d.prototype.PC=function(){var S,N,V;return null !== (V=null === (N=null === (S=this.sua) || void 0 === S?void 0:S.B8) || void 0 === N?void 0:N.call(S)) && void 0 !== V?V:this.dfc().qub;};d.prototype.aNb=function(S){var N,V;null !== (N=this.bb) && void 0 !== N && N.kk && this.wo.has(S) && ((null === (V=this.sua) || void 0 === V?0:V.B8)?this.sua.FQb():(N=this.BNa(S),this.bb.uwa(N,S)));};d.prototype.Ixc=function(){return "trailer" === this.ff;};d.prototype.qwc=function(){return !!this.ff && 0 <= this.ff.indexOf("billboard");};d.prototype.Pxc=function(){return !!this.ff && 0 <= this.ff.indexOf("video-merch");};d.prototype.CAb=function(){return !!this.ff && 0 <= this.ff.indexOf("mini-modal");};d.prototype.l_=function(){return this.Ixc() || this.qwc() || this.Pxc() || this.CAb();};d.prototype.Voa=function(){var S,N,V;N={rRb:!0};if((null === (S=this.Oj(this.ASa(N)).S) || void 0 === S || !S.Aa.qs) && this.BE){this.VK(N).forEach(function(ba){var fa,ia;if((0,J.pc)(ba.DNa) && (0,J.pc)(ba.Zqb) && (0,J.pc)(ba.Yqb) && (0,J.pc)(ba.Xqb) && (0 < ba.DNa || 0 < ba.Zqb)){fa=1;ia=1;(0,J.pc)(ba.THb) && (0,J.pc)(ba.UHb) && (fa=ba.THb,ia=ba.UHb);fa=ba.Xqb * ia / (ba.Yqb * fa);V=(0,J.pc)(V)?0 < ba.DNa?Math.max(V,fa):Math.min(V,fa):fa;}});return V;}};d.prototype.gsc=function(){return {tr:this.J2a,rt:this.H_a};};d.prototype.CZ=function(S){return this.ys[S];};d.prototype.SLa=function(){return this.er?this.Va.yc().na(C.ya) - this.er:this.Ma.Mg.na(C.ya) - this.QQ();};d.prototype.Y7=function(){var S;if(this.er)return this.Va.yc().na(C.ya) - this.er;S=this.Va.nH;return this.Tca - (this.Xj.na(C.ya) + S.na(C.ya));};d.prototype.TLa=function(){return this.er?this.Va.yc().na(C.ya) - this.er:this.Tca - this.QQ();};d.prototype.Goc=function(){var S,N;S=this.loadTime;N={};(0,E.Di)(this.tLa,function(V,ba){N[V]=ba.map(function(fa){return fa - S;});});return e.DC?{level:e.DC.Iwb(),charging:e.DC.LQa(),statuses:N}:null;};d.prototype.Kpa=function(){this.Mub();return this.Txa;};d.prototype.QQ=function(){var S;S=this.qb.QB;S=(0,J.pc)(S)?S:this.Xj.na(C.ya) + this.Va.nH.na(C.ya);(0,F.va)((0,J.sL)(S));return S;};d.prototype.Gxb=function(){return this.Va.yc().na(C.ya) - this.Xj.na(C.ya);};d.prototype.zXc=function(){this.bRc=!0;};d.prototype.bta=function(){this.YJb();};d.prototype.Vfa=function(){var S;S=this.mX();return S && S.vbuflmsec || 0;};d.prototype.w7=function(){var S;S=this.mX();return S && S.abuflmsec || 0;};d.prototype.TTc=function(){var S;S=this.mX();return S && S.tbuflmsec || 0;};d.prototype.M3a=function(){var S;S=this.mX();return S && S.vbuflbytes || 0;};d.prototype.cLa=function(){var S;S=this.mX();return S && S.abuflbytes || 0;};d.prototype.STc=function(){var S;S=this.mX();return S && S.tbuflbytes || 0;};d.prototype.mea=function(S,N,V){var ba,fa,ia,ka,pa,oa;ba=this;S=void 0 === S?this.ga:S;V=void 0 === V?!0:V;!1;ka=!!N;pa=!ka && S !== this.ga;oa=r.config.ava.enabled?I.Wp.M_b:pa?I.Wp.u5:this.l_()?I.Wp.bja:I.Wp.yr;ka=this.l_() || ka || pa?void 0:(0,da.t$)(r.config,pa);return this.uh.kp({Ha:S.Ha,qb:S.qb,J:S.R,$t:oa,Hi:ka,oN:N,ue:S.ue,qs:null !== (ia=null === (fa=S.ue) || void 0 === fa?void 0:fa.qs) && void 0 !== ia?ia:!1},this.Qh.signal,S.ue?!1:V).then(function(la){la.eUa && ba.fireEvent(O.ja.nVa,{R:S.R});return la;});};d.prototype.eda=function(S,N,V){var ba,fa,ia,ka;N=void 0 === N?this.ga:N;V=void 0 === V?!1:V;!1;if(N.qb.Pg && !S.Aa.Sr)this.wg(D.da.GTb);else {fa=this.Aba.create(this);ia=!!(N.ue && N.ue.Hb && N.ue.Fca);if(V){ka=fa.Xuc(N.S,N.Yc,S);S=ka.S;ka=ka.Yc;}else (S=ia?fa.aOc(S,null === (ka=N.ue) || void 0 === ka?void 0:ka.Fca):S,ka=fa.mHb(S));N.S=S;N.Yc=ka;N.Cf && (N.ue=Object.assign(null !== (ba=N.ue) && void 0 !== ba?ba:{},{Hb:S.Aa.Hb,OD:S.Aa.Xd}));N.R !== N.Cf || this.Pra || (this.Pra=S.Aa.Xd);V || (N.ka.b1a(ka.S8),N.ka.yB(ka.M8),N.ka.Jp(ka.O8));N.Bc.za && N.Bc.sZa();}};d.prototype.snc=function(S){var N;N=void 0 === N?!1:N;!1;this.KT({J:S,AR:N});};d.prototype.Dyb=function(S,N){if(!this.ol.D3a)return !0;S=this.Ks.na(C.ya) - S;return 0 > S || S > N;};d.prototype.YKb=function(){!1;this.Wd.seek(this.RK() || 0,O.Mc.pha);};d.prototype.hzb=function(S,N){var V,ba;V=this;!1;ba=this.ga;ba.tna=!0;return this.mea(ba,{OD:ba.Xd,aNc:S,eNc:N},!1).then(function(fa){var ia;V.eda(fa,ba,!0);V.uh.fU(ba.R,ba.S);return null === (ia=V.bb) || void 0 === ia?void 0:ia.H2(V.oIb);}).then(function(){var fa,ia;fa=ba.Yk.find(function(ka){return ka.trackId === S;});ia=ba.vj.find(function(ka){return ka.trackId === N;});if(!(fa && fa.cf && ia && ia.cf))throw Error("Track hydration failed: requiredAudioTrackId=" + S + " requiredTextTrackId=" + N);V.fireEvent(O.ja.TPb);return {he:fa,ifa:ia};});};d.prototype.cn=function(){return this.Cc;};d.prototype.KT=function(S){var N,V,ba;N=S.J;V=S.AR;S=S.QP;!1;S !== this.QP && (this.QP=S,this.hRb());if(this.X0){if(N === this.pG){this.X0=N;return;}S=this.Oj(N);ba=S.S;ba && (0,J.$c)(ba.zT) && (0,J.$c)(ba.q1) && S.aL({pr_ats:ba.zT,pr_at:ba.q1});this.Cf && S.Cf === this.Cf || this.fireEvent(O.ja.TVa,{R:this.pG});this.pG=N;this.SKa();V || this.kLb();this.eH=this.Ma.hI;this.ga.er || (this.ga.er=this.Va.yc().na(C.ya));}("boolean" === typeof this.qb.RY?this.qb.RY:r.config.RY) && !V && this.T2a.RY(this);V={R:N,AR:V,X0:this.X0};this.X0=N;this.fireEvent(O.ja.KL,V);};d.prototype.Sec=function(){!1;try{this.ac=new h.tDa(this);this.IL=this.D_.create(this,this.ga,!0,this.iR);r.config.nac && new T.cWb(this,this.log);r.config.c8 && this.c8(this);this.PWc();}catch(S){this.yw(D.da.YWb,{Ta:D.Y.nr,qf:(0,E.jj)(S)});}};d.prototype.PWc=function(){!1;this.Mj?this.iK(this.Mj):(0,J.uUa)(this.R)?this.$ac():this.yw(D.da.VWb,{qf:"" + this.R});};d.prototype.$ac=function(){var S;!1;S=c.eU.uMb;S?S.success?this.FMa():this.yw(D.da.y$a,S):((0,F.va)(!r.config.Xna),this.UJa());};d.prototype.FMa=function(){var S;S=this;!this.background.value && r.config.FMa?(0,w.meb)(function(){S.UJa();},this):this.UJa();};d.prototype.UJa=function(){var S;S=this;!1;this.state.value == O.Fc.LOADING && (r.config.hPa && !this.l_()?c.eU.Oz(w.leb,function(N){N.success?(S.Kra=N.Kra,S.enb()):S.yw(D.da.x$a);},!0):this.enb());};d.prototype.enb=function(){var S,N,V,ba;S=this;if(this.state.value == O.Fc.LOADING){this.log.info("Authorizing",this);N=this.Va.yc().na(C.ya);this.fh("ats");(0,F.pY)(this.R);(0,F.pY)(this.Hn);V=this.ZJc.bind(this,N);ba=this.ga;Promise.all([this.S,r.config.Ay && this.uh.Yv(this.R)?this.uh.c$(this.R).catch(function(){}):void 0,ba.Cf && ba.Cf !== ba.R?this.cJc():void 0]).then(function(fa){var ia,ka,pa,oa,la,R;ia=Ea(fa);fa=ia.next().value;ka=ia.next().value;ia=ia.next().value;fa && ka?oa=ka.Aa.expiration > fa.Aa.expiration?ka:fa:fa?oa=fa:ka && (oa=ka);oa && 18E5 > oa.Aa.expiration - S.Ma.hI.na(C.ya) && (oa=void 0);if(ia){ka=S.wo.get(ba.Cf);la=ia.Aa.Xd;R=ia.Aa.Hb;S.Pra=la;ka && S.eda(ia,ka);ba.ue=Object.assign(null !== (pa=ba.ue) && void 0 !== pa?pa:{},{Hb:R,OD:la});R && R !== (null === oa || void 0 === oa?void 0:oa.Aa.Hb) && (oa=void 0);}return oa?(S.LP=oa === fa?"ui":"videopreparer",oa):S.mea();}).then(function(fa){try{S.eda(fa);V(m.Oh);S.fIb || (S.fIb=!0,S.sYa.hm(S));}catch(ia){S.log.error("Exception processing authorization response",ia);V({success:!1,Ta:D.Y.o_b});}}).catch(V);}};d.prototype.ZJc=function(S,N){var V,ba;V=this;!1;if(this.state.value == O.Fc.LOADING){this.fh("at");ba=this.S;this.aL({pr_ats:ba && (0,J.$c)(ba.zT)?ba.zT:S,pr_at:ba && (0,J.$c)(ba.q1)?ba.q1:this.Va.yc().na(C.ya)});N.success?((0,aa.za)(ba.Aa.Yf),0 < this.Yc.Uh.length && this.Yc.M8 && this.Yc.S8 && this.Yc.O8?this.vIb?(this.log.info("Processing post-authorize",this),this.vIb(this,function(fa){fa.success?V.LQb():V.yw(D.da.bXb,fa);})):this.LQb():this.yw(D.da.ebb,this.UVa(this.Yc))):this.yw(D.da.pO,N);}};d.prototype.LQb=function(){n.__awaiter(this,void 0,void 0,function N(){var V,ba,fa;fa=this;return Ua(N,function(ia){!1;if(fa.state.value != O.Fc.LOADING)return ia.return();(null === (V=fa.ga.S) || void 0 === V?0:V.Aa.Sr) && fa.xb.reset((0,W.rMa)(null === (ba=fa.ga.S) || void 0 === ba?void 0:ba.Aa.Sr,{config:r.config}));fa.bb=fa.XKa(fa.xb,fa);fa.bb.tQc({uv:g.uv,config:r.config,Of:fa.Of,nd:fa.nd,XA:fa.XA.bind(fa),gn:B.gn,rea:fa.rea.bind(fa),KT:fa.KT.bind(fa)});fa.zIc();ia.Ds=0;});});};d.prototype.sgc=function(){var S,N,V,ba,fa,ia,ka,pa;S=this;!1;try{if(this.state.value === O.Fc.LOADING){this.ac.open();N=new Promise(function(oa){S.ac.addEventListener(M.Pk.Dwa,oa);});this.Wd=new L.zDa(this,this.Gb);V=this.Yc.M8.aj === U.Zu.NONE;ba={SRb:this.Yc.M8.Gq || V};fa={Ha:this.Ha,Jf:this.correlationId,zK:this.zK};try{if(this.state.value !== O.Fc.LOADING)return;ia=this.bb;ia.raa({flags:ba,D8:fa,L:this.oIb,BNa:this.BNa.bind(this)});ka=this.xb.eR(this);this.Gqb(ka);ia.vN(ka);this.V5b();ia.h9b({ys:this.ys,loadTime:this.loadTime});this.Cc=this.fKa(ia,this);this.Cc.Xo.addListener(function(oa){var la,R;oa.newValue?("dynamic" === (null === (la=S.Cc) || void 0 === la?void 0:la.YUa) && S.$q.Fuc(),r.config.Ay && !S.Bc.za && S.og.qyb()):"dynamic" === (null === (R=S.Cc) || void 0 === R?void 0:R.YUa) && S.$q.eRc();});this.Cc.addEventListener(O.Gya.Qka,function(){S.Bc.za || S.og.qyb();});}catch(oa){throw (this.log.error("Failed to initialize ASE streaming",{error:oa,startPts:this.Gb,flags:ba}),oa);}N.then(function(){var oa;S.state.value !== O.Fc.CLOSING && S.state.value !== O.Fc.CLOSED && (null === (oa=S.bb) || void 0 === oa?void 0:oa.open());});this.mediaTime.set(this.Gb);pa=new ha.vhb(r.config);this.$q=new k.uhb(this,pa);if("boolean" === typeof this.qb.ova?this.qb.ova:r.config.ova)this.ofa=new A.whb(this,pa);this.Y1();w.mFa.forEach(function(oa){oa(S);});this.UDc();}}catch(oa){this.yw(D.da.$Wb,{Ta:D.Y.nr,qf:(0,E.jj)(oa)});}};d.prototype.VDc=function(){(0,F.va)(this.state.value == O.Fc.PV);this.loadTime=this.Va.yc().na(C.ya);this.state.set(O.Fc.LOADING);};d.prototype.oLc=function(){return n.__awaiter(this,void 0,void 0,function N(){var V,ba,fa,ia,ka,pa,oa;V=this;return Ua(N,function(la){ba=V;ka=(0,J.pc)(null === (fa=V.bb) || void 0 === fa?void 0:fa.Knb)?null === (ia=V.bb) || void 0 === ia?void 0:ia.Knb:V.Yr;(0,F.va)((0,J.pc)(ka),"lastPts before restart should have a valid number type");pa=V.Wd.LS;oa=V.ac.Ga;V.jc.qd(O.ja.Sda);V.ac=new h.tDa(V);V.ac.open(oa);V.Wd=new L.zDa(V,pa?V.mediaTime.value:ka,!0);return la.return(new Promise(function(R){function ea(){ba.ac.removeEventListener(M.Pk.Dwa,ea);R();}ba.ac.addEventListener(M.Pk.Dwa,ea);}));});});};d.prototype.yw=function(S,N){this.done || (this.done=!0,N instanceof Q.re?this.wg(N.code,N):this.wg(S,N));};d.prototype.c8=function(S){var V,ba;function N(){var fa,ia;fa=e.DC.LQa() + "";ia=S.tLa[fa];ia || (ia=S.tLa[fa]=[]);ia.push(V.Va.yc().na(C.ya));V.log.trace("charging change event",{level:e.DC.Iwb(),charging:e.DC.LQa()});}V=this;ba=e.DC.mUb;e.DC.addEventListener(ba,N);S.addEventListener(O.ja.ph,function(){e.DC.removeEventListener(ba,N);});};d.prototype.A1a=function(S){var N,V;N=this;if(this.state.value == O.Fc.PV || this.state.value == O.Fc.LOADING || this.state.value == O.Fc.zf){this.nd.info("Playback closing",this,S?{ErrorCode:S.xna}:void 0);this.vP("Closing");v.xe.removeListener(v.hn,this.uca);v.xe.removeListener(v.ls,this.BGb);this.Mj=S;this.ga.v8=this.RK();this.Mub();(null === (V=this.bb) || void 0 === V?0:V.kk) && this.bb.flush();try{this.jc.qd(O.ja.ph,{movieId:this.pG});}catch(ba){this.nd.error("Unable to fire playback closing event",ba);}this.state.set(O.Fc.CLOSING);this.TSb();this.Qh.abort();this.bRc || (0,G.Xh)(function(){return N.YJb();});}};d.prototype.Qmc=function(){this.jc.qd(O.ja.EQb);};d.prototype.Nub=function(){var S;S=this.mediaTime.value;this.Byc != S && (!1,this.Byc=S,this.jc.qd(O.ja.s2a));};d.prototype.YJb=function(){var S,N;S=this;(0,F.va)(this.state.value == O.Fc.CLOSING);N=this.Kra;this.Kra=void 0;N?c.eU.release(N,function(V){(0,F.va)(V.success);S.KMa();}):this.KMa();};d.prototype.TSb=function(){var S;null === (S=this.bb) || void 0 === S?void 0:S.Qe();delete this.bb;};d.prototype.KMa=function(){var S,N;this.KMa=m.eJ;(0,F.va)(this.state.value == O.Fc.CLOSING);N=w.Zp.indexOf(this);(0,F.va)(0 <= N);w.Zp.splice(N,1);this.state.set(O.Fc.CLOSED);this.jc.qd(O.ja.closed,void 0,!0);this.jc.Zg();N=Ea(this.SS);for(var V=N.next();!V.done;V=N.next())(V=V.value,null === (S=V.Rl) || void 0 === S?void 0:S.close().catch(function(){}),delete V.Rl);this.ga.bta();};d.prototype.SKa=function(){this.qb.playbackState && ("number" === typeof this.qb.playbackState.volume && this.volume.set((0,H.eF)(this.qb.playbackState.volume,0,1)),"boolean" === typeof this.qb.playbackState.muted && this.muted.set(this.qb.playbackState.muted),"number" === typeof this.qb.playbackState.playbackRate && this.playbackRate.set(this.qb.playbackState.playbackRate));};d.prototype.Mub=function(){this.jc.qd(O.ja.i1a,{Txa:this.Txa});};d.prototype.rea=function(S,N,V){N=this.Byb(N);S=this.Vl(S);N && S.Tc[V].set(N);};d.prototype.XA=function(){return {AudioBufferLength:this.w7(),VideoBufferLength:this.Vfa()};};d.prototype.mX=function(){var S;if(null === (S=this.bb) || void 0 === S?0:S.kk)return this.bb.aAb();};d.prototype.UDc=function(){this.state.value == O.Fc.LOADING && this.state.set(O.Fc.zf);};d.prototype.dfc=function(){var S,N,V;S=void 0 === S?this.R:S;N=this.VK({J:S});V=this.Oj(S);return (0,X.PC)(N,function(ba){return V.Q_.kI(ba);});};d.prototype.BNa=function(S){var N,V;S=void 0 === S?this.R:S;N=this.VK({J:S});V=this.Oj(S);return (0,X.mtc)(N,function(ba){return V.Q_.kI(ba);});};d.prototype.Gqb=function(S){var N;N=this;Object.keys(S.ba).filter(function(V){return !N.wo.has(S.ba[V].J);}).forEach(function(V){var ba,fa,ia,ka,pa,oa,la;ia=S.ba[V];ka=ia.J;pa=N.wo.get(S.ba[S.sf].J);oa=ia.wp?N.wo.get(ia.wp):void 0;la=Object.assign(null !== (ba=N.km.nR(ka).Cb) && void 0 !== ba?ba:N.qb,{Gb:ia.Ua,Lg:ia.fb,Pg:!1,QB:Date.now(),oD:!0});ba=N.BUa(ia.wp) && N.Pra?{Hb:null !== (fa=null === oa || void 0 === oa?void 0:oa.Hb) && void 0 !== fa?fa:null === pa || void 0 === pa?void 0:pa.Hb,OD:N.Pra}:void 0;N.Xka({J:ka,Cf:ia.wp,L:V,qb:la,ue:ba},N.BUa(ia.wp)?null === pa || void 0 === pa?void 0:pa.Ha:void 0);});};Ha.Object.defineProperties(d.prototype,{SS:{configurable:!0,enumerable:!0,get:function(){return this.wo.values();}},ga:{configurable:!0,enumerable:!0,get:function(){return this.wo.get(this.pG);}},NVa:{configurable:!0,enumerable:!0,get:function(){return this.Oj(this.zAc);}},Gb:{configurable:!0,enumerable:!0,get:function(){var S,N;return void 0 !== this.mq?this.mq:null !== (N=null === (S=this.SS.next()) || void 0 === S?void 0:S.value.qb.Gb) && void 0 !== N?N:0;}},Yc:{configurable:!0,enumerable:!0,get:function(){return this.ga.Yc;},set:function(S){this.ga.Yc=S;}},Aoa:{configurable:!0,enumerable:!0,get:function(){return this.ga.qb.Aoa;}},Boa:{configurable:!0,enumerable:!0,get:function(){return this.ga.qb.Boa;}},index:{configurable:!0,enumerable:!0,get:function(){return this.ga.index;}},L:{configurable:!0,enumerable:!0,get:function(){return this.ga.L;}},oIb:{configurable:!0,enumerable:!0,get:function(){return this.xb.E3a?this.xb.Bi:this.ga.L;}},Rl:{configurable:!0,enumerable:!0,get:function(){return this.ga.Rl;},set:function(S){this.ga.Rl=S;}},er:{configurable:!0,enumerable:!0,get:function(){return this.ga.er;},set:function(S){this.ga.er=S;}},LP:{configurable:!0,enumerable:!0,get:function(){return this.ga.LP;},set:function(S){this.ga.LP=S;}},DX:{configurable:!0,enumerable:!0,get:function(){return this.ga.DX;},set:function(S){this.ga.DX=S;}},tqa:{configurable:!0,enumerable:!0,get:function(){return this.ga.tqa;},set:function(S){this.ga.tqa=S;}},S:{configurable:!0,enumerable:!0,get:function(){return this.ga.S;},set:function(S){this.ga.S=S;}},mq:{configurable:!0,enumerable:!0,get:function(){return this.ga.mq;},set:function(S){this.ga.mq=S;}},cfa:{configurable:!0,enumerable:!0,get:function(){return this.ga.cfa;},set:function(S){this.ga.cfa=S;}},qb:{configurable:!0,enumerable:!0,get:function(){return this.ga.qb;},set:function(S){this.ga.qb=S;}},IL:{configurable:!0,enumerable:!0,get:function(){return this.ga.IL;},set:function(S){this.ga.IL=S;}},Cp:{configurable:!0,enumerable:!0,get:function(){return this.ga.Cp;}},R:{configurable:!0,enumerable:!0,get:function(){return this.ga.R;}},ff:{configurable:!0,enumerable:!0,get:function(){return this.ga.ff;}},Yk:{configurable:!0,enumerable:!0,get:function(){return this.ga.Yk;}},BE:{configurable:!0,enumerable:!0,get:function(){return this.ga.BE;}},xI:{configurable:!0,enumerable:!0,get:function(){return this.ga.xI;}},vj:{configurable:!0,enumerable:!0,get:function(){return this.ga.vj;}},Xd:{configurable:!0,enumerable:!0,get:function(){return this.ga.Xd;}},Hb:{configurable:!0,enumerable:!0,get:function(){return this.ga.Hb;}},ER:{configurable:!0,enumerable:!0,get:function(){return this.ga.ER;}},lT:{configurable:!0,enumerable:!0,get:function(){return this.ga.lT;}},$r:{configurable:!0,enumerable:!0,get:function(){return this.ga.$r;}},Uh:{configurable:!0,enumerable:!0,get:function(){return this.ga.Uh;}},mG:{configurable:!0,enumerable:!0,get:function(){return this.ga.mG;},set:function(S){this.ga.mG=S;}},Ha:{configurable:!0,enumerable:!0,get:function(){return this.ga.Ha;}},Cf:{configurable:!0,enumerable:!0,get:function(){return this.ga.Cf;}},Hn:{configurable:!0,enumerable:!0,get:function(){return this.ga.Hn;}},Xj:{configurable:!0,enumerable:!0,get:function(){return this.ga.Xj;}},eH:{configurable:!0,enumerable:!0,get:function(){return this.ga.eH;},set:function(S){this.ga.eH=S;}},correlationId:{configurable:!0,enumerable:!0,get:function(){return this.ga.correlationId;}},PT:{configurable:!0,enumerable:!0,get:function(){return this.ga.PT;}},Yr:{configurable:!0,enumerable:!0,get:function(){return this.ga.Yr;}},Ff:{configurable:!0,enumerable:!0,get:function(){return this.ga.Ff;}},zv:{configurable:!0,enumerable:!0,get:function(){return this.ga.zv;}},FOa:{configurable:!0,enumerable:!0,get:function(){return this.ga.FOa;}},Q_:{configurable:!0,enumerable:!0,get:function(){return this.ga.Q_;}},zK:{configurable:!0,enumerable:!0,get:function(){var S,N,V,ba;V=r.config.Esb;ba=null === (N=null === (S=this.S) || void 0 === S?void 0:S.Aa.qE) || void 0 === N?void 0:N.O1a;if(void 0 !== ba && void 0 !== ba.downloadReportDenominator)try{V=parseInt(ba.downloadReportDenominator,10);}catch(fa){this.log.error("Unable to parse manifest config override:" + ba.downloadReportDenominator);}return 0 !== V && 0 === this.ga.Ha % V;}},tna:{configurable:!0,enumerable:!0,get:function(){return this.ga.tna;}},Bc:{configurable:!0,enumerable:!0,get:function(){return this.ga.Bc;}},oY:{configurable:!0,enumerable:!0,get:function(){return this.muted.value?0:Math.round(100 * this.volume.value) / 100;}},Ki:{configurable:!0,enumerable:!0,get:function(){return {MovieId:this.R,TrackingId:this.Hn,Xid:this.Ha};}},un:{configurable:!0,enumerable:!0,get:function(){return this.xb.un;}}});b.oeb=d;},52200:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;function d(y,A,z,B,C,D){var F;F=this;this.j=y;this.gp=A;this.Lfa=z;this.Nk=B;this.NNb=C;this.cA=D;this.srb={};this.update=function(){var H;if(F.Ku.selectionStart == F.Ku.selectionEnd){H="";F.p$().forEach(function(E){H=H?H + "\n":"";Object.entries(E).forEach(function(G){var J;J=Ea(G);G=J.next().value;J=J.next().value;H+=G + ": " + J + "\n";});});F.Ku.style.fontSize=(0,f.eF)((0,e.KV)(F.element.clientHeight / 60),8,18) + "px";F.Ku.value=H;}};this.gFc=function(){var H,E;if(F.j.Wd){E=F.j.Wd.ZQ();E && (F.HNa=E - (null !== (H=F.EPb) && void 0 !== H?H:0),F.EPb=E,F.s0());}};this.s0=function(){F.Lfa.ig(F.update);};this.onkeydown=function(H){H.ctrlKey && H.altKey && H.shiftKey && (H.keyCode == l.BV.LUb || H.keyCode == l.BV.Q) && F.toggle();};this.cIb=[y.mediaTime,y.Tc[p.u.X],y.Tc[p.u.U],y.Tc[p.u.Ca],y.We,y.ye,y.fj,y.$f,y.Wk,y.state,y.Lt,y.Zb,y.volume,y.muted];this.element=this.Nk.createElement("div","position:fixed;left:10px;top:10px;right:10px;bottom:10px;z-index:9999",void 0,{"class":"player-info"});this.Ku=this.Nk.createElement("textarea","position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;padding:10px;background-color:rgba(0,0,0,0.4);color:#fff;font-size:12px;font-family:Arial;overflow:auto;",void 0,{readonly:"readonly"});this.element.appendChild(this.Ku);this.controls=this.Nk.createElement("div","position:absolute;top:2px;right:2px");this.element.appendChild(this.controls);A=this.Nk.createElement("button",void 0,"X");A.addEventListener("click",function(){return F.kD();},!1);this.controls.appendChild(A);c.xe.addListener(c.WK,this.onkeydown);y.addEventListener(k.ja.ph,function(){c.xe.removeListener(c.WK,F.onkeydown);F.kD();});}Object.defineProperty(b,"__esModule",{value:!0});b.qeb=void 0;n=a(13044);c=a(37509);f=a(8825);g=a(77705);e=a(22365);h=a(32687);k=a(85001);l=a(43193);m=a(5021);p=a(26388);r=a(45247);q=a(75568);t={};u=(t[k.Fc.PV]="Not Loaded",t[k.Fc.LOADING]="Loading",t[k.Fc.zf]="Normal",t[k.Fc.CLOSING]="Closing",t[k.Fc.CLOSED]="Closed",t);t={};v=(t[k.jh.zf]="Normal",t[k.jh.Pf]="Pre-buffering",t[k.jh.Zfb]="Network stalled",t);t={};w=(t[k.Nb.mh]="Waiting for decoder",t[k.Nb.rg]="Playing",t[k.Nb.Oi]="Paused",t[k.Nb.Zw]="Media ended",t);x=[k.ja.Oba];d.prototype.xPc=function(y){this.srb.DFR=y;};d.prototype.show=function(){var y;y=this;this.visible || (this.vaa=Ba.setInterval(this.gFc,1E3),document.body.appendChild(this.element),this.cIb.forEach(function(A){A.addListener(y.s0);}),x.forEach(function(A){y.j.addEventListener(A,y.s0);}),this.visible=!0,this.cA.Xea().then(function(A){y.TSa=A;y.s0();}));this.update();};d.prototype.kD=function(){var y;y=this;this.visible && (clearInterval(this.vaa),this.EPb=this.HNa=void 0,document.body.removeChild(this.element),this.cIb.forEach(function(A){A.removeListener(y.s0);}),x.forEach(function(A){y.j.removeEventListener(A,y.s0);}),this.Lfa.ig(),this.visible=!1);};d.prototype.toggle=function(){this.visible?this.kD():this.show();};d.prototype.p$=function(){var y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha,S,N,V,ba,fa,ia,ka,pa,oa,la,R,ea,ja,sa,ta,qa,Aa,Ga,na,va,xa,ra,ya,Ca,Ja,Ka,La,Oa;y=this;U=[];X=this.gp();U.push({Version:"6.0054.419.911",Esn:X?X.ij:"UNKNOWN",PBCID:this.j.correlationId,UserAgent:e.OV});try{Y=this.j.mediaTime.value;W={MovieId:this.j.R,PackageId:null === (z=null === (A=this.j.S) || void 0 === A?void 0:A.Aa) || void 0 === z?void 0:z.Gs,Xid:this.j.Ha + " (" + n.Zp.map(function(Na){return Na.Ha;}).join(", ") + ")",Position:(0,f.hk)(Y),Duration:(0,f.hk)(this.j.mG.na(m.ya)),PlayerDuration:(0,f.hk)(this.j.Ks.na(m.ya)),Volume:(0,e.ut)(100 * this.j.volume.value) + "%" + (this.j.muted.value?" (Muted)":""),Segment:this.j.PRa()};if(this.j.qb.Pg || this.j.qb.oD)W["Segment Position"]=(0,f.hk)(this.j.RK());null === (B=this.j.cn()) || void 0 === B || B.Nwb();if(this.j.Bc.za){W["Is Live"]="true";W["Live Event Slate"]=this.j.Bc.QK();W["Is At Live Edge"]="" + this.j.Bc.FA();W["Adjusted Live Edge Target"]=(0,f.hk)(this.j.Bc.oA());W["Live Adjusted Duration"]=(0,f.hk)(this.j.Bc.gyb());W["Live Adjusted Playback Position"]=(0,f.hk)(this.j.Bc.Gpa());W["Live Event Time Playback Position"]=this.j.Bc.hpc();W["Live Segment Number"]=this.j.Bc.ipc();Z=[p.u.U,p.u.X,p.u.Ca].reduce(function(Na,Qa){var Va,Sa,Ta;Ta=null === (Sa=null === (Va=y.j.bb) || void 0 === Va?void 0:Va.SA) || void 0 === Sa?void 0:Sa[Qa];Na[(0,r.AH)(Qa)]=Ta?{encoderRegion:Ta.ao,encoderTag:Ta.bo}:void 0;return Na;},{});W["Live Logging Info"]=JSON.stringify(Z);}U.push(W);}catch(Na){}try{U.push({"Player state":u[this.j.state.value],"Buffering state":v[this.j.Lt.value],"Rendering state":w[this.j.Zb.value]});}catch(Na){}try{aa=this.j.M3a() + this.j.cLa();ca=this.j.We.value;da=null === ca || void 0 === ca?void 0:ca.stream;ha=this.j.ye.value;S=null === ha || void 0 === ha?void 0:ha.stream;N=null !== (C=null === da || void 0 === da?void 0:da.bitrate) && void 0 !== C?C:"?";V=S?S.bitrate + " (" + S.width + "x" + S.height + ")":"?";ba=null !== (D=null === da || void 0 === da?void 0:da.ob) && void 0 !== D?D:"?";fa=null !== (F=null === S || void 0 === S?void 0:S.ob) && void 0 !== F?F:"?";ia=null !== (H=null === S || void 0 === S?void 0:S.Pb) && void 0 !== H?H:"?";ka=null !== (G=null === (E=this.j.$f.value) || void 0 === E?void 0:E.Pb) && void 0 !== G?G:"?";pa=null !== (L=null === (J=this.j.fj.value) || void 0 === J?void 0:J.bitrate) && void 0 !== L?L:"?";oa=null !== (M=null === (K=this.j.$f.value) || void 0 === K?void 0:K.bitrate) && void 0 !== M?M:"?";la=this.j.Tc[p.u.X].value;R=this.j.Tc[p.u.U].value;ea=this.j.Tc[p.u.Ca].value;U.push({"Playing bitrate (a/v)":N + " / " + V,"Playing/Buffering vmaf":ia + "/" + ka,"Buffering bitrate (a/v)":pa + " / " + oa,"Buffer size in Bytes (a/v)":this.j.cLa() + " / " + this.j.M3a(),"Buffer size in Bytes":"" + aa,"Buffer size in Seconds (a/v)":(0,f.hk)(this.j.w7()) + " / " + (0,f.hk)(this.j.Vfa()),"Downloadables (a/v)":ba + " / " + fa,"Current CDN (a/v/t)":(la?la.name + ", Id: " + la.id:"?") + " / " + (R?R.name + ", Id: " + R.id:"?") + " / " + (ea?ea.name + ", Id: " + ea.id:"?")});}catch(Na){}try{ja=this.j.We.value;A={};if(ja && ja.stream){sa=ja.stream;ta=sa.track;qa=this.NNb.hqb(ta.streams);Aa=sa.Uc;if((/xheaac/).test(Aa))Ga="xhe-aac";else if((/heaac/).test(Aa))Ga="he-aac";else if((/ddplus/).test(Aa))switch(Aa){case q.Pc.UN:Ga="ddplus51";break;case q.Pc.VN:Ga="ddplus51hq";break;case q.Pc.WN:Ga="ddplusatmos";break;default:Ga="ddplus";}else Ga="unknown";A["Audio Track"]=ta.Ig + ", Id: " + ta.trackId + ", Channels: " + ta.channels + ", Codec: " + qa + " (" + Ga + ")";A["Audio Tags"]=null === (P=ja.stream) || void 0 === P?void 0:P.Mk.toString();}na=this.j.ye.value;if(na && na.stream){va=na.stream;xa=this.NNb.Uqb(this.j.ka.Lh?this.j.ka.Lh.streams:[]);ra=va.Uc;ya=(/hevc/).test(ra)?"hevc":(/h264hpl/).test(ra)?"avchigh":(/av1/).test(ra)?"av1":"avc";(/hdr/).test(ra) && (ya+=", hdr");(/dv/).test(ra) && (ya+=", dv");(/prk/).test(ra) && (ya+=", prk");A["Video Track"]="Codec: " + xa + " (" + ya + ")";A["Video Tags"]=null === (I=na.stream) || void 0 === I?void 0:I.Mk.toString();}Ca=this.j.Wk.value;A["Timed Text Track"]=Ca?Ca.Ig + ", Profile: " + Ca.profile + ", Id: " + Ca.trackId + ", DownloadableId: " + Ca.ob:"none";U.push(A);}catch(Na){}try{Ja=this.j.Wd;Ka=this.j.$f.value?this.j.$f.value.framerate:0;La=a(99732).cDb;U.push({Framerate:Ka.toFixed(3),"Current Dropped Frames":(0,h.pc)(this.HNa)?this.HNa:"","Total Frames":Ja.mA(),"Total Dropped Frames":Ja.ZQ(),"Total Corrupted Frames":Ja.j$(),"Main Thread stall/sec":La?La.gpa().join(" "):"DISABLED",KeySystem:null === (O=this.j.Rl) || void 0 === O?void 0:O.py.gy,KeyStatus:null === (T=null === (Q=this.j.Rl) || void 0 === Q?void 0:Q.Fwb) || void 0 === T?void 0:T.call(Q),VideoDiag:(0,g.PVa)(this.j.Kpa()),"HDR support":this.TSa?this.TSa.result + " (" + this.TSa.reason + ")":"unknown"});}catch(Na){}try{U.push({Throughput:this.j.kb + " kbps"});}catch(Na){}Oa=void 0;try{Object.entries(this.srb).forEach(function(Na){var Qa;Qa=Ea(Na);Na=Qa.next().value;Qa=Qa.next().value;Oa=Oa || ({});Oa[Na]=JSON.stringify(Qa);});Oa && U.push(Oa);}catch(Na){}return U;};b.qeb=d;},25138:function(t,b,a){var c,f,g,e;function d(h,k,l,m){this.Ha=h;this.YMc=k;this.wa=l;this.wi=m;this.Ff={};}function n(h,k){this.th=h;this.wi=k;this.zc={};this.wa=h.wb("PlaybackMilestoneStoreImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.B_b=b.qFa=void 0;t=a(22970);c=a(22674);f=a(87386);g=a(81918);e=a(5021);n.prototype.QLc=function(h,k){this.zc[h] && this.wa.warn("registerPlayback: xid " + h + " already registered, overriding");k=(k?k:this.wi.yc()).na(e.ya);this.wa.trace("registerPlayback: xid " + h + " at " + k);this.zc[h]=new d(h,k,this.wa,this.wi);return this.zc[h];};n.prototype.Erc=function(h){this.zc[h] || this.wa.warn("getPlaybackMilestones: xid " + h + " is not registered");return this.zc[h];};n.prototype.kMc=function(h){this.wa.trace("removePlayback: xid " + h);delete this.zc[h];};a=n;b.qFa=a;b.qFa=a=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(f.zb)),t.__param(1,(0,c.v)(g.fe))],a);d.prototype.sv=function(h,k){k=k?k.na(e.ya):this.wi.yc().na(e.ya) - this.YMc;this.wa.trace("addMilestone: xid " + this.Ha + " " + h + " at " + k);this.Ff[h]=k;};b.B_b=d;},81889:function(t,b){function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.sFa=void 0;a.prototype.VVa=function(d){d=void 0 === d?{}:d;return {Hn:d.trackingId,Nla:d.authParams,Xq:d.sessionParams,ff:d.uiLabel,Mxa:d.uxLabels,tOa:d.disableTrackStickiness,QB:d.uiPlayStartTime,Aoa:d.forceAudioTrackId,Boa:d.forceTimedTextTrackId,Pg:d.isBranching,playbackState:d.playbackState?{currentTime:d.playbackState.currentTime,volume:d.playbackState.volume,muted:d.playbackState.muted,playbackRate:d.playbackState.playbackRate}:void 0,RY:d.enableTrickPlay,USa:d.heartbeatCooldown,oD:d.isPlaygraph,Jra:d.loadImmediately || !1,PHb:d.pin,SD:d.preciseSeeking,Gb:d.startPts,Lg:d.endPts,oj:d.logicalEnd,ova:d.renderTimedText,Stb:d.extraManifestParams,v7:d.assetId,o8b:d.audioLanguages,UTc:d.textLanguages,QRb:d.videoLanguage,NRb:d.videoAspectRatio,Gs:d.packageId,Yrb:d.desiredDownloadables,u_a:d.requestReference,r6b:d.additionalAudioAssets,u6b:d.additionalTextAssets};};b.sFa=a;},65361:function(t,b,a){var n,c;function d(f,g){f=n.wc.call(this,f) || this;f.gWa=g;return f;}Object.defineProperty(b,"__esModule",{value:!0});b.seb=void 0;n=a(81734);c=a(8825);Ia(d,n.wc);d.prototype.set=function(f){n.wc.prototype.set.call(this,(0,c.eF)(f,0,this.gWa));};b.seb=d;},37025:function(t,b,a){var n,c,f;function d(g,e,h,k,l,m,p,r,q,u,v,w,x,y,A){this.index=g;this.R=e;this.L=h;this.qb=k;this.Ha=l;this.Xj=m;this.TCb=p;this.Tpb=q;this.nEb=v;this.ue=x;this.Cf=y;this.j=A;this.ka=new f.zFa();this.Wk=new n.wc(null);this.MB=new n.wc(void 0);this.$f=new n.wc(null);this.fj=new n.wc(null);this.We=new n.wc(null);this.ye=new n.wc(null);this.Tc=[new n.wc(null),new n.wc(null),new n.wc(null)];this.mediaTime=new n.wc(void 0);this.playbackRate=new n.wc(1);this.zv=new n.wc(null);this.background=new n.wc(!1);this.DX={source:"notcached",type:void 0};this.LP="notcached";this.tna=!1;r && (this.$f.set(r.$f.value),this.fj.set(r.fj.value));this.Cp=u(this);this.Nq=this.nEb.QLc(this.Ha,this.Xj);this.Bc=w(this,A);}Object.defineProperty(b,"__esModule",{value:!0});b.teb=void 0;n=a(81734);c=a(5021);f=a(73403);d.prototype.fh=function(g){this.Nq.sv(g);};d.prototype.aL=function(g){var e;e=this;Object.entries(g).forEach(function(h){var k;k=Ea(h);h=k.next().value;k=k.next().value;e.Nq.sv(h,(0,c.ic)(k - e.Xj.na(c.ya)));});};d.prototype.bta=function(){this.nEb.kMc(this.Ha);};Ha.Object.defineProperties(d.prototype,{ff:{configurable:!0,enumerable:!0,get:function(){return this.qb.ff;}},Mxa:{configurable:!0,enumerable:!0,get:function(){return this.qb.Mxa;}},$r:{configurable:!0,enumerable:!0,get:function(){return this.Yc && this.Yc.$r;}},Yk:{configurable:!0,enumerable:!0,get:function(){var g;return null !== (g=this.Yc && this.Yc.Yk) && void 0 !== g?g:[];}},BE:{configurable:!0,enumerable:!0,get:function(){var g;return null !== (g=this.Yc && this.Yc.BE) && void 0 !== g?g:[];}},xI:{configurable:!0,enumerable:!0,get:function(){var g;return null !== (g=this.Yc && this.Yc.xI) && void 0 !== g?g:[];}},vj:{configurable:!0,enumerable:!0,get:function(){var g;return null !== (g=this.Yc && this.Yc.vj) && void 0 !== g?g:[];}},Xd:{configurable:!0,enumerable:!0,get:function(){return this.Yc && this.Yc.Xd;}},Hb:{configurable:!0,enumerable:!0,get:function(){return this.Yc && this.Yc.Hb;}},ER:{configurable:!0,enumerable:!0,get:function(){var g;return null !== (g=this.Yc && this.Yc.ER) && void 0 !== g?g:!1;}},lT:{configurable:!0,enumerable:!0,get:function(){var g;return null !== (g=this.Yc && this.Yc.lT) && void 0 !== g?g:[];}},Uh:{configurable:!0,enumerable:!0,get:function(){var g;return null !== (g=this.Yc && this.Yc.Uh) && void 0 !== g?g:[];}},mG:{configurable:!0,enumerable:!0,get:function(){var g,e;return this.Bc.za && (void 0 === this.vW || 0 >= this.vW.na(c.ya) || Infinity <= this.vW.na(c.ya))?(0,c.ic)(this.Bc.NK()):this.vW && 0 < this.vW.na(c.ya)?this.vW:(0,c.ic)(null !== (e=null === (g=this.S) || void 0 === g?void 0:g.Aa.duration) && void 0 !== e?e:0);},set:function(g){this.vW=g;}},QDb:{configurable:!0,enumerable:!0,get:function(){return this.Bc.za && (void 0 === this.vka || 0 >= this.vka.na(c.ya) || Infinity <= this.vka.na(c.ya))?(0,c.ic)(this.Bc.Nqc()):this.vka;},set:function(g){this.vka=g;}},Hn:{configurable:!0,enumerable:!0,get:function(){return this.qb.Hn || 0;}},Yr:{configurable:!0,enumerable:!0,get:function(){var g,e,h,k,l;if(void 0 !== this.v8)return this.v8;if(void 0 === this.mediaTime.value)return null;l=null === (e=null === (g=this.j) || void 0 === g?void 0:g.bb) || void 0 === e?void 0:e.irb;return l && this.Bc.za && this.Bc.CR() && (g=this.j.Oj(l.J),e=null === (k=null === (h=this.j.bb) || void 0 === h?void 0:h.Vh) || void 0 === k?void 0:k.ba[g.L],"content" !== (null === e || void 0 === e?void 0:e.type) && (h=this.Tpb(this.mediaTime.value,g.L),k=this.Bc.sk,null !== h && k && h < k))?h + k:this.Tpb(this.mediaTime.value,this.L);}},correlationId:{configurable:!0,enumerable:!0,get:function(){var g,e;return null === (e=null === (g=this.S) || void 0 === g?void 0:g.Aa.Xz) || void 0 === e?void 0:e.Jf;}},PT:{configurable:!0,enumerable:!0,get:function(){var g,e;return null === (e=null === (g=this.S) || void 0 === g?void 0:g.Aa.Xz) || void 0 === e?void 0:e.PT;}},Ff:{configurable:!0,enumerable:!0,get:function(){return this.Nq.Ff;}},bb:{configurable:!0,enumerable:!0,get:function(){var g;return null === (g=this.j) || void 0 === g?void 0:g.bb;}}});b.teb=d;},69334:function(t,b,a){var n,c,f;function d(g,e,h){this.rj=g;this.ec=h;this.ba=[];this.log=e.wb("PlayedSegmentsTrackerImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.wFa=void 0;n=a(22970);t=a(22674);c=a(42207);f=a(87386);a(5021);d.prototype.some=function(g){return this.ba.some(g);};d.prototype.Xpa=function(){return !!(this.ba[0] && this.ba[0].stream && this.ec.Ci(this.ba[0].stream.Pb));};d.prototype.Uv=function(g){return this.ba.filter(g).reduce(function(e,h){return e + (h.endTime - h.startTime) / h.rate;},0);};d.prototype.P$=function(g){return this.ba.filter(g).reduce(function(e,h){return e + h.endTime - h.startTime;},0);};d.prototype.zQa=function(g,e){var h,k;h=this;k={};return this.ba.filter(function(l){return !e || l.Mq === e;}).reduce(function(l,m){var p,r,q;p=g.bind(h,m)();r=p.key;p=n.__rest(p,["key"]);m=m.endTime - m.startTime;q=k[r];q?q.duration+=m:(q=p,q.duration=m,l.push(q),k[r]=q);return l;},[]);};d.prototype.ag=function(g,e,h){var k;h=void 0 === h?this.rj.playbackRate.value:h;k=this.ba;g && e && e >= g.startTime && (g={Tc:g.Tc,track:g.track,stream:g.stream,startTime:g.startTime,FA:g.FA,Jaa:g.Jaa,endTime:e,rate:h,Mq:g.Mq || "content"},(e=k[k.length - 1]) && e.track === g.track && e.stream === g.stream && e.Tc === g.Tc && e.endTime === g.startTime && e.rate === g.rate && e.FA === g.FA && e.Jaa === g.Jaa && e.Mq === g.Mq?e.endTime=g.endTime:k.push(g),!1);};a=d;b.wFa=a;b.wFa=a=n.__decorate([n.__param(1,(0,t.v)(f.zb)),n.__param(2,(0,t.v)(c.Mi))],a);},73403:function(t,b,a){var n,c;function d(){this.Dm=[];this.Qd=this.Lh=this.he=null;}Object.defineProperty(b,"__esModule",{value:!0});b.zFa=void 0;n=a(26388);c=a(45146);d.prototype.Jp=function(f,g){var e,h;if(f !== this.Qd){h=this.Qd;this.Qd=f;f={o2a:!0,vy:h,TF:null !== (e=null === g || void 0 === g?void 0:g.TF) && void 0 !== e?e:!1};this.fta(f);}};d.prototype.yB=function(f,g){var e,h;if(f !== this.he){h=this.he;this.he=f;f={lw:h,gLa:!0,TF:null !== (e=null === g || void 0 === g?void 0:g.TF) && void 0 !== e?e:!1};this.fta(f);}};d.prototype.b1a=function(f){var g;if(f !== this.Lh){g=this.Lh;this.Lh=f;this.fta({WFb:g,N3a:!0});}};d.prototype.Ny=function(f){var g,e,h,k,l,m;g=this.Lh !== f.hFb;e=this.he !== f.ry;h=this.Qd !== f.so;if(g || e || h){k=this.Lh;this.Lh=f.hFb;l=this.he;this.he=f.ry;m=this.Qd;this.Qd=f.so;this.fta({WFb:k,N3a:g,lw:l,gLa:e,vy:m,o2a:h});}};d.prototype.addListener=function(f,g){(0,c.G8)(g);(0,c.va)(0 > this.Aub(g));this.Dm=this.Dm.slice();this.Dm.push({Gh:f,listener:g});};d.prototype.removeListener=function(f){var g;(0,c.G8)(f);this.Dm=this.Dm.slice();0 <= (g=this.Aub(f)) && this.Dm.splice(g,1);};d.prototype.Aub=function(f){return this.Dm.findIndex(function(g){return g.listener === f;});};d.prototype.fta=function(f){var k,l;f=Object.assign({o2a:!1,vy:this.Qd,so:this.Qd,gLa:!1,lw:this.he,ry:this.he,N3a:!1,WFb:this.Lh,hFb:this.Lh,TF:!1},f);for(var g=this.Dm,e=g.length,h=0;h < e;h++){k=g[h];l=k.Gh;k=k.listener;(l.includes(n.u.X) && f.gLa || l.includes(n.u.U) && f.N3a || l.includes(n.u.Ca) && f.o2a) && k(f);}};b.zFa=d;},82557:function(t,b,a){var n,c,f,g;function d(e){this.Va=e;this.trace=[];}Object.defineProperty(b,"__esModule",{value:!0});b.fGa=void 0;t=a(22970);n=a(85001);c=a(22674);f=a(81918);g=a(5021);d.prototype.Ms=function(e){e.Dc !== n.Mc.Mo && (this.trace.unshift({time:this.Va.yc(),event:e}),5 < this.trace.length && this.trace.pop());};d.prototype.kSa=function(){var e,h;e=this;if(0 === this.trace.length)return {};h=this.trace[0];return {timeSinceLastRepositionMs:this.sPb(h.time),lastRepositionCause:this.Wvb(h.event.Dc),repositionTrace:this.trace.map(function(k){return {timeSince:e.sPb(k.time),cause:e.Wvb(k.event.Dc),newMediaTime:k.event.sS,oldMediaTime:k.event.yS,contentPts:k.event.Nl,skip:k.event.skip};})};};d.prototype.sPb=function(e){return this.Va.yc().ea(e).na(g.ya);};d.prototype.Wvb=function(e){switch(e){case n.Mc.Mo:return "initial";case n.Mc.Xu:return "seek";case n.Mc.CV:return "live_edge";case n.Mc.dW:return "segment_changed";case n.Mc.P5:return "track_changed";case n.Mc.pha:return "force_rebuffer";case n.Mc.V3:return "fragments_missing";case n.Mc.Vha:return "media_discontinuity";}};a=d;b.fGa=a;b.fGa=a=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(f.fe))],a);},13889:function(t,b,a){var n,c,f,g;function d(e,h,k){this.config=e;this.j=h;this.th=k;this.L0=this.LS=void 0;this.Kca=!1;this.log=this.th.wb();}Object.defineProperty(b,"__esModule",{value:!0});b.lgb=void 0;n=a(85001);c=a(5021);f=a(8825);g=a(32687);d.prototype.Yqc=function(e,h,k,l,m){var p,r,q,u,v;k=void 0 === k?this.j.L:k;p=h === n.Mc.dW || h === n.Mc.Vha;l=(void 0 === l?!1:l) || this.kxc();r=this.Q$b(p?e:this.wbc(e,k),h,l,k);q=this.j.bb;p?(e=r,r=q.dNa(r)):e=q.fNa(k,r);h === n.Mc.Mo && (this.j.Hnb=r);m=this.$k(e,h,m);u=(p=p || m)?e:r;if(this.j.Ks){v=this.j.qb.Pg?this.config().TXa:this.config().dM;this.j.Dyb(u,v) || h !== n.Mc.Xu && h !== n.Mc.CV || (u=this.j.Ks.na(c.ya) - v - 1E3,p?(e=u,r=q.dNa(u)):(e=q.fNa(k,u),r=u));}return {sS:u,Nl:r,jIc:e,$k:m,SD:l};};d.prototype.Q$b=function(e,h,k,l){k?e=Math.round(e):(k=this.j.bb.Mmc(e,l),e=(0,g.pc)(k)?k:Math.round(e));this.j.qb.Pg && (e=this.rnc(e));this.config().MLb && 0 !== e && h !== n.Mc.Mo && (e+=this.config().MLb);return e;};d.prototype.$k=function(e,h,k){if(this.config().mic || h === n.Mc.Mo || h === n.Mc.P5 || h === n.Mc.pha || !k || e < k.start.na(c.ya) || e >= k.end.na(c.ya))return !1;h=this.j.bb;return (null === h || void 0 === h?void 0:h.kk) && h.$k(e) || !1;};d.prototype.kxc=function(){return this.j.qb.Pg || this.j.Bc.za?(!1,!0):"boolean" === typeof this.j.qb.SD?this.j.qb.SD:navigator.hardwareConcurrency && 2 >= navigator.hardwareConcurrency?this.config().SD && this.config().HIc:this.config().SD;};d.prototype.wbc=function(e,h){var k;k=this.j.Vl(h);h=k.mG;k=k.QDb;!1;h=k || h;k=this.j.Bc.za && !this.j.Bc.CR()?0:this.config().VXc;h=Math.max(0,h.na(c.ya) - k);return (0,f.eF)(e,0,h);};d.prototype.rnc=function(e){var h,k,l;h=this.j.e$();if(Object.values(h).find(function(m){var p;p=m.fb;p=e < (null !== p && void 0 !== p?p:Infinity);return m.Ua <= e && p;}))return (!1,e);l=e;Object.entries(h).forEach(function(m){var p;m=Ea(m);m.next();m=m.next().value.Ua;p=m - e;0 < p && (void 0 === k || p < k) && (k=p,l=m);});!1;return l;};Ha.Object.defineProperties(d.prototype,{Maa:{configurable:!0,enumerable:!0,get:function(){return this.Kca || !!this.L0 || !!this.LS;}}});b.lgb=d;},74834:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.AGa=void 0;t=a(22970);a=a(22674);d.prototype.bKc=function(c,f){f.IL.jb.j0a({xid:f.Ha,auxPlaybackcontextid:f.Xd,auxMid:c.auxMid,auxMidType:c.auxMidType,reason:c.reason,adBreakLocationMs:c.adBreakLocationMs},"error" === c.sev);};n=d;b.AGa=n;b.AGa=n=t.__decorate([(0,a.aa)()],n);},37517:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r,q,u,v,w,x,y){var A;A=this;this.RUc=l;this.j=m;this.id=p;this.height=r;this.width=q;this.OHc=u;this.PHc=v;this.size=w;this.xA=x;this.urls=y;this.type=n.Ln.U2a;this.retry=!0;this.state=e.xz.gia;this.Ki={};this.Fla={};this.fda=function(z){if(z.success)try{A.data=A.RUc.parse(z.content);A.state=e.xz.lO;A.log.trace("TrickPlay parsed",{Images:A.data.images.length},A.Ki);A.j.fireEvent(h.ja.Cfa);}catch(B){A.state=e.xz.cdb;A.log.error("TrickPlay parse failed.",B);}else (A.state=e.xz.gia,A.log.error("TrickPlay download failed.",(0,k.UE)(z),A.Ki));};this.log=(0,f.jo)(m,"TrickPlay");}b.z=void 0;n=a(51344);c=a(29204);f=a(31276);g=a(61726);e=a(94025);h=a(85001);k=a(36129);d.prototype.Upc=function(l){if(this.data && (this.xA && (l+=this.xA),l=Math.floor(l / this.data.header.xPb),0 <= l && l < this.data.images.length))return {image:this.data.images[l],time:l * this.data.header.xPb,height:this.height,width:this.width,pixelAspectHeight:this.OHc,pixelAspectWidth:this.PHc};};d.prototype.OZ=function(){switch(this.state){case e.xz.lO:return "downloaded";case e.xz.LOADING:return "loading";case e.xz.V4:return "downloadfailed";case e.xz.cdb:return "parsefailed";default:return "notstarted";}};d.prototype.download=function(){var l;l=this.hyb();l?(this.state=e.xz.LOADING,this.Fic(l)):this.retry=!1;};d.prototype.getState=function(){return this.state;};d.prototype.hyb=function(){var l,m,p;l=this;m=Object.keys(this.urls).find(function(r){return (l.Fla[l.urls[r]] || 0) <= c.config.NUc;});if(m){p=this.urls[m];(p in this.Fla)?this.Fla[p]++:this.Fla[p]=1;return {url:p,Th:m};}};d.prototype.Fic=function(l){var m,p;this.log.trace("Downloading",l.url,this.Ki);p=this.Soa(l.Th);l={responseType:g.gaa,Tc:p,url:l.url,track:this,Gw:null !== (m=null === p || void 0 === p?void 0:p.type) && void 0 !== m?m:"unknown",tK:"trickplay"};this.j.dqa.download(l,this.fda);};d.prototype.Soa=function(l){return this.j.Uh.find(function(m){return m && m.id === l;});};b.z=d;},18181:function(t,b,a){var n,c,f,g,e,h;function d(k,l){this.wi=k;this.config=l;}Object.defineProperty(b,"__esModule",{value:!0});b.lHa=void 0;t=a(22970);n=a(85001);c=a(94025);f=a(81918);g=a(22674);e=a(5021);a=a(4203);d.prototype.RY=function(k){var l;k.Dfa={};if(!k.l_() && k.xI && 0 < k.xI.length && (k.wI=this.xwb(k),k.wI)){l=this.uQc(k);l() || (k.Zb.addListener(l),k.$f.addListener(l));}};d.prototype.uQc=function(k){var m;function l(){var p,r;if(!k.$f.value || k.Zb.value === n.Nb.mh)return !1;p=k.wI;r=p.getState();return r === c.xz.LOADING?!1:r !== c.xz.lO && p.retry?(p=m.Ysc(k))?(k.Dfa.offset=m.wi.yc().na(e.ya),k.wI=p,p.download(),!0):!1:(k.Zb.removeListener(l),k.$f.removeListener(l),!1);}m=this;return l;};d.prototype.Ysc=function(k){var l,m;l=this.config();m=k.Cp.Uv() < l.PUc;l=(k.$f.value?k.$f.value.bitrate:0) > l.OUc;return this.nsc(k,m && l);};d.prototype.nsc=function(k,l){if(l && (l=this.xwb(k),this.Jxb(k,l.size)))return (k.Dfa.HKb="h",l);l=this.Gqc(k);if(this.Jxb(k,l.size))return (k.Dfa.HKb="l",l);};d.prototype.Jxb=function(k,l){var m,p;m=this.config();p=Math.min(k.w7(),k.Vfa());return k.U8b.s$b(l) * (1 + .01 * m.t6b[2]) < p * m.SUc;};d.prototype.xwb=function(k){return k.xI[k.xI.length - 1];};d.prototype.Gqc=function(k){return k.xI[0];};h=d;b.lHa=h;b.lHa=h=t.__decorate([(0,g.aa)(),t.__param(0,(0,g.v)(f.fe)),t.__param(1,(0,g.v)(a.Hc))],h);},25837:function(t,b,a){var n,c,f;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.mHa=void 0;t=a(22970);c=a(70834);a=a(22674);d.prototype.parse=function(g){var e,h;if(!g)throw Error("invalid array buffer");e=new Uint8Array(g);h=new c.$ga(e);g=this.Xta(h);e=this.WGc(h,e,g);return {header:g,images:e};};d.prototype.Xta=function(g){var e,h,k,l;if(g.G$() < this.cNc())throw Error("array buffer too short");n.cbb.forEach(function(m){if(m != g.Au())throw Error("BIF has invalid magic.");});e=g.e1();if(e > n.VERSION)throw Error("BIF version in unsupported");h=g.e1();if(0 == h)throw Error("BIF has no frames.");k=g.e1();l=g.wn(n.qfb);return {version:e,lEc:h,xPb:k,KKb:l};};d.prototype.WGc=function(g,e,h){var m,p;for(var k=[],l=0;l <= h.lEc;l++){m={timestamp:g.e1(),offset:g.e1()};void 0 != p && k.push(e.subarray(p.offset,m.offset));p=m;}return k;};d.prototype.cNc=function(){return n.cbb.length + 4 + 4 + 4 + n.qfb;};f=n=d;b.mHa=f;f.cbb=[137,66,73,70,13,10,26,10];f.VERSION=0;f.qfb=44;b.mHa=f=n=t.__decorate([(0,a.aa)()],f);},72614:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v;function d(w){return function(){return w.Ib.get(n.Wdb).Tb();};}Object.defineProperty(b,"__esModule",{value:!0});b.US=void 0;t=a(22674);n=a(96687);c=a(32979);f=a(23048);g=a(62278);e=a(95480);h=a(91859);k=a(95398);l=a(77334);m=a(10469);p=a(44698);r=a(36258);q=a(78339);u=a(50889);v=a(18477);b.US=new t.Be(function(w){w(k.veb).to(l.uFa).sa();w(c.WEa).to(f.VEa).sa();w(g.Kdb).to(e.EEa).sa();w(n.Wdb).to(h.YEa).sa();w(n.v5).tfa(d);w(u.Vdb).to(v.XEa).sa();w(m.Mdb).to(p.IEa).sa().hga();w(r.Xdb).to(q.ZEa).sa();w(r.Tdb).to(q.TEa).sa();w(r.Udb).to(q.UEa).sa();});},62278:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Kdb="PboCachedPlaydataSymbol";},10469:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.tia={cra:"keepAlive",splice:"splice",pause:"pause",resume:"resume"};b.Mdb="PboEventSenderSymbol";},32979:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.WEa="PboPlaydataFactorySymbol";},50889:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Vdb="PboPlaydataPlaybackMonitorSymbol";},96687:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Wdb="PboPlaydataServicesSymbol";b.v5="PboPlaydataServicesProviderSymbol";},95398:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.veb="PlaydataConfigSymbol";},95480:function(t,b,a){var f,g,e,h,k,l,m,p,r,q;function d(){}function n(){}function c(u,v,w,x,y){var A;A=this;this.is=u;this.et=v;this.config=w;this.dQ=x;this.yHc=y;this.vfa=function(){return new d().encode({version:A.version,data:A.US});};this.tWc=function(z){z=A.upgrade(z);A.yHc.validate(z);return z;};this.upgrade=function(z){var B;if(A.is.qx(z))return A.uWc(z);B=z.version;if(void 0 != B && A.is.Wo(B) && 1 == B)return A.vWc(z);B=z.version;if(void 0 != B && A.is.Wo(B) && 2 == B)return new d().decode(z);if(z.version && A.is.Wo(z.version))throw new k.re(e.da.WI,e.Y.iUb,void 0,void 0,void 0,"Version number is not supported. Version: " + z.version,void 0,z);throw new k.re(e.da.WI,e.Y.Iga,void 0,void 0,void 0,"The format of the playdata is inconsistent with what is expected.",void 0,z);};this.Ly=new l.C$a(2,this.config().gIb,"" !== this.config().gIb && 0 < this.config().cIc,this.et,this.vfa);}Object.defineProperty(b,"__esModule",{value:!0});b.EEa=void 0;t=a(22970);f=a(22674);g=a(4203);e=a(36129);h=a(42207);k=a(31149);l=a(52657);m=a(17892);p=a(33554);r=a(23048);a=a(36258);c.prototype.TKc=function(){return this.Ly.load(this.tWc).catch(function(u){throw new k.re(e.da.WI,u.Ta || u.subCode,void 0,void 0,void 0,"Unable to load persisted playdata.",void 0,u);});};c.prototype.X5b=function(u){return this.Ly.add(u);};c.prototype.kKb=function(u){return this.Ly.remove(u,function(v,w){return v.Ha === w.Ha;});};c.prototype.m3a=function(u){return this.Ly.update(u,function(v,w){return v.Ha === w.Ha;});};c.prototype.toString=function(){return JSON.stringify(this.vfa(),null," ");};c.prototype.lRb=function(u){return u?"/events?playbackContextId=" + u + "&esn=" + this.dQ().ij:"";};c.prototype.u3a=function(u){return u.map(function(v){return {ob:v.downloadableId,duration:v.duration};});};c.prototype.mRb=function(u){var v;return u?{total:u.playTimes.total,uU:null !== (v=u.playTimes.totalContentTime) && void 0 !== v?v:u.playTimes.total,x2:u.playTimes.total,lN:0,nN:0,vU:0,wU:0,audio:this.u3a(u.playTimes.audio || []),video:this.u3a(u.playTimes.video || []),text:this.u3a(u.playTimes.timedtext || [])}:{total:0,uU:0,x2:0,lN:0,nN:0,vU:0,wU:0,audio:[],video:[],text:[]};};c.prototype.uWc=function(u){var v,w,x;v=this;u=JSON.parse(u);w={Yf:"VOD",href:this.lRb(u.playbackContextId),Ha:u.xid?u.xid.toString():"",R:u.movieId,position:u.position,jG:u.timestamp,Ik:u.playback?1E3 * u.playback.startEpoch:-1,N_:u.mediaId,hB:this.mRb(u.playback),trackId:"",Xq:{},$0:u.accountKey};x=JSON.stringify({keySessionIds:u.keySessionIds,movieId:u.movieId,xid:u.xid,licenseContextId:u.licenseContextId,profileId:u.profileId});this.et.create().then(function(y){y.save(v.config().COa,x,!1);});if("" === w.href || "" === w.Ha)throw new k.re(e.da.WI,e.Y.Iga);return {version:2,data:[w]};};c.prototype.vWc=function(u){var v;v=this;if(!u.playdata || !this.is.yP(u.playdata))throw new k.re(e.da.WI,e.Y.Iga,void 0,void 0,void 0,"The version 1 playdata is corrupted.",void 0,u);return {version:2,data:(function(w){return w.map(function(x){var y;return {Yf:null !== (y=x.streamingType) && void 0 !== y?y:"VOD",href:v.lRb(x.playbackContextId),Ha:x.xid?x.xid.toString():"",R:x.movieId,position:x.position,jG:x.timestamp,Ik:x.playback?1E3 * x.playback.startEpoch:-1,N_:x.mediaId,hB:v.mRb(x.playback),trackId:"",Xq:{},$0:x.profileId};});})(u.playdata)};};Ha.Object.defineProperties(c.prototype,{version:{configurable:!0,enumerable:!0,get:function(){return this.Ly.version;}},US:{configurable:!0,enumerable:!0,get:function(){return this.Ly.Rr;}}});q=c;b.EEa=q;b.EEa=q=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(h.Mi)),t.__param(1,(0,f.v)(m.II)),t.__param(2,(0,f.v)(g.Hc)),t.__param(3,(0,f.v)(p.WB)),t.__param(4,(0,f.v)(a.Udb))],q);n.prototype.encode=function(u){var v;v=new r.uia();return u.map(v.encode);};n.prototype.decode=function(u){var v;v=new r.uia();return u.map(v.decode);};d.prototype.encode=function(u){return {version:u.version,data:new n().encode(u.data)};};d.prototype.decode=function(u){return {version:u.version,data:new n().decode(u.data)};};},44698:function(t,b,a){var n,c,f;function d(g,e){this.i8=e;this.log=g.wb("PboEventSenderImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.IEa=void 0;t=a(22970);n=a(87607);c=a(87386);a=a(22674);d.prototype.r0a=function(g,e){var h;h=this.i8(n.Ko.start);return this.Gtb(h,g,e);};d.prototype.jMb=function(g){var e;e=this;return this.i8(n.Ko.stop).Se({log:this.log,J:g.R},g).then(function(){}).catch(function(h){e.log.error("PBO stop event failed",h);throw h;});};d.prototype.N1=function(g,e,h){g=this.i8(g);return this.Gtb(g,e,h);};d.prototype.Gtb=function(g,e,h){var k;k=this;return g.Se({log:this.log,links:e.S.vp,J:h.R},h).then(function(){}).catch(function(l){k.log.error("PBO event failed",l);throw l;});};f=d;b.IEa=f;b.IEa=f=t.__decorate([(0,a.aa)(),t.__param(0,(0,a.v)(c.zb)),t.__param(1,(0,a.v)(n.YAa))],f);},23048:function(t,b,a){var h,k,l,m,p,r;function d(q,u,v,w){this.Ma=q;this.R$=u;this.Va=v;this.profile=w;}function n(){}function c(){}function f(){}function g(){}function e(){}Object.defineProperty(b,"__esModule",{value:!0});b.VEa=b.uia=void 0;t=a(22970);h=a(22674);k=a(30869);l=a(5021);m=a(4203);p=a(81918);a=a(71501);e.prototype.encode=function(q){return {downloadableId:q.ob,duration:q.duration};};e.prototype.decode=function(q){return {ob:q.downloadableId,duration:q.duration};};g.prototype.encode=function(q){return {total:q.total,totalContentTime:q.uU,totalAdDuration:q.lN,totalCombinedDuration:q.x2,totalOtherDuration:q.nN,totalStartSlateDuration:q.wU,totalLiveEdgeDuration:q.vU,audio:q.audio.map(new e().encode),video:q.video.map(new e().encode),text:q.text.map(new e().encode)};};g.prototype.decode=function(q){var u;return {total:q.total,uU:null !== (u=q.totalContentTime) && void 0 !== u?u:q.total,lN:q.totalAdDuration,x2:q.totalCombinedDuration,nN:q.totalOtherDuration,wU:q.totalStartSlateDuration,vU:q.totalLiveEdgeDuration,audio:q.audio.map(new e().decode),video:q.video.map(new e().decode),text:q.text.map(new e().decode)};};f.prototype.encode=function(q){var u;u=new c();return {audio:u.encode(q.audio),video:u.encode(q.video),timedtext:u.encode(q.v2),mediaevents:u.encode(q.$Db)};};f.prototype.decode=function(q){var u;u=new c();return {audio:u.decode(q.audio),video:u.decode(q.video),v2:u.decode(q.timedtext),$Db:u.decode(q.mediaevents)};};c.prototype.encode=function(q){return {streamingCdnId:q.Sea,presentingCdnId:q.Jua};};c.prototype.decode=function(q){return {Sea:q.streamingCdnId,Jua:q.presentingCdnId};};n.prototype.encode=function(q){return {streamingType:q.Yf,href:q.href,xid:q.Ha,movieId:q.R,position:q.position,clientTime:q.jG,sessionStartTime:q.Ik,videoTrackId:q.Sp,audioTrackId:q.yv,timedTextTrackId:q.Ty,mediaId:q.N_,playTimes:new g().encode(q.hB),trackId:q.trackId,sessionId:q.sessionId,appId:q.appId,sessionParams:q.Xq,profileId:q.$0,cdnDownloadableInfos:q.d8?new f().encode(q.d8):void 0};};n.prototype.decode=function(q){return {Yf:q.streamingType,href:q.href,Ha:q.xid,R:q.movieId,position:q.position,jG:q.clientTime,Ik:q.sessionStartTime,Sp:q.videoTrackId,yv:q.audioTrackId,Ty:q.timedTextTrackId,N_:q.mediaId,hB:new g().decode(q.playTimes),trackId:q.trackId,sessionId:q.sessionId,appId:q.appId,Xq:q.sessionParams,$0:q.profileId,d8:q.cdnDownloadableInfos?new f().decode(q.cdnDownloadableInfos):void 0};};b.uia=n;d.prototype.create=function(q){var u,v,w,x,y,A,z,B,C;C=Object.assign(Object.assign({},null !== (u=q.qb.Xq) && void 0 !== u?u:{}),{uiVersion:this.R$().Jv.uiVersion});u=null !== (v=q.Bc.za?q.Bc.Gpa():q.Yr) && void 0 !== v?v:0;v=null === (w=q.bb) || void 0 === w?void 0:w.KRa();return {href:q.S && q.S.vp?q.S.vp.BZ("events").href:"",Yf:null !== (y=null === (x=q.S) || void 0 === x?void 0:x.Aa.Yf) && void 0 !== y?y:"VOD",Ha:q.Ha.toString(),R:q.R,position:Math.floor(u),jG:this.Ma.hI.na(l.ya),Ik:q.eH?q.eH.na(l.ya):-1,Sp:null === (A=q.ka.Lh) || void 0 === A?void 0:A.trackId,yv:null === (z=q.ka.he) || void 0 === z?void 0:z.trackId,Ty:null === (B=q.ka.Qd) || void 0 === B?void 0:B.trackId,N_:void 0,hB:this.MRa(q),trackId:void 0 !== q.Hn?q.Hn.toString():"",sessionId:this.R$().sessionId || this.Va.id,appId:this.R$().appId || this.Va.id,Xq:C,$0:this.profile,d8:null === v || void 0 === v?void 0:v.d8};};d.prototype.load=function(q){return new n().decode(q);};d.prototype.QRa=function(q){return q.map(function(u){return {ob:u.downloadableId,duration:u.duration};});};d.prototype.MRa=function(q){return (q=q.Cp)?(q=q.Drc(),{total:q.total,uU:q.totalContentTime,lN:q.totalAdDuration,nN:q.totalOtherDuration,x2:q.totalCombinedDuration,vU:q.totalLiveEdgeDuration,wU:q.totalStartSlateDuration,audio:this.QRa(q.audio),video:this.QRa(q.video),text:this.QRa(q.timedtext)}):{total:0,uU:0,lN:0,x2:0,nN:0,vU:0,wU:0,video:[],audio:[],text:[]};};r=d;b.VEa=r;b.VEa=r=t.__decorate([(0,h.aa)(),t.__param(0,(0,h.v)(k.Li)),t.__param(1,(0,h.v)(m.Hc)),t.__param(2,(0,h.v)(p.fe)),t.__param(3,(0,h.v)(a.ZV))],r);},18477:function(t,b,a){var n,c,f,g,e;function d(h,k){this.EHb=k;this.log=h.wb("PlaydataServices");}Object.defineProperty(b,"__esModule",{value:!0});b.XEa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(85001);g=a(96687);e=a(26388);d.prototype.hm=function(h){var k;k=this;this.EHb().then(function(l){h.addEventListener(f.ja.KL,function(m){var p,r;if(void 0 !== m.X0){p=h.Oj(m.X0);r=p.Cf && p.Cf === h.ga.Cf;r || l.Qea(p);m.AR || new Promise(function(q){var u;if(h.Zj.value)q();else {u=function(v){v.newValue && (q(),h.Zj.removeListener(u));};h.Zj.addListener(u);}}).then(function(){r || l.hm(h,k.tNb(h),function(q){return h.iK(q);});});}});h.addEventListener(f.ja.iB,function(){l.hm(h.ga,k.tNb(h),function(m){return h.iK(m);});});h.background.value || h.addEventListener(f.ja.nVa,function(m){var p;m=h.Oj(m.R);if(null === (p=m.ue) || void 0 === p?0:p.fd)(p=h.Oj(m.ue.fd),k.log.trace("Auxiliary viewable segment (viewableId: " + m.R + "). Starting playdata monitor for parent viewable " + p.R),m=p);l.D1a(m);});h.addEventListener(f.ja.ph,function(){l.nOb();});h.addEventListener(f.ja.G3a,function(){l.gMb(h.ga).catch(function(m){(m=m.lM) && h.iK(m);});});h.addEventListener(f.ja.FRb,function(){l.hMb(h.ga).catch(function(m){(m=m.lM) && h.iK(m);});});h.ka.addListener([e.u.Ca],function(){h.qb.tOa?k.log.trace("stickiness is disabled for timedtext"):l.ewa(h.ga);});h.ka.addListener([e.u.X],function(){h.qb.tOa?k.log.trace("stickiness is disabled for audio"):l.ewa(h.ga).catch(function(m){(m=m.lM) && h.iK(m);});});});};d.prototype.tNb=function(h){return h.state.value == f.Fc.zf;};a=d;b.XEa=a;b.XEa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(g.v5))],a);},91859:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u,v;function d(w,x,y,A,z,B,C){this.config=w;this.Ad=y;this.zE=A;this.jB=z;this.tua=B;this.Yj=C;this.lra=Promise.resolve();this.closed=!1;this.log=x.wb("PlaydataServices");this.TS=[];this.active=new Set();}function n(w,x,y,A,z,B){this.log=w;this.Ad=x;this.rj=y;this.jB=A;this.zE=z;this.VHc=B;this.bub=this.Zc=!1;}Object.defineProperty(b,"__esModule",{value:!0});b.YEa=void 0;t=a(22970);c=a(22674);f=a(5021);g=a(87386);e=a(53085);h=a(32979);k=a(62278);l=a(95398);m=a(36129);p=a(23048);r=a(10469);q=a(45266);u=a(30869);a=a(79274);n.prototype.$_=function(w,x){var A;function y(){var z;z=A.jB.create(A.rj);A.zE.m3a(z).catch(function(B){var C;C=A.bub?g.No.IHa:g.No.Tp;A.bub=!0;A.log.write(C,"Unable to save playdata changes to IDB",B);});}A=this;this.log.trace("Adding initial playdata",x);this.zE.X5b(x).then(function(){A.log.trace("Scheduling monitor",{interval:w});A.Hy=A.Ad.JT(w,y);}).catch(function(z){A.log.error("Unable to add playdata",{error:z,playdata:new p.uia().encode(x)});A.Hy=A.Ad.JT(w,y);});};n.prototype.stop=function(w){var x,y;x=this;if(this.Zc)return Promise.resolve();this.Hy && this.Hy.cancel();y=this.jB.create(this.rj);return this.zE.m3a(y).catch(function(A){x.log.error("Unable to update playdata changes during stop",A);}).then(function(){if(w){if(x.rj.background.value)return (x.log.trace("Playback is currently in the background and never played, not sending the playdata",y),Promise.resolve());x.log.trace("Sending final playdata to the server",y);return x.VHc.jMb(y);}x.log.trace("Currently configured to not send play data, not sending the data to the server");}).then(function(){if(w)return (x.log.trace("Removing playdata from the persisted store",y),x.zE.kKb(y));x.log.trace("Currently configured to not send play data, not removing the play data from IDB");}).then(function(){x.log.info("Successfully stopped the playback",y.R);}).catch(function(A){x.log.error("Unable to remove playdata changes",A);throw A;});};n.prototype.cancel=function(){this.Zc=!0;this.Hy && this.Hy.cancel();this.zE.m3a(this.jB.create(this.rj));};d.prototype.Tb=function(){var w;w=this;this.dL || (this.log.trace("Starting playdata services"),this.dL=this.zE.TKc().then(function(){!1;return w;}).catch(function(x){w.log.error("Unable to read the playdata, it will be deleted and not sent to the server",x);return w;}));return this.dL;};d.prototype.close=function(){this.closed=!0;this.TS.forEach(function(w){w.$_.cancel();});};d.prototype.send=function(w){var x;if(this.closed)return Promise.resolve();x=this.config;return x.OS && x.p0a?this.QOc(w):Promise.resolve();};d.prototype.hm=function(w,x,y){var A;A=this;this.closed || (this.D1a(w),this.r0a(w).catch(function(z){A.log.error("Start command failed",{playdata:z.US,error:z.u9});}),x && this.B1a(this.oqc(w),w,y));};d.prototype.Qea=function(w){var x,y,A;x=this;if(this.closed)return Promise.resolve();y=this.jB.create(w);this.active.delete(y.Ha);w=Ea((0,q.fM)(function(z){return z.key === y.Ha;},this.TS));A=w.next().value;this.TS=w.next().value;return Promise.all(A.map(function(z){z.stopped=!0;return z.$_.stop(x.config.p0a);})).then(function(){});};d.prototype.D1a=function(w){var x,y;w.fh("pdb");if(this.config.yYa.tUa()){x=this.jB.create(w);y=x.Ha;this.TS.some(function(A){return A.key === y;})?this.log.trace("Already collecting playdata, ignoring",x):(this.log.info("Starting to collect playdata",x),this.active.add(y),this.TS.push({key:y,$_:this.Uqc(w,x),Py:!1,stopped:!1}));}};d.prototype.QOc=function(w){var x,y,A,z;x=this;y=this.zE.US.filter(function(B){return !x.active.has(B.Ha);});A=void 0;z=void 0;w && Infinity === w?A=y:(y=Ea((0,q.fM)(function(B){return B.R === w;},y)),A=y.next().value,z=y.next().value);z && 0 < z.length && this.Ad.Tq(this.config.eMb,function(){x.iMb(z).catch(function(){});});return A && 0 !== A.length?this.iMb(A):Promise.resolve();};d.prototype.iMb=function(w){var y;function x(A){return y.tua.jMb(A).then(function(){return y.jMc(A);});}y=this;return w.reduce(function(A,z){return A.then(function(){return x(z);});},Promise.resolve());};d.prototype.jMc=function(w){var x;x=this;return this.zE.kKb(w).then(function(){}).catch(function(y){x.log.error("Unable to complete the stop lifecycle event",y);throw y;});};d.prototype.Uqc=function(w,x){w=new n(this.log,this.Ad,w,this.jB,this.zE,this.tua);w.$_(this.config.yYa,x);return w;};d.prototype.r0a=function(w){var x,y;x=this;y=this.jB.create(w);return this.tua.r0a(w,y).then(function(){!1;x.yDb(w);}).catch(function(A){x.yDb(w);throw {US:y,u9:A};});};d.prototype.yDb=function(w){this.TS.filter(function(x){return x.key === w.Ha.toString();}).forEach(function(x){x.Py=!0;});};d.prototype.gMb=function(w){return this.N1(r.tia.pause,w,m.da.ddb);};d.prototype.hMb=function(w){return this.N1(r.tia.resume,w,m.da.rfb);};d.prototype.ewa=function(w){return this.N1(r.tia.splice,w,m.da.Yfb);};d.prototype.N1=function(w,x,y){var z;function A(B){var C;C=z.TS.filter(function(D){return D.key === B.Ha.toString();});return 0 === C.length?!0:C.reduce(function(D,F){return D || F.stopped || !F.Py;},!1);}z=this;return A(x)?this.lra:this.lra=this.lra.catch(function(){return Promise.resolve();}).then(function(){var B;if(A(x))return Promise.resolve();!1;B=z.jB.create(x);return z.tua.N1(w,x,B);}).then(function(B){!1;return B;}).catch(function(B){var C;z.log.error("Failed to send event",{eventKey:w,xid:x.Ha,error:B});B.kPa?C=z.Yj(y,B):B.EH === m.aia.jd && (C=z.Yj(y,B));throw {u9:B,lM:C};});};d.prototype.B1a=function(w,x,y){var A;A=this;!1;this.xMa();this.MUa=this.Ad.Tq(w,function(){A.xMa();A.N1(r.tia.cra,x,m.da.W$a).then(function(){A.B1a(w,x,y);}).catch(function(z){var B;B=z.u9;(z=z.lM) && y(z);B.EH !== m.aia.jd && A.B1a(w,x,y);});});};d.prototype.nOb=function(){this.xMa();};d.prototype.xMa=function(){this.MUa && (this.MUa.cancel(),this.MUa=void 0);};d.prototype.oqc=function(w){return w.qb.USa?(0,f.ic)(w.qb.USa):this.config.sBb;};v=d;b.YEa=v;b.YEa=v=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(l.veb)),t.__param(1,(0,c.v)(g.zb)),t.__param(2,(0,c.v)(e.Cl)),t.__param(3,(0,c.v)(k.Kdb)),t.__param(4,(0,c.v)(h.WEa)),t.__param(5,(0,c.v)(r.Mdb)),t.__param(6,(0,c.v)(a.w5)),t.__param(7,(0,c.v)(u.Li))],v);},78339:function(t,b,a){var f,g,e,h;function d(){}function n(k){this.xHc=k;}function c(k){this.zHc=k;}Object.defineProperty(b,"__esModule",{value:!0});b.ZEa=b.UEa=b.TEa=void 0;t=a(22970);f=a(22674);g=a(36258);e=a(31149);h=a(36129);c.prototype.validate=function(k){k.map(this.zHc.validate);};a=c;b.TEa=a;b.TEa=a=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(g.Xdb))],a);n.prototype.validate=function(k){this.xHc.validate(k.data);};a=n;b.UEa=a;b.UEa=a=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(g.Tdb))],a);d.prototype.validate=function(k){var l;k.Ha && "string" === typeof k.Ha?k.href && "string" === typeof k.href?k.$0 && "string" === typeof k.$0 || (l="ProfileId value is corrupted."):l="Href value is corrupted.":l="Xid value is corrupted.";if(l)throw new e.re(h.da.WI,h.Y.Iga,void 0,void 0,void 0,l,void 0,k.Ha);};g=d;b.ZEa=g;b.ZEa=g=t.__decorate([(0,f.aa)()],g);},77334:function(t,b,a){var n,c,f,g,e,h;function d(k,l){k=c.Qf.call(this,k,"PlaydataConfigImpl") || this;k.config=l;return k;}Object.defineProperty(b,"__esModule",{value:!0});b.uFa=void 0;t=a(22970);n=a(22674);c=a(64174);f=a(83767);g=a(12501);e=a(5021);a=a(34231);Ia(d,c.Qf);Ha.Object.defineProperties(d.prototype,{OS:{configurable:!0,enumerable:!0,get:function(){return this.config.zG?"unsentplaydatatest":"unsentplaydata";}},p0a:{configurable:!0,enumerable:!0,get:function(){return !0;}},eMb:{configurable:!0,enumerable:!0,get:function(){return (0,e.ic)(1E4);}},yYa:{configurable:!0,enumerable:!0,get:function(){return (0,e.ic)(4E3);}},sBb:{configurable:!0,enumerable:!0,get:function(){return (0,e.CWa)(1);}}});h=d;b.uFa=h;t.__decorate([g.config(g.string,"playdataPersistKey")],h.prototype,"OS",null);t.__decorate([g.config(g.pd,"sendPersistedPlaydata")],h.prototype,"p0a",null);t.__decorate([g.config(g.ro,"playdataSendDelayMilliseconds")],h.prototype,"eMb",null);t.__decorate([g.config(g.ro,"playdataPersistIntervalMilliseconds")],h.prototype,"yYa",null);t.__decorate([g.config(g.ro,"heartbeatCooldown")],h.prototype,"sBb",null);b.uFa=h=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.Po)),t.__param(1,(0,n.v)(a.st))],h);},58343:function(t,b,a){var n,c;function d(f,g){var e;e=this;this.Xj=f;this.Hh=g;this.addEventListener=function(h,k,l){return e.Hh.addListener(h,e.Frb(h,k),l);};this.removeEventListener=function(h,k){return e.Hh.removeListener(h,e.Frb(h,k));};this.getReady=function(){return e.Hh.ws();};this.getXid=function(){return e.Qb().rA();};this.getPlaybackContextId=function(){return e.Qb().qxb();};this.getMovieId=function(){return e.Qb().dxb();};this.getElement=function(){return e.Hh.zq();};this.isPlaying=function(){return e.Qb().by();};this.isPaused=function(){return e.Qb().Kaa();};this.isMuted=function(){return e.Qb().jUa();};this.isReady=function(){return e.Qb().ws();};this.isBackground=function(){return e.Qb().iAb();};this.setBackground=function(h){return e.Qb().E0a(h);};this.startInactivityMonitor=function(){return e.Qb().Y1();};this.setTransitionTime=function(h){return e.Qb().$0a(h);};this.getDiagnostics=function(){return e.Qb().hwb();};this.getTextTrackList=function(h){return e.Qb().nSa(h);};this.getMaxRecommendedTextIndex=function(h){return e.Qb().xRa(h);};this.getTextTrack=function(){return e.Qb().mSa();};this.setTextTrack=function(h){return e.Qb().Jp(h);};this.getVolume=function(){return e.Qb().myb();};this.isEnded=function(){return e.Qb().$Ta();};this.getBusy=function(){return e.Qb().Nj();};this.getError=function(){return e.Qb().getError();};this.getCurrentTime=function(){return e.Qb().lA();};this.getAdManager=function(){return e.Qb().cn();};this.getLivePlaybackManager=function(){var h;h=e.Qb().ho();(0,c.va)(h,"Unexpected call to getLivePlaybackManager()");if(h.za && !h.QQc())return {seekToLiveEdge:function(){return h.I1();},isAtLiveEdge:function(){return h.FA();},getLiveEventState:function(){return h.QK();},isLiveEventEnded:function(){return h.CR();}};};this.getBufferedTime=function(){return e.Qb().Svb();};this.getSegmentTime=function(){return e.Qb().PG();};this.getDuration=function(){return e.Qb().NK();};this.getVideoSize=function(){return e.Qb().jyb();};this.getAudioTrackList=function(){return e.Qb().Kvb();};this.getMaxRecommendedAudioIndex=function(){return e.Qb().Wwb();};this.getAudioTrack=function(){return e.Qb().Jvb();};this.getTimedTextTrackList=function(h){return e.Qb().nSa(h);};this.getMaxRecommendedTimedTextIndex=function(h){return e.Qb().xRa(h);};this.getTimedTextTrack=function(){return e.Qb().mSa();};this.getAdditionalLogInfo=function(){return e.Qb().Ivb();};this.getTrickPlayFrame=function(h){return e.Qb().fyb(h);};this.getSessionSummary=function(){return e.Qb().cSa();};this.getTimedTextSettings=function(){return e.Qb().O$();};this.setMuted=function(h){return e.Qb().MMb(h);};this.setVolume=function(h){return e.Qb().cNb(h);};this.getPlaybackRate=function(){return e.Qb().GZ();};this.getTimeCodes=function(){return e.Qb().cyb();};this.setPlaybackRate=function(h){return e.Qb().nwa(h);};this.setAudioTrack=function(h){return e.Qb().yB(h);};this.setTimedTextTrack=function(h){return e.Qb().Jp(h);};this.setTimedTextSettings=function(h){return e.Qb().R1(h);};this.prepare=function(){return e.Qb().dT();};this.load=function(){return e.Qb().load();};this.close=function(h){return e.Dmb(e.Hh.close(),h);};this.play=function(){return e.Qb().play();};this.pause=function(){return e.Qb().pause();};this.seek=function(){throw Error("Seek by graph position has not been implemented");};this.transition=function(){throw Error("Transition segment has not been implemented");};this.engage=function(h,k){return e.Dmb(e.Qb().TY(h),k);};this.induceError=function(h){return e.Qb().Azb(h);};this.loadCustomTimedTextTrack=function(h,k,l,m){return e.Qb().HCb(h,k,l,m);};this.tryRecoverFromStall=function(){};this.getCropAspectRatio=function(){return e.Qb().Voa();};this.generateScreenshots=function(h){return e.Qb().Cvb(h);};this.getPlaygraphManager=function(){return {getPlaygraphId:function(){return e.Hh.Irc();},getCurrentSegmentId:function(){return e.Hh.dwb();},getPlaygraphMap:function(){return e.Hh.fR();},updatePlaygraphMap:function(h){return e.Hh.vN(h);},getSegmentOffset:function(){return e.Hh.Nxb();},getPlaygraphSessionOffset:function(){return e.Hh.Jrc();},getPlaygraphDuration:function(){return e.Hh.Hrc();}};};this.rPa=new Map();this.log=(0,n.gn)("VideoPlayer");Object.defineProperty(this,"diagnostics",{get:this.getDiagnostics});}Object.defineProperty(b,"__esModule",{value:!0});b.xja=void 0;n=a(31276);a(24550);c=a(45146);d.prototype.Qb=function(){return this.Hh.Qb();};d.prototype.Frb=function(f,g){var e;this.rPa.has(f) || this.rPa.set(f,new Map());e=this.rPa.get(f);e.has(g) || e.set(g,this.$gc(f,g));return e.get(g);};d.prototype.$gc=function(f,g){var e;e=this;return function(h){return g(Object.assign({},h,{type:f,target:e}));};};d.prototype.Dmb=function(f,g){return g?f.then(g,g):f;};b.xja=d;},64059:function(t,b,a){var n;function d(c,f,g){var e;e=n.xja.call(this,c,f) || this;e.seek=function(h){return e.Qb().seek(h);};e.addEpisode=function(h){return e.jVa.C5b(h);};e.playNextEpisode=function(h){h=void 0 === h?{}:h;return e.jVa.WHc(h);};e.watchCredits=function(h){return e.jVa.DXc(h);};e.playSegment=function(h){return e.Qb().$Hb(h);};e.queueSegment=function(h){return e.Qb().rJb(h);};e.updateNextSegmentWeights=function(h,k){return e.Qb().wl(h,k);};e.setNextSegment=function(h){for(var k=[],l=0;l < arguments.length;++l)k[l - 0]=arguments[l];k=k.map(function(m){return {L:m.segmentId,f0:m.nextSegmentId};});e.Hh.Bn.apply(e.Hh,za(k));};e.clearNextSegment=function(h){for(var k=[],l=0;l < arguments.length;++l)k[l - 0]=arguments[l];return e.Hh.Gbc.apply(e.Hh,za(k));};e.goToNextSegment=function(h,k){return e.Hh.DSa(h,k);};e.getPlaying=function(){return e.isPlaying();};e.getPaused=function(){return e.isPaused();};e.getMuted=function(){return e.isMuted();};e.getEnded=function(){return e.isEnded();};e.getTimedTextVisibility=function(){return e.isTimedTextVisible();};e.isTimedTextVisible=function(){return !!e.Qb().O$().visibility;};e.setTimedTextVisibility=function(h){return e.setTimedTextVisible(h);};e.setTimedTextSize=function(h){return e.Qb().R1({size:h});};e.setTimedTextBounds=function(h){return e.Qb().R1({bounds:h});};e.setTimedTextMargins=function(h){return e.Qb().R1({margins:h});};e.setTimedTextVisible=function(h){return e.Qb().R1({visibility:h});};e.getCongestionInfo=function(h){h && h({success:!1,name:null,isCongested:null});};e.jVa=g(c,f,e.log);return e;}b.Cga=void 0;n=a(58343);Ia(d,n.xja);b.Cga=d;},59219:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;function d(y){var A,z;A=this;this.rua=new w.sFa();this.createPlaygraphPlayer=function(B,C,D){var F;B=r.BFa.encode(B);F=f.Xa.get(q.IV);D=D?F.create(D):void 0;F=f.Xa.get(l.FFa).create(B);return F.Tfc(B.sf,A.rua.VVa(A.dnb(C,F.Yoa())),D);};this.closeAllPlayers=function(B){B=void 0 === B?function(){}:B;(0,c.meb)(B);};this.init=function(B){A.XJ.iba(function(C){C.success?A.TOc().catch(function(D){f.log.error("Unable to initialize the playdata services",D);}).then(function(){Object.assign(A,d.nX);B(Object.assign({success:!0},d.nX));}):B({success:!1,error:(0,f.yeb)(C.errorCode || e.da.OBa,C)});});};this.applyConfig=function(B){A.RQb(B);(0,n.RMa)(B);};this.prepare=function(B,C){var D;B=A.CIb.Uhc(B) || [];D=new Set();B=B.filter(function(F){var H;H=D.has(F.R);D.add(F.R);return !H && (!A.qH.DIb() || F.hUa);});if(n.config.Ay && A.og && 0 < B.length)try{A.og.dT(B,C);}catch(F){f.log.warn("Prepare call failed",F);}};this.ppmUpdate=function(B){A.qH.DIb() || (Ba._cad_global.playerPredictionModel?(B=A.CIb.Whc(B)) && Ba._cad_global.playerPredictionModel.update(B):f.log.error("ppmUpdate called but there is no ppmModel"));};this.supportsHdr=function(B){(0,f.xZ)().Xea().then(function(C){return B(C.result);}).catch(function(){return B(!1);});};this.supportsUltraHd=function(B){(0,f.xZ)().Yea().then(B).catch(function(){return B(!1);});};this.supportsDolbyAtmos=function(B){(0,f.xZ)().Wea().then(B).catch(function(){return B(!1);});};this.supportsDolbyVision=function(B){(0,f.xZ)().exa().then(function(C){return B(C.result);}).catch(function(){return B(!1);});};this.supportsDolby51=function(B){(0,f.xZ)().dxa().then(B).catch(function(){return B(!1);});};this.close=function(){};this.isSeamlessEnabled=function(){return n.config.Akc;};this.lnaMessage=function(B){A.qH.TJc(B);};this.isLNAOn=function(){return A.qH.Tzc;};this.RQb(y);f.Xa.get(v.d5a);this.CIb=f.Xa.get(g.feb);this.XJ=f.Xa.get(p.ek);this.qH=f.Xa.get(x.Tha);z=f.Xa.get(u.deb).apply();(0,n.ycc)([y],z);this.og=f.Xa.get(m.FO);(0,f.xZ)().Yea();}Object.defineProperty(b,"__esModule",{value:!0});b.GO=void 0;n=a(29204);c=a(13044);f=a(31276);g=a(68976);e=a(36129);h=a(83767);k=a(96687);l=a(58252);m=a(66476);p=a(11479);r=a(79048);q=a(17398);u=a(52033);v=a(13847);w=a(81889);x=a(6823);d.prototype.dnb=function(y,A){var z,B,C,D;y=void 0 === y?{}:y;D=null !== (B=null === (z=y.playbackState) || void 0 === z?void 0:z.currentTime) && void 0 !== B?B:A.Ua;return Object.assign(Object.assign({startPts:D,uiPlayStartTime:Date.now()},y),{endPts:null !== (C=A.fb) && void 0 !== C?C:void 0,isPlaygraph:!0});};d.prototype.RQb=function(y){f.Xa.get(h.iO).$Bc(y);};d.prototype.TOc=function(){f.Xa.get(k.v5)().catch(function(y){f.log.error("Unable to initialize the playdata services",y);throw y;}).then(function(y){return y.send(Infinity);}).catch(function(y){f.log.error("Unable to send deferred playdata",y);});return Promise.resolve();};b.GO=d;d.nX={};},17925:function(t,b,a){var n,c,f,g,e,h;function d(k){var l;l=f.GO.call(this,k) || this;l.createPlayer=function(m,p){var r,q,u;p=void 0 === p?{}:p;p="number" === typeof p?{Hn:p}:p;r=n.Xa.get(c.x5);q=n.Xa.get(e.IV).create(p.manifest);u=n.Xa.get(g.MFa);m=r.Rfc(m);r=n.Xa.get(h.FFa).create(m);m=r.Yoa();u=u.Oqb(r);u.addEpisode({movieId:m.J,playbackParams:l.dnb(p,m),manifest:q});return u;};return l;}Object.defineProperty(b,"__esModule",{value:!0});b.nib=void 0;n=a(31276);c=a(75864);f=a(59219);g=a(32050);e=a(17398);h=a(58252);Ia(d,f.GO);b.nib=d;},41325:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});t=a(17925);d=a(29204);n=a(13044);b=a(87386);c=a(31276);f=a(45118);g=a(36410);e=a(45146);h=a(32687);Ba.netflix=Ba.netflix || ({});(0,e.va)(!Ba.netflix.player);Ba.netflix.player={VideoSession:t.nib,diag:{togglePanel:function(k,l){var m;m=[];if(!d.config || d.config.yda){switch(k){case "info":m=n.Zp.map(function(p){return p.pua;});break;case "streams":m=n.Zp.map(function(p){return p.sua;});break;case "log":m=[];}m.forEach(function(p){(0,h.$c)(l)?l?p.show():p.kD():p.toggle();});}},addLogMessageSink:function(k){c.Xa.get(f.Up).addListener({Rcd:function(){},eCc:function(l){k({data:l.data});}});}},log:(0,c.gn)("Ext"),LogLevel:b.No,addLogSink:function(k,l){c.Xa.get(g.FV).kva(k,l);},getVersion:function(){return "6.0054.419.911";},getMostRecentPlaybackDiagnosticGroups:function(){var k;return null === (k=n.pz.fca) || void 0 === k?void 0:k.gsb.p$();}};},61524:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;Object.defineProperty(b,"__esModule",{value:!0});d=a(1481);n=a(59219);c=a(33096);f=a(29204);t=a(36129);g=a(31276);e=a(45146);h=a(3887);k=a(32687);l=a(45118);m=a(31850);a=a(11479);g.Xa.get(a.ek).register(t.da.s$a,function(p){var r,q;r=(0,g.gn)("NccpApi");q=(0,h.y7b)(["info","warn","trace","error"]);n.GO.nX.nccp={getEsn:function(){return d.gp.ij;},getPreferredLanguages:function(){return f.config.Jv.dZa;},setPreferredLanguages:function(u){(0,e.va)((0,k.isArray)(u) && (0,k.n_)(u[0]));f.config.Jv.dZa=u;},queueLogblob:function(u,v,w){var x;if(u && v)if((v=v.toLowerCase(),q[v])){x=g.Xa.get(l.Up);u=g.Xa.get(m.YE).Tt(u,v,w);x.Vc(u);}else r.warn("Invalid severity",{severity:v});},flushLogblobs:function(){g.Xa.get(l.Up).flush(!0);}};p(c.Oh);});},42433:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u;Object.defineProperty(b,"__esModule",{value:!0});d=a(59219);n=a(1481);c=a(33096);f=a(52569);t=a(36129);g=a(31276);e=a(70834);h=a(45146);k=a(32687);l=a(22365);b=a(11479);m=a(24066);p=a(71501);r=a(97996);q=a(22816);u=a(65630);g.Xa.get(b.ek).register(t.da.t$a,function(v){var B;function w(){return n.gp.ij;}function x(C){var D;D=g.Xa.get(p.ZV);g.Xa.get(r.m5)().then(function(F){var E,G,J,L;function H(K){var M;M={tokendata:"",signature:""};M.tokendata=(0,g.CC)(K.cr);M.signature=(0,g.CC)(K.Jk);return M;}E=F.oS.zsc(D);G=E.$o;J=E.bc;E=E.kg;L=F.oS.pS.Dg;J && E && G?((0,h.va)(G),F=["1",(0,g.CC)(JSON.stringify(H(J))),(0,g.CC)(JSON.stringify(H(E)))].join(),C({success:!0,cryptoContext:{cTicket:F,encrypt:function(K,M){K=(0,k.Fi)(K)?(0,g.M2)(K):K;G.encrypt(K,L,u.dC.JSON,{result:function(P){P=(0,g.CC)(P);M({success:!0,mslEncryptionEnvelopeBase64:P});},error:function(P){(0,h.va)(!1,"Encrypt error: " + P);M({success:!1});}});},decrypt:function(K,M){K=(0,g.XF)(K);G.decrypt(K,L,{result:function(P){M({success:!0,text:(0,g.Rfa)(P)});},error:function(P){(0,h.va)(!1,"Decrypt error: " + P);M({success:!1});}});},hmac:function(K,M){K=(0,k.Fi)(K)?(0,g.M2)(K):K;G.sign(K,L,u.dC.JSON,{result:function(P){M({success:!0,hmacBase64:(0,g.CC)(P)});},error:function(P){(0,h.va)(!1,"Hmac error: " + P);M({success:!1});}});}}})):((0,h.va)(!1,"Must login first"),C({success:!1}));});}function y(C,D){var F;F=(0,g.XF)(C);C=F.subarray(32,48);F=F.subarray(0,32);if(16 != C.length || 32 != F.length)throw Error("Bad shared secret");Promise.all([(0,f.A0)(l.Wn.importKey("raw",C,{name:"AES-CBC"},!1,["encrypt","decrypt"])),(0,f.A0)(l.Wn.importKey("raw",F,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign","verify"]))]).then(function(H){D({success:!0,cryptoContext:A(H[0],H[1])});},function(){D({success:!1});});}function A(C,D){function F(H){H=new e.$ga((0,g.XF)(H));H.Au();return {iv:H.yJb(),Okc:H.yJb()};}return {encrypt:function(H,E){var G;H=(0,k.Fi)(H)?(0,g.M2)(H):H;G=l.cJ.getRandomValues(new Uint8Array(16));(0,f.A0)(l.Wn.encrypt({name:"AES-CBC",iv:G},C,H)).then(function(J){var L,K;J=new Uint8Array(J);L=[];K=new e.$ga(L);K.dz(2);K.BSb(G);K.BSb(J);J=(0,g.CC)(L);E({success:!0,encryptedDataAsn1Base64:J});},function(J){(0,h.va)(!1,"Encrypt error: " + J);E({success:!1});});},decrypt:function(H,E){var G;G=F(H);H=G.iv;G=G.Okc;(0,f.A0)(l.Wn.decrypt({name:"AES-CBC",iv:H},C,G)).then(function(J){J=new Uint8Array(J);E({success:!0,text:(0,g.Rfa)(J)});},function(J){(0,h.va)(!1,"Decrypt error: " + J);E({success:!1});});},hmac:function(H,E){H=(0,k.Fi)(H)?(0,g.M2)(H):H;(0,f.A0)(l.Wn.sign({name:"HMAC",hash:{name:"SHA-256"}},D,H)).then(function(G){G=new Uint8Array(G);E({success:!0,hmacBase64:(0,g.CC)(G)});},function(G){(0,h.va)(!1,"Hmac error: " + G);E({success:!1});});}};}function z(){return (0,m.Obc)();}B=g.Xa.get(q.$U);if(B.nAb || B.Hqa)d.GO.nX.mdx={getEsn:w,createCryptoContext:x,createCryptoContextFromSharedSecret:y,getServerEpoch:z};v(c.Oh);});},13777:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;Object.defineProperty(b,"__esModule",{value:!0});t=a(11479);b=a(36129);d=a(87386);n=a(91581);c=a(15348);f=a(33096);g=a(29204);e=a(31276);h=a(13044);k=a(59219);l=a(62898);m=a(66476);p=a(45118);e.Xa.get(t.ek).register(b.da.u$a,function(r){var v,w,x,y;function q(A,z){return void 0 === A || void 0 === z?Promise.reject("Invalid email and/or password"):e.Xa.get(l.Idb).Se({log:this.log,uLa:{email:A,password:z}},{}).then(function(){});}function u(A){var z;z=e.Xa.get(m.FO);return z.mub.fetch(A,z);}if(g.config.Glc){v=e.Xa.get(c.aFa);w=e.Xa.get(n.xt);x=e.Xa.get(d.zb).wb("Test");y=e.Xa.get(p.Up);k.GO.nX.test={setPboRequestsListener:function(A){return v.OPc(A);},playbacks:h.Zp,playgraphManager:{isNextSegmentReady:function(A){var z,B;return void 0 !== (null === (B=null === (z=h.Zp.find(function(C){return C.Ha === A;})) || void 0 === z?void 0:z.bb) || void 0 === B?void 0:{BLa:0});},isNextSegmentBuffering:function(A,z){var B,C;return null === (C=null === (B=h.Zp.find(function(D){return D.Ha === A;})) || void 0 === B?void 0:B.bb) || void 0 === C?void 0:C.y$(z).S7;}},live:{isLive:function(A){var z;return null === (z=h.Zp.find(function(B){return B.Ha === A;})) || void 0 === z?void 0:z.Bc.za;},isAtLiveEdge:function(A){var z;return null === (z=h.Zp.find(function(B){return B.Ha === A;})) || void 0 === z?void 0:z.Bc.FA();}},device:{esn:Ba._cad_global.device.ij,esnPrefix:w.Yt,errorPrefix:w.Jx},log:{info:function(A,z){for(var B=[],C=1;C < arguments.length;++C)B[C - 1]=arguments[C];return x.info(A,B);},error:function(A,z){for(var B=[],C=1;C < arguments.length;++C)B[C - 1]=arguments[C];return x.error(A,B);},warn:function(A,z){for(var B=[],C=1;C < arguments.length;++C)B[C - 1]=arguments[C];return x.warn(A,B);},trace:function(A,z){for(var B=[],C=1;C < arguments.length;++C)B[C - 1]=arguments[C];return x.trace(A,B);},log:function(A,z){for(var B=[],C=1;C < arguments.length;++C)B[C - 1]=arguments[C];return x.log(A,B);},debug:function(A,z){for(var B=[],C=1;C < arguments.length;++C)B[C - 1]=arguments[C];return x.debug(A,B);},flush:function(){return y.flush();}},login:q,getManifest:u};}r(f.Oh);});},66093:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperty(b,"__esModule",{value:!0});b.DC=void 0;d=a(33096);n=a(29204);t=a(36129);c=a(31276);f=a(22365);g=a(11479);e=a(32687);h=a(59818);k=a(5021);a=c.Xa.get(g.ek);l=c.Xa.get(h.gF);a.register(t.da.i$a,function(m){var u,v;function p(){m(d.Oh);p=d.eJ;}function r(w){if(!(w instanceof EventTarget))throw "batteryManager is not an instaceof EventTarget";["addEventListener","removeEventListener"].forEach(function(x){if(!(0,e.Yx)(w[x]))throw x + " is not a function";});}function q(){return Promise.resolve().then(function(){var w;w=f.zg.getBattery();if(!(0,e.Yx)(w.then))throw "getBattery did not return a promise";return w;});}u=(0,c.gn)("BatteryManager");b.DC={mUb:"chargingchange",Iwb:function(){return v?v.level:null;},LQa:function(){return v?v.charging:null;},addEventListener:function(w,x){v && v.addEventListener(w,x);},removeEventListener:function(w,x){v && v.removeEventListener(w,x);}};n.config.c8 && (0,e.Yx)(f.zg.getBattery)?l.Qs((0,k.ic)(n.config.Foc),q()).then(function(w){r(w);v=w;}).catch(function(w){u.error("getBattery failed",w);}).then(p):p();});},94886:function(t,b,a){var n,c;function d(){var f,g;f=this;this.Cz={};this.on=function(e,h,k){f.addListener(e,h,k);};this.addListener=function(e,h,k){f.Cz && (f.Cz[e]=f.Cz[e] || new c.Dia(!0)).add(h,k);};this.removeListener=function(e,h){f.Cz && f.Cz[e] && f.Cz[e].removeAll(h);};this.YQa=function(e){return f.Cz && f.Cz[e]?f.Cz[e].flatten():[];};g=this;this.qd=function(e,h,k){var l;if(g.Cz){l=g.YQa(e);for(e={VU:0};e.VU < l.length;(e={VU:e.VU},e.VU++))k?(function(m){return function(){var p;p=l[m.VU];(0,n.Xh)(function(){p(h);});};})(e)():l[e.VU].call(this,h);}};}Object.defineProperty(b,"__esModule",{value:!0});b.qm=void 0;n=a(32219);c=a(20483);d.prototype.Zg=function(){this.Cz=void 0;};b.qm=d;},31298:function(t,b,a){var n,c,f;function d(g,e,h,k,l,m){this.debug=g;this.config=e;this.platform=h;this.debug.assert(k && k != c.da.yh,"There should always be a specific error code");this.errorCode=k || c.da.yh;l && "object" === typeof l?(this.Ta=l.Ta || l.subCode,this.Ng=l.Ng || l.extCode,this.w9=l.w9 || l.Psb,this.qf=l.qf || l.details,this.b9=l.kPa,this.Zna=l.Zna || l.Uad || l.EH,this.v9=l.v9 || l.data,l.Qba && (this.Qba=l.Qba),this.Jca=l.Jca,this.ds=l.ds,this.method=l.method,this.GH=l.GH,this.alert=l.alert,this.GKa=l.GKa,this.qR=l.qR,!this.qf && this.qR && (this.qf=JSON.stringify(this.qR)),this.Xd=l.Xd,this.debug.assert(!this.ds || this.ds == this.Ng)):(this.Ta=l,this.Ng=m);this.stack=[this.errorCode];this.Ta?this.stack.push(this.Ta):this.Ng && this.stack.push(c.Y.yh);this.Ng && this.stack.push(this.Ng);this.xna=this.Rqa?this.Jca:this.platform.Jx + this.stack.join("-");}Object.defineProperty(b,"__esModule",{value:!0});b.zeb=void 0;n=a(33096);c=a(36129);f=a(32687);a(3887);d.prototype.OMb=function(g){this.iIc=g;};d.prototype.toString=function(){var g;g="[PlayerError #" + this.xna + "]";this.qf && (g+=" " + this.qf);this.b9 && (g+=" (CustomMessage: " + this.b9 + ")");return g;};d.prototype.aD=function(){return (/widevine/i).test(this.config().fy)?n.zAa:(/fps/i).test(this.config().fy)?"fairplay":n.iha;};d.prototype.ufa=function(){var g,e,h,k;this.b9 && (h=["streaming_error"]);h || this.aD() !== n.iha || ("80080017" == this.Ng && (h=["admin_mode_not_supported","platform_error"]),"8004CD12" === this.Ng && (h=["pause_timeout"]));h || this.aD() !== n.zAa || this.errorCode !== c.da.e8a && this.errorCode !== c.da.CAa || (h=["no_cdm","platform_error","plugin_error"]);h || this.errorCode !== c.da.FAa || this.Ta !== c.Y.DAa || (h=["pause_timeout"]);this.Zna === c.aia.jd && (this.iMa("2018") || this.iMa("2020")?h=["received_soad"]:this.iMa("5000") && (h=["should_reset_device"]));k=this.Poc();k && (h=[k],this.b9=void 0);if(!h)switch(this.errorCode){case c.da.qia:case c.da.Eha:case c.da.eTb:case c.da.rEa:this.iIc && (h=["pause_timeout"]);break;case c.da.x$a:case c.da.y$a:h=this.Ta?["platform_error"]:["multiple_tabs"];break;case c.da.PBa:case c.da.pdb:case c.da.tEa:case c.da.WZb:h=["platform_error","plugin_error"];break;case c.da.e_b:h=["no_cdm","platform_error","plugin_error"];break;case c.da.k8a:case c.da.ria:case c.da.rdb:switch(this.Ng){case "FFFFD000":h=["device_needs_service","platform_error"];break;case "48444350":h=["unsupported_output","platform_error"];break;case "00000024":h=["private_mode"];}break;case c.da.ndb:case c.da.sEa:h=["unsupported_output"];}!h && (0,c.H8a)(this.Ta) && (h=this.Ta == c.Y.G4?["geo"]:["internet_connection_problem"]);h || this.errorCode !== c.da.CAa || this.Ta !== c.Y.nr || "S" !== this.platform.Jx || (h=["private_mode"]);if(!h)switch(this.U1a(this.Ta)){case c.Y.JHa:h=["should_upgrade"];break;case c.Y.hdb:h=["should_reset_device"];break;case c.Y.gdb:h=["should_reload_device"];break;case c.Y.fdb:h=["should_exit_device"];break;case c.Y.FYb:case c.Y.lbb:h=["should_signout_and_signin"];break;case c.Y.GYb:h=["internet_connection_problem"];break;case c.Y.q7a:h=["platform_error","plugin_error"];break;case c.Y.UUb:case c.Y.f$a:case c.Y.g$a:h=["private_mode"];break;case c.Y.bDa:h=["should_reload_with_preferred_locales"];}h=h || [];if(this.Rqa)(h.push(this.Jca,this.w9),this.U1a(this.Ta) === c.Y.oEa && h.push("incorrect_pin"));else if((h.push(this.platform.Jx + this.errorCode),this.Ta))switch(this.U1a(this.Ta)){case c.Y.oEa:h.push("incorrect_pin");break;default:h.push("" + this.Ta);}h={display:{code:this.xna,text:this.b9},messageIdList:h,alert:this.alert,alertTag:this.GKa,preferredAudioLocale:null === (g=this.qR) || void 0 === g?void 0:g.izb,preferredTextLocale:null === (e=this.qR) || void 0 === e?void 0:e.jzb};this.config().Flc && (h.debugData=this.v9);return h;};d.prototype.U1a=function(g){var e;e=parseInt(g,10);return isNaN(e)?g:e;};d.prototype.iMa=function(g){return ((0,f.pc)(this.Ng)?this.Ng.toString():(0,f.Fi)(this.Ng)?this.Ng:"").endsWith(g);};d.prototype.Poc=function(){if(this.errorCode === c.da.kab && (this.Ta === c.Y.nEa || this.Ta === c.Y.edb))return this.Qoc(this.Ta === c.Y.nEa);};d.prototype.Qoc=function(g){var e,h,k,l;k=this.config().browserInfo || ({});l=null === (e=k.os) || void 0 === e?void 0:e.name;e=((null === (h=k.os) || void 0 === h?void 0:h.version) || "").split(".");h=parseInt(e && e[0]);e=parseInt(e && e[1]);switch(l){case "windows":return 6 > h || 6 === h && 1 > e?g?"cdm_not_supported_warning_switch_windows":"cdm_not_supported_switch_windows":g?"cdm_not_supported_warning_update":"cdm_not_supported_update";case "mac":return 10 > h || 10 === h && 10 > e?g?"cdm_not_supported_warning_switch_mac":"cdm_not_supported_switch_mac":g?"cdm_not_supported_warning_update":"cdm_not_supported_update";default:return g?"cdm_not_supported_warning_other":"cdm_not_supported_other";}};Ha.Object.defineProperties(d.prototype,{Rqa:{configurable:!0,enumerable:!0,get:function(){return !!this.Jca && !!this.w9;}}});b.zeb=d;},981:function(t,b){function a(d,n){this.A2a=d;this.iD=n;}Object.defineProperty(b,"__esModule",{value:!0});b.xfb=void 0;a.prototype.nQc=function(){this.Kka || (this.Kka=setInterval(this.iD,this.A2a));};a.prototype.hpb=function(){this.Kka && (clearInterval(this.Kka),this.Kka=void 0);};b.xfb=a;},35128:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.rja=void 0;b.Zu={UV:"PRIMARY",rya:"ASSISTIVE",y6a:"COMMENTARY",NONE:"NONE"};b.rja={assistive:b.Zu.rya,closedcaptions:b.Zu.rya,directorscommentary:b.Zu.y6a,commentary:b.Zu.y6a,subtitles:b.Zu.UV,primary:b.Zu.UV,none:b.Zu.NONE};},24066:function(t,b,a){var n,c,f,g,e;function d(){return n.md.get(f.fe).nH.na(e.ya);}Object.defineProperty(b,"__esModule",{value:!0});b.Cx=function(){return n.md.get(f.fe).yc().na(e.ya);};b.lpb=function(){return n.md.get(c.Li).Mg.na(e.Yu);};b.X5c=function(){return n.md.get(f.fe).nH.na(e.Yu);};b.W5c=function(){return n.md.get(g.XE).nG();};b.Nbc=d;b.Obc=function(){return n.md.get(c.Li).Mg.na(e.ya);};b.Y5c=function(){return d();};n=a(83989);c=a(30869);f=a(81918);g=a(62665);e=a(5021);},33096:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.K5a=b.YFa=b.e5=b.Uha=b.TTb=b.VTb=b.WTb=b.c6a=b.STb=b.UTb=b.b6a=b.XTb=b.aUb=b.ZTb=b.$Tb=b.YTb=b.GVb=b.FVb=b.EVb=b.TXb=b.VXb=b.UXb=b.QXb=b.SXb=b.RXb=b.HVb=b.zAa=b.iha=b.cZb=b.t0b=b.ibb=b.MTb=b.n7a=b.hEa=b.SV=b.oia=b.hbb=b.ZE=b.LTb=b.P5a=b.pXb=b.p1b=b.PXb=b.OXb=b.h0b=b.g0b=b.qr=b.Oh=b.sfb=b.eJ=void 0;b.J5a=b.L5a=b.N5a=b.M5a=void 0;b.eJ=function(){};b.sfb=function(){return !0;};b.Oh={success:!0};b.qr=1E3;b.g0b=86400;b.h0b=604800;b.OXb=1E4;b.PXb=1E7;b.p1b=1.5;b.pXb=.128;b.P5a=7.8125;b.LTb=128;b.ZE=145152E5;b.hbb=1E5;b.oia="$netflix$player$order";b.SV=-1;b.hEa=1;b.n7a=["en-US"];b.MTb=8;b.ibb=65535;b.t0b=65536;b.cZb=Number.MAX_VALUE;b.iha="playready";b.zAa="widevine";b.HVb="fps";b.RXb='audio/mp4; codecs="mp4a.40.5"';b.SXb='audio/mp4; codecs="mp4a.40.42"';b.QXb='audio/mp4; codecs="ec-3"';b.UXb='video/mp4; codecs="avc1.640028"';b.VXb='video/mp4; codecs="hev1.2.6.L153.B0"';b.TXb='video/mp4; codecs="dvhe.01000000"';b.EVb="9A04F079-9840-4286-AB92-E65BE0885F95";b.FVb="29701FE4-3CC7-4A34-8C5B-AE90C7439A47";b.GVb="EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED";b.YTb=["4E657466-6C69-7850-6966-665374726D21","4E657466-6C69-7848-6165-6465722E7632"];b.$Tb="A2394F52-5A9B-4F14-A244-6C427C648DF4";b.ZTb="4E657466-6C69-7846-7261-6D6552617465";b.aUb="8974DBCE-7BE7-4C51-84F9-7148F9882554";b.XTb="mp4a";b.b6a="enca";b.UTb="ec-3";b.STb="avc1";b.c6a="encv";b.WTb="hvcC";b.VTb="hev1";b.TTb="dvhe";b.Uha=0;b.e5=1;b.YFa="position:relative;width:100%;height:100%;overflow:hidden";b.K5a="AAAAJGZ0eXBpc282AAAAAW1jbDBpc282ZHNtc21zaXhkYXNoAAAAKWZyZWVJc29NZWRpYSBGaWxlIFByb2R1Y2VkIHdpdGggR1BBQwAAAAXwbW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAABdwAAAAAAAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAzt0cmFrAAAAXHRraGQAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAYAAAADYAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAAAAAAH0gABAAAAAAKzbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAABdwAAAAABVxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABNZWRpYUhhbmRsZXIAAAACXm1pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAh5zdGJsAAAB0nN0c2QAAAAAAAAAAgAAAQllbmN2AAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAYAA2ABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAP2F2Y0MBZAAW/+EAI2dkABasylBgd+XARAAAD6QAA6mDkgAD0JAAehKTTAHixbLAAQAFaOk7LIv9+PgAAAAAEHBhc3AAAAABAAAAAQAAAFBzaW5mAAAADGZybWFhdmMxAAAAFHNjaG0AAAAAY2VuYwABAAAAAAAoc2NoaQAAACB0ZW5jAAAAAAAAAQgAAAAABJJuTQAAAAAAAAAAAAAAFGJ0cnQAAFdDAAQxEAAA4PAAAAC5YXZjMQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAGAANgASAAAAEgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABj//wAAAD9hdmNDAWQAFv/hACNnZAAWrMpQYHflwEQAAA+kAAOpg5IAA9CQAHoSk0wB4sWywAEABWjpOyyL/fj4AAAAABBwYXNwAAAAAQAAAAEAAAAUYnRydAAAV0MABDEQAADg8AAAABBzdHRzAAAAAAAAAAAAAAAQc3RzYwAAAAAAAAAAAAAAFHN0c3oAAAAAAAAAAAAAAAAAAAAQc3RjbwAAAAAAAAAAAAAAOG12ZXgAAAAQbWVoZAAAAAABSRwjAAAAIHRyZXgAAAAAAAAAAQAAAAEAAAPpAAAAAAABAAAAAAGJcHNzaAAAAACaBPB5mEBChquS5lvgiF+VAAABaUoCAAAQAQCUAjwAVwBSAE0ASABFAEEARABFAFIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMgAuADAALgAwACIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiAD4ADQAKACAAIAA8AEQAQQBUAEEAPgANAAoAIAAgACAAIAA8AEQARQBDAFIAWQBQAFQATwBSAFMARQBUAFUAUAA+AE8ATgBEAEUATQBBAE4ARAA8AC8ARABFAEMAUgBZAFAAVABPAFIAUwBFAFQAVQBQAD4ADQAKACAAIAA8AC8ARABBAFQAQQA+AA0ACgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgAAAABMcHNzaAAAAAApcB/kPMdKNIxbrpDHQ5pHAAAALAAAAAQAAAAABJJuTcxdH7v6mbzxtj405AeHQcIhLEFIaAigoatAInie7Qj4AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQAAAAAASSbk0AAAAAAAAAAA==";b.M5a="AAAAJGZ0eXBpc282AAAAAW1jbDBpc282ZHNtc21zaXhkYXNoAAAAKWZyZWVJc29NZWRpYSBGaWxlIFByb2R1Y2VkIHdpdGggR1BBQwAAAAa0bW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAB1MAAAAAAAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAA/90cmFrAAAAXHRraGQAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAABQAAAALQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAAAAAAH0gABAAAAAAN3bWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAAABVxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABNZWRpYUhhbmRsZXIAAAADIm1pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAuJzdGJsAAAClnN0c2QAAAAAAAAAAgAAAWtlbmN2AAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAABQAC0ABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAjmh2Y0MBAiAAAACQAAAAAABd8AD9/fr6AAAPA6AAAQAYQAEMAf//AiAAAAMAkAAAAwAAAwBdkcCQoQABAEFCAQECIAAAAwCQAAADAAADAF2gAoCALRNnkeSQpEM5Kym/RhSVgLUBAQEEAAAPpAAB1MPoq978AS6AJeACXQBLwqIAAQAHRAHBcvY8kAAAABBwYXNwAAAAAQAAAAEAAAATY29scm5jbHgAAQABAAEAAAAAUHNpbmYAAAAMZnJtYWh2YzEAAAAUc2NobQAAAABjZW5jAAEAAAAAAChzY2hpAAAAIHRlbmMAAAAAAAABCAAAAAAEkm5NAAAAAAAAAAAAAAAUYnRydAAAfR0ADq1AAAfrqAAAARtodmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAABQAC0ABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAjmh2Y0MBAiAAAACQAAAAAABd8AD9/fr6AAAPA6AAAQAYQAEMAf//AiAAAAMAkAAAAwAAAwBdkcCQoQABAEFCAQECIAAAAwCQAAADAAADAF2gAoCALRNnkeSQpEM5Kym/RhSVgLUBAQEEAAAPpAAB1MPoq978AS6AJeACXQBLwqIAAQAHRAHBcvY8kAAAABBwYXNwAAAAAQAAAAEAAAATY29scm5jbHgAAQABAAEAAAAAFGJ0cnQAAH0dAA6tQAAH66gAAAAQc3R0cwAAAAAAAAAAAAAAEHN0c2MAAAAAAAAAAAAAABRzdHN6AAAAAAAAAAAAAAAAAAAAEHN0Y28AAAAAAAAAAAAAADhtdmV4AAAAEG1laGQAAAAAAAbfkgAAACB0cmV4AAAAAAAAAAEAAAABAAAD6QAAAAAAAQAAAAABiXBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAWlKAgAAEAEAlAI8AFcAUgBNAEgARQBBAEQARQBSACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADIALgAwAC4AMAAiACAAeABtAGwAbgBzAD0AIgBoAHQAdABwADoALwAvAHMAYwBoAGUAbQBhAHMALgBtAGkAYwByAG8AcwBvAGYAdAAuAGMAbwBtAC8ARABSAE0ALwAyADAAMAA3AC8AMAAzAC8AUABsAGEAeQBSAGUAYQBkAHkASABlAGEAZABlAHIAIgA+AA0ACgAgACAAPABEAEEAVABBAD4ADQAKACAAIAAgACAAPABEAEUAQwBSAFkAUABUAE8AUgBTAEUAVABVAFAAPgBPAE4ARABFAE0AQQBOAEQAPAAvAEQARQBDAFIAWQBQAFQATwBSAFMARQBUAFUAUAA+AA0ACgAgACAAPAAvAEQAQQBUAEEAPgANAAoAPAAvAFcAUgBNAEgARQBBAEQARQBSAD4AAAAATHBzc2gAAAAAKXAf5DzHSjSMW66Qx0OaRwAAACwAAAAEAAAAAASSbk3MXR+7+pm88bY+NOQHh0HCISxBSGgIoKGrQCJ4nu0I+AAAADRwc3NoAAAAAO3vi6l51krOo8gn3NUdIe0AAAAUCAESEAAAAAAEkm5NAAAAAAAAAAA=";b.N5a="AAAAJGZ0eXBpc282AAAAAW1jbDBpc282ZHNtc21zaXhkYXNoAAAAKWZyZWVJc29NZWRpYSBGaWxlIFByb2R1Y2VkIHdpdGggR1BBQwAAAAX3bW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAABdwAAAAAAAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAA0J0cmFrAAAAXHRraGQAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAmAAAAFWAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAAAAAAPpAABAAAAAAK6bWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAABdwAAAAABVxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABNZWRpYUhhbmRsZXIAAAACZW1pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAiVzdGJsAAAB2XN0c2QAAAAAAAAAAQAAAcllbmN2AAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAmABVgBIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAwGh2Y0MBAiAAAACQAAAAAABa8AD9/fr6AAAPA6AAAQAYQAEMAf//AiAAAAMAkAAAAwAAAwBamLAkoQABAHFCAQECIAAAAwCQAAADAAADAFqgBMIBWfTZ5i5JCkQE7hCsImJ5ff6PNnL+jmUyXv6ObMv0YUITiKxJl7+jmzL9GFETmrEm/Zl+jCmnJWU36MKSsBahIgE2wgAAAwACAAADADHzze9+ALWAFrgBawAtcaIAAQAJRAHBcsKhljyQAAAAEHBhc3AAAAABAAAAAQAAABNjb2xybmNseAAJABAACQAAAAAgbWRjdjPChsQdTAu4hNA+gD0TQEICYloAAAAAMgAAAAxjbGxpJxAArwAAAFBzaW5mAAAADGZybWFodmMxAAAAFHNjaG0AAAAAY2VuYwABAAAAAAAoc2NoaQAAACB0ZW5jAAAAAAAAAQgAAAAABJJuTQAAAAAAAAAAAAAAFGJ0cnQAACRGAAVtaAABwSAAAAAQc3R0cwAAAAAAAAAAAAAAEHN0c2MAAAAAAAAAAAAAABRzdHN6AAAAAAAAAAAAAAAAAAAAEHN0Y28AAAAAAAAAAAAAADhtdmV4AAAAEG1laGQAAAAAADb8kAAAACB0cmV4AAAAAAAAAAEAAAABAAAD6QAAAAAAAQAAAAABiXBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAWlKAgAAEAEAlAI8AFcAUgBNAEgARQBBAEQARQBSACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADIALgAwAC4AMAAiACAAeABtAGwAbgBzAD0AIgBoAHQAdABwADoALwAvAHMAYwBoAGUAbQBhAHMALgBtAGkAYwByAG8AcwBvAGYAdAAuAGMAbwBtAC8ARABSAE0ALwAyADAAMAA3AC8AMAAzAC8AUABsAGEAeQBSAGUAYQBkAHkASABlAGEAZABlAHIAIgA+AA0ACgAgACAAPABEAEEAVABBAD4ADQAKACAAIAAgACAAPABEAEUAQwBSAFkAUABUAE8AUgBTAEUAVABVAFAAPgBPAE4ARABFAE0AQQBOAEQAPAAvAEQARQBDAFIAWQBQAFQATwBSAFMARQBUAFUAUAA+AA0ACgAgACAAPAAvAEQAQQBUAEEAPgANAAoAPAAvAFcAUgBNAEgARQBBAEQARQBSAD4AAAAATHBzc2gAAAAAKXAf5DzHSjSMW66Qx0OaRwAAACwAAAAEAAAAAASSbk3MXR+7+pm88bY+NOQHh0HCISxBSGgIoKGrQCJ4nu0I+AAAADRwc3NoAAAAAO3vi6l51krOo8gn3NUdIe0AAAAUCAESEAAAAAAEkm5NAAAAAAAAAAA=";b.L5a="AAAAJGZ0eXBpc282AAAAAW1jbDBpc282ZHNtc21zaXhkYXNoAAAAOmZyZWVJc29NZWRpYSBGaWxlIFByb2R1Y2VkIHdpdGggR1BBQyAyLjIuMS1yZXZyZWxlYXNlAAAABiBtb292AAAAbG12aGQAAAAA5NfWeuTX1noAAF3AAAAAAAABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAADa3RyYWsAAABcdGtoZAAAAAHk19Zf5NfWegAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAADwAAAAhwAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAAAAAA+kAAEAAAAAAuNtZGlhAAAAIG1kaGQAAAAA5NfWX+TX1noAAF3AAAAAAFXEAAAAAAA3aGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAD9AR1BBQzIuMi4xLXJldnJlbGVhc2UAAAAChG1pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAkRzdGJsAAAB+HN0c2QAAAAAAAAAAgAAARxlbmN2AAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAA8ACHABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAH2h2Y0MBAiAAAACQAAAAAABa8AD9/fr6AAAPAAAAACBkdmNDAQAKDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEHBhc3AAAAABAAAAAQAAABNjb2xybmNseAACAAIAAoAAAABQc2luZgAAAAxmcm1hZHZoZQAAABRzY2htAAAAAGNlbmMAAQAAAAAAKHNjaGkAAAAgdGVuYwAAAAAAAAEIAAAAAASSbk0AAAAAAAAAAAAAABRidHJ0AACamQAHyWAAAdpQAAAAzGR2aGUAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAADwAIcAEgAAABIAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY//8AAAAfaHZjQwECIAAAAJAAAAAAAFrwAP39+voAAA8AAAAAIGR2Y0MBAAoNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQcGFzcAAAAAEAAAABAAAAE2NvbHJuY2x4AAIAAgACgAAAABRidHJ0AACamQAHyWAAAdpQAAAAEHN0dHMAAAAAAAAAAAAAABBzdHNjAAAAAAAAAAAAAAAUc3RzegAAAAAAAAAAAAAAAAAAABBzdGNvAAAAAAAAAAAAAAA4bXZleAAAABBtZWhkAAAAAASXy9QAAAAgdHJleAAAAAAAAAABAAAAAQAAA+kAAAAAAAEAAAAAAYlwc3NoAAAAAJoE8HmYQEKGq5LmW+CIX5UAAAFpSgIAABABAJQCPABXAFIATQBIAEUAQQBEAEUAUgAgAHYAZQByAHMAaQBvAG4APQAiADQALgAyAC4AMAAuADAAIgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAPgANAAoAIAAgADwARABBAFQAQQA+AA0ACgAgACAAIAAgADwARABFAEMAUgBZAFAAVABPAFIAUwBFAFQAVQBQAD4ATwBOAEQARQBNAEEATgBEADwALwBEAEUAQwBSAFkAUABUAE8AUgBTAEUAVABVAFAAPgANAAoAIAAgADwALwBEAEEAVABBAD4ADQAKADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AAAAAExwc3NoAAAAAClwH+Q8x0o0jFuukMdDmkcAAAAsAAAABAAAAAAEkm5NzF0fu/qZvPG2PjTkB4dBwiEsQUhoCKChq0AieJ7tCPgAAAA0cHNzaAAAAADt74upedZKzqPIJ9zVHSHtAAAAFAgBEhAAAAAABJJuTQAAAAAAAAAA";b.J5a="AAAAIGZ0eXBpc282AAAAAWlzbzZkc21zbXNpeGRhc2gAAABJZnJlZUlzb01lZGlhIEZpbGUgUHJvZHVjZWQgd2l0aCBHUEFDIDIuMy1ERVYtcmV2NzMyNC1nYmY2MjljNjllLUhFQUQAAAACyW1vb3YAAABsbXZoZAAAAADh+ZcJ4fmXCQAAu4AAAAAAAAEAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAIddHJhawAAAFx0a2hkAAAAB+H5lKLh+ZcJAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAQAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAJGVkdHMAAAAcZWxzdAAAAAAAAAABAAAAAAAAAAAAAQAAAAABlW1kaWEAAAAgbWRoZAAAAADh+ZSi4fmXCQAAu4AAAAAAFccAAAAAACVoZGxyAAAAAAAAAABzb3VuAAAAAAAAAAAAAAAAc291bgAAAAFIbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEMc3RibAAAAKZzdHNkAAAAAAAAAAEAAACWbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAALuAAAAAAAByZXNkcwAAAAADZAAAAARcQBUABhoAAx/QAALzCAVN+UZDIjzA08ngIAAAEkt4gQIEBgtciAIJAggJCAAJ1AGAQARCAAV1AGAwsAGQgAgdcgBgKHACEIAIGQAYCAAABMAK5JYATgAgAASfSwAGAQIAAAAQc3R0cwAAAAAAAAAAAAAAEHN0c2MAAAAAAAAAAAAAABRzdHN6AAAAAAAAAAAAAAAAAAAAEHN0Y28AAAAAAAAAAAAAABpzZ3BkAQAAAHByb2wAAAACAAAAAQABAAAAOG12ZXgAAAAQbWVoZAAAAAAJVBbgAAAAIHRyZXgAAAAAAAAAAQAAAAEAAAQAAAAAAAABAAA=";},77705:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.grb=b.PVa=void 0;d=a(45146);n=a(3887);c=a(32687);(function(){var g,e,h;function f(k){(0,d.va)(void 0 !== g[k]);return g[k];}g={'"':'""',"\r":"","\n":" "};e=/["\r\n]/g;h=/[", ]/;b.grb=function(k){return (0,c.$c)(k)?(0,c.pc)(k)?k:(0,c.Fi)(k)?k.replace(e,f):(0,c.jAb)(k)?k:isNaN(k)?"NaN":"":"";};b.PVa=function(k){var l,m;l=b.grb;m="";(0,n.Di)(k,function(p,r){p=l(p) + "=" + l(r);h.test(p) && (p='"' + p + '"');m=m?m + ("," + p):p;});return m;};})();},45146:function(t,b,a){var c,f,g;function d(){g || (g=c.Xa.get(f.VB));return g;}function n(e,h){return d().assert(e,h);}Object.defineProperty(b,"__esModule",{value:!0});b.Sgc=b.G8=b.Lgc=b.Pgc=b.pY=b.H8=b.Ogc=b.Qgc=b.I8=b.Arb=b.Ngc=b.Mgc=b.Rgc=b.wTb=void 0;b.va=n;c=a(31276);f=a(90597);b.wTb=function(){n(!1);};b.Rgc=!0;g=void 0;b.Mgc=function(e,h){return d().F7b(e,h);};b.Ngc=function(e,h){return d().G7b(e,h);};b.Arb=function(e,h){return d().zla(e,h);};b.I8=function(e,h){return d().M7b(e,h);};b.Qgc=function(e,h){return d().K7b(e,h);};b.Ogc=function(e,h){return d().yla(e,h);};b.H8=function(e,h){return d().I7b(e,h);};b.pY=function(e,h){return d().L7b(e,h);};b.Pgc=function(e,h){return d().J7b(e,h);};b.Lgc=function(e,h){return d().E7b(e,h);};b.G8=function(e,h){return d().H7b(e,h);};b.Sgc=function(){return d().dwc();};},32219:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Xh=function(a){return setTimeout(a,0);};},22894:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.jWb=function(a){var c,f,g,e;function d(){if(g)for(var h;h=c.pop();)h(e);}function n(h){g=!0;e=h;d();}c=[];return function(h){c.push(h);f || (f=!0,a(n));d();};};},37509:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.Lpa=b.ls=b.Mpa=b.WK=b.hn=b.xe=void 0;t=a(94886);d=a(32219);n=a(22365);b.xe=new t.qm();b.hn=1;b.WK=2;b.Mpa=3;b.ls=4;b.Lpa=5;(0,d.Xh)(function(){var f,g,e;function c(h,k){if(g)g.on(h,k);else Ba.addEventListener(h,k);}f=Ba.jQuery;g=f && f(Ba);f=(f=Ba.netflix) && f.cadmium && f.cadmium.addBeforeUnloadHandler;e=n.Ni.hidden;f?f(function(h){b.xe.qd(b.hn,h);}):c("beforeunload",function(h){b.xe.qd(b.hn,h);});c("keydown",function(h){b.xe.qd(b.WK,h);});c("resize",function(){b.xe.qd(b.Mpa);});n.Ni.addEventListener("visibilitychange",function(){e !== n.Ni.hidden && (e=n.Ni.hidden,b.xe.qd(b.ls));});});(function(){Ba.addEventListener("error",function(c){b.xe.qd(b.Lpa,c);return !0;});})();},52828:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});t=a(36129);d=a(31276);n=a(31701);a=a(11479);d.Xa.get(a.ek).register(t.da.k$a,function(c){d.Xa.get(n.Z7a)().then(function(){c({success:!0});}).catch(function(f){d.log.error("error in initializing indexedDb debug tool",f);c({success:!0});});});},37353:function(t,b,a){var h,k,l,m,p;function d(r){var q,v;(0,k.I8)(r);if((0,m.Fi)(r) && b.z$a.test(r)){q=r.split(".");if(4 === q.length){for(var u=0;u < q.length;u++){v=(0,p.am)(q[u]);if(0 > v || !(0,m.sL)(v,0,255) || 1 !== q[u].length && 0 === q[u].indexOf("0"))return;}return r;}}}function n(r){var q;q=0;if(d(r) === r)return (r=r.split("."),q+=(0,p.am)(r[0]) << 24,q+=(0,p.am)(r[1]) << 16,q+=(0,p.am)(r[2]) << 8,q + (0,p.am)(r[3]));}function c(r){var q,u;(0,k.I8)(r);if((0,m.Fi)(r) && r.match(b.A$a)){q=r.split(":");-1 !== q[q.length - 1].indexOf(".") && (r=f(q[q.length - 1]),q.pop(),q.push(r[0]),q.push(r[1]),r=q.join(":"));r=r.split("::");if(!(2 < r.length || 1 === r.length && 8 !== q.length) && (q=1 < r.length?g(r):q,r=q.length,8 === r)){for(;r--;){u=parseInt(q[r],16);if(!(0,m.sL)(u,0,h.ibb))return;}return q.join(":");}}}function f(r){var q;r=n(r) >>> 0;q=[];q.push((r >>> 16 & 65535).toString(16));q.push((r & 65535).toString(16));return q;}function g(r){var q,u,v;q=r[0].split(":");r=r[1].split(":");1 === q.length && "" === q[0] && (q=[]);1 === r.length && "" === r[0] && (r=[]);u=8 - (q.length + r.length);if(1 > u)return [];for(v=0;v < u;v++)q.push("0");for(v=0;v < r.length;v++)q.push(r[v]);return q;}function e(r){return -1 << 32 - r;}Object.defineProperty(b,"__esModule",{value:!0});b.hO=b.A$a=b.z$a=void 0;b.Q0c=d;b.M0c=n;b.R0c=c;b.O0c=f;b.P0c=g;b.S0c=function(r,q,u){var v,w,x,y;v=d(r);w=c(r);x=d(q);y=c(q);if(!v && !w || !x && !y || v && !x || w && !y)return !1;if(r === v)return (u=e(u),(n(r) & u) !== (n(q) & u)?!1:!0);if(r === w){r=r.split(":");q=q.split(":");for(v=(0,l.KV)(u / b.hO.length);v--;)if(r[v] !== q[v])return !1;u%=b.hO.length;if(0 !== u)for((r=parseInt(r[v],16).toString(2),q=parseInt(q[v],16).toString(2),r=b.hO.substring(0,b.hO.length - r.length) + r,q=b.hO.substring(0,b.hO.length - q.length) + q,v=0);v < u;v++)if(r[v] !== q[v])return !1;return !0;}return !1;};b.N0c=e;h=a(33096);k=a(45146);l=a(22365);m=a(32687);p=a(3887);b.z$a=/^[0-9.]*$/;b.A$a=/^([a-fA-F0-9]*:){2}[a-fA-F0-9:.]*$/;b.hO="0000000000000000";},32687:function(t,b,a){Object.defineProperty(b,"__esModule",{value:!0});b.Yx=b.jAb=b.n_=b.Fi=b.GUa=b.Nwc=b.twc=b.uUa=b.sL=b.zAb=b.pc=b.Saa=b.isArray=b.VAb=b.IA=b.$c=b.is=void 0;t=a(76564);b.is=t.jO;b.$c=function(d){return b.is.Ci(d);};b.IA=function(d){return b.is.p7(d);};b.VAb=function(d){return b.is.SJa(d);};b.isArray=function(d){return b.is.yP(d);};b.Saa=function(d){return b.is.nmb(d);};b.pc=function(d,n,c){return b.is.Wo(d,n,c);};b.zAb=function(d,n,c){return b.is.LKa(d,n,c);};b.sL=function(d,n,c){return b.is.q7(d,n,c);};b.uUa=function(d){return b.is.U6(d);};b.twc=function(d){return b.is.Z4b(d);};b.Nwc=function(d){return b.is.$4b(d);};b.GUa=function(d){return b.is.omb(d);};b.Fi=function(d){return b.is.Ft(d);};b.n_=function(d){return b.is.qx(d);};b.jAb=function(d){return b.is.Lka(d);};b.Yx=function(d){return b.is.Nka(d);};},2734:function(t,b,a){Object.defineProperty(b,"__esModule",{value:!0});t=a(31276);b=a(36410);a=a(34126);t.Xa.get(b.FV).kva(a.VCa.yUb,function(d){var n,c;n=d.level;if(!Ba._cad_global.config || n <= Ba._cad_global.config.sAc){d=d.qxa();c=Ba.console;1 >= n?c.error(d):2 >= n?c.warn(d):c.log(d);}});},73100:function(t,b,a){Object.defineProperty(b,"__esModule",{value:!0});a(29204);a(33096);t=a(31276);a(36410);a(34126);a(36129);a(45842);a(5021);a=a(11479);t.Xa.get(a.ek);!1;},8825:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.eF=void 0;b.Y1c=function(n,c,f,g,e){return (n - c) * (e - g) / (f - c) + g;};b.hk=function(n){if((0,d.pc)(n))return (n / 1E3).toFixed(3);};d=a(32687);b.eF=b.eF || (function(n,c,f){return n >= c?n <= f?n:f:c;});},87051:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.M3c=function(c,f,g){for(g=(g - c.length) / f.length;0 < g--;)c+=f;return c;};b.K3c=function(c,f,g){g=(0,d.Fi)(g)?g:"...";return c.length <= f?c:c.substr(0,c.length - (c.length + g.length - f)) + g;};b.L3c=function(c,f){var e;for(var g=1;g < arguments.length;++g);e=n.slice.call(arguments,1);return c.replace(/{(\d+)}/g,function(h,k){return "undefined" != typeof e[k]?e[k]:h;});};b.N3c=function(c){for(var f=c.length,g=new Uint16Array(f),e=0;e < f;e++)g[e]=c.charCodeAt(e);return g.buffer;};b.xed=function(c){var f;f=new Uint8Array(c.length);Array.prototype.forEach.call(c,function(g,e){f[e]=g.charCodeAt(0);});return f;};d=a(32687);n=a(22365);},52569:function(t,b,a){var h,k,l,m,p,r;function d(){var q,u;if(q=b.upa.okb)return q;q=m.eia.search.substr(1);u=q.indexOf("#");0 <= u && (q=q.substr(0,u));q=n(q);return b.upa.okb=q;}function n(q){for(var u=/[+]/g,v=(q || "").split("&"),w={},x,y=0;y < v.length;y++)(q=(0,l.trim)(v[y]),x=q.indexOf("="),0 <= x?w[decodeURIComponent(q.substr(0,x).replace(u,"%20")).toLowerCase()]=decodeURIComponent(q.substr(x + 1).replace(u,"%20")):w[q.toLowerCase()]=null);return w;}function c(q){return (q=(/function (.{1,})\(/).exec(q.toString())) && 1 < q.length?q[1]:"";}function f(q){return c(q.constructor);}function g(q){return m.sort.call(q,function(u,v){return u - v;});}function e(q){for(var u=0,v=q.length;v--;)u+=q[v];return u;}Object.defineProperty(b,"__esModule",{value:!0});b.woa=b.createElement=b.x8=b.upa=b.l8=void 0;b.jcc=function(q,u){if(q === u)return !0;if(!q || !u)return !1;for(var v in q)if(q.hasOwnProperty(v) && (!u.hasOwnProperty(v) || q[v] !== u[v]))return !1;return !0;};b.ccd=function(q){var u;if(q){u=q.length;if(u)return (u=(0,l.KKc)(0,u - 1),q[u]);}};b.Lcc=function(q,u){if(q.length != u.length)return !1;q.sort();u.sort();for(var v=q.length;v--;)if(q[v] !== u[v])return !1;return !0;};b.g6b=function(q,u,v){function w(){q.removeEventListener(u,w);v.apply(this,arguments);}q.addEventListener(u,w);};b.OKc=function(){var q,u,v,w,x,y;q=m.Ni.cookie.split("; ");u=q.length;x={};for(v=0;v < u;v++)if(w=(0,l.trim)(q[v])){y=w.indexOf("=");0 < y && (x[w.substr(0,y)]=w.substr(y + 1));}return x;};b.T8c=d;b.Zta=n;b.getFunctionName=c;b.awb=f;b.UFb=function(q){var u;u="";(0,p.isArray)(q) || (0,p.Saa)(q)?u=m.reduce.call(q,function(v,w){return v + (32 <= w && 128 > w?(0,m.Zgb)(w):".");},""):(0,p.Fi)(q)?u=q:(0,l.Di)(q,function(v,w){u+=(u?", ":"") + "{" + v + ": " + ((0,p.Yx)(w)?c(w) || "function":w) + "}";});return "[" + f(q) + " " + u + "]";};b.Rbd=function(q,u){q.firstChild?q.insertBefore(u,q.firstChild):q.appendChild(u);};b.H9c=function(q,u){var v;v=q[0];if(u <= v[0])return v.slice(1);for(var w=1,x;x=q[w++];){if(u <= x[0]){q=(u - v[0]) / (x[0] - v[0]);u=[];for(w=1;w < v.length;w++)u.push((v[w] || 0) + q * ((x[w] || 0) - (v[w] || 0)));return u;}v=x;}return v.slice(1);};b.TYc=function(q,u){var x;for(var v={},w=0;w < u.length;w++){x=u[w];if("string" != typeof x && "number" != typeof x)return !1;v[u[w]]=1;}for(w=0;w < q.length;w++)if((x=q[w],!v[x]))return !1;return !0;};b.Uya=g;b.VYc=e;b.wga=function(q,u){var v,w,x,y;v=-1;w=q.length;if(1 === arguments.length){for(;++v < w && !(null != (x=q[v]) && x <= x);)x=void 0;for(;++v < w;)null != (y=q[v]) && y > x && (x=y);}else {for(;++v < w && !(null != (x=u.call(q,q[v],v)) && x <= x);)x=void 0;for(;++v < w;)null != (y=u.call(q,q[v],v)) && y > x && (x=y);}return x;};b.UYc=function(q,u){var v,w,x,y;v=-1;w=q.length;if(1 === arguments.length){for(;++v < w && !(null != (x=q[v]) && x <= x);)x=void 0;for(;++v < w;)null != (y=q[v]) && x > y && (x=y);}else {for(;++v < w && !(null != (x=u.call(q,q[v],v)) && x <= x);)x=void 0;for(;++v < w;)null != (y=u.call(q,q[v],v)) && x > y && (x=y);}return x;};b.A0=function(q){return (0,p.Yx)(q.then)?q:new Promise(function(u,v){q.oncomplete=function(){u(q.result);};q.onerror=function(){v(q.error);};});};b.P7c=function(q,u){var w,x,y,A,z,B;function v(C){0 > w.indexOf(C) && (0,p.pc)(C) && w.push(C);}q=q.slice();g(q);w=[];if(!u || !u.length)return q;if(!q.length)return [];x=u.length;try{for(;x--;){A="" + u[x];z=(0,l.am)(A);switch(A[A.length - 1]){case "-":for(y=q.length;y--;){B=q[y];if(B < z){v(B);break;}}break;case "+":for(y=0;y < q.length;y++)if((B=q[y],B > z)){v(B);break;}break;default:0 <= q.indexOf(z) && v(z);}}}catch(C){}w.length || w.push(q[0]);g(w);return w;};b.e6c=function(q,u,v){for(var w=[],x=0;x < u;x++)w.push((0,m.zbb)(q[x] - v,2));return (0,m.Abb)(e(w) / w.length);};b.X7=function(q,u){var v;v=q.length;u=(v - 1) * u + 1;if(1 === u)return q[0];if(u == v)return q[v - 1];v=(0,m.KV)(u);return q[v - 1] + (u - v) * (q[v] - q[v - 1]);};b.Y7c=function(q,u){if(!(0,p.isArray)(q))throw Error("boxes is not an array");if(0 >= q.length)throw Error("There are no boxes in boxes");u=(0,p.isArray)(u)?u:[u];for(var v=q.length,w=0;w < v;w++)for(var x=0;x < u.length;x++)if(q[w].type == u[x])return q[w];throw Error("Box not found " + u);};b.yZc=function(q){return q.npc("trak/mdia/minf/stbl/stsd/" + h.b6a + "|" + h.c6a).children.filter(function(u){return "sinf" == u.type && u.U7c.schm.Bcd == r.NE;})[0].npc("schi/tenc").NA;};b.xZc=function(q){var v;function u(w,x){var y;y=v[w];v[w]=v[x];v[x]=y;}v=new Uint8Array(q);u(0,3);u(1,2);u(4,5);u(6,7);return v;};b.Ibd=function(q){return function(u){return u && u[q];};};b.UAb=function(q){return q && 0 == q.toLowerCase().indexOf("https");};b.Fpc=function(){var q,u;q=new ArrayBuffer(4);u=new Uint8Array(q);q=new Uint32Array(q);u[0]=161;u[1]=178;u[2]=195;u[3]=212;return 3569595041 == q[0]?"LE":2712847316 == q[0]?"BE":"undefined";};b.HZ=function(){var q,u,v;try{q=/playercore.*js/;u=m.eC.getEntries("resource").filter(function(w){return null !== q.exec(w.name);});if(u && 0 < u.length){v=(0,m.ut)(u[0].duration);return JSON.stringify(v);}}catch(w){}};b.Lbd=function(q,u,v){if(q && q.length){if(v && v.lbc)try{q.forEach(function(w,x){var y;y=(x=v.lbc[x]) && x.media;y && (0,p.Fi)(y)?(!1,y=(0,k.XF)(y).buffer,w.media={arrayBuffer:y,length:y.byteLength,stream:u,Tc:x.cdn}):k.log.warn("chunk not in cache",w.Ki);});}catch(w){k.log.error("error reading cached chunks",w);}else k.log.warn("chunks not available in cached stream",v.type);}else k.log.warn("chunks not available in mediabuffer",v.type);};h=a(33096);k=a(31276);l=a(3887);m=a(22365);p=a(32687);r=a(82100);b.l8=b.l8 || (function(q,u){if(q.length == u.length){for(var v=q.length;v--;)if(q[v] != u[v])return !1;return !0;}return !1;});b.upa=Object.assign(d,{okb:void 0});b.x8=b.x8 || (function(q){var u;u="";(0,l.Di)(q,function(v,w){u+=(u?";":"") + v + ":" + w;});return u;});b.createElement=b.createElement || (function(q,u,v,w){var x;x=m.Ni.createElement(q);u && (x.style.cssText=u);v && (x.innerHTML=v);w && (0,l.Di)(w,function(y,A){x.setAttribute(y,A);});return x;});b.woa=b.woa || (function(q,u,v){var w;if(q / u > v){w=(0,m.ut)(u * v);q=u;}else (w=q,q=(0,m.ut)(q / v));return {width:w,height:q};});(0,p.Yx)(ArrayBuffer.prototype.slice) || (ArrayBuffer.prototype.slice=function(q,u){var v,w;void 0 === q && (q=0);void 0 === u && (u=this.byteLength);q=Math.floor(q);u=Math.floor(u);0 > q && (q+=this.byteLength);0 > u && (u+=this.byteLength);q=Math.min(Math.max(0,q),this.byteLength);u=Math.min(Math.max(0,u),this.byteLength);if(0 >= u - q)return new ArrayBuffer(0);v=new ArrayBuffer(u - q);w=new Uint8Array(v);q=new Uint8Array(this,q,u - q);w.set(q);return v;});},3887:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.jj=b.trim=b.bTa=b.am=b.Gf=b.Di=void 0;b.Y$b=function(f,g,e,h){var k;if(f){k=f[g];(0,c.Yx)(k) && (e=k.apply(f,n.slice.call(arguments,3)));}return e;};b.y7b=function(f){for(var g={},e=f.length;e--;)g[f[e]]=!0;return g;};b.ybd=function(f){return (/^true$/i).test(f);};b.KKc=function(f,g){return (0,n.ut)(f + (0,n.Xha)() * (g - f));};b.TSc=function(f){return JSON.stringify(f,null," ");};b.JL=function(f){return Array.isArray(f)?f:[f];};b.$5c=function(f){var h;for(var g=0;g < arguments.length;++g);g=0;for(var e=arguments.length;g < e;){h=arguments[g++];if((0,c.$c)(h))return h;}};b.Zh=function(f){return (0,c.pc)(f)?f.toFixed(0):void 0;};b.hs=function(f){return (0,c.pc)(f)?(f / 1E3).toFixed(0):void 0;};b.m6c=function(f){for(var g=[],e=0;e < f.length;e++)g[e]=f[e];return g;};d=a(45146);n=a(22365);c=a(32687);b.Di=function(f,g){for(var e in f)f.hasOwnProperty(e) && g(e,f[e]);};b.Gf=b.Gf || (function(f,g,e){var h,k,l;if(g)if(e){h=e.wba;k=e.prefix;l=e.Ita;(0,b.Di)(g,function(m,p){if(!l || (0,c.$c)(p))f[(k || "") + (h?m.toLowerCase():m)]=p;});}else (0,b.Di)(g,function(m,p){f[m]=p;});return f;});b.am=b.am || (function(f){return parseInt(f,10);});b.bTa=(function(){var g,e;function f(h){(0,d.va)(void 0 !== g[h]);return g[h];}g={"&":"&","'":"'",'"':""","<":"<",">":">"};e=/[&'"<>]/g;return function(h){return h.replace(e,f);};})();b.trim=(function(){var f;f=/^\s+|\s+$/gm;return function(g){return g.replace(f,"");};})();b.jj=b.jj || (function(f){var g,e,h;if(f){g=f.stack;e=f.number;h=f.message;h || (h="" + f);g?(f="" + g,0 != f.indexOf(h) && (f=h + "\n" + f)):f=h;e && (f+="\nnumber:" + e);return f;}});},29204:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C;function d(D){return (D=b.config.gVc[n(D)])?D:{};}function n(D){if(D)return 0 <= D.indexOf("billboard")?"billboard":0 <= D.toLowerCase().indexOf("preplay")?"preplay":0 <= D.indexOf("embedded")?"embedded":0 <= D.indexOf("content-sampling")?"content-sampling":0 <= D.indexOf("video-merch-bob-horizontal")?"video-merch-bob-horizontal":0 <= D.indexOf("mini-modal-horizontal")?"mini-modal-horizontal":0 <= D.indexOf("standard")?"standard":0 <= D.indexOf("branching")?"branching":0 <= D.indexOf("live")?"live":D;}Object.defineProperty(b,"__esModule",{value:!0});b.RMa=b.config=void 0;b.ycc=function(D,F){var aa,ca,da,ha,S,N,V,ba,fa;function H(ia,ka){(0,m.Di)(ia,function(pa,oa){(0,r.Yx)(oa)?ka[pa]=oa.call(void 0,ka[pa]):(0,r.IA)(oa) && (ka[pa]=ka[pa] || ({}),H(oa,ka[pa]));});}function E(ia,ka,pa,oa){for(var la=[],R=3;R < arguments.length;++R)la[R - 3]=arguments[R];return function(ea){(0,r.$c)(ea) && (pa=ea);(0,h.va)((0,r.Yx)(ia));return ia.apply(void 0,[ka,pa].concat(za(la)));};}function G(ia){ia=ia.toLowerCase();ha.hasOwnProperty(ia) && (da[ia]=ha[ia],S[ia]=ha[ia]);return ia;}function J(ia,ka,pa){var oa;ia=ia.toLowerCase();if(da.hasOwnProperty(ia)){oa=da[ia];try{oa=pa?pa(oa):oa;}catch(la){oa=void 0;}if(void 0 !== oa)return oa;(0,h.va)(!1);g.log.error("Invalid configuration value. Name: " + ia);}return ka;}function L(ia,ka,pa,oa){return J(ia,ka,function(la){(0,r.Fi)(la) && (la=(0,m.am)(la));if((0,r.zAb)(la,pa,oa))return la;});}function K(ia,ka,pa,oa){return J(ia,ka,function(la){(0,r.Fi)(la) && (la=(0,m.am)(la));if((0,r.sL)(la,pa,oa))return la;});}function M(ia,ka,pa,oa){return J(ia,ka,function(la){(0,r.Fi)(la) && (la=parseFloat(la));if((0,r.pc)(la,pa,oa))return la;});}function P(ia,ka,pa){return J(ia,ka,function(oa){if(pa?pa.test(oa):(0,r.Fi)(oa))return oa;});}function I(ia,ka){return J(ia,ka,function(pa){if("true" == pa || !0 === pa)return !0;if("false" == pa || !1 === pa)return !1;});}function O(ia,ka){return J(ia,ka,function(pa){if((0,r.Fi)(pa))return JSON.parse((0,p.fia)(pa));if((0,r.IA)(pa))return pa;});}function Q(ia,ka,pa,oa,la,R){var ea;ia=ia.toLowerCase();da.hasOwnProperty(ia) && (ea=da[ia]);if(!(0,r.$c)(ea))return ka;if((0,r.Fi)(ea))if(ea[0] !== pa)ea=oa(ea);else try{ea=JSON.parse((0,p.fia)(ea));}catch(ja){ea=void 0;}if(void 0 === ea)return ka;for(ia=0;ia < la.length;ia++)if(!la[ia](ea))return ka;return R?R(ea):ea;}function T(ia,ka,pa,oa,la){return Q(ia,ka,"[",function(R){R=R.split("|");for(var ea=R.length;ea--;)R[ea]=(0,m.am)(R[ea]);return R;},[function(R){return (0,r.isArray)(R) && 0 < R.length;},function(R){for(var ea=R.length;ea--;)if(!(0,r.sL)(R[ea],pa,oa))return !1;return !0;},function(R){return void 0 === la || R.length >= la;}]);}function U(ia,ka){return Q(ia,ka,"[",function(pa){pa=(0,r.isArray)(pa)?pa:pa.split("|");for(var oa=pa.length;oa--;)try{pa[oa]=JSON.parse((0,p.fia)(pa[oa]));}catch(la){pa=void 0;break;}return pa;},[function(pa){return (0,r.isArray)(pa) && 0 < pa.length;},function(pa){for(var oa=pa.length;oa--;)if(!(0,r.$c)(pa[oa]) || !(0,r.IA)(pa[oa]))return !1;return !0;}]);}function X(ia,ka){var pa;pa=Y(ia,[]);return pa && 0 < pa.length?(0,C.Lf)(pa):U(ia,ka);}function Y(ia,ka,pa,oa){return Q(ia,ka,"[",function(la){return (0,r.isArray)(la)?la:la.split("|");},[function(la){return (0,r.isArray)(la) && 0 < la.length;},function(la){for(var R=la.length;R--;)if(pa?!pa.test(la[R]):!(0,r.n_)(la[R]))return !1;return !0;},function(la){return void 0 === oa || la.length >= oa;}]);}function W(ia,ka,pa){return Q(ia,ka,"{",function(oa){var la,ea,ja;la={};oa=oa.split(";");for(var R=oa.length;R--;){ea=oa[R];ja=ea.indexOf(":");if(0 >= ja)return;la[ea.substring(0,ja)]=ea.substring(ja + 1);}return la;},[function(oa){return (0,r.IA)(oa) && 0 < Object.keys(oa).length;},function(oa){if(pa)for(var la in oa)if(!pa.test(oa[la]))return !1;return !0;}],function(oa){var la;la={};(0,m.Gf)(la,ka);(0,m.Gf)(la,oa);return la;});}function Z(ia){var ka;ka=[];(0,m.Di)(ia,function(pa,oa){var la;try{la="videoapp" === pa.toLowerCase()?"[object object]":JSON.stringify(oa);}catch(R){la="cantparse";}ka.push(pa + "=" + la);});return ka.join("\n");}aa=/^[0-9]+[%]?$/;ca=/^[0-9]*$/;S={};N=g.Xa.get(e.st);V=g.Xa.get(w.XV);(function(ia){function ka(pa){pa.split(",").forEach(function(oa){var la;la=oa.indexOf("=");0 < la && (da[oa.substring(0,la).toLowerCase()]=oa.substring(la + 1));});}da={};(0,m.Gf)(da,ia);D && D.length && p.forEach.call(D,function(pa){(0,r.Fi)(pa)?ka(pa):(0,r.IA)(pa) && (0,m.Gf)(da,pa,{wba:!0});});ha=(0,m.Gf)({},(0,f.upa)(),{wba:!0});if(ia=(0,f.OKc)().cadmiumconfig)(g.log.info("Config cookie loaded",ia),ka(ia));if(g.Xa.get(z.xt).JKa || da.istestaccount)((0,m.Gf)(da,ha),S=ha);})(F);b.config={};ba={Ikc:E(I,G("enableXHEAAC"),!1),l9:E(I,G("enableDDPlus51"),!1),Mna:E(I,G("enableDDPlusAtmos"),!1),jkc:E(I,G("enableLSSDH"),!0),dkc:E(I,G("enableHEVC"),!1),VGb:E(I,G("overrideEnableHEVC"),!1),VOa:E(I,G("enableHDR"),!1),UGb:E(I,G("overrideEnableHDR"),!1),xGc:E(I,G("overrideEnableHdrDisplay"),!1),TGb:E(I,G("overrideEnableDV"),!1),Ljc:E(I,G("enableAV1"),!1),RGb:E(I,G("overrideEnableAV1"),!1),Mjc:E(I,G("enableAV1HDR10P"),!1),SGb:E(I,G("overrideEnableAV1HDR10P"),!1),yGc:E(I,G("overrideEnableXHEAAC"),!1),vGc:E(I,"overrideEnableAllAudioProfiles",!1),wGc:E(I,"overrideEnableAllVideoProfiles",!1),ukc:E(I,G("enablePRK"),!1),Yjc:E(I,G("enableDV"),!1),ekc:E(I,G("enableHWDRM"),!1),hkc:E(I,G("enableHwdrmOnArm"),!1),V6c:E(I,G("disablePlayReady"),!1),ikc:E(I,G("enableImageSubs"),!0),ZJ:E(X,G("audioProfiles"),V.ZJ),ckc:E(I,G("enableFullHdForSWDRM"),!1),bkc:E(I,G("enableFullHdForHWDRM"),!1),Ekc:E(I,G("enableUHD"),!0),Sxa:E(K,"videoCapabilityDetectorType",k.Fr.PE),fLa:E(K,"audioCapabilityDetectorType",k.LE.PE),ki:E(X,G("videoProfiles"),V.ki),Rj:E(X,G("liveVideoProfiles"),V.Rj),Ylb:E(X,G("additionalVideoProfiles"),[]),E4b:E(Y,G("timedTextProfiles"),V.NB),NB:function(){return ba.E4b().filter(function(ia){return ia === l.Cr.Yza?ba.jkc():ia === l.Cr.NV?ba.ikc():!0;});},endpoint:E(I,G("endpoint"),!1),version:E(P,"version","unknown"),fkc:E(I,G("enableHdcp"),!1),Ay:E(I,G("prepareCadmium"),!1),e5b:E(I,G("acceptManifestOnPrepareItemParams"),!0),EIc:E(O,"ppmconfig",{maxNumberTitlesScheduled:1}),Nna:E(I,G("enableLdlPrefetch"),!1),Pna:E(I,G("enableMediaPrefetch"),x.Wa.Pna),pkc:E(I,G("enableManifestCache"),!0),Hhc:E(I,G("deleteCachedManifestOnPlayback"),!1),Ghc:E(I,G("deleteCachedManifestOnCreate"),!1),Jhc:E(I,G("deleteOtherManifestCacheOnCreate"),!1),Ihc:E(I,G("deleteOtherLdlCacheOnCreate"),!1),Ebd:E(K,G("periodicPrepareLogsIntervalMilliseconds"),36E5),bJc:E(K,G("prepareManifestCacheMaxCount"),50),$Ic:E(K,G("prepareLdlCacheMaxCount"),30),GIb:E(K,G("prepareManifestExpiryMilliseconds"),12E5),aJc:E(K,G("prepareLdlExpiryMilliseconds"),78E4),UIc:E(K,G("prefetcherMaxWishlistSize"),10),TIc:E(K,G("prefetcherBudgetInBytes"),Infinity),VIc:E(I,G("prefetcherOverrideItemPriority"),!0),ZIc:E(P,G("prepareInsertStrategyPersistentTasks"),"append",/^(prepend|append|ignore)$/),Ced:E(O,"videoApp"),bN:E(O,"storageRules"),Mnc:E(I,"ftlEnabled",!0),mTa:E(K,G("imageSubsResolution"),0),jvc:E(K,G("imageSubsMaxBuffer"),V.oBc.na(y.hz),0),c8:E(I,G("captureBatteryStatus"),!1),Foc:E(K,G("getBatteryApiTimeoutMilliseconds"),5E3),fy:E(P,G("keySystemId"),V.fy),QUa:E(Y,G("keySystemList"),void 0,void 0),L3a:E(I,G("validateKeySystemAccess"),!1),hCc:E(K,G("hdcpGlobalTimeout1"),1E4),iCc:E(K,G("hdcpGlobalTimeout2"),1E4),Bad:E(K,G("hdcpQueryTimeout1"),1E3),Cad:E(K,G("hdcpQueryTimeout2"),1E3),gEb:E(K,G("hdcpQueryTimeout2"),100),hEb:E(I,G("microsoftHwdrmRequiresHevc"),!1),iEb:E(I,G("microsoftHwdrmRequiresQHD"),!1),ECc:E(K,G("minimumMajorOsVersionForHwdrm"),15),gCc:E(I,G("microsoftClearLeadRequiresSwdrm"),!1),Qjc:E(I,G("enableAvcHighHwdrm"),!1),gkc:E(I,G("enableHevcPrkHwdrm"),!1),qkc:E(I,G("enableMediaCapabilities"),!1),DIc:E(I,G("powerEfficientForVideo"),!1),rkc:E(I,G("enableMediaCapabilitiesSourceBufferCheck"),!1),E$c:E(I,"logMediaPipelineStatus",!1),yda:E(I,G("renderDomDiagnostics"),!0),SCb:function(){return -1;},A_:E(L,G("logDisplayMaxEntryCount"),V.A_,-1),sAc:E(L,G("logToConsoleLevel"),-1),v5c:E(L,G("bladerunnerCmdHistorySize"),10),zG:function(){return N.zG;},BVa:E(I,"logErrorIfEsnNotProvided",!0),hPa:E(I,"enforceSinglePlayback",V.hPa),Xna:E(I,"enforceSingleSession",V.Xna),FMa:E(I,"closeOtherPlaybacks",!0),d8b:E(K,"asyncLoadTimeout",15E3,1),AAc:E(K,"mainThreadMonitorPollRate",0),groupName:function(){return N.groupName;},IX:function(){return N.IX;},Ffa:function(){return N.Ffa;},MRb:E(K,G("verbosePlaybackInfoDenominator"),0),ova:E(I,"renderTimedText",!0),FIc:E(I,"preBufferTimedText",!0),$lc:E(I,"fatalOnTimedTextLoadError",!0),jUc:E(W,"timedTextStyleDefaults",{characterSize:"MEDIUM"}),kUc:E(W,"timedTextStyleOverrides",{}),oxa:E(W,"timedTextFontFamilyMapping",V.oxa || ({"default":"font-family:Arial,Helvetica;font-weight:bolder"})),u2:E(K,"timedTextSimpleFallbackThreshold",V.u2.na(y.hz)),mqa:E(Y,G("increasedMediumScaleLanguageList"),V.mqa),nqa:E(Y,G("increasedSmallScaleLanguageList"),V.nqa),ura:E(Y,G("lessBoldLanguageList"),V.ura),NNa:E(P,G("customDfxpUrl")),Ckc:E(I,G("enableSubtitleTrackerLogging"),!1),XOc:E(I,G("sendSubtitleQoeLogblobOnMidplay"),!1),cMa:E(T,"cdnIdWhiteList",[]),bMa:E(T,"cdnIdBlackList",[]),bQa:E(P,G("forceAudioTrack")),eQa:E(P,G("forceTimedTextTrack")),xBc:E(K,G("maxRetriesTimedTextDownload"),0),iUc:E(K,G("timedTextRetryInterval"),8E3),ySc:E(P,"storageType","idb",/^(none|fs|idb|ls)$/),OCb:E(K,"lockExpiration",1E4),kAc:E(K,"lockRefresh",3E3),nac:E(I,"captureUnhandledExceptions",!0),ivc:E(I,"ignoreUnhandledExceptionDuringPlayback",!0),mVc:E(I,"unhandledExceptionsArePlaybackErrors",!1),wQb:E(P,"unhandledExceptionSource",""),sJc:E(I,"preserveLastFrame",!1),uCc:E(K,"minBufferingTimeInMilliseconds",4E3),hKc:E(K,"progressBackwardsGraceTimeMilliseconds",4E3),iKc:E(K,"progressBackwardsMinPercent",10),n9b:E(P,G("bookmarkIgnoreBeginning"),"0",aa),o9b:E(P,G("bookmarkIgnoreEnd"),"5%",aa),p9b:E(P,G("bookmarkIgnoreEndForBranching"),"60000",aa),dsa:E(K,"maxParallelConnections",3),p_a:E(I,"reportThroughputInLogblobs",!0),ZA:E(K,"minAudioMediaRequestDuration",4E3),oEb:E(K,"minAudioMediaRequestDurationBranching",0),CD:E(K,"minVideoMediaRequestDuration",4E3),AEb:E(K,"minVideoMediaRequestDurationVariableGOP",0),zEb:E(K,"minVideoMediaRequestDurationBranching",0),qsa:E(K,"minAudioMediaRequestSizeBytes",0),usa:E(K,"minVideoMediaRequestSizeBytes",0),Tic:E(I,"droppedFrameRateFilterEnabled",!1),Uic:E(K,"droppedFrameRateFilterMaxObservation",60,10,1E3),Wic:E(function(ia,ka,pa,oa,la,R){return Q(ia,ka,"[",function(ea){ea=ea.split(";");for(var ja=ea.length;ja--;){ea[ja]=ea[ja].split("|");for(var sa=ea[ja].length;sa--;)ea[ja][sa]=(0,m.am)(ea[ja][sa]);}return ea;},[function(ea){return (0,r.isArray)(ea) && 0 < ea.length;},function(ea){for(var ja=ea.length;ja-- && void 0 !== ea;){if(!(0,r.isArray)(ea[ja]))return !1;for(var sa=ea[ja].length;sa--;)if(!(0,r.sL)(ea[ja][sa],pa,oa))return !1;}return !0;},function(ea){if(void 0 !== la)for(var ja=ea.length;ja--;)if(la !== ea[ja].length)return !1;return !0;},function(ea){return void 0 === R || ea.length >= R;}]);},"droppedFrameRateFilterPolicy",[[4,15],[8,9],[12,2],[20,1]],void 0,void 0,2,0),Vic:E(K,"droppedFrameRateFilterMinHeight",384),Xic:E(T,"droppedFramesPercentilesList",[]),jCc:E(I,"microsoftScreenSizeFilterEnabled",!1),hyc:E(I,"keyStatusFilterEnabled",!0),fVc:E(I,"uiLabelFilterEnabled",!0),eVc:E(O,"uiLabelFilter",{}),shc:E(K,G("defaultVolume"),100,0,100),gWa:E(K,G("maxPlaybackRate"),2,0,16),fub:E(I,"fastForwardAds",!1),nic:E(I,"disableVideoRightClickMenu",!1),ssa:E(K,"minDecoderBufferMilliseconds",1E3,0,c.ZE),dM:E(K,"optimalDecoderBufferMilliseconds",5E3,0,c.ZE),TXa:E(K,"optimalDecoderBufferMillisecondsBranching",3E3,0,c.ZE),dca:E(K,"minimumTimeBeforeBranchDecision",3E3,0,c.ZE),EEb:E(K,"minimumTimeBeforeDelayedSeekToQueuedSegment",500,0,c.ZE),vH:E(K,"maxDecoderBufferMilliseconds",V.vH.na(A.ya),0,c.ZE),Erb:E(K,"decoderTimeoutMilliseconds",1E4,1),qFb:E(K,"noRenderTimeoutMilliseconds",0),yvb:E(K,"gapsTimeoutMilliseconds",500),MCc:E(I,"monitorAudioGaps",!0),vHc:E(K,"pauseTimeoutLimitMilliseconds",18E5),uTa:E(K,"inactivityMonitorInterval",3E4,0),d5b:E(T,"abrdelLogPointsSeconds",[15,30,60,120],0,void 0,4),RY:E(I,"enableTrickPlay",!1),t6b:E(T,"additionalDownloadSimulationParams",[2E3,2E3,100],0,void 0,3),OUc:E(K,"trickPlayHighResolutionBitrateThreshold",1E3),PUc:E(K,"trickPlayHighResolutionThresholdMilliseconds",1E4),SUc:E(M,"trickplayBufferFactor",.5),NUc:E(K,"trickPlayDownloadRetryCount",1),Vra:E(P,"marginPredictor","simple",/^(simple|scale|iqr|percentile|ci)$/),Ntb:E(Y,"experimentalFilter",["throughput-wssl"]),sma:E(P,"ciPredictorSource","throughput-ci"),Awa:E(P,"simulationDurationStrategy","default"),Nsa:E(P,"networkMeasurementGranularity","video_location",/^(location|video_location)$/),eWa:E(L,"maxIQRSamples",Infinity),wWa:E(L,"minIQRSamples",5),yRb:E(I,"useResourceTimingAPI",!1),gvc:E(I,"ignoreFirstByte",!0),Tlc:E(T,"failedDownloadRetryWaitsASE",[200,500,1E3,2E3,4E3]),Gma:E(K,"connectTimeoutMilliseconds",8E3,500),RWa:E(K,"noProgressTimeoutMilliseconds",8E3,500),uPb:E(K,"timedTextDownloadRetryCountBeforeCdnSwitch",3),Xad:E(K,"netflixRequestExpiryTimeout",0),HXc:E(I,"webkitDecodedFrameCountIncorrectlyReported",!1),cxa:E(Y,G("supportedAudioTrackTypes"),[],void 0,1),rqa:E(K,"initialLogFlushTimeout",5E3),gIb:E(P,"playdataPersistKey",N.zG?"unsentplaydatatest":"unsentplaydata"),Pcd:E(I,"sendPersistedPlaydata",!0),cIc:E(K,"playdataPersistIntervalMilliseconds",4E3),Gbd:E(K,"playdataSendDelayMilliseconds",1E4),Qcd:E(I,"sendPlaydataBackupOnInit",!0),qAc:E(Y,"logPerformanceTiming",("navigationStart redirectStart fetchStart secureConnectionStart requestStart domLoading").split(" ")),jEb:E(I,"midplayEnabled",!0),psa:E(K,"midplayIntervalMilliseconds",3E5),kEb:E(T,"midplayKeyPoints",[15E3,3E4,6E4,12E4]),Esb:E(K,"downloadReportDenominator",0),Hic:E(K,"downloadReportInterval",3E5),RCb:E(K,"logConfigApplyDenominator",0),Fnb:E(W,G("bookmarkByMovieId"),{}),cQa:E(I,G("forceLimitedDurationLicense"),!1),v_:E(K,G("licenseRenewalRequestDelay"),0),LHb:E(K,G("persistedReleaseDelay"),1E4),z$c:E(I,G("limitedDurationFlagOverride"),void 0),sLb:E(K,"safariPlayPauseWorkaroundDelay",100),VXc:E(K,"workaroundValueForSeekIssue",1200),VLa:E(I,G("callEndOfStream"),V.VLa),JHb:E(I,"performRewindCheck",!1),GVa:E(K,"logUnexpectedRewindDelay",1E3),bmc:E(I,"fatalOnUnexpectedSeeking",!0),amc:E(I,"fatalOnUnexpectedSeeked",!0),Zlc:E(I,"fatalOnManifestMistmatch",!0),Srb:E(K,G("delayPlayPause"),0),A3a:E(I,G("useEncryptedEvent"),!0),COa:E(P,G("drmPersistKey"),"unsentDrmData"),fEc:E(I,G("nudgeSourceBuffer"),!1),MLb:E(L,G("seekDelta"),1),SD:E(I,G("preciseSeeking"),!1),HIc:E(I,G("preciseSeekingOnTwoCoreDevice"),!1),Rrb:E(W,G("delayErrorHandling")),ij:E(P,"esn",""),jub:E(P,"fesn",""),ykc:E(I,G("enablePerformanceLogging"),!1),r7c:E(I,G("enableEmeVerboseLogging"),!1),appId:E(P,"appId","",ca),sessionId:E(P,"sessionId","",ca),pob:E(P,"cdnProxyUrl"),kvb:E(K,"forceXhrErrorResponseCode",void 0),Jv:{Tad:E(P,"mslApiPath","/msl/"),Ybd:E(P,"proxyPath",""),uiVersion:E(P,"uiVersion"),uiPlatform:E(P,"uiPlatform"),O5c:function(){return "0";},dZa:E(Y,"preferredLanguages",c.n7a,/^[a-zA-Z-]{2,5}$/,1),jnc:E(P,G("forceDebugLogLevel"),void 0,/^(ERROR|WARN|INFO|TRACE)$/),lTc:E(I,"supportPreviewContentPin",!0),mTc:E(I,"supportWatermarking",!0),cRc:E(I,"showAllSubDubTracks",!1),N7c:E(I,G("failOnGuidMismatch"),!1)},ava:{enabled:E(I,"qcEnabled",!1),Gs:E(P,"qcPackageId","")},Yy:E(I,"useRangeHeader",!1),o9:E(I,"enableMilestoneEventList",!0),H8b:E(W,"authenticationKeyNames",(0,m.Gf)({e:"DKE",h:"DKH",w:"DKW",s:"DKS"})),DTc:E(P,"systemKeyWrapFormat"),VQc:E(I,"shouldSendUserAuthData",!0),s0a:E(I,"sendUserAuthIfRequired",V.s0a),MQc:E(I,"shouldClearUserData",!1),L2:E(I,"usesMsl",!0),YCc:E(I,"mslDeleteStore",!1),$Cc:E(I,"mslPersistStore",!0),adc:E(I,"correctNetworkForShortTitles",!0),uTc:E(I,"supportsUnequalizedDownloadables",!0),Brb:E(K,G("debugAseDenominator"),100),vla:E(K,"aseAudioBufferSizeBytes",V.vla.na(y.hz)),xla:E(K,"aseVideoBufferSizeBytes",V.xla.na(y.hz)),wla:E(K,"aseTextBufferSizeBytes",V.wla.na(y.hz)),ny:E(K,"minInitVideoBitrate",x.Wa.ny),WA:E(K,"maxInitVideoBitrate",x.Wa.WA),my:E(K,"minInitAudioBitrate",x.Wa.my),tu:E(K,"maxInitAudioBitrate",x.Wa.tu),mS:E(K,"minAllowedVideoBitrate",x.Wa.mS),Dba:E(K,"maxAllowedVideoBitrate",x.Wa.Dba),Mp:E(Y,"switchableAudioProfiles",x.Wa.Mp),rI:E(U,"switchableAudioProfilesOverride",x.Wa.rI),lS:E(K,"minAcceptableVideoBitrate",x.Wa.lS),oy:E(K,"minRequiredBuffer",x.Wa.oy),zp:E(K,"minPrebufSize",x.Wa.zp),Xba:E(K,"minCheckBufferingCompleteInterval",x.Wa.Xba),oda:E(M,"rebufferingFactor",x.Wa.oda),As:E(K,"maxBufferingTime",x.Wa.As),Qfa:E(I,"useMaxPrebufSize",x.Wa.Qfa),AD:E(K,"maxPrebufSize",x.Wa.AD),Jba:E(K,"maxRebufSize",x.Wa.Jba),fL:E(U,"initialBitrateSelectionCurve",x.Wa.fL),nU:E(K,"throughputPercentForAudio",x.Wa.nU),J7:E(K,"bandwidthMargin",x.Wa.J7),K7:E(I,"bandwidthMarginContinuous",x.Wa.K7),L7:E(U,"bandwidthMarginCurve",x.Wa.L7),o8:E(K,"conservBandwidthMargin",x.Wa.o8),bfa:E(I,"switchConfigBasedOnInSessionTput",x.Wa.bfa),q8:E(K,"conservBandwidthMarginTputThreshold",x.Wa.q8),p8:E(U,"conservBandwidthMarginCurve",x.Wa.p8),eS:E(K,"maxTotalBufferLevelPerSession",x.Wa.eS),nQ:E(I,"enableCombinedPlaygraphs",x.Wa.nQ),WC:E(I,"enableAdPlaygraphs",x.Wa.WC),qQ:E(I,"enableLiveAdPlaygraphs",x.Wa.qQ),pQ:E(I,"enableLiveAdDynamicAutoskip",x.Wa.pQ),z1:E(I,"retainSbrOnFade",x.Wa.z1),A9:E(Y,"excludedContentPlaygraphIds",x.Wa.A9),JY:E(I,"enableDiscontiguousBuffering",x.Wa.JY),Q9:E(T,"forceImmediateTransitionTypeForTitles",x.Wa.Q9),P9:E(K,"forceImmediateTransitionExitZone",x.Wa.P9),FI:E(I,"useBufferSizeLimiter",x.Wa.FI),Fea:E(I,"skipBitrateInUpswitch",x.Wa.Fea),gga:E(K,"watermarkLevelForSkipStart",x.Wa.gga),baa:E(K,"highStreamRetentionWindow",x.Wa.baa),pba:E(K,"lowStreamTransitionWindow",x.Wa.pba),daa:E(K,"highStreamRetentionWindowUp",x.Wa.daa),rba:E(K,"lowStreamTransitionWindowUp",x.Wa.rba),caa:E(K,"highStreamRetentionWindowDown",x.Wa.caa),qba:E(K,"lowStreamTransitionWindowDown",x.Wa.qba),aaa:E(M,"highStreamInfeasibleBitrateFactor",x.Wa.aaa),UA:E(K,"lowestBufForUpswitch",x.Wa.UA),XR:E(K,"lockPeriodAfterDownswitch",x.Wa.XR),tba:E(K,"lowWatermarkLevel",x.Wa.tba),VA:E(K,"lowestWaterMarkLevel",x.Wa.VA),vba:E(I,"lowestWaterMarkLevelBufferRelaxed",x.Wa.vba),gS:E(M,"mediaRate",x.Wa.gS),xH:E(K,"maxTrailingBufferLen",x.Wa.xH),x7:E(K,"audioBufferTargetAvailableSize",x.Wa.x7),Wfa:E(K,"videoBufferTargetAvailableSize",x.Wa.Wfa),eZ:E(M,"fastUpswitchFactor",x.Wa.eZ),C9:E(M,"fastDownswitchFactor",x.Wa.C9),wH:E(K,"maxMediaBufferAllowed",x.Wa.wH),IDb:E(K,"maxLiveMediaBufferAllowed",x.Wa.IDb),zwa:E(I,"simulatePartialBlocks",x.Wa.zwa),r8:E(I,"considerConnectTime",x.Wa.r8),n8:E(M,"connectTimeMultiplier",x.Wa.n8),csa:E(K,"maxNetworkErrorsDuringBuffering",x.Wa.csa),Eba:E(K,"maxBufferingTimeAllowedWithNetworkError",x.Wa.Eba),RH:E(I,"probeServerWhenError",x.Wa.RH),Qua:E(K,"probeRequestTimeoutMilliseconds",x.Wa.Qua),xP:E(I,"allowSwitchback",x.Wa.xP),Pua:E(K,"probeDetailDenominator",x.Wa.Pua),Zba:E(K,"minProbeIntervalMs",x.Wa.Zba),H_:E(K,"maxDelayToReportFailure",x.Wa.H_),lba:E(K,"locationStatisticsUpdateInterval",x.Wa.lba),Y$:E(K,"headerRequestSize",4096),XY:E(I,"estimateHeaderSize",!1),T_:E(K,"minBufferLenForHeaderDownloading",1E4),Lq:E(I,"pipelineEnabled",!1),w1a:E(K,"socketReceiveBufferSize",0),A7:E(K,"audioSocketReceiveBufferSize",32768),aga:E(K,"videoSocketReceiveBufferSize",65536),bqa:E(K,"headersSocketReceiveBufferSize",32768),Lnb:E(K,"bufferLevelNotifyIntervalMs",2E3),vv:E(K,"aseReportDenominator",0),Qz:E(K,"aseReportIntervalMs",3E5),U0:E(K,"prebufferTimeLimit",24E4),hua:E(K,"penaltyFactorForLongConnectTime",2),Mra:E(K,"longConnectTimeThreshold",200),cla:E(K,"additionalBufferingLongConnectTime",2E3),dla:E(K,"additionalBufferingPerFailure",8E3),g1:E(K,"rebufferCheckDuration",6E4),sQ:E(I,"enableOCSideChannel",!0),RV:E(O,"OCSCBufferQuantizationConfig",{lv:5,mx:240}),fna:E(K,"defaultHeaderCacheSize",4),ena:E(K,"defaultHeaderCacheDataPrefetchMs",8E3),Lsa:E(K,"networkFailureResetWaitMs",2E3),Ksa:E(K,"networkFailureAbandonMs",12E4),Kba:E(K,"maxThrottledNetworkFailures",3),jfa:E(K,"throttledNetworkFailureThresholdMs",2E3),Nra:E(L,"lowThroughputThreshold",400),doa:E(I,"excludeSessionWithoutHistoryFromLowThroughputThreshold",!1),BT:E(I,"requireAudioStreamToEncompassVideo",!0),XOa:E(I,"enableManagerDebugTraces",!1),gbd:E(I,"notifyManifestCacheEom",!1),Nca:E(K,"periodicHistoryPersistMs",3E5),$da:E(K,"saveBitrateMs",18E4),bya:E(I,"waitForDrmToAppendMedia",!1),zoa:E(I,G("forceAppendHeadersAfterDrm"),!1),gvb:E(I,G("forceAppendEncryptedStreamHeaderFirst"),!0),ZEb:E(K,"netIntrStoreWindow",36E3),uEb:E(K,"minNetIntrDuration",8E3),gub:E(K,"fastHistoricBandwidthExpirationTime",10368E3),snb:E(K,"bandwidthExpirationTime",5184E3),cub:E(K,"failureExpirationTime",86400),p9c:E(K,"historyTimeOfDayGranularity",4),Mtb:E(I,"expandDownloadTime",!1),hqa:E(I,"ignoreShortResponses",!1),mNb:E(I,"shortResponseDurationMs",10),lNb:E(I,"shortResponseBytes",1E4),ysa:E(K,"minimumMeasurementTime",500),xsa:E(K,"minimumMeasurementBytes",131072),Sua:E(K,"probingMeasurementTime",2E3),Rua:E(K,"probingMeasurementBytes",262144),$yb:E(K,"historicBandwidthUpdateInterval",2E3),Wva:E(P,"secondThroughputEstimator","none"),ctb:E(Y,"enableFilters",("throughput-ewma throughput-sw throughput-sw-fast throughput-iqr throughput-tdigest avtp entropy").split(" ")),oub:E(O,"filterDefinitionOverrides",{}),Jrb:E(P,"defaultFilter","throughput-ewma"),KLb:E(P,"secondaryFilter","none"),YNa:E(O,"defaultFilterDefinitions",{"throughput-ewma":{type:"discontiguous-ewma",mw:5E3,wt:5E3},"throughput-sw":{type:"slidingwindow",mw:5E3},"throughput-sw-fast":{type:"slidingwindow",mw:500},"throughput-iqr":{type:"iqr",mx:Infinity,mn:5,bw:15E3,iv:1E3},"throughput-iqr-history":{type:"iqr-history"},"throughput-location-history":{type:"discrete-ewma",hl:14400,"in":3600},"respconn-location-history":{type:"discrete-ewma",hl:100,"in":25},"throughput-tdigest":{type:"tdigest",maxc:25,c:.5,b:1E3,w:15E3,mn:6},"throughput-tdigest-history":{type:"tdigest-history",maxc:25,rc:"ewma",c:.5,hl:7200},"respconn-ewma":{type:"discrete-ewma",hl:10,"in":10},avtp:{type:"avtp"},entropy:{type:"entropy",mw:2E3,sw:6E4,"in":"none",mins:1,hdl:[150,230,352,539,825,1264,1936,2966,4543,6958],uhdl:[150,230,352,539,825,1264,1936,2966,4543,6958,10657,16322,25E3]}}),Gsa:E(I,"needMinimumNetworkConfidence",!0),Ula:E(I,"biasTowardHistoricalThroughput",!0),Vka:E(I,"addHeaderDataToNetworkMonitor",!1),Hwa:E(I,"startMonitorOnLoadStart",!1),tva:E(I,"reportFailedRequestsToNetworkMonitor",!1),Zra:E(L,"maxFastPlayBufferInMs",Infinity),qla:E(I,"appendFirstHeaderOnComplete",!0),Pmb:E(P,"ase_stream_selector","optimized"),fba:E(P,"liveStreamSelectorAlgorithm","livesimple"),Taa:E(I,"jointStreamSelectorEnabled",!1),T7:E(P,"bufferingSelectorAlgorithm","default"),Xma:E(I,"ase_dump_fragments",!1),Zma:E(K,"ase_location_history",0),o9c:E(P,"historicByLocationOrGlobal","timedPerLocation"),wIc:E(K,"pollingPeriod",150),cAc:E(K,"loadTimeMs",18E4),YAc:E(K,"marginTimeMs",1E4),QQa:E(I,"getDeviceIdFromBindDevice",!1),nKa:E(I,"addFailedLogBlobsToQueue",!0),gVc:{"content-sampling":{As:E(K,"contentSamplingMaxBufferingTime",3E3),OM:E(P,"contentSamplingSelectStartingVMAFMethod",x.Wa.OM),UW:E(I,"contentSamplingActivateSelectStartingVMAF",!0),jw:E(K,"contentSamplingMinStartingVideoVMAF",80),kS:E(K,"contentSamplingMinAcceptableVMAF",70),DH:E(K,"contentSamplingMinAllowedVmaf",60)},billboard:{ny:E(K,"billboardMinInitVideoBitrate",1050),WA:E(K,"billboardMaxInitVideoBitrate",null),zp:E(K,"billboardMinPrebufSize",null),AD:E(K,"billboardMaxPrebufSize",null),As:E(K,"billboardMaxBufferingTime",null),VA:E(K,"billboardLowestWaterMarkLevel",6E3),UA:E(K,"billboardLowestBufForUpswitch",25E3),ydd:E(P,"billboardSwitchConfigBasedOnThroughputHistory","none",/^(none|iqr|avg)$/)},preplay:{ny:E(K,"preplayMinInitVideoBitrate",1050),WA:E(K,"preplayMaxInitVideoBitrate",null),zp:E(K,"preplayMinPrebufSize",null),AD:E(K,"preplayMaxPrebufSize",null),As:E(K,"preplayMaxBufferingTime",null),VA:E(K,"preplayLowestWaterMarkLevel",6E3),UA:E(K,"preplayLowestBufForUpswitch",25E3)},embedded:{ny:E(K,"embeddedMinInitVideoBitrate",1050),WA:E(K,"embeddedMaxInitVideoBitrate",null),zp:E(K,"embeddedMinPrebufSize",null),AD:E(K,"embeddedMaxPrebufSize",null),As:E(K,"embeddedMaxBufferingTime",null),VA:E(K,"embeddedLowestWaterMarkLevel",6E3),UA:E(K,"embeddedLowestBufForUpswitch",25E3)},"video-merch-bob-horizontal":{ny:E(K,"videoMerchBobHorizontalMinInitVideoBitrate",null),WA:E(K,"videoMerchBobHorizontalMaxInitVideoBitrate",null),zp:E(K,"videoMerchBobHorizontalMinPrebufSize",null),AD:E(K,"videoMerchBobHorizontalMaxPrebufSize",null),As:E(K,"videoMerchBobHorizontalMaxBufferingTime",null),VA:E(K,"videoMerchBobHorizontalLowestWaterMarkLevel",null),UA:E(K,"videoMerchBobHorizontalLowestBufForUpswitch",null)},"mini-modal-horizontal":{ny:E(K,"miniModalHorizontalMinInitVideoBitrate",null),WA:E(K,"miniModalHorizontalMaxInitVideoBitrate",null),zp:E(K,"miniModalHorizontalMinPrebufSize",null),AD:E(K,"miniModalHorizontalMaxPrebufSize",null),As:E(K,"miniModalHorizontalMaxBufferingTime",500),VA:E(K,"miniModalHorizontalLowestWaterMarkLevel",null),UA:E(K,"miniModalHorizontalLowestBufForUpswitch",null)},live:{}},Fkc:E(I,"enableVerbosePlaydelayLogging",!1),Akc:E(I,"enableSeamless",!1),XSa:E(K,"hindsightDenominator",0),WSa:E(K,"hindsightDebugDenominator",0),YSa:E(O,"hindsightParam",{numB:Infinity,bSizeMs:1E3,fillS:"last",fillHl:1E3}),Iba:E(K,"maxNumSessionHistoryStored",30),aca:E(K,"minSessionHistoryDuration",3E5),F_:E(K,"maxActiveRequestsPerSession",3),Wra:E(K,"maxActiveRequestsSABCell100",x.Wa.Wra),wra:E(I,"limitAudioDiscountByMaxAudioBitrate",!0),Je:E(O,"browserInfo",{}),Z9b:E(K,G("busyGracePeriod"),199),ZOc:E(I,G("sendTransitionLogblob"),!0),rvc:E(I,G("includeSegmentInfoOnLogblobs"),!0),Glc:E(I,"exposeTestData",!1),Flc:E(I,G("exposeErrorData"),!1),VJ:E(I,G("applyProfileTimestampOffset"),!1),gda:E(O,G("profileTimestampOffsets"),{"heaac-2-dash":{64:{ticks:-3268,timescale:48E3},96:{ticks:-3268,timescale:48E3}},"heaac-2hq-dash":{128:{ticks:-3268,timescale:48E3}},"heaac-5.1-dash":{192:{ticks:-3268,timescale:48E3}}}),Sh:E(I,G("applyProfileStreamingOffset"),!1),Sba:E(I,G("mediaSourceSupportsNegativePts"),!1),T6b:E(I,G("allowSmallSeekDelta"),!1),xRc:E(K,G("smallSeekDeltaThresholdMilliseconds"),q.rGa),Tjc:E(I,"enableCDMAttestedDescriptors",!1),Nda:E(I,"requireDownloadDataAtBuffering",x.Wa.Nda),Oda:E(I,"requireSetupConnectionDuringBuffering",x.Wa.Oda),uRb:E(I,"useMobileVMAF",!1),$rb:E(P,"desiredVMAFTypeMobile","phone_plus_lts"),bsb:E(P,"desiredVMAFTypeNonMobile","plus_lts"),UW:E(I,"activateSelectStartingVMAF",x.Wa.UW),jw:E(K,"minStartingVideoVMAF",x.Wa.jw),kS:E(K,"minAcceptableVMAF",x.Wa.kS),DH:E(K,"minAllowedVmaf",x.Wa.DH),G_:E(K,"maxAllowedOutstandingRequests",x.Wa.G_),bca:E(K,"minStreamableConcurrencyWindow",x.Wa.bca),Rea:E(M,"streamableConcurrencyFactor",x.Wa.Rea),HP:E(K,"bufferingConcurrencyWindow",x.Wa.HP),QY:E(I,"enableResolutionVMAFStreamFilter",x.Wa.QY),w1:E(O,"resolutionVMAFCappingRuleList",x.Wa.w1),Lca:E(L,"percentCapTitlesForResolutionVMAFStreamFilter",x.Wa.Lca),mic:E(I,"disableSkipping",!1),Kxa:E(I,"useHLSPlayer",V.Kxa),Pfa:E(I,G("useExitZones"),x.Wa.Pfa),VMc:E(I,"requestSegmentVmaf",!1),MS:E(O,"perFragmentVMAFConfig",{enabled:!1}),Tta:E(K,"paddingDurationMs",1E3),Uta:E(P,"paddingMediaType","padding"),HS:E(P,"paddingCodecSelector","flexible"),d2a:E(I,"supportsPtsChanged",!1),KIc:E(I,G("preferUnletterboxed"),!1),SNb:E(I,"standaloneMode",!1),dtb:E(I,"enableKeySystemRestrictor",!1),olc:E(K,"errorEventToRestrict",2),nlc:E(T,"errorCodesToRestrict",[7353,7361,7377,7701,7702,7703,7717]),mlc:E(T,"errorCodesToCache",[7353,7361,7377,7701,7702,7703,7717]),atb:E(I,"enableCachedErrors",!1),j$b:E(K,"cachedErrorCountLimit",20),l$b:E(K,"cachedErrorExpirationSeconds",604800),m$b:E(K,"cachedErrorsStorageTimeoutSeconds",2E3),oAc:E(I,"logKeySystemHasHwdrmAvailable",!1),zra:E(L,"liveEdgeCushion",0),rVa:E(L,"liveEdgeCushionWithSpreadMs",0),Ona:E(I,"enableLive504Handling",!1),gba:E(I,"liveStreamSelectorUseLatency",!0),pra:E(M,"latencyMultiplierForLive",4),Cra:E(I,"liveLowQualityAvoidance",!0),eba:E(L,"liveLowQualityThreshold",750),w_:E(M,"liveLowQualityMultiplier",6),xra:E(I,"liveBufferRatioStrategy","strict"),Dra:E(L,"liveMaxUpswitchSteps",Infinity),Lna:E(I,"enableConditionalServerTimeUpdate",!1),Isa:E(L,"negligibleServerTimeDeltaDifference",1E3),Ira:E(I,"liveSwitchStreamsOnErrorInPipeline",!0),rQ:E(I,"enableMissingSegmentsReplacement",!0),YT:E(I,"simulateLiveEdge",!1),pzc:E(L,"liveEdgeThreshold",1E4),lnc:E(I,"forceDisableLiveUi",!1),$jc:E(I,"enableForceLiveEdgeAtEventStart",!0),akc:E(I,"enableForceLiveEdgeOnResumeInStartSlate",!0),mkc:E(I,"enableLivePlaybackRateDriftCorrection",!1),Fzc:E(M,"livePlaybackRateMin",.98),Ezc:E(M,"livePlaybackRateMax",1.02),Dzc:E(L,"livePlaybackRateAdjustmentThresholdMs",20),Czc:E(L,"livePlaybackRateAdjustmentIntervalMs",1E3),Bzc:E(M,"livePlaybackRateAdjustmentFactor",.1),inc:E(L,"forceAstRelativeLiveBookmark",void 0),mnc:E(L,"forceEstRelativeLiveBookmark",void 0),gSc:E(L,"startSlateMs",void 0),Lzc:E(L,"liveSlateMs",void 0),WOa:E(I,"enableLiveManifestReuse",!0),uVa:E(I,"liveShouldAccountForPlayDelay",!1),Fra:E(I,"livePrefetchEnabled",!0),Gra:E(I,"livePrefetchEnabledForStickySteering",!0),rY:E(L,"decryptOCSideChannelMinInterval",1E3),dna:E(L,"decryptOCSideChannelMinIntervalAfterCompleted",1E3),LY:E(I,"enableLiveOCSideChannelRefresh",!0),x_:E(L,"liveOCSideChannelRefreshInterval",3E4),tkc:E(I,G("enableNonSeamlessTransitions"),!1),eXc:E(Y,G("videoCodecsRequiringNonSeamlessTransitions"),[]),FOc:E(Y,G("segmentTypesRequiringNonSeamlessTransitions"),[]),vIc:E(Y,G("playreadySegmentTypesRequiringNonSeamlessTransitions"),[]),UR:E(O,"liveOriginOverride",void 0),Hra:E(L,"liveRequestSpreadMs",1E3),qVa:E(I,"liveConsiderSpreadInCushion",!1),Qna:E(I,"enableTwoPartLiveFragmentEditing",!0),VR:E(I,"liveSlowBufferFilling",!1),Uzc:E(L,"lnaModeJitterMs",12E5),qBc:E(L,"maxLNADuration",36E6),knc:E(I,"forceDisableLNA",!1),uCb:E(P,"liveAdsCapability","dynamic"),tQ:E(I,"enableRequestAbandonment",!1),mua:E(L,"pipelineHealthThresholdCriticalMs",2E3),nua:E(L,"pipelineHealthThresholdLowMs",6E3),Gda:E(L,"requestAbandonmentLockIntervalMs",1E4),Uwa:E(M,"streamModeAppendAttachThreshold",.75),ftb:E(I,"enableLiveAdsUi",!0),yra:E(M,"liveEarlyRequestProbability",.05),dba:E(L,"liveEarlyRequestDefaultOffsetMs",-500),Vea:E(I,"supportLiveIdrMismatch",!1),n2:E(L,"synthesizeLiveIdrMismatch",0),o7:E(I,"alwaysRetainAds",!1),OY:E(I,"enableMediaEventsTrack",!0),oH:E(L,"liveAdManifestWindowMs",1E4),QR:E(L,"liveAdManifestWindowAllowanceMs",5E3),dfa:E(P,"syntheticAdBreakUx",""),n9:E(I,"enableMediaEventHistory",x.Wa.n9),oQ:E(I,"enableLiveAdBreakReportingEvents",x.Wa.oQ),yK:E(I,"enableBlackBoxNotification",x.Wa.yK),pVa:E(L,"liveAdEventJitterMs",6E4),knb:E(P,"auxiliaryManifestTokenOverride"),ll:E(L,"minimumPresentationDelayMs",x.Wa.ll),SR:E(L,"liveEdgeSegmentSkipCount",x.Wa.SR),cda:E(I,"probeBeforeSwitchingBackToPrimary",x.Wa.cda),U_:E(L,"minIntervalForSwitchingBackToPrimary",x.Wa.U_),Fba:E(L,"maxIntervalForSwitchingBackToPrimary",x.Wa.Fba),TOb:E(I,"supportsAdLazyLoading",!1),SDb:E(L,"maxSupportedAdAuxiliaryManifests",void 0),msb:E(I,"disableDAISupportedForHWDRM",!1),NCc:E(I,"monitorFrozenFrames",!1),MY:E(I,"enableLiveRequestPacing",x.Wa.MY),B_:E(K,"logarithmicRequestPacingCurveCenterPositionMs",x.Wa.B_),C_:E(M,"logarithmicRequestPacingCurveSharpness",x.Wa.C_),OL:E(K,"maxLiveTargetBufferDurationMs",x.Wa.OL),p9:E(I,"enableSvodRequestPacing",x.Wa.p9),W_:E(K,"minSvodTargetBufferDurationMs",x.Wa.W_),k2:E(M,"svodBufferGrowthRateSlope",x.Wa.k2),xG:E(I,"enableCprVideo",x.Wa.xG),k9:E(I,"enableCprVideoNonPipelined",x.Wa.k9),KY:E(I,"enableInitialThroughputHistory",x.Wa.KY),IY:E(I,"enableActiveRequestsInFilters",x.Wa.IY),pQb:E(O,"uiContext")};fa=!0;b.RMa=function(ia){var ka,pa,oa;ka=g.Xa.get(B.fe).id;if(0 < b.config.RCb && 0 === ka % b.config.RCb)try{pa=g.Xa.get(u.Up);oa=g.Xa.get(v.YE).Tt("config","info",{params:ia});pa.Vc(oa);}catch(la){g.log.error("Failed to log config$apply",la);}Ba._cad_global.config=b.config;(0,h.va)(ia);ia && (da=(0,m.Gf)({},ia,{wba:!0}),(0,m.Gf)(da,S,{wba:!0}),H(ba,b.config),da.istestaccount && g.log.trace("Config applied for",Z(fa?da:ia)),fa=!1);};(0,b.RMa)(da);};b.SMa=function(D){D=d(D);return (0,m.Gf)({},a(87141)(D),{Ita:!0});};b.xcc=function(D,F,H){F=!!H && (0 <= H.indexOf("h264hpl") || 0 <= H.indexOf("av1"));D={ZA:D?b.config.oEb:b.config.ZA,CD:D?b.config.zEb:F?b.config.AEb:b.config.CD};return (0,m.Gf)({},a(87141)(D),{Ita:!0});};b.g6c=d;b.f6c=n;c=a(33096);f=a(52569);g=a(31276);e=a(34231);h=a(45146);k=a(56800);l=a(75568);m=a(3887);a(87386);p=a(22365);r=a(32687);q=a(93294);u=a(45118);v=a(31850);w=a(5614);x=a(45247);y=a(72574);A=a(5021);z=a(91581);B=a(81918);C=a(88195);},70:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});d=a(52569);n=a(33096);c=a(36129);f=a(22365);t=a(31276);a=a(11479);g=t.Xa.get(a.ek);g.register(c.da.v$a,function(e){f.Wn && f.Wn.generateKey && f.Wn.importKey && f.Wn.unwrapKey?(g.fh("wcs"),(0,d.A0)(f.Wn.generateKey({name:"AES-CBC",length:128},!0,["encrypt","decrypt"])).then(function(){g.fh("wcdone");e(n.Oh);},function(h){var k;h="" + h;if(0 <= h.indexOf("missing crypto.subtle"))k=c.Y.JHa;else 0 <= h.indexOf("timeout waiting for iframe to load") && (k=c.Y.s1b);e({Ta:k,qf:h});})):e({Ta:c.Y.JHa});});},1481:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperty(b,"__esModule",{value:!0});b.gp=void 0;d=a(33096);n=a(29204);t=a(36129);c=a(45146);f=a(31276);g=a(68703);e=a(22365);h=a(11479);k=a(91581);l=f.Xa.get(h.ek);l.register(t.da.PBa,function(m){var p,r,q;p=f.Xa.get(k.xt);(0,c.va)(n.config);(0,c.va)(e.cJ && e.cJ.getDeviceId || e.ncb || p.sZ);r=f.Xa.get(g.J7a);q=(0,f.gn)("Device");l.fh("devs");r.create({deviceId:n.config.deviceId,sZ:p.sZ,esb:"deviceid",ij:n.config.ij,Yt:p.Yt,Y8:p.Y8,userAgent:e.OV,BVa:n.config.BVa,QQa:n.config.QQa,Vad:n.config.zG?"mslstoretest":"mslstore",L2:n.config.L2}).then(function(u){b.gp=u;Ba._cad_global.device=b.gp;q.info("Esn source: " + b.gp.$na);l.fh("devdone");m(d.Oh);}).catch(function(u){u.success=void 0;m(u);});});},15531:function(t,b,a){var m,p,r,q,u,v,w,x;function d(y,A,z,B,C){var D;D={};"right" == y.horizontalAlignment?D.right=100 * (z - A.left - A.width - C) / z + "%":D.left=100 * (A.left - C) / z + "%";"bottom" == y.verticalAlignment?D.bottom=100 * (B - A.top - A.height - C) / B + "%":D.top=100 * (A.top - C) / B + "%";return D;}function n(y,A){var z;if(y && A){40 === A.x && 19 === A.y?z=4 / 3 / (40 / 19):52 === A.x && 19 === A.y && (z=16 / 9 / (52 / 19));if(z)return y.width / y.fontSize / z;}}function c(y,A,z,B,C,D,F){for(var H=y.style,E=(0,p.bTa)(y.text),G=y.lineBreaks;G--;)E="
" + E;return f(E,H,A,z,B,C,D,y.lang,F);}function f(y,A,z,B,C,D,F,H,E){var G;G=A.characterStyle;C=C[G];G=0 <= G.indexOf("MONOSPACE")?n(C,A.cellResolution) || C.lineHeight:C.lineHeight;B=A.characterSize * B.height / (G || 1);H && "ja" === H.slice(0,2) && A.ruby && "text" === A.ruby && (B/=2);B=0 < D?(0,r.KV)(B * D):(0,r.ut)(B);D={"font-size":B + "px","line-height":"normal","font-weight":"normal"};A.characterItalic && (D["font-style"]="italic");A.characterUnderline && (D["text-decoration"]="underline");A.characterColor && (D.color=A.characterColor);A.backgroundColor && 0 !== A.backgroundOpacity && (D["background-color"]=g(A.backgroundColor,A.backgroundOpacity));if(H && "ja" === H.slice(0,2)){if(A.textEmphasis){B=A.textEmphasis;switch(B.textEmphasisShape){case "auto":D["text-emphasis"]="vertical-lr" === F || "vertical-rl" === F?"filled sesame":"filled circle";break;default:D["text-emphasis"]=B.textEmphasisFill + " " + B.textEmphasisShape;}E=h(B.textEmphasisPosition,E);switch(F){case "vertical-rl":D["text-emphasis-position"]=w[E];break;case "vertical-lr":D["text-emphasis-position"]=x[E];break;default:D["text-emphasis-position"]=v[E];}}A.textCombine && (D["text-combine-upright"]=A.textCombine);}F=A.characterEdgeColor || "#000000";switch(A.characterEdgeAttributes){case "DROP_SHADOW":D["text-shadow"]=F + " 0px 0px 7px";break;case "UNIFORM":D["text-shadow"]="-1px 0px " + F + ",0px 1px " + F + ",1px 0px " + F + ",0px -1px " + F;break;case "RAISED":D["text-shadow"]="-1px -1px white, 0px -1px white, -1px 0px white, 1px 1px black, 0px 1px black, 1px 0px black";break;case "DEPRESED":D["text-shadow"]="1px 1px white, 0px 1px white, 1px 0px white, -1px -1px black, 0px -1px black, -1px 0px black";}F=(0,m.x8)(D);(z=z[A.characterStyle || "PROPORTIONAL_SANS_SERIF"]) && (F+=";" + z);z=A.characterOpacity;0 < z && 1 > z && (y='' + y + "");H && "ja" === H.slice(0,2)?(y='' + y + "",A.ruby && "text" === A.ruby && (y="" + y + "")):y='' + y + "";return y;}function g(y,A){y=y.substring(1);y=parseInt(y,16);return "rgba(" + (y >> 16 & 255) + "," + (y >> 8 & 255) + "," + (y & 255) + "," + (void 0 !== A?A:1) + ")";}function e(y,A,z,B){var C;C="";y && "text" === y && (C='');return C;}function h(y,A){return y === u[0] || "outside" === y && 0 === A?u[0]:u[1];}function k(y){return y.replace(/(+)([\s\S]*?<\/ruby>)/g,"$2$1$3");}function l(y){return (y=y.match(/(font-size:\d+px)/))?y[0]:"";}Object.defineProperty(b,"__esModule",{value:!0});b.xtb=function(y,A,z,B,C){var D,F,H,E,G,J,L;D="";F="";H=0;E="";G=!1;J="";L="";y.textNodes.forEach(function(K){var M,P,I,O;H+=K.lineBreaks;I=c(K,z,A,B,C,y.region.writingMode,H);if(K.lang && "ja" === K.lang.slice(0,2)){if(K.style && K.style.ruby && "" != K.style.ruby && (K.style.ruby === q.Qr && (L=l(I)),K.style.ruby !== q.Ib && (J+=I),I="",K.style.ruby === q.text)){O=e(K.style.ruby,null !== (M=K.style.rubyPosition) && void 0 !== M?M:"outside",H,L);G="" !== O;J=O + J;}!E || "" === E || K.style.ruby && "" !== K.style.ruby && K.style.ruby !== q.Ib || (J=k(J + (G?" ":"")),I=J + I,G=!1,J="");}D+=I;E=null !== (P=K.style.ruby) && void 0 !== P?P:"";"" === F && K.style && K.style.shear && (F="font-style: oblique " + -90 * parseFloat(K.style.shear) + "deg;");});"" !== J && (D+=J + (G?" ":""));y.region && y.region.multiRowAlignment && (D='' + D + "");return D;};b.hlc=function(y,A,z,B,C){var D,F,E,G,J;D="";F=C.width;C=C.height;for(var H=A.length;H--;){E=A[H];G=y[H];G=G && G.region;J="position:absolute;background:" + B + ";width:" + (0,r.ut)(E.width + 2 * z) + "px;height:" + (0,r.ut)(E.height + 2 * z) + "px;";E=d(G,E,F,C,z);(0,p.Di)(E,function(L,K){J+=L + ":" + K + ";";});D+='
';}return D;};b.glc=d;b.x7c=n;b.z7c=c;b.w7c=f;b.y7c=g;b.flc=function(y){var A;y=y.region;A={display:"block","white-space":"nowrap"};switch(y.horizontalAlignment){case "left":A["text-align"]="left";break;case "right":A["text-align"]="right";break;default:A["text-align"]="center";}"vertical-lr" === y.writingMode || "vertical-rl" === y.writingMode?A["writing-mode"]=y.writingMode:"horizontal-tb" === y.writingMode && y.direction && (A.direction=y.direction);return (0,m.x8)(A);};b.z5c=e;b.l6c=h;b.Rad=k;b.D8c=l;m=a(52569);p=a(3887);r=a(22365);q={Ib:"container",text:"text",Qr:"base"};u=["before","after"];v={before:"over right",after:"under right"};w={before:"over right",after:"over left"};x={before:"over left",after:"over right"};},33579:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.kVc=function(n,c){function f(h,k,l){var q,v,w,x,y;if(h && 1 < h.length){for(var m=[],p=[],r=0;r < h.length;r++)(m[r]=0,p[r]=0);q=!1;for(r=0;r < h.length;r++)for(var u=r + 1;u < h.length;u++){v=h[r];w=h[u];if(0 > v.width || 0 > w.width || w.left > v.left + v.width || w.left + w.width < v.left || w.top > v.top + v.height?0:w.top + w.height >= v.top){x=(0,d.jz)(v.left,w.left);y=(0,d.jz)(v.top,w.top);x={width:(0,d.jz)((0,d.aF)(v.left + v.width,w.left + w.width) - x,0),height:(0,d.jz)((0,d.aF)(v.top + v.height,w.top + w.height) - y,0),x:x,y:y};}else x=void 0;if(x && 1 < x.width && 1 < x.height)if((y=x.width <= x.height,v=g(h[r]),w=g(h[u]),y && k || !y && !k))(x=(0,d.jz)(x.width / 2,.25),v.x <= w.x?(p[r]-=x,p[u]+=x):(p[u]-=x,p[r]+=x));else if(y && !k || !y && k)(v=(0,d.jz)(x.height / 2,.25),m[r]-=v,m[u]+=v);}for(r=0;r < h.length;r++){if(-.25 > p[r] && 0 <= h[r].left + p[r] || .25 < p[r] && h[r].left + h[r].width + p[r] <= l.width)(h[r].left+=p[r],q=!0);if(-.25 > m[r] && 0 <= h[r].top + m[r] || .25 < m[r] && h[r].top + h[r].height + m[r] <= l.height)(h[r].top+=m[r],q=!0);}return q;}}function g(h){return {x:h.left + h.width / 2,y:h.top + h.height / 2};}n=n.map(function(h){return {top:h.top,left:h.left,width:h.width,height:h.height};});(function(h,k){h.forEach(function(l){0 > l.left && l.left + l.width < k.width?l.left+=(0,d.aF)(-l.left,k.width - (l.left + l.width)):l.left + l.width > k.width && 0 < l.left && (l.left-=(0,d.aF)(l.left + l.width - k.width,l.left));0 > l.top && l.top + l.height < k.height?l.top+=(0,d.aF)(-l.top,k.height - (l.top + l.height)):l.top + l.height > k.height && 0 < l.top && (l.top-=(0,d.aF)(l.top + l.height - k.height,l.top));});})(n,c);for(var e=0;50 > e && f(n,!0,c);e++);for(e=0;50 > e && f(n,!1,c);e++);return n;};d=a(22365);},99732:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.cDb=void 0;d=a(29204);n=a(33096);c=a(24066);t=a(36129);f=a(22365);g=a(32687);e=a(31276);a=a(11479);e.Xa.get(a.ek).register(t.da.m$a,function(h){var m,p,r,q,u;function k(){return (0,f.KV)((0,c.Cx)() / r);}function l(){var v;v=k();if(v != u){for(var w=(0,f.aF)(v - u,30);w--;)q.push(0);(w=(0,f.jz)(q.length - 31,0)) && q.splice(0,w);u=v;}q[q.length - 1]++;}m=d.config.AAc;p=-6 / (m - 2 - 2);r=n.qr;q=[];u=k();(0,g.uUa)(m) && (setInterval(l,1E3 / m),b.cDb={gpa:function(){var x;for(var v=[],w=q.length - 1;w--;){x=q[w];v.unshift(0 >= x?9:1 >= x?8:x >= m - 1?0:(0,f.ut)((x - 2) * p + 7));}return v;}});h(n.Oh);});},24674:function(t,b,a){var g,e,h,k,l,m;function d(p){var r;p=new h.$ga(p);if(1481462272 != p.Cw())throw Error("Invalid header");r={XMR:{Version:p.Cw(),RightsID:p.dE(16)}};n(p,r.XMR,p.jpa());return r;}function n(p,r,q){var u,v,w,x,y;for(;p.position < q;){u=p.tj();v=p.Cw();v-=8;switch(u){case 1:w="OuterContainer";break;case 2:w="GlobalPolicy";break;case 3:w="MinimumEnvironment";break;case 4:w="PlaybackPolicy";break;case 5:w="OutputProtection";break;case 6:w="UplinkKID";break;case 7:w="ExplicitAnalogVideoOutputProtectionContainer";break;case 8:w="AnalogVideoOutputConfiguration";break;case 9:w="KeyMaterial";break;case 10:w="ContentKey";break;case 11:w="Signature";break;case 12:w="DeviceIdentification";break;case 13:w="Settings";break;case 18:w="ExpirationRestriction";break;case 42:w="ECCKey";break;case 48:w="ExpirationAfterFirstPlayRestriction";break;case 50:w="PlayReadyRevocationInformationVersion";break;case 51:w="EmbeddedLicenseSettings";break;case 52:w="SecurityLevel";break;case 54:w="PlayEnabler";break;case 57:w="PlayEnablerType";break;case 85:w="RealTimeExpirationRestriction";break;default:w="Other";}x={Type:c(u)};y=r[w];y?(0,m.isArray)(y)?y.push(x):(r[w]=[],r[w].push(y),r[w].push(x)):r[w]=x;switch(u){case 1:case 2:case 4:case 7:case 9:case 54:n(p,x,p.position + v);break;case 5:x.Reserved1=p.tj();x.MinimumUncompressedDigitalVideoOutputProtectionLevel=p.tj();x.MinimumAnalogVideoOutputProtectionLevel=p.tj();x.Reserved2=p.tj();x.MinimumUncompressedDigitalAudioOutputProtectionLevel=p.tj();break;case 10:x.Reserved=p.dE(16);x.SymmetricCipherType=p.tj();x.AsymmetricCipherType=p.tj();v=p.tj();x.EncryptedKeyLength=v;u=p.dE(v);x.EncryptedKeyData=10 >= v?u:u.substring(0,4) + "..." + u.substring(u.length - 4,u.length);break;case 11:x.SignatureType=p.dE(2);v=p.tj();u=p.dE(v);x.SignatureData=10 >= v?u:u.substring(0,4) + "..." + u.substring(u.length - 4,u.length);break;case 13:x.Reserved=p.tj();break;case 18:x.BeginDate=p.Cw();x.EndDate=p.Cw();break;case 42:x.CurveType=p.dE(2);v=p.tj();u=p.dE(v);x.Key=10 >= v?u:u.substring(0,4) + "..." + u.substring(u.length - 4,u.length);break;case 48:x.ExpireAfterFirstPlay=p.Cw();break;case 50:x.Sequence=p.Cw();break;case 51:x.LicenseProcessingIndicator=p.tj();break;case 52:x.MinimumSecurityLevel=p.tj();break;case 57:x.PlayEnablerType=f(p.dE(16));break;case 85:break;default:x.OtherData=p.dE(v);}}}function c(p){return "0x" + p.toString(16);}function f(p){return p.substring(6,8) + p.substring(4,6) + p.substring(2,4) + p.substring(0,2) + "-" + p.substring(10,12) + p.substring(8,10) + "-" + p.substring(14,16) + p.substring(12,14) + "-" + p.substring(16,20) + "-" + p.substring(20,32);}Object.defineProperty(b,"__esModule",{value:!0});b.C6c=function(p,r,q){switch(r){case g.iha:p && (p=(0,e.vnb)(p),(0,l.dYc)(p,function(u){u.success && (u=u.object) && (u=(0,k.opc)(u,"Body","AcquireLicenseResponse","AcquireLicenseResult","Response","LicenseResponse","Licenses","License")) && (u=(0,k.oHc)(u)) && (u=(0,e.XF)(u)) && (u=d(u)) && q(u);}));}};b.D6c=d;b.E6c=n;b.G6c=c;b.F6c=f;g=a(33096);e=a(31276);h=a(70834);k=a(62604);l=a(84281);m=a(32687);},59032:function(t,b){var d;function a(n,c){var f;f=this;this.sIa=[];d.forEach(function(g){(g=g(n,c)) && f.sIa.push(g);});}Object.defineProperty(b,"__esModule",{value:!0});b.Wbb=void 0;b.Yha=function(n){d.push(n);};d=[];a.prototype.kI=function(n){var g;for(var c=[],f=this.sIa.length;f--;){g=this.sIa[f];g.kI(n) && c.push(g.qoa);}if(c.length)return c;};b.Wbb=a;},3390:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});t=a(59032);d=a(31276);n=a(4203);c=a(95136);f=a(81918);(0,t.Yha)(function(g,e){var h,k;h=d.Xa.get(n.Hc);if(h().Tic){k=d.Xa.get(f.fe);return new c.X7a(g,e,d.th,k,h);}});},95136:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r,q){var u;u=this;this.j=l;this.Na=m;this.wa=p;this.Va=r;this.pta={};this.zY={};this.W1=[];this.cAb=1E3;this.Swa=n.hbb;this.KXa=function(){var v;v=u.j.Zb.value === g.Nb.rg && u.j.state.value === g.Fc.zf && u.j.R === u.Na.R;u.vaa?v || (clearInterval(u.vaa),u.vaa=void 0,u.Zaa=void 0):v && (u.vaa=Ba.setInterval(u.bUc,u.cAb));};this.bUc=function(){var v,w,x,y;w=u.j.ye.value;w=w && w.stream;w=null !== (v=w && w.height) && void 0 !== v?v:null;if(null !== w && 0 < w){v=u.Va.yc().na(h.ya);x=u.j.Wd.ZQ();if(x){if(u.Zaa && v - u.Zaa.time < 2 * u.cAb && w === u.Zaa.height){y=x - u.Zaa.Sic;u.uKa(w,y);u.S5b(w,y);}u.Zaa={time:v,Sic:x,height:w};u.j.pua && u.j.pua.xPc(u.pta);}}};this.EQa=function(){var v;v={};u.zY && u.W1.forEach(function(w){var x,y,A;x=u.zY[w];if(x){y=0;A=0;(0,e.Di)(x,function(z,B){A+=(0,e.am)(z);y+=B;});v[w]=A / y;}});return v;};this.B$=function(v){var w;w={};v.forEach(function(x){w[x]={};});u.zY && ((0,c.Uya)(v),u.W1.forEach(function(x){var y,A,z,B;y=u.zY[x];if(y){A=0;z=0;(0,e.Di)(y,function(E,G){A+=G;});B=Object.keys(y).map(Number);(0,c.Uya)(B);for(var C=B.length - 1,D=B[C],F=v.length - 1;0 <= F;F--){for(var H=v[F];D >= H && 0 <= C;)((D=y[D]) && (z+=D),D=B[--C]);w[H][x]=(0,f.ut)(z / A * 100);}}}));return w;};this.vNc=function(v){!1 === v.oldValue && !0 === v.newValue && (u.j.YKb(),u.$Kb.set(!1));};this.log=this.wa.wb("DFF",l);this.VYa=q().Wic;this.vBc=q().Uic;this.yEb=q().Vic;this.Na.FOa={EQa:this.EQa,B$:this.B$};this.$Kb=new k.wc(!1,this.vNc);l.state.addListener(this.KXa);l.Zb.addListener(this.KXa);l.addEventListener(g.ja.KL,this.KXa);}Object.defineProperty(b,"__esModule",{value:!0});b.X7a=void 0;n=a(33096);c=a(52569);f=a(22365);g=a(85001);e=a(3887);h=a(5021);k=a(81734);d.prototype.kI=function(l){return l.lower && l.height > this.yEb?l.height >= this.Fsc():!1;};d.prototype.uKa=function(l,m){var p;p=this.pta[l];p || (this.pta[l]=p=[],l > this.yEb && (this.W1.push(l),(0,c.Uya)(this.W1)));0 < m && !(this.Yba && this.Yba < l) && (this.Yba=l);p.push(m);p.length > this.vBc && p.shift();};d.prototype.S5b=function(l,m){var p;p=this.zY[l];p || (this.zY[l]=p={});l=p[m];p[m]=l?l + 1:1;};d.prototype.Fsc=function(){var p,r;if(this.Yba){for(var l=this.W1.length,m=0;m < l;m++){p=this.W1[m];if(p >= this.Yba && p < this.Swa){r=this.pta[p];if(r && this.Sac(this.VYa,r) && this.Swa != p)return (this.log.warn("Restricting resolution due to high number of dropped frames",{MaxHeight:p}),this.Na.zv.set({reason:"droppedFrames",height:p}),this.$Kb.set(!0),this.Swa=p);}}this.Yba=void 0;}return this.Swa;};d.prototype.Sac=function(l,m){var u,v;for(var p=l.length,r=m.length,q=0;q < p;q++){u=l[q];v=u[0];u=u[1];for(var w=0;w < r;w++)if(m[w] >= u && 0 >= --v)return !0;}return !1;};Ha.Object.defineProperties(d.prototype,{qoa:{configurable:!0,enumerable:!0,get:function(){return "df";}}});b.X7a=d;},25357:function(t,b,a){var n,c;function d(f,g,e,h,k){var l;l=this;this.j=f;this.Na=g;this.wa=e;this.Ma=h;this.TAb=k;this.U6b=function(m){!0 === m.oldValue && !1 === m.newValue && (l.log.error("RestartStreaming: UHD key is no longer usable"),l.j.YKb());};this.dVc=function(m){var p,r,q;l.log.trace("UhdKeyStatus: " + m.oldValue + " -> " + m.newValue);r=m.newValue;q=m.oldValue;"usable" !== r && (l.mPc(r,(null === (p=m.Xm) || void 0 === p?void 0:p.height) || 0),"usable" === q && (m=l.Ma.Mg.ea(l.jyc),l.log.error("UHD KeyStatus unexpectedly changed: " + m.na(c.ya))));};this.log=this.wa.wb("KeyStatusStreamFilter",this.j);this.kmb=new n.wc(k,this.U6b);this.cVc=new n.wc("status-pending",this.dVc);}Object.defineProperty(b,"__esModule",{value:!0});b.hab=void 0;n=a(81734);c=a(5021);d.prototype.kI=function(f){return f.xk && (this.XSc(),this.kmb.set(this.TAb),f.lower && 1080 < f.height && !this.kmb.value)?!0:!1;};d.prototype.iFb=function(f){var g;g=this;Object.entries(f).forEach(function(e){var h,k,l;h=Ea(e);e=h.next().value;h=h.next().value;e=null !== (l=null === (k=g.iyc) || void 0 === k?void 0:k[e]) && void 0 !== l?l:0;1080 < e && (g.TAb="usable" === h,g.cVc.set(h,{height:e}));});};d.prototype.XSc=function(){var f,g;f=this;g=this.Na.Rl;!this.Exc && g && (this.Exc=!0,this.iyc=null === g || void 0 === g?void 0:g.MA,this.iFb(g.keyStatuses.value),g.keyStatuses.addListener(function(e){return f.iFb(e.newValue);}),this.jyc=this.Ma.Mg);};d.prototype.mPc=function(f,g){this.log.error("Restricting resolution due to keyStatus",{keyHeight:g,keyStatus:f});this.Na.zv.set({reason:"keyStatus",height:g});};Ha.Object.defineProperties(d.prototype,{qoa:{configurable:!0,enumerable:!0,get:function(){return "UhdKeyStatus";}}});b.hab=d;},2898:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});t=a(59032);d=a(29204);n=a(31276);c=a(25357);f=a(23563);(0,t.Yha)(function(g,e){var h;if(d.config.hyc){h=n.Xa.get(f.YB);return new c.hab(g,e,n.th,n.Ma,h.oQb);}});},45706:function(t,b,a){var n,c;function d(f,g){var e,h;e=(0,c.jo)(f,"MSS");if(n.config.jCc)return {qoa:"mss",kI:function(k){var l,m;if(k.lower && 2160 <= k.height)a:{for(l=k;l.lower;){if(2160 > l.height && 1080 < l.height){l=!0;break a;}if(1080 >= l.height)break;l=l.lower;}l=!1;}else l=void 0;if(l){if(void 0 === h){try{m=Ba.MSMediaKeys;h=m && m.isTypeSupportedWithFeatures?"probably" === m.isTypeSupportedWithFeatures("com.microsoft.playready.software",'video/mp4;codecs="avc1,mp4a";features="display-res-x=3840,display-res-y=2160,display-bpc=8"'):!1;}catch(p){e.error("hasUltraHdDisplay exception");h=!0;}h || (e.warn("Restricting resolution due screen size",{MaxHeight:k.height}),g.zv.set({reason:"microsoftScreenSize",height:k.height}));}return !h;}}};}Object.defineProperty(b,"__esModule",{value:!0});b.t1c=d;t=a(59032);n=a(29204);c=a(31276);(0,t.Yha)(d);},76563:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});t=a(59032);d=a(29204);n=a(31276);(0,t.Yha)(function(c,f){var g,e,h,k;g={"video-merch-bob-vertical":480,"video-merch-bob-horizontal":384,"video-merch-jaw":720,"show-as-a-row-bob-horizontal":480,"mini-modal-horizontal":720};Object.assign(g,d.config.eVc);e=g[f.ff];if(d.config.fVc && e){h={};k=(0,n.jo)(c,"MediaStreamFilter");return {qoa:"uiLabel",kI:function(l){if(l.lower && l.height > e)return (h[l.height] || (h[l.height]=!0,k.warn("Restricting resolution due to uiLabel",{MaxHeight:e,streamHeight:l.height}),f.zv.set({reason:"uiLabel",height:l.height})),!0);}};}});},24427:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.CWb=function(c){function f(g){c.fireEvent(d.ja.hQ,{response:g,R:c.ga.R});}return {download:function(g,e){g.j=c;g=n.Ke.download(g,e);g.Tka(f);return g;}};};d=a(85001);n=a(61726);},61726:function(t,b,a){var e,h,k,l,m,p,r,q,u,v,w,x,y,A;function d(){this.sg=(0,p.gn)("Http");this.Cm=new e.qm();this.PO=0;this.stats={ssl:0,"non-ssl":0,invalid:0};this.Nia={Ca:1,v1b:2,O5a:3};this.addEventListener=this.Cm.addListener;this.removeEventListener=this.Cm.removeListener;}function n(z){var B,C,D,F;B=z.url.split("?");C="sc=" + z.qOc;D=z.g$b?"random=" + (1E17 * (0,u.Xha)()).toFixed(0):"";F=B[0];F=B[1]?F + ("?" + B[1] + "&" + C):F + ("?" + C);F+=D?"&" + D:"";z.Tc && !(0,k.UAb)(F) && (z=h.config && h.config.pob) && (F=z.replace("{URL}",F).replace("{EURL}",encodeURIComponent(F)));return F;}function c(z,B){var C,D,F;C=z.url.split("?");D=f(z);F=C[0];D && (B.bE=D,(void 0 === z.Yy?h.config.Yy:z.Yy) || z.Gw !== x.q5?(z.headers=z.headers || ({}),z.headers.Range="bytes=" + D):(B.bE=D,F="/" === F[F.length - 1]?F + "range/":F + "/range/",F+=D));D=z.g$b?"random=" + (1E17 * (0,u.Xha)()).toFixed(0):"";h.config.sQ && z.BB && (D="sc=" + z.BB + (D?"&" + D:""));F=C[1]?F + ("?" + C[1] + (D?"&" + D:"")):F + (D?"?" + D:"");z.Tc && !(0,k.UAb)(F) && (z=h.config && h.config.pob) && (F=z.replace("{URL}",F).replace("{EURL}",encodeURIComponent(F)));B.url=F;}function f(z){var B;B=z.offset;if(void 0 !== B)return ((0,r.H8)(B),void 0 !== z.length?(z=B + z.length - 1,(0,r.H8)(z),B + "-" + z):B + "-");}function g(z,B,C,D){var F,H;F=D.wIb;H=D.headers;z.open(F?"POST":"GET",B,C);switch(D.responseType){case b.gaa:z.responseType="arraybuffer";break;case b.dTa:(0,q.Y$b)(z,"overrideMimeType",void 0,"text/xml");}F && (B={"Content-Type":(0,w.Fi)(F)?"text/plain":"application/x-octet-stream"},H=H?(0,q.Gf)(B,H):B);H && (0,q.Di)(H,function(E,G){z.setRequestHeader(E,G);});D.withCredentials && (z.withCredentials=!0);F?z.send(F):z.send();}Object.defineProperty(b,"__esModule",{value:!0});b.gaa=b.dTa=b.cTa=b.Muc=b.eTa=b.Luc=b.dzb=b.cqa=b.Ke=void 0;b.x9c=c;b.w9c=f;e=a(94886);h=a(29204);t=a(33096);k=a(52569);l=a(24066);m=a(36129);p=a(31276);r=a(45146);q=a(3887);u=a(22365);v=a(32219);w=a(32687);x=a(32934);y=a(57504);d.prototype.fRc=function(z){var B;B=new XMLHttpRequest();z=n(z);B.open("HEAD",z,!0);B.onreadystatechange=function(){2 === B.readyState && 200 <= B.status && 299 >= B.status && !1;};B.send();return function(){return B.abort();};};d.prototype.download=function(z,B){var L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa;function C(){var ca;if(!Q){Q=!0;aa && (Ba.clearTimeout(aa),aa=null);L.Cm.removeListener(b.eTa,H);L.oJa(Y,W);W && (W.onloadstart=null,W.onreadystatechange=null,W.onprogress=null,W.onerror=null,W.onload=null,W=W.onabort=null);Y.success || (Y.Ta != m.Y.eO?M.warn("Download failed",O,(0,m.UE)(Y)):M.trace("Download aborted",O));ca=T;T=null;null === ca || void 0 === ca?void 0:ca.reduceRight(function(da,ha){(0,v.Xh)(function(){return ha(Y);});},null);L.Cm.qd(b.dzb,Y,!0);}}function D(){aa && (Ba.clearTimeout(aa),aa=null);aa=Ba.setTimeout(E,Z?I:P);}function F(ca,da,ha){var S,N;Y.success=!1;Y.Ta=ca;S=(0,l.Cx)();N=Y.Jq;N.em=N.em || S;N.Ew=N.Ew || S;da && 0 < da && (Y.ds=da,Y.Ng=da.toString());ha && (Y.qf=ha);ca !== m.Y.E4 && ca !== m.Y.fO && ca !== m.Y.I4 || !W || (W.onabort=null,G());C();}function H(){A() || F(m.Y.E4);}function E(){F(Z?m.Y.fO:m.Y.I4);}function G(){try{null === W || void 0 === W?void 0:W.abort();}catch(ca){}}function J(){F(m.Y.eO);}L=this;(0,r.va)(B);M=(null === (K=null === z || void 0 === z?void 0:z.j) || void 0 === K?0:K.log)?(0,p.jo)(z.j,"Http"):this.sg;P=z.Gma || h.config.Gma;I=z.RWa || h.config.RWa;O={Num:this.PO++};Q=!1;T=[B];U={};this.M4b(z);Y=new y.b$a(z,G,E,U,function(ca){Q || ((0,r.va)(T,"Callback should be added before download starts."),T && T.unshift(ca));});Z=!1;(0,v.Xh)(function(){var ca;if((0,w.GUa)(z.url))try{if((c(z,Y),X=Y.url,(0,r.I8)(X),O.Url=X,A())){!1;W=new XMLHttpRequest();W.onreadystatechange=function(){2 === (null === W || void 0 === W?void 0:W.readyState) && (Z=!0,U.em=(0,l.Cx)(),W.onreadystatechange=null,D(),!1,L.oJa(Y,W),Y.AS({timestamp:U.em,connect:!0,mediaRequest:z,start:U.$H,rt:[U.em - U.$H],responseHeaders:Y.headers,httpCode:Y.wk}));};W.onprogress=function(da){Z=!0;U.Vn=da.loaded;D();L.oJa(Y,W);da={mediaRequest:z,bytes:da.loaded,timestamp:(0,l.Cx)(),bytesLoaded:da.loaded,responseHeaders:Y.headers,httpCode:Y.wk};Y.AS(da);};W.onload=function(da){if(!Q && W){(0,r.va)(void 0 === U.Ew);U.Ew=(0,l.Cx)();U.em=U.em || U.Ew;U.Vn=da.loaded;if(200 <= W.status && 299 >= W.status){a:switch((da=W,Y.type)){case b.gaa:da=da.response || new ArrayBuffer(0);break a;case b.dTa:da=da.responseXML;break a;default:da=da.responseText;}Y.parsed=!1;Y.content=da;Y.success=!0;}else 420 === W.status?F(m.Y.G4,W.status):F(m.Y.F4,W.status,W.response);C();}};W.onabort=J;W.onerror=function(){var da,ha;if(W){da=W.status;"undefined" !== typeof h.config.kvb && (da=h.config.kvb);if(0 < da){if(420 === da)F(m.Y.G4,da);else {try{ha=W.responseText;}catch(S){}F(m.Y.F4,da,ha);}}else F(m.Y.J4);}};ca=(0,l.Cx)();g(W,X,!0,z);L.Cm.qd(b.cqa,Y,!0);U.$H=ca;Y.q0({mediaRequest:z,timestamp:ca});D();L.Cm.addListener(b.eTa,H);}else (0,v.Xh)(F.bind(void 0,m.Y.E4));}catch(da){M.error("Exception starting download",da,O);F(m.Y.GBa,void 0,(0,q.jj)(da));}else F(m.Y.G9a);});return Y;};d.prototype.MJc=function(z){var B,C;B=new XMLHttpRequest();C=z.JJc;B.open("HEAD",z.url,!0);B.timeout=h.config.Qua;B.onreadystatechange=function(){2 === B.readyState && (!1,C && C.j0(B.status));};B.ontimeout=B.onerror=function(){!1;C && C.eXa(B.status);};B.send();};d.prototype.M4b=function(z){var B;try{B=z.url;(0,w.GUa)(B)?0 === B.indexOf("https")?this.stats.ssl++:0 === B.indexOf("http")?this.stats["non-ssl"]++:this.stats.invalid++:this.stats.invalid++;}catch(C){}};d.prototype.oJa=function(z,B){var C;if((void 0 === z.wk || void 0 === z.headers) && B){z.wk=B.status;C={};B.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(function(D){var F;F=Ea(D.split(": "));D=F.next().value;F=sb(F).join(": ");D && (C[D.toLowerCase()]=F);});z.headers=C;}};A=t.sfb;b.Ke=new d();b.cqa=1;b.dzb=2;b.Luc=3;b.eTa=4;b.Muc=5;b.cTa=b.Ke.Nia.Ca;b.dTa=b.Ke.Nia.v1b;b.gaa=b.Ke.Nia.O5a;Ba._cad_global.http=b.Ke;},57504:function(t,b,a){var n;function d(c,f,g,e,h){this.Tka=this.AS=this.q0=n.eJ;this.request=c;this.type=c.responseType;this.Jq=e;this.abort=f;this.timeout=g;this.Tka=h;}Object.defineProperty(b,"__esModule",{value:!0});b.b$a=void 0;n=a(33096);d.prototype.PPc=function(c){this.q0=c;};d.prototype.bQc=function(c){this.AS=c;};b.b$a=d;},31276:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperty(b,"__esModule",{value:!0});b.Xa=b.yeb=b.X9=b.jo=b.gn=b.log=b.th=b.vnb=b.XF=b.CC=b.Jd=b.Z8b=b.qLa=b.X8b=b.Y8b=b.Ll=b.M2=b.Rfa=b.zj=b.Ad=b.Ma=void 0;b.xZ=function(){return d.md.get(n.kV);};d=a(83989);t=a(87386);n=a(56800);c=a(84408);f=a(6405);g=a(2248);e=a(32687);h=a(79274);k=a(30869);a=a(53085);b.Ma=d.md.get(k.Li);b.Ad=d.md.get(a.Cl);b.zj=d.md.get(c.oF);b.Rfa=b.zj.encode.bind(b.zj);b.M2=b.zj.decode.bind(b.zj);b.Ll=d.md.get(f.MN);b.Y8b=b.Ll.encode.bind(b.Ll);b.X8b=b.Ll.decode.bind(b.Ll);b.qLa=b.Ll.Foa.bind(b.Ll);b.Z8b=b.Ll.DPb.bind(b.Ll);b.Jd=d.md.get(g.mm);b.CC=function(l){l=(0,e.Fi)(l)?(0,b.M2)(l):l;return b.Jd.encode(l);};b.XF=b.Jd.decode.bind(b.Jd);b.vnb=function(l){return (0,b.Rfa)((0,b.XF)(l));};b.th=d.md.get(t.zb);b.log=b.th.wb("General");b.gn=function(l,m){return b.th.wb(l,void 0,m);};b.jo=function(l,m,p){return b.th.wb(m,l,p);};b.X9=function(l,m,p,r){return b.th.wb(l,void 0,r,m,p);};b.yeb=function(l,m,p){return d.md.get(h.w5)(l,m,p).ufa();};b.Xa=d.md;},93114:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v;Object.defineProperty(b,"__esModule",{value:!0});d=a(82956);n=a(33096);c=a(29204);f=a(13044);g=a(24066);t=a(36129);e=a(31276);h=a(77134);k=a(22365);l=a(32219);m=a(32687);p=a(45118);r=a(31850);a=a(11479);v=e.Xa.get(a.ek);v.register(t.da.l$a,function(w){var y;function x(){var A,z,B;A=v.startTime;z={browserua:k.OV,browserhref:k.eia.href,initstart:A,initdelay:v.endTime - A};(A=k.Ni.documentMode) && (z.browserdm="" + A);(0,m.n_)(c.config.jub) && (z.fesn=c.config.jub);Object.assign(z,(0,d.Kxb)());B=k.eC && k.eC.timing;B && c.config.qAc.map(function(C){var D;D=B[C];D && (z["pt_" + C]=D - (0,g.Nbc)());});A=y.Jqc();Object.entries(A).forEach(function(C){var D;D=Ea(C);C=D.next().value;D=D.next().value;return z["m_" + C]=D;});A=u.Tt("startup","info",z,f.pz.WPa);q.Vc(A);}u=e.Xa.get(r.YE);q=e.Xa.get(p.Up);y=e.Xa.get(h.mW);v.iba(function(){q.Tb();(0,l.Xh)(x);});w(n.Oh);});},86258:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.x_b=function(h){var m,p,r,q;function k(){p || (h.fh("pdsb"),p=c.Xa.get(f.v5)().then(function(u){q=u;h.fh("pdsc");return u;}).catch(function(u){m.error("Unable to initialize the playdata services",u);h.fh("pdse");throw u;}));return p;}function l(){r=!0;q && q.close();n.xe.removeListener(n.hn,l);}m=(0,c.jo)(h,"PlayDataManager");r=!1;h.fh("pdctor");h.addEventListener(g.ja.ph,function(){n.xe.removeListener(n.hn,l);});h.addEventListener(g.ja.ph,function(){var u;if(!r){h.zXc();u=[(function(){return k().then(function(v){return v.Qea(h.ga);}).then(function(){m.info("Sent the playdata");}).catch(function(v){m.error("Unable to send the playdata",v);});})(),(function(){return new Promise(function(v){c.Xa.get(e.Up).flush(!1).catch(function(){m.error("Unable to send logblob");v(void 0);}).then(function(){v(void 0);});});})()];Promise.all(u).then(function(){h.bta();}).catch(function(){h.bta();});}});n.xe.addListener(n.hn,l);return {};};d=a(33096);n=a(37509);c=a(31276);t=a(36129);f=a(96687);g=a(85001);e=a(45118);a=a(11479);c.Xa.get(a.ek).register(t.da.WI,function(h){h(d.Oh);});},8129:function(t,b,a){var n,c,f,g,e;function d(h){this.Gr=h;}Object.defineProperty(b,"__esModule",{value:!0});b.Z9a=void 0;n=a(48795);c=a(45146);f=a(31276);g=a(32687);e=a(3887);d.prototype.I$=function(h,k){var l,m,p;l=this.Gr;m=l.pS.Ke || m;h=(0,g.Saa)(h.body)?(0,f.Rfa)(h.body):h.body;(0,c.I8)(h,"Msl should not be sending empty request");l={url:l.url,wIb:h,withCredentials:!0,tK:"nq-" + l.method,headers:l.headers};h=this.Gr.timeout;l.Gma=h;l.RWa=h;p=m.download(l,function(r){try{if(r.success)k.result({body:r.content,headers:r.headers});else throw (0,e.Gf)(new n.default("HTTP error, SubCode: " + r.Ta + (r.ds?", HttpCode: " + r.ds:"")),{cadmiumResponse:r});}catch(q){k.error(q);}});return {abort:function(){p.abort();}};};b.Z9a=d;},41292:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r,q,u,v){this.log=p;this.XCc=r;this.pS=q;this.Bs=u;this.Y=v;this.rNb=[];}Object.defineProperty(b,"__esModule",{value:!0});n=a(51411);c=a(1966);f=a(36114);g=a(14348);e=a(42979);h=a(14945);k=a(70390);l=a(94971);m=a(5988);d.prototype.E5b=function(p){this.rNb.push(p);};d.prototype.send=function(p){var r;r=this;return new Promise(function(q,u){var v,w,x;v=p.timeout;w=new m.default.UYb(r.log,r.pS,p,r.Bs.bR());x=new l.Zhb(p.url);r.log.trace("Sending MSL request");r.XCc.request(r.pS,w,x,v,{result:function(y){var A;r.log.trace("Received MSL response",{Method:p.method});if(y){p.allowTokenRefresh && r.lua();A=y.input.AZ();A?(r.lPa(A,p.profileGuid || p.userId),u({error:A})):r.MKc(y,v,{result:function(z){q({headers:y.input.q$(),body:new g.pja().we(z)});},timeout:function(){u({subCode:this.Y.nbb});},error:function(z){u({headers:y.input.q$(),error:z});}});}else u({success:!1,error:new c.default(f.default.aC,"Null response stream"),description:"Null response stream"});},timeout:function(){u({success:!1,subCode:this.Y.obb});},error:function(y){u({success:!1,error:y});}});});};d.prototype.lPa=function(p,r){p.errorCode === n.default.P.pg || p.errorCode === n.default.P.li?(this.Bs.Bbc(),this.lua()):p.errorCode !== n.default.P.Ne && p.errorCode !== n.default.P.jd || this.xda(r);};d.prototype.vSa=function(){return this.Bs.vSa();};d.prototype.xda=function(p){if(p=this.Bs.Px(p))(this.Bs.xda(p),this.lua());};d.prototype.Iwc=function(p){return p && p.errorCode == n.default.P.jd;};d.prototype.Hwc=function(p){return p instanceof k.T3;};d.prototype.n$=function(p){return p && p.errorCode;};d.prototype.zsc=function(p){var r,q;r=this.Bs.dD();p=this.Bs.Px(p);q=r?this.Bs.kA(r):null;return {bc:r,kg:p,$o:q};};d.prototype.MKc=function(p,r,q){var u;u=[];(function w(){p.input.read(-1,r,{result:function(x){(0,e.default)(q,function(){if(x)(u.push(x),w());else switch(u.length){case 0:return new Uint8Array(0);case 1:return u[0];default:return h.default.concat(u);}},null);},timeout:function(){q.timeout();},error:function(x){q.error(x);}});})();};d.prototype.lua=function(){var p;p=this;this.Bs.Esc({result:function(r){for(var q=p.rNb.slice(),u=0;u < q.length;u++)q[u]({zSc:r});},timeout:function(){p.log.error("Timeout getting store state","");},error:function(r){p.log.error("Error getting store state","" + r);}});};d.prototype.TK=function(p){var r;r=this.Bs.dD();(p=this.Bs.Px(p)) && !p.Ch(r) && (p=null);return this.Bs.TK(r,p);};d.prototype.nKb=function(){var p;p=this.Bs.dD();this.Bs.TK(p,null).find(function(r){return "cad" === r.name;}) && (this.Bs.nva("cad",p,null),this.lua());};b["default"]=d;},5988:function(t,b,a){var c,f,g,e,h,k;function d(l,m){this.sg=l;this.Gr=m;}function n(l,m,p,r){this.sg=l;this.A3b=m;this.Gr=p;this.sJ=r;}Object.defineProperty(b,"__esModule",{value:!0});c=a(23710);f=a(48795);g=a(49123);e=a(14348);h=a(42979);k=a(61693);n.prototype.WRa=function(){return null;};n.prototype.Nqa=function(){return !1;};n.prototype.Woa=function(){return {};};n.prototype.Caa=function(){return !!this.Gr.encrypted;};n.prototype.lu=function(){return !!this.Gr.nonReplayable;};n.prototype.Oaa=function(){return !0;};n.prototype.qA=function(){return this.Gr.profileGuid || this.Gr.userId || null;};n.prototype.Ipa=function(l,m,p,r){var q;q=this.Gr;(0,h.default)(r,function(){return l || !q.shouldSendUserAuthData?null:q.email?new c.MAa(q.email,q.password):q.useNetflixUserAuthData || p && q.sendUserAuthIfRequired?new g.WDa():null;},null);};n.prototype.bR=function(l){l.result(this.Gr.allowTokenRefresh?[this.sJ]:[]);};n.prototype.o3a=function(l,m,p){var r,q,u,v,w;r=this.sg;q=(this.Gr.serviceTokens || []).slice();u=this.A3b;m=u.Fm;v=l.jb.dD();w=m.Px(this.qA());(function y(){var A;A=q.shift();if(A)try{A instanceof k.vgb?(l.Mlb(A),y()):(0,k.aua)(u,A,v,w,null,{result:function(z){try{l.Mlb(z);}catch(B){r.warn("Exception adding service token","" + B);}y();},error:function(z){r.warn("Error parsing service token","" + z);y();}});}catch(z){r.warn("Exception processing service token","" + z);y();}else p.result(!0);})();};n.prototype.write=function(l,m,p){var r;r=new e.pja().vd(this.Gr.body);l.write(r,0,r.length,m,{result:function(q){q != r.length?p.error(new f.default("Not all data was written to output.")):l.flush(m,{result:function(){p.result(!0);},timeout:function(){p.timeout();},error:function(u){p.error(u);}});},timeout:function(){p.timeout();},error:function(q){p.error(q);}});};n.prototype.Zoa=function(){this.gjb || (this.gjb=new d(this.sg,this.Gr));return this.gjb;};d.prototype.$Oc=function(l){this.sg.trace("Sent MSL header",this.du(this.Gr,l),("serviceTokens" in l) && l.SM.map(this.WAc).join("\n"));};d.prototype.gLc=function(l){var m,p;m=this.du(this.Gr,l);p=l.errorCode;p?this.sg.warn("Received MSL error header",m,{errorCode:p,errorMessage:null === l || void 0 === l?void 0:l.errorMessage,internalCode:null === l || void 0 === l?void 0:l.uaa}):this.sg.trace("Received MSL header",m);};d.prototype.du=function(l,m){var p,r;p=null === m || void 0 === m?void 0:m.bc;r=null === m || void 0 === m?void 0:m.kg;m=null === m || void 0 === m?void 0:m.SM;return {NccpMethod:l.method,UserId:l.userId,UT:r && r.Nf,MT:p && p.Nf + ":" + p.ak,STCount:m && m.length};};d.prototype.WAc=function(l){return l.ji();};b["default"]={UYb:n,V1c:d};},49614:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v;function d(w,x,y,A,z,B){var C,D,F;C=l.NDa.call(this) || this;D=new k.acb([q.NI.tCa],null,null);F=new g.Pfb();F.Z5b(x,y);A[e.TE.aW]=new f.Ofb(null,F);x={};x[u.wja.BAa]=new n.y8a();x[v.kia.SDa]=new c.vcb();y=new r.B7a();F=new p.R6a();C.wka=F;C.uF=D;C.Dg=y;C.TO=z;C.u2b=A;C.O4b=x;C.c3b=B;C.Fm=w;return C;}Object.defineProperty(b,"__esModule",{value:!0});n=a(25606);c=a(79925);f=a(18089);g=a(88774);e=a(36332);h=a(75948);k=a(68480);l=a(38470);m=a(31809);p=a(48603);r=a(30370);q=a(51411);u=a(91331);v=a(32256);Ia(d,l.NDa);d.prototype.getTime=function(){return Date.now();};d.prototype.Fxb=function(){return new m.wfb();};d.prototype.cpa=function(w){w.result(this.TO);};d.prototype.Gpc=function(w){return e.default.K$(w);};d.prototype.dpa=function(w){return this.u2b[w];};d.prototype.itc=function(w){return u.default.K$(w);};d.prototype.iyb=function(w){return this.O4b[w];};d.prototype.Ewb=function(w){return h.default.K$(w);};d.prototype.mRa=function(w){return this.c3b.filter(function(x){return x.scheme == w;})[0];};b["default"]=d;},74810:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y;function d(A,z,B,C,D,F){var H;H=p.hW.call(this) || this;H.sg=A;H.ojb=z;H.sJ=B;H.b2b=C;H.Nkb=D;H.LW=F;return H;}Object.defineProperty(b,"__esModule",{value:!0});n=a(50441);c=a(1966);f=a(36114);g=a(44127);e=a(42979);h=a(96837);k=a(10558);l=a(43088);m=a(9E3);p=a(25137);r=a(58892);q=a(85065);u=a(61693);v=a(72672);w=a(60426);x={"streaming.servicetokens.movie":!0,"streaming.servicetokens.license":!0};Ia(d,p.hW);d.prototype.sea=function(A,z,B){var C;C=this;C.sg.trace("Adding MasterToken",{SequenceNumber:A.ak,SerialNumber:A.Nf,Expiration:A.tk().getTime()});p.hW.prototype.sea.call(this,A,z);!B && (A=C.b2b) && (C.sg.trace("Generating new keyx request data"),A().then(function(D){D=Ea(D);C.sJ=D.next().value;C.JIa=D.next().value;},function(D){C.sg.error("Unable to generate new keyx request data","" + D);}));};d.prototype.bla=function(A,z){this.sg.trace("Adding UserIdToken",{UserId:A,SerialNumber:z.Nf,MTSerialNumber:z.Vj,Expiration:z.tk().getTime()});p.hW.prototype.bla.call(this,A,z);};d.prototype.Zka=function(A){p.hW.prototype.Zka.call(this,A.filter(function(z){return !x[z.name];}));};d.prototype.vSa=function(){var A,z;A=[];for(z in this.Zy)A.push(z);return A;};d.prototype.bR=function(){return this.sJ;};d.prototype.Esc=function(A){var z;z=this;(0,e.default)(A,function(){var B;B=z.dD();B?z.sqc(B,{result:function(C){(0,e.default)(A,function(){var D,F;D=z.Zy;F=Object.keys(D).map(function(H){var E;E=D[H];return {userId:H,userIdTokenJSON:z.toJSON(D[H]),serviceTokenJSONList:z.TK(B,E).map(z.toJSON)};});C.esn=z.ojb;C.masterTokenJSON=z.toJSON(B);C.userList=F;z.JIa && Object.keys(z.JIa).forEach(function(H){C[H]=z.JIa[H];});return C;},null);},timeout:A.timeout,error:A.error}):A.result(null);},null);};d.prototype.sqc=function(A,z){var B;B=this;(0,e.default)(z,function(){var C;C=B.kA(A);if(!(C instanceof v.YGa))throw new c.default(f.default.aC,"CryptoContext was not a SymmetricCryptoContext");C={encryptionKey:C.Kv,hmacKey:C.mI};if(C.encryptionKey && C.hmacKey){if(B.LW)B.WXc(C,z);else return C;}else throw new c.default(f.default.aC,"Unable to get CryptoContext keys");},null);};d.prototype.toJSON=function(A){return {tokendata:(0,g.zi)(A.cr),signature:(0,g.zi)(A.Jk)};};d.prototype.Zxb=function(A,z){y?z.result(y):Promise.resolve().then(function(){return n.Tg.generateKey({name:A},!1,["wrapKey","unwrapKey"]);}).then(function(B){y=B;z.result(y);}).catch(function(){z.error(new c.default(f.default.aC,"Unable to get system key"));});};d.prototype.WXc=function(A,z){var B;B=this;this.Zxb(this.Nkb,{result:function(C){(0,e.default)(z,function(){var D,F,H,E;D=A.encryptionKey;F=A.hmacKey;H=D.$netflix$msl$wrapsys;E=F.$netflix$msl$wrapsys;if(H && E)return {XXc:H,YXc:E};Promise.resolve().then(function(){return Promise.all([n.Tg.wrapKey(B.LW,D,C,C.algorithm),n.Tg.wrapKey(B.LW,F,C,C.algorithm)]);}).then(function(G){H=(0,g.zi)(G[0],!0);D.$netflix$msl$wrapsys=H;E=(0,g.zi)(G[1],!0);F.$netflix$msl$wrapsys=E;z.result({XXc:H,YXc:E});}).catch(function(G){z.error(new c.default(f.default.aC,"Error wrapping key with SYSTEM key",G));});},null);},timeout:z.timeout,error:z.error});};d.prototype.wVc=function(A,z){var B;B=this;this.Zxb(this.Nkb,{result:function(C){(0,e.default)(z,function(){var D,F;D=(0,g.nk)(A.wrappedEncryptionKey,!0);F=(0,g.nk)(A.wrappedHmacKey,!0);Promise.resolve().then(function(){return Promise.all([n.Tg.unwrapKey(B.LW,D,C,C.algorithm,h.Oe.FN,!1,k.qF.lha),n.Tg.unwrapKey(B.LW,F,C,C.algorithm,h.Oe.wV,!1,k.qF.eW)]);}).then(function(H){var E;E=H[0];H=H[1];E.$netflix$msl$wrapsys=A.wrappedEncryptionKey;H.$netflix$msl$wrapsys=A.wrappedHmacKey;z.result({encryptionKey:E,hmacKey:H});}).catch(function(H){z.error(new c.default(f.default.aC,"Error wrapping key with SYSTEM key",H));});},null);},timeout:z.timeout,error:z.error});};d.prototype.bAc=function(A,z,B,C){var H,E;function D(G,J){var L;try{L=B.userList.slice();}catch(K){}L?(function M(){var P,I;P=L.shift();I={};if(P){for(var O in P.userIdTokenJSON)I[O]=(0,g.nk)(P.userIdTokenJSON[O]);I=new m.cj(I);(0,q.pYa)(z,I,G,{result:function(Q){try{H.bla(P.userId,Q);F(G,Q,P.serviceTokenJSONList,{result:M,timeout:M,error:M});}catch(T){M();}},error:function(){M();}});}else J.result();})():J.result();}function F(G,J,L,K){var M,P;try{M=L.slice();}catch(I){}if(M){P=H.kA(G);(function O(){var Q,T;Q=M.shift();T={};if(Q){for(var U in Q)T[U]=(0,g.nk)(Q[U]);Q=new m.cj(T);T=z.Dg.Bp(Q.get("tokendata")).we("name");U={};U[T]=P;(0,u.aua)(z,Q,G,J,U,{result:function(X){H.Zka([X]);O();},error:function(){O();}});}else K.result();})();}else K.result();}H=this;E=H.sg;B.esn != H.ojb?(E.error("Esn mismatch, starting fresh"),C.error()):(function(G){var K,M,P,I,O;function J(){!K && M && P && I && (K=!0,new w.yGa(P,{result:function(T){new w.yGa(I,{result:function(U){U=new l.I5(z,M,A.esn,T,U);H.sea(M,U,!0);G.result(M);},error:G.error});},error:G.error}));}function L(T,U){E.error(T,U && "" + U);K || (K=!0,G.error(new c.default(f.default.aC,T)));}O={};if(B.masterTokenJSON){for(var Q in B.masterTokenJSON)O[Q]=(0,g.nk)(B.masterTokenJSON[Q]);O=new m.cj(O);(0,r.Yta)(z,O,{result:function(T){M=T;J();},error:function(T){L("Error parsing MasterToken",T);}});H.LW?H.wVc(B,{result:function(T){P=T.encryptionKey;I=T.hmacKey;J();},timeout:function(){L("Timeout unwrapping keys");},error:function(T){L("Error unwrapping keys",T);}}):Promise.resolve().then(function(){return n.Tg.encrypt({name:h.Oe.FN.name,iv:new Uint8Array(16)},B.encryptionKey,new Uint8Array(1));}).then(function(){P=B.encryptionKey;}).catch(function(){L("Error loading encryptionKey");}).then(function(){return n.Tg.sign(h.Oe.wV,B.hmacKey,new Uint8Array(1));}).then(function(){I=B.hmacKey;J();}).catch(function(){L("Error loading hmacKey");});}else L("Persisted store is corrupt");})({result:function(G){D(G,C);},timeout:C.timeout,error:C.error});};b["default"]=d;},24354:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.Rcc=function(c){return (0,n.Scc)(c,{name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-1"}},d.Vu.dCa);};d=a(93562);n=a(43124);},43124:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;Object.defineProperty(b,"__esModule",{value:!0});b.Scc=function(p,r,q){var w;function u(){return Promise.resolve().then(function(){return c.Tg.generateKey(r,!1,["wrapKey","unwrapKey"]);}).then(function(x){return v(x.publicKey,x.privateKey);});}function v(x,y){return Promise.all([new Promise(function(A,z){new g.Gia(x,{result:A,error:function(B){z(new l.default(m.default.aC,"Unable to create keyx public key",B));}});}),new Promise(function(A,z){new e.ifb(y,{result:A,error:function(B){z(new l.default(m.default.aC,"Unable to create keyx private key",B));}});})]).then(function(A){return [new d.Sia("rsaKeypairId",q,A[0],A[1]),w?{keyxPublicKey:x,keyxPrivateKey:y}:null];});}w=!p.systemKeyWrapFormat;return Promise.resolve().then(function(){var x,y;x=p.storeState;y=x && x.keyxPublicKey;x=x && x.keyxPrivateKey;return w && y && x?v(y,x):u();}).then(function(x){var y,A,z;x=x[0];y={};y[n.TE.NONE]=new h.Xhb(new f.cEa());A=new k.tHa(p.esn);z=[new d.B5a(new f.cEa())];return {elc:y,dlc:A,gyc:z,qD:x,qfc:w?u:void 0};});};d=a(93562);n=a(36332);c=a(50441);f=a(18461);g=a(42486);e=a(36911);h=a(28296);k=a(2479);l=a(1966);m=a(36114);},65799:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u,v,w;function d(){return k.Zha.apply(this,arguments) || this;}function n(){return h.XDa.apply(this,arguments) || this;}Object.defineProperty(b,"__esModule",{value:!0});b.BWb=void 0;b.Hfc=function(x,y){var A,z,B,C,D;A=x.log;z=x.notifyMilestone || (function(){});Promise.resolve().then(function(){var F;if(!(f.Wn && f.Wn.generateKey && f.Wn.importKey && f.Wn.unwrapKey))throw new q.default(r.default.aC,"No WebCrypto");F=f.Wn.generateKey({name:"AES-CBC",length:128},!0,p.qF.lha);(0,g.c1a)("function" === typeof F.then?g.Vb.Dr:g.Vb.tt);z("mslisik");return g.Tg.importKey("spki",x.serverIdentityKeyData,m.Oe.z5,!1,["verify"]);}).then(function(F){return new Promise(function(H,E){new l.Gia(F,{result:H,error:function(){E(new q.default(r.default.sXb,"Unable to create server identity verification key"));}});});}).then(function(F){B=F;z("mslcc");return (0,c.Rcc)(x);}).then(function(F){var H;C=new w.default(A,x.esn,F.qD,F.qfc,x.authenticationKeyNames.s,x.systemKeyWrapFormat);D=new u.default(C,x.serverIdentityId,B,F.elc,F.dlc,F.gyc);H=x.storeState;if(H)return (z("mslss"),A.info("Loading store state"),new Promise(function(E){C.bAc(x,D,H,{result:E,timeout:E,error:E});}));A.info("No store state, starting fresh");}).then(function(){var F;F=new e.hcb(void 0,new n());z("msldone");y.result(new v.default(A,F,D,C,x.ErrorSubCodes));}).catch(function(F){y.error(F);});};c=a(24354);f=a(22365);g=a(50441);e=a(84898);h=a(61368);k=a(34801);l=a(42486);m=a(96837);p=a(10558);r=a(36114);q=a(1966);u=a(49614);v=a(41292);w=a(74810);Ia(n,h.XDa);n.prototype.qNa=function(x,y,A,z,B,C){new d(x,y,A,z,B,C);};Ia(d,k.Zha);d.prototype.q$=function(){return "function" === typeof this.Dt.q$?this.Dt.q$() || ({}):{};};b.BWb=d;},46493:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);n=a(62807);c=a(80824);f=a(50040);g=a(1481);e=a(29204);h=a(33096);k=a(36129);l=a(45146);m=a(31276);p=a(77134);r=a(63156);q=a(17892);u=a(3887);v=a(22365);w=a(52569);x=a(45842);y=a(5021);t=a(11479);A=a(50681);z=a(59219);B=a(32934);C=a(71501);D=a(65799);F=a(8129);H={};E=m.Xa.get(t.ek);E.register(k.da.n$a,function(G){var M,P,I,O,Q,T,U,X,Y,W,Z;function J(aa){var ca;aa && aa.userList && e.config.MQc && (aa.userList=[]);ca=new n.zib();c.QDa.Se(ca);aa={esn:g.gp.ij,esnPrefix:g.gp.Yt,authenticationKeyNames:e.config.H8b,systemKeyWrapFormat:e.config.DTc,serverIdentityId:"MSL_TRUSTED_NETWORK_SERVER_KEY",serverIdentityKeyData:W,storeState:aa,notifyMilestone:E.fh.bind(E),log:I,ErrorSubCodes:{MSL_REQUEST_TIMEOUT:k.Y.obb,MSL_READ_TIMEOUT:k.Y.nbb}};(0,D.Hfc)(aa,{result:function(da){L(da);},timeout:function(){G({Ta:k.Y.mbb});},error:function(da){G(K(k.Y.mbb,void 0,da));}});}function L(aa){var da,ha,S;function ca(){Y && m.Xa.get(q.II).create().then(function(N){return N.save(T,S,!1);}).catch(function(N){I.error("Error persisting msl store",(0,k.UE)(N));});}da=this;ha=m.Xa.get(x.nJ)((0,y.ic)(100));Q && aa.E5b(function(N){S=N.zSc;ha.ig(ca);});(0,u.Gf)(H,{E9c:function(){X=!0;},send:function(N){function V(){var ba,fa;ba=N.pS;fa={method:N.method,nonReplayable:N.tFb,encrypted:N.dA,userId:N.ERb,body:N.body,timeout:2 * N.timeout,url:new F.Z9a(N),allowTokenRefresh:Y,sendUserAuthIfRequired:Z,shouldSendUserAuthData:e.config.VQc};ba.email?(fa.email=ba.email,fa.password=ba.password || ""):X && (fa.useNetflixUserAuthData=!0);return fa;}return new Promise(function(ba,fa){var ia;ia=V();aa.send(ia).then(function(ka){X && (X=!1);ba({body:ka.body,headers:ka.headers});}).catch(function(ka){ka.error?fa(K(ka.error.cadmiumResponse && ka.error.cadmiumResponse.Ta?ka.error.cadmiumResponse.Ta:aa.Iwc(ka.error)?k.Y.lbb:aa.Hwc(ka.error)?k.Y.jYb:k.Y.iYb,aa.n$(ka.error),ka.error)):(I.error("Unknown MSL error",ka),ka.subCode=ka.subCode,fa({Ta:ka.subCode?ka.subCode:k.Y.oYb}));});});},oS:aa});z.GO.nX.mslFetch=function(N,V){return d.__awaiter(da,void 0,void 0,function fa(){var ia,ka,pa;return Ua(fa,function(oa){if(1 == oa.Ds)return (ia=m.Xa.get(C.ZV),cb(oa,H.send({pS:{Ke:m.Xa.get(B.bC),profile:ia},timeout:8E3,url:N.toString(),body:null === V || void 0 === V?void 0:V.body,headers:{"Content-Encoding":"msl_v1","Content-Type":"application/json"},ERb:ia,tMc:!1,tFb:!0,dA:!0}),2));ka=oa.TU;pa={get body() {this.bodyUsed=!0;return ka.body;}};return oa.return((pa.bodyUsed=!1,pa.ok=!0,pa.status=200,pa.statusText="OK",pa.type="basic",pa.url=N.toString(),pa.headers=new Headers(ka.headers),pa.text=function(){return Promise.resolve(this.body);},pa.json=function(){return Promise.resolve(JSON.parse(this.body));},pa.arrayBuffer=function(){return Promise.resolve(new Uint8Array(this.body));},pa.clone=function(){return Object.assign({},this);},pa.blob=function(){return this.arrayBuffer().then(function(la){return new Blob([la]);});},pa.formData=function(){throw Error("Not implemented");},pa.redirected=!1,pa));});});};G(h.Oh);m.Xa.get(A.PDa).bDc(H);}function K(aa,ca,da){var ha,S,N,V;N={Ta:aa,Zna:ca};if(da){V=function(ba){var fa;ba=ba || "" + da;if(da.stack){fa="" + da.stack;ba=0 <= fa.indexOf(ba)?fa:ba + fa;}return ba;};if(S=da.cadmiumResponse){if(ha=S.Ng && S.Ng.toString())S.Ng=ha;S.Ta=aa;S.Zna=ca;S.qf=V(da.message);S.error={subCode:aa,extCode:ha,EH:ca,data:da.cause,message:da.message};return S;}V=V(da.errorMessage);ha=(0,u.am)(da.uaa) || (0,u.am)(da.error && da.error.uaa);S=void 0 !== da.x9?(0,w.UFb)(da.x9):void 0;}V && (N.qf=V);ha && (N.Ng=ha);N.error={subCode:aa,extCode:ha.toString(),EH:ca,data:S,message:V};return N;}(0,l.va)(e.config);if(v.cJ && v.Wn && v.Wn.unwrapKey){M=m.Xa.get(p.mW);P=r.Uu.Nn;I=(0,m.gn)("Msl");O=e.config.YCc;Q=e.config.$Cc;T=e.config.zG?"mslstoretest":"mslstore";U=f.eU.uMb;X=!0;Y=!U || U.success;W=(0,m.XF)(e.config.zG?"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm84o+RfF7KdJgbE6lggYAdUxOArfgCsGCq33+kwAK/Jmf3VnNo1NOGlRpLQUFAqYRqG29u4wl8fH0YCn0v8JNjrxPWP83Hf5Xdnh7dHHwHSMc0LxA2MyYlGzn3jOF5dG/3EUmUKPEjK/SKnxeKfNRKBWnm0K1rzCmMUpiZz1pxgEB/cIJow6FrDAt2Djt4L1u6sJ/FOy/zA1Hf4mZhytgabDfapxAzsks+HF9rMr3wXW5lSP6y2lM+gjjX/bjqMLJQ6iqDi6++7ScBh0oNHmgUxsSFE3aBRBaCL1kz0HOYJe26UqJqMLQ71SwvjgM+KnxZvKa1ZHzQ+7vFTwE7+yxwIDAQAB":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlibeiUhffUDs6QqZiB+jXH/MNgITf7OOcMzuSv4G3JysWkc0aPbT3vkCVaxdjNtw50zo2Si8I24z3/ggS3wZaF//lJ/jgA70siIL6J8kBt8zy3x+tup4Dc0QZH0k1oxzQxM90FB5x+UP0hORqQEUYZCGZ9RbZ/WNV70TAmFkjmckutWN9DtR6WUdAQWr0HxsxI9R05nz5qU2530AfQ95h+WGZqnRoG0W6xO1X05scyscNQg0PNCy3nfKBG+E6uIl5JB4dpc9cgSNgkfAIeuPURhpD0jHkJ/+4ytpdsXAGmwYmoJcCSE1TJyYYoExuoaE8gLFeM01xXK5VINU7/eWjQIDAQAB");Z=!!e.config.s0a;m.Xa.get(q.II).create().then(function(aa){O?aa.remove(T).then(function(){J();}).catch(function(ca){I.error("Unable to delete MSL store",(0,k.UE)(ca));J();}):Q?aa.load(T).then(function(ca){M.mark(P.lYb);J(ca.value);}).catch(function(ca){ca.Ta == k.Y.jF?(M.mark(P.nYb),J()):(I.error("Error loading msl store",(0,k.UE)(ca)),M.mark(P.mYb),aa.remove(T).then(function(){J();}).catch(function(da){G(da);}));}):J();}).catch(function(aa){I.error("Error creating app storage while loading msl store",(0,k.UE)(aa));G(aa);});}else G({Ta:k.Y.kYb});});},78719:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.cWb=function(e,h){function k(m){var p,r;p=m.error || m;r=(0,c.jj)(p);h.error("uncaught exception",p,r);(p=(p=p && p.stack) && d.config.wQb && d.config.mVc?0 <= p.indexOf(d.config.wQb):void 0) && (m && m.stopImmediatePropagation && m.stopImmediatePropagation(),e.wg(f.da.Ohb));}function l(){n.xe.removeListener(n.Lpa,k);e.removeEventListener(g.ja.ph,l);e.removeEventListener(g.ja.iB,l);}try{n.xe.addListener(n.Lpa,k);e.addEventListener(g.ja.ph,l);d.config.ivc && e.addEventListener(g.ja.iB,l);}catch(m){h.error("exception in exception handler ",m);}};d=a(29204);n=a(37509);c=a(3887);f=a(36129);g=a(85001);},42654:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperty(b,"__esModule",{value:!0});b.mXb=function(m){var r,q,u,v;function p(){m.state.value !== h.Fc.zf || m.Zb.value !== h.Nb.Oi && m.Zb.value !== h.Nb.Zw?q.Yq():q.DK();}r=d.config.vHc;if(!m.l_() && r){q=k.Xa.get(l.Q5)(r,function(){m.fireEvent(h.ja.UZ,c.da.qia);});m.Zb.addListener(p);m.state.addListener(p);if(d.config.uTa){u=(0,n.Cx)();v=new f.xfb(d.config.uTa,function(){var w,x;w=(0,n.Cx)();x=w - u;x > r && (m.fireEvent(h.ja.UZ,c.da.Eha),v.hpb());x > 2 * d.config.uTa && (m.vTa=(0,g.jz)(x,m.vTa || 0));u=w;});v.nQc();}m.addEventListener(h.ja.ph,function(){q.Yq();(0,e.$c)(v) && v.hpb();});}};d=a(29204);n=a(24066);c=a(36129);f=a(981);g=a(22365);e=a(32687);h=a(85001);k=a(31276);l=a(4246);},33059:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;function d(y,A){this.j=y;this.sl=A;this.vTc=!1;this.log=(0,f.jo)(this.j,"MediaAppendManager");this.ac=this.j.ac;this.Ga=this.ac.Ga;this.cga=this.C7=!1;this.audio={type:c.Ln.audio,Ex:[],yp:[],M0:!1};this.video={type:c.Ln.video,Ex:[],yp:[],M0:!1};y={};this.yU=(y[v.u.U]=this.video,y[v.u.X]=this.audio,y);this.closed=!1;this.vH=n.config.vH;this.ssa=n.config.ssa;this.dM=this.j.qb.Pg?n.config.TXa:n.config.dM;this.pnb=!0;this.Jd=f.Xa.get("Base64EncoderSymbol");this.UPa=!1;(0,e.va)(this.vH > this.ssa,"bad config");(0,e.va)(this.vH > this.dM,"bad config");}Object.defineProperty(b,"__esModule",{value:!0});b.Cbb=void 0;n=a(29204);c=a(51344);f=a(31276);g=a(36129);e=a(45146);h=a(3887);k=a(33096);l=a(85001);m=a(93294);p=a(5021);r=a(63156);q=a(75568);u=a(69931);v=a(26388);w=a(79048);x=a(22210);d.prototype.uZ=function(){var z,B;function y(C,D){return A(C,D.SL);}function A(C,D){var F,H,E,G;E=!!D.response;G=D.response;if(D.df)return C + (G.byteLength || 0);D=(null !== (F=null === D || void 0 === D?void 0:D.dma) && void 0 !== F?F:0) - (null !== (H=null === D || void 0 === D?void 0:D.ema) && void 0 !== H?H:0);return (E?G.byteLength:D) + C;}z=this.yU[v.u.U];B=this.yU[v.u.X];return {videoToAppend:z.yp.reduce(A,0),videoInBuffer:z.Ex.reduce(y,0),audioToAppend:B.yp.reduce(A,0),audioInBuffer:B.Ex.reduce(y,0)};};d.prototype.vZ=function(){return {audioBufferedSegments:this.audio.Ex.map(function(y){return [y.SL.vM,y.SL.ZD];}),videoBufferedSegments:this.video.Ex.map(function(y){return [y.SL.vM,y.SL.ZD];})};};d.prototype.eEc=function(){this.audio.Pd && !this.audio.Pd.Nj() && (!1,this.audio.Pd.xmb(new Uint8Array([0,0,0,8,102,114,101,101])));};d.prototype.dQc=function(){this.audio.g1a=!0;this.video.g1a=!0;};d.prototype.iQc=function(y){y === v.u.X?this.C7=!0:y === v.u.U && (this.cga=!0);};d.prototype.Nj=function(){var y,A;return !(null === (y=this.audio.Pd) || void 0 === y || !y.Nj()) || !(null === (A=this.video.Pd) || void 0 === A || !A.Nj());};d.prototype.qea=function(y){var A,z;null === (A=this.audio.Pd) || void 0 === A?void 0:A.qea(y);null === (z=this.video.Pd) || void 0 === z?void 0:z.qea(y);};d.prototype.h7b=function(y){var A;y.mediaType === v.u.X?this.C7=!1:y.mediaType === v.u.U && (this.cga=!1);A=this.yU[y.mediaType];A?A.yp.push(y):(0,e.va)(!1);};d.prototype.g7b=function(y,A,z){A=this.Snb(y.mediaType,A,z);this.UPa || y.mediaType !== v.u.U || (this.fJc(y,z.profile),this.UPa=!0);this.ymb(A);};d.prototype.ymb=function(y){var A;A=this.yU[y.mediaType];A?A.yp.push(y):(0,e.va)(!1);};d.prototype.Snb=function(y,A,z){return {mediaType:y,HA:!1,response:A,Ei:function(){return "header";},get df() {return !this.HA;},profile:z.profile};};d.prototype.fJc=function(y,A){(0,e.va)(!!y.ZNb,"startOfSegment properties need to be set before first header is appended");this.UPa || !n.config.gvb || !this.j.Ppa() && !this.j.Wv() || y.ZNb.pAb || (this.log.trace("Force appending encrypted stream header first to allow mixed clear & encrypted content"),y=this.Dpc(A),this.ymb(this.Snb(v.u.U,y.data,{profile:y.profile})));};d.prototype.Dpc=function(y){var A;A=y;x.se.yl.test(y)?y=k.L5a:x.se.zl.test(y)?y=k.N5a:x.se.yBa.test(y)?y=k.M5a:(A=q.H.dO,y=k.K5a);return {data:this.Jd.decode(y),profile:A};};d.prototype.hQc=function(y){var A;A=this.yU[y.type];if(A)try{A.Pd=y;}catch(z){this.wg(g.da.tEa,{Ta:(0,m.WQa)(y.type),qf:(0,h.jj)(z)});}};d.prototype.close=function(){this.Ga=this.ac=void 0;this.closed=!0;};d.prototype.wg=function(y,A,z){this.closed || this.j.wg(y,A,z);};d.prototype.UNa=function(y){return this.xsb(this.audio,y,this.ana()) && this.xsb(this.video,y,this.ana());};d.prototype.ana=function(){return this.j.Zb.value === l.Nb.mh?this.dM:this.ssa;};d.prototype.pUc=function(){var y,A;y=this.video.yp.filter(function(z){return !z.df;}).reduce(function(z,B){return z + B.ah;},0);A=this.audio.yp.filter(function(z){return !z.df;}).reduce(function(z,B){return z + B.ah;},0);return Math.min(y,A);};d.prototype.xsb=function(y,A,z){var B;B=y.VNa;B=B && B.SL;return !y.Pd || 0 === y.yp.length && (y.type === c.Ln.audio && this.C7 || y.type === c.Ln.video && this.cga)?!0:B && B.ZD - A >= z || !1;};d.prototype.hQb=function(y){this.vTc || (this.gQb(this.audio,y),this.gQb(this.video,y));this.closed || this.Fob();};d.prototype.Fob=function(){var y,A,z,B,C,D;B=!this.audio.Pd || 0 !== this.audio.Ex.length;C=0 === this.video.yp.length && this.cga;D=!this.video.Pd || 0 !== this.video.Ex.length;!(0 === this.audio.yp.length && this.C7 && D || C && B) || (null === (y=this.audio.Pd) || void 0 === y?0:y.Nj()) || (null === (A=this.video.Pd) || void 0 === A?0:A.Nj()) || this.cPa || !(this.Ga.readyState > r.Uu.VI.HAVE_NOTHING) || this.sl.Maa || (this.cPa=!0,null === (z=this.ac) || void 0 === z?void 0:z.endOfStream());};d.prototype.gQb=function(y,A){var z,B,C,D;if(!this.closed && y.Pd){B=y.Pd;C=y.Ex;!B.Nj() && 0 < C.length && (y.VNa=C[C.length - 1]);if(y.g1a){if(B.Nj())return;y.g1a=!1;D=null === (z=this.ac) || void 0 === z?void 0:z.zRa().cZa(p.ya);D && 0 < D && B.remove(0,D / k.qr);}for(z=y.yp[0];z && z.response && (z.df || z.vM - A <= this.vH);)if((this.cPa=!1,this.aVc(z)))(y.yp.shift(),z=y.yp[0]);else break;!B.Nj() && 0 < C.length && (y.VNa=C[C.length - 1]);}};d.prototype.aVc=function(y){var A,z,B;!1;(0,e.va)(y && !!y.response);A=y.response;z=y.mediaType;B=this.yU[z];if(!this.closed && B.Pd && !B.Pd.Nj()){try{y.df && y.profile && B.Pd.Bac(y.profile);this.log.trace("Feeding media segment to decoder",{Bytes:A.byteLength});B.Pd.xmb(A,y);y.df || B.Ex.push(this.Vec(y));}catch(C){"QuotaExceededError" === C.name?(this.j.cna=this.j.cna?this.j.cna + 1:1,this.pnb=!1,B.M0=!0):(this.log.error("Exception while appending media",y,C),this.wg("CodecSwitchingError" === C.name?g.da.sdb:g.da.h_b,(0,m.WQa)(z)));return;}return !0;}};d.prototype.Mec=function(y){var A;if(u.QGa[y.Sa])return u.QGa[y.Sa];A=this.j.Byb(y.dd);A || (this.log.warn("Could not find CDN",{cdnId:y.dd}),A={id:y.dd,WR:y.location});return A;};d.prototype.zNa=function(y){var A,z;A=y.Sa;if(u.RGa[A])return u.RGa[A];y.mediaType === v.u.X?z=this.j.xyb(A):y.mediaType === v.u.U && (z=this.j.Qyb(A));z || this.log.error("Could not find stream",{stream:A});return z;};d.prototype.Vec=function(y){var A,z,B,C;z=this.zNa(y);B={startTime:Math.floor(y.vM),endTime:Math.floor(y.ZD),Qcc:Math.floor(y.Nl),Spb:Math.floor(y.Nl + y.ah)};C=null === z || void 0 === z?void 0:z.track.Mq;"content" === C && (null === (A=this.j.bb) || void 0 === A?0:A.Vh) && (A=this.j.bb.Vh.ba[y.L],A.type === w.Gd.Rc || A.type === w.Gd.Ra) && (C="ads");return {SL:y,stream:z,NX:B,Tc:this.Mec(y),Mq:C};};d.prototype.kMa=function(y){this.Mob(y,v.u.X);this.Mob(y,v.u.U);};d.prototype.Mob=function(y,A){var z,B,C,D,F,H,E,G,J;z=this;C=y;this.pnb && (C-=n.config.xH);D=this.yU[A];F=D.Ex;G=!1;F.some(function(L,K){var M;M=L.SL;if(y < M.vM - 50)return ((0,e.va)(!1,"decoder content does not contain media time"),!0);C >= M.ZD && (H=K);if(y < M.ZD)return (E=K,K=A === v.u.X?z.j.We:z.j.ye,L !== K.value && (K.set(L),G=!0),!0);});if((D.M0 || G) && void 0 !== H && !this.cPa){if(H + 1 === E){if(0 === H)return;H--;}J=H === F.length - 1?null === (B=this.ac) || void 0 === B?void 0:B.zRa().cZa(p.ya):F[H].SL.ZD - 1;!1;J && 0 < J && ((B=D.Pd) && !B.Nj()?(B.remove(0,J / k.qr),D.M0=!1,F.splice(0,H + 1)):(D.M0=!0,!1));}};d.prototype.MKb=function(){!1;[this.audio,this.video].forEach(function(y){y.Ex=[];y.VNa=void 0;y.yp=[];});this.cga=this.C7=!1;this.j.fireEvent(l.ja.Oba);};d.prototype.uSa=function(){return [this.audio,this.video].filter(function(y){return y.Pd;});};d.prototype.Loc=function(){var y,A;if(this.Nj())(0,e.va)(!1,"should not be busy while checking buffer ranges");else {y=this.uSa().map(function(z){var B,C,D,F,H;F=z.yp.filter(function(E){return E.HA;});H=z.Pd.buffered();z=H.length?Math.ceil(1E3 * H.start(0)):void 0;H=H.length?Math.floor(1E3 * H.end(H.length - 1)):void 0;z=null !== z && void 0 !== z?z:null === (B=F[0]) || void 0 === B?void 0:B.vM;B=null !== (D=null === (C=F[F.length - 1]) || void 0 === C?void 0:C.ZD) && void 0 !== D?D:H;if(void 0 !== z && void 0 !== B)return {start:z,end:B};});if(y.every(function(z){return z;})){A=Math.max.apply(Math,za(y.map(function(z){return z.start;})));y=Math.min.apply(Math,za(y.map(function(z){return z.end;})));if(y > A)return {start:(0,p.ic)(A),end:(0,p.ic)(y)};}}};d.prototype.skip=function(y){(0,e.va)(!this.Nj(),"should not be busy while skipping");this.uSa().forEach(function(A){A.M0=!0;});this.kMa(y);this.uSa().forEach(function(A){0 < A.Ex.length || (A.yp=A.yp.filter(function(z){return z.df || z.ZD > y?!0:!1;}));});};b.Cbb=d;},90762:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u;function d(v){v=Error.call(this,v);this.message=v.message;("stack" in v) && (this.stack=v.stack);this.name="CodecSwitchingError";}function n(v,w,x,y){var A,z;A=this;this.j=v;this.type=w;this.log=y;this.fka=new g.wc(!1);this.QO={data:void 0,state:"",operation:""};this.error=void 0;this.mimeType=this.Vtb((this.type === u.u.U?this.j.ka.Lh:this.j.ka.he).streams);this.Cm=new e.qm();this.NIa={Type:this.type};if(f.config.v_){z=!0;this.TPa=new g.wc(!1);}this.log.trace("Adding source buffer",this.NIa,{TypeId:this.mimeType});this.Gl=x.addSourceBuffer(this.mimeType);this.Gl.addEventListener("updatestart",function(){!1;A.QO.state="updatestart";});this.Gl.addEventListener("update",function(){!1;A.QO.state="update";});this.Gl.addEventListener("updateend",function(){var B;!1;A.fka.set(!1);A.Wib && A.Wib();A.QO.state="updateend";B=0;try{B=A.Gl.buffered.length;}catch(C){}z && B && (z=!1,A.TPa.set(!0),!1);});this.Gl.addEventListener("error",function(B){var C;!1;try{C=B.target.error && B.target.error.message;(B.message || C) && y.error("error event received on sourcebuffer",{mediaErrorMessage:B.message});}catch(D){}B={Ta:(0,c.WQa)(A.type),qf:A.Yoa()};v.wg(k.da.i_b,B);});this.Gl.addEventListener("abort",function(){!1;});v.addEventListener(p.ja.closed,function(){A.Gl=void 0;});}Object.defineProperty(b,"__esModule",{value:!0});b.FUb=b.uDa=void 0;c=a(93294);f=a(29204);g=a(81734);e=a(94886);h=a(31276);a(24550);k=a(36129);a(5021);l=a(45146);m=a(32687);p=a(85001);r=a(95162);q=a(48220);u=a(26388);n.prototype.Nj=function(){return this.fka.value;};n.prototype.updating=function(){return this.Gl?this.Gl.updating:!1;};n.prototype.qea=function(v){this.Wib=v;};n.prototype.Yoa=function(){return this.QO;};n.prototype.buffered=function(){return this.Gl.buffered;};n.prototype.toString=function(){return "SourceBuffer (type: " + this.type + ")";};n.prototype.toJSON=function(){return {type:this.type};};n.prototype.JQa=function(){var v,y,A;try{v=this.Gl.buffered;if(v){for(var w=[],x=0;x < v.length;x++){y=1E3 * v.start(x);A=1E3 * v.end(x);(0,l.va)(A > y);w.push({start:y,end:A});}return w;}}catch(z){}};n.prototype.Roa=function(){var v,w;v=this.JQa();if(v){v=v.map(function(x){return {start:x.start / 1E3,end:x.end / 1E3};});w=v.reduce(function(x,y){return x + y.end - y.start;},0);v=v.map(function(x){return x.start + "-" + x.end;});return {Buffered:w.toFixed(3),Ranges:v.join("|")};}};n.prototype.xmb=function(v,w){var x;!1;try{(0,l.va)(this.Gl.buffered && 1 >= this.Gl.buffered.length,"Gaps in media are not allowed: " + JSON.stringify(this.Roa()));}catch(y){}(0,l.va)(!this.Nj());x=w && w.lda / 1E3;(0,m.pc)(x) && this.Gl.timestampOffset !== x && (!1,this.vwa("timestampOffset",x),this.Gl.timestampOffset=x);this.vwa((null === w || void 0 === w?0:w.df)?"headerappend":"mediaappend");this.Gl.appendBuffer(v);!1;this.fka.set(!0);};n.prototype.remove=function(v,w){(0,l.va)(!this.Nj());try{this.vwa("remove");!1;this.Gl.remove(v,w);this.fka.set(!0);}catch(x){this.log.error("SourceBuffer remove exception",x,this.NIa);}};n.prototype.vwa=function(v,w){this.QO.data=w;this.QO.state="init";this.QO.operation=v;};n.prototype.$Mb=function(v,w){this.Cyc=v / w * 1E3;};n.prototype.Bac=function(v){var w;if(this.Gl){if((v=this.Vtb([{type:this.Pcc,Uc:v}]),v !== this.mimeType)){w=this.mimeType;this.log.info("Changing SourceBuffer mime-type from: " + this.mimeType + " to: " + v);if(!this.Gl.changeType)throw new d("Platform doesnt support changing SourceBuffer mime-type");try{this.vwa("changeType",v);this.Gl.changeType(v);this.mimeType=v;}catch(x){throw (this.log.error("Error changing SourceBuffer type",x,this.NIa,{From:w,To:v}),new d(x.message));}}}else this.log.info("No SourceBuffer");};n.prototype.appendBuffer=function(v,w){!w || w.df?this.hX(v,w):this.PKa(v,w);return !0;};n.prototype.hX=function(v,w){this.j.Wd.hX(this,v,w || ({}));};n.prototype.PKa=function(v,w){v=this.Icc(v,w);!1;this.j.Wd.PKa(v);};n.prototype.Icc=function(v,w){var x;x=this.Cyc || 0;return {Ei:function(){return this.requestId;},constructor:{name:"MediaRequest"},mediaType:this.mediaType,readyState:q.te.Zd.DONE,vM:w.Gb,ZD:w.Gb + w.duration,ah:w.duration,lda:x,Nl:w.Nl,L:w.L,Sa:w.Sa,dd:+w.dd,location:w.location,ema:w.offset,dma:w.offset + w.ma - 1,bitrate:w.bitrate,response:v,iuc:v && 0 < v.byteLength,HA:!0,get df() {return !this.HA;},QLb:this.g6 - Math.floor(x) || Infinity,toJSON:function(){var y;y={requestId:this.requestId,segmentId:this.L,isHeader:this.df,ptsStart:this.vM,ptsOffset:this.lda,responseType:this.C4c,duration:this.ah,readystate:this.tg};this.stream && (y.bitrate=this.stream.bitrate);return JSON.stringify(y);}};};n.prototype.endOfStream=function(){var v;this.j.vP("EndOfStream");null === (v=this.j.Wd) || void 0 === v?void 0:v.cta(this.mediaType);return !0;};n.prototype.YNb=function(v){this.B4b=v;};n.prototype.addEventListener=function(v,w,x){this.Cm.addListener(v,w,x);};n.prototype.removeEventListener=function(v,w){this.Cm.removeListener(v,w);};n.prototype.Vtb=function(v){var w;w=h.Xa.get(r.MGa);return this.type === u.u.U?w.Uqb(v):w.hqb(v);};Ha.Object.defineProperties(n.prototype,{mediaType:{configurable:!0,enumerable:!0,get:function(){return this.type;}},ZNb:{configurable:!0,enumerable:!0,get:function(){return this.B4b;}},Pcc:{configurable:!0,enumerable:!0,get:function(){return 0 === this.type?"audio":"video";}}});b.uDa=n;Ia(d,Error);b.FUb=d;},73056:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K;function d(M,P,I){var O;O=this;this.j=M;this.Gzb=P;this.zGc=void 0 === I?!1:I;this.ac=this.j.ac;this.log=(0,k.jo)(this.j,"MediaPresenterASE");this.Msa=this.bna=0;this.Ga=this.ac.Ga;this.PRb=new K.hib(this.j,this.log.VP("VideoFreezeMonitor"));this.gM=new J.gib(this.Ga,this.j);this.ZHb=this.KHb=this.Vqa=this.IYa=!1;this.vra=new Set();this.BTc=k.Xa.get(z.nJ)((0,A.ic)(x.rGa));this.kX=void 0;this.sl=k.Xa.get(C.kgb)(this.j);this.AE={};this.YDb={};this.S$={};this.sn={};this.qY={};this.h_a={};this.Fh=new F.Cbb(this.j,this.sl);this.vQb=0;this.FAb=!1;this.zTc=function(){var Q,T,U;O.j.cfa=(0,h.Cx)();if(!O.kn() && O.gL){Q=O.ac.Lxb();Q || (O.EHc(),O.Fh.hQb(O.mediaTime));O.j.paused.value || !O.Fh.UNa(O.mediaTime) || !O.HLa() || Q || O.sl.Maa?O.Q_a():O.IYa || O.R_a();O.DHc();if(!(O.ac.Lxb() || O.Vqa || O.FAb)){Q=O.ac.lA(!0);T=O.j.Zb.value;U=O.scc();T !== U && !1;U === v.Nb.Zw?(O.mediaTime=O.j.Ks.na(A.ya),O.Q_a()):U !== v.Nb.mh && O.YVc(Q);O.YQb();O.Fh.kMa(O.mediaTime);O.j.Zb.set(U);U !== v.Nb.mh || T !== v.Nb.rg && T !== v.Nb.Oi || O.FXa();}}};this.Eo=(0,D.kKc)(this.zTc);this.mediaTime=this.Gzb;this.j.Gj=!1;this.ac.addEventListener(y.Pk.MNb,function(){if(O.ONb){O.log.trace("sourceBuffers have been created. Initialize MediaPresenter.");try{O.Tb();}catch(Q){O.log.error("Exception while initializing",Q);O.wg(l.da.VZb);}}});this.ac.addEventListener(y.Pk.lCb,function(Q){Q=Q.J;O.ONb?O.mGb(Q):O.vra.add(Q);});}Object.defineProperty(b,"__esModule",{value:!0});b.zDa=void 0;n=a(33096);c=a(29204);f=a(13044);g=a(37509);e=a(52569);h=a(24066);k=a(31276);a(24550);l=a(36129);m=a(91591);p=a(45146);r=a(8825);q=a(3887);u=a(32219);v=a(85001);w=a(32687);x=a(93294);y=a(16520);A=a(5021);z=a(45842);B=a(4246);C=a(65106);D=a(97368);F=a(33059);H=a(91562);E=a(22365);G=a(26388);J=a(49587);L=a(63156);K=a(42087);d.prototype.vKc=function(M){var P,I,O;I=Math.ceil(M.Hzb);O=Math.ceil(null !== (P=M.KTc) && void 0 !== P?P:M.Hzb);this.sl.L0 || (P={oldMediaTime:this.mediaTime,newMediaTime:O,contentPts:M.Nl},Object.assign(P,this.j.q_a.kSa()),this.log.error("ptsChanged without pendingPtsChanged",P),this.sl.L0={SD:!1,yS:this.mediaTime,sS:O,Nl:M.Nl,Dc:v.Mc.Xu,skip:!1,We:this.j.We.value,ye:this.j.ye.value,R:this.j.R});P=this.sl.L0;this.sl.L0=void 0;this.sl.Kca=!0;I=P.SD?O:I;!1;this.CFb(P,I,M.Nl);};d.prototype.lwb=function(){return this.ac.lA(!1);};d.prototype.$oa=function(){return this.ac.$oa();};d.prototype.mA=function(){return this.ac.mA();};d.prototype.ZQ=function(){return this.ac.ZQ();};d.prototype.j$=function(){return this.ac.j$();};d.prototype.Tb=function(){var M,P;M=this;this.log.trace("Video element initializing");this.ac.sourceBuffers.forEach(function(I){return M.Fh.hQc(I);});this.j.ER?this.log.trace("Waiting for encrypted"):(this.log.warn("Movie is not DRM protected",{MovieId:this.j.R}),null === (P=this.j.bb) || void 0 === P?void 0:P.d9(this.j.R));0 < this.vra.size && setTimeout(function(){M.log.trace("Notifying about licenses that were added before source buffers created");Array.from(M.vra).forEach(function(I){M.vra.delete(I);M.mGb(I);});},0);this.log.trace("Waiting for loadedmetadata");(0,e.g6b)(this.Ga,"loadedmetadata",function(){M.log.trace("Video element event: loadedmetadata");M.j.fh("md");});g.xe.addListener(g.hn,this.S$[g.hn]=function(){return M.close();},n.SV);this.j.addEventListener(v.ja.ph,this.sn[v.ja.ph]=function(){return M.close();},n.SV);this.j.addEventListener(v.ja.Sda,this.sn[v.ja.Sda]=function(){return M.close();});this.j.addEventListener(v.ja.Xda,this.sn[v.ja.Xda]=function(){return M.R_a();});this.j.paused.addListener(this.sn.paused=function(){return M.Eo();});this.j.muted.addListener(this.sn.muted=function(){return M.q3a();});this.j.volume.addListener(this.sn.volume=function(){return M.q3a();});this.j.playbackRate.addListener(this.sn.playbackRate=function(){return M.G2();});this.j.Lt.addListener(this.sn.avBufferingState=function(){return M.Eo();});this.j.En.addListener(this.sn.textBufferingState=function(){return M.Eo();});this.q3a();this.G2();this.Fh.qea(function(){return M.isa();});this.isa();this.UUc();};d.prototype.mGb=function(M){var P;this.j.fh("ld",M);null === (P=this.j.bb) || void 0 === P?void 0:P.d9(M);this.j.fireEvent(v.ja.kVa);};d.prototype.PKa=function(M){var P;P=this;!1;this.Fh.h7b(M);this.Aac(M).then(function(){P.isa();P.j.fireEvent(v.ja.Oba);}).catch(function(I){P.wg(l.da.$Zb,{qf:(0,q.jj)(I)});});};d.prototype.hX=function(M,P,I){P=this.gjc(M,P);this.Fh.g7b(M,P,I);this.isa();this.KHb || M.type !== G.u.U || (this.sl.Maa || this.seek(this.Gzb,v.Mc.Mo),this.KHb=!0);};d.prototype.UUc=function(){var M;M=this;this.ac.addEventListener(y.Pk.eea,this.AE[y.Pk.eea]=function(){return M.KFc();});this.ac.addEventListener(y.Pk.Wt,this.AE[y.Pk.Wt]=function(){return M.wta();});this.Ga.addEventListener("ended",this.AE.ended=function(){return M.cFc();});this.Ga.addEventListener("play",this.AE.play=function(){return M.CXa();});this.Ga.addEventListener("pause",this.AE.pause=function(){return M.BXa();});this.Ga.addEventListener("playing",this.AE.playing=function(){return M.r0();});this.gL=!0;this.Fh.hQb(this.mediaTime);this.log.trace("Video element initialization complete");this.j.fh("vi");c.config.Srb?setTimeout(function(){M.iXa=!0;M.Eo();},c.config.Srb):this.iXa=!0;this.WRc();this.j.Bc.za && this.YRc();(0,u.Xh)(function(){return M.Eo();});};d.prototype.WRc=function(){var I;function M(){var O;I.j.Zb.value !== v.Nb.rg || 0 !== (null === (O=I.j.Wd) || void 0 === O?void 0:O.$oa()) || E.Ni.hidden?(I.SWa.Yq(),O="stopTimer"):(I.SWa.DK(),O="ensureTimer");I.log.trace("No render timer update: " + O,{presentingState:v.Nb[I.j.Zb.value],hidden:E.Ni.hidden});}function P(O){var Q,T;O=void 0 === O?!0:O;Q=I.j.bb;T=(null === Q || void 0 === Q?void 0:Q.kk) && Q.Gyb() || I.zGc;I.j.Zb.value == v.Nb.mh && I.j.state.value == v.Fc.zf && I.j.Lt.value == v.jh.zf && I.j.En.value == v.jh.zf && !I.j.Gj && T?(O && I.J8.Yq(),I.J8.DK(),Q="ensureTimer"):(I.J8.Yq(),Q="stopTimer");I.log.trace("Timer update: " + Q,{presentingState:v.Nb[I.j.Zb.value],playbackState:v.Fc[I.j.state.value],avBufferingState:v.jh[I.j.Lt.value],textBufferingState:v.jh[I.j.En.value],autoplayWasBlocked:I.j.Gj,hasLicense:T,restartTimer:O});}I=this;c.config.Erb && ((0,p.va)(!this.J8),this.J8=k.Xa.get(B.Q5)(c.config.Erb,function(){var O;O=k.Xa.get(m.kAa).fsb(I.j);I.wg(O.code,O);}),this.TRc(P));c.config.qFb && (this.SWa=k.Xa.get(B.Q5)(c.config.qFb,function(){var O;0 === (null === (O=I.j.Wd) || void 0 === O?void 0:O.mA()) && (O=k.Xa.get(m.kAa).fsb(I.j),I.wg(O.code,O));I.oOb();}),this.URc(M));};d.prototype.TRc=function(M){var O;function P(Q,T,U){U=void 0 === U?function(){return M();}:U;O.qY[T]=U;Q.addEventListener(T,U);}function I(Q,T,U){U=void 0 === U?function(){return M();}:U;O.qY[T]=U;Q.addListener(U);}O=this;I(this.j.Lt,"avBufferingState");I(this.j.Zb,"presentingState");I(this.j.En,"textBufferingState");I(this.j.state,"state");P(this.j,v.ja.Ola);P(this.j,v.ja.Gj);P(this.j,v.ja.kVa);P(this.j,v.ja.vva,function(){return M(!0);});M();};d.prototype.rSc=function(){var I,O;function M(Q,T){var U;U=I.qY[T];U && (Q.removeEventListener(T,U),delete I.qY[T]);}function P(Q,T){var U;U=I.qY[T];U && (Q.removeListener(U),delete I.qY[T]);}I=this;P(this.j.Lt,"avBufferingState");P(this.j.Zb,"presentingState");P(this.j.En,"textBufferingState");P(this.j.state,"state");M(this.j,v.ja.Ola);M(this.j,v.ja.Gj);M(this.j,v.ja.kVa);M(this.j,v.ja.vva);null === (O=this.J8) || void 0 === O?void 0:O.Yq();};d.prototype.URc=function(M){this.j.Zb.addListener(this.h_a.presentingState=M);g.xe.addListener(g.ls,this.S$[g.ls]=M);M();};d.prototype.oOb=function(){var M;this.h_a.presentingState && this.j.Zb.removeListener(this.h_a.presentingState);g.xe.removeListener(g.ls,this.S$[g.ls]);null === (M=this.SWa) || void 0 === M?void 0:M.Yq();};d.prototype.YRc=function(){var O;function M(){var Q,T,U,X,Y;U=I();if(U){X=U.LZa;U=U.mediaType;Y=null !== (T=null === (Q=O.Ga) || void 0 === Q?void 0:Q.readyState) && void 0 !== T?T:L.Uu.VI.HAVE_NOTHING;T=Y < L.Uu.VI.HAVE_FUTURE_DATA;Q=P(X,O.mediaTime);T && Q?(O.Hoa.DK(),T="ensureTimer"):(O.Hoa.Yq(),T="stopTimer");O.log.trace("Gaps Monitor Timer update: " + T,{mediaType:U,mediaTime:O.mediaTime,bufferedRanges:JSON.stringify(X),nextRange:JSON.stringify(Q),readyState:Y});}else O.Hoa.Yq();}function P(Q,T){return Q.find(function(U,X){if(Math.abs(T - U.end) < Math.abs(T - U.start))return !1;U=U.end - U.start;return X !== Q.length - 1 && 1E4 > U?!1:!0;});}function I(){var Q,T,U;U=O.ac.sourceBuffers.find(function(X){return X.mediaType === G.u.U;});U=null !== (Q=null === U || void 0 === U?void 0:U.JQa()) && void 0 !== Q?Q:[];Q=O.ac.sourceBuffers.find(function(X){return X.mediaType === G.u.X;});Q=c.config.MCc?null !== (T=null === Q || void 0 === Q?void 0:Q.JQa()) && void 0 !== T?T:[]:[];if(1 < U.length)return {LZa:U,mediaType:"video"};if(1 < Q.length)return {LZa:Q,mediaType:"audio"};}O=this;c.config.yvb && ((0,p.va)(!this.Hoa),this.Hoa=k.Xa.get(B.Q5)(c.config.yvb,function(){var Q,T;Q=I();if(Q){Q=Q.LZa;T=P(Q,O.mediaTime);T && (O.log.error("Detected media gaps: seeking over gap",{seekPoint:T.start,ranges:JSON.stringify(Q)}),O.ac.iNc(),O.seek(T.start,v.Mc.Vha));}}),this.j.mediaTime.addListener(M),this.j.ac.addEventListener(y.Pk.GJb,M),this.j.addEventListener(v.ja.Oba,M),M());};d.prototype.gjc=function(M,P){var I;I=this.j.Rl;(I=null === I || void 0 === I?void 0:I.yZ()) && M.type === G.u.U && ((M=new H.S4(this.log,{mediaType:G.u.U,url:"http://some-url"},P).pa(I))?P=M:!1);return P;};d.prototype.isa=function(){this.gL && this.Eo();this.Fh.Fob();};d.prototype.jSc=function(){!1;this.j.Zb.set(v.Nb.mh);this.Vqa=!0;this.Eo();};d.prototype.ncc=function(){var M;M=this;this.Vqa && (!1,this.Vqa=!1,(0,u.Xh)(function(){return M.seek(M.j.RK() || 0,v.Mc.P5);}));};d.prototype.$Rc=function(){!1;this.FAb=!0;this.j.Zb.set(v.Nb.mh);this.Eo();};d.prototype.uZ=function(){return this.Fh.uZ();};d.prototype.vZ=function(){return this.Fh.vZ();};d.prototype.cta=function(M){var P;P=this;this.Fh.iQc(M);(0,u.Xh)(function(){return P.Eo();});};d.prototype.hqc=function(){return {bna:this.bna,Msa:this.Msa};};d.prototype.Aac=function(M){var P;P=this.ac && this.ac.zRa();(0,p.va)(this.j.Ks,"Player duration should be defined before appends start (ase did not fire segmentNormalized event)");this.j.Ks && P && (M=Infinity !== M.QLb && 0 < M.lda?M.QLb + M.lda:M.ZD,M > this.j.Ks.cZa(A.ya) && (!1,this.j.Ks=(0,A.ic)(M)));return Promise.resolve();};d.prototype.DHc=function(){var M;M=this;this.sl.Kca && (!1,this.HLa() && this.Fh.UNa(this.mediaTime) && (this.ac.seek(this.mediaTime),this.sl.Kca=!1,(0,u.Xh)(function(){return M.Eo();})));};d.prototype.YVc=function(M){var P,I;P=this;if(M < this.mediaTime){if(this.mediaTime - M > x.tfb && (c.config.JHb || c.config.GVa)){this.vQb++;I={Trace:this.ac.gb.QZ(),ElementTime:(0,r.hk)(M),MediaTime:(0,r.hk)(this.mediaTime)};c.config.JHb?this.wg(l.da.j_b,{qf:I}):c.config.GVa && (this.ac.gb.trace("unexpected-rewind"),Ba.setTimeout(function(){P.log.error("UnexpectedRewind",I);},c.config.GVa));}}else this.mediaTime=(0,r.eF)(M,0,this.j.Ks.na(A.ya));};d.prototype.HLa=function(){return this.j.Lt.value === v.jh.zf && this.j.En.value === v.jh.zf;};d.prototype.scc=function(){var M,P,I;M=this;P=this.j.Zb.value;I=P;this.sl.Maa?I=v.Nb.mh:this.Ga && this.Ga.ended?P === v.Nb.rg && (I=v.Nb.Zw):this.HLa() && this.Fh.UNa(this.mediaTime)?this.ac.fic()?I=this.gM.paused?v.Nb.Oi:v.Nb.rg:this.BTc.ig(function(){return M.ATc();}):I=this.j.Ks?this.j.Dyb(this.mediaTime,this.Fh.ana())?v.Nb.mh:v.Nb.Zw:v.Nb.mh;return I;};d.prototype.FXa=function(){var M;if(this.j.Zb.value === v.Nb.mh){M=this.Fh.pUc() > this.Fh.ana();this.j.En.value !== v.jh.zf?this.j.Wk.value?(this.j.fireEvent(v.ja.aG,{Dc:f.jeb}),this.log.warn("rebuffer due to timed text",this.j.Wk.value.Ki)):this.j.fireEvent(v.ja.t2):M?(this.bna++,this.j.fireEvent(v.ja.aG,{Dc:f.iFa})):(this.Msa++,this.j.fireEvent(v.ja.aG,{Dc:f.jFa}));}};d.prototype.ATc=function(){this.kn() || (c.config.fEc && this.Fh.eEc(),this.Eo());};d.prototype.KFc=function(){this.Eo();};d.prototype.wta=function(){this.Eo();this.j.fireEvent(v.ja.Wt);};d.prototype.cFc=function(){this.log.trace("Video element event: ended");this.Eo();};d.prototype.CXa=function(){this.log.trace("Video element event: play");this.Eo();};d.prototype.BXa=function(){this.log.trace("Video element event: pause");this.gM.BXa();this.Eo();};d.prototype.r0=function(){this.log.trace("Video element event: playing");this.gM.CXa();this.Eo();c.config.NCc && this.j.Wv() && this.PRb.XRc();};d.prototype.q3a=function(){this.kn() || (this.Ga && this.Ga.volume !== this.j.volume.value && (this.Ga.volume=this.j.volume.value),this.Ga && this.Ga.muted !== this.j.muted.value && (this.Ga.muted=this.j.muted.value));};d.prototype.G2=function(){!this.kn() && this.Ga && (this.Ga.playbackRate=this.j.playbackRate.value);};d.prototype.R_a=function(){var M;M=this;!this.kn() && (0,w.$c)(this.Ga) && !this.Ga.ended && this.iXa && this.gM.paused && (this.log.trace("Calling play on element"),Promise.resolve(this.gM.play()).then(function(){M.closed || (M.IYa=!1,M.Ga.style.display=null,M.j.Gj=!1,M.j.fireEvent(v.ja.Ola));}).catch(function(P){"NotAllowedError" === P.name?(M.log.warn("Playback is blocked by the browser settings",P),M.j.Gj=!0,M.closed || (M.IYa=!0,M.Ga.style.display="none",M.j.fireEvent(v.ja.Gj,{player:{play:function(){return M.R_a();}}}))):M.closed || M.ZHb || (M.ZHb=!0,M.log.error("Play promise rejected",P));}));};d.prototype.Q_a=function(){this.kn() || !(0,w.$c)(this.Ga) || this.Ga.ended || !this.iXa || this.gM.paused || (this.log.trace("Calling pause on element"),this.gM.pause());};d.prototype.YQb=function(M){this.j.mediaTime.set(this.mediaTime);M && this.j.bnc();};d.prototype.seek=function(M,P,I,O){var Q,T,U,X,Y;I=void 0 === I?this.j.L:I;O=void 0 === O?!1:O;Y=null === (Q=this.j.bb) || void 0 === Q?void 0:Q.kk;!this.kn() && Y && (Q=null !== (X=null === (U=null === (T=this.j.S) || void 0 === T?void 0:T.Aa.Ji) || void 0 === U?void 0:U.nsb) && void 0 !== X?X:!1,this.j.Bc.za && !1 === Q && 0 === M && this.log.error("Unexpected seek to 0 for the live playback",Error().stack),this.j.fireEvent(v.ja.vva,{Dc:P}),this.sl.LS={time:M,Dc:P,L:I,onc:O},this.j.Zb.set(v.Nb.mh),this.Eo());};d.prototype.EHc=function(){var M,P,I,O,Q,T,U,X,Y;if(this.sl.LS){M=this.sl.LS;P=M.time;I=M.Dc;O=M.L;Q=M.onc;if(!this.Fh.Nj() || I === v.Mc.Mo){M=this.j.Vl(O).R;T=this.Fh.Nj()?void 0:this.Fh.Loc();U=this.sl.Yqc(P,I,O,Q,T);O=U.sS;Q=U.Nl;X=U.jIc;T=U.$k;U=U.SD;this.Fh.kMa(this.mediaTime);Y=this.mediaTime;P=(0,r.hk)(P);this.j.vP("SEEKING: Requested: (" + M + ":" + I + ":" + P + ") - Actual: (contentPts: " + Q + ",playerPts: " + (X + ", newMediaTime: " + O + ")"));this.log.info("Seeking",{Requested:P,Actual:(0,r.hk)(O),Cause:I,Skip:T});I === v.Mc.Mo || T || (this.Fh.MKb(),this.Fh.dQc());P=this.j.We.value;X=this.j.ye.value;this.j.We.set(null);this.j.ye.set(null);this.sl.LS=void 0;I={SD:U,yS:Y,sS:O,Nl:Q,Dc:I,skip:T,We:P,ye:X,R:M};T?this.sl.Kca=!0:this.sl.L0=I;this.j.fireEvent(v.ja.o1,I);T && (this.CFb(I,O,Q),this.Fh.skip(O));}}};d.prototype.CFb=function(M,P,I){this.mediaTime=P;this.YQb(!0);this.j.fireEvent(v.ja.Ms,{sS:P,Nl:I,yS:M.yS,Dc:M.Dc,skip:M.skip,We:M.We,ye:M.ye,R:M.R});};d.prototype.wg=function(M,P,I){this.closed || this.j.wg(M,P,I);};d.prototype.close=function(){if(!this.closed){this.log.info("Closing.");this.Fh.close();this.rSc();this.oOb();this.ac.removeEventListener(y.Pk.eea,this.YDb[y.Pk.eea]);this.ac.removeEventListener(y.Pk.Wt,this.YDb[y.Pk.Wt]);this.Ga.removeEventListener("ended",this.AE.ended);this.Ga.removeEventListener("play",this.AE.play);this.Ga.removeEventListener("pause",this.AE.pause);this.Ga.removeEventListener("playing",this.AE.playing);this.gM.close();g.xe.removeListener(g.hn,this.S$[g.hn]);g.xe.removeListener(g.ls,this.S$[g.ls]);this.j.removeEventListener(v.ja.ph,this.sn[v.ja.ph]);this.j.removeEventListener(v.ja.Sda,this.sn[v.ja.Sda]);this.j.removeEventListener(v.ja.Xda,this.sn[v.ja.Xda]);this.j.removeEventListener(v.ja.KL,this.sn[v.ja.KL]);this.j.paused.removeListener(this.sn.paused);this.j.muted.removeListener(this.sn.muted);this.j.volume.removeListener(this.sn.volume);this.j.playbackRate.removeListener(this.sn.playbackRate);this.j.Lt.removeListener(this.sn.avBufferingState);this.j.En.removeListener(this.sn.textBufferingState);this.Fh.qea(function(){});this.closed=!0;try{this.Ga.volume=0;this.Ga.muted=!0;this.Q_a();this.ac.close();}catch(M){}this.Ga=void 0;this.Fh.MKb();}};d.prototype.kn=function(){return this.closed?!0:(0,w.$c)(this.Ga)?!1:(this.log.error("MediaPresenter not closed and videoElement is not defined"),!0);};Ha.Object.defineProperties(d.prototype,{ONb:{configurable:!0,enumerable:!0,get:function(){var M,P;M=this;return !(null === (P=this.j.bb) || void 0 === P || !P.Gh) && [].concat(za(this.j.bb.Gh)).every(function(I){return M.ac.sourceBuffers.find(function(O){return O.mediaType === I;});});}},LS:{configurable:!0,enumerable:!0,get:function(){return this.sl.Maa;}}});b.zDa=d;},93294:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.tfb=b.rGa=void 0;b.WQa=function(c){return c === d.u.X?n.Y.fDa:n.Y.gDa;};d=a(26388);n=a(36129);b.rGa=50;b.tfb=1E3;},53754:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m){var r,q;function p(){r.O6=new k.xhb();return r.O6;}(0,n.gn)("MediaSourceASE").trace("Inside MediaSourceASE");r=this;q=m.Qqc();r.Sjb=q;r.readyState=l.Zd.CLOSED;r.addSourceBuffer=function(u){return u === h.u.Ca?p():q.addSourceBuffer(u);};r.i7=function(u){u.includes(h.u.Ca) && p();return q.i7(u);};r.removeSourceBuffer=function(u){if(u.mediaType === h.u.Ca)r.O6=void 0;else return ((0,e.va)(u.mediaType === h.u.Ca,"Unexpected removeSourceBuffer. Only TEXT is expected to ever be removed."),q.removeSourceBuffer(u));};r.Xt=function(u){r.O6=void 0;q.Xt(u);};r.duration=void 0;this.readyState=l.Zd.OPEN;this.vg=c.Xa.get(f.Am).Y_(l.vg,{});m=new g.EventEmitter();m.on("subtitleData",function(u){(0,e.va)(q.j.ka.Qd,"Unexpected AseSubtitleEvent. No current timedTextTrack.");q.j.ka.Qd.FZa(u);});this.events=m;}Object.defineProperty(b,"__esModule",{value:!0});b.Ubb=void 0;n=a(31276);c=a(31276);f=a(74870);g=a(90745);e=a(45146);h=a(45247);k=a(91515);Object.defineProperty(d.prototype,"sourceBuffers",{get:function(){return this.O6?this.Sjb.sourceBuffers.concat(this.O6):this.Sjb.sourceBuffers;}});Object.defineProperty(d.prototype,"duration",{get:function(){return this.g6;},set:function(m){var p;this.g6=m || Infinity;p=Math.floor(1E3 * m) || Infinity;this.sourceBuffers.forEach(function(r){r.g6=p;});}});l={Zd:{CLOSED:0,OPEN:1,Zw:2,name:["CLOSED","OPEN","ENDED"]},vg:{Xbc:!0,cDc:!0}};b.Ubb=Object.assign(d,l);},69931:function(t,b,a){Object.defineProperty(b,"__esModule",{value:!0});b.RGa=b.QGa=void 0;t=a(79048);a={};b.QGa=(a[t.vr]={id:-1,name:"hardcoded",Ac:1,type:"hardcoded",WR:"-1",axc:!1,location:{id:"-1",Ac:1,level:100,weight:1}},a);a={};b.RGa=(a[t.vr]={track:{type:"padding",trackId:"padding",aj:"padding",correlationId:"padding",Mq:"other",Ig:"padding",yM:"padding",Ki:{},Ac:1},type:"padding",ob:"-1",bitrate:1,Pb:100,Uc:"unknown",size:1,zOa:{},Ki:{},$r:"",framerate:0,xk:!1,Mk:[],height:1,width:1},a);},6305:function(t,b,a){var n,c,f;function d(g,e,h,k,l,m,p,r,q,u,v){this.track=g;this.type=e;this.ob=h;this.bitrate=k;this.Pb=l;this.size=m;this.zOa=p;this.Uc=r;this.framerate=q;this.xk=u;this.Mk=v;this.Ki={Type:e,Bitrate:k,DownloadableId:h};}Object.defineProperty(b,"__esModule",{value:!0});b.MediaStream=void 0;b.NZc=function(g,e,h,k,l){if(g == n.Uha || g === f.Ln.audio)return e;if(g == n.e5 || g === f.Ln.video)return h;if(g == f.Ln.v2)return k;if(g == f.Ln.U2a)return l;};n=a(33096);c=a(32687);f=a(51344);d.prototype.toJSON=function(){return this.Ki;};d.prototype.qQc=function(g,e,h,k){(0,c.$c)(g) && (0,c.$c)(e) && (this.width=g,this.height=e,(0,c.pc)(h) && (0,c.pc)(k) && (this.width=Math.round(h / k * g)),this.Ki.Resolution=(this.width || "") + ":" + (this.height || ""));};d.prototype.uPc=function(g,e,h,k,l,m){(0,c.$c)(g) && (0,c.$c)(e) && (0,c.$c)(h) && (0,c.$c)(k) && (this.DNa=g,this.Zqb=e,this.Yqb=h,this.Xqb=k);(0,c.$c)(l) && (0,c.$c)(m) && (this.THb=l,this.UHb=m);};b.MediaStream=d;},51344:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Ln={audio:"audio",video:"video",v2:"timedtext",U2a:"trickplay"};},62439:function(t,b,a){var n,c,f,g,e,h,k;function d(l){var m,p,r,q;m=this;this.j=l;this.B8=void 0;this.oIa=(0,c.createElement)("DIV","position:fixed;left:0;top:50%;right:0;bottom:0;text-align:center;color:#040;font-size:11px;font-family:monospace;z-index:9999",void 0,{"class":"player-streams"});this.eIa=(0,c.createElement)("DIV","display:inline-block;background-color:rgba(255,255,255,0.86);border:3px solid #fff;padding:5px;margin-top:-90px");this.ZHa=(0,c.createElement)("DIV","width:100%;text-align:center");this.J1b=this.gIa("Audio Bitrate");this.NJa=this.gIa("Video Bitrate / VMAF");this.$Ha=this.gIa("CDN");this.v6={};this.R$=f.Xa.get(g.st);this.oIa.appendChild(this.eIa);this.eIa.appendChild(this.ZHa);p=(0,c.createElement)("BUTTON",void 0,"Override");p.addEventListener("click",this.I1b.bind(this),!1);this.ZHa.appendChild(p);p=(0,c.createElement)("BUTTON",void 0,"Reset");p.addEventListener("click",this.p4b.bind(this),!1);this.ZHa.appendChild(p);r=this.U3b.bind(this);n.xe.addListener(n.WK,r);l.addEventListener(h.ja.KL,function(){m.v6={};});l.addEventListener(h.ja.ph,function(){n.xe.removeListener(n.WK,r);});q=this.m4b.bind(this);l.Tc.forEach(function(u){u.addListener(q);});l.ka.addListener([k.u.X,k.u.U],q);}Object.defineProperty(b,"__esModule",{value:!0});b.ueb=void 0;n=a(37509);c=a(52569);f=a(31276);g=a(34231);e=a(43193);h=a(85001);k=a(26388);d.prototype.show=function(){this.T6 || (this.vkb(),document.body.appendChild(this.oIa),this.T6=!0);};d.prototype.kD=function(){this.T6 && (document.body.removeChild(this.oIa),this.T6=!1);};d.prototype.toggle=function(){this.T6?this.kD():this.show();};d.prototype.FQb=function(){var p,r,q,u;function l(v,w,x){var y,A,z;A=[];w.filter(function(B){return B.Uc === v;}).forEach(function(B){0 <= x.indexOf(B)?(void 0 === z?z=B.bitrate:y=B.bitrate,void 0 === y && (y=B.bitrate)):void 0 !== z && void 0 !== y && (A.push({min:z,max:y}),z=y=void 0);});if(void 0 !== z && void 0 !== y){A.push({min:z,max:y});z=y=void 0;}return A;}function m(v,w,x){var y;y=[];w.filter(function(A){return A.Uc === v;}).forEach(function(A){-1 === x.indexOf(A) && y.push({stream:{bitrate:A.bitrate},disallowedBy:["manual"]});});return y;}r=this.j.PC();q=this.j.VK().sort(function(v,w){return v.bitrate - w.bitrate;});u=q.reduce(function(v,w){0 > v.indexOf(w.Uc) && v.push(w.Uc);return v;},[]).map(function(v){return {profile:v,ranges:l(v,q,r),disallowed:m(v,q,r)};});!1;null === (p=this.j.bb) || void 0 === p?void 0:p.uwa(u,this.j.R);};d.prototype.I1b=function(){var p,r;this.v6={};for(var l=this.NJa.options,m=l.length;m--;){p=l[m];p.selected && (this.v6[p.value]=1);}this.B8=this.$1b.bind(this);this.FQb();if(l=this.j.Uh){r=this.$Ha.value;l=l.filter(function(q){return q.id == r;})[0];m=this.j.Tc[k.u.U].value;l && l != m && (l.rob={testreason:"streammanager",selreason:"userselection"},this.j.Tc[k.u.U].set(l));}this.kD();};d.prototype.p4b=function(){this.B8=void 0;this.j.aNb(this.j.R);this.kD();};d.prototype.$1b=function(){var l;l=this;return this.j.VK().filter(function(m){return l.v6[m.bitrate];});};d.prototype.vkb=function(){var l,m,p,r;l=this;m=this.j.ka.he;p=this.j.ka.Lh;r=this.j.Uh;m && (r=r.slice(),r.sort(function(q,u){return q.Ac - u.Ac;}),this.EJa(this.J1b,m.streams.map(function(q){return {value:q.bitrate,caption:q.bitrate,selected:q == l.j.fj.value};})));p && (this.EJa(this.NJa,p.streams.map(function(q){var u,v,w;u=l.j.Q_.kI(q);v=q.bitrate;q=q.Pb;w="" + v;q && (w+=" / " + q);u && (w+=" (" + u.join("|") + ")");return {value:v,caption:w,selected:l.B8?l.v6[v]:!u};})),this.NJa.removeAttribute("disabled"));r && (this.EJa(this.$Ha,r.map(function(q){return {value:q.id,caption:"[" + q.id + "] " + q.name,selected:q == l.j.Tc[k.u.U].value};})),this.$Ha.removeAttribute("disabled"));};d.prototype.m4b=function(){this.T6 && this.vkb();};d.prototype.gIa=function(l){var m,p;m=(0,c.createElement)("DIV","display:inline-block;vertical-align:top;margin:5px;");l=(0,c.createElement)("DIV",void 0,l);p=(0,c.createElement)("select","width:120px;height:180px",void 0,{disabled:"disabled",multiple:"multiple"});m.appendChild(l);m.appendChild(p);this.eIa.appendChild(m);return p;};d.prototype.EJa=function(l,m){l.innerHTML="";m.forEach(function(p){var r;r={title:p.caption};p.selected && (r.selected="selected");r=(0,c.createElement)("option",void 0,p.caption,r);r.value=p.value;l.appendChild(r);});};d.prototype.U3b=function(l){l.ctrlKey && l.altKey && l.shiftKey && l.keyCode == e.BV.Cga && this.R$.EUa && this.toggle();};b.ueb=d;},79173:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.jfb=void 0;d=a(31276);n=a(61726);b.jfb=(function(){(0,d.gn)("ProbeDownloader");return {Goa:function(c){c={url:c.url,JJc:c};!1;n.Ke.MJc(c);}};})();},27758:function(t,b,a){var n,c,f,g,e,h,k;function d(){var l;l=new c.qm();this.addEventListener=l.addListener.bind(this);this.removeEventListener=l.removeListener.bind(this);this.emit=l.qd.bind(this);this.Dka=h++;this.sg=(0,f.gn)("ProbeRequest");this.kkb=n.jfb;(0,g.va)(void 0 !== this.kkb);this.tg=b.vm.Zd.UNSENT;!1;}Object.defineProperty(b,"__esModule",{value:!0});b.vm=void 0;n=a(79173);c=a(94886);f=a(31276);g=a(45146);e=a(3887);h=0;(function(){function l(){return JSON.stringify({url:this.Hg,id:this.Dka,affected:this.Hja,readystate:this.tg});}(0,e.Gf)(d.prototype,{j0:function(m){this.tg !== b.vm.Zd.$N && this.tg !== b.vm.Zd.DONE && (this.Hka=m,m={url:this.Hg,affected:this.Hja,probed:{requestId:this.Dka,url:this.Hg,dd:this.M6,groupId:this.bka}},200 <= this.Hka && 299 >= this.Hka?(this.tg=b.vm.Zd.DONE,this.emit(b.vm.pm.r5,m)):(this.tg=b.vm.Zd.$N,this.emit(b.vm.pm.gJ,m)));},eXa:function(m){this.tg !== b.vm.Zd.$N && this.tg !== b.vm.Zd.DONE && (this.Hka=m,m={url:this.Hg,affected:this.Hja,probed:{requestId:this.Dka,url:this.Hg,dd:this.M6,groupId:this.bka}},this.tg=b.vm.Zd.$N,this.emit(b.vm.pm.gJ,m));},open:function(m,p,r){if(!m)return (!1,!1);this.Hg=m;this.Hja=p;this.M6=r;this.tg=b.vm.Zd.OPENED;this.kkb.Goa(this);this.tg=b.vm.Zd.iF;return !0;},Qe:function(){!1;return !0;},Ei:function(){return this.Dka;},toString:l,toJSON:l});Object.defineProperties(d.prototype,{readyState:{get:function(){return this.tg;}},status:{get:function(){return this.Hka;}},url:{get:function(){return this.Hg;}},O4c:{get:function(){return this.Hja;}}});})();(function(l){l.pm={r5:"pr0",gJ:"pr1"};l.Zd={UNSENT:0,OPENED:1,iF:2,DONE:3,$N:4,name:["UNSENT","OPENED","SENT","DONE","FAILED"]};})(k || (k={}));b.vm=Object.assign(d,k);},59405:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});d=a(29204);n=a(33096);t=a(36129);c=a(31276);f=a(69484);a=a(11479);c.Xa.get(a.ek).register(t.da.j$a,function(g){d.config.Mnc && c.Xa.get(f.b9a).start();g(n.Oh);});},91515:function(t,b,a){var n;function d(){this.mediaType=n.u.Ca;}Object.defineProperty(b,"__esModule",{value:!0});b.xhb=void 0;n=a(45247);d.prototype.appendBuffer=function(){return !0;};d.prototype.$Mb=function(){};b.xhb=d;},49587:function(t,b){function a(d,n){this.j=n;this.KS=!0;this.wxa=!1;this.Ga=d;}Object.defineProperty(b,"__esModule",{value:!0});b.gib=void 0;a.prototype.CXa=function(){this.KS && (this.KS=!1,this.j.paused.set(!1));};a.prototype.BXa=function(){this.KS || (this.KS=!0,this.j.paused.set(!0));};a.prototype.pause=function(){var d;this.paused || (this.KS=!0,null === (d=this.Ga) || void 0 === d?void 0:d.pause());};a.prototype.play=function(){var d,n;d=this;return this.paused && !this.wxa?(this.wxa=!0,Promise.resolve(null === (n=this.Ga) || void 0 === n?void 0:n.play()).then(function(){d.wxa=!1;}).catch(function(c){var f;d.wxa=!1;d.KS=!(null === (f=d.Ga) || void 0 === f || !f.paused);throw c;})):Promise.resolve();};a.prototype.close=function(){this.Ga=void 0;};Ha.Object.defineProperties(a.prototype,{paused:{configurable:!0,enumerable:!0,get:function(){return this.KS;}}});b.gib=a;},42087:function(t,b){function a(d,n){var c;c=this;this.j=d;this.wa=n;this.bCb=-1;this.Uxa=0;this.svb=[];this.gXc=function(f,g){var e,h,k;c.GNa=void 0;f=null !== (h=null === (e=c.j.ac) || void 0 === e?void 0:e.lA(!1)) && void 0 !== h?h:0;c.bCb === g.mediaTime?c.Uxa++:c.Uxa=0;c.bCb=g.mediaTime;if(0 === g.mediaTime)return c.requestVideoFrameCallback();3 < c.Uxa && f >= 1E3 * g.mediaTime + c.PXa && (c.svb.push(g.mediaTime),c.Uxa=0,g=c.j.ac.lA(!1),e=g + c.PXa,c.wa.error("freeze detected, seek forward",{currentTime:g,newMediaTime:e,oneFrameInMs:c.PXa}),null === (k=c.j.ac) || void 0 === k?void 0:k.seek(e,!0));c.requestVideoFrameCallback();};}Object.defineProperty(b,"__esModule",{value:!0});b.hib=void 0;a.prototype.XRc=function(){this.requestVideoFrameCallback();};a.prototype.requestVideoFrameCallback=function(){var d,n;n=null === (d=this.j.ac) || void 0 === d?void 0:d.Ga;n && void 0 !== this.GNa && n.cancelVideoFrameCallback && n.cancelVideoFrameCallback(this.GNa);n && n.requestVideoFrameCallback && (this.GNa=n.requestVideoFrameCallback(this.gXc));};Ha.Object.defineProperties(a.prototype,{PXa:{configurable:!0,enumerable:!0,get:function(){var d,n;if(this.oQa)return this.oQa;if(null === (d=this.j.$f.value) || void 0 === d?0:d.framerate)this.oQa=Math.ceil(1E3 / this.j.$f.value.framerate);return null !== (n=this.oQa) && void 0 !== n?n:0;}}});b.hib=a;},20318:function(t,b){function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.uv=b.sTb=void 0;b.sTb=a;b.uv=new a();},70632:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);n=a(45247);c=a(51790);f=a(27758);g=a(90762);e=a(29204);h=a(33096);k=a(67263);l=a(53754);m=a(24066);t=a(36129);p=a(31276);r=a(21941);q=a(22365);u=a(59416);b=a(11479);v=a(13044);w=a(20318);x=a(2248);y=a(84408);A=a(97685);({NODE_ENV:"production",PLATFORM:"cadmium",ASEBUILD:"release",OBFUSCATE:"obfuscate"}).Y0c && A.IR.enable();p.Xa.get(b.ek).register(t.da.h$a,function(z){var B,C,D,F,H,E,G,J,L,K;B=p.Xa.get(r.Bcb).Kfc();C=p.Xa.get(k.uAa).P3;D=p.Xa.get(c.Sbb).Al;F=p.Xa.get(x.mm);H=p.Xa.get(y.oF);E={qua:(0,p.X9)("ASE"),z7b:(0,p.X9)("JS-ASE",void 0,"Platform"),gn:p.X9,storage:u.storage,hrc:q.x7a,getTime:m.Cx,$ma:function(M){return F.decode(M).buffer;},pK:function(M){return H.encode(M);},Sna:function(M){return H.decode(M);},PR:{},Al:D,vm:f.vm,P3:C,MediaSource:l.Ubb,SourceBuffer:g.uDa,DZ:function(){return [e.config.vla,e.config.xla,e.config.wla];},PC:function(M){v.Zp.forEach(function(P){P.aNb(M);});}};C=new Promise(function(M){u.storage.load("nh",function(P){E.PR.nh=P.success?P.data:void 0;M();});});D=new Promise(function(M){u.storage.load("lh",function(P){E.PR.lh=P.success?P.data:void 0;M();});});G=new Promise(function(M){u.storage.load("gh",function(P){E.PR.gh=P.success?P.data:void 0;M();});});J=new Promise(function(M){u.storage.load("sth",function(P){E.PR.sth=P.success?P.data:void 0;M();});});L=new Promise(function(M){u.storage.load("vb",function(P){E.PR.vb=P.success?P.data:void 0;M();});});K=new Promise(function(M){u.storage.load("ab",function(P){E.PR.ab=P.success?P.data:void 0;M();});});Promise.all([C,D,K,L,J,G]).then(function(){return d.__awaiter(this,void 0,void 0,function P(){var I,O;return Ua(P,function(Q){if(1 == Q.Ds)return (I=a(92623)(E),w.uv.Mm=a(21457),w.uv.Mm.declare(n.eg),w.uv.Mm.set(a(87141)(e.config),!0,(0,p.X9)("ASE")),cb(Q,n.z$(I),2));O=Q.TU;O.open(w.uv.Mm,B);O.nPc({audio:e.config.vla,video:e.config.xla,text:e.config.wla},{G:e.config.xH,ma:void 0});w.uv.bk=O;z(h.Oh);Q.Ds=0;});});}).catch(function(M){E.qua.error("Exception loading location history from local storage",M);});});},39480:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperty(b,"__esModule",{value:!0});b.z_b=function(l){var q,u,v,w,x,y;function m(){return l.state.value === k.Fc.LOADING || l.state.value === k.Fc.zf && l.Zb.value === k.Nb.mh;}function p(){m()?y || (y=setInterval(r,100)):y && (clearInterval(y),y=void 0,(0,e.Xh)(r));}function r(){var A,z,B,C,D,F,H,E;A=(0,c.Cx)();z=q.value;B=z?z.progress:0;C=l.state.value == k.Fc.LOADING || m() && A - u > n.config.Z9b;if(C && l.state.value == k.Fc.zf){if(l.ie.value === k.jh.Zfb)(D=B,F=!0);else {H=A;v=v || A;w=w || v + n.config.uCc + 1;(0,h.pc)(H) && (H=(0,g.jz)(H,w),D=(0,g.ut)(1E3 * (0,f.eF)((A - v) / (H - v),0,.99)) / 1E3);}if(D < B)if(B - D < n.config.iKc / 100)(D=B,x=void 0);else if(x){if(A - x > n.config.hKc){E=!0;x=void 0;}else D=B;}else (x=A,D=B);}else x=w=v=void 0;A=C?{Zs:F,progress:D,jKc:E}:null;(!A || !q || !z || (0,h.pc)(A.progress) && !(0,h.pc)(z.progress) || (0,h.pc)(A.progress) && (0,h.pc)(z.progress) && .01 < (0,g.Wha)(A.progress - z.progress) || A.Zs !== z.Zs) && q.set(A);}q=l.KLa;u=0;l.state.addListener(function(){p();r();},d.hEa);l.Zb.addListener(function(A){if(A.oldValue !== k.Nb.mh || A.newValue !== k.Nb.mh)u=(0,c.Cx)();p();});l.ie.addListener(function(){p();});l.Lt.addListener(function(){p();});l.En.addListener(function(){p();});y || (y=setInterval(r,100));};d=a(33096);n=a(29204);c=a(24066);f=a(8825);g=a(22365);e=a(32219);h=a(32687);k=a(85001);},13044:function(t,b,a){var n,c;function d(f,g){var e;e=b.Zp[0];e == g && (e=b.Zp[1]);e?e.close(function(){d(f,g);}):f && f(n.Oh);}Object.defineProperty(b,"__esModule",{value:!0});b.leb=b.jeb=b.iFa=b.jFa=b.pz=b.kFa=b.keb=b.mFa=b.lFa=b.Zp=void 0;b.meb=d;b.A_b=function(f,g){switch(f){case b.keb:b.lFa.push(g);return;case b.kFa:b.mFa.push(g);return;}(0,c.va)(!1);};b.nFa=function(){return b.pz.fca && b.Zp.includes(b.pz.fca)?b.pz.fca:void 0;};n=a(33096);c=a(45146);b.Zp=[];b.lFa=[];b.mFa=[];b.keb=1;b.kFa=3;b.pz={index:0,fca:void 0,WPa:void 0};b.jFa="network";b.iFa="media";b.jeb="timedtext";b.leb="playback";},30689:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});d=a(29204);n=a(33096);t=a(36129);c=a(31276);b=a(11479);f=a(66476);c.Xa.get(b.ek).register(t.da.o$a,function(e){var h,k,l;if(d.config.Ay){h=(0,c.gn)("PlayerPredictionModel");k=c.Xa.get(f.FO);l=a(99886);h.log=h.trace.bind(h);g=new l({},h,{Cda:function(){},vMc:function(){}},k,{dT:function(){}});Ba._cad_global.playerPredictionModel=g;h.info("ppm v2 initialized");}e(n.Oh);});},22365:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.yVa=b.localStorage=b.Avc=b.indexedDB=b.ncb=b.Wn=b.cJ=b.vO=b.URL=b.fia=b.KYb=b.Abb=b.zbb=b.Wha=b.Xha=b.aF=b.jz=b.ut=b.uYb=b.KV=b.Zgb=b.x7a=b.fZb=b.pop=b.forEach=b.filter=b.reduce=b.every=b.slice=b.map=b.sort=b.VF=b.JYb=b.Ni=b.eC=b.ocb=b.dJ=b.eia=b.OV=void 0;t=Ba;b.zg=t.navigator;b.OV=null === b.zg || void 0 === b.zg?void 0:b.zg.userAgent;b.eia=t.location;b.dJ=t.screen;b.ocb=t.devicePixelRatio;b.eC=t.performance;b.Ni=t.document;b.JYb=b.Ni.documentElement;b.VF=Array.prototype;b.sort=b.VF.sort;b.map=b.VF.map;b.slice=b.VF.slice;b.every=b.VF.every;b.reduce=b.VF.reduce;b.filter=b.VF.filter;b.forEach=b.VF.forEach;b.pop=b.VF.pop;b.fZb=Object.create;b.x7a=Date.now;b.Zgb=String.fromCharCode;b.KV=Math.floor;b.uYb=Math.ceil;b.ut=Math.round;b.jz=Math.max;b.aF=Math.min;b.Xha=Math.random;b.Wha=Math.abs;b.zbb=Math.pow;b.Abb=Math.sqrt;b.KYb=t.escape;b.fia=t.unescape;b.URL=t.URL || t.webkitURL;b.vO=t.MediaSource || t.WebKitMediaSource;b.cJ=t.webkitCrypto || t.msCrypto || t.crypto;b.Wn=b.cJ && (b.cJ.webkitSubtle || b.cJ.subtle);b.ncb=t.webkitCryptokeys || t.msCryptokeys || t.cryptokeys;try{b.indexedDB=t.indexedDB;}catch(a){b.Avc=a || "noex";}try{b.localStorage=t.localStorage;}catch(a){b.yVa=a || "noex";}},59416:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.storage=void 0;d=a(29204);n=a(33096);c=a(50350);t=a(36129);f=a(75876);g=a(19630);e=a(31276);a=a(11479);b.storage=b.storage || void 0;e.Xa.get(a.ek).register(t.da.q$a,function(h){var k;switch(d.config.ySc){case "idb":k=f.uSc;break;case "none":k=c.wSc;break;case "ls":k=g.vSc;}k(function(l){l.success?(b.storage=l.storage,h(n.Oh)):h(l);});});},75876:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.uSc=function(g){d.Xa.get(n.II).create().then(function(e){g({success:!0,storage:new f.wCa(e,d.Xa.get(c.Am))});}).catch(function(e){g(e);});};d=a(31276);n=a(17892);c=a(74870);f=a(6675);},19630:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.vSc=function(g){g({success:!0,storage:new d.wCa(n.Xa.get(c.Sab),n.Xa.get(f.Am))});};d=a(6675);n=a(31276);c=a(56278);f=a(74870);},50350:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.wSc=function(f){var g;(0,n.gn)("Storage");g={};f({success:!0,storage:{load:function(e,h){var k;if(g.hasOwnProperty(e)){k=g[e];!1;h({success:!0,data:k,Qwa:e});}else (!1,h({Ta:c.Y.jF}));},save:function(e,h,k,l){k && g.hasOwnProperty(e)?l({success:!1}):(g[e]=h,!1,l && l({success:!0,Qwa:e}));},remove:function(e,h){delete g[e];!1;h && h(d.Oh);}}});};d=a(33096);n=a(31276);c=a(36129);a(3887);},50040:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;Object.defineProperty(b,"__esModule",{value:!0});b.eU=void 0;d=a(33096);n=a(29204);c=a(37509);f=a(24066);g=a(36129);e=a(45146);h=a(31276);k=a(3887);l=a(22365);m=a(59416);p=a(32687);t=a(11479);h.Xa.get(t.ek).register(g.da.r$a,function(r){var v,w,x;function q(){var y;q=d.eJ;y=setInterval(u,n.config.kAc);c.xe.addListener(c.hn,function(A){A && A.isPopStateEvent?v.trace("popstate event, Lock timers can stay"):((0,k.Di)(w,function(z,B){localStorage.removeItem(B.iy);}),clearInterval(y));},d.SV);}function u(){var y;y=(0,f.lpb)();(0,k.Di)(w,function(A,z){!1;A=localStorage.getItem(z.iy);(A=JSON.parse(A))?A.updated=y:A={updated:y,sessionId:x,count:1};localStorage.setItem(z.iy,JSON.stringify(A));});}(0,e.va)(m.storage);v=(0,h.gn)("StorageLock");w={};x=Date.now() + "-" + Math.floor(1E6 * Math.random());b.eU={Oz:function(y,A,z){var C,D,F,H,E,G,J,L,K,M;function B(P){localStorage.setItem(F,JSON.stringify(P));P={iy:F};w[F]=P;v.trace("Lock acquired",{Name:P.iy});q();A({success:!0,Kra:P});}C=this;z=void 0 === z?!1:z;if(localStorage){D=(0,f.lpb)();F="lock-" + y;H={updated:D,sessionId:x,count:1};try{if((F in localStorage)){E=localStorage.getItem(F);G=0;J=JSON.parse(E);(0,p.sL)(J.updated) && (G=J.updated);L=(0,l.Wha)(D - G) * d.qr;K=x === J.sessionId;if(L < n.config.OCb){if(K)(J.count+=1,v.debug("Incremented lock count for existing playbackSession",{id:x,count:J.count}),J.updated=D,B(J));else if(z){M=n.config.OCb - L + d.qr;v.error("Waiting until current expiration to confirm whether lock is still active",{id:x,count:J.count,Epoch:D,LockEpoch:G,waitTimeoutMs:M});Ba.setTimeout(function(){return C.Oz(y,A,!1);},M);}else A({success:!1});}else (v.error("Lock was expired or invalid, ignoring",{Epoch:D,LockEpoch:G}),B(H));}else B(H);}catch(P){v.error("Error acquiring Lock",{errorSubCode:g.Y.nr,errorDetails:(0,k.jj)(P)});A({success:!0});}}else (l.yVa?v.error("Local storage access exception",{errorSubCode:g.Y.A0b,errorDetails:(0,k.jj)(l.yVa)}):v.error("No localstorage",{errorSubCode:g.Y.B0b}),A({success:!0}));},release:function(y,A){var z,B;(0,e.va)(w[y.iy] == y);if(localStorage){try{z=localStorage.getItem(y.iy);B=JSON.parse(z);B && 1 < B.count?(--B.count,localStorage.setItem(y.iy,JSON.stringify(B)),v.trace("Lock count decremented",{Name:y.iy,count:B.count})):(localStorage.removeItem(y.iy),delete w[y.iy],v.trace("Lock released",{Name:y.iy}));}catch(C){v.error("Unable to release Lock",{Name:y.iy},C);}A && A(d.Oh);}}};n.config.Xna?b.eU.Oz("session",function(y){b.eU.uMb=y;r(d.Oh);}):r(d.Oh);});},991:function(t,b,a){var f,g,e,h;function d(k,l,m,p){var r,q,u;(0,f.va)((0,h.IA)(k) && !(0,h.isArray)(k));p=p || "";r="";q=k.hasOwnProperty(e.lga) && k[e.lga];q && (0,g.Di)(q,function(v,w){r && (r+=" ");r+=v + '="' + c(w) + '"';});m=(l?l + ":":"") + m;q=p + "<" + m + (r?" " + r:"");u=k.hasOwnProperty(e.FE) && k[e.FE].trim && "" !== k[e.FE].trim() && k[e.FE];if(u)return q + ">" + c(u) + "";k=n(k,l,p + " ");return q + (k?">\n" + k + "\n" + p + "":"/>");}function n(k,l,m){var p;(0,f.va)((0,h.IA)(k) && !(0,h.isArray)(k));m=m || "";p="";(0,g.Di)(k,function(r,q){var w;if("$" != r[0])for(var u=(0,g.JL)(q),v=0;v < u.length;v++)if((q=u[v],p && (p+="\n"),(0,h.IA)(q)))p+=d(q,l,r,m);else {w=(l?l + ":":"") + r;p+=m + "<" + w + ">" + c(q) + "";}});return p;}function c(k){if((0,h.Fi)(k))return (0,g.bTa)(k);if((0,h.pc)(k))return ((0,f.H8)(k,"Convert non-integer numbers to string for xml serialization."),"" + k);if(null === k || void 0 === k)return "";(0,f.va)(!1,"Invalid xml value.");return "";}Object.defineProperty(b,"__esModule",{value:!0});b.i$c=d;b.j$c=n;b.Rdd=c;f=a(45146);g=a(3887);e=a(62604);h=a(32687);},62604:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.tHc=b.HSb=b.GSb=b.FE=b.f4a=b.FSb=b.lga=void 0;b.opc=function(c,f,g){for(var e=2;e < arguments.length;++e);for(e=1;(f=arguments[e++]) && (c=c[f]););return c;};b.zbd=function(c,f){var g;c?g=(0,d.am)(c[b.FE]):void 0 !== f && (g=f);(0,n.H8)(g);return g;};b.oHc=function(c,f){var g;c?g=c[b.FE]:void 0 !== f && (g=f);(0,n.Arb)(g);return g;};b.S$c=function(c,f){var g;g={};g[b.lga]=c;g[b.FE]=f;return g;};d=a(3887);n=a(45146);b.lga="$attributes";b.FSb="$children";b.f4a="$name";b.FE="$text";b.GSb="$parent";b.HSb="$sibling";b.tHc=/^\s*<\?xml.*\?>/i;},84281:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.dYc=function(e,h){var k,l;try{l=(0,c.eYc)(e);}catch(m){d.log.error("xml2xmlDoc exception",m);}(0,g.Xh)(function(){if(l && l.documentElement)try{k=(0,f.fYc)(l);}catch(m){d.log.error("xmlDoc2js exception",m);}(0,g.Xh)(function(){k?h({success:!0,object:k}):h({success:!1,Ta:n.Y.fWb});});});};d=a(31276);n=a(36129);c=a(78857);f=a(74413);g=a(32219);},78857:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.eYc=function(c){var f,g;if((0,n.n_)(c)){f=new DOMParser().parseFromString(c,"text/xml");g=f.getElementsByTagName("parsererror");if(g && g[0]){try{d.log.error("parser error details",{errornode:new XMLSerializer().serializeToString(g[0]),xmlData:c.slice(0,300),fileSize:c.length});}catch(e){}throw Error("xml parser error");}return f;}throw Error("bad xml text");};d=a(31276);n=a(32687);},74413:function(t,b,a){var n;function d(c){var f,g,e,h,k,l,m;g={};g[n.f4a]=c.localName;e={};g[n.lga]=e;h=[];g[n.FSb]=h;k=c.attributes;l=k.length;for(f=0;f < l;f++){m=k[f];e[m.localName]=m.value;}c=c.childNodes;l=c.length;e={};for(f=0;f < l;f++)switch((k=c[f],k.nodeType)){case b.KSb:k=d(k);m=k[n.f4a];k[n.GSb]=g;h.push(k);g[m]?e[m][n.HSb]=k:g[m]=k;e[m]=k;break;case b.LSb:case b.ISb:(k=k.text || k.nodeValue,h.push(k),g[n.FE] || (g[n.FE]=k));}return g;}Object.defineProperty(b,"__esModule",{value:!0});b.JSb=b.ISb=b.LSb=b.gYc=b.KSb=void 0;b.fYc=function(c){return d(c.nodeType == b.JSb?c.documentElement:c);};b.Oed=d;n=a(62604);b.KSb=1;b.gYc=2;b.LSb=3;b.ISb=4;b.JSb=9;},87886:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;Object.defineProperty(b,"__esModule",{value:!0});b.Hh=void 0;t=a(22674);d=a(58252);n=a(60443);c=a(32050);f=a(62468);g=a(75864);e=a(45716);h=a(99282);k=a(52531);l=a(88063);m=a(79054);p=a(56190);r=a(69751);q=a(62665);u=a(7342);v=a(82585);w=a(76409);x=a(69882);b.Hh=new t.Be(function(y){y(d.FFa).to(n.EFa).sa();y(c.MFa).to(f.LFa).sa();y(g.x5).to(e.CFa).sa();y(k.zO).to(h.AFa).sa();y(w.Qeb).to(x.KFa).sa();y(l.Leb).to(m.HFa).sa();y(p.Neb).Zf(function(A){var z;z=A.Ib;return function(B){return new r.Oeb(B,z.get(w.Qeb),z.get(q.XE),z.get(k.zO));};});y(u.nab).Zf(function(A){var z;z=A.Ib;return function(B,C,D){return new v.oab(B,C,D,z.get(k.zO),z.get(g.x5));};});});},7342:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.nab="LegacyPostPlayShimFactorySymbol";},52531:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.zO="PlaygraphConfigSymbol";},75864:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.y5={};t.H0c="ident";t.aDa="main";t.G6a="credits";b.x5="PlaygraphHelperSymbol";},58252:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.FFa="PlaygraphManagerFactorySymbol";},88063:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Leb="PlaygraphPlaybackStrategyFactorySymbol";},56190:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Neb="PlaygraphStateFactorySymbol";},76409:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Qeb="PlaygraphUtilsSymbol";},32050:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.MFa="PlaygraphVideoPlayerFactorySymbol";},56819:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.HO={};t[t.Icb=0]="None";t[t.X8a=1]="Fetching";t[t.DVb=2]="Done";t[t.Error=3]="Error";},82585:function(t,b,a){var n,c;function d(f,g,e,h,k){this.Xj=f;this.Hh=g;this.log=e;this.ol=h;this.Oq=k;this.rua=new n.sFa();}Object.defineProperty(b,"__esModule",{value:!0});b.oab=void 0;n=a(81889);c=a(75864);d.prototype.C5b=function(f){var g,e,h,k,l,m,p;this.log.info("Next episode added",f);m=this.rua.VVa(f.playbackParams);p=Math.max(0,null !== (h=null !== (e=null !== (g=f.startPts) && void 0 !== g?g:f.nextStartPts) && void 0 !== e?e:m.Gb) && void 0 !== h?h:0);g=null !== (l=null !== (k=f.endPts) && void 0 !== k?k:f.currentEndPts) && void 0 !== l?l:m.oj;return this.Hh.q6b({R:f.movieId,Gb:p,oj:g,Cb:m,S:f.manifest,Xj:this.Xj});};d.prototype.WHc=function(f){var g,e,h,k,l,m;f=this.rua.VVa(f);this.log.info("Playing the next episode",f);h=this.Hh.dwb();k=this.Hh.fR();l=k.ba[h];m=Object.keys(null !== (g=l.next) && void 0 !== g?g:{}).find(function(p){return l.J !== k.ba[p].J;});g=!this.ol.Aua || !(null === (e=f.Xq) || void 0 === e?0:e.isUIAutoPlay);return m?this.Hh.DSa(h,m,f,g):Promise.reject(Error("Next episode not found"));};d.prototype.DXc=function(f){var g,e;g=this.Oq.Ox(f,c.y5.aDa);f=this.Oq.Ox(f,c.y5.G6a);e=this.Hh.xb;this.ol.Aua && e.Bi !== f && e.MM(f) && e.x$(g) !== f && this.Hh.Bn({L:g,f0:f});};b.oab=d;},65473:function(t,b,a){var n;function d(c,f,g,e,h){var k;k=this;this.xb=c;this.km=f;this.Fu=g;this.jc=e;this.Oq=h;this.Dua=new Map();this.vQc();this.jc.addListener(n.Za.loaded,function(){return k.HIb();});}Object.defineProperty(b,"__esModule",{value:!0});b.uO=void 0;n=a(85001);d.prototype.Tlb=function(c){var f,g;f=this;g=Object.keys(this.xb.vn.ba).find(function(e){return f.xb.vn.ba[e].J === c.R;});c.id || (c.id=null !== g && void 0 !== g?g:this.Oq.Ox(c.R));g || (this.xb.vn=this.Oq.j7b(this.xb.vn,c));g=this.eT(c.id);c.oj && this.xb.cRb(c.id,c.oj);return g;};d.prototype.jQb=function(){return Promise.reject(Error("Error isn't recoverable"));};d.prototype.ESa=function(c,f){var g;g=this;f=void 0 === f?{}:f;return this.Fu.transition(c,f).then(function(){g.xb.Bi=c;});};d.prototype.close=function(c){return this.Fu.close(c);};d.prototype.ws=function(){return this.Fu.Wrc();};d.prototype.zq=function(){return this.Fu.zq();};d.prototype.WG=function(){return this.Fu.WG();};d.prototype.eT=function(c){this.Dua.has(c) || this.Dua.set(c,this.Fu.ag(this.X9b(c)));return this.Dua.get(c);};d.prototype.vQc=function(){var c;c=this;this.Fu.addListener(n.YV.hea,function(f){return c.jc.qd(n.YV.hea,f);});Object.values(n.Za).forEach(function(f){c.Fu.addListener(f,function(g){return c.jc.qd(f,g);});});};d.prototype.MD=function(){this.HIb();};d.prototype.IXa=function(c){this.Fu.$Qb({id:c,R:this.xb.fu(c).J,oj:this.xb.usc(c)});};d.prototype.zS=function(){};d.prototype.HIb=function(){var c,f;if(this.ws()){c=this.xb.Bi;f=this.xb.x$(c);f && !this.Dua.has(f) && (this.IXa(c),this.eT(f));}};d.prototype.X9b=function(c){var f,g,e,h;g=this.xb.fu(c);e=this.km.nR(g.J);h=null === e || void 0 === e?void 0:e.Cb;e=null === e || void 0 === e?void 0:e.S;return {id:c,R:g.J,Cf:g.wp,Gb:g.Ua,oj:null !== (f=null === h || void 0 === h?void 0:h.oj) && void 0 !== f?f:g.fb,Cb:h,S:e};};b.uO=d;},99282:function(t,b,a){var n,c,f,g,e;function d(h){return c.Qf.call(this,h,"PlaygraphConfigImpl") || this;}Object.defineProperty(b,"__esModule",{value:!0});b.AFa=void 0;t=a(22970);n=a(22674);c=a(64174);f=a(83767);g=a(12501);e=a(5021);Ia(d,c.Qf);Ha.Object.defineProperties(d.prototype,{eJc:{configurable:!0,enumerable:!0,get:function(){return 2;}},dJc:{configurable:!0,enumerable:!0,get:function(){return (0,e.CWa)(3);}},D3a:{configurable:!0,enumerable:!0,get:function(){return !1;}},Lxa:{configurable:!0,enumerable:!0,get:function(){return !1;}},zRb:{configurable:!0,enumerable:!0,get:function(){return !1;}},jvb:{configurable:!0,enumerable:!0,get:function(){return !1;}},Aua:{configurable:!0,enumerable:!0,get:function(){return !0;}}});a=d;b.AFa=a;t.__decorate([g.config(g.Vy,"prepareSegmentsUpfront")],a.prototype,"eJc",null);t.__decorate([g.config(g.ro,"prepareSegmentsDuration")],a.prototype,"dJc",null);t.__decorate([g.config(g.pd,"usePlaygraphForPostPlay")],a.prototype,"D3a",null);t.__decorate([g.config(g.pd,"usePlaygraphForSkipSegment")],a.prototype,"Lxa",null);t.__decorate([g.config(g.pd,"useSinglePlayerPlayback")],a.prototype,"zRb",null);t.__decorate([g.config(g.pd,"forcePlaygraphTrace")],a.prototype,"jvb",null);t.__decorate([g.config(g.pd,"postPlayDefaultNextEpisode")],a.prototype,"Aua",null);b.AFa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.Po))],a);},45716:function(t,b,a){var n,c,f;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.CFa=void 0;t=a(22970);n=a(75864);c=a(22674);f=a(79048);d.prototype.Rfc=function(g){var k,l,m;for(var e=[],h=0;h < arguments.length;++h)e[h - 0]=arguments[h];k=this;if(0 === e.length)throw Error("Empty playgraph");l=new f.dx().jI(this.Ox(e[0]));e.reverse().forEach(function(p){var r;r=k.Ox(p);l.ag(r,Object.assign({J:p,Ua:0,fb:Infinity},m?{Gc:m}:{}));m=r;});return l.build();};d.prototype.Ox=function(g,e){e=void 0 === e?n.y5.aDa:e;return g + ":" + e;};d.prototype.j7b=function(g,e){var h,k,l,m;if(void 0 === l)l=null !== (h=e.id) && void 0 !== h?h:this.Ox(e.R);h=this.Gwb(g);m=new f.dx(g);m.ag(l,{J:e.R,Ua:null !== (k=e.Gb) && void 0 !== k?k:0,fb:Infinity});g=g.ba[h];e={};m.ag(h,Object.assign({},g,{Gc:l,next:Object.assign({},g.next || ({}),(e[l]={},e))}));return m.build();};d.prototype.Gwb=function(g){for(var e=g.sf,h=e;h=g.ba[h].Gc;)e=h;return e;};a=d;b.CFa=a;b.CFa=a=t.__decorate([(0,c.aa)()],a);},60443:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r,q,u,v,w,x){this.th=p;this.tPa=r;this.ol=q;this.P2a=u;this.qIc=v;this.sIc=w;this.rIc=x;}Object.defineProperty(b,"__esModule",{value:!0});b.EFa=void 0;t=a(22970);n=a(22674);c=a(9862);f=a(87386);g=a(52531);e=a(44720);h=a(88063);k=a(25830);l=a(56190);a=a(32050);d.prototype.create=function(p){return new c.Ieb(p,this.th,this.tPa,this.ol,this.P2a,this.qIc,this.sIc,this.rIc);};m=d;b.EFa=m;b.EFa=m=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.zb)),t.__param(1,(0,n.v)(e.U3)),t.__param(2,(0,n.v)(g.zO)),t.__param(3,(0,n.v)(k.Fhb)),t.__param(4,(0,n.v)(h.Leb)),t.__param(5,(0,n.v)(l.Neb)),t.__param(6,(0,n.v)(a.MFa))],m);},9862:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r,q,u,v,w){this.P2a=q;this.O3a=w;r.Lxa && (l=new f.Jeb().HUc(l));this.xb=v(l);this.km=new c.Reb(this.xb);this.km.BMb(this.xb.ga.J);this.log=m.wb("PlaygraphManager");this.jc=p.create();this.zy=u.create(this.xb,this.km,this.log,this.jc);this.wQc();this.xQc();}Object.defineProperty(b,"__esModule",{value:!0});b.Ieb=void 0;n=a(85001);c=a(98899);f=a(15645);g=a(5021);e=a(33096);h=a(31276);k=a(45842);d.prototype.xQc=function(){var l,m,p;l=this;try{if(null !== (m=navigator.mediaSession) && void 0 !== m && m.setActionHandler){p=h.Xa.get(k.nJ)((0,g.ic)(500));navigator.mediaSession.setActionHandler("play",function(){p.ig(function(){l.Qb().play();});});navigator.mediaSession.setActionHandler("pause",function(){p.ig(function(){l.Qb().pause();});});navigator.mediaSession.setActionHandler("seekbackward",function(){p.ig(function(){var r,q;r=l.Qb();q=r.lA();q && r.seek(Math.max(0,q - 10 * e.qr),n.Mc.Xu);});});navigator.mediaSession.setActionHandler("seekforward",function(){p.ig(function(){var r,q,u;r=l.Qb();q=r.lA();u=r.NK();q && r.seek(Math.min(q + 10 * e.qr,u),n.Mc.Xu);});});navigator.mediaSession.setActionHandler("seekto",function(r){p.ig(function(){var q,u;q=l.Qb();u=r.seekTime;void 0 !== u && 0 <= u && u < q.NK() && q.seek(u * e.qr,n.Mc.Xu);});});navigator.mediaSession.setActionHandler("previoustrack",null);navigator.mediaSession.setActionHandler("nexttrack",null);}}catch(r){this.log.error("Error setting up MediaSession",r);}};d.prototype.Irc=function(){return this.xb.un;};d.prototype.Yoa=function(){return this.xb.ga;};d.prototype.dwb=function(){return this.xb.Bi;};d.prototype.fR=function(){return this.xb.vn;};d.prototype.Bn=function(l){for(var m=[],p=0;p < arguments.length;++p)m[p - 0]=arguments[p];this.xb.Bn.apply(this.xb,za(m));};d.prototype.Gbc=function(l){for(var m=[],p=0;p < arguments.length;++p)m[p - 0]=arguments[p];this.xb.Qmb(m);};d.prototype.vN=function(l){this.xb.vn=l;};d.prototype.Hrc=function(){return this.xb.yua.IZ();};d.prototype.wl=function(l,m){this.xb.wl(l,m);};d.prototype.DSa=function(l,m,p,r){var q,u;p=void 0 === p?{}:p;r=void 0 === r?!0:r;if(l !== this.xb.Bi)throw Error("Invalid currentSegmentId");if(-1 === Object.keys(null !== (q=this.fR().ba[l].next) && void 0 !== q?q:{}).indexOf(m))throw Error("Invalid nextSegmentId");this.log.info("Transition initiated: " + l + " -> " + m);null === (u=p.Xq) || void 0 === u?void 0:u.isUIAutoPlay;return this.zy.ESa(m,p,r);};d.prototype.Nxb=function(){var l,m;l=this.zy.WG().PG();m=this.xb.ga.Ua;return l?l - m:void 0;};d.prototype.Jrc=function(){var l,m;l=this.xb.yua.IZ(this.xb.Bi);m=this.Nxb();return l && m?l + m:void 0;};d.prototype.ws=function(){return this.zy.ws();};d.prototype.addListener=function(l,m,p){this.jc.addListener(l,m,p);};d.prototype.removeListener=function(l,m){this.jc.removeListener(l,m);};d.prototype.zq=function(){return this.zy.zq();};d.prototype.Qb=function(){return this.zy.WG();};d.prototype.Tfc=function(l,m,p){var r;l=void 0 === l?this.fR().sf:l;m=void 0 === m?{}:m;r=this.O3a.Oqb(this);this.YIc(null !== l && void 0 !== l?l:this.fR().sf,m,p);return r;};d.prototype.q6b=function(l){var m;this.log.info("Adding segment - movieId: " + l.R + ", startPts: " + l.Gb + ", logicalEnd: " + l.oj);m=Object.assign({},l.Cb,l.Gb?{Gb:l.Gb}:{},l.oj?{oj:l.oj}:{});this.sOb(l.R,m,l.S);return this.zy.Tlb(l);};d.prototype.transition=function(l){var m;m=this.xb.x$(this.xb.Bi);return m?this.DSa(this.xb.Bi,m,l):(this.log.error("Next segment is not defined"),Promise.reject());};d.prototype.close=function(l){return this.zy.close(l);};d.prototype.YIc=function(l,m,p){var r;void 0 === l && (l=null === (r=this.fR()) || void 0 === r?void 0:r.sf);(m || p) && this.sOb(this.fR().ba[l].J,null !== m && void 0 !== m?m:{},p);this.zy.eT(l);};d.prototype.sOb=function(l,m,p){p && this.km.RJ(l,p);this.km.W5b(l,m);};d.prototype.wQc=function(){var l;l=this;this.xb.$Sc(function(){l.km.MD();l.zy.MD();});this.xb.aTc(function(m){l.zy.IXa(m);});this.xb.ZSc(function(m){l.zy.zS(m);});this.addListener(n.YV.hea,function(m){return l.MFc(m);});this.addListener(n.Za.$zb,function(m){return l.xFc(m);});};d.prototype.xFc=function(l){var m;m=this;this.zy.jQb(l).catch(function(){return m.jc.qd(n.Za.error,l.ufa());});};d.prototype.MFc=function(l){var m,p,r;m=this;p=this.Qb().getError();if(p)this.jc.qd(n.Za.xX,p);else {l=l.player;p=l.zq().id;if(!this.lrb || this.lrb !== p){r=function(q){return m.cB(q);};this.Qb().jKb(n.ja.NM,r);l.vKa(n.ja.NM,r);this.lrb=p;}this.jc.qd(n.Za.Kla);this.jc.qd(n.Za.kq);this.jc.qd(n.Za.OB);this.jc.qd(n.Za.Op);this.jc.qd(n.Za.Cfa);this.jc.qd(n.Za.xX);}};d.prototype.cB=function(l){var m,p,r;!1;m=l.metrics;if(m){p=this.Qb();r=p.Vl(l.position.segmentId);m=p.Vl(m.srcsegment);this.P2a.eKc(l,r,m,!!p.rxb().Pg);}};b.Ieb=d;},15645:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.Jeb=void 0;n=a(79048);d.prototype.HUc=function(c){var f;if(!this.Axc(c.ba))return c;f=new n.dx().jI(c.sf);Object.entries(c.ba).forEach(function(g){var e;e=Ea(g);g=e.next().value;e=e.next().value;g === c.sf?f.ag(g,Object.assign(Object.assign({},e),{next:void 0,fb:void 0,Gc:void 0})):f.ag(g,e);});return f.build();};d.prototype.Axc=function(c){c=Object.values(c).map(function(f){return f.J;});return 1 === new Set(c).size;};b.Jeb=d;},79054:function(t,b,a){var n,c,f,g,e,h,k,l,m,p;function d(r,q,u,v,w,x,y){this.Va=r;this.COc=u;this.ol=w;this.Oq=y;this.xOc=q.XQ(!1,"6.0054.419.911",r.id,x,v);}Object.defineProperty(b,"__esModule",{value:!0});b.HFa=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(52531);g=a(88574);e=a(93488);h=a(2911);k=a(4203);l=a(65473);m=a(63368);a=a(75864);d.prototype.create=function(r,q,u,v){var w,x;w=this.COc.yfc(r,this.xOc,q);x=r.E3a;u.debug("Using " + (x?"single":"multiple") + " player playback strategy");return x?new g.Egb(this.ol,r,q,u,w,v,this.Oq):new l.uO(r,q,w,v,this.Oq);};p=d;b.HFa=p;b.HFa=p=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.fe)),t.__param(1,(0,n.v)(e.mgb)),t.__param(2,(0,n.v)(h.CGa)),t.__param(3,(0,n.v)(k.Hc)),t.__param(4,(0,n.v)(f.zO)),t.__param(5,(0,n.v)(m.yia)),t.__param(6,(0,n.v)(a.x5))],p);},69751:function(t,b,a){var n,c;function d(f,g,e,h){this.yua=g;this.AA=e;this.ol=h;this.xka={};this.PQb=[];this.HNb=[];this.lFb=[];this.YKa=new WeakMap();this.reset(f);}Object.defineProperty(b,"__esModule",{value:!0});b.Oeb=void 0;n=a(79048);c=a(79048);d.prototype.reset=function(f){var g;g=1 < Object.keys(f.ba).length && 1 === new Set(Object.values(f.ba).map(function(e){return e.J;})).size;this.N4b=this.ol.zRb || g;this.QMb(f);this.Bi=f.sf;this.iJa=this.AA.nG();this.u1a=new Map();};d.prototype.eR=function(f){if(this.E3a)return this.vn;this.YKa.has(f) || this.YKa.set(f,(0,n.r1a)(f.R,f.L));return this.YKa.get(f);};d.prototype.QMb=function(f){this.So=f;this.xka={};f=Object.keys(f.ba);this.Qmb(f);this.yua.cWc(this.So);this.dEc();};d.prototype.Bn=function(f){var h;for(var g=[],e=0;e < arguments.length;++e)g[e - 0]=arguments[e];h=this;g.filter(function(k){return h.MM(k.L);}).filter(function(k){k=k.f0;return !k || h.MM(k);}).forEach(function(k){var l;l=k.L;h.xka[l]=h.HFb(k.f0);h.YDc(l);});};d.prototype.Qmb=function(f){var g;g=this;f.filter(function(e){return g.MM(e);}).forEach(function(e){g.xka[e]=g.HFb(g.fu(e).Gc);});};d.prototype.wl=function(f,g){var e,h,k;e=this.fu(f);if(e && e.next){h=new c.dx(this.vn);k=Object.keys(e.next).reduce(function(l,m){l[m]=void 0 === g[m]?e.next[m]:Object.assign({},e.next[m],{weight:g[m]});return l;},{});k=Object.assign({},e,{next:k});h.ag(f,k);this.vn=h.build();}};d.prototype.MM=function(f,g){g=void 0 === g?this.vn.ba:g;return (f in g);};d.prototype.x$=function(f){return this.xka[f];};d.prototype.fu=function(f){return this.vn.ba[f];};d.prototype.usc=function(f){if(this.u1a.has(f))return this.u1a.get(f);f=this.fu(f);return isFinite(f.fb)?f.fb:void 0;};d.prototype.cRb=function(f,g){this.u1a.set(f,g);this.bEc(f);};d.prototype.$Sc=function(f){this.PQb.push(f);};d.prototype.aTc=function(f){this.HNb.push(f);};d.prototype.ZSc=function(f){this.lFb.push(f);};d.prototype.i_=function(){var f;f=void 0 === f?this.vn:f;return Object.values(f.ba).every(function(g){return void 0 !== g.wp;}) && 1 < Object.values(f.ba).length;};d.prototype.dEc=function(){var f;f=this;this.PQb.forEach(function(g){return g(f.vn);});};d.prototype.YDc=function(f){this.lFb.forEach(function(g){return g(f);});};d.prototype.bEc=function(f){this.HNb.forEach(function(g){return g(f);});};d.prototype.HFb=function(f){return null === f?void 0:f;};Ha.Object.defineProperties(d.prototype,{un:{configurable:!0,enumerable:!0,get:function(){return this.iJa;}},E3a:{configurable:!0,enumerable:!0,get:function(){return this.N4b;}},vn:{configurable:!0,enumerable:!0,get:function(){return this.So;},set:function(f){if(this.Bi && !this.MM(this.Bi,f.ba))throw Error("Provided playgraphMap does not contain the current segmentId " + this.Bi);this.QMb(f);}},Bi:{configurable:!0,enumerable:!0,get:function(){return this.i2b;},set:function(f){if(!this.MM(f))throw Error("Provided currentSegmentId " + f + " does not exist in the current playgraph");this.i2b=f;}},ga:{configurable:!0,enumerable:!0,get:function(){return this.fu(this.Bi);}}});b.Oeb=d;},69882:function(t,b,a){var n,c;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.KFa=void 0;t=a(22970);n=a(45146);a=a(22674);d.prototype.cWc=function(f){this.So=f;this.bDb=this.xfc(this.So.ba[this.So.sf].wp);};d.prototype.IZ=function(f){var k;(0,n.va)(this.So,"Playgraph should be initialized");for(var g=this.So.sf,e=0,h=new Set();g && !h.has(g);){k=this.So.ba[g];if(!k || !k.fb)break;if(f && f === g)break;e+=k.fb - k.Ua;h.add(g);g=k.Gc;}return e;};d.prototype.DOc=function(f,g,e){var h,k,l,m,p;(0,n.va)(this.So,"Playgraph should be initialized");l=this.So.ba[g];m=this.IZ(g);p=l.wp;if(l && void 0 !== p && void 0 !== m){m=m + f - l.Ua;if(p === l.J)return f;f=null === (h=this.bDb.get(g)) || void 0 === h?void 0:h.before;g=null === (k=this.bDb.get(g)) || void 0 === k?void 0:k.after;k=f?this.So.ba[f].fb:0;e=g?this.So.ba[g].Ua:e;h=f?this.IZ(f) + this.So.ba[f].fb - this.So.ba[f].Ua:0;g=g?this.IZ(g):this.IZ();if(void 0 != k && void 0 != e && void 0 != h && void 0 != g)return k + (m - h) * (e - k) / (g - h);}};d.prototype.xfc=function(f){var m;(0,n.va)(this.So,"Playgraph should be initialized");for(var g,e=this.So.sf,h=[],k=new Map(),l=new Set();e && !l.has(e);){m=this.So.ba[e];m.J === f?(k.set(e,{before:e,after:e}),g=e,h.forEach(function(p){if(p=k.get(p))p.after=g;}),h=[]):(k.set(e,{before:g,after:void 0}),h.push(e));e=m.Gc;}return k;};c=d;b.KFa=c;b.KFa=c=t.__decorate([(0,a.aa)()],c);},62468:function(t,b,a){var n,c,f,g;function d(e,h){this.Va=e;this.Lyc=h;}Object.defineProperty(b,"__esModule",{value:!0});b.LFa=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(7342);d.prototype.create=function(e){return new (a(58343).xja)(this.Va.yc(),e);};d.prototype.Oqb=function(e){return new (a(64059).Cga)(this.Va.yc(),e,this.Lyc);};g=d;b.LFa=g;b.LFa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.fe)),t.__param(1,(0,n.v)(f.nab))],g);},98899:function(t,b,a){var n;function d(c){this.Z=c;this.Q2={};this.MD();}Object.defineProperty(b,"__esModule",{value:!0});b.Reb=void 0;n=a(56819);d.prototype.MD=function(){var c;c=this;Object.values(this.Z.vn.ba).forEach(function(f){f=f.J;c.Q2[f] || c.Pzb(f);});this.Dxa();};d.prototype.nR=function(c){return this.Q2[c];};d.prototype.DPc=function(c){this.A$(c).state=n.HO.X8a;this.Dxa();};d.prototype.CPc=function(c,f){c=this.A$(c);c.state=n.HO.Error;c.error=f;c.TKb(!1);this.Dxa();};d.prototype.BMb=function(c){c=this.A$(c);c.state=n.HO.DVb;c.TKb(!0);this.Dxa();};d.prototype.W5b=function(c,f){this.A$(c).Cb=f;};d.prototype.RJ=function(c,f){this.A$(c).S=f;};d.prototype.A$=function(c){var f;return null !== (f=this.nR(c)) && void 0 !== f?f:this.Pzb(c);};d.prototype.Pzb=function(c){var f,g;f=void 0;g=new Promise(function(e,h){f=function(k){(k?e:h)();};});return this.Q2[c]={state:n.HO.Icb,VKc:g,TKb:f};};d.prototype.Dxa=function(){var f;for(var c=this.Z.Bi;c=this.Z.x$(c);){f=this.Sf(c);if(this.Q2[f].state === n.HO.Error)break;if(this.Q2[f].state === n.HO.X8a)break;if(this.Q2[f].state === n.HO.Icb)break;}};d.prototype.Sf=function(c){return this.Z.vn.ba[c].J;};b.Reb=d;},88574:function(t,b,a){var n,c,f,g,e;function d(h,k,l,m,p,r,q){var u;u=g.uO.call(this,k,l,p,r,q) || this;u.ol=h;u.wa=m;u.Fu=p;u.Wub=!1;u.mPa=new Map();u.CFc=function(){u.WG().vKa(c.ja.NM,function(v){u.jc.qd(c.YV.hea,{player:u.Fu.WG()});u.xb.Bi=v.position.segmentId;});};u.Dvc();r.addListener(c.Za.loaded,u.CFc);return u;}Object.defineProperty(b,"__esModule",{value:!0});b.Egb=void 0;n=a(79048);c=a(85001);f=a(36129);g=a(65473);e=a(75864);Ia(d,g.uO);d.prototype.Tlb=function(h){var k,l,m,p,r,q,u,v,w,x,y;k=this;m=this.xb.vn;p=this.Oq.Ox(h.R,"ident");r=this.Oq.Ox(h.R,"main");q=this.Oq.Ox(h.R,"credits");u=isFinite(h.oj);v=isFinite(h.Gb) && h.R !== m.ba[m.sf].J;w={};x=new n.dx(m).ag(r,Object.assign({J:h.R,Ua:v && h.Gb || 0,fb:null !== (l=h.oj) && void 0 !== l?l:Infinity},u?{next:(w[q]={},w),Gc:q}:{}));v && (l={},x.ag(p,{J:h.R,Ua:0,fb:h.Gb,next:(l[r]={},l),Gc:r}));u && x.ag(q,{J:h.R,Ua:h.oj,fb:Infinity});if(!this.xb.MM(r)){h=m.ba[this.Oq.Gwb(m)].J;y=this.Oq.Ox(h,e.y5.G6a);[this.Oq.Ox(h,e.y5.aDa),y].filter(function(A){return k.xb.MM(A);}).forEach(function(A){var z,B,C;z=k.xb.fu(A);B=A === y || k.ol.Aua;C={};x.ag(A,Object.assign({},z,{next:Object.assign({},z.next,(C[r]={},C))},B?{Gc:r}:{}));});}this.xb.vn=x.build();return this.eT(r);};d.prototype.MD=function(){this.ws() && this.WG().MD();};d.prototype.IXa=function(){};d.prototype.zS=function(h){this.WG().zS(h);};d.prototype.ESa=function(h,k,l){k=void 0 === k?{}:k;this.wa.debug("goToSegment " + h);return this.WG().T$(h,k,l);};d.prototype.eT=function(h){if(h === this.wOc)return null;this.wOc=h;return this.Wub?this.km.nR(this.xb.fu(h).J).VKc:(this.Wub=!0,g.uO.prototype.eT.call(this,h));};d.prototype.jQb=function(h){return h.errorCode && this.mPa.has(h.errorCode)?this.mPa.get(h.errorCode)(h):Promise.reject(Error("Error " + h.errorCode + " isn't recoverable"));};d.prototype.Dvc=function(){var h;h=this;this.mPa.set(f.da.sdb,function(){var k,l;return null !== (l=null === (k=g.uO.prototype.eT.call(h,h.xb.Bi)) || void 0 === k?void 0:k.then(function(){var m,p;g.uO.prototype.ESa.call(h,h.xb.Bi,null !== (p=null === (m=h.km.nR(h.xb.ga.J)) || void 0 === m?void 0:m.Cb) && void 0 !== p?p:{});})) && void 0 !== l?l:Promise.reject(Error("Couldn't prepare segment for transition"));});};b.Egb=d;},32754:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.hJb=void 0;t=a(22674);d=a(69493);n=a(28978);c=a(98166);f=a(660);b.hJb=new t.Be(function(g){g(d.T7a).to(n.vAa).sa();g(c.qab).to(f.ACa).sa();});},82100:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.c$a=b.Mfb=b.WE=b.N9a=b.dja=b.cja=b.uib=b.vib=b.UZb=b.cBa=b.TEMPORARY=b.NE=void 0;b.Xwb=function(c){var f;f=c.getConfiguration();return [b.WE,b.dja,b.cja].find(function(g){var e;return null === (e=f.videoCapabilities) || void 0 === e?void 0:e.some(function(h){return h.robustness === g;});});};b.LRa=function(c){var f,g,e,k;try{g=c.match(/\(hr=([0-9a-fA-F]+)\)/);if(g && g[1]){e=parseInt(g[1],16);if((0,d.pc)(e))return e;}g=/\((\d[^)]+)\)/g;for(var h;h=g.exec(c);){k=Number(h[1]);(0,d.pc)(k) && (f=k);}}catch(l){}return f;};b.oAb=function(c){return n.se.xf.test(c);};b.Lpb=function(c){return c.robustness?c.keySystem + "." + c.robustness:c.keySystem;};d=a(32687);n=a(22210);b.NE="cenc";b.TEMPORARY="temporary";b.cBa="MIIE2jCCA8KgAwIBAgIIBRGnbPd8z1YwDQYJKoZIhvcNAQEFBQAwfzELMAkGA1UEBhMCVVMxEzARBgNVBAoMCkFwcGxlIEluYy4xJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MTMwMQYDVQQDDCpBcHBsZSBLZXkgU2VydmljZXMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTMwMzI3MjEyNjU2WhcNMTUwMzI4MjEyNjU2WjBjMQswCQYDVQQGEwJVUzEUMBIGA1UECgwLTmV0ZmxpeC5jb20xDDAKBgNVBAsMA0VEUzEwMC4GA1UEAwwnRlBTIEFwcGxpY2F0aW9uIENlcnRpZmljYXRlICgyMDEzIHYxLjApMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDfaIdDptThILsQcAbDMvT5FpK4JNn/BnHAY++rS9OFfhg5R4pV7CI+UMZeC64TFJJZciq6dX4/Vh7JDDULooAeZxlOLqJB4v+KDMpFS6VsRPweeMRSCE5rQffF5HoRKx682Kw4Ltv2PTxE3M16ktYCOxq+/7fxevMt3uII+2V0tQIDAQABo4IB+DCCAfQwHQYDVR0OBBYEFDuQUJCSl+l2UeybrEfNbUR1JcwSMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUY+RHVMuFcVlGLIOszEQxZGcDLL4wgeIGA1UdIASB2jCB1zCB1AYJKoZIhvdjZAUBMIHGMIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNhdGUgYnkgYW55IHBhcnR5IGFzc3VtZXMgYWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhcHBsaWNhYmxlIHN0YW5kYXJkIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwgY2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0YXRlbWVudHMuMDUGA1UdHwQuMCwwKqAooCaGJGh0dHA6Ly9jcmwuYXBwbGUuY29tL2tleXNlcnZpY2VzLmNybDAOBgNVHQ8BAf8EBAMCBSAwLQYLKoZIhvdjZAYNAQMBAf8EGwGcLBpLUU8iNtuBsGfgldUUE/I42u6RKyl8uzBJBgsqhkiG92NkBg0BBAEB/wQ3AV+LX+Xo3O4lI5WzFXfxVrna5jJD1GHioNsMHMKUv97Kx9dCozZVRhmiGdTREdjOptDoUjj2ODANBgkqhkiG9w0BAQUFAAOCAQEAmkGc6tT450ENeFTTmvhyTHfntjWyEpEvsvoubGpqPnbPXhYsaz6U1RuoLkf5q4BkaXVE0yekfKiPa5lOSIYOebyWgDkWBuJDPrQFw8QYreq5T/rteSNQnJS1lAbg5vyLzexLMH7kq47OlCAnUlrI20mvGM71RuU6HlKJIlWIVlId5JZQF2ae0/A6BVZWh35+bQu+iPI1PXjrTVYqtmrV6N+vV8UaHRdKV6rCD648iJebynWZj4Gbgzqw7AX4RE6UwiX0Rgz9ZMM5Vzfgrgk8KxOmsuaP8Kgqf5KWeH/LDa+ocftU7zGz1jO5L999JptFIatsdPyZXnA3xM+QjzBW8w==";b.UZb="Q0hBSQAAAAEAAAUMAAAAAAAAAAJDRVJUAAAAAQAAAfwAAAFsAAEAAQAAAFhr+y4Ydms5rTmj6bCCteW2AAAAAAAAAAAAAAAJzZtwNxHterM9CAoJYOM3CF9Tj0d9KND413a+UtNzRTb/////AAAAAAAAAAAAAAAAAAAAAAABAAoAAABU8vU0ozkqocBJMVIX2K4dugAAADZodHRwOi8vbnJkcC5uY2NwLm5ldGZsaXguY29tL3Jtc2RrL3JpZ2h0c21hbmFnZXIuYXNteAAAAAABAAUAAAAMAAAAAAABAAYAAABcAAAAAQABAgAAAAAAglDQ2GehCoNSsOaaB8zstNK0cCnf1+9gX8wM+2xwLlqJ1kyokCjt3F8P2NqXHM4mEU/G1T0HBBSI3j6XpKqzgAAAAAEAAAACAAAABwAAAEgAAAAAAAAACE5ldGZsaXgAAAAAH1BsYXlSZWFkeSBNZXRlcmluZyBDZXJ0aWZpY2F0ZQAAAAAABjIwMjQ4AAAAAAEACAAAAJAAAQBAU73up7T8eJYVK4UHuKYgMQIRbo0yf27Y5EPZRPmzkx1ZDMor7Prs77CAOU9S9k0RxpxPnqUwAKRPIVCe0aX2+AAAAgBb65FSx1oKG2r8AxQjio+UrYGLhvA7KMlxJBbPXosAV/CJufnIdUMSA0DhxD2W3eRLh2vHukIL4VH9guUcEBXsQ0VSVAAAAAEAAAL8AAACbAABAAEAAABYyTlnSi+jZfRvYL0rk9sVfwAAAAAAAAAAAAAABFNh3USSkWi88BlSM6PZ2gMuceJFJ9hzz0WzuCiwF9qv/////wAAAAAAAAAAAAAAAAAAAAAAAQAFAAAADAAAAAAAAQAGAAAAYAAAAAEAAQIAAAAAAFvrkVLHWgobavwDFCOKj5StgYuG8DsoyXEkFs9eiwBX8Im5+ch1QxIDQOHEPZbd5EuHa8e6QgvhUf2C5RwQFewAAAACAAAAAQAAAAwAAAAHAAABmAAAAAAAAACATWljcm9zb2Z0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAUGxheVJlYWR5IFNMMCBNZXRlcmluZyBSb290IENBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAMS4wLjAuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAAAkAABAECsAomwQgNY0bm6U6Au9JRvwjbNnRzmVkZi+kg7npnRQ2T+4LgyrePBdBRQ3qb/jxXkn++4sOFa7vjRpFBzV0MMAAACAIZNYc/yJW5CLFaLPCgAHPs+FSdlhYS6BSG3mxgo2TbeHYJqj8Pm5/p6kNXKKUbx9kou+59dz/5+Q060QpP6xas=";b.vib="Cr0CCAMSEOVEukALwQ8307Y2+LVP+0MYh/HPkwUijgIwggEKAoIBAQDm875btoWUbGqQD8eAGuBlGY+Pxo8YF1LQR+Ex0pDONMet8EHslcZRBKNQ/09RZFTP0vrYimyYiBmk9GG+S0wB3CRITgweNE15cD33MQYyS3zpBd4z+sCJam2+jj1ZA4uijE2dxGC+gRBRnw9WoPyw7D8RuhGSJ95OEtzg3Ho+mEsxuE5xg9LM4+Zuro/9msz2bFgJUjQUVHo5j+k4qLWu4ObugFmc9DLIAohL58UR5k0XnvizulOHbMMxdzna9lwTw/4SALadEV/CZXBmswUtBgATDKNqjXwokohncpdsWSauH6vfS6FXwizQoZJ9TdjSGC60rUB2t+aYDm74cIuxAgMBAAE6EHRlc3QubmV0ZmxpeC5jb20SgAOE0y8yWw2Win6M2/bw7+aqVuQPwzS/YG5ySYvwCGQd0Dltr3hpik98WijUODUr6PxMn1ZYXOLo3eED6xYGM7Riza8XskRdCfF8xjj7L7/THPbixyn4mULsttSmWFhexzXnSeKqQHuoKmerqu0nu39iW3pcxDV/K7E6aaSr5ID0SCi7KRcL9BCUCz1g9c43sNj46BhMCWJSm0mx1XFDcoKZWhpj5FAgU4Q4e6f+S8eX39nf6D6SJRb4ap7Znzn7preIvmS93xWjm75I6UBVQGo6pn4qWNCgLYlGGCQCUm5tg566j+/g5jvYZkTJvbiZFwtjMW5njbSRwB3W4CrKoyxw4qsJNSaZRTKAvSjTKdqVDXV/U5HK7SaBA6iJ981/aforXbd2vZlRXO/2S+Maa2mHULzsD+S5l4/YGpSt7PnkCe25F+nAovtl/ogZgjMeEdFyd/9YMYjOS4krYmwp3yJ7m9ZzYCQ6I8RQN4x/yLlHG5RH/+WNLNUs6JAZ0fFdCmw=";b.uib="CAUSwwUKvQIIAxIQ5US6QAvBDzfTtjb4tU/7QxiH8c+TBSKOAjCCAQoCggEBAObzvlu2hZRsapAPx4Aa4GUZj4/GjxgXUtBH4THSkM40x63wQeyVxlEEo1D/T1FkVM/S+tiKbJiIGaT0Yb5LTAHcJEhODB40TXlwPfcxBjJLfOkF3jP6wIlqbb6OPVkDi6KMTZ3EYL6BEFGfD1ag/LDsPxG6EZIn3k4S3ODcej6YSzG4TnGD0szj5m6uj/2azPZsWAlSNBRUejmP6Tiota7g5u6AWZz0MsgCiEvnxRHmTRee+LO6U4dswzF3Odr2XBPD/hIAtp0RX8JlcGazBS0GABMMo2qNfCiSiGdyl2xZJq4fq99LoVfCLNChkn1N2NIYLrStQHa35pgObvhwi7ECAwEAAToQdGVzdC5uZXRmbGl4LmNvbRKAA4TTLzJbDZaKfozb9vDv5qpW5A/DNL9gbnJJi/AIZB3QOW2veGmKT3xaKNQ4NSvo/EyfVlhc4ujd4QPrFgYztGLNrxeyRF0J8XzGOPsvv9Mc9uLHKfiZQuy21KZYWF7HNedJ4qpAe6gqZ6uq7Se7f2JbelzENX8rsTpppKvkgPRIKLspFwv0EJQLPWD1zjew2PjoGEwJYlKbSbHVcUNygplaGmPkUCBThDh7p/5Lx5ff2d/oPpIlFvhqntmfOfumt4i+ZL3fFaObvkjpQFVAajqmfipY0KAtiUYYJAJSbm2DnrqP7+DmO9hmRMm9uJkXC2MxbmeNtJHAHdbgKsqjLHDiqwk1JplFMoC9KNMp2pUNdX9TkcrtJoEDqIn3zX9p+itdt3a9mVFc7/ZL4xpraYdQvOwP5LmXj9galK3s+eQJ7bkX6cCi+2X+iBmCMx4R0XJ3/1gxiM5LiStibCnfInub1nNgJDojxFA3jH/IuUcblEf/5Y0s1SzokBnR8V0KbA==";b.cja="SW_SECURE_CRYPTO";b.dja="SW_SECURE_DECODE";b.N9a="HW_SECURE_DECODE";b.WE="HW_SECURE_ALL";b.Mfb={cja:"SW_SECURE_CRYPTO",dja:"SW_SECURE_DECODE",N9a:"HW_SECURE_DECODE",WE:"HW_SECURE_ALL"};b.c$a=[b.WE];},56039:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.nRa=function(n){var c;c={};try{n.forEach(function(f){var g,e;if(f.jQ){for(var h=(0,d.CC),k=f.jQ,l=0,m=new Uint8Array(16),p=0;p < k.length;p+=2)m[l++]=parseInt(k.slice(p,p + 2),16);h=h(m);f=null !== (g=f.height) && void 0 !== g?g:f.Bva;c[h]=Math.max(f,null !== (e=c[h]) && void 0 !== e?e:0);}});}catch(f){}return c;};d=a(31276);},69493:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.T7a="DrmProviderSymbol";},98166:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.qab="LicenseProviderSymbol";},24735:function(t,b){var a;Object.defineProperty(b,"__esModule",{value:!0});b.pr=void 0;b.kCb=function(d){return ["STANDARD","LIMITED"][d];};(function(d){d[d.yr=0]="STANDARD";d[d.XI=1]="LIMITED";})(a || (b.pr=a={}));},28978:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r,q){this.Nk=m;this.wx=p;this.GWc=r;this.Pyc=q;}Object.defineProperty(b,"__esModule",{value:!0});b.vAa=void 0;t=a(22970);n=a(22674);c=a(74870);f=a(2248);g=a(84408);e=a(53921);h=a(24735);k=a(82100);a=a(98166);d.prototype.qu=function(m){var p;p=this;return this.Nk.l8(m.gK[0].data[0],[8,4])?Promise.resolve({o_:[{id:"ddd",hCb:"cert",iCb:void 0}],RA:[{sessionId:"ddd",data:new Uint8Array(this.wx.decode(k.uib))}]}):this.Nk.l8(m.gK[0].data[0],this.GWc.decode("certificate"))?Promise.resolve({o_:[{id:"ddd",hCb:"cert",iCb:void 0}],RA:[{sessionId:"ddd",data:new Uint8Array(this.wx.decode(k.cBa))}]}):this.Pyc.Oz(this.Gnc(m)).then(function(r){return p.Hnc(r);});};d.prototype.Gnc=function(m){var p,r;p=this;r=m.gK.map(function(q){return q.data.map(function(u){return {sessionId:q.sessionId,dataBase64:p.wx.encode(u)};});});return {Ha:m.Ha,Xd:m.Xd,Isb:m.Isb,Hi:(0,h.kCb)(m.Hi),kQ:e.mr[m.kQ],gK:r.reduce(function(q,u){return q.concat(u);},[]),vp:m.vp,Yf:m.Yf,J:m.J,Sp:m.Sp};};d.prototype.Hnc=function(m){return {o_:m.o_,RA:m.RA};};l=d;b.vAa=l;b.vAa=l=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.Am)),t.__param(1,(0,n.v)(f.mm)),t.__param(2,(0,n.v)(g.oF)),t.__param(3,(0,n.v)(a.qab))],l);},660:function(t,b,a){var n,c,f,g,e;function d(h,k,l,m){this.h5b=h;this.WMc=l;this.sNc=m;this.wa=k.wb("LicenseProviderImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.ACa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(81378);a(24674);g=a(16257);a=a(829);d.prototype.Oz=function(h){var k,l;k=this;!1;l=this.WMc.FUc(h);return this.h5b.Se({log:this.wa,links:h.vp,J:h.J},l).then(function(m){m.map(function(p){return p.Qyc;});return k.sNc.WPb(m);}).catch(function(m){k.wa.error("PBO license failed",m);return Promise.reject(m);});};e=d;b.ACa=e;b.ACa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.zEa)),t.__param(1,(0,n.v)(c.zb)),t.__param(2,(0,n.v)(g.Odb)),t.__param(3,(0,n.v)(a.MEa))],e);},45266:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.lsb=b.xtc=b.zQb=b.fM=b.osa=b.bEb=void 0;t=a(29664);d=a(31435);n=a(60024);c=a(56663);a=a(5154);b.bEb=t;b.osa=function(f,g){return (0,b.bEb)(function(e,h){return void 0 !== h?h:e;},f,g);};b.fM=d;b.zQb=n;b.xtc=c;b.lsb=a;},17892:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.L0b="StorageValidatorSymbol";b.II="AppStorageFactorySymbol";},44272:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Sgb="Storage";},62945:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;Object.defineProperty(b,"__esModule",{value:!0});b.storage=void 0;t=a(22674);d=a(91133);n=a(48159);c=a(56278);f=a(42304);g=a(42236);e=a(84970);h=a(57925);k=a(67894);l=a(17892);m=a(86607);p=a(26305);b.storage=new t.Be(function(r){r(n.tcb).Zf(function(){return function(){return Ba.localStorage;};});r(n.e$a).Zf(function(){return function(){return Ba.indexedDB;};});r(m.$bb).to(p.CDa).sa();r(l.II).to(k.Rya).sa();r(c.Sab).to(f.FCa).sa();r(d.Hha).to(h.VBa).sa();r(g.F$a).to(e.WBa).sa();r(g.d$a).to(e.NBa).sa();r(g.G$a).to(e.XBa).sa();});},56278:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Sab="LocalStorageSymbol";},86607:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.$bb="MemoryStorageSymbol";},48159:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.TYb="NativeLocalStorageSymbol";b.tcb="NativeLocalStorageFactorySymbol";b.e$a="IDBFactorySymbol";},31679:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.SUb="__default_rule_key__";},67894:function(t,b,a){var c,f,g,e,h,k,l;function d(m,p,r,q){this.wa=m;this.config=p;this.bvc=r;this.pWa=q;this.SP={mem:{storage:this.pWa,key:"mem"}};this.bN=this.config.bN;}function n(m,p,r,q){this.th=m;this.et=p;this.pWa=r;this.config=q;}Object.defineProperty(b,"__esModule",{value:!0});b.Sya=b.Rya=void 0;t=a(22970);c=a(22674);f=a(36129);g=a(42236);e=a(87386);h=a(86607);k=a(31679);a=a(34231);n.prototype.create=function(){this.C8 || (this.C8=this.XX());return this.C8;};n.prototype.XX=function(){this.a7b=new d(this.th.wb("AppStorage"),this.config,this.et,this.pWa);return this.a7b.create();};l=n;b.Rya=l;b.Rya=l=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(e.zb)),t.__param(1,(0,c.v)(g.G$a)),t.__param(2,(0,c.v)(h.$bb)),t.__param(3,(0,c.v)(a.st))],l);d.prototype.create=function(){var m;m=this;return this.kfc().then(function(p){if(!m.fac(p,m.config.jaa))throw m.LDc(p);return m;});};d.prototype.load=function(m){var p;p=this;return new Promise(function(r,q){p.h$(m).storage.load(m).then(function(u){r(u);}).catch(function(u){q(u);});});};d.prototype.save=function(m,p,r){var q;q=this;return new Promise(function(u,v){q.h$(m).storage.save(m,p,r).then(function(w){u(w);}).catch(function(w){v(w);});});};d.prototype.remove=function(m){var p;p=this;return new Promise(function(r,q){p.h$(m).storage.remove(m).then(function(){r();}).catch(function(u){q(u);});});};d.prototype.removeAll=function(){var m;m=this;return new Promise(function(p,r){m.aKb("mem").then(function(){return m.aKb("idb");}).catch(function(q){return Promise.reject(q);}).then(function(){p();}).catch(function(q){m.wa.error("remove all failed");r(q);});});};d.prototype.loadAll=function(){var m,p;m=this;p=[];return this.GCb("mem").then(function(r){p=p.concat(r);return m.GCb("idb");}).catch(function(r){m.Cxc(r) || m.wa.error("IndexedDb.LoadAll exception",r);return [];}).then(function(r){return p=p.concat(r);}).catch(function(r){m.wa.error("load all failed",r);throw r;});};d.prototype.kfc=function(){var m;m=this;return this.bvc.create().then(function(p){m.SP.idb={storage:p,key:"idb"};}).catch(function(p){m.wa.error("idb failed to load",p);return p || ({Ta:f.Y.yh});});};d.prototype.fac=function(m,p){return !m || m && p?!0:!1;};d.prototype.LDc=function(m){var p;p="";m && (p+=m.Ta);return {Ta:p};};d.prototype.aKb=function(m){return (m=this.SP[m])?m.storage.removeAll():Promise.resolve();};d.prototype.GCb=function(m){return (m=this.SP[m])?m.storage.loadAll():Promise.resolve([]);};d.prototype.Emc=function(m){for(var p in this.bN)if(m.startsWith(p))return this.bN[p];return this.bN[k.SUb];};d.prototype.h$=function(m){var p,r;p=this;this.Emc(m).every(function(q){return p.SP[q]?(r=p.SP[q],!1):!0;});if(!r){this.wa.error("component not found for storageKey",{xSc:m,k5c:Object.keys(this.SP),rules:this.bN});r=this.SP.mem;}this.wa.trace("component found for key",{storageKey:m,componentKey:r.key});return r;};d.prototype.Cxc=function(m){return (m && (m.Ta || m.errorSubCode)) === f.Y.jF;};b.Sya=d;},6675:function(t,b){function a(d,n){this.UF=d;this.Of=n;}Object.defineProperty(b,"__esModule",{value:!0});b.wCa=void 0;a.prototype.load=function(d,n){var c;c=this;this.UF.load(d).then(function(f){n && n(a.QOb(f));}).catch(function(f){n && n(c.BG(d,f));});};a.prototype.save=function(d,n,c,f){var g;g=this;this.UF.save(d,n,c).then(function(){f && f(a.QOb({key:d,value:n}));}).catch(function(e){f && f(g.BG(d,e));});};a.prototype.remove=function(d,n){var c;c=this;this.UF.remove(d).then(function(){n && n({success:!0,Qwa:d});}).catch(function(f){n && n(c.BG(d,f));});};a.QOb=function(d){return {success:!0,data:d.value,Qwa:d.key};};a.prototype.BG=function(d,n){return {success:!1,Qwa:d,Ta:n.Ta,qf:n.Dc?this.Of.jj(n.Dc):void 0};};b.wCa=a;},42304:function(t,b,a){var n,c,f;function d(g){this.iM=g;}Object.defineProperty(b,"__esModule",{value:!0});b.FCa=void 0;t=a(22970);n=a(22674);c=a(36129);a=a(48159);d.prototype.load=function(g){var e;e=this;return new Promise(function(h,k){var l,m;try{l=e.iM.getItem(g);if(l){m=l;if("{" === l[0])try{m=JSON.parse(l) || l;}catch(p){}h({key:g,value:m});}else k({Ta:c.Y.jF});}catch(p){k({Ta:c.Y.agb,Dc:p});}});};d.prototype.save=function(g,e,h){var k;k=this;return new Promise(function(l,m){if(h && k.iM.getItem(g))l(!1);else try{"string" === typeof e?k.iM.setItem(g,e):k.iM.setItem(g,JSON.stringify(e));l(!0);}catch(p){m({Ta:c.Y.bgb,Dc:p});}});};d.prototype.remove=function(g){var e;e=this;return new Promise(function(h,k){try{e.iM.removeItem(g);h();}catch(l){k({Ta:c.Y.sGa,Dc:l});}});};d.prototype.loadAll=function(){return Promise.reject("Not supported");};d.prototype.removeAll=function(){return Promise.reject("Not supported");};f=d;b.FCa=f;b.FCa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.TYb))],f);},26305:function(t,b,a){var n,c,f;function d(g){this.th=g;this.qS={};this.wa=this.th.wb("MemoryStorage");}Object.defineProperty(b,"__esModule",{value:!0});b.CDa=void 0;t=a(22970);n=a(22674);c=a(36129);a=a(87386);d.prototype.load=function(g){var e;if(this.qS.hasOwnProperty(g)){e=this.qS[g];this.wa.debug("Storage entry loaded",{key:g});return Promise.resolve({key:g,value:e});}this.wa.debug("Storage entry not found",{key:g});return Promise.reject({Ta:c.Y.jF});};d.prototype.save=function(g,e,h){if(h && this.qS.hasOwnProperty(g))return Promise.resolve(!1);this.qS[g]=e;return Promise.resolve(!0);};d.prototype.remove=function(g){delete this.qS[g];return Promise.resolve();};d.prototype.loadAll=function(){var g;g=Object.entries(this.qS).map(function(e){var h;h=Ea(e);e=h.next().value;h=h.next().value;return {key:e,value:h};});return Promise.resolve(g);};d.prototype.removeAll=function(){this.qS={};return Promise.resolve();};f=d;b.CDa=f;b.CDa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.zb))],f);},92093:function(t,b,a){var c,f,g;function d(e,h,k){this.config=e;this.Gp=h;this.iM=k;}function n(e,h){this.reason=e;this.Dc=h;}Object.defineProperty(b,"__esModule",{value:!0});b.E$a=b.X_b=void 0;c=a(36129);f=a(59818);(function(e){e[e.aEa=0]="NoData";e[e.Error=1]="Error";e[e.mF=2]="Timeout";})(g || (b.X_b=g={}));d.prototype.load=function(e){var h;h=this;return new Promise(function(k,l){h.eoa("get",!1,e).then(function(m){k({key:e,value:m});}).catch(function(m){var p;p=c.Y.agb;switch(m.reason){case g.aEa:p=c.Y.jF;break;case g.mF:p=c.Y.z0b;}l({Ta:p,Dc:m.Dc});});});};d.prototype.save=function(e,h,k){var l;l=this;return new Promise(function(m,p){l.eoa(k?"add":"put",!0,{name:e,data:h}).then(function(){m(!k);}).catch(function(r){var q;q=c.Y.bgb;switch(r.reason){case g.mF:q=c.Y.C0b;}p({Ta:q,Dc:r.Dc});});});};d.prototype.remove=function(e){var h;h=this;return new Promise(function(k,l){h.eoa("delete",!0,e).then(function(){k();}).catch(function(m){var p;p=c.Y.sGa;switch(m.reason){case g.mF:p=c.Y.$fb;}l({Ta:p,Dc:m.Dc});});});};d.prototype.removeAll=function(){var e;e=this;return new Promise(function(h,k){e.eoa("clear",!0,"").then(function(){h();}).catch(function(l){var m;m=c.Y.sGa;switch(l.reason){case g.mF:m=c.Y.$fb;}k({Ta:m,Dc:l.Dc});});});};d.prototype.loadAll=function(){var e;e=this;return this.Gp.Qs(this.config.timeout,new Promise(function(h,k){var l,m,p;if(e.config.p1a)k(new n(e.config.p1a));else {l=[];m=e.iM.transaction(e.config.tca,"readonly");p=m.objectStore(e.config.tca).openCursor();m.onerror=function(){k(new n(g.Error,p.error));};p.onsuccess=function(r){if(r=r.target.result)try{l.push({key:r.value.name,value:r.value.data});r.continue();}catch(q){k(new n(g.Error,q));}else h(l);};p.onerror=function(){k(new n(g.Error,p.error));};}})).catch(function(h){return h instanceof f.ex?Promise.reject(new n(g.mF,h)):h instanceof n?Promise.reject(h):Promise.reject(new n(g.Error,h));});};d.prototype.eoa=function(e,h,k){var l;l=this;return this.Gp.Qs(this.config.timeout,new Promise(function(m,p){var r,q;r=l.iM.transaction(l.config.tca,h?"readwrite":"readonly");q=r.objectStore(l.config.tca)[e](k);r.onerror=function(){p(new n(g.Error,q.error));};q.onsuccess=function(u){var v;if("get" == e)try{v=u.target.result;v?m(v.data):p(new n(g.aEa));}catch(w){p(new n(g.aEa,w));}else m(void 0);};q.onerror=function(){p(new n(g.Error,q.error));};})).catch(function(m){return m instanceof f.ex?Promise.reject(new n(g.mF,m)):m instanceof n?Promise.reject(m):Promise.reject(new n(g.Error,m));});};b.E$a=d;},91133:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Hha="IndexedDBConfigSymbol";},42236:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.d$a="IDBDatabaseFactorySymbol";b.F$a="IndexedDBFactorySymbol";b.G$a="IndexedDBStorageFactorySymbol";},57925:function(t,b,a){var n,c,f,g,e;function d(h,k){h=f.Qf.call(this,h,"IndexedDBConfigImpl") || this;h.config=k;h.version=1;h.tca="namedatapairs";return h;}Object.defineProperty(b,"__esModule",{value:!0});b.VBa=void 0;t=a(22970);n=a(22674);c=a(12501);f=a(64174);g=a(34231);a=a(83767);Ia(d,f.Qf);Ha.Object.defineProperties(d.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return "netflix.player" + (this.config.zG?"Test":"");}},timeout:{configurable:!0,enumerable:!0,get:function(){return this.config.qOb;}},sla:{configurable:!0,enumerable:!0,get:function(){return this.config.sla;}},q1a:{configurable:!0,enumerable:!0,get:function(){return 0;}},p1a:{configurable:!0,enumerable:!0,get:function(){return 0;}},avb:{configurable:!0,enumerable:!0,get:function(){return !0;}}});e=d;b.VBa=e;t.__decorate([c.config(c.Vy,"simulateIdbOpenError")],e.prototype,"q1a",null);t.__decorate([c.config(c.Vy,"simulateIdbLoadAllError")],e.prototype,"p1a",null);t.__decorate([c.config(c.pd,"fixInvalidDatabase")],e.prototype,"avb",null);b.VBa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Po)),t.__param(1,(0,n.v)(g.st))],e);},84970:function(t,b,a){var f,g,e,h,k,l,m,p,r,q,u,v;function d(w,x,y,A,z,B){this.config=x;this.F8=y;this.et=A;this.WWc=z;this.Fo=B;this.wa=w.wb(l.Sgb);}function n(w,x){this.config=w;this.uE=x;}function c(w,x,y,A,z){this.config=x;this.uE=y;this.Fo=z;this.wa=w.wb(l.Sgb);this.F8=new Promise(function(B,C){var D;try{D=A();D?B(D):C({Ta:k.Y.f$a});}catch(F){C({Ta:k.Y.Fha,Dc:F});}});}Object.defineProperty(b,"__esModule",{value:!0});b.XBa=b.WBa=b.NBa=void 0;t=a(22970);f=a(22674);g=a(87386);e=a(92093);h=a(48159);k=a(36129);l=a(44272);m=a(91133);p=a(59818);r=a(17892);q=a(77134);u=a(42236);v=a(63156);c.prototype.create=function(){this.QNa || (this.QNa=this.XX());return this.QNa;};c.prototype.Xt=function(w){var x;x=this;this.QNa=null;return this.uE.Qs(this.config.timeout,new Promise(function(y,A){w.close();x.delete(w.name).then(function(){y();}).catch(function(z){A(z);});})).catch(function(y){return y instanceof p.ex?Promise.reject({Ta:k.Y.Fha}):y.Ta?Promise.reject(y):Promise.reject({Ta:k.Y.Fha,Dc:y});});};c.prototype.delete=function(w){var x;x=this;return this.uE.Qs(this.config.timeout,new Promise(function(y,A){x.F8.then(function(z){var B;B=z.deleteDatabase(w);B.onsuccess=function(){y();};B.onerror=function(){A({Ta:k.Y.Fha,Dc:B.error});};}).catch(function(z){A(z);});}));};c.prototype.XX=function(){var w,x;w=this;return this.uE.Qs(this.config.timeout,new Promise(function(y,A){if(w.config.q1a)return A({Ta:w.config.q1a});w.F8.then(function(z){w.Fo.mark(v.Nn.NWb);x=z.open(w.config.name,w.config.version);if(!x)return A({Ta:k.Y.g$a});x.onblocked=function(){w.Fo.mark(v.Nn.KWb);A({Ta:k.Y.GWb});};x.onupgradeneeded=function(){var B;w.Fo.mark(v.Nn.UWb);B=x.result;try{B.createObjectStore(w.config.tca,{keyPath:"name"});}catch(C){w.wa.error("Exception while creating object store",C);}};x.onsuccess=function(B){var C,D;w.Fo.mark(v.Nn.TWb);try{C=B.target.result;D=C.objectStoreNames.length;w.wa.trace("objectstorenames length ",D);if(0 === D){w.wa.error("invalid indexedDb state, deleting");w.Fo.mark(v.Nn.MWb);try{C.close();}catch(F){}z.deleteDatabase(w.config.name);setTimeout(function(){A({Ta:k.Y.FWb});},1);return;}}catch(F){w.wa.error("Exception while inspecting indexedDb objectstorenames",F);}y(x.result);};x.onerror=function(){w.Fo.mark(v.Nn.LWb);w.wa.error("IndexedDB open error",x.error);A({Ta:k.Y.HWb,Dc:x.error});};}).catch(function(z){A(z);});})).catch(function(y){if(y instanceof p.ex){try{x && x.readyState && w.Fo.mark("readyState-" + x.readyState);}catch(A){}if(w.config.sla && x && "done" === x.readyState){if(w.LWc(x))return (w.Fo.mark(v.Nn.RWb),Promise.resolve(x.result));w.Fo.mark(v.Nn.QWb);}w.Fo.mark(v.Nn.PWb);return Promise.reject({Ta:k.Y.JWb});}if(y.Ta)return Promise.reject(y);w.Fo.mark(v.Nn.OWb);w.wa.error("IndexedDB open exception occurred",y);return Promise.reject({Ta:k.Y.IWb,Dc:y});});};c.prototype.LWc=function(w){try{return 0 < w.result.objectStoreNames.length;}catch(x){this.Fo.mark(v.Nn.SWb);this.wa.error("failed to check open request state",x);}return !1;};a=c;b.NBa=a;b.NBa=a=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(g.zb)),t.__param(1,(0,f.v)(m.Hha)),t.__param(2,(0,f.v)(p.gF)),t.__param(3,(0,f.v)(h.e$a)),t.__param(4,(0,f.v)(q.mW))],a);n.prototype.create=function(w){return Promise.resolve(new e.E$a(this.config,this.uE,w));};a=n;b.WBa=a;b.WBa=a=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(m.Hha)),t.__param(1,(0,f.v)(p.gF))],a);d.prototype.create=function(){if(this.storage)return Promise.resolve(this.storage);this.C8 || (this.C8=this.XX(this.WWc));return this.C8;};d.prototype.XX=function(w){var x;x=this;w=void 0 === w?[]:w;return new Promise(function(y,A){x.Fo.mark(v.Nn.y0b);x.F8.create().then(function(z){x.et.create(z).then(function(B){Promise.all(w.map(function(C){return C.validate(B);})).then(function(){x.storage=B;y(x.storage);}).catch(function(C){x.wa.debug("DB validation failed, cause: " + C);x.config.avb?(x.wa.debug("Fixing corrupt DB"),x.F8.Xt(z).then(function(){x.wa.error("Invalid database deleted, creating new database.");x.XX().then(function(D){x.wa.error("Invalid database successfully recreated.");x.storage=D;y(x.storage);});}).catch(function(D){x.wa.error("Couldn't delete invalid database.");A(D);})):(x.wa.debug("Ignoring invalid DB due to config"),x.storage=B,y(x.storage));});}).catch(function(B){A(B);});}).catch(function(z){A(z);});});};a=d;b.XBa=a;b.XBa=a=t.__decorate([(0,f.aa)(),t.__param(0,(0,f.v)(g.zb)),t.__param(1,(0,f.v)(m.Hha)),t.__param(2,(0,f.v)(u.d$a)),t.__param(3,(0,f.v)(u.F$a)),t.__param(4,(0,f.optional)()),t.__param(4,(0,f.FH)(r.L0b)),t.__param(5,(0,f.v)(q.mW))],a);},69899:function(t,b,a){var c;function d(f,g,e){this.start=f;this.track=g;this.cN=Array.isArray(e)?e:[];}function n(f,g){this.log=f;this.Qxa=g;this.KZa=[];this.orphans=[];}Object.defineProperty(b,"__esModule",{value:!0});b.bhb=void 0;c=a(45146);n.prototype.l5b=function(f,g){this.fFb(f,g,"activating");};n.prototype.Jgc=function(f){this.ePa(f,"de-activating");};n.prototype.fFb=function(f,g,e){var h;this.Xn && this.ePa(f,"close current for new");h=[];this.orphans.length && (h.push.apply(h,za(this.orphans)),this.orphans=[]);this.Xn=new d(f,g,h);this.Qxa && this.log.trace("new range: " + e,this.Xn);};n.prototype.ePa=function(f,g){this.Xn && (this.Xn.end=f,this.KZa.push(this.Xn),this.Qxa && this.log.trace("end range: " + g,this.Xn || ({})),this.Xn=void 0);};n.prototype.iRb=function(f){for(var g=[],e=0;e < arguments.length;++e)g[e - 0]=arguments[e];this.Xn?this.Xn.cN.push.apply(this.Xn.cN,za(g)):this.orphans.push.apply(this.orphans,za(g));};n.prototype.jSa=function(f){var g,e;g=this.KZa.slice(0);if(this.Xn && "undefined" !== typeof f){e=new d(this.Xn.start,this.Xn.track,this.Xn.cN);e.end=f;g.push(e);}f=g.reduce(function(h,k){var l,m,p,r;if(!k.track)return h;m=k.track.ob;p=k.track.Cq(k.start,k.end);if(void 0 === p || null === p)return h;r=new Set(k.cN);h[m]?(k=h[m],k.expected+=p,k.missed+=p - r.size):h[m]={dlid:m,bcp47:k.track.Ig,profile:k.track.profile,expected:p,missed:p - r.size,startPts:null !== (l=k.track.ysc()) && void 0 !== l?l:0};return h;},{});f=Object.values(f);this.Qxa && this.log.trace("subtitleqoe:",JSON.stringify(f,null,"\t"));return f;};n.prototype.osc=function(f){var g,e,h,k;g=this.KZa.slice(0);e=0;h=0;if(this.Xn && "undefined" != typeof f){k=new d(this.Xn.start,this.Xn.track,this.Xn.cN);k.end=f;g.push(k);}g.forEach(function(l){var m,p;if(l.track){if(l.end < l.start){(0,c.va)(!1,"negative range");l.KM=0;return;}m=new Set(l.cN);p=l.track.Cq(l.start,l.end);l.goa=p;l.KM=void 0 === p || null === p?0:0 === p?100:100 * m.size / p;}else l.KM=100;m=l.end - l.start;e+=m;h+=l.KM * m;});k=e?Math.round(h / e):100;this.log.trace("qoe score " + k + ", at pts: " + f);this.Qxa && (f=g.map(function(l){return {start:l.start,"end ":l.end,duration:l.end - l.start,score:Math.round(l.KM),lang:l.track?l.track.Ig:"none","actual ":l.cN.join(" "),expected:l.goa};}),this.log.trace("score for each range: ",JSON.stringify(f,function(l,m){return m;}," ")));return k;};b.bhb=n;},40076:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.oU=void 0;t=a(22674);d=a(53205);n=a(29773);c=a(22692);f=a(87549);b.oU=new t.Be(function(g){g(f.rhb).to(d.dHa);g(c.phb).Pp(new n.cHa());g(f.qhb).Zf(function(e){return function(){return e.Ib.get(f.rhb);};});});},87549:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.rhb="ThroughputTrackerSymbol";b.qhb="ThroughputTrackerFactorySymbol";},22692:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.phb="ThroughputTrackerConfigSymbol";},70826:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.Q7a=void 0;d=a(72574);b.Q7a=function(n,c){this.Iic=n;this.size=c.lUa()?d.ia:c;};},29773:function(t,b,a){function d(n){this.Kic=void 0 === n?10:n;}Object.defineProperty(b,"__esModule",{value:!0});b.cHa=void 0;t=a(22970);a=a(22674);b.cHa=d;b.cHa=d=t.__decorate([(0,a.aa)()],d);},53205:function(t,b,a){var n,c,f,g;function d(e){this.config=e;this.s1a=c.ia;this.V1=[];}Object.defineProperty(b,"__esModule",{value:!0});b.dHa=void 0;t=a(22970);n=a(22674);c=a(72574);f=a(5021);a=a(22692);d.prototype.gl=function(){var h;for(var e;0 < this.V1.length;)(e=this.V1.shift(),this.Clb(e));e=void 0 === this.c9 || void 0 === this.iQ?f.ia:this.iQ.ea(this.c9);h=e.XAb()?0:this.s1a.na(c.ON) / e.na(f.ya);return {t2a:Math.floor(h),b7c:e.na(f.ya)};};d.prototype.B5b=function(e){this.s1a=this.s1a.add(e.size);this.V1.push(e.Iic);for(this.V1.sort(function(h,k){return h.start.Ml(k.start);});this.V1.length > this.config.Kic;)(e=this.V1.shift(),this.Clb(e));};d.prototype.Clb=function(e){void 0 === this.c9 && (this.c9=e.start);void 0 !== this.iQ && 0 > this.iQ.Ml(e.start) && (this.c9=this.c9.add(e.start.ea(this.iQ)));if(void 0 === this.iQ || 0 > this.iQ.Ml(e.end))this.iQ=e.end;};g=d;b.dHa=g;b.dHa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.phb))],g);},35781:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r,q,u,v,w){var x,y;p=e.EO.call(this,r,p,v,!0,{correlationId:"",Mq:"content"},"1",[{Kg:0,url:q,type:"unknown"}],"xx",u || p,h.Zu.UV,void 0,void 0,"primary",null !== (x=null === w || void 0 === w?void 0:w.profile) && void 0 !== x?x:"dfxp-ls-sdh",null !== (y=null === w || void 0 === w?void 0:w.midx) && void 0 !== y?y:{},!1,!1,null === w || void 0 === w?void 0:w.isLanguageLeftToRight) || this;p.j=r;p.url=q;p.options=w;p.Yy=null === w || void 0 === w?void 0:w.useRangeHeader;return p;}Object.defineProperty(b,"__esModule",{value:!0});b.shb=void 0;t=a(13044);n=a(29204);c=a(37509);f=a(31276);g=a(52569);e=a(26159);h=a(35128);k=a(61726);l=a(43193);m=a(85001);(0,t.A_b)(t.kFa,function(p){var q;function r(u){var v;if(u.ctrlKey && u.altKey && u.shiftKey && u.keyCode == l.BV.O0b){v=(0,g.createElement)("INPUT",void 0,void 0,{type:"file"});v.addEventListener("change",function(){var w,x,y;w=v.files[0];if(w){x=w.name;q.info("Loading file",{FileName:x});y=new FileReader();y.readAsText(w);y.addEventListener("load",function(){return p.$q.kKa("nourl",x,{content:y.result});});}});v.click();}}q=(0,f.jo)(p,"TimedTextCustomTrack");n.config.NNa && (q.info("Loading url",{Url:n.config.NNa}),p.$q.kKa(n.config.NNa,"custom"));c.xe.addListener(c.WK,r);p.addEventListener(m.ja.ph,function(){c.xe.removeListener(c.WK,r);});});Ia(d,e.EO);d.Tec=function(p,r,q,u){var v;v="custom" + d.Yvc++;return new d(v,p,r,q,-1,u);};d.prototype.Gsb=function(){var p;p=this;return new Promise(function(r,q){var u,v;if(null === (u=p.options) || void 0 === u?0:u.content)r(p.options.content);else if(p.url){v={responseType:k.cTa,url:p.url,track:p,Tc:void 0,tK:"tt-" + p.Ig,Gw:"unknown"};p.j.dqa.download(v,function(w){w.success?r(w.content):(w.reason="downloadfailed",w.url=v.url,w.track=p,q(w));});}});};b.shb=d;d.Yvc=0;},97154:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m,p){this.hN=k;this.yoa=l;this.vG={position:"absolute",left:"0",top:"0",right:"0",bottom:"0",display:"block"};this.element=(0,n.createElement)("DIV",void 0,void 0,{"class":"player-timedtext"});this.element.onselectstart=function(){return !1;};this.EMb(m);this.$Pa=this.swb(this.yoa);this.lang=p;}Object.defineProperty(b,"__esModule",{value:!0});b.thb=void 0;n=a(52569);c=a(33579);f=a(15531);g=a(29204);e=a(22365);h=a(3887);d.prototype.zq=function(){return this.element;};d.prototype.lPc=function(k){this.BC=k;};d.prototype.APc=function(k){this.entry=k;this.tT();};d.prototype.LPc=function(k){this.EMb(k);this.tT();};d.prototype.MPc=function(k){this.lang=k;this.tT();};d.prototype.tT=function(){var k,l,m,p,r,q,u,v,w,x,y,A,B,C,D;k=this;l=this.zq();m=l.parentElement;p=m && m.clientWidth || 0;r=m && m.clientHeight || 0;q=m=0;u=0;v={width:p,height:r};x=this.hN.Zvb().characterSize;this.lang && g.config.mqa && g.config.mqa.includes(this.lang) && "MEDIUM" === x && (u=1.4);this.lang && g.config.nqa && g.config.nqa.includes(this.lang) && "SMALL" === x && (u=1.6);if(0 < p && 0 < r && this.entry){this.BC && (v=(0,n.woa)(p,r,this.BC),m=Math.round((p - v.width) / 2),q=Math.round((r - v.height) / 2));y=this.R$b(v);A=(0,n.woa)(y.width,y.height,this.BC);(w=this.DRc(this.entry.blocks)) && (w=this.GNc(w));y=w && w.map(function(F){var H;H=null === F || void 0 === F?void 0:F.region;switch(H.horizontalAlignment){case "start":H.horizontalAlignment="rtl" === k.vG.direction?"right":"left";break;case "end":H.horizontalAlignment="rtl" === k.vG.direction?"left":"right";}H=(0,f.xtb)(F,A,k.yoa,k.$Pa,u);F=(0,f.flc)(F) + ";position:absolute";return (0,n.createElement)("div",F,H,d.Xza);});}Object.assign(this.vG,{left:m + "px",right:m + "px",top:q + "px",bottom:q + "px"});l.style.display="none";l.style.direction=this.vG.direction;l.innerHTML="";if(y && y.length){p=v.width;m=v.height;x=v;this.Q7 && (x=this.f5b(v,this.Q7,r,q));this.vG.margin=this.jy?this.ima(v,"top") + "px " + this.ima(v,"right") + "px " + this.ima(v,"bottom") + "px " + this.ima(v,"left") + "px ":void 0;y.forEach(function(F){return l.appendChild(F);});r=(0,n.x8)(this.vG);l.style.cssText=r + ";visibility:hidden;z-index:-1";q=[];for(var z=y.length - 1;0 <= z;z--){B=y[z];C=w[z];D=this.sFb(B,C,p,m);u=0 < u?p / D.width * u:p / D.width;D.width > p && (B.innerHTML=(0,f.xtb)(C,v,this.yoa,this.$Pa,u),D=this.sFb(B,C,p,m));q[z]=D;}q=(0,c.kVc)(q,x);if(z=w && w[0] && w[0].textNodes && w[0].textNodes[0] && w[0].textNodes[0].style)(x=z.windowColor,z=z.windowOpacity,x && 0 < z && (B=Math.round(m / 50),v=(0,f.hlc)(w,q,B,x,v),v=(0,n.createElement)("div","position:absolute;left:0;top:0;right:0;bottom:0;opacity:" + z,v,d.Xza),l.insertBefore(v,l.firstChild)));l.style.display="none";for(v=q.length - 1;0 <= v;v--)(z=q[v],x=y[v].style,B=w[v].region,z=(0,f.glc)(B,z,p,m,0),Object.assign(x,z));l.style.cssText=r;}};d.prototype.V0a=function(k){this.Q7=k;this.tT();};d.prototype.oSa=function(){return this.Q7;};d.prototype.W0a=function(k){this.jy=k;this.tT();};d.prototype.pSa=function(){return this.jy;};d.prototype.qSa=function(){return "block" === this.vG.display;};d.prototype.X0a=function(k){var l;l=k?"block":"none";this.element.style.display=l;this.vG.display=l;k && this.tT();};d.prototype.NVc=function(k){this.yoa=k;this.$Pa=this.swb(k);};d.prototype.swb=function(k){var l,m;l=this;m={};(0,h.Di)(k,function(p,r){m[p]=l.PBc(r);});return m;};d.prototype.EMb=function(k){this.vG.direction="boolean" === typeof k?k?"ltr":"rtl":"inherit";};d.prototype.ima=function(k,l){if(this.jy){if("left" === l || "right" === l)return k.width * (this.jy[l] || 0);if("top" === l || "bottom" === l)return k.height * (this.jy[l] || 0);}return 0;};d.prototype.R$b=function(k){return this.jy?{height:k.height * (1 - (this.jy.top || 0) - (this.jy.bottom || 0)),width:k.width * (1 - (this.jy.left || 0) - (this.jy.right || 0))}:k;};d.prototype.PBc=function(k){var l;k="display:block;position:fixed;z-index:-1;visibility:hidden;font-size:1000px;" + k + ";";k=(0,n.createElement)("DIV",k,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",d.Xza);e.Ni.body.appendChild(k);l={fontSize:1E3,height:k.clientHeight,width:k.clientWidth / 52,lineHeight:k.clientHeight / 1E3};e.Ni.body.removeChild(k);return l;};d.prototype.sFb=function(k,l,m,p){var r,q,u,v,w;r=l.region;q=(r.marginTop || 0) * p;u=(r.marginBottom || 0) * p;v=(r.marginLeft || 0) * m;w=(r.marginRight || 0) * m;l=k.clientWidth || 1;k=k.clientHeight || 1;switch(r.verticalAlignment){case "top":p=q;break;case "center":p=(q + p - u - k) / 2;break;default:p=p - u - k;}switch(r.horizontalAlignment){case "left":m=v;break;case "right":m=m - w - l;break;default:m=(v + m - w - l) / 2;}return {top:p,left:m,width:l,height:k};};d.prototype.f5b=function(k,l,m,p){return {height:m - Math.max(p,l.bottom || 0) - Math.max(p,l.top || 0),width:k.width};};d.prototype.GNc=function(k){var l,r,q,u;l=k && k.map(function(v,w){var x;return "vertical-rl" === (null === (x=null === v || void 0 === v?void 0:v.region) || void 0 === x?void 0:x.writingMode)?w:-1;}).filter(function(v){return -1 !== v;});if(l && 0 !== l.length)for(var m=0,p=l.length - 1;m < p;(m++,p--)){r=l[m];q=l[p];u=Ea([k[q],k[r]]);k[r]=u.next().value;k[q]=u.next().value;}return k;};d.prototype.DRc=function(k){var l,m;if(!k || 0 === k.length)return k;m=k.filter(function(q){var u;return "horizontal-tb" === (null === (u=q.region) || void 0 === u?void 0:u.writingMode);}).sort(function(q,u){return q.region.marginTop - u.region.marginTop;});if(!m || 0 === m.length)return k;for(var p=0,r=0;p < m.length && r < k.length;r++)"horizontal-tb" === (null === (l=k[r].region) || void 0 === l?void 0:l.writingMode) && (k[r]=m[p++]);return k;};b.thb=d;d.Xza={"class":"player-timedtext-text-container"};},99416:function(t,b){function a(d){this.eg=d.jUc;this.aYa=d.kUc;this.xVa={};}Object.defineProperty(b,"__esModule",{value:!0});b.vhb=void 0;a.prototype.Zvb=function(){return Object.assign(Object.assign(Object.assign({},this.eg),this.aYa),this.xVa);};a.prototype.trc=function(){return Object.assign(Object.assign({},this.aYa),this.xVa);};a.prototype.VPc=function(d){this.xVa.characterSize=d;};b.vhb=a;},7953:function(t,b){function a(d,n){var c;c=this;this.Ywb=d;this.XFb=n;this.C2a=!1;this.x0=function(){c.ar=void 0;c.update();};}Object.defineProperty(b,"__esModule",{value:!0});b.yhb=void 0;a.prototype.update=function(d){var n,c,f,g,e;f=this.Ywb();if(this.jRb !== f){g=null === (c=null === (n=this.yba) || void 0 === n?void 0:n.OK(f)) || void 0 === c?void 0:c[0];if(g && ("startTime" in g))if(g.startTime <= f && f <= g.endTime){e=g;this.SQb(g.endTime - f);}else this.SQb(g.startTime - f);this.jRb=f;this.WJa !== e && (this.WJa=e,!d && this.XFb && this.XFb());}};a.prototype.start=function(){this.C2a=!0;this.update();};a.prototype.LMb=function(d){this.yba=d;this.WJa=this.jRb=void 0;d || this.stop();};a.prototype.stop=function(){this.C2a=!1;this.Yq();};a.prototype.goc=function(){this.update(!0);return this.WJa;};a.prototype.SQb=function(d){this.Yq();this.C2a && 0 < d && (this.ar=Ba.setTimeout(this.x0,d + a.HYb));};a.prototype.Yq=function(){this.ar && (Ba.clearTimeout(this.ar),this.ar=void 0);};b.yhb=a;a.HYb=10;},26159:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;function d(x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q){this.j=x;this.trackId=y;this.Ac=A;this.cf=z;this.NPb=B;this.ob=C;this.urls=D;this.Ig=F;this.displayName=H;this.aj=E;this.hU=G;this.variant=J;this.yM=L;this.profile=K;this.YA=M;this.h0=P;this.tnc=I;this.Oqa=O;this.xA=Q;this.type=g.Ln.v2;this.Yy=void 0;this.Fq=!(!K || K != h.Cr.NV);this.Ki={bcp47:F,trackId:y,downloadableId:C,isImageBased:this.Fq};this.log=(0,e.jo)(x,"TimedTextTrack");this.state=w.gia;this.request=this.request.bind(this);}Object.defineProperty(b,"__esModule",{value:!0});b.EO=void 0;n=a(22970);c=a(61726);f=a(29204);g=a(51344);e=a(31276);h=a(75568);k=a(45146);l=a(32687);m=a(58174);p=a(85001);r=a(36129);q=a(92020);u=a(32934);v=a(45247);(function(x){x[x.gia=0]="NOT_LOADED";x[x.LOADING=1]="LOADING";x[x.lO=2]="LOADED";x[x.V4=3]="LOAD_FAILED";})(w || (w={}));d.prototype.pqa=function(x){var y;y=this;if(this.j.state.value === p.Fc.CLOSED || this.j.state.value === p.Fc.CLOSING)return Promise.reject({success:!1});if(this.h2 && this.j.Cf)return Promise.resolve({success:!0,track:this});if(this.Fq)return this.Rvc();if(this.j.Bc.za)return (this.state=w.LOADING,this.Ozb(x));this.Dsb || (this.Dsb=this.Gsb());return this.Dsb.then(function(A){return y.Ozb(x,A);});};d.prototype.getState=function(){return this.state;};d.prototype.Gq=function(){return this.h0;};d.prototype.pp=function(){return this.tnc;};d.prototype.iSa=function(){var x;return (null === (x=this.h2) || void 0 === x?0:x.ready)?this.h2.yba:void 0;};d.prototype.Cq=function(x,y){var A;try{return null === (A=this.iSa()) || void 0 === A?void 0:A.Cq(x,y);}catch(z){this.log.error("error in getSubtitlesCount",z,{start:x,end:y,isImageBased:this.Fq});}};d.prototype.ysc=function(){var x,y,A;if(!(0,l.$c)(this.Gb))try{A=null === (y=null === (x=this.iSa()) || void 0 === x?void 0:x.OK(0)) || void 0 === y?void 0:y[0];this.Gb=null === A || void 0 === A?void 0:A.displayTime;}catch(z){this.log.error("exception in getStartPts",z);}return this.Gb;};d.prototype.FZa=function(x){var y,A;(0,k.va)((0,v.zqa)(x));(0,k.va)(null === (y=this.j.S) || void 0 === y?void 0:y.Aa.Ji,"Live manifest is unavailable.");(0,k.va)(null === (A=this.h2) || void 0 === A?void 0:A.yba,"Subtitle manager is unavailable");y=x.kQb;this.h2.yba.FZa({L:x.L,xml:y,Gb:x.Gb,Lg:x.Lg,size:y.length,By:x.By,endOfStream:x.endOfStream});};d.prototype.Vs=function(x){return this.j.state.value === p.Fc.CLOSING || this.j.state.value === p.Fc.CLOSED?(this.log.info("playback is closing, abort timed text retry",x),!1):this.j.ka.Qd !== this?(this.log.info("timed text track was changed, abort timed text retry",x),!1):!0;};d.prototype.Rqb=function(x){var y,A;y=this;A=(0,e.jo)(this.j,"TimedTextTrack");A.warn=A.trace.bind(A);A.info=A.debug.bind(A);A=(0,m.dgc)(this.j,A,this.request,this);x=new q.default(A,x);this.h2={yba:x,ready:!1};x.on("ready",function(){y.h2.ready=!0;});return x;};d.prototype.Rvc=function(){var x,y,A,z,B,C,D;x=this;if(!this.Kzb){this.state=w.LOADING;y={profile:"nflx-cmisc",url:"",inb:!1,tWa:this.YA.offset,lEb:this.YA.length,od:this.j.mediaTime.value || 0,bufferSize:f.config.jvc,awa:{ba:this.j.e$()}};A=(this.urls || []).map(function(F){return F.Kg;});z=0;B={};C=!0;D=function(F,H){var E;(0,l.$c)(F)?C || x.Vs(x.du(x.aA,"","image"))?(C=!1,x.YA.url=null === (E=x.Soa(x.aA)) || void 0 === E?void 0:E.url,y.url=x.YA.url,B[F]=(B[F] || 0) + 1,E=x.Rqb(y),E.on("ready",function(){H({success:!0,track:x});}),E.on("error",function(G){var J;G=Object.assign({success:!1},G);J=x.du(x.aA,x.YA.url,"image");J.details={midxoffset:x.YA.offset,midxsize:x.YA.length};J.errorstring=G.errorString;B[F] <= f.config.uPb?(x.soa(J,!0,"retry with current cdn"),x.oLa(B[F]).then(function(L){x.log.trace("retry timed text download after " + L,x.du(x.aA,"","image"));D(x.aA,H);})):(x.aA=A[z++],x.aA?(x.soa(J,!0,"retry with next cdn"),x.oLa(B[F]).then(function(L){x.log.trace("retry timed text download after " + L,x.du(x.aA,"","image"));D(x.aA,H);})):(x.soa(J,!1,"all cdns tried"),H({success:!1,VCc:"all cdns failed for image subs",track:x})));}),E.start()):H({success:!1,aborted:!0}):(H({success:!1,VCc:"cdnId is not defined for image subs downloadUrl"}),x.soa(x.du(0,"","image"),!1,"cdnId is undefined"));};this.aA=A[z++];this.Kzb=new Promise(function(F,H){D(x.aA,function(E){E.success?(x.log.info("Loaded image subtitle manager"),x.state=w.lO,F(E)):(x.log.error("Unable to load image subtitles manager",E),x.state=w.V4,H(E));});});}return this.Kzb;};d.prototype.Ozb=function(x,y){var A,z;A=this;z=this.j.NU.value;(0,k.va)(z);(0,k.va)(void 0 !== y || this.j.Bc.za);return new Promise(function(B,C){var D,F,H;F=null === (D=A.j.ga.S) || void 0 === D?void 0:D.Aa;D=null === F || void 0 === F?void 0:F.kTa;H=A.Rqb({profile:A.profile,xml:y,eg:x.eg,preferences:x.trc(),od:A.j.mediaTime.value || 0,inb:!1,videoSize:z,za:A.j.Bc.za,kTa:D});H.on("ready",function(){B(H);}).on("error",function(E){C({success:!1,error:E});}).start();}).then(function(){A.state=w.lO;return {success:!0,track:A};}).catch(function(B){A.log.error("Unable to parse timed text track",(0,r.UE)(B),A.Ki,{url:B.url});A.state=w.V4;B.reason="parseerror";B.track=A;throw B;});};d.prototype.soa=function(x,y,A){x=Object.assign({},x,{Med:y,status:A});this.j.fireEvent(p.ja.i2,x);this.log.warn("subtitleerror event",x);};d.prototype.request=function(x,y){var A,z,B;A=this;this.log.trace("Downloading",x);B=this.Soa(this.aA);x={url:x.url,offset:x.offset,length:x.size,Yy:this.Yy,responseType:c.gaa,headers:{},Tc:B?{id:B.Kg}:void 0,tK:"tt-" + this.Ig,Gw:null !== (z=null === B || void 0 === B?void 0:B.type) && void 0 !== z?z:u.q5};this.j.dqa.download(x,function(C){A.log.trace("imgsub: request status " + C.success);C.success?y(null,new Uint8Array(C.content)):y({Ta:C.Ta,Ng:C.Ng});});};d.prototype.du=function(x,y,A){return {currentCdnId:x,url:y,profile:this.profile,dlid:this.ob,subtitletype:A,bcp47:this.Ig,trackId:this.trackId,cdnCount:Object.keys(this.urls).length,isImageBased:this.Fq};};d.prototype.Soa=function(x){return (this.urls || []).find(function(y){return y.Kg === x;});};d.prototype.Gsb=function(){var z,B;function x(C){return n.__awaiter(z,void 0,void 0,function F(){var H,E,G;E=this;return Ua(F,function(J){H=A();G=E.du(C.Tc.Kg,C.url,"text");G.errorstring=C.reason;return H && E.Vs(G)?J.return(E.oLa(B[H.Kg]).then(y)):J.return(Promise.reject({success:!1,aborted:!0}));});});}function y(){return n.__awaiter(z,void 0,void 0,function D(){var F,H,E;E=this;return Ua(D,function(G){F=A();H=null === F || void 0 === F?void 0:F.url;return F && H?(B[F.Kg]=(B[F.Kg] || 0) + 1,G.return(E.Eic(H,F).catch(x))):G.return(Promise.reject({}));});});}function A(){return (z.urls || []).find(function(C){return !!((B[C.Kg] || 0) < f.config.uPb);});}z=this;this.state=w.LOADING;B={};return y();};d.prototype.oLa=function(x){return new Promise(function(y){var A;A=1E3 * Math.min(Math.pow(2,x - 1),8);setTimeout(function(){return y(A);},A);});};d.prototype.Eic=function(x,y){var A;A=this;this.log.trace("Downloading",y && ({Tc:y.Kg}),this.du(y.Kg,x,"text"));return new Promise(function(z,B){var C,D;D={responseType:c.cTa,url:x,track:A,Tc:{id:y.Kg},tK:"tt-" + A.Ig,Gw:null !== (C=y.type) && void 0 !== C?C:u.q5};A.j.dqa.download(D,function(F){F.success?z(F.content):(F=Object.assign(Object.assign({},F),{reason:"downloadfailed",url:D.url,track:A,Tc:y}),B(F));});});};Ha.Object.defineProperties(d.prototype,{correlationId:{configurable:!0,enumerable:!0,get:function(){return this.NPb.correlationId;}},Mq:{configurable:!0,enumerable:!0,get:function(){return this.NPb.Mq;}}});b.EO=d;d.zr=w;},58174:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.dgc=function(a,d,n,c){return {Src:function(){var f;f=a.ORa();c.xA && (f+=c.xA);return f;},wa:d,request:n,mD:!1};};},73585:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q;function d(u,v){var w;w=this;this.j=u;this.hN=v;this.Y1a=this.TEb=0;this.ph=this.Dp=!1;this.FT=0;this.iqa=new Set();this.yea=!0;this.Op=function(){var x,y;w.Cva();w.ZP && (w.log.info("Deactivating",w.ZP),w.qI.Jgc(w.yq()));w.j.Wk.set(null);w.qU.LMb(void 0);w.fpb();x=w.j.ka.Qd;x && x.Gq() && !x.pp() && (x=null);if(x && w.j.Zb.value !== p.Nb.mh){y=w.yq();w.qI.l5b(y,x);}x?(w.log.info("Activating",x),w.j.En.set(x.getState() === n.EO.zr.lO?p.jh.zf:p.jh.Pf),w.Dp || w.j.fh("tt_start"),x.pqa(w.hN).then(w.VW).catch(w.VW)):w.j.En.set(p.jh.zf);w.ZP=x;w.DI();w.j.Bc.za && w.j.En.set(p.jh.zf);};this.sync=function(){w.Dp && (w.qU.start(),w.j.Zb.value !== p.Nb.rg && w.qU.stop());};this.DI=function(){var x;w.yea && w.j.state.value === p.Fc.zf && w.j.Zb.value !== p.Nb.mh && (w.uj?x=w.qU.goc():w.j.ka.Qd && (x=d.lSc[w.j.ka.Qd.getState()]));x && (0,m.$c)(x.startTime) && w.j.MB.value !== x && (w.TEb++,w.Y1a+=w.qU.Ywb() - x.startTime,w.onb=Math.ceil(w.Y1a / (w.TEb + 0)));w.j.MB.set(x);};this.yq=function(){var x;x=w.j.ORa();w.ZP && w.ZP.xA && (x+=w.ZP.xA);return x;};this.HXa=function(x){w.iqa.add(x);w.yea && (w.fireEvent(d.yNb,x),x && x.id && (w.qI.iRb(x.id),!1));w.log.trace("showsubtitle",w.zpa(x));};this.zca=function(x){w.iqa.delete(x) && w.yea && (w.fireEvent(d.sKb,x),w.log.trace("removesubtitle",w.zpa(x)));};this.Duc=function(){w.iqa.forEach(function(x){w.fireEvent(d.sKb,x);w.log.trace("hide subtitle",w.zpa(x));});};this.yNc=function(){w.iqa.forEach(function(x){w.fireEvent(d.yNb,x);w.log.trace("resume subtitle",w.zpa(x));});};this.ml=function(){w.log.warn("imagesubs buffer underflow",w.j.ka.Qd.Ki);w.j.En.set(p.jh.Pf);};this.nXa=function(){w.log.info("imagesubs buffering complete",w.j.ka.Qd.Ki);w.j.En.set(p.jh.zf);};this.wta=function(){w.Dp && w.uj && w.uj.EI(w.yq());};this.tGb=function(x){w.Dp && w.uj && (w.uj.pause(),w.uj.UM(x.Nl));};this.cB=function(){w.Dp && w.uj && w.uj.iJb();};this.pGb=function(x){w.uj && w.uj.Bn(x.Bi,x.f0);};this.AGb=function(x){w.uj && w.uj.wl(x.L,x.kRb);};this.zFc=function(){w.Dp=!0;(0,l.Xh)(function(){var x,y;(null === (x=w.ZP) || void 0 === x?0:x.Fq)?null === (y=w.uj) || void 0 === y?void 0:y.EI(w.yq()):w.sync();w.DI();});};this.wFc=function(){w.fpb();w.qU.stop();w.DI();w.ph=!0;w.Cva();};this.LXa=function(x){(x=x.newValue) && (0,m.isArray)(x.blocks) && (w.qI.iRb.apply(w.qI,za(x.blocks.map(function(y){return y.id;}))),!1);};this.FFc=function(x){w.lWc(x.newValue,x.oldValue);w.sync();w.DI();};this.VW=function(x){var y;if(!w.ph){y=x.track;if(y === w.j.ka.Qd)try{w.uj=y.iSa();y.Fq?w.j5b(x):w.k5b(x);}catch(A){w.log.error("Error activating track:",A,y);return;}w.Dp || w.j.fh(x.success?"tt_comp":"tt_err");x.success?(g.config.sLb?setTimeout(function(){w.j.En.set(p.jh.zf);},g.config.sLb):w.j.En.set(p.jh.zf),y.Fq || w.DI()):x.aborted?w.log.warn("aborted timed text track loading"):g.config.$lc?w.j.wg(k.da.cXb,{qf:x.track?x.track.Ki:{}}):(w.log.error("ignore subtitle initialization error",x),w.j.En.set(p.jh.zf));}};this.jc=new f.qm();this.qI=new h.bhb((0,e.jo)(u,"SubtitleTracker"),g.config.Ckc);this.log=(0,e.jo)(u,"TimedTextManager");this.qU=new c.yhb(this.yq,this.DI);this.j.ka.addListener([q.u.Ca],this.Op);g.config.FIc?(this.j.addEventListener(p.ja.Dp,this.zFc),this.Op()):(this.j.En.set(p.jh.zf),this.j.addEventListener(p.ja.Dp,function(){w.Dp=!0;w.Op();}));this.j.Zb.addListener(this.FFc);this.j.addEventListener(p.ja.s2a,this.sync);this.j.MB.addListener(this.LXa);this.j.addEventListener(p.ja.ph,this.wFc);}Object.defineProperty(b,"__esModule",{value:!0});b.uhb=void 0;n=a(26159);c=a(7953);f=a(94886);g=a(29204);e=a(31276);h=a(69899);k=a(36129);l=a(32219);m=a(32687);p=a(85001);r=a(35781);q=a(26388);d.prototype.eRc=function(){this.yea=!0;this.yNc();this.DI();};d.prototype.Fuc=function(){this.yea=!1;this.Duc();this.DI();};d.prototype.addEventListener=function(u,v,w){this.jc.addListener(u,v,w);};d.prototype.removeEventListener=function(u,v){this.jc.removeListener(u,v);};d.prototype.fireEvent=function(u,v,w){this.jc.qd(u,v,w);};d.prototype.kKa=function(u,v,w){var x,y;x=this;y=r.shb.Tec(this.j,u,v,w);this.Wzb(this.j.vj,y);this.j.Yk.forEach(function(A){x.Wzb(A.vj,y);});this.j.ka.Jp(y);this.j.fireEvent(p.ja.OB);};d.prototype.eZa=function(u){return this.A_a(u)?u.pqa(this.hN).then(function(){}):Promise.resolve();};d.prototype.Msc=function(u){return this.qI.osc(u);};d.prototype.jSa=function(u){return this.qI.jSa(u);};d.prototype.O$=function(){var u,v;u={size:this.hN.Zvb().characterSize};v=this.j.ofa;v && (u.visibility=v.qSa(),u.Q7=v.oSa(),u.jy=v.pSa());return u;};d.prototype.mQc=function(u){this.hN.VPc(u);u=this.j.ka.Qd;this.A_a(u) && !u.Fq && u.pqa(this.hN).then(this.VW).catch(this.VW);};d.prototype.lWc=function(u,v){var w;u === p.Nb.rg || u == p.Nb.Oi?v !== p.Nb.rg && v !== p.Nb.Oi && ((v=this.j.ka.Qd) && !this.A_a(v) || this.qI.fFb(this.yq(),v || void 0,"presentingstate:" + u)):u !== p.Nb.mh && u !== p.Nb.Zw || this.qI.ePa(null !== (w=this.yq()) && void 0 !== w?w:void 0,"presentingstate:" + u);};d.prototype.Cva=function(){this.FT=0;Ba.clearTimeout(this.CNc);};d.prototype.fpb=function(){var u;this.uj && this.uj.stop();(null === (u=this.ZP) || void 0 === u?0:u.Fq) && this.jDb("removeListener");this.uj=void 0;};d.prototype.jDb=function(u){this.uj && (this.uj[u]("showsubtitle",this.HXa),this.uj[u]("removesubtitle",this.zca),this.uj[u]("underflow",this.ml),this.uj[u]("bufferingComplete",this.nXa),"addListener" === u?(this.j.addEventListener(p.ja.Wt,this.wta),this.j.addEventListener(p.ja.Ms,this.tGb),this.j.addEventListener(p.ja.NM,this.cB),this.j.addEventListener(p.ja.Rsa,this.pGb),this.j.addEventListener(p.ja.k3a,this.AGb)):(this.j.removeEventListener(p.ja.Wt,this.wta),this.j.removeEventListener(p.ja.Ms,this.tGb),this.j.removeEventListener(p.ja.NM,this.cB),this.j.removeEventListener(p.ja.Rsa,this.pGb),this.j.removeEventListener(p.ja.k3a,this.AGb)));};d.prototype.zpa=function(u){return {currentPts:this.yq(),displayTime:u.displayTime,duration:u.duration,id:u.id,originX:u.originX,originY:u.originY,sizeX:u.sizeX,sizeY:u.sizeY,rootContainerExtentX:u.rootContainerExtentX,rootContainerExtentY:u.rootContainerExtentY};};d.prototype.j5b=function(u){var v,w;v=this;w=u.track;if(!w || !w.Fq)throw Error("Not an image base subtitle");u.success?(this.Cva(),this.jDb("addListener"),this.log.info("Activated",w),this.j.Wk.set(w),this.Dp?(0,l.Xh)(function(){v.uj.EI(v.yq());}):this.uj.pause()):this.eLb(w,u);};d.prototype.k5b=function(u){var v,w;v=u.track;w=u.success;if(!v || v.Fq)throw Error("Not a valid text track");w?(this.Cva(),this.qU.LMb(this.uj),this.log.info("Activated",v),this.j.Wk.set(v)):this.eLb(v,(0,k.UE)(u));this.DI();};d.prototype.eLb=function(u,v){var w,x;w=this;x=this.FT < g.config.xBc;x && (this.CNc=Ba.setTimeout(function(){w.FT++;u.pqa(w.hN).then(w.VW).catch(w.VW);},g.config.iUc));this.log.error("Failed to activate" + ((null === u || void 0 === u?0:u.Fq)?" img subtitle":""),{retry:x},v,u);};d.prototype.A_a=function(u){return !(!u || u.Gq() && !u.pp());};d.prototype.Wzb=function(u,v){var w;w=u.findIndex(function(x){return x.Ac >= v.Ac;});-1 === w && (w=0);u.splice(w,0,v);};b.uhb=d;t={};d.lSc=(t[n.EO.zr.LOADING]={jba:!0},t[n.EO.zr.V4]={Ud:!0},t);d.yNb="showsubtitle";d.sKb="removesubtitle";},79014:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m){var p,r,q,u;p=this;this.j=l;this.WEc=function(){var v;f.xe.removeListener(f.Mpa,p.wGb);v=p.iu.zq();v && v.parentNode && v.parentNode.removeChild(v);};this.LXa=function(v){p.iu.APc(v.newValue);};this.TFc=function(v){var w;p.iu.LPc(v.so?v.so.Oqa:void 0);p.iu.MPc(null === (w=v.so) || void 0 === w?void 0:w.Ig);p.iu.NVc(p.rwb(v.so));};this.wGb=function(){p.iu.tT();};q=l.ka.Qd?l.ka.Qd.Oqa:void 0;u=null === (r=l.ka.Qd) || void 0 === r?void 0:r.Ig;r=this.rwb(l.ka.Qd);this.iu=new e.thb(m,r,q,u);m=l.NU.value;(0,c.va)(.1 < m.width / m.height);this.iu.lPc(m.width / m.height);l.Eu.appendChild(this.iu.zq());l.MB.addListener(this.LXa);l.ka.addListener([k.u.Ca],this.TFc);l.addEventListener(h.ja.ph,this.WEc,n.SV);f.xe.addListener(f.Mpa,this.wGb);}Object.defineProperty(b,"__esModule",{value:!0});b.whb=void 0;n=a(33096);c=a(45146);f=a(37509);g=a(29204);e=a(97154);h=a(85001);k=a(26388);d.prototype.X0a=function(l){this.iu.X0a(l);};d.prototype.qSa=function(){return this.iu.qSa();};d.prototype.V0a=function(l){this.iu.V0a(l);};d.prototype.oSa=function(){return this.iu.oSa();};d.prototype.W0a=function(l){this.iu.W0a(l);};d.prototype.pSa=function(){return this.iu.pSa();};d.prototype.rwb=function(l){var m;if(l && g.config.ura && 0 <= g.config.ura.indexOf(l.Ig)){m=Object.assign({},g.config.oxa);Object.entries(m).forEach(function(p){var r;r=Ea(p);p=r.next().value;r=r.next().value;m[p]=r.replace(/font-weight:bolder/g,"font-weight:normal");});return m;}return g.config.oxa;};b.whb=d;},28838:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;Object.defineProperty(b,"__esModule",{value:!0});b.Of=void 0;t=a(22674);d=a(58421);n=a(6856);c=a(48864);f=a(37187);g=a(17842);e=a(96723);h=a(67371);k=a(47511);l=a(45613);m=a(51361);b.Of=new t.Be(function(p){p(f.mja).to(d.WGa).sa();p(g.TFa).to(c.SFa).sa();p(e.eib).to(n.AHa).sa();p(h.gZb).to(k.iEa).sa();p(l.t1b).to(m.MHa).sa();});},97368:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.kKc=function(a){var d,n;d=!1;n=!1;return function(){if(d)n=!0;else for(n=!0;n;){n=!1;d=!0;try{a();}finally{d=!1;}}};};},54973:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.t$=function(n,c,f){return n.cQa?d.pr.XI:c && !f?d.pr.XI:d.pr.yr;};d=a(24735);},67371:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.gZb="ObjectComparerSymbol";},88195:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.Lf=function(n,c){return [].concat.apply([],za(n)).map(function(f){return Object.assign({name:f},null !== c && void 0 !== c?c:{});});};b.wy=function(n,c){for(var f=[],g=1;g < arguments.length;++g)f[g - 1]=arguments[g];return (0,d.lsb)(function(e,h){return e.name === h;},n,f);};d=a(45266);},17842:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.TFa="QueryStringDataProviderSymbol";},37187:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.mja=b.Wu=void 0;b.Wu=function(){};b.mja="StringObjectReaderSymbol";},79542:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.FG=void 0;b.LAb=function(a){return void 0 !== a && null !== a;};b.FJb=function(a,d){return a.includes(d);};b.FG=function(){return null;};},96723:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.eib="UuidProviderSymbol";},45613:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.t1b="WindowUtilsSymbol";},47511:function(t,b,a){var n,c;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.iEa=void 0;t=a(22970);n=a(22674);c=a(76564);d.prototype.compare=function(f,g){var e;e=[];this.IMa(f,g,"",e);return e;};d.prototype.IMa=function(f,g,e,h){var k;k=this;if(c.jO.yP(f))c.jO.yP(g) && f.length === g.length?f.forEach(function(p,r){k.IMa(f[r],g[r],e + "[" + r + "]",h);}):h.push({a:f,b:g,path:e});else if(c.jO.p7(f) && null != f){if(c.jO.p7(g) && null != g){for(var l in f)this.IMa(f[l],g[l],e + "." + l,h);for(var m in g)(m in f) || void 0 === g[m] || h.push({a:void 0,b:g[m],path:e + "." + m});}else h.push({a:f,b:g,path:e});}else f !== g && h.push({a:f,b:g,path:e});};a=d;b.iEa=a;b.iEa=a=t.__decorate([(0,n.aa)()],a);},48864:function(t,b,a){var n,c,f,g;function d(e){this.location=e;(0,c.hw)(this,"location");}Object.defineProperty(b,"__esModule",{value:!0});b.SFa=void 0;t=a(22970);c=a(66523);f=a(63368);a=a(22674);d.Zta=function(e){var h,l,m;h={};if(0 < e.length){e=e.split("&");for(var k=0;k < e.length;k++){l=e[k].trim();m=l.indexOf("=");0 <= m?h[decodeURIComponent(l.substr(0,m).replace(n.tdb,"%20"))]=decodeURIComponent(l.substr(m + 1).replace(n.tdb,"%20")):h[l.toLowerCase()]="";}}return h;};Ha.Object.defineProperties(d.prototype,{FKc:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data:this.data=n.Zta(this.nJb);}},nJb:{configurable:!0,enumerable:!0,get:function(){var e;if(void 0 !== this.mda)return this.mda;this.mda=this.location.search.substr(1);e=this.mda.indexOf("#");0 <= e && (this.mda=this.nJb.substr(0,e));return this.mda;}}});g=n=d;b.SFa=g;g.tdb=/[+]/g;b.SFa=g=n=t.__decorate([(0,a.aa)(),t.__param(0,(0,a.v)(f.Tab))],g);},58421:function(t,b,a){var n,c,f,g,e,h;function d(k,l){this.is=k;this.json=l;(0,c.hw)(this,"json");}Object.defineProperty(b,"__esModule",{value:!0});b.WGa=void 0;t=a(22970);c=a(66523);f=a(63368);g=a(22674);e=a(42207);h=a(37187);d.prototype.BJb=function(k){var l;l=this;return n.read(k,function(m){return parseInt(m);},function(m){return l.is.LKa(m);});};d.prototype.OZa=function(k){var l;l=this;return n.read(k,function(m){return "true" == m?!0:"false" == m?!1:void 0;},function(m){return l.is.Lka(m);});};d.prototype.Cw=function(k){var l;l=this;return n.read(k,function(m){return parseInt(m);},function(m){return l.is.q7(m);});};d.prototype.PKc=function(k){var l;l=this;return n.read(k,function(m){return parseFloat(m);},function(m){return l.is.Wo(m);});};d.prototype.AJb=function(k,l){return n.read(k,function(m){return n.ymc(m,l);},function(m){return void 0 !== m;});};d.prototype.SZa=function(k,l){return n.read(k,function(m){return m;},function(m){return l?l.test(m):!0;});};d.prototype.CJb=function(k){var l,m;l=this;m=void 0 === m?function(){return !0;}:m;try{return n.read(k,function(p){return l.json.parse(decodeURIComponent(p));},function(p){return l.is.p7(p) && m(p);});}catch(p){return new h.Wu();}};d.prototype.wn=function(k,l,m){var p,r;p=this;m=void 0 === m?1:m;k=k.trim();r=l instanceof Function?l:this.Ifc(l,m);l=k.indexOf("[");m=k.lastIndexOf("]");if(0 != l || m != k.length - 1)return new h.Wu();k=k.substring(l + 1,m);try{return n.cHc(k).map(function(q){q=r(p,n.TWc(q));if(q instanceof h.Wu)throw q;return q;});}catch(q){return q instanceof h.Wu?q:new h.Wu();}};d.prototype.Ifc=function(k,l){var m;m=this;l=void 0 === l?1:l;return function(p,r){p=n.nrc(k);return 1 < l?m.wn(r,k,l - 1):p(m,r);};};d.ymc=function(k,l){var p;for(var m in l){p=parseInt(m);if(l[p] == k)return p;}};d.read=function(k,l,m){k=l(k);return void 0 !== k && m(k)?k:new h.Wu();};d.nrc=function(k){switch(k){case "int":return function(l,m){return l.BJb(m);};case "bool":return function(l,m){return l.OZa(m);};case "uint":return function(l,m){return l.Cw(m);};case "float":return function(l,m){return l.PKc(m);};case "string":return function(l,m){return l.SZa(m);};case "object":return function(l,m){return l.CJb(m);};}};d.cHc=function(k){var w;for(var l=[["[","]"]],m=[],p=0,r=0,q=0,u=[],v={};r < k.length;(v={W2:v.W2},++r)){v.W2=k.charAt(r);w=void 0;"," == v.W2 && 0 == q?(m.push(k.substr(p,r - p)),p=r + 1):(w=l.find((function(x){return function(y){return y[0] == x.W2;};})(v)))?(++q,u.push(w)):0 < u.length && u[u.length - 1][1] == v.W2 && (--q,u.pop());}if(p != r)m.push(k.substr(p,r - p));else if(p == r && 0 < p)throw new h.Wu();return m;};d.TWc=function(k){var l;l=k.charAt(0);if('"' == l || "'" == l){if(k.charAt(k.length - 1) != l)throw new h.Wu();return k.substring(1,k.length - 1);}return k;};a=n=d;b.WGa=a;b.WGa=a=n=t.__decorate([(0,g.aa)(),t.__param(0,(0,g.v)(e.Mi)),t.__param(1,(0,g.v)(f.AV))],a);},6856:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.AHa=void 0;t=a(22970);a=a(22674);d.prototype.Evb=function(c){var f;f=this;return c?(c ^ 16 * Math.random() >> c / 4).toString(16):("10000000-1000-4000-8000-100000000000").replace(/[018]/g,function(g){return f.Evb(g);});};n=d;b.AHa=n;b.AHa=n=t.__decorate([(0,a.aa)()],n);},51361:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.MHa=void 0;t=a(22970);n=a(22674);a(22365);b.MHa=d;b.MHa=d=t.__decorate([(0,n.aa)()],d);},67590:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.eza="AsePrefetcherAdapterSymbol";b.o5a="AsePrefetcherProviderSymbol";},18148:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.lab=36E7;b.Eza="CacheManagerFactorySymbol";},99584:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v;Object.defineProperty(b,"__esModule",{value:!0});b.og=void 0;t=a(22674);d=a(68976);n=a(37780);c=a(66476);f=a(87657);g=a(12849);e=a(85671);h=a(19484);k=a(71576);l=a(32737);m=a(59315);p=a(20318);r=a(67590);q=a(61170);u=a(18148);v=a(94028);b.og=new t.Be(function(w){w(d.feb).to(n.gFa).sa();w(f.Zeb).to(g.OFa).sa();w(c.FO).to(e.FHa).sa();w(l.Yeb).to(k.qDa).sa();w(l.Xeb).to(h.zCa).sa();w(r.o5a).vUc(function(){var x;return null === (x=p.uv.bk) || void 0 === x?void 0:x.mB;});w(r.eza).to(q.dza).sa();w(m.JFa).to(m.IFa);w(u.Eza).to(v.Dza).sa();});},68976:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.feb="PlayPredictionDeserializerSymbol";},32737:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Yeb="PreparerManifestFetcherSymbol";b.Xeb="PreparerLicenseFetcherSymbol";},32573:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.wr={};t.Tm="created";t.Py="started";t.j2="succeeded";t.Ud="failed";t.Zc="cancelled";t.mac="cancelled_on_start";t.aMa="cancelled_not_encrypted";},87657:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.Bia={};t.OTc="taskstart";t.MTc="taskabort";t.NTc="taskfail";t.PTc="tasksuccess";b.Zeb="PreparerTaskSchedulerSymbol";},66476:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.FO="VideoPreparerSymbol";},61170:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z;function d(){var B;B=this;this.promise=new Promise(function(C,D){B.resolve=C;B.reject=D;});}function n(B,C,D,F,H){var E;E=this;this.TYa=D;this.WIc=F;this.uh=H;this.jga=[];this.oM=new Map();this.iTa=new Map();this.EFc=function(G){var J,L;G=(0,g.Sf)(G.wishListItem.key);if(E.oM.has(G)){L=E.oM.get(G);G=L.W0;L=L.MMa;null === (J=L.resolve) || void 0 === J?void 0:J.call(L,G);}};this.Bta=function(G){var J,L;J=G.J;L=G.S;G.target.Q3a(G.J) || (E.Ae.has({J:J}) && (E.Ae.js(J).Kx=!0),null === L || void 0 === L?void 0:L.then(function(K){var M;M=K.Aa;M && M.Hb && M.lq && M.lq.forEach(function(P){var I;I={Rf:{Hb:M.Hb,fd:J}};E.Ae.has({J:P.R,fd:M.R,Hb:M.Hb}) && (E.Ae.js(P.R,I).Kx=!0);});}).catch(function(){}),E.dKb(J),E.dNb(E.jga));};this.Ptb=function(G,J){var L,K;L=G.J;K=G.S;G.target.Q3a(L) || (null === K || void 0 === K?void 0:K.then(function(M){(M=M.Aa) && M.Hb && M.Hb === J.Hb && L === J.fd && (M={Rf:{Hb:M.Hb,fd:L}},E.Ae.has(J) && (E.Ae.js(J.J,M).Kx=!0),E.iTa.delete(E.Ae.generateKey(J)));}).catch(function(){}));};this.wa=B.wb("VideoPreparer");this.config=C();}Object.defineProperty(b,"__esModule",{value:!0});b.dza=void 0;t=a(22970);c=a(87386);a(50323);f=a(20318);g=a(45247);e=a(4203);h=a(29204);k=a(72639);l=a(67590);m=a(22674);p=a(59315);r=a(90745);q=a(49745);u=a(64213);v=a(25505);w=a(45146);x=a(37991);y=a(91176);A=a(54973);z=a(31149);n.prototype.Tb=function(B){var C;C=this;this.Ae=new u.HHa(function(D,F){return C.RC(D,B,f.uv.Mm,F);},function(D){return C.xT(B,D);},function(D,F){return C.yT(D,B,F);});};n.prototype.fetch=function(B,C){var D;D=this;if(-1 === C.events.listeners("manifestRemovedFromCache").indexOf(this.Bta))C.events.on("manifestRemovedFromCache",this.Bta);if(-1 === C.events.listeners("playbackClosing").indexOf(this.Bta))C.events.on("playbackClosing",this.Bta);!1;return this.kp(B.R,C,B.Cb).then(function(){D.dNb(D.gcc(D.rgc(B,C)));return D.oM.get(B.R).MMa.promise;});};n.prototype.getStats=function(){return this.mB.getStats();};n.prototype.tOb=function(B,C,D){C={Xk:D,S:C};this.iTa.set(this.Ae.generateKey(B),C);};n.prototype.Krc=function(B){return this.iTa.get(this.Ae.generateKey(B));};n.prototype.gcc=function(B){return [B].concat(za(this.jga.filter(function(C){return (0,g.Sf)(C.key) !== (0,g.Sf)(B.key);}))).slice(0,this.config.UIc).map(this.config.VIc?function(C,D){return Object.assign({},C,{priority:D});}:function(C){return C;});};n.prototype.Qwb=function(B,C,D){var F;F=this;D=void 0 === D?{}:D;return this.kp(B,C,D).then(function(H){F.lNa(H,C);return H.Aa;}).catch(function(H){var E;throw new g.gC("Failed to request manifest",{ud:0,Zwa:0,errorCode:null !== (E=H.code) && void 0 !== E?E:0,context:{error:H instanceof z.re?H.toJSON():H,type:"manifest"}});});};n.prototype.kp=function(B,C,D){var F,H;D=void 0 === D?{}:D;H=new y.AbortController();return this.uh.kp({Ha:null !== (F=C.rA(B)) && void 0 !== F?F:C.CNa(B),J:B,$t:k.Wp.u5,Hi:(0,A.t$)(this.config,!0),qb:D},H.signal);};n.prototype.bNb=function(B,C){var H;function D(E){H.Ptb(E,C);B.events.$l("playbackClosing",D);}function F(E){H.Ptb(E,C);B.events.$l("manifestRemovedFromCache",F);}H=this;B.events.on("manifestRemovedFromCache",F);B.events.on("playbackClosing",D);};n.prototype.yT=function(B,C,D){var F,H,E,G,J,L;F=this;H=B.uy;E=B.U7;B=B.Rf;G=B.Hb;J=B.fd;L=this.Ae.js(J);return L.Pu.then(function(K){var M,P,I;K=K.S.Xd;M=L.Ha;P=k.Wp.yr;I={oD:!0,Pg:!1,QB:Date.now()};return F.uh.kp({Ha:Number(M),qb:I,J:J,U7:E,uy:H,$t:P,Hi:void 0,oN:void 0,ue:{Hb:G,OD:K}},D,!1).then(function(O){F.lNa(O,C);F.uh.NIb();O.lq.forEach(function(Q){var T;F.uh.fU(Q.Aa.R,Q);T={J:Q.Aa.R,fd:J,Hb:G};F.tOb(T,Q);F.bNb(C,T);});if(!O.Aa.Hd)throw Error("Dai prefetch request has no adverts forparentViewableId: " + J);return O.Aa.Hd;});});};n.prototype.xT=function(B,C){var D,F,H,E,G,J,L,K;D=this;(0,w.va)(C.Rf,"auxiliaryOptions must exist if an adBreak hydration was requested");H=C.Rf;E=H.Hb;G=H.fd;J=C.Xk;L=C.eb;(0,w.va)(!!E,"auxiliaryManifestToken must exist if an adBreak hydration was requested");K=this.Ae.js(null === (F=null === C || void 0 === C?void 0:C.Rf) || void 0 === F?void 0:F.fd);return K.Pu.then(function(M){var P,I,O,Q;M=M.S.Xd;P=K.Ha;(0,w.va)(void 0 !== P,"parent xid must exist if an adBreak hydration was requested");I=k.Wp.yr;O={oD:!0,Pg:!1,QB:Date.now()};Q=new y.AbortController();return D.uh.kp({Ha:Number(P),qb:O,J:G,$t:I,Hi:void 0,oN:void 0,ue:{Xk:J,eb:L,Hb:E,fd:G,OD:M}},Q.signal,!1).then(function(T){var U,X;D.lNa(T,B);T.lq.forEach(function(Y){var W;W={J:Y.Aa.R,fd:G,Hb:E};D.tOb(W,Y,J);D.bNb(B,W);});if(null === (U=T.Aa.Hd) || void 0 === U || !U.lb.length)throw Error("AdBreak hydration request came with no adBreak forparentViewableId: " + (G + ", adBreakToken: " + J + ", adBreakTriggerId: " + L));return null === (X=T.Aa.Hd) || void 0 === X?void 0:X.lb[0];});});};n.prototype.lNa=function(B,C){var D,F,H;D=this;F=B.Aa;null === (H=F.lq) || void 0 === H?void 0:H.forEach(function(E){D.RC(E.R,C,f.uv.Mm,{Rf:{Hb:E.Hb,fd:F.R}},E);});};n.prototype.rgc=function(B,C){var D,F,H,E,G,J;H=new d();if(this.oM.has(B.R)){E=this.oM.get(B.R);G=E.W0;if(G.R === B.R && G.ff === B.ff)J=E.QXc.key;this.mB.getStats().contents.some(function(L){return L.id === B.R;}) && (H=E.MMa);}E=f.uv.Mm.St((0,h.SMa)(B.ff));J || (J={J:B.R,config:E});G={J:B.R};this.Ae.has(G) || this.Ae.store(G,this.pgc(B,C,E));C={key:J,X9c:!1,priority:B.priority,Vla:g.I.Ba(null !== (F=null === (D=B.Cb) || void 0 === D?void 0:D.Gb) && void 0 !== F?F:0),Ae:this.Ae};this.oM.set(B.R,{QXc:C,W0:B,MMa:H});return C;};n.prototype.pgc=function(B,C,D){var F,H,E;F=this;H=B.R;return {get Ha() {return C.rA(H);},Kx:!1,events:new r.EventEmitter(),KX:function(){},get Pu() {E || (E=F.Qwb(B.R,C,B.Cb).then(function(G){return {S:G,KC:G.Opa && !G.YK,config:D,m1a:{}};}));return E;},J:H,bxa:!1,equals:function(G){var J;J=C.rA(H);return G && G.J === H && (!G.Ha || !J || J === G.Ha);}};};n.prototype.RC=function(B,C,D,F,H){var E,G,J,L,K,M,P,I;E=this;K=C.rA(B);if(K || F){M={J:B,fd:null === (G=null === F || void 0 === F?void 0:F.Rf) || void 0 === G?void 0:G.fd,Hb:null === (J=null === F || void 0 === F?void 0:F.Rf) || void 0 === J?void 0:J.Hb};if(!this.Ae.has(M)){P=null !== K && void 0 !== K?K:this.Ae.js(null === (L=null === F || void 0 === F?void 0:F.Rf) || void 0 === L?void 0:L.fd).Ha;this.Ae.store(M,{KX:function(){},equals:function(O){return O && O.J === M.J && (P === O.Ha || !O.Ha || !P);},get Pu() {I || (I=(H?Promise.resolve(H):E.Qwb(B,C)).then(function(O){return {S:O,KC:O.Opa && !O.YK,config:D,m1a:{}};}));return I;},set Pu(O) {I=O;},events:new r.EventEmitter(),Ha:P,J:M.J,Kx:!1,bxa:!1});}}};n.prototype.JMb=function(B){this.jga=B;};n.prototype.dNb=function(B){this.JMb(B);this.mB.d1a(this.jga);};n.prototype.dKb=function(B){this.oM.has(B) && (this.JMb(this.jga.filter(function(C){return (0,g.Sf)(C.key) !== B;})),this.oM.delete(B));};Ha.Object.defineProperties(n.prototype,{mB:{configurable:!0,enumerable:!0,get:function(){this.JF || (this.JF=this.WIc(),this.JF.xKa(new x.Kfb()).L0a(this.TYa).TMb(new v.H$a()).xMb({bH:this.config.TIc}),this.JF.events.on("prefetchComplete",this.EFc));return this.JF;}}});a=n;b.dza=a;b.dza=a=t.__decorate([(0,m.aa)(),t.__param(0,(0,m.v)(c.zb)),t.__param(1,(0,m.v)(e.Hc)),t.__param(2,(0,m.v)(p.JFa)),t.__param(3,(0,m.v)(l.o5a)),t.__param(4,(0,m.v)(q.JV))],a);},94028:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m){var p;p=this;this.wi=l;l=m();this.cg=new h({log:k.wb("CacheManager"),Ma:{getTime:function(){return p.wi.yc().na(g.ya);}},Promise:Promise,mD:!1,i$b:l.bJc,h$b:l.$Ic,Dlc:l.GIb,Clc:l.aJc});}Object.defineProperty(b,"__esModule",{value:!0});b.Dza=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(87386);g=a(5021);e=a(4203);h=a(83195);b.Dza=d;b.Dza=d=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.zb)),t.__param(1,(0,n.v)(c.fe)),t.__param(2,(0,n.v)(e.Hc))],d);},25505:function(t,b){function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.H$a=void 0;a.prototype.Gub=function(d,n){var c;return null !== (c=this.zmc(d,n)) && void 0 !== c?c:this.Dmc(d,n);};a.prototype.zmc=function(d,n){var c,f;c=this;f=n.Z;return d.find(function(g){var e;return c.XNa(f,null === (e=g.Z) || void 0 === e?void 0:e.Z);});};a.prototype.Dmc=function(d,n){var c,f;c=n.Z.sf;f=n.Z.ba[c];return d.find(function(g){var e;g=null === (e=g.Z) || void 0 === e?void 0:e.Z;g=(e=null === g || void 0 === g?void 0:g.sf) && (null === g || void 0 === g?void 0:g.ba[e]) || void 0;return c === e && f.J === (null === g || void 0 === g?void 0:g.J) && f.Ua === (null === g || void 0 === g?void 0:g.Ua);});};a.prototype.XNa=function(d,n){var c;c=this;return d === n?!0:"object" !== typeof d || "object" !== typeof n?d === n:Object.keys(d).length === Object.keys(n).length && Object.keys(d).every(function(f){return c.XNa(d[f],n[f]);});};b.H$a=a;},19484:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q;function d(u,v,w,x,y,A){this.zcc=v;this.Jd=w;this.Pic=x;this.O_=y;this.uh=A;this.log=u.wb("VideoPreparer");}Object.defineProperty(b,"__esModule",{value:!0});b.zCa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(4203);g=a(2248);e=a(47737);h=a(92395);k=a(32573);l=a(50323);m=a(49745);p=a(82100);r=a(56039);q=a(54973);d.prototype.fetch=function(u,v){var w;w=this;this.log.trace("Fetching LDL",(0,l.jBa)(u));this.R=u.R;this.og=v;return v.b$(u.R,"ldl").then(function(x){return x.iwa;}).catch(function(){w.log.trace("Requesting a new license",(0,l.jBa)(u));return w.uh.c$(u.R).then(function(x){var y,A,z,B,C,D,F;w.Aa=x.Aa;if(v.Ayb(u.R))return v.b$(u.R,"ldl").then(function(H){return H.iwa;});y=w.og.JQc(u.R,w.Aa);if(y)throw {status:y};A=w.Aa.jm[0];y=A.Oua;z=A.Jsb;A=A.streams[0].Wr;B=(0,p.oAb)(A);C=(y?y:[z]).map(function(H){return w.Jd.decode(H.bytes);});D=(0,q.t$)(w.zcc(),!0,u.hUa);F=w.Pic().then(function(H){var E,G,J;J={type:D,initData:C,Gqa:B,MA:(0,r.nRa)(w.Aa.jm[0].streams),Is:{R:u.R,Ha:v.CNa(u.R),Xd:w.Aa.Xd,$r:w.Aa.$r,vp:x.vp,Yf:w.Aa.Yf,Sp:null !== (G=null === (E=w.Aa.sB) || void 0 === E?void 0:E.Sp) && void 0 !== G?G:w.Aa.jm[0].Ue}};return H.qu(J,w.O_());}).catch(function(H){w.handleError("Unable to prepare an EME session.",H);throw H;});w.og.pPc(u.R,{iwa:F,mVa:{source:"videopreparer",type:D}},function(){if(!w.og.Q3a(u.R))try{F.then(function(H){return H.close();}).catch(function(H){w.handleError("Unable to cleanup LDL session, Unable to get the session.",H);});}catch(H){w.handleError("Unable to cleanup LDL session, unexpected exception.",H);}});return F;}).catch(function(x){w.log.warn("Manifest not available for ldl request",x);if(void 0 !== x.status)throw x;throw {status:k.wr.Zc};});});};d.prototype.handleError=function(u,v){this.log.warn(u + " LDL is now invalid.",v);this.og.Abc(this.R);this.og.ipb(this.R);};a=d;b.zCa=a;b.zCa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(f.Hc)),t.__param(2,(0,n.v)(g.mm)),t.__param(3,(0,n.v)(e.hha)),t.__param(4,(0,n.v)(h.g5)),t.__param(5,(0,n.v)(m.JV))],a);},71576:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q,u,v,w,x){this.zba=v;this.wi=w;this.uh=x;this.log=q.wb("VideoPreparer");this.config=u();}Object.defineProperty(b,"__esModule",{value:!0});b.qDa=void 0;t=a(22970);n=a(4203);c=a(22674);f=a(87386);g=a(81918);e=a(5021);h=a(17398);k=a(72639);l=a(50323);m=a(49745);p=a(91176);r=a(54973);d.prototype.fetch=function(q,u){var v,w,x;this.log.trace("Fetching manifest",(0,l.jBa)(q));w=q.Cb;x=new p.AbortController();this.config.e5b && w && w.S && !this.uh.Yv(q.R) && (!(("clientGenesis" in w.S) && w.S.clientGenesis) || "number" === typeof w.S.clientGenesis && Date.now() - w.S.clientGenesis < this.config.GIb) && (w=this.zba.create(w.S)) && (w.zT=this.wi.yc().na(e.ya),w.q1=this.wi.yc().na(e.ya),this.uh.fU(q.R,w));return this.uh.kp({Ha:u.CNa(q.R),J:q.R,qb:null !== (v=q.Cb) && void 0 !== v?v:{},$t:k.Wp.u5,Hi:(0,r.t$)(this.config,!0,q.hUa)},x.signal,!0,function(y){u.events.emit("manifestRemovedFromCache",{target:u,type:"manifestRemovedFromCache",J:q.R,S:y});});};a=d;b.qDa=a;b.qDa=a=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(f.zb)),t.__param(1,(0,c.v)(n.Hc)),t.__param(2,(0,c.v)(h.IV)),t.__param(3,(0,c.v)(g.fe)),t.__param(4,(0,c.v)(m.JV))],a);},37780:function(t,b,a){var n,c,f;function d(g,e){this.ec=e;this.wa=g.wb("PlayPredictionDeserializer");}Object.defineProperty(b,"__esModule",{value:!0});b.gFa=void 0;t=a(22970);n=a(22674);c=a(87386);a=a(42207);d.prototype.Whc=function(g){var e;e=this;try{return {direction:g.direction,w$c:g.layoutHasChanged,scd:g.rowInteractionIndex,qc:g.lolomos.map(function(h){return e.Rhc(h);})};}catch(h){this.wa.error("Failed to deserialize update Payload: ",{payload:JSON.stringify(g)});}};d.prototype.Rhc=function(g){var e;e=this;return {context:g.context,list:g.list.map(function(h){return e.Qhc(h);}),requestId:g.requestId,rowIndex:g.rowIndex,tcd:g.rowSegment};};d.prototype.Qhc=function(g){var e,h;e={od:g.pts,property:g.property,J:g.viewableId,index:g.index};h=g.preplay;this.ec.Ci(h) && (e.Fua=this.Vhc(h));g=g.params;this.ec.Ci(g) && (e.Cb=this.Xrb(g));return e;};d.prototype.Vhc=function(g){var e;e={od:g.pts,J:g.viewableId,Q0:g.pipelineNum,index:g.index};g=g.params;this.ec.Ci(g) && (e.Cb=this.Xrb(g));return e;};d.prototype.Xrb=function(g){return {ff:g.uiLabel,Hn:g.trackingId,Xq:g.sessionParams};};d.prototype.Uhc=function(g){var e;e=this;try{return g.map(function(h){return e.Shc(h);});}catch(h){this.wa.error("Failed to deserialize uprepareList",{prepareList:JSON.stringify(g)});}};d.prototype.Shc=function(g){var e,h;h=g.params;this.ec.Ci(h) && (e=this.Thc(h));return {R:g.movieId,priority:g.priority,force:g.force,Cb:e,ff:g.uiLabel,hUa:g.isLivePostplay,fed:g.uiExpectedStartTime,eed:g.uiExpectedEndTime,ip:g.firstTimeAdded};};d.prototype.Thc=function(g){var e,h;e=void 0;h=g.sessionParams;this.ec.Ci(h) && (e=h);return {Nla:this.Phc(g.authParams),Xq:e,Hn:g.trackingId,Gb:g.startPts,S:g.manifest,Pg:g.isBranching};};d.prototype.Phc=function(g){return {KHc:null === g || void 0 === g?void 0:g.pinCapableClient};};f=d;b.gFa=f;b.gFa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(a.Mi))],f);},59315:function(t,b,a){var n,c,f,g,e,h;function d(k,l,m){this.Oq=k;this.config=l;this.debug=m;}Object.defineProperty(b,"__esModule",{value:!0});b.JFa=b.IFa=void 0;t=a(22970);n=a(45247);c=a(22674);f=a(75864);g=a(79048);e=a(4203);a=a(90597);d.prototype.tDb=function(k){var l,m;l=this;if(k.Fd.key.Z)return Promise.resolve(k.Fd.key.Z);m=(0,n.Sf)(k.Fd.key);this.debug.assert(!!m,"SmallAsset is not supported");return k.Fd.Ae.js(m).Pu.then(function(p){p=p.S;return p.Sr?(0,g.rMa)(p.Sr,{config:l.config()}):(0,g.r1a)(m,l.Oq.Ox(m));});};h=d;b.IFa=h;b.IFa=h=t.__decorate([(0,c.aa)(),t.__param(0,(0,c.v)(f.x5)),t.__param(1,(0,c.v)(e.Hc)),t.__param(2,(0,c.v)(a.VB))],h);b.JFa="PlaygraphResolverSymbol";},50323:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.jBa=function(){return "";};},79538:function(t,b,a){var n,c;function d(f,g,e,h,k,l,m,p){this.type=f;this.Tm=g;this.FHc=void 0 === e?!1:e;this.notify=k;this.imc=l;this.W0=m;this.og=p;this.id=++c;this.status=n.wr.Tm;}Object.defineProperty(b,"__esModule",{value:!0});b.Aia=void 0;n=a(32573);c=0;d.prototype.du=function(){var f;f={id:this.id,type:this.type,created:this.Tm,status:this.status,movieId:this.R};this.startTime && (f.startTime=this.startTime);this.endTime && this.startTime && (f.duration=this.endTime - this.startTime,f.endTime=this.endTime);return f;};d.prototype.j0=function(f){this.notify && this.notify(f);};d.prototype.RNc=function(){return this.imc.fetch(this.W0,this.og);};Ha.Object.defineProperties(d.prototype,{R:{configurable:!0,enumerable:!0,get:function(){return this.W0.R;}},priority:{configurable:!0,enumerable:!0,get:function(){return this.W0.priority;}}});b.Aia=d;},12849:function(t,b,a){var n,c,f,g,e,h,k,l,m,p;function d(r,q,u,v){this.is=u;this.wi=v;this.log=r.wb("TaskScheduler");this.jc=new m.qm();this.config=q();this.currentIteration=this.E8=0;this.mU=[];this.paused=!1;this.Lwa=[];this.Hpb=[];this.Vvc=this.config.ZIc || p.append;this.addEventListener=this.jc.addListener;}Object.defineProperty(b,"__esModule",{value:!0});b.OFa=void 0;t=a(22970);n=a(22674);c=a(87657);f=a(87386);g=a(4203);e=a(32573);h=a(42207);k=a(81918);l=a(5021);m=a(94886);(function(r){r.prepend="prepend";r.append="append";r.eqa="ignore";})(p || (p={}));d.prototype.i6b=function(r){this.log.trace("adding tasks, number of tasks: " + r.length);this.paused=!1;this.mU=this.Wvc(r);this.E8=0;this.currentIteration+=1;this.Xh();};d.prototype.pause=function(){this.paused=!0;};d.prototype.Xh=function(){var r,q,u,v;r=this;if(this.E8 === this.mU.length)this.log.trace("all tasks completed");else if(this.paused)this.log.trace("in paused state",{currentTaskIndex:this.E8,numberOfTasks:this.mU.length});else {q=this.erc();u=this.currentIteration;q.startTime=this.wi.yc().na(l.ya);q.status=e.wr.Py;this.jc.qd(c.Bia.OTc,{R:q.R,type:q.type});this.Lwa.push(q);v=function(w){q.endTime=r.wi.yc().na(l.ya);w();r.Hpb.push(q);r.Lwa.splice(r.Lwa.indexOf(q),1);r.currentIteration === u && (r.E8++,r.Xh());};q.RNc().then(function(){v(function(){q.status=e.wr.j2;r.uZa(q,c.Bia.PTc,"task succeeded");});}).catch(function(w){v(function(){0 <= [e.wr.Zc,e.wr.mac,e.wr.aMa].indexOf(w.status)?(q.status=w.status,r.uZa(q,c.Bia.MTc,"cancelled task")):(q.status=e.wr.Ud,r.uZa(q,c.Bia.NTc,"task failed",w));});});}};d.prototype.erc=function(){return this.mU[this.E8];};d.prototype.getStats=function(r,q,u){var v,w,x,y;v=this.Hpb.map(function(A){return A.du();});w=this.Lwa.map(function(A){return A.du();});x=this.is.Ci(r) && this.is.Ci(q);y={};if(this.is.Ci(u))return (y.occ=v.filter(function(A){return A.movieId === u;}),y);v.concat(w).forEach(function(A){var z;y[A.type + "_" + A.status]=(y[A.type + "_" + A.status] | 0) + 1;z=A.status == e.wr.Py?A.startTime:A.endTime;x && z && z >= r && z < q && (y[A.type + "_" + A.status + "_delta"]=(y[A.type + "_" + A.status + "_delta"] | 0) + 1);});return y;};d.prototype.uZa=function(r,q,u,v){var w;w=r.du();v?this.log.warn(u,w,v):this.log.trace(u,w);this.jc.qd(q,{R:r.R,type:r.type,reason:r.status});r.j0(w);};d.prototype.Wvc=function(r){var q,u;q=this.mU.filter(function(v){return v.FHc && v.status === e.wr.Tm;});u=this.Vvc;return u === p.eqa?[].concat(r):u === p.prepend?q.concat(r):r.concat(q);};a=d;b.OFa=a;b.OFa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.zb)),t.__param(1,(0,n.v)(g.Hc)),t.__param(2,(0,n.v)(h.Mi)),t.__param(3,(0,n.v)(k.fe))],a);},37991:function(t,b){function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.Kfb=void 0;a.prototype.ULa=function(d,n){var c;d=n(d);null === (c=d.Fp) || void 0 === c?void 0:c.forEach(function(f){f.xOb.video.push({lma:!1,Ah:function(g){return g.filter(function(e){return !e.xk || 1080 >= e.CT;});}});});return d;};b.Kfb=a;},85671:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;function d(y,A,z,B,C,D,F,H,E,G){this.cYc=z;this.ec=B;this.wi=C;this.mc=D;this.mub=F;this.fmc=H;this.ooa=E;this.events=new x.EventEmitter();this.log=y.wb("VideoPreparer");this.config=A();this.e4a={};this.Dsa={};this.stats={num_of_calls:0,num_of_movies:0};this.ooa.Tb(this);this.cg=G.cg;}function n(y){return void 0 !== y;}Object.defineProperty(b,"__esModule",{value:!0});b.FHa=void 0;t=a(22970);c=a(79538);f=a(4203);g=a(22674);e=a(87386);h=a(62665);k=a(42207);l=a(87657);m=a(81918);p=a(5021);r=a(32573);q=a(18148);u=a(32737);v=a(67590);w=a(91176);x=a(90745);d.prototype.pPc=function(y,A,z){this.cg.setData(y,"ldl",A,z);};d.prototype.Ayb=function(y){return this.cg.V$(y,"ldl");};d.prototype.Abc=function(y){this.cg.clearData(y,"ldl",void 0,!0);};d.prototype.b$=function(y,A){return this.cg.getData(y,A);};d.prototype.Moc=function(y){var A;A=this.cg.getData(y,"ldl");this.cg.clearData(y,"ldl",void 0,!0);return A;};d.prototype.Q3a=function(y){return this.gOb === y || this.Vqb === y;};d.prototype.dT=function(y,A){var z,B,C;z=this;y=y.map(function(D){D.Cb=D.Cb || ({Nla:{KHc:!1},Hn:0});z.ec.tY(D.Cb.Hn) || (D.Cb.Hn=0);z.ec.tY(D.od) && (D.Cb.Gb=D.od);return D;});B=y.map(function(D){return z.ggc(D,A);}).reduce(function(D,F){return D.concat(F);},[]);C=B.map(function(D){return D.R + "-" + D.type;});this.log.trace("prepare tasks",C);this.mc.i6b(B);this.stats.num_of_calls++;this.stats.num_of_movies+=y.length;};d.prototype.getStats=function(y,A,z){return Object.assign(Object.assign({},z && this.Dsa[z] || ({})),{mU:this.mc.getStats(y,A,z),cache:this.cg.getStats(y,A),Nnc:Object.assign(Object.assign({},this.stats),this.ooa.getStats())});};d.prototype.Stc=function(y){this.gOb=y;};d.prototype.Qtc=function(y){this.log.trace("task scheduler paused on playback created");this.mc.pause();this.config.Jhc && this.cg.wMa(y,["manifest"]);this.config.Ihc && this.cg.wMa(y,["ldl"]);this.config.Ghc && this.cg.clearData(y,"manifest");this.ooa.dKb(y);this.Vqb=y;};d.prototype.qyb=function(){this.log.info("ad played, clearing all manifests from cache");this.bvb();};d.prototype.uyb=function(){this.log.info("track changed, clearing all manifests from cache");this.bvb();};d.prototype.Ptc=function(y){var A;A=this;this.config.Hhc?this.cg.clearData(y,"manifest"):this.cg.V$(y,"manifest") && this.cg.getData(y,"manifest").then(function(z){z.Aa.isSupplemental || A.config.WOa && (0,w.GA)(z.Aa.Yf)?z.F3a=!0:A.cg.clearData(y,"manifest");},function(z){A.log.warn("Failed to get manifest for movieId [" + y + "] from cacheManager.",z);});this.cg.getState().reduce(function(z,B){B=B.movieId;z.includes(B) || z.push(B);return z;},[]).forEach(function(z){A.cg.getData(z,"manifest").then(function(B){var C,D;(null === (D=null === (C=B.Aa.qE) || void 0 === C?void 0:C.aN) || void 0 === D?0:D.JA) && ["manifest","ldl"].forEach(function(F){return A.cg.NQb(z,F);});}).catch(function(){A.cg.clearData(z,"ldl");});});this.ipb(y);this.gOb=this.Vqb=void 0;this.events.emit("playbackClosing",{J:y,type:"playbackClosing",target:this});};d.prototype.bvb=function(){this.cg.wMa("none",["manifest","ldl"]);};d.prototype.ipb=function(y){delete this.e4a[y];};d.prototype.rA=function(y){return this.e4a[y];};d.prototype.CNa=function(y){return this.e4a[y]=this.cYc.nG();};d.prototype.JQc=function(y,A){if(this.Ayb(y))return r.wr.Zc;if(!A.YK)return r.wr.aMa;};d.prototype.ggc=function(y,A){var z,B;y.ff && y.Cb && (y.Cb.ff=y.ff);this.hWc(y.R,y.ip);z=this.Afc(y,A);B=this.ufc(y,null === z || void 0 === z?void 0:z.id,A);y=this.Ffc(y,null === z || void 0 === z?void 0:z.id,A);return [z,B,y].filter(n);};d.prototype.Afc=function(y,A){if(this.cg.V$(y.R,"manifest"))this.log.trace("manifest exists in cache for " + y.R);else return new c.Aia("manifest",this.wi.yc().na(p.ya),!!y.Cb.CLb,void 0,A,this.mub,y,this);};d.prototype.ufc=function(y,A,z){if(this.config.Nna)if(this.cg.V$(y.R,"ldl"))!1;else return new c.Aia("license",this.wi.yc().na(p.ya),!!y.Cb.CLb,A,z,this.fmc,y,this);};d.prototype.Ffc=function(y,A,z){if(this.config.Pna)return new c.Aia("getMedia",this.wi.yc().na(p.ya),!!y.Cb.CLb,A,z,this.ooa,y,this);};d.prototype.hWc=function(y,A){this.Dsa[y] || (this.Dsa[y]={Cua:0,ip:0});y=this.Dsa[y];y.Cua=(void 0 !== y?void 0 !== y.Cua?y.Cua:0:0) + 1;y.ip=A;};a=d;b.FHa=a;b.FHa=a=t.__decorate([(0,g.aa)(),t.__param(0,(0,g.v)(e.zb)),t.__param(1,(0,g.v)(f.Hc)),t.__param(2,(0,g.v)(h.XE)),t.__param(3,(0,g.v)(k.Mi)),t.__param(4,(0,g.v)(m.fe)),t.__param(5,(0,g.v)(l.Zeb)),t.__param(6,(0,g.v)(u.Yeb)),t.__param(7,(0,g.v)(u.Xeb)),t.__param(8,(0,g.v)(v.eza)),t.__param(9,(0,g.v)(q.Eza))],a);},36149:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.URb=void 0;t=a(22674);d=a(58872);n=a(52357);b.URb=new t.Be(function(c){c(d.jib).to(n.EHa).sa();});},58872:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.jib="VideoPlayerFactorySymbol";},85001:function(t,b){var d,n,c,f,g,e,h,k;function a(){}Object.defineProperty(b,"__esModule",{value:!0});b.Mc=b.Nb=b.jh=b.Fc=b.Gya=b.ja=b.$Ba=b.YV=b.Za=void 0;(function(l){l.MCb="loadedtracks";l.LCb="loadedmetadata";l.loaded="loaded";l.error="error";l.closed="closed";l.Wt="currenttimechanged";l.DQb="unthrottledcurrenttimechanged";l.$la="bufferedtimechanged";l.GOa="durationchanged";l.P3a="videosizechanged";l.AHb="pausedchanged";l.UYa="playingchanged";l.rtb="endedchanged";l.xX="busychanged";l.Kla="audiotracklistchanged";l.kq="audiotrackchanged";l.OB="timedtexttracklistchanged";l.Op="timedtexttrackchanged";l.Cfa="trickplayframeschanged";l.z2a="timecodesupdated";l.SEb="mutedchanged";l.aSb="volumechanged";l.l1a="showsubtitle";l.d_a="removesubtitle";l.FXc="watermark";l.xUa="isReadyToTransition";l.UZ="inactivated";l.$zb="internalPlaybackError";l.IOc="segmentmaploaded";l.JOc="segmentpresenting";l.hnb="autoplaywasallowed";l.Pla="autoplaywasblocked";l.D6b="adsstatechanged";l.GL="livestatechanged";l.dmb="admetadataupdated";})(d || (b.Za=d={}));(n || (b.YV=n={})).hea="playgraphsegmenttransition";b.$Ba=a;a.rMb="serverTimeChanged";(function(l){l.Era="livePipelineFailover";l.Ola="autoplayWasAllowed";l.Gj="autoplayWasBlocked";l.aG="bufferUnderrun";l.closed="closed";l.ph="closing";l.Wt="currentTimeChanged";l.hQ="downloadComplete";l.UZ="inactivated";l.kVa="licenseAdded";l.nVa="licensed";l.kba="locationSelected";l.TVa="manifestClosing";l.KL="manifestPresenting";l.Oba="mediaBufferChanged";l.Rsa="nextBranchingSegmentChosen";l.iB="playbackStart";l.Dp="playbackReady";l.vva="repositioning";l.o1="repositionASE";l.Ms="repositioned";l.Xda="safePlayRequested";l.NM="segmentPresenting";l.nea="serverSwitch";l.i1a="shouldUpdateVideoDiagInfo";l.i2="subtitleError";l.s2a="throttledMediaTimeChanged";l.EQb="unthrottledMediaTimeChanged";l.t2="timedTextRebuffer";l.OB="timedTextTrackListChanged";l.Cfa="trickPlayFramesChanged";l.k3a="updateNextBranchingSegmentWeights";l.G3a="userInitiatedPause";l.FRb="userInitiatedResume";l.TPb="tracksHydrated";l.GL="livestatechanged";l.Sda="restarting";l.DCb="livePostplayUpdated";l.lX="aseLogblob";})(c || (b.ja=c={}));(f || (b.Gya=f={})).Qka="adBreakComplete";(function(l){l[l.PV=0]="NOTLOADED";l[l.LOADING=1]="LOADING";l[l.zf=2]="NORMAL";l[l.CLOSING=3]="CLOSING";l[l.CLOSED=4]="CLOSED";})(g || (b.Fc=g={}));(function(l){l[l.zf=1]="NORMAL";l[l.Pf=2]="BUFFERING";l[l.Zfb=3]="STALLED";})(e || (b.jh=e={}));(function(l){l[l.mh=1]="WAITING";l[l.rg=2]="PLAYING";l[l.Oi=3]="PAUSED";l[l.Zw=4]="ENDED";})(h || (b.Nb=h={}));(function(l){l[l.Mo=0]="INITIAL";l[l.Xu=1]="SEEK";l[l.CV=2]="LIVE_EDGE";l[l.P5=3]="TRACK_CHANGED";l[l.dW=4]="SEGMENT_CHANGED";l[l.pha=5]="FORCE_REBUFFER";l[l.V3=6]="FRAGMENTS_MISSING";l[l.Vha=7]="MEDIA_DISCONTINUITY";})(k || (b.Mc=k={}));},91122:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.N6a="CdnPartitionerSymbol";},75950:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z;Object.defineProperty(b,"__esModule",{value:!0});b.bzb=void 0;t=a(22674);d=a(70673);n=a(78033);c=a(23002);f=a(487);g=a(77764);e=a(23179);h=a(52794);k=a(52961);l=a(44376);m=a(15850);p=a(47500);r=a(68272);q=a(10242);u=a(78029);v=a(62553);w=a(91122);x=a(12394);y=a(20034);A=a(91825);z=a(27134);b.bzb=new t.Be(function(B){B(d.P9a).to(n.HBa).sa();B(c.S9a).to(f.IBa).sa();B(g.C9a).to(e.ABa).sa();B(h.D9a).to(k.BBa).sa();B(w.N6a).to(x.Kza).sa();B(l.Beb).to(m.yFa).sa();B(p.VGa).to(r.UGa);B(q.Z4).to(y.nO);B(A.b5).to(z.oO);B(u.zBa).to(v.JBa);});},78029:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.zBa="HLSConfigSymbol";},77764:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.C9a="HLSPlaylistBuilderSymbol";},52794:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.D9a="HLSPlaylistTransformerSymbol";},70673:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.P9a="HeaderFetcherSymbol";},23002:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.S9a="HLSHeaderParserFactorySymbol";},10242:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.b1c="LogblobBuilderSymbol";b.Z4="HLSLogblobBuilderFactorySymbol";},91825:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.b5="HLSLogblobMonitorFactorySymbol";},44376:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Beb="PlayerPlaydataMonitorSymbol";},47500:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.VGa="StreamChangeDetectorSymbol";},12394:function(t,b,a){var n,c;function d(f){this.wa=f.wb("CdnPartitionerImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.Kza=void 0;t=a(22970);n=a(22674);a=a(87386);d.prototype.Roc=function(f){var e,h,k,l,m,p,r;function g(q,u,v){var w,x,y;w=q.map(function(A){return A.Kg;});w.sort(function(A,z){return u[A] - u[z];});if(1 === w.length)(!1,k.set(v,{Y0:q[0],Xva:q[0]}));else {x=w.find(function(A){return e.has(A);});x || ((x=w.find(function(A){return !h.has(A);}))?e.add(x):(x=w[0],!1));y=w.find(function(A){return h.has(A) && A !== x;});y || ((y=w.find(function(A){return !e.has(A) && A !== x;}))?h.add(y):(y=w.find(function(A){return A !== x;}),!1));k.set(v,{Y0:q.find(function(A){return A.Kg === x;}),Xva:q.find(function(A){return A.Kg === y;})});}}e=new Set();h=new Set();k=new Map();l=f.video;m=f.audio;p=f.text;r=f.Hk.reduce(function(q,u){q[u.id]=u.Ac;return q;},{});l.forEach(function(q){q=q.stream;g(q.urls,r,q.$g);});m.forEach(function(q){q=q.stream;g(q.urls,r,q.$g);});p.forEach(function(q){var u,v;if(!q.track.ay || q.track.Haa){u=q.stream;q=q.id;v=u.urls.reduce(function(w,x,y){w[x.Kg]=y + 1;return w;},{});g(u.urls,v,q);}});return k;};c=d;b.Kza=c;b.Kza=c=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.zb))],c);},62553:function(t,b,a){var n,c,f,g;function d(e){return c.Qf.call(this,e,"HlsConfigImpl") || this;}Object.defineProperty(b,"__esModule",{value:!0});b.JBa=void 0;t=a(22970);n=a(22674);c=a(64174);f=a(83767);a=a(12501);Ia(d,c.Qf);Ha.Object.defineProperties(d.prototype,{rIb:{configurable:!0,enumerable:!0,get:function(){return !0;}},ZA:{configurable:!0,enumerable:!0,get:function(){return 16E3;}},CD:{configurable:!0,enumerable:!0,get:function(){return 4E3;}},czb:{configurable:!0,enumerable:!0,get:function(){return 1E4;}},jw:{configurable:!0,enumerable:!0,get:function(){return 80;}}});g=d;b.JBa=g;t.__decorate([a.config(a.pd,"playsInline")],g.prototype,"rIb",null);t.__decorate([a.config(a.iL,"minAudioMediaRequestDuration")],g.prototype,"ZA",null);t.__decorate([a.config(a.iL,"minVideoMediaRequestDuration")],g.prototype,"CD",null);t.__decorate([a.config(a.iL,"hlsVideoMediaRequestTargetDuration")],g.prototype,"czb",null);t.__decorate([a.config(a.iL,"minStartingVideoVMAF")],g.prototype,"jw",null);b.JBa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.Po))],g);},23179:function(t,b,a){var g,e,h,k,l,m,p,r,q,u,v,w;function d(x,y){this.P8=y;this.zc=x.filter(function(A){return A.yI[m.Cr.Aja];}).map(function(A){return {track:A,stream:A.yI[m.Cr.Aja],id:A.Hsb[m.Cr.Aja]};});}function n(x,y,A){var z;this.kU=y;this.jw=A;z=x[0];this.Afa=z.streams.map(function(B){return {track:z,Z$:B.TNb,stream:B};});}function c(x,y,A,z){function B(C,D){return C.bitrate > D.bitrate?C:D;}this.log=x;this.kU=A;this.P8=z;this.Afa=y.map(function(C){var D;D=C.streams.reduce(B);return {track:C,Z$:D.Ao?D.Ao.offset + D.Ao.size:void 0,stream:D};});}function f(x,y,A,z,B,C){this.Auc=x;this.Buc=y;this.uIc=A;this.tac=z;this.eaa=B;this.th=C;this.wa=C.wb("HLSPlaylistBuilderImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.P0b=b.r1b=b.tTb=b.ABa=void 0;t=a(22970);g=a(22674);e=a(70673);h=a(23002);k=a(36129);l=a(31149);m=a(75568);p=a(52794);r=a(91122);q=a(78029);u=a(87386);v=a(79542);w=a(26388);f.prototype.build=function(x,y){var A,z,B,C,D,F;A=this;C=x.Aa;x=this.woc(C,y);D=this.ntc(C,y);F=null !== (B=null === (z=C.sB) || void 0 === z?void 0:z.Ty) && void 0 !== B?B:C.ht.find(function(H){var E;return H.id === (null === (E=C.Q8) || void 0 === E?void 0:E[0].NOb);}).Ue;z=new d(C.ht,F);return Promise.all([x,D,z]).then(function(H){var E,G;E=Ea(H);H=E.next().value;G=E.next().value;E=E.next().value;H={audio:H.getMetadata(),video:G.getMetadata(),text:E.getMetadata(),Grb:H.PQa(),nhc:E.PQa(),duration:C.duration,Hk:C.Hk};G=A.tac.Roc(H);y("h_s");return {NAc:A.uIc.transform(H,G),wac:G,ESc:H};});};f.prototype.ntc=function(x,y){var A;A=new n(x.jm,this.eaa.czb,this.eaa.jw);return this.Asb(A.Afa,w.u.U,y).then(function(z){A.F0a(z);return A;});};f.prototype.woc=function(x,y){var A,z,B,C;B=null !== (z=null === (A=x.sB) || void 0 === A?void 0:A.yv) && void 0 !== z?z:x.Om.find(function(D){var F;return D.id === (null === (F=x.Q8) || void 0 === F?void 0:F[0].yv);}).Ue;C=new c(this.wa,x.Om,this.eaa.ZA,B);return this.Asb(C.Afa,w.u.X,y).then(function(D){C.F0a(D);return C;});};f.prototype.jYa=function(x,y,A,z){if(x=this.Buc.parse(y,x,A))return x;this.wa.error("Failed to parse headers",{type:y === w.u.X?"audio":"video",downloadableId:z.stream.$g});};f.prototype.Asb=function(x,y,A){var z;z=this;return Promise.all(x.map(function(B,C){if(B.Z$)return z.Auc.download({urls:B.stream.urls,offset:0,length:B.Z$}).then(function(D){A("h_" + (0 === y?"A":"V") + "_" + C + "_s");return z.jYa(D,y,y == w.u.X?z.eaa.ZA:z.eaa.CD,B);}).catch(function(){A("h_" + B.track.aj[0] + "_" + C + "_f");z.wa.warn("Failed to download and parse headers for " + B.stream.$g);});z.wa.warn("Stream data offset is missing",{downloadableId:B.stream.$g});}));};a=f;b.ABa=a;b.ABa=a=t.__decorate([(0,g.aa)(),t.__param(0,(0,g.v)(e.P9a)),t.__param(1,(0,g.v)(h.S9a)),t.__param(2,(0,g.v)(p.D9a)),t.__param(3,(0,g.v)(r.N6a)),t.__param(4,(0,g.v)(q.zBa)),t.__param(5,(0,g.v)(u.zb))],a);c.prototype.F0a=function(x){var y;y=this;if(!x.find(function(A){return void 0 !== A;}))throw l.re.vSb(k.da.w$a,k.Y.fDa);this.zc=this.Afa.map(function(A,z){if(z=x[z])return {track:A.track,stream:A.stream,Qa:z,kU:y.kU};}).filter(v.LAb);};c.prototype.getMetadata=function(){return this.zc;};c.prototype.PQa=function(){var x,y;x=this;if(!this.zc.find(function(A){return A.track.Ue === x.P8;}) && 0 < this.zc.length){y=this.zc[0].track.Ue;this.log.warn("Did not find metadata for audio track " + this.P8 + ", falling back to " + y);return y;}return this.P8;};b.tTb=c;n.prototype.F0a=function(x){var y,A;y=this;if(!x.find(function(z){return void 0 !== z;}))throw l.re.vSb(k.da.w$a,k.Y.gDa);A=this.Afa.map(function(z,B){if(B=x[B])return {track:z.track,stream:z.stream,Qa:B,kU:y.kU};}).filter(v.LAb);this.zc=this.qrc(A);};n.prototype.getMetadata=function(){return this.zc;};n.prototype.qrc=function(x){var y,A,z;y=this;x.sort(function(B){return B.stream.bitrate;});A=x.findIndex(function(B){var C;return (null !== (C=B.stream.Pb) && void 0 !== C?C:0) >= y.jw;});if(-1 !== A && A !== x.length - 1){z=x[A];x.splice(A,1);x.push(z);}x.reverse();return x;};b.r1b=n;d.prototype.PQa=function(){return this.P8;};d.prototype.getMetadata=function(){return this.zc;};b.P0b=d;},52961:function(t,b,a){var n,c,f,g,e,h;function d(k){this.wa=k.wb("HLSPlaylistTransformerImpl");this.nXc=g.mAa.$z();this.w8b=e.lAa.$z();}Object.defineProperty(b,"__esModule",{value:!0});b.BBa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(35128);g=a(48617);e=a(12187);h=[0,1];d.prototype.transform=function(k,l){var m,p,r,q,u,v,w,x,y;m=this;p=["#EXTM3U","#EXT-X-VERSION:8","#EXT-X-INDEPENDENT-SEGMENTS"];r=k.text;q=k.audio;u=k.video;v=k.duration;w=k.Grb;x=k.nhc;r.forEach(function(A){h.forEach(function(z){var B,C,D,F;B=0 === z;C=A.stream;D=A.track;F=l.get(A.id);B=B?F.Y0:F.Xva;C=m.Rsc({url:B.url,duration:v / 1E3,size:C.size,sq:"Manifest for subtitles " + D.language + ' stream "' + D.xL + '", ' + D.Ue + ", cdn " + B.Kg});m.wa.trace("Text variant manifest",C.join("\n"));z=m.Ssc({groupId:z,name:D.xL,WTa:D.Ue === x,pp:D.Haa,pwc:D.aj === f.Zu.rya,language:D.language,uri:m.Ura(C)});p.push(z);});});q.forEach(function(A){h.forEach(function(z){var B,C,D,F,H,E;B=0 === z;C=A.stream;D=A.track;F=A.Qa;H=A.kU;E=l.get(C.$g);B=B?E.Y0:E.Xva;C=m.Zwb({url:B.url,Z$:C.Ao.offset + C.Ao.size,Qa:F,dPb:Math.floor(H / 1E3),sq:"Manifest for audio " + D.language + ' stream "' + D.xL + '", ' + D.Ue + ", cdn " + B.Kg});m.wa.trace("Audio variant manifest",C.join("\n"));z=m.xoc({groupId:z,language:D.language,name:D.xL,WTa:D.Ue === w,uri:m.Ura(C)});p.push(z);});});y=this.w8b[q[0].track.profile];u.forEach(function(A){h.forEach(function(z){var B,C,D,F,H,E;B=0 === z;C=A.stream;D=A.track;F=A.Qa;H=A.kU;E=l.get(C.$g);E=B?E.Y0:E.Xva;B=0 < r.length;D=m.Zwb({url:E.url,Z$:C.Ao?C.Ao.offset + C.Ao.size:C.TNb,Qa:F,dPb:Math.floor(H / 1E3),sq:"Manifest for video bitrate " + C.bitrate + ", stream " + D.Ue + ", cdn " + E.Kg});m.wa.trace("Video variant manifest",D.join("\n"));z=m.otc({groupId:z,I7:1E3 * C.bitrate,L8b:1E3 * C.bitrate,gxc:0 <= C.Wr.indexOf("-hdr-") || 0 <= C.Wr.indexOf("-dv5-"),framerate:(C.rQa / C.qQa).toFixed(3),yo:C.Bva + "x" + C.B_a,dXc:m.nXc[C.Wr],n8b:y,VTc:B});p.push(z);z=m.Ura(D);p.push("" + z);});});this.wa.trace("Primary manifest",p.join("\n"));return this.Ura(p);};d.prototype.xoc=function(k){var l;l=k.WTa;return ["#EXT-X-MEDIA:TYPE=AUDIO",'GROUP-ID="group_' + k.groupId + '"','CHANNELS="2"','LANGUAGE="' + k.language + '"','NAME="' + k.name + '"',"DEFAULT=" + (l?"YES":"NO"),"AUTOSELECT=" + (l?"YES":"NO"),'URI="' + k.uri + '"'].join(", ");};d.prototype.Zwb=function(k){var l,m;l=k.Qa;m=["#EXTM3U","# " + k.sq,"#EXT-X-VERSION:8","#EXT-X-TARGETDURATION:" + k.dPb,"#EXT-X-MEDIA-SEQUENCE:0","#EXT-X-PLAYLIST-TYPE:VOD",'#EXT-X-DEFINE:NAME="U", VALUE="' + k.url + '"','#EXT-X-MAP:URI="{$U}",BYTERANGE="' + l[0].byteOffset + '@0"',"#EXT-X-PROGRAM-DATE-TIME:2021-07-20T08:19:00.000-07:00"];l.forEach(function(p,r){m.push("#EXTINF:" + p.duration.toFixed(3) + "," + p.Gb.toFixed(3));m.push("#EXT-X-BYTERANGE:" + p.c$b + "@" + p.byteOffset);m.push("{$U}&fi=" + r);});m.push("#EXT-X-ENDLIST");return m;};d.prototype.otc=function(k){var l,m;l=k.groupId;m=["#EXT-X-STREAM-INF:BANDWIDTH=" + k.I7,"AVERAGE-BANDWIDTH=" + k.L8b,"VIDEO-RANGE=" + (k.gxc?"PQ":"SDR"),"FRAME-RATE=" + k.framerate,'AUDIO="group_' + l + '"',"RESOLUTION=" + k.yo,'CODECS="' + k.dXc + "," + k.n8b + '"'];k.VTc && m.push('SUBTITLES="subs_' + l + '"');return m.join(", ");};d.prototype.Rsc=function(k){var l;l=k.duration;return ["#EXTM3U","# " + k.sq,"#EXT-X-VERSION:8","#EXT-X-TARGETDURATION:" + Math.floor(l),"#EXT-X-MEDIA-SEQUENCE:0","#EXT-X-PLAYLIST-TYPE:VOD",'#EXT-X-DEFINE:NAME="U", VALUE="' + k.url + '"','#EXT-X-MAP:URI="{$U}"',"#EXT-X-PROGRAM-DATE-TIME:2021-07-20T08:19:00.000-07:00","#EXTINF:" + l.toFixed(3),"#EXT-X-BYTERANGE:" + k.size + "@0","{$U}","#EXT-X-ENDLIST"];};d.prototype.Ssc=function(k){var l,m,p;l=k.WTa;m=k.language;p=k.uri;l=["#EXT-X-MEDIA:TYPE=SUBTITLES",'GROUP-ID="subs_' + k.groupId + '"','NAME="' + k.name + '"',"DEFAULT=" + (l?"YES":"NO"),"AUTOSELECT=" + (l?"YES":"NO"),"FORCED=" + (k.pp?"YES":"NO")];k.pwc && l.push('CHARACTERISTICS="public.accessibility.transcribes-spoken-dialog,public.accessibility.describes-music-and-sound"');l.push('LANGUAGE="' + m + '"');l.push('URI="' + p + '"');return l.join(", ");};d.prototype.Ura=function(k){return "data:application/vnd.apple.mpegurl;charset=utf-8," + encodeURIComponent(k.join("\n"));};a=d;b.BBa=a;b.BBa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb))],a);},78033:function(t,b,a){var n,c,f,g;function d(e,h){this.Nuc=e;this.log=h.wb("HeaderFetcherImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.HBa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(2571);g=a(32934);d.prototype.download=function(e){var k,l,m,p,r;function h(q){if(r < l.length - 1)return (!1,r++,k.Csb(l[r].url,m,p).catch(h));throw q;}k=this;l=e.urls;m=e.offset;p=e.length;r=0;return this.Csb(l[r].url,m,p).catch(h);};d.prototype.Csb=function(e,h,k){return this.Nuc.download({url:e,withCredentials:!1,responseType:g.ResponseType.OTb,tK:"hls_headers",Yy:!0,offset:h,length:k,Gw:g.q5},{I_:1});};a=d;b.HBa=a;b.HBa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.X9a)),t.__param(1,(0,n.v)(c.zb))],a);},487:function(t,b,a){var n,c,f;function d(g){this.wa=g.wb("HeaderParserImpl");}Object.defineProperty(b,"__esModule",{value:!0});b.IBa=void 0;t=a(22970);n=a(22674);c=a(91562);a=a(87386);d.prototype.parse=function(g,e,h){g=new c.um(this.wa,{mediaType:g},e,["sidx"]).parse();if(g.dB && g.Qa)return this.DKa(g.Qa,h);};d.prototype.DKa=function(g,e){var h,k,l,m,p;h=0;k=0;l=0;m=g.offset;p=[];g.fg.forEach(function(r,q){k+=r;l+=g.sizes[q];if(1E3 * k / g.O >= e || q === g.fg.length - 1)(p.push({duration:k / g.O,Gb:h / g.O,byteOffset:m,c$b:l}),h+=k,k=0,m+=l,l=0);});return p;};f=d;b.IBa=f;b.IBa=f=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.zb))],f);},20034:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r,q){this.th=l;this.rH=m;this.ci=p;this.Jc=r;this.Va=q;}Object.defineProperty(b,"__esModule",{value:!0});b.nO=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(87386);g=a(45118);e=a(98326);h=a(31850);k=a(97444);d.prototype.create=function(l){return new k.a5(this.th,this.rH,this.ci,this.Va,this.Jc,l);};a=d;b.nO=a;b.nO=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(f.zb)),t.__param(1,(0,n.v)(h.YE)),t.__param(2,(0,n.v)(g.Up)),t.__param(3,(0,n.v)(e.SCa)),t.__param(4,(0,n.v)(c.fe))],a);},97444:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r,q,u){var v;v=this;this.rH=m;this.ci=p;this.Va=r;this.Jc=q;this.sWa=this.jL=this.Fda=0;this.MR=!1;this.CH=function(){var w;w=v.Sca();w.prstate=v.XG();w.paustate=v.j.Kaa();w.midplayseq=v.sWa++;v.Jc.WZ(w);v.Vc(n.Sd.CH,void 0,k.hf | k.rz,w);};this.Gj=function(){v.Vc(n.Sd.Enb,void 0,k.hf | k.Su,{});};this.Op=function(w){v.eVa=v.getTime();v.fVa=w.vy;};this.B7=function(w){v.SUa=w.oldValue;};this.gua=function(w){w != v.MR && (v.F1a(v.MR,w),v.MR=w);};this.F1a=function(w,x){var y;y=v.j.Na;w={newstate:x?"Paused":"Playing",oldstate:w?"Paused":"Playing"};v.Jc.Zv(w,y.ye.value && y.ye.value.stream,y.We.value && y.We.value.stream);v.Vc(n.Sd.Oea,void 0,k.hf,w);};this.Gea=function(w){v.Vc(n.Sd.PNb,void 0,k.hf,{speedold:Math.floor(1E3 * w.oldValue),speed:Math.floor(1E3 * w.newValue)});};this.tI=function(w){var x,y,A;y=v.j.Na;A=y.ka.Qd;if(w.newValue || A && A.Gq() && !A.pp())(w=null !== (x=w.newValue) && void 0 !== x?x:A,x=v.lR(w),w=v.lR(v.fVa),x={switchdelay:(0,c.Zh)(v.getTime() - v.eVa),track:x,oldtrack:w},v.Jc.Zv(x,y.ye.value && y.ye.value.stream,y.We.value && y.We.value.stream),v.Vc(n.Sd.vPb,void 0,k.hf,x));};this.DYa=function(w,x){var y;y=v.j.Na;w={waittime:(0,c.Zh)(w),abortedevent:"resumeplay",resumeplayreason:x};v.Jc.Zv(w,y.$f.value,y.fj.value);v.Vc(n.Sd.kM,void 0,k.hf | k.Su,w);};this.Du=function(w,x,y){var A;A=y.K_a;y=y.zKb;w={playdelay:(0,c.Zh)(w),reason:A,intrplayseq:v.jL - 1,skipped:x};"repos" === A && (w.prstate=!0 === v.j.Zj.value?"playing":"paused",y === e.Mc.V3 && (w.repos_reason="missing_segments"));v.Vc(n.Sd.Du,void 0,k.hf | k.cx,w);};this.jLa=function(){var w,x,y,A;x=v.TQ(v.j.Na.ka.he,v.j.Na.fj.value.ob);y=v.mH;A=null === (w=v.SUa) || void 0 === w?void 0:w.ob;w=v.TQ(y,A);v.Vc(n.Sd.bnb,void 0,k.hf,{switchdelay:(0,c.Zh)(v.getTime() - v.TUa),track:x,oldtrack:w});};this.kq=function(w){v.TUa=v.getTime();v.mH=w.lw;};this.EYa=function(){var w,x,y;w=v.j.Na;x={abortedevent:"startplay",trackid:w.Hn,prstate:v.XG(),paustate:v.j.Kaa()};try{y=(0,f.HZ)();y && (x.pdltime=y);(0,c.Gf)(x,w.Ff,{prefix:"sm_"});}catch(A){}v.Jc.lqa(x,w);v.Jc.VZ(x,!1,w.ka.he,w);v.Jc.XZ(x,!1,w.ka.Lh,w);v.Jc.Zv(x,w.$f.value,w.fj.value);v.uR(x);v.Vc(n.Sd.kM,void 0,k.hf | k.rz | k.Su,x);};this.hG=function(w,x,y,A){w={moff:(0,c.hs)(y),moffms:(0,c.Zh)(y),vbitrate:x.bitrate,vbitrateold:w.bitrate,vdlid:x.ob,vdlidold:w.ob,vheight:x.height,vheightold:w.height,vwidth:x.width,vwidthold:w.width,bw:A};v.Vc(n.Sd.hG,void 0,0,w);};this.CM=function(w,x,y){w={moffold:(0,c.hs)(w),reposseq:v.Fda++,prstate:v.XG(),paustate:v.j.Kaa()};v.Jc.Zv(w,y && y.stream,x && x.stream);v.Vc(n.Sd.CM,void 0,k.hf,w);};this.Kp=function(w){var x,y,A,z,B,C,D,F,H;C=w.Na;D={playdelaysdk:(0,c.Zh)(v.j.Y7()),applicationPlaydelay:(0,c.Zh)(v.j.SLa()),playdelay:(0,c.Zh)(v.j.TLa()),trackid:C.Hn,bookmark:(0,c.Zh)(C.mq || 0),pbnum:C.index};D.audiotrackinfo=v.TQ(v.j.Na.ka.he,v.j.Na.We.value?v.j.Na.We.value.stream?v.j.Na.We.value.stream.ob:void 0:void 0);F=v.j.Na.ka.Lh;H=null === (y=null === (x=v.j.Na.ye.value) || void 0 === x?void 0:x.stream) || void 0 === y?void 0:y.ob;D.videotrackinfo=v.zSa(F,H);D.texttrackinfo=v.lR(v.j.Na.ka.Qd);v.j.Gj && (D.blocked=v.j.Gj);D.initvbitrate=v.j.qaa;v.Jc.yTa(D);v.Jc.rzb(D);D.esnSource=null === (A=Ba._cad_global.device) || void 0 === A?void 0:A.$na;v.yzb(D,C);D.pdltime=(0,f.HZ)();(0,c.Gf)(D,C.Ff,{prefix:"sm_"});D.ttTrackFields=null === (z=C.ka.Qd) || void 0 === z?void 0:z.Ki;D.itsxheaac=MediaSource.isTypeSupported('audio/mp4; codecs="mp4a.40.42"');v.Jc.VZ(D,!0,C.ka.he,C);v.Jc.XZ(D,!0,C.ka.Lh,C);D.packageId=null === (B=C.S) || void 0 === B?void 0:B.Aa.Gs;v.Jc.WZ(D);v.Jc.lqa(D,C);v.uR(D);v.Vc(n.Sd.Kp,w.Mj,k.hf | k.cx | k.rz | k.aO | k.Su,D);};this.Lv=function(){var w,x,y;w=v.j;x=w.Na;w=w.Mj;y=v.Sca();y.paustate=!v.j.by();y.muted=v.j.jUa();y.endreason=w?"error":v.j.$Ta()?"ended":"stopped";v.Jc.VZ(y,!1,x.ka.he,x);v.Jc.XZ(y,!1,x.ka.Lh,x);v.Jc.WZ(y);v.uR(y);v.Vc(n.Sd.Lv,w,k.hf | k.cx | k.rz | k.aO | k.Su,y);};this.g_a=function(w,x,y){var A;A=v.j.Na.We;w={moff:(0,c.hs)(y),moffms:(0,c.Zh)(y),vdlidold:w.ob,vbitrateold:w.bitrate};v.Jc.Zv(w,x,A.value && A.value.stream);v.Vc(n.Sd.zda,void 0,0,w);};this.XG=function(){var w;w=v.j.Zb.value;return w === e.Nb.rg?"playing":w === e.Nb.Oi?"paused":w === e.Nb.Zw?"ended":"waiting";};this.wa=l.wb("LogblobBuilderImpl");this.j=u;}Object.defineProperty(b,"__esModule",{value:!0});b.a5=void 0;n=a(18169);c=a(3887);f=a(52569);g=a(36129);e=a(85001);h=a(5021);d.prototype.getTime=function(){return this.Va.yc().na(h.ya);};d.prototype.aSa=function(){return this.getTime() - this.j.Na.Xj.na(h.ya);};d.prototype.TQ=function(l,m){return l?{trackId:l.trackId,bcp47:l.Ig,downloadableId:m,rank:l.Ac,chan:l.channels}:{};};d.prototype.zSa=function(l,m){return l?{id:l.trackId,downloadableId:m,rank:l.Ac}:{};};d.prototype.lR=function(l){return l?{trackId:l.trackId,bcp47:l.Ig,downloadableId:l.ob,rank:l.Ac,isImageBased:l.Fq,profile:l.profile}:{};};d.prototype.yzb=function(l,m){var p;if(m=null === (p=m.ka.Lh) || void 0 === p?void 0:p.streams)(l.maxbitrate=(0,f.wga)(m.map(function(r){return r.bitrate;})),l.maxresheight=(0,f.wga)(m.map(function(r){return r.height;})));};d.prototype.uR=function(l){l.cachedManifest="notcached";l.cachedLicense="notcached";l.usedldl="false";};d.prototype.Sca=function(){var l,m,p,r;l=this.j.Na;m=l.Cp;p={totaltime:(0,c.hs)(m.Uv()),totalcontenttime:(0,c.hs)(m.P$()),reposcount:this.Fda,intrplaycount:this.jL};p.playqualvideo=JSON.stringify({numskip:0,numlowqual:0});r=l.$f.value;r && (p.videofr=r.framerate.toFixed(3));(r=m.DQa()) && (p.abrdel=r);(r=m.Xpa() && m.Nvb()) && (p.tw_vmaf=r);(m=m.Lvb()) && (0,c.Gf)(p,m);p.rbfrs=this.jL;this.yzb(p,l);return p;};d.prototype.Vc=function(l,m,p,r){var q,u,v;q=this;m && (0,g.nha)(null === m || void 0 === m?void 0:m.errorCode,null === m || void 0 === m?void 0:m.Ta,this.aSa(),void 0) && (u="info");v=this.j.Na;this.jKa(r,m,p);m=u || (m?"error":"info");r=this.rH.Tt(l,m,r,v);this.ci.Vc(r);"error" !== m && l !== n.Sd.Lv || this.ci.flush(!1).catch(function(){q.wa.debug("Failed to flush the logblobs");});};d.prototype.jKa=function(l,m,p){var r;r=this.j.Na;this.Jc.qzb(l,r);p & k.hf && this.Jc.uzb(l,r,!1);p & k.cx && this.Jc.wzb(l,r);p & k.rz && this.Jc.xzb(l,this.j.zq());m && p & k.aO && this.Jc.szb(l,r,m);p & k.Su && this.Jc.yTa(l);};b.a5=d;(function(l){l[l.hf=1]="MOFF";l[l.cx=2]="PRESENTEDSTREAMS";l[l.rz=4]="SCREEN";l[l.aO=8]="FATALERROR";l[l.Su=16]="BROWSERINFO";})(k || (k={}));},27134:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r,q){this.ci=l;this.config=m;this.Ma=p;this.Va=r;this.IVa=q;}Object.defineProperty(b,"__esModule",{value:!0});b.oO=void 0;t=a(22970);n=a(22674);c=a(81918);f=a(30869);g=a(4203);e=a(45118);h=a(10242);k=a(5522);d.prototype.create=function(l){return new k.c5(l,this.ci,this.config,this.Va,this.IVa.create(l));};a=d;b.oO=a;b.oO=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(e.Up)),t.__param(1,(0,n.v)(g.Hc)),t.__param(2,(0,n.v)(f.Li)),t.__param(3,(0,n.v)(c.fe)),t.__param(4,(0,n.v)(h.Z4))],a);},5522:function(t,b,a){var n,c,f,g;function d(e,h,k,l,m){var p;p=this;this.j=e;this.ci=h;this.config=k;this.Va=l;this.jb=m;this.e8=function(){p.ph();p.j.Na.Wk.removeListener(p.tI);p.j.Na.ka.removeListener(p.jb.Op);p.j.Na.ka.removeListener(p.kq);p.j.Na.fj.removeListener(p.jb.B7);p.j.Zj.removeListener(p.qIb);p.j.n1.removeListener(p.Ms);p.j.Na.ye.removeListener(p.$ca);p.j.Zb.removeListener(p.JC);p.j.Zb.removeListener(p.MX);p.j.Na.$f.removeListener(p.bga);p.j.Na.playbackRate.removeListener(p.jb.Gea);p.j.removeEventListener(f.Za.closed,p.e8);p.j.removeEventListener(f.Za.Pla,p.jb.Gj);};this.MX=function(){p.j.Zb.value === f.Nb.rg && (p.j.Zb.removeListener(p.MX),p.iB());};this.tI=function(r){p.tw && p.jb.tI(r);};this.Ms=function(r){p.tw && void 0 !== r.newValue && (p.x1 && p.Qu && p.jb.DYa(p.getTime() - p.Qu,p.x1.K_a),p.x1={K_a:"repos",zKb:r.newValue},p.jb.CM(r.newValue,p.j.Na.We.value,p.j.Na.ye.value),p.Qu=p.getTime(),(0,c.Xh)(p.JC));};this.qIb=function(r){p.tw && p.jb.gua(!r.newValue);};this.kq=function(r){r.lw && (p.mH=r.lw,p.jb.kq(r),p.x1={K_a:"repos",zKb:f.Mc.P5},p.Qu=p.getTime(),(0,c.Xh)(p.JC));};this.JC=function(){var r;if(p.Qu && p.x1 && p.j.Zb.value !== f.Nb.mh){r=p.getTime() - p.Qu;p.jb.Du(r,!1,p.x1);p.mH && p.mH != p.j.Na.ka.he && p.jb.jLa();p.Qu=void 0;p.x1=void 0;}};this.iB=function(){p.tw || (p.tw=!0,p.jb.Kp(p.j),p.HTa(),p.config().rqa && (p.dH=Ba.setTimeout(function(){p.ci.flush(!1).catch(function(){return p.log.warn("failed to flush log batcher on initialLogFlushTimeout");});p.dH=void 0;},p.config().rqa)));};this.ph=function(){p.dH && (Ba.clearTimeout(p.dH),p.dH=void 0);p.Gfa && p.Gfa();p.tw?p.jb.Lv():p.j.Mj?p.jb.Kp(p.j):p.jb.EYa();};this.bga=function(r){r.oldValue && r.Xm && r.Xm.NP && p.jb.hG(r.oldValue,r.newValue,r.Xm.NP,r.Xm.I7);};this.$ca=function(r){var q;if(r.newValue){q=r.newValue.stream;p.NR != q && (p.NR && q && p.jb.g_a(p.NR,q,r.newValue.NX.startTime),p.NR=q);}};this.Iwa();}Object.defineProperty(b,"__esModule",{value:!0});b.c5=void 0;n=a(5021);c=a(32219);f=a(85001);g=a(26388);d.prototype.Iwa=function(){this.j.addEventListener(f.Za.closed,this.e8);this.j.addEventListener(f.Za.Pla,this.jb.Gj);this.j.Na.Wk.addListener(this.tI);this.j.Na.ka.addListener([g.u.Ca],this.jb.Op);this.j.Na.ka.addListener([g.u.X],this.kq);this.j.Na.fj.addListener(this.jb.B7);this.j.Zj.addListener(this.qIb);this.j.n1.addListener(this.Ms);this.j.Na.ye.addListener(this.$ca);this.j.Zb.addListener(this.JC);this.j.Zb.addListener(this.MX);this.j.Na.$f.addListener(this.bga);this.j.Na.playbackRate.addListener(this.jb.Gea);};d.prototype.getTime=function(){return this.Va.yc().na(n.ya);};d.prototype.HTa=function(){var e,h,k;e=this;k=[];this.config().jEb && (this.config().kEb.forEach(function(l){k.push(Ba.setTimeout(e.jb.CH,l));}),this.config().psa && (h=Ba.setInterval(this.jb.CH,this.config().psa)),this.Gfa=function(){k.forEach(function(l){Ba.clearTimeout(l);});h && Ba.clearInterval(h);});};b.c5=d;},15850:function(t,b,a){var n,c,f,g,e;function d(h,k){var m;function l(){m.tYa.then(function(p){m.wa.trace("Unloading PBO Playdata Services");p.close();});g.xe.removeListener(g.hn,l);}m=this;this.EHb=k;this.bIb=!1;this.tYa=k();this.wa=h.wb("PlayerPlaydataMonitorImpl");g.xe.addListener(g.hn,l);}Object.defineProperty(b,"__esModule",{value:!0});b.yFa=void 0;t=a(22970);n=a(22674);c=a(87386);f=a(96687);g=a(37509);e=a(85001);d.prototype.hm=function(h,k){var l;l=this;this.tYa.then(function(m){m.hm(k,!0,function(p){return h.close(p);});m.D1a(k);h.addEventListener(e.Za.UYa,function(){h.by()?l.bIb?m.hMb(k).catch(function(p){(p=p.lM) && h.close(p);}):l.bIb=!0:m.gMb(k).catch(function(p){(p=p.lM) && h.close(p);});});h.addEventListener(e.Za.Op,function(){m.ewa(k).catch(function(p){(p=p.lM) && h.close(p);});});h.addEventListener(e.Za.kq,function(){m.ewa(k).catch(function(p){(p=p.lM) && h.close(p);});});});};d.prototype.Qea=function(h){return this.tYa.then(function(k){k.nOb();return k.Qea(h).catch();});};a=d;b.yFa=a;b.yFa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.zb)),t.__param(1,(0,n.v)(f.v5))],a);},68272:function(t,b,a){var n,c,f,g;function d(e){this.qWa={};this.oqa={};this.jra=-1;this.S1a=new f.wc(null);this.iZa=new f.wc(null);this.wa=e.wb("StreamChangeDetector");}Object.defineProperty(b,"__esModule",{value:!0});b.UGa=void 0;t=a(22970);n=a(22674);c=a(45247);f=a(81734);a=a(87386);d.prototype.Tb=function(e,h,k){var l;l=this;e.forEach(function(m){m.stream.urls.forEach(function(p){l.qWa[p.url]=[m,p.Kg];});});this.$Na=h;this.jhc=k;new PerformanceObserver(function(m){l.RVc(m.getEntries());}).observe({entryTypes:["resource"],buffered:!1});};d.prototype.zMb=function(e){var h,k,l;if(this.$Na){k=this.fpa(e);if(k !== this.jra){for(this.jra=k;0 <= k && !this.oqa[k];)k--;l=Ea(null !== (h=this.oqa[k]) && void 0 !== h?h:[this.$Na,this.jhc]);h=l.next().value;l=l.next().value;this.wa.debug("Setting time to " + e + ", using metadata from fragment " + k + " for " + ((0,c.AH)(h.track.type) + " track with bitrate ") + (h.stream.bitrate + " from cdn " + l));e=h.Qa[this.jra];k=e.Gb;this.iZa.set({stream:h,NX:{startTime:Math.floor(1E3 * k),endTime:Math.floor(1E3 * (k + e.duration))},Th:l});}}};d.prototype.fpa=function(e){var h,k,l,m,p;h=this.$Na.Qa;e/=1E3;k=0;l=h.length - 1;if(e >= h[l].Gb)return l;for(;l >= k;){m=k + Math.floor((l - k) / 2);p=h[m];if(e < p.Gb)l=m - 1;else if(e >= p.Gb + p.duration)k=m + 1;else return m;}return h.length - 1;};d.prototype.RVc=function(e){var h;h=this;e.filter(function(k){return "video" === k.initiatorType;}).forEach(function(k){var l,m,p;l=k.name.indexOf("&fi=");if(0 < l){m=k.name.substring(0,l);l=Number(k.name.substring(l + 4));if(h.qWa[m]){p=Ea(h.qWa[m]);k=p.next().value;p=p.next().value;m && !Number.isNaN(l) && k && (h.oqa[l] && (h.jra=-1),h.oqa[l]=[k,p],m=k.Qa[l].Gb,!1,h.S1a.set(k,{NP:Math.floor(1E3 * m),Th:p}));}}});};g=d;b.UGa=g;b.UGa=g=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.zb))],g);},25050:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v;function d(w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P){var I,O,Q;I=this;this.Uca=x;this.AA=y;this.Va=A;this.uh=z;this.jc=B;this.Aba=C;this.tIc=D;this.eIb=F;this.Vxa=H;this.Jla=E;this.Ma=G;this.D_=J;this.config=L;this.XJ=K;this.K=M;this.Yj=P;this.jba=new l.wc(!0);this.Zj=new l.wc(!1);this.Zs=new l.wc(!1);this.ended=new l.wc(!1);this.cma=new l.wc(0);this.Zb=new l.wc(n.Nb.mh);this.n1=new l.wc(void 0);this.Qh=new v.AbortController();this.loaded=this.Mea=this.closed=!1;this.JIb=function(T,U){return function(X){var Y,W,Z,aa;Y=X.newValue;W=Y.Th;X=Y.NX;Z=Y.stream;Y=T.streams.find(function(ca){return ca.bitrate === Z.stream.bitrate;});aa=I.Na.Uh.find(function(ca){return ca.id === W;});I.log.info("Presenting " + Y.type + " request with bitrate " + Y.bitrate + ", track " + (T.trackId + " [" + X.startTime + "..." + X.endTime + "]"));U.set({stream:Y,NX:Object.assign(Object.assign({},X),{Qcc:X.startTime,Spb:X.endTime}),Tc:aa});};};this.EOb=function(T,U,X){return function(Y){var W;W=T.streams.find(function(Z){return Z.bitrate === Y.newValue.stream.bitrate;});I.log.info("Streaming " + W.type + " stream with bitrate " + W.bitrate + ", track " + T.trackId);U.set(W,{NP:Y.Xm.NP,I7:void 0});W=I.Na.Uh.filter(function(Z){return Z.id === Y.Xm.Th;})[0];X.set(W);};};this.Pub=new Set();this.log=w.wb("HLSVideoPlayer");this.Ga=(0,c.createElement)("VIDEO","position:absolute;width:100%;height:100%");this.Ga.playsInline=this.config.rIb;this.Na=this.Uca(f.pz.index++,M.R,M.id,null !== (O=M.Cb) && void 0 !== O?O:{},this.AA.nG(),this.Va.yc(),!1,void 0,function(){return I.fD();});this.Na.mediaTime.set(null !== (Q=this.Na.mq) && void 0 !== Q?Q:0);this.QU();this.m3b=this.D_.create(this);this.m3b;this.load();}Object.defineProperty(b,"__esModule",{value:!0});b.kib=void 0;n=a(85001);c=a(52569);f=a(13044);g=a(72639);e=a(24735);h=a(36129);k=a(63156);l=a(81734);m=a(5021);p=a(32687);r=a(45266);q=a(3887);u=a(26388);v=a(91176);d.prototype.tTc=function(){return !!this.Ga.canPlayType && ("" !== this.Ga.canPlayType("application/vnd.apple.mpegURL") || "" !== this.Ga.canPlayType("audio/mpegurl"));};d.prototype.QU=function(){var w;w=this;this.Ga.addEventListener("loadedmetadata",function(){w.Mb(n.Za.MCb);w.Mb(n.Za.LCb);w.Mb(n.Za.kq);w.Mb(n.Za.Kla);w.Mb(n.Za.Op);w.Mb(n.Za.OB);});this.Ga.addEventListener("error",function(x){x=w.Yj(h.da.odb,x);w.close(x);});this.Ga.addEventListener("timeupdate",function(){w.ended.set(!1);w.Na.mediaTime.set(w.fD());w.kOa();w.Mb(n.Za.Wt);w.Mb(n.Za.DQb);});this.Ga.addEventListener("durationchange",function(){w.Mb(n.Za.GOa);});this.Ga.addEventListener("resize",function(){w.Mb(n.Za.P3a);});this.Ga.addEventListener("playing",function(){w.kOa();w.Zs.set(!1);w.Zj.set(!0);w.ended.set(!1);w.Zb.set(n.Nb.rg);});this.Ga.addEventListener("pause",function(){w.Zj.set(!1);w.Zs.set(!1);w.Zb.set(n.Nb.Oi);});this.Ga.addEventListener("waiting",function(){w.Zb.set(n.Nb.mh);});this.Ga.addEventListener("stalled",function(){w.Zs.set(!0);});this.Ga.addEventListener("seeking",function(){w.Zs.set(!1);w.n1.set(w.Na.mediaTime.value);w.Zb.set(n.Nb.mh);});this.Ga.addEventListener("seeked",function(){void 0 !== w.n1.value && (w.Na.Cp.fXa(w.n1.value,w.fD()),w.n1.set(void 0));w.Zb.set(w.by()?n.Nb.rg:n.Nb.Oi);});this.Ga.addEventListener("progress",function(){w.Mb(n.Za.$la);w.DVc();});this.Ga.addEventListener("ended",function(){w.Zb.set(n.Nb.Zw);w.Zs.set(!1);w.Zj.set(!1);w.ended.set(!0);});this.Ga.addEventListener("volumechange",function(){w.Mb(n.Za.aSb);w.Mb(n.Za.SEb);});this.Zj.addListener(function(){w.Mb(n.Za.UYa);w.Mb(n.Za.AHb);w.MX();});this.cma.addListener(function(){w.Mb(n.Za.xX);});this.Zs.addListener(function(){w.Mb(n.Za.xX);});this.jba.addListener(function(){w.MX();});this.ended.addListener(function(){w.Mb(n.Za.rtb);});this.Na.playbackRate.addListener(function(x){w.Ga.playbackRate=x.newValue;});};d.prototype.MX=function(){!this.by() || this.jba.value || this.Mea || this.gnb || (this.Mea=!0,this.Na.eH=this.Ma.hI,this.eIb.hm(this,this.Na));};d.prototype.Y7=function(){return this.Tca - (this.Na.Xj.na(m.ya) + this.Va.nH.na(m.ya));};d.prototype.QQ=function(){var w;w=this.Na.qb.QB;return (0,p.pc)(w)?w:this.Na.Xj.na(m.ya) + this.Va.nH.na(m.ya);};d.prototype.SLa=function(){return this.Ma.Mg.na(m.ya) - this.QQ();};d.prototype.TLa=function(){return this.Tca - this.QQ();};d.prototype.DVc=function(){var w;w=this.Ga.readyState <= k.Uu.VI.HAVE_METADATA?0:this.Ga.readyState <= k.Uu.VI.HAVE_CURRENT_DATA?.5:1;1 === w && (this.Tca=this.Ma.Mg.na(m.ya),this.jba.set(!1),this.PPa(n.Za.loaded));this.cma.set(w);};d.prototype.kOa=function(){var w;w=this.fD();this.Vxa.zMb(w);this.Jla.zMb(w);};d.prototype.mea=function(){var w;w=this;this.Na.fh("ats");return this.uh.kp({Ha:this.Na.Ha,qb:this.Na.qb,J:this.Na.R,$t:g.Wp.bja,Hi:e.pr.yr},this.Qh.signal).then(function(x){var A;function y(z){var B;B=z;z && z.Gq() && !z.pp() && (B=null);w.Na.Wk.set(B);}w.Na.fh("at");A=w.Aba.create({}).mHb(x);w.Na.S=x;w.Na.Yc=A;w.Ga.audioTracks.addEventListener("addtrack",function(){w.fRb(w.Na.ka.he);});w.Ga.audioTracks.addEventListener("change",function(){for(var z,B,C={},D=Ea(w.Ga.audioTracks),F=D.next();!F.done;(C={X2:C.X2},F=D.next()))(C.X2=F.value,C.X2.enabled && C.X2.label !== (null === (z=w.Na.ka.he) || void 0 === z?void 0:z.displayName) && (!1,F=null !== (B=w.Na.Yk.find((function(H){return function(E){return E.displayName === H.X2.label;};})(C))) && void 0 !== B?B:null,w.Na.ka.yB(F)));});w.Na.ka.addListener([u.u.X],function(z){w.fRb(z.ry);w.Mb(n.Za.kq);w.Mb(n.Za.OB);});w.Ga.textTracks.addEventListener("addtrack",function(){w.gRb(w.Na.ka.Qd);});w.Ga.textTracks.addEventListener("change",function(){var H;for(var z,B,C=w.Ga.textTracks,D={},F=0;F < C.length;(D={Y2:D.Y2},F++))if((D.Y2=C[F],"showing" === D.Y2.mode && D.Y2.label !== (null === (z=w.Na.ka.Qd) || void 0 === z?void 0:z.displayName))){!1;H=null !== (B=w.Na.vj.find((function(E){return function(G){return G.displayName === E.Y2.label;};})(D))) && void 0 !== B?B:null;w.Na.ka.Jp(H);y(H);}});w.Na.ka.Jp(A.O8);y(A.O8);w.Na.ka.addListener([u.u.Ca],function(z){w.gRb(z.so);w.Mb(n.Za.Op);});return w.tIc.build(x,function(z){return w.Na.fh(z);});}).then(function(x){var y,A,z,B,C,D,F,H,E,G,J,L,K,M,P;y=x.NAc;A=x.wac;x=x.ESc;z=x.audio;B=x.Grb;C=x.video;D=w.Na;F=D.fj;H=D.ka;E=D.Yk;G=D.$f;x=D.mq;J=D.ye;L=D.We;K=D.Cp;D=D.Yc;D.Yk=E.filter(function(I){return z.find(function(O){return O.track.Ue === I.trackId;});});H.b1a(D.S8);H.yB(E.find(function(I){return I.trackId === B;}));D=C[0];M=D.stream;E=z.find(function(I){return I.track.Ue === B;});P=E.stream;w.qaa=M.bitrate;w.Vxa.iZa.addListener(w.JIb(H.Lh,J));w.Vxa.S1a.addListener(w.EOb(H.Lh,G,w.Na.Tc[u.u.U]));G=A.get(M.$g).Y0.Kg;w.Vxa.Tb(C,D,G);w.Jla.iZa.addListener(w.JIb(H.he,L));w.Jla.S1a.addListener(w.EOb(H.he,F,w.Na.Tc[u.u.X]));A=A.get(P.$g).Y0.Kg;w.Jla.Tb(z,E,A);w.Ga.src=y;w.Ga.currentTime=(null !== x && void 0 !== x?x:0) / 1E3;w.Ga.load();K.fXa(0,x && 0 < x?x:1);}).catch(function(x){var y,A;if(x instanceof Error){A=(0,q.jj)(x);w.log.error("uncaught exception",x,A);}w.close(w.Yj(null !== (y=x.code) && void 0 !== y?y:h.da.Ohb,x));});};d.prototype.cyb=function(){return [];};d.prototype.gRb=function(w){var A;for(var x=this.Ga.textTracks,y=0;y < x.length;y++){A=x[y];A.label === w.displayName && "showing" !== A.mode && (!1,A.mode="showing");A.label !== w.displayName && "showing" === A.mode && (!1,A.mode="hidden");}};d.prototype.fRb=function(w){for(var x=Ea(this.Ga.audioTracks),y=x.next();!y.done;y=x.next())(y=y.value,y.label !== w.displayName || y.enabled || (!1,y.enabled=!0),y.label !== w.displayName && y.enabled && (!1,y.enabled=!1));};d.prototype.cn=function(){};d.prototype.ho=function(){};d.prototype.fD=function(){return Math.floor(1E3 * this.Ga.currentTime);};d.prototype.PG=function(){return this.fD();};d.prototype.lA=function(){return this.fD();};d.prototype.NK=function(){return Math.floor(1E3 * this.Ga.duration);};d.prototype.dxb=function(){return this.K.R;};d.prototype.rA=function(){return this.Na.Ha;};d.prototype.qxb=function(){var w;return null === (w=this.Na.S) || void 0 === w?void 0:w.Aa.Xd;};d.prototype.zq=function(){return this.Ga;};d.prototype.ws=function(){return null === this.Nj();};d.prototype.by=function(){return this.Zj.value;};d.prototype.Kaa=function(){return !this.Zj.value;};d.prototype.$Ta=function(){return this.Ga.ended;};d.prototype.Nj=function(){return 1 !== this.cma.value?{stalled:this.Zs.value,progress:this.cma.value,progressRollback:!1}:null;};d.prototype.getError=function(){var w,x;return null !== (x=null === (w=this.Mj) || void 0 === w?void 0:w.ufa()) && void 0 !== x?x:null;};d.prototype.Svb=function(){return 1 === this.Ga.buffered.length?1E3 * this.Ga.buffered.end(0):null;};d.prototype.jyb=function(){return {width:this.Ga.videoWidth,height:this.Ga.videoHeight};};d.prototype.jUa=function(){return this.Ga.muted;};d.prototype.myb=function(){return this.Ga.volume;};d.prototype.MMb=function(w){this.Ga.muted=w;};d.prototype.cNb=function(w){this.Ga.volume=w;};d.prototype.addEventListener=function(w,x,y){this.jc.addListener(w,x,y);};d.prototype.removeEventListener=function(w,x){this.jc.removeListener(w,x);};d.prototype.load=function(){var w;w=this;this.loaded || (this.loaded=!0,this.XJ.iba(function(x){w.tTc()?x.success?w.mea():w.close(w.Yj(x.errorCode || h.da.OBa,x)):w.close(w.Yj(h.da.uWb));}));};d.prototype.close=function(w){if(this.closed)return Promise.resolve();this.Na.mediaTime.set(this.fD());this.kOa();this.Na.v8=this.PG();this.closed=!0;this.Ga.removeAttribute("src");this.Ga.load();null === w || void 0 === w?void 0:w.OMb(!this.jba.value);this.Mj=w;this.Qh.abort();w && this.Mb(n.Za.error,w.ufa());this.Mb(n.Za.closed);return this.eIb.Qea(this.Na);};d.prototype.play=function(){var w,x;w=this;x=this.Ga.play();this.gnb=!1;x && x.then(function(){w.PPa(n.Za.hnb);}).catch(function(y){w.Mb(n.Za.xX);"NotAllowedError" === y.name && (w.log.warn("Playback is blocked by the browser settings",y),w.gnb=!0,w.Gj=!0,w.PPa(n.Za.Pla,{player:{play:function(){return w.play();}}}));});};d.prototype.Mb=function(w,x,y){x=x || ({});x.target=this;this.jc.qd(w,x,!y);};d.prototype.PPa=function(w,x){this.Pub.has(w) || (this.Pub.add(w),this.Mb(w,x,void 0));};d.prototype.pause=function(){this.Ga.pause();};d.prototype.zHb=function(){this.pause();};d.prototype.seek=function(w){this.Ga.currentTime=w / 1E3;};d.prototype.Azb=function(w){this.close(this.Yj(h.da.p8a,h.Y.yh,w));};d.prototype.GZ=function(){return this.Na.playbackRate.value;};d.prototype.nwa=function(w){this.Na.playbackRate.set(w);};d.prototype.Kvb=function(){var w;w=this;return this.Na.Yk.map(function(x){return w.Vv(x);});};d.prototype.nSa=function(w){var x;x=this;return this.E$(w).map(function(y){return x.Vv(y);});};d.prototype.Jvb=function(){var w;w=this.Na.ka.he;return w && this.Vv(w);};d.prototype.mSa=function(){var w;w=this.Na.ka.Qd;return w && this.Vv(w);};d.prototype.yB=function(w){if((w=this.G9(w)) && w.cf)return (this.Na.ka.yB(w),Promise.resolve());this.log.error("Invalid setAudioTrack call");return Promise.reject(Error("Invalid setAudioTrack call"));};d.prototype.Jp=function(w){var x,y;x=this;y=this.Na.vj.find(function(A){return x.Vv(A) === w;});if(y && y.cf)return (this.Na.ka.Jp(y),this.Na.Wk.set(y),Promise.resolve());this.log.error("Invalid setTextTrack call");return Promise.reject(Error("Invalid setTextTrack call"));};d.prototype.Wwb=function(){var w;return this.w$(this.Na.Yk,null === (w=this.Na.S) || void 0 === w?void 0:w.Aa.MDb);};d.prototype.xRa=function(w){var x;return this.w$(this.E$(w),null === (x=this.Na.S) || void 0 === x?void 0:x.Aa.NDb);};d.prototype.Vv=function(w){var x;x=w.BZa=w.BZa || ({trackId:w.trackId,bcp47:w.Ig,displayName:w.displayName,trackType:w.aj,rawTrackType:w.yM,channels:w.channels});this.qUa(w) && (x.isNative=w.isNative,x.surroundFormatLabel=w.Zea);this.rUa(w) && (x.isNoneTrack=w.Gq(),x.isForcedNarrative=w.pp(),x.isImageBased=w.Fq);x.subType=w.hU;x.variant=w.variant;return x;};d.prototype.qUa=function(w){return "undefined" !== typeof w.isNative;};d.prototype.rUa=function(w){return "undefined" !== typeof w.Gq && "undefined" !== typeof w.pp;};d.prototype.G9=function(w){var x;x=this;return w && this.Na.Yk.find(function(y){return x.Vv(y) === w;});};d.prototype.E$=function(w){var x;w=this.G9(w) || this.Na.ka.he;return null !== (x=null === w || void 0 === w?void 0:w.vj) && void 0 !== x?x:[];};d.prototype.w$=function(w,x){var y;y=w.length - 1;if("number" !== typeof x)return y;w=w.findIndex(function(A){return A.Ac > x;});return -1 === w?y:w - 1;};d.prototype.Exa=function(w){this.Na.qb=(0,r.osa)(this.Na.qb,w);};d.prototype.Vl=function(w){if(w !== this.Na.L)throw (!1,Error("Unknown segmentId " + w));return this.Na;};d.prototype.rxb=function(){return this.Na.qb;};d.prototype.vKa=function(){!1;};d.prototype.jKb=function(){!1;};d.prototype.MD=function(){!1;};d.prototype.zS=function(){!1;};d.prototype.T$=function(){!1;return Promise.reject();};d.prototype.cSa=function(){return {};};d.prototype.Voa=function(){};d.prototype.Ivb=function(){return {};};d.prototype.E0a=function(){};d.prototype.Y1=function(){};d.prototype.iAb=function(){return !1;};d.prototype.hwb=function(){return {addEventListener:function(){},removeEventListener:function(){},getGroups:function(){return [];},register:function(){},notifyUpdated:function(){},getModel:function(){},getTime:function(){return 0;}};};d.prototype.TY=function(){!1;return Promise.resolve({success:!0});};d.prototype.fyb=function(){!1;};d.prototype.O$=function(){!1;};d.prototype.R1=function(){!1;};d.prototype.$0a=function(){!1;};d.prototype.HCb=function(){!1;};d.prototype.Cvb=function(){!1;return Promise.reject();};d.prototype.$Hb=function(){!1;return Promise.reject();};d.prototype.rJb=function(){!1;return Promise.reject();};d.prototype.wl=function(){!1;return Promise.reject();};d.prototype.dT=function(){!1;};b.kib=d;},41893:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m,p,r,q,u,v,w,x,y,A,z,B,C,D){var F;F=this;this.Of=l;this.ec=m;this.jc=r;this.jB=u;this.i8=v;this.Dvb=w;this.config=y;this.Yj=z;this.K=B;this.j=A.create(B.R,B.Xj,x,C,D,B.Cb,B.id,B.S);this.j.background.set(!0);this.log=p.wb("VideoPlayer",this.j);this.HHb=[];this.LB=[];this.ended=!1;this.QU();this.j.state.addListener(function(H){H.newValue === c.Fc.zf && F.Mb(c.Za.xUa,{movieId:B.R});});this.j.qb.Pg && (this.uX=q.Iec(this,this.j),this.j.addEventListener(c.ja.NM,function(H){H=H.position.segmentId;F.Ayc !== H && (F.Ayc=H,F.Mb(c.Za.JOc,{segmentId:H}));}));}Object.defineProperty(b,"__esModule",{value:!0});b.L$a=void 0;n=a(36129);c=a(85001);f=a(5021);g=a(22365);e=a(87607);h=a(3887);k=a(26388);d.prototype.ws=function(){return this.j.state.value === c.Fc.zf;};d.prototype.dxb=function(){return this.j.R;};d.prototype.rA=function(){return this.j.Ha;};d.prototype.qxb=function(){var l;return null === (l=this.j.S) || void 0 === l?void 0:l.Aa.Xd;};d.prototype.zq=function(){return this.j.Eu;};d.prototype.by=function(){return this.j.Zj.value;};d.prototype.Kaa=function(){return this.j.paused.value;};d.prototype.$Ta=function(){return this.ended;};d.prototype.Nj=function(){var l;l=this.j.KLa.value;return l?{networkStalled:!!l.Zs,stalled:!!l.Zs,progress:l.progress,progressRollback:!!l.jKc}:null;};d.prototype.getError=function(){var l;l=this.j.Mj;return l?l.ufa():null;};d.prototype.cn=function(){var l;return null === (l=this.j.cn()) || void 0 === l?void 0:l.uQ;};d.prototype.ho=function(){return this.j.Bc;};d.prototype.lA=function(){var l;return this.ho().za?null !== (l=this.ho().Gpa()) && void 0 !== l?l:null:this.fD();};d.prototype.fD=function(){return this.j.mediaTime.value;};d.prototype.Svb=function(){var l;l=(this.PG() || 0) + this.j.Rvb();return Math.min(l,this.NK());};d.prototype.PG=function(){var l;return this.ho().za?null !== (l=this.ho().Gpa()) && void 0 !== l?l:null:this.j.RK();};d.prototype.NK=function(){return this.ho().za?this.ho().gyb():this.j.mG.na(f.ya);};d.prototype.jyb=function(){var l;l=this.j.NU.value;return l?{width:l.width,height:l.height}:null;};d.prototype.Voa=function(){return this.j.Voa();};d.prototype.Cvb=function(l){var m,p;return (null === (m=this.j.S) || void 0 === m?0:m.vp.BZ("generateScreenshots"))?this.Dvb.Se({log:this.log,links:this.j.S.vp},l):(m=null === (p=this.j.qb) || void 0 === p?void 0:p.Gs)?this.Dvb.Se({log:this.log},Object.assign({packageId:m},l)):Promise.reject("Unknown packageId");};d.prototype.hwb=function(){return this.qpc(this.j.gsb);};d.prototype.Kvb=function(){var l;l=this;return this.j.Yk.map(function(m){return l.Vv(m);});};d.prototype.Wwb=function(){var l;return this.w$(this.j.Yk,null === (l=this.j.S) || void 0 === l?void 0:l.Aa.MDb);};d.prototype.nSa=function(l){var m;m=this;return this.E$(l).map(function(p){return m.Vv(p);});};d.prototype.xRa=function(l){var m;return this.w$(this.E$(l),null === (m=this.j.S) || void 0 === m?void 0:m.Aa.NDb);};d.prototype.jUa=function(){return this.j.muted.value;};d.prototype.myb=function(){return this.j.volume.value;};d.prototype.Jvb=function(){var l,m;m=(null === (l=this.QD) || void 0 === l?void 0:l.he) || this.j.ka.he;return m && this.Vv(m);};d.prototype.mSa=function(){var l,m;m=(null === (l=this.QD) || void 0 === l?void 0:l.ifa) || this.j.ka.Qd;return m && this.Vv(m);};d.prototype.iAb=function(){return this.j.background.value;};d.prototype.MMb=function(l){this.j.muted.set(!!l);};d.prototype.cNb=function(l){this.j.volume.set(this.kEc(l));};d.prototype.nwa=function(l){this.j.playbackRate.set(l);};d.prototype.GZ=function(){return this.j.playbackRate.value;};d.prototype.yB=function(l){var m,p,r,q,u;m=this;r=this.G9(l);if(r){if(r.cf)return (this.j.ka.yB(r),Promise.resolve());q=(l=(null === (p=this.QD) || void 0 === p?void 0:p.ifa) || this.j.ka.Qd) && this.QAb(r,l)?l:r.vj[0];p=r.trackId;u=q.trackId;this.QD={he:r,ifa:q};this.Mb(c.Za.kq);this.Mb(c.Za.OB);q !== l && this.Mb(c.Za.Op);return this.j.hzb(p,u).then(function(v){v=v.he;m.QD=void 0;m.j.ka.yB(v);}).catch(function(v){m.QD=void 0;v=m.Of.jj(v);m.log.error(v);m.close(m.Yj(n.da.pO,{Ta:n.Y.bDa,qf:v,qR:{Zuc:r.trackId,izb:r.Ig,$uc:q.trackId,jzb:q.Ig}}));});}this.log.error("Invalid setAudioTrack call");return Promise.reject(Error("Invalid setAudioTrack call"));};d.prototype.Jp=function(l){var m,p,r,q;m=this;r=(null === (p=this.QD) || void 0 === p?void 0:p.he) || this.j.ka.he;if(null !== r){q=r.vj;p={};for(var u=0;u < q.length;(p={Ru:p.Ru},u++)){p.Ru=q[u];if(!l && null === p.Ru)return (this.j.ka.Jp(null),this.j.Cf && this.j.dRb(p.Ru),Promise.resolve());if(this.Vv(p.Ru) === l){if(p.Ru.cf)return (this.log.info("Setting Timed Text, profile: " + p.Ru.profile),this.j.ka.Jp(p.Ru),this.j.Cf && this.j.dRb(p.Ru),Promise.resolve());l=r.trackId;q=p.Ru.trackId;this.QD={he:r,ifa:p.Ru};this.Mb(c.Za.Op);return this.j.hzb(l,q).then(function(v){v=v.ifa;m.QD=void 0;m.j.ka.Jp(v);}).catch((function(v){return function(w){m.QD=void 0;w=m.Of.jj(w);m.log.error(w);m.close(m.Yj(n.da.pO,{Ta:n.Y.bDa,qf:w,qR:{Zuc:r.trackId,izb:r.Ig,$uc:v.Ru.trackId,jzb:v.Ru.Ig}}));};})(p));}}}this.log.error("Invalid setTextTrack call");return Promise.reject(Error("Invalid setTextTrack call"));};d.prototype.E0a=function(l){this.j.background.set(l);};d.prototype.Y1=function(){this.j.Y1();};d.prototype.Exa=function(l){this.j.Exa(l);};d.prototype.Vl=function(l){return this.j.Vl(l);};d.prototype.rxb=function(){return this.j.qb;};d.prototype.MD=function(){this.j.MD();};d.prototype.zS=function(l){this.j.zS(l);};d.prototype.T$=function(l,m,p){return this.j.T$(l,m,p);};d.prototype.vKa=function(l,m){this.j.addEventListener(l,m,void 0);};d.prototype.jKb=function(l,m){this.j.removeEventListener(l,m);};d.prototype.addEventListener=function(l,m,p){this.jc.addListener(l,m,p);};d.prototype.removeEventListener=function(l,m){this.jc.removeListener(l,m);};d.prototype.dT=function(){};d.prototype.load=function(){var l;l=this;this.loaded || (this.loaded=!0,this.j.load(function(m,p){try{l.Mb(c.Za.MCb,void 0,!0);m.S && (m.S.Aa.lSb && l.Mb(c.Za.FXc,m.S.Aa.lSb,!0),m.S.Aa.Sr && l.Mb(c.Za.IOc,{segmentMap:m.S.Aa.Sr},!0),m.S.Aa.y2a && (l.LB=m.S.Aa.y2a,l.Mb(c.Za.z2a,{timecodes:l.LB},!0)));p({success:!0});}catch(r){p({Ta:n.Y.nr,qf:l.Of.jj(r)});}}));};d.prototype.cyb=function(){return this.LB;};d.prototype.close=function(l){var m;m=this;this.opb || (this.opb=new Promise(function(p){l?m.j.iK(l,p):m.j.close(p);}));return this.opb;};d.prototype.play=function(){this.j.Gj?this.j.fireEvent(c.ja.Xda):(this.load(),this.j.paused.value && (this.j.paused.set(!1),this.j.fireEvent(c.ja.FRb)));};d.prototype.pause=function(){this.load();this.j.paused.value || (this.j.paused.set(!0),this.j.fireEvent(c.ja.G3a));};d.prototype.zHb=function(){this.load();this.j.paused.value || this.j.paused.set(!0,{bB:!0});};d.prototype.seek=function(l,m,p,r){m=void 0 === m?c.Mc.Xu:m;this.j.gac() && (this.ho().za && this.ho().WAb(this.ho().hLb(l)) && !this.ho().CR(!0)?this.ho().I1():this.j.Wd?(this.ho().za && (l=this.ho().hLb(l)),this.j.Wd.seek(l,m,p,r)):(this.ho().za && (l=this.ho().rRa(l).mq),this.j.mq=l));};d.prototype.$Hb=function(l){return this.uX?(this.log.trace("Playing a segment",l),this.uX.play(l)):Promise.resolve();};d.prototype.rJb=function(l){return this.uX?(this.log.trace("Queueing a segment",l),this.uX.gg(l)):Promise.resolve();};d.prototype.wl=function(l,m){return this.uX?(this.log.trace("Updating next segment weights",l,m),this.uX.wl(l,m)):Promise.resolve();};d.prototype.O$=function(){var l;l=this.j.$q.O$();return {bounds:l.Q7,margins:l.jy,size:l.size,visibility:l.visibility};};d.prototype.R1=function(l){var m,p,r;m=l.bounds;p=l.margins;r=l.size;l=l.visibility;this.j.ofa && (m && this.j.ofa.V0a(m),p && this.j.ofa.W0a(p),"boolean" === typeof l && this.j.ofa.X0a(l));this.j.$q && r && this.j.$q.mQc(r);};d.prototype.$0a=function(l){this.j.er=l;};d.prototype.fyb=function(l){return this.j.wI && this.j.wI.Upc(l) || null;};d.prototype.Ivb=function(){return this.Of.Y_({playerver:this.config.version,jssid:this.config.dyc,groupName:this.config.Ypc(),xid:this.j.Ha,pbi:this.j.index},this.config.UHc,{prefix:"pi_"});};d.prototype.Azb=function(l){this.j.wg(n.da.p8a,n.Y.yh,l);};d.prototype.HCb=function(l,m,p,r){if(!this.ec.omb(l))throw Error("invalid url");this.HHb.push({url:l,name:m,I8b:p,options:r});this.$Ib();};d.prototype.cSa=function(){var l,m,p,r,q,u,v,w;l={};m=this.j.Mea;try{if((this.j.Mj && (l.errorCode=this.j.Mj.xna,l.errorType=m?"endplay":"startplay"),l.playdelay=(0,h.Zh)(this.j.Y7()),l.xid=this.j.Ha,this.j.S && this.ec.Ft(this.j.S.Aa.Gs) && (l.packageId=Number(this.j.S.Aa.Gs)),l.auth=this.j.zoc(),m)){l.totaltime=this.j.Cp?this.hs(this.j.Cp.Uv("content")):0;l.abrdel=this.j.Cp?this.j.Cp.DQa():0;p=this.j.Wd;r=p?p.ZQ():null;this.ec.Wo(r) && (l.totdfr=r);r=p?p.j$():null;this.ec.Wo(r) && (l.totcfr=r);q=p?p.hqc():null;q && (l.rbfrs_decoder=q.bna,l.rbfrs_network=q.Msa);l.rbfrs_delay=this.j.Cp?this.j.Cp.RTa:0;l.init_vbr=this.j.tqa;u=this.HZ();this.ec.tY(u) && (l.pdltime=u);v=this.j.ye.value;w=v && v.stream;w && (l.vbr=w.bitrate,l.vdlid=w.ob);l.bufferedTime=this.j.Rvb();}}catch(x){this.log.error("error capturing session summary",x);}return l;};d.prototype.TY=function(l){this.j.qb.Xq && (this.j.qb.Xq.userEngageAction=1);return this.ec.Wo(this.j.mediaTime.value)?(l=Object.assign(Object.assign({},this.jB.create(this.j)),{action:l}),this.i8(e.Ko.TY).Se({log:this.log,links:this.j.S.vp},l).then(function(){return {success:!0};}).catch(function(m){return {success:!1,errorCode:m.code,errorSubCode:m.subCode,errorExternalCode:m.extCode,errorData:m.data,errorDetails:m.details};})):Promise.resolve({success:!1});};d.prototype.qpc=function(l){return {register:l.register.bind(l),notifyUpdated:l.FFb.bind(l),getModel:l.Tqc.bind(l),getGroups:l.p$.bind(l),addEventListener:l.addEventListener.bind(l),removeEventListener:l.removeEventListener.bind(l),getTime:l.getTime.bind(l)};};d.prototype.Vv=function(l){var m;m=l.BZa=l.BZa || ({trackId:l.trackId,bcp47:l.Ig,displayName:l.displayName,trackType:l.aj,rawTrackType:l.yM,channels:l.channels});this.qUa(l) && (m.isNative=l.isNative,m.surroundFormatLabel=l.Zea);this.rUa(l) && (m.isNoneTrack=l.Gq(),m.isForcedNarrative=l.pp(),m.isImageBased=l.Fq);m.subType=l.hU;m.variant=l.variant;return m;};d.prototype.qUa=function(l){return "undefined" !== typeof l.isNative;};d.prototype.rUa=function(l){return "undefined" !== typeof l.Gq && "undefined" !== typeof l.pp;};d.prototype.G9=function(l){var m;m=this;return l && this.j.Yk.find(function(p){return m.Vv(p) === l;});};d.prototype.E$=function(l){var m,p;l=this.G9(l) || (null === (m=this.QD) || void 0 === m?void 0:m.he) || this.j.ka.he;return null !== (p=null === l || void 0 === l?void 0:l.vj) && void 0 !== p?p:[];};d.prototype.w$=function(l,m){var p;p=l.length - 1;if("number" !== typeof m)return p;l=l.findIndex(function(r){return r.Ac > m;});return -1 === l?p:l - 1;};d.prototype.QAb=function(l,m){return 0 <= l.vj.indexOf(m);};d.prototype.kEc=function(l){return 0 <= l?1 >= l?l:1:0;};d.prototype.hs=function(l){return this.ec.Wo(l)?(l / 1E3).toFixed(0):"";};d.prototype.Mb=function(l,m,p){m=m || ({});m.target=this;this.jc.qd(l,m,!p);};d.prototype.QU=function(){var l;l=this;this.j.addEventListener(c.ja.s2a,function(){l.Mb(c.Za.Wt);});this.j.NU.addListener(function(){l.Mb(c.Za.P3a);});this.j.addEventListener(c.ja.EQb,function(){l.Mb(c.Za.DQb);});this.j.addEventListener(c.ja.Oba,function(){l.Mb(c.Za.$la);});this.j.addEventListener(c.ja.Ms,function(){l.Mb(c.Za.$la);});this.j.addEventListener(c.ja.UZ,function(m){l.Mb(c.Za.UZ,{errorCode:m});});this.j.addEventListener(c.ja.Ola,function(){l.Mb(c.Za.hnb);});this.j.addEventListener(c.ja.Gj,function(m){l.Mb(c.Za.Pla,m);});this.j.addEventListener(c.ja.TPb,function(){l.Mb(c.Za.Kla);l.Mb(c.Za.OB);});this.j.addEventListener(c.ja.DCb,function(m){var p,r;if(l.ho().za && l.K.R === m.J){p=m.Yca;if(void 0 !== p){r="execute" === m.action?"ending":"prefetch";l.LB=l.LB.filter(function(q){return q.type !== r;});l.LB.push({type:r,startOffsetMs:p,endOffsetMs:p});l.Mb(c.Za.z2a,{timecodes:l.LB},!0);}}});this.j.Zj.addListener(function(){l.Mb(c.Za.UYa);});this.j.paused.addListener(function(){l.Mb(c.Za.AHb);});this.j.muted.addListener(function(){l.Mb(c.Za.SEb);});this.j.volume.addListener(function(){l.Mb(c.Za.aSb);});this.j.Zb.addListener(function(){l.MQb();});this.j.state.addListener(function(){l.MQb();});this.j.KLa.addListener(function(m){l.dAc || l.j.state.value != c.Fc.zf || m.newValue || (l.dAc=!0,l.Mb(c.Za.loaded),setTimeout(function(){l.log.debug.bind(l.log,"summary ",l.cSa());}));l.Mb(c.Za.xX);});this.j.ka.addListener([k.u.X],function(){l.Mb(c.Za.kq);l.Mb(c.Za.OB);setTimeout(function(){var m,p;m=l.j.ka.he;p=l.j.ka.Qd;null === m || null === p || l.QAb(m,p) || (l.log.info("Changing timed text track to match audio track"),l.j.ka.Jp(m.vj[0]));},0);});this.j.ka.addListener([k.u.Ca],function(m){m.vy && m.so && m.vy.trackId == m.so.trackId || l.Mb(c.Za.Op);});this.j.addEventListener(c.ja.OB,function(){l.Mb(c.Za.OB);});this.j.addEventListener(c.ja.Cfa,function(){l.Mb(c.Za.Cfa);});this.j.state.addListener(function(m){switch(m.newValue){case c.Fc.zf:l.Mb(c.Za.GOa);l.Mb(c.Za.P3a);l.Mb(c.Za.Kla);l.Mb(c.Za.OB);l.Mb(c.Za.LCb);l.$Ib();l.LXc();break;case c.Fc.CLOSING:l.j.Mj && l.Mb(c.Za.$zb,l.j.Mj);break;case c.Fc.CLOSED:(l.Mb(c.Za.closed),l.jc.Zg());}});this.j.addEventListener(c.ja.GL,function(){l.Mb(c.Za.GL);l.Mb(c.Za.Wt);l.Mb(c.Za.$la);l.Mb(c.Za.GOa);});};d.prototype.LXc=function(){var l,m,p,r,q;l=this;this.j.$q.addEventListener("showsubtitle",function(u){l.Mb(c.Za.l1a,u,!0);});this.j.$q.addEventListener("removesubtitle",function(u){l.Mb(c.Za.d_a,u,!0);});r=this.j.cn();r.Xo.addListener(function(u){r.SOa && l.Mb(c.Za.D6b,{state:u.newValue?"start":"stop"});});q=null === (m=this.j.bb) || void 0 === m?void 0:m.cn();m=null === q || void 0 === q?void 0:q.Js.events;null === m || void 0 === m?void 0:m.addListener("adPlaygraphUpdated",function(){l.Mb(c.Za.dmb);});null === (p=this.j.bb) || void 0 === p?void 0:p.addEventListener("adMetadataUpdated",function(){l.Mb(c.Za.dmb);});};d.prototype.$Ib=function(){if(this.j.state.value == c.Fc.zf){for(var l,m,p;m=this.HHb.shift();)(l=this.j.$q.kKa(m.url,m.name,m.options),m.I8b && (p=l));p && this.j.ka.Jp(p);}};d.prototype.MQb=function(){var l,m,p,r;m=this.ended;p=this.j.state.value == c.Fc.zf && this.j.Zb.value == c.Nb.Zw;r=!1;p && this.j.bb && (r=null === (l=this.j.bb) || void 0 === l?void 0:l.Grc());m === p || r || (this.ended=p,this.j.vP("Ended changed: " + p),(p || this.j.state.value === c.Fc.CLOSING) && this.Mb(c.Za.rtb));};d.prototype.HZ=function(){var l,m;try{l=/playercore.*js/;m=g.eC.getEntriesByType("resource").filter(function(p){return null !== l.exec(p.name);});if(m && 0 < m.length)return JSON.stringify(Math.round(m[0].duration));}catch(p){}};b.L$a=d;},52357:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G;function d(J){this.md=J;}Object.defineProperty(b,"__esModule",{value:!0});b.EHa=void 0;t=a(22970);n=a(22674);c=a(71501);f=a(74870);g=a(42207);e=a(87386);h=a(15160);k=a(2911);l=a(41106);m=a(41893);p=a(32979);r=a(87607);q=a(95738);u=a(25050);v=a(61861);w=a(62665);x=a(81918);y=a(49745);A=a(37104);z=a(77764);B=a(4203);C=a(44376);D=a(47500);F=a(30869);H=a(78029);E=a(91825);G=a(11479);d.prototype.ZX=function(J,L,K,M,P,I){return this.md.get(B.Hc)().Kxa?new u.kib(this.md.get(e.zb),this.md.get(v.tFa),this.md.get(w.XE),this.md.get(x.fe),this.md.get(y.JV),this.md.get(h.$Aa),this.md.get(A.pDa),this.md.get(z.C9a),this.md.get(C.Beb),this.md.get(D.VGa),this.md.get(D.VGa),this.md.get(F.Li),this.md.get(E.b5),this.md.get(H.zBa),this.md.get(G.ek),M,K):new m.L$a(this.md.get(f.Am),this.md.get(g.Mi),this.md.get(e.zb),this.md.get(h.$Aa),this.md.get(k.CGa),this.md.get(p.WEa),this.md.get(r.YAa),this.md.get(q.Ndb),this.md.get(l.L7a),J,L,K,M,P,I);};a=d;b.EHa=a;b.EHa=a=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(c.I$a))],a);},54861:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.KGa="SocketRouterWebPlayerClient";},42933:function(t,b,a){var c;function d(f,g){var e;e=c.L5.call(this,"WSS",f.trace) || this;e.options=f;e.d4a=g;g.onmessage=function(h){h=h.data;"string" === typeof h?(e.trace("Received",h),e.emit("message",{Od:e,message:h}),f.Ef.LJb(h.length)):e.trace("Received non-string message",h);};g.onclose=function(h){e.trace("Received close event",h);e.options.Ef.Ubc();e.Tbc=h;e.close();};g.onerror=function(h){e.trace("Received error, closing",h);e.options.Ef.error();e.failure={type:"ws-native-error",url:f.url,event:null !== h && void 0 !== h?h:"undefined"};e.emit("failure",{Ee:"ws.onerror",Od:e,error:e.failure});e.close();};e.closed.then(function(){e.d4a=void 0;g.onopen=n;g.onclose=n;g.onerror=n;g.onmessage=n;g.close();});return e;}function n(){}Object.defineProperty(b,"__esModule",{value:!0});b.X5=void 0;c=a(9568);Ia(d,c.L5);d.open=function(f){return new Promise(function(g,e){var h,k,l,m,p,r;k=new URL(f.url);new URLSearchParams(f.Cb).forEach(function(q,u){k.searchParams.append(u,q);});l=k.toString();m=null === (h=f.timing) || void 0 === h?void 0:h.Pwa(["network","web.WebSocket"]);f.Ef.bGc();p=new WebSocket(l);r=new d(f,p);r.trace("Connecting with",l);p.onopen=function(){p.onopen=function(){};r.trace("Connected");null === m || void 0 === m?void 0:m.end();f.Ef.nw();g(r);};r.closed.then(function(){var q,u,v;v=null !== (q=r.failure) && void 0 !== q?q:{type:"ws-did-not-open",url:f.url,event:null !== (u=r.Tbc) && void 0 !== u?u:void 0};null === m || void 0 === m?void 0:m.end(v);e(v);});});};d.prototype.close=function(){if(c.L5.prototype.close.call(this))return (this.options.Ef.closed(),!0);};d.prototype.send=function(f){if(this.open && this.d4a)return (this.trace("Sending",f),this.d4a.send(f),this.options.Ef.T(f.length),!0);};b.X5=d;d.supported="function" === typeof globalThis.WebSocket;},4888:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.GXc=function(e,h){function k(l){var m,p,r,q;m=e.url;p=e.trace;r=e.Ef;q={"x-netflix.request.client.context":JSON.stringify({appState:e.visible.SU?"foreground":"background"}),"x-netflix.socketrouter.schema.version":"" + d.jja.oOc,"x-netflix.socketrouter.group.name":"" + h.groupName};return f.X5.open({url:m,trace:p,Ef:r,Cb:q,timing:l});}return function(l){return n.T4a.open({timing:l,trace:e.trace,timeout:e.timeout,eX:c.U4a.gnc({trace:e.trace,Ol:e.Ol.eX}),Lx:k,jD:new g.Igb(e.Bk)});};};d=a(41066);n=a(42050);c=a(61222);f=a(42933);g=a(1409);},21015:function(t,b,a){var n,c,f,g,e;function d(h,k){h=g.Qf.call(this,h,"SocketRouterConfigImpl") || this;h.config=k;return h;}Object.defineProperty(b,"__esModule",{value:!0});b.IGa=b.ija=void 0;t=a(22970);n=a(22674);c=a(4203);f=a(12501);g=a(64174);a=a(83767);b.ija="SocketRouterConfigSymbol";Ia(d,g.Qf);Ha.Object.defineProperties(d.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return !1;}},url:{configurable:!0,enumerable:!0,get:function(){return "wss://web.ws.prod.cloud.netflix.com/socketrouter";}},P0:{configurable:!0,enumerable:!0,get:function(){return 24E4;}},Mta:{configurable:!0,enumerable:!0,get:function(){return 1E4;}},yva:{configurable:!0,enumerable:!0,get:function(){return 15E3;}},groupName:{configurable:!0,enumerable:!0,get:function(){return this.config().groupName;}},sG:{configurable:!0,enumerable:!0,get:function(){return !1;}},uNb:{configurable:!0,enumerable:!0,get:function(){return !1;}},sNb:{configurable:!0,enumerable:!0,get:function(){return !1;}}});e=d;b.IGa=e;t.__decorate([f.config(f.pd,"socketRouterEnabled")],e.prototype,"enabled",null);t.__decorate([f.config(f.string,"socketRouterURL")],e.prototype,"url",null);t.__decorate([f.config(f.Vy,"socketRouterPingInterval")],e.prototype,"P0",null);t.__decorate([f.config(f.Vy,"socketRouterOpenTimeout")],e.prototype,"Mta",null);t.__decorate([f.config(f.Vy,"socketRouterRequestTimeout")],e.prototype,"yva",null);t.__decorate([f.config(f.string,"socketRouterGroupName")],e.prototype,"groupName",null);t.__decorate([f.config(f.pd,"socketRouterDisableOnSuspend")],e.prototype,"sG",null);t.__decorate([f.config(f.pd,"socketRouterShouldSendLogblobs")],e.prototype,"uNb",null);t.__decorate([f.config(f.pd,"socketRouterShouldSendEvents")],e.prototype,"sNb",null);b.IGa=e=t.__decorate([(0,n.aa)(),t.__param(0,(0,n.v)(a.Po)),t.__param(1,(0,n.v)(c.Hc))],e);},70885:function(t,b,a){var n;function d(){}Object.defineProperty(b,"__esModule",{value:!0});b.JGa=b.tib=void 0;t=a(22970);a=a(22674);b.tib={logblob:{maxLengthBytes:204800,maxInQueue:4},events:{maxInQueue:void 0},manifest:{maxInQueue:void 0},license:{maxInQueue:void 0},ntlBatch:{maxLengthBytes:204800,maxInQueue:4},ntlSendImmediate:{maxInQueue:void 0}};d.prototype.Tb=function(c,f){this.client=c;this.config=f;};d.prototype.request=function(c){return this.client.request(c);};d.prototype.start=function(){this.client.start();};d.prototype.disconnect=function(){this.client.disconnect();};Ha.Object.defineProperties(d.prototype,{mUa:{configurable:!0,enumerable:!0,get:function(){var c;return !(null === (c=this.client) || void 0 === c || !c.mUa);}}});n=d;b.JGa=n;b.JGa=n=t.__decorate([(0,a.aa)()],n);},99133:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;Object.defineProperty(b,"__esModule",{value:!0});d=a(33351);n=a(12746);c=a(35097);f=a(49217);g=a(41066);t=a(11479);e=a(87386);h=a(91581);k=a(37509);l=a(33554);m=a(31276);p=a(22365);r=a(36475);q=a(4888);b=a(36129);u=a(7605);v=a(21015);w=a(54861);x=a(42933);m.Xa.get(t.ek).register(b.da.p$a,function(y){var B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q;function A(){k.xe.removeListener(k.ls,z);k.xe.removeListener(k.hn,A);O && O();}function z(){I.set(!0 !== p.Ni.hidden);}B=m.Xa.get(v.ija);if(!B.enabled || !x.X5.supported)return y({success:!0});C=m.Xa.get(u.oz);D=m.Xa.get(r.Gdb);F=m.Xa.get(l.WB);H=m.Xa.get(h.xt);E=B.groupName;G=B.url;J=B.P0;L=B.Mta;K=B.yva;M=B.sG;P=m.Xa.get(e.zb).wb("SocketRouterClient");G={Lx:function(T){return (0,q.GXc)(T,{groupName:E});},enabled:!0,url:G,P0:J,Mta:L,yva:K,sG:M,gmb:!0,IZa:!1};H=H.version;I=new n.fza().set(!0 !== p.Ni.hidden);O=null;k.xe.removeListener(k.ls,z);k.xe.addListener(k.ls,z);k.xe.addListener(k.hn,A);C=new d.E7a({ZR:function(T,U){switch(T){case "error":P.error("socket-router-client-error",U);break;case "warn":!1;break;default:!1;}},info:{Z2a:"WEBSITE",groupName:E,Ufa:{Va:"",build:"",Z2a:C.uiVersion,platform:C.uiPlatform,player:H}},eX:{ij:F().ij,crypto:new c.V4a(),mg:new f.a5a(),sKc:function(){return D.Se({log:P},{}).then(function(T){return T.provisionResponse;});}},visible:I});Q=new g.Hgb(G,C);O=function(){Q.disconnect();};Q.start();m.Xa.get(w.KGa).Tb(Q,B);y({success:!0});});},35558:function(t,b,a){t.exports={P_b:a(81198),wZc:a(52915)};},52915:function(t,b,a){function d(c){this.data=c;this.right=this.left=null;}function n(c){this.Fg=null;this.Az=c;this.size=0;}b=a(61161);d.prototype.kj=function(c){return c?this.right:this.left;};d.prototype.Hw=function(c,f){c?this.right=f:this.left=f;};n.prototype=new b();n.prototype.ku=function(c){if(null === this.Fg)(this.Fg=new d(c),this.size++);else for(var f=0,g=null,e=this.Fg;;){if(null === e){e=new d(c);g.Hw(f,e);ret=!0;this.size++;break;}if(0 === this.Az(e.data,c))break;f=0 > this.Az(e.data,c);g=e;e=e.kj(f);}};n.prototype.remove=function(c){var f,g,l;if(null === this.Fg)return !1;f=new d(void 0);g=f;g.right=this.Fg;for(var e=null,h=null,k=1;null !== g.kj(k);){e=g;g=g.kj(k);l=this.Az(c,g.data);k=0 < l;0 === l && (h=g);}return null !== h?(h.data=g.data,e.Hw(e.right === g,g.kj(null === g.left)),this.Fg=f.right,this.size--,!0):!1;};t.exports=n;},81198:function(t,b,a){function d(e){this.data=e;this.right=this.left=null;this.red=!0;}function n(e){this.Fg=null;this.Az=e;this.size=0;}function c(e){return null !== e && e.red;}function f(e,h){var k;k=e.kj(!h);e.Hw(!h,k.kj(h));k.Hw(h,e);e.red=!0;k.red=!1;return k;}function g(e,h){e.Hw(!h,f(e.kj(!h),!h));return f(e,h);}b=a(61161);d.prototype.kj=function(e){return e?this.right:this.left;};d.prototype.Hw=function(e,h){e?this.right=h:this.left=h;};n.prototype=new b();n.prototype.ku=function(e){var h,k,l,m,p,r,q,u;if(null === this.Fg)(this.Fg=new d(e),this.size++);else {h=new d(void 0);k=0;l=0;m=null;p=h;r=null;q=this.Fg;for(p.right=this.Fg;;){null === q?(q=new d(e),r.Hw(k,q),this.size++):c(q.left) && c(q.right) && (q.red=!0,q.left.red=!1,q.right.red=!1);if(c(q) && c(r)){u=p.right === m;q === r.kj(l)?p.Hw(u,f(m,!l)):p.Hw(u,g(m,!l));}u=this.Az(q.data,e);if(0 === u)break;l=k;k=0 > u;null !== m && (p=m);m=r;r=q;q=q.kj(k);}this.Fg=h.right;}this.Fg.red=!1;};n.prototype.remove=function(e){var h,k,q,u,v;if(null === this.Fg)return !1;h=new d(void 0);k=h;k.right=this.Fg;for(var l=null,m,p=null,r=1;null !== k.kj(r);){q=r;m=l;l=k;k=k.kj(r);u=this.Az(e,k.data);r=0 < u;0 === u && (p=k);if(!c(k) && !c(k.kj(r)))if(c(k.kj(!r)))(m=f(k,r),l.Hw(q,m),l=m);else if(!c(k.kj(!r)) && (u=l.kj(!q),null !== u))if(c(u.kj(!q)) || c(u.kj(q))){v=m.right === l;c(u.kj(q))?m.Hw(v,g(l,q)):c(u.kj(!q)) && m.Hw(v,f(l,q));q=m.kj(v);q.red=!0;k.red=!0;q.left.red=!1;q.right.red=!1;}else (l.red=!1,u.red=!0,k.red=!0);}null !== p && (p.data=k.data,l.Hw(l.right === k,k.kj(null === k.left)),this.size--);this.Fg=h.right;null !== this.Fg && (this.Fg.red=!1);return null !== p;};t.exports=n;},61161:function(t){function b(){}function a(d){this.Ukb=d;this.$u=[];this.ri=null;}b.prototype.clear=function(){this.Fg=null;this.size=0;};b.prototype.find=function(d){var c;for(var n=this.Fg;null !== n;){c=this.Az(d,n.data);if(0 === c)return n.data;n=n.kj(0 < c);}return null;};b.prototype.lowerBound=function(d){var g;for(var n=this.Fg,c=this.iterator(),f=this.Az;null !== n;){g=f(d,n.data);if(0 === g)return (c.ri=n,c);c.$u.push(n);n=n.kj(0 < g);}for(g=c.$u.length - 1;0 <= g;--g)if((n=c.$u[g],0 > f(d,n.data)))return (c.ri=n,c.$u.length=g,c);c.$u.length=0;return c;};b.prototype.upperBound=function(d){for(var n=this.lowerBound(d),c=this.Az;null !== n.data() && 0 === c(n.data(),d);)n.next();return n;};b.prototype.min=function(){var d;d=this.Fg;if(null === d)return null;for(;null !== d.left;)d=d.left;return d.data;};b.prototype.max=function(){var d;d=this.Fg;if(null === d)return null;for(;null !== d.right;)d=d.right;return d.data;};b.prototype.iterator=function(){return new a(this);};b.prototype.g9=function(d){for(var n=this.iterator(),c;null !== (c=n.next());)d(c);};a.prototype.data=function(){return null !== this.ri?this.ri.data:null;};a.prototype.next=function(){var d;if(null === this.ri){d=this.Ukb.Fg;null !== d && this.Vjb(d);}else if(null === this.ri.right){do if((d=this.ri,this.$u.length))this.ri=this.$u.pop();else {this.ri=null;break;}while(this.ri.right === d);}else (this.$u.push(this.ri),this.Vjb(this.ri.right));return null !== this.ri?this.ri.data:null;};a.prototype.Cy=function(){var d;if(null === this.ri){d=this.Ukb.Fg;null !== d && this.Rjb(d);}else if(null === this.ri.left){do if((d=this.ri,this.$u.length))this.ri=this.$u.pop();else {this.ri=null;break;}while(this.ri.left === d);}else (this.$u.push(this.ri),this.Rjb(this.ri.left));return null !== this.ri?this.ri.data:null;};a.prototype.Vjb=function(d){for(;null !== d.left;)(this.$u.push(d),d=d.left);this.ri=d;};a.prototype.Rjb=function(d){for(;null !== d.right;)(this.$u.push(d),d=d.right);this.ri=d;};t.exports=b;},29919:function(t,b,a){var d,n;b=a(4090);d=a(49638);n=a(68418);a=a(36476);t.exports=a || b.call(n,d);},26497:function(t,b,a){var d,n,c;d=a(4090);n=a(49638);c=a(29919);t.exports=function(){return c(d,n,arguments);};},49638:function(t){t.exports=Function.prototype.apply;},68418:function(t){t.exports=Function.prototype.call;},68381:function(t,b,a){var d,n,c,f;d=a(4090);n=a(5408);c=a(68418);f=a(29919);t.exports=function(g){if(1 > g.length || "function" !== typeof g[0])throw new n("a function is required");return f(d,c,g);};},36476:function(t){t.exports="undefined" !== typeof Reflect && Reflect && Reflect.apply;},62680:function(t,b,a){var d,n,c;d=a(67286);n=a(89429);c=n(d("String.prototype.indexOf"));t.exports=function(f,g){g=d(f,!!g);return "function" === typeof g && -1 < c(f,".prototype.")?n(g):g;};},89429:function(t,b,a){var d,n;d=a(47669);b=a(70999);n=a(68381);a=a(26497);t.exports=function(c){var f,g;f=n(arguments);g=c.length - (arguments.length - 1);return d(f,1 + (0 < g?g:0),!0);};b?b(t.exports,"apply",{value:a}):t.exports.apply=a;},8435:function(t,b,a){var d,n,c;d=a(67286);n=a(68381);c=n([d("%String.prototype.indexOf%")]);t.exports=function(f,g){g=d(f,!!g);return "function" === typeof g && -1 < c(f,".prototype.")?n([g]):g;};},75195:function(t,b,a){var d,n,c,f;d=a(70999);n=a(48342);c=a(5408);f=a(50326);t.exports=function(g,e,h){var k,l,m,p,r;if(!g || "object" !== typeof g && "function" !== typeof g)throw new c("`obj` must be an object or a function`");if("string" !== typeof e && "symbol" !== typeof e)throw new c("`property` must be a string or a symbol`");if(3 < arguments.length && "boolean" !== typeof arguments[3] && null !== arguments[3])throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(4 < arguments.length && "boolean" !== typeof arguments[4] && null !== arguments[4])throw new c("`nonWritable`, if provided, must be a boolean or null");if(5 < arguments.length && "boolean" !== typeof arguments[5] && null !== arguments[5])throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(6 < arguments.length && "boolean" !== typeof arguments[6])throw new c("`loose`, if provided, must be a boolean");k=3 < arguments.length?arguments[3]:null;l=4 < arguments.length?arguments[4]:null;m=5 < arguments.length?arguments[5]:null;p=6 < arguments.length?arguments[6]:!1;r=!!f && f(g,e);if(d)d(g,e,{configurable:null === m && r?r.configurable:!m,enumerable:null === k && r?r.enumerable:!k,value:h,writable:null === l && r?r.writable:!l});else if(p || !k && !l && !m)g[e]=h;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");};},14926:function(t,b,a){var d,n,c,f,g,e;d=a(33464);n="function" === typeof Symbol && "symbol" === typeof Symbol("foo");c=Object.prototype.toString;f=Array.prototype.concat;g=a(75195);e=a(81181)();t.exports=function(h,k){var l,m,r,q,u,v;l=2 < arguments.length?arguments[2]:{};m=d(k);n && (m=f.call(m,Object.getOwnPropertySymbols(k)));for(var p=0;p < m.length;p+=1)a:{r=h;q=m[p];u=k[m[p]];v=l[m[p]];if((q in r))if(!0 === v){if(r[q] === u)break a;}else if("function" !== typeof v || "[object Function]" !== c.call(v) || !v())break a;e?g(r,q,u,!0):g(r,q,u);}};},5141:function(t,b,a){var d,n,c;b=a(68381);a=a(50326);try{d=[].__proto__ === Array.prototype;}catch(f){if(!(f && "object" === typeof f && ("code" in f)) || "ERR_PROTO_ACCESS" !== f.code)throw f;}d=!!d && a && a(Object.prototype,"__proto__");n=Object;c=n.getPrototypeOf;t.exports=d && "function" === typeof d.get?b([d.get]):"function" === typeof c?function(f){return c(null == f?f:n(f));}:!1;},16634:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Kib="ella-object-wasm";b.Eja="1.0.3";},70999:function(t){var b;b=Object.defineProperty || !1;if(b)try{b({},"a",{value:1});}catch(a){b=!1;}t.exports=b;},69654:function(t){t.exports=EvalError;},42321:function(t){t.exports=Error;},48205:function(t){t.exports=RangeError;},2976:function(t){t.exports=ReferenceError;},48342:function(t){t.exports=SyntaxError;},5408:function(t){t.exports=TypeError;},82885:function(t){t.exports=URIError;},42977:function(t,b,a){var d;d=a(5408);t.exports=function(n){if(null == n)throw new d(0 < arguments.length && arguments[1] || "Cannot call method on " + n);return n;};},8156:function(t,b,a){var d,n;d=a(54546);n=a(42977);t.exports=function(c){n(c);return d(c);};},54546:function(t){t.exports=Object;},5158:function(t){t.exports=function(b){return !!b && ("function" === typeof b || "object" === typeof b);};},5885:function(t,b,a){var d,n,c,f,g;d="function" === typeof Symbol && "symbol" === typeof Symbol.iterator;n=a(53919);c=a(9680);f=a(54277);g=a(88705);t.exports=function(e){var h,k,l;if(n(e))return e;h="default";1 < arguments.length && (arguments[1] === String?h="string":arguments[1] === Number && (h="number"));if(d)if(Symbol.toPrimitive){k=Symbol.toPrimitive;l=e[k];if(null !== l && "undefined" !== typeof l){if(!c(l))throw new TypeError(l + " returned for property " + String(k) + " of object " + e + " is not a function");k=l;}else k=void 0;}else g(e) && (k=Symbol.prototype.valueOf);if("undefined" !== typeof k){h=k.call(e,h);if(n(h))return h;throw new TypeError("unable to convert exotic object to primitive");}"default" === h && (f(e) || g(e)) && (h="string");a:{h="default" === h?"number":h;if("undefined" === typeof e || null === e)throw new TypeError("Cannot call method on " + e);if("string" !== typeof h || "number" !== h && "string" !== h)throw new TypeError('hint must be "string" or "number"');h="string" === h?["toString","valueOf"]:["valueOf","toString"];for(k=0;k < h.length;++k)if((l=e[h[k]],c(l) && (l=l.call(e),n(l))))break a;throw new TypeError("No default value");}return l;};},53919:function(t){t.exports=function(b){return null === b || "function" !== typeof b && "object" !== typeof b;};},22699:function(t){var h,k,l,m;function b(){b.Tb.call(this);}function a(p){if("function" !== typeof p)throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof p);}function d(p,r,q,u){var v,w;a(q);v=p.oc;if(void 0 === v)(v=p.oc=Object.create(null),p.UO=0);else {void 0 !== v.qDc && (p.emit("newListener",r,q.listener?q.listener:q),v=p.oc);w=v[r];}void 0 === w?(v[r]=q,++p.UO):("function" === typeof w?w=v[r]=u?[q,w]:[w,q]:u?w.unshift(q):w.push(q),q=void 0 === p.Iz?b.ZNa:p.Iz,0 < q && w.length > q && !w.W3a && (w.W3a=!0,q=Error("Possible EventEmitter memory leak detected. " + w.length + " " + String(r) + " listeners added. Use emitter.setMaxListeners() to increase limit"),q.name="MaxListenersExceededWarning",q.cs=p,q.type=r,q.count=w.length,console && console.warn && console.warn(q)));return p;}function n(){if(!this.Oub)return (this.target.removeListener(this.type,this.ySb),this.Oub=!0,0 === arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments));}function c(p,r,q){p={Oub:!1,ySb:void 0,target:p,type:r,listener:q};r=n.bind(p);r.listener=q;return p.ySb=r;}function f(p){var r;r=this.oc;if(void 0 !== r){p=r[p];if("function" === typeof p)return 1;if(void 0 !== p)return p.length;}return 0;}function g(p,r,q){"function" === typeof p.on && e(p,"error",r,q);}function e(p,r,q,u){if("function" === typeof p.on){if(u.once)p.once(r,q);else p.on(r,q);}else if("function" === typeof p.addEventListener)p.addEventListener(r,function x(w){u.once && p.removeEventListener(r,x);q(w);});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof p);}h="object" === typeof Reflect?Reflect:null;k=h && "function" === typeof h.apply?h.apply:function(p,r,q){return Function.prototype.apply.call(p,r,q);};l=Number.isNaN || (function(p){return p !== p;});t.exports=b;t.exports.once=function(p,r){return new Promise(function(q,u){function v(x){p.removeListener(r,w);u(x);}function w(){"function" === typeof p.removeListener && p.removeListener("error",v);q([].slice.call(arguments));}e(p,r,w,{once:!0});"error" !== r && g(p,v,{once:!0});});};b.EventEmitter=b;b.prototype.oc=void 0;b.prototype.UO=0;b.prototype.Iz=void 0;m=10;Object.defineProperty(b,"defaultMaxListeners",{enumerable:!0,get:function(){return m;},set:function(p){if("number" !== typeof p || 0 > p || l(p))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + p + ".");m=p;}});b.Tb=function(){if(void 0 === this.oc || this.oc === Object.getPrototypeOf(this).oc)(this.oc=Object.create(null),this.UO=0);this.Iz=this.Iz || void 0;};b.prototype.setMaxListeners=function(p){if("number" !== typeof p || 0 > p || l(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + p + ".");this.Iz=p;return this;};b.prototype.emit=function(p){var u,v;for(var r=[],q=1;q < arguments.length;q++)r.push(arguments[q]);u="error" === p;q=this.oc;if(void 0 !== q)u=u && void 0 === q.error;else if(!u)return !1;if(u){0 < r.length && (v=r[0]);if(v instanceof Error)throw v;r=Error("Unhandled error." + (v?" (" + v.message + ")":""));r.context=v;throw r;}q=q[p];if(void 0 === q)return !1;if("function" === typeof q)k(q,this,r);else {v=q.length;u=Array(v);for(var w=0;w < v;++w)u[w]=q[w];for(q=0;q < v;++q)k(u[q],this,r);}return !0;};b.prototype.addListener=function(p,r){return d(this,p,r,!1);};b.prototype.on=b.prototype.addListener;b.prototype.Eua=function(p,r){d(this,p,r,!0);};b.prototype.once=function(p,r){a(r);this.on(p,c(this,p,r));return this;};b.prototype.IIb=function(p,r){a(r);this.Eua(p,c(this,p,r));};b.prototype.removeListener=function(p,r){var q,u,v,w,x;a(r);u=this.oc;if(void 0 === u)return this;v=u[p];if(void 0 === v)return this;if(v === r || v.listener === r)0 === --this.UO?this.oc=Object.create(null):(delete u[p],u.removeListener && this.emit("removeListener",p,v.listener || r));else if("function" !== typeof v){w=-1;for(q=v.length - 1;0 <= q;q--)if(v[q] === r || v[q].listener === r){x=v[q].listener;w=q;break;}if(0 > w)return this;if(0 === w)v.shift();else {for(;w + 1 < v.length;w++)v[w]=v[w + 1];v.pop();}1 === v.length && (u[p]=v[0]);void 0 !== u.removeListener && this.emit("removeListener",p,x || r);}return this;};b.prototype.$l=b.prototype.removeListener;b.prototype.removeAllListeners=function(p){var r,q,u;r=this.oc;if(void 0 === r)return this;if(void 0 === r.removeListener)return (0 === arguments.length?(this.oc=Object.create(null),this.UO=0):void 0 !== r[p] && (0 === --this.UO?this.oc=Object.create(null):delete r[p]),this);if(0 === arguments.length){q=Object.keys(r);for(r=0;r < q.length;++r){u=q[r];"removeListener" !== u && this.removeAllListeners(u);}this.removeAllListeners("removeListener");this.oc=Object.create(null);this.UO=0;return this;}q=r[p];if("function" === typeof q)this.removeListener(p,q);else if(void 0 !== q)for(r=q.length - 1;0 <= r;r--)this.removeListener(p,q[r]);return this;};b.prototype.listeners=function(p){var r;r=this.oc;if(void 0 === r)p=[];else if((p=r[p],void 0 === p))p=[];else if("function" === typeof p)p=[p.listener || p];else {r=Array(p.length);for(var q=0;q < r.length;++q)r[q]=p[q].listener || p[q];p=r;}return p;};b.listenerCount=function(p,r){return "function" === typeof p.listenerCount?p.listenerCount(r):f.call(p,r);};b.prototype.listenerCount=f;},37795:function(t){var n,c;function b(f,g){for(var e="",h=0;h < f.length;h+=1)(e+=f[h],h + 1 < f.length && (e+=g));return e;}function a(f,g){var e;e=[];g=g || 0;for(var h=0;g < f.length;(g+=1,h+=1))e[h]=f[g];return e;}function d(f,g){for(var e=[],h=0;h < f.length;h+=1)e[h]=f[h];for(h=0;h < g.length;h+=1)e[h + f.length]=g[h];return e;}n=Object.prototype.toString;c=Math.max;t.exports=function(f){var g;g=this;if("function" !== typeof g || "[object Function]" !== n.apply(g))throw new TypeError("Function.prototype.bind called on incompatible " + g);for(var e=a(arguments,1),h,k=c(0,g.length - e.length),l=[],m=0;m < k;m++)l[m]="$" + m;h=Function("binder","return function (" + b(l,",") + "){ return binder.apply(this,arguments); }")(function(){var p;if(this instanceof h){p=g.apply(this,d(e,arguments));return Object(p) === p?p:this;}return g.apply(f,d(e,arguments));});g.prototype && (k=function(){},k.prototype=g.prototype,h.prototype=new k(),k.prototype=null);return h;};},4090:function(t,b,a){b=a(37795);t.exports=Function.prototype.bind || b;},67286:function(t,b,a){var f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W;function d(Z){var aa,ca,da;aa=U(Z,0,1);ca=U(Z,-1);if("%" === aa && "%" !== ca)throw new l("invalid intrinsic syntax, expected closing `%`");if("%" === ca && "%" !== aa)throw new l("invalid intrinsic syntax, expected opening `%`");da=[];T(Z,Y,function(ha,S,N,V){da[da.length]=N?T(V,W,"$1"):S || ha;});return da;}function n(){throw new m();}function c(Z){try{return A('"use strict"; return (' + Z + ").constructor;")();}catch(aa){}}f=a(54546);g=a(42321);e=a(69654);h=a(48205);k=a(2976);l=a(48342);m=a(5408);p=a(82885);r=a(14383);q=a(45736);u=a(27130);v=a(22400);w=a(23654);x=a(96890);y=a(82026);A=Function;z=a(50326);B=a(70999);C=z?(function(){try{return (arguments.callee,n);}catch(Z){try{return z(arguments,"callee").get;}catch(aa){return n;}}})():n;D=a(32636)();F=a(21750);H=a(2938);E=a(78354);b=a(49638);G=a(68418);J={};L="undefined" !== typeof Uint8Array && F?F(Uint8Array):void 0;K={__proto__:null,"%AggregateError%":"undefined" === typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined" === typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":D && F?F([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%Atomics%":"undefined" === typeof Atomics?void 0:Atomics,"%BigInt%":"undefined" === typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined" === typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined" === typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined" === typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":g,"%eval%":eval,"%EvalError%":e,"%Float16Array%":"undefined" === typeof Float16Array?void 0:Float16Array,"%Float32Array%":"undefined" === typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined" === typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined" === typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":J,"%Int8Array%":"undefined" === typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined" === typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined" === typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D && F?F(F([][Symbol.iterator]())):void 0,"%JSON%":"object" === typeof JSON?JSON:void 0,"%Map%":"undefined" === typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined" !== typeof Map && D && F?F(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":f,"%Object.getOwnPropertyDescriptor%":z,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined" === typeof Promise?void 0:Promise,"%Proxy%":"undefined" === typeof Proxy?void 0:Proxy,"%RangeError%":h,"%ReferenceError%":k,"%Reflect%":"undefined" === typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined" === typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined" !== typeof Set && D && F?F(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined" === typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D && F?F(("")[Symbol.iterator]()):void 0,"%Symbol%":D?Symbol:void 0,"%SyntaxError%":l,"%ThrowTypeError%":C,"%TypedArray%":L,"%TypeError%":m,"%Uint8Array%":"undefined" === typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined" === typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined" === typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined" === typeof Uint32Array?void 0:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined" === typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined" === typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined" === typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":G,"%Function.prototype.apply%":b,"%Object.defineProperty%":B,"%Object.getPrototypeOf%":H,"%Math.abs%":r,"%Math.floor%":q,"%Math.max%":u,"%Math.min%":v,"%Math.pow%":w,"%Math.round%":x,"%Math.sign%":y,"%Reflect.getPrototypeOf%":E};if(F)try{(null).error;}catch(Z){f=F(F(Z));K["%Error.prototype%"]=f;}M=function ca(aa){var da,ha;if("%AsyncFunction%" === aa)da=c("async function () {}");else if("%GeneratorFunction%" === aa)da=c("function* () {}");else if("%AsyncGeneratorFunction%" === aa)da=c("async function* () {}");else if("%AsyncGenerator%" === aa){ha=ca("%AsyncGeneratorFunction%");ha && (da=ha.prototype);}else "%AsyncIteratorPrototype%" === aa && (ha=ca("%AsyncGenerator%")) && F && (da=F(ha.prototype));return K[aa]=da;};P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};f=a(4090);I=a(72196);O=f.call(G,Array.prototype.concat);Q=f.call(b,Array.prototype.splice);T=f.call(G,String.prototype.replace);U=f.call(G,String.prototype.slice);X=f.call(G,RegExp.prototype.exec);Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;W=/\\(\\)?/g;t.exports=function(aa,ca){var da,ha,S,N,V,ba,fa,ia,ka;if("string" !== typeof aa || 0 === aa.length)throw new m("intrinsic name must be a non-empty string");if(1 < arguments.length && "boolean" !== typeof ca)throw new m('"allowMissing" argument must be a boolean');if(null === X(/^%?[^%]*%?$/,aa))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");da=d(aa);ha=0 < da.length?da[0]:"";S="%" + ha + "%";N=S;if(I(P,N)){V=P[N];N="%" + V[0] + "%";}if(I(K,N)){ba=K[N];ba === J && (ba=M(N));if("undefined" === typeof ba && !ca)throw new m("intrinsic " + S + " exists, but is not available. Please file an issue!");}else throw new l("intrinsic " + S + " does not exist!");S=ba;N=!1;V && (ha=V[0],Q(da,O([0,1],V)));V=1;for(ba=!0;V < da.length;V+=1){fa=da[V];ia=U(fa,0,1);ka=U(fa,-1);if(('"' === ia || "'" === ia || "`" === ia || '"' === ka || "'" === ka || "`" === ka) && ia !== ka)throw new l("property names with quotes must have matching quotes");"constructor" !== fa && ba || (N=!0);ha+="." + fa;ia="%" + ha + "%";if(I(K,ia))S=K[ia];else if(null != S){if(!((fa in S))){if(!ca)throw new m("base intrinsic for " + aa + " exists, but the property is not available.");return;}z && V + 1 >= da.length?(ka=z(S,fa),S=(ba=!!ka) && ("get" in ka) && !(("originalValue" in ka.get))?ka.get:S[fa]):(ba=I(S,fa),S=S[fa]);ba && !N && (K[ia]=S);}}return S;};},2938:function(t,b,a){b=a(54546);t.exports=b.getPrototypeOf || null;},78354:function(t){t.exports="undefined" !== typeof Reflect && Reflect.getPrototypeOf || null;},21750:function(t,b,a){var d,n,c;d=a(78354);n=a(2938);c=a(5141);t.exports=d?function(f){return d(f);}:n?function(f){if(!f || "object" !== typeof f && "function" !== typeof f)throw new TypeError("getProto: not an object");return n(f);}:c?function(f){return c(f);}:null;},93165:function(t){t.exports=Object.getOwnPropertyDescriptor;},50326:function(t,b,a){if(b=a(93165))try{b([],"length");}catch(d){b=null;}t.exports=b;},81181:function(t,b,a){var n;function d(){return !!n;}n=a(70999);d.auc=function(){if(!n)return null;try{return 1 !== n([],"length",{value:1}).length;}catch(c){return !0;}};t.exports=d;},32636:function(t,b,a){var d,n;d="undefined" !== typeof Symbol && Symbol;n=a(66679);t.exports=function(){return "function" !== typeof d || "function" !== typeof Symbol || "symbol" !== typeof d("foo") || "symbol" !== typeof Symbol("bar")?!1:n();};},66679:function(t){t.exports=function(){var b,a,d;if("function" !== typeof Symbol || "function" !== typeof Object.getOwnPropertySymbols)return !1;if("symbol" === typeof Symbol.iterator)return !0;b={};a=Symbol("test");d=Object(a);if("string" === typeof a || "[object Symbol]" !== Object.prototype.toString.call(a) || "[object Symbol]" !== Object.prototype.toString.call(d))return !1;b[a]=42;for(var n in b)return !1;if("function" === typeof Object.keys && 0 !== Object.keys(b).length || "function" === typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(b).length)return !1;d=Object.getOwnPropertySymbols(b);return 1 !== d.length || d[0] !== a || !Object.prototype.propertyIsEnumerable.call(b,a) || "function" === typeof Object.getOwnPropertyDescriptor && (b=Object.getOwnPropertyDescriptor(b,a),42 !== b.value || !0 !== b.enumerable)?!1:!0;};},67226:function(t,b,a){var d;d=a(66679);t.exports=function(){return d() && !!Symbol.toStringTag;};},72196:function(t,b,a){var d;b=Function.prototype.call;d=Object.prototype.hasOwnProperty;a=a(4090);t.exports=a.call(b,d);},28041:function(t,b,a){var c,f;function d(g,e,h,k,l){var m,p,q;m={};p="number" === typeof l;l=void 0 !== l && p?l.toString():h;if(p && void 0 !== h)throw Error(c.fXb);Reflect.RSa(g,e) && (m=Reflect.getMetadata(g,e));h=m[l];if(Array.isArray(h)){p=0;for(var r=h;p < r.length;p++){q=r[p];if(q.key === k.key)throw Error(c.xVb + " " + q.key.toString());}}else h=[];h.push(k);m[l]=h;Reflect.ina(g,m,e);}function n(g,e){return function(h,k){e(h,k,g);};}Object.defineProperty(b,"__esModule",{value:!0});c=a(25640);f=a(37425);b.jU=function(g,e,h,k){d(f.dhb,g,e,k,h);};b.ffa=function(g,e,h){d(f.ehb,g.constructor,e,h);};b.qK=function(g,e,h){"number" === typeof h?(g=[n(h,g)],Reflect.qK(g,e)):"string" === typeof h?Reflect.qK([g],e,h):Reflect.qK([g],e);};},29385:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});d=a(25640);n=a(37425);c=a(67258);f=a(28041);t=(function(){function g(e){this.S1b=e;}g.prototype.tN=function(){return this.S1b();};return g;})();b.uCa=t;b.v=function(g){return function(e,h,k){var l;if(void 0 === g)throw Error(d.T0b(e.name));l=new c.Metadata(n.M4,g);"number" === typeof k?f.jU(e,h,k,l):f.ffa(e,h,l);};};},16504:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});d=a(25640);n=a(37425);b.aa=function(){return function(c){var f;if(Reflect.RSa(n.mEa,c))throw Error(d.wVb);f=Reflect.getMetadata(n.TUb,c) || [];Reflect.ina(n.mEa,f,c);return c;};};},3342:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});d=a(37425);n=a(67258);c=a(28041);b.FH=function(f){return function(g,e,h){var k;k=new n.Metadata(d.rO,f);"number" === typeof h?c.jU(g,e,h,k):c.ffa(g,e,k);};};},44466:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});d=a(37425);n=a(67258);c=a(28041);b.UEb=function(f){return function(g,e,h){var k;k=new n.Metadata(d.aJ,f);"number" === typeof h?c.jU(g,e,h,k):c.ffa(g,e,k);};};},5923:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});d=a(37425);n=a(67258);c=a(28041);b.optional=function(){return function(f,g,e){var h;h=new n.Metadata(d.Scb,!0);"number" === typeof e?c.jU(f,g,e,h):c.ffa(f,g,h);};};},76311:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});d=a(25640);n=a(37425);c=a(67258);b.xIb=function(){return function(f,g){g=new c.Metadata(n.t5,g);if(Reflect.RSa(n.t5,f.constructor))throw Error(d.pYb);Reflect.ina(n.t5,g,f.constructor);};};},91823:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});d=a(67258);n=a(28041);b.bPb=function(c,f){return function(g,e,h){var k;k=new d.Metadata(c,f);"number" === typeof h?n.jU(g,e,h,k):n.ffa(g,e,k);};};},67509:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});d=a(37425);n=a(67258);c=a(28041);b.gfa=function(f){return function(g,e,h){var k;k=new n.Metadata(d.bia,f);c.jU(g,e,h,k);};};},53022:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});d=a(37425);n=a(67258);c=a(28041);b.Ou=function(){return function(f,g,e){var h;h=new n.Metadata(d.T5,!0);c.jU(f,g,e,h);};};},70078:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});d=a(5493);n=a(72632);t=(function(){function c(f,g){this.id=n.id();this.VJa=!1;this.hi=f;this.scope=g;this.type=d.om.nXb;this.TP=function(){return !0;};this.AY=this.KD=this.kT=this.Lx=this.cache=this.Dq=null;}c.prototype.clone=function(){var f;f=new c(this.hi,this.scope);f.VJa=!1;f.Dq=this.Dq;f.AY=this.AY;f.scope=this.scope;f.type=this.type;f.Lx=this.Lx;f.kT=this.kT;f.TP=this.TP;f.KD=this.KD;f.cache=this.cache;return f;};return c;})();b.PTb=t;},57197:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.oza={u1c:2,Fcb:0,iZb:1};},25640:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.wVb="Cannot apply @injectable decorator multiple times.";b.xVb="Metadata key was used more than once in a parameter:";b.o5="NULL argument";b.$$a="Key Not Found";b.QSb="Ambiguous match found for serviceIdentifier:";b.jUb="Could not unbind serviceIdentifier:";b.OYb="No matching bindings found for serviceIdentifier:";b.eYb="Missing required @injectable annotation in:";b.fYb="Missing required @inject or @multiInject annotation in:";b.T0b=function(a){return "@inject called with undefined this could mean that the class " + a + " has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation.";};b.nUb="Circular dependency found:";b.M1c="Sorry, this feature is not fully implemented yet.";b.eXb="Invalid binding type:";b.RYb="No snapshot available to restore.";b.iXb="Invalid return type in middleware. Middleware must return!";b.hXb="Value provided to function binding must be a function!";b.jXb="The toSelf function can only be applied when a constructor is used as service identifier";b.fXb="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.";b.SSb=function(){for(var a=[],d=0;d < arguments.length;d++)a[d]=arguments[d];return "The number of constructor arguments in the derived class " + (a[0] + " must be >= than the number of constructor arguments of its base class.");};b.CUb="Invalid Container constructor argument. Container options must be an object.";b.AUb="Invalid Container option. Default scope must be a string ('singleton' or 'transient').";b.zUb="Invalid Container option. Auto bind injectable must be a boolean";b.BUb="Invalid Container option. Skip base check must be a boolean";b.pYb="Cannot apply @postConstruct decorator multiple times in the same class";b.m_b=function(){for(var a=[],d=0;d < arguments.length;d++)a[d]=arguments[d];return "@postConstruct error in class " + a[0] + ": " + a[1];};b.oUb=function(){for(var a=[],d=0;d < arguments.length;d++)a[d]=arguments[d];return "It looks like there is a circular dependency in one of the '" + (a[0] + "' bindings. Please investigate bindings withservice identifier '") + (a[1] + "'.");};b.w0b="Maximum call stack size exceeded";},5493:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.gz={Request:"Request",GGa:"Singleton",sja:"Transient"};b.om={b7a:"ConstantValue",c7a:"Constructor",a8a:"DynamicValue",eBa:"Factory",Function:"Function",Instance:"Instance",nXb:"Invalid",mfb:"Provider"};b.lF={Q6a:"ClassProperty",d7a:"ConstructorArgument",DHa:"Variable"};},37425:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.aJ="named";b.bia="name";b.T5="unmanaged";b.Scb="optional";b.M4="inject";b.rO="multi_inject";b.dhb="inversify:tagged";b.ehb="inversify:tagged_props";b.mEa="inversify:paramtypes";b.TUb="design:paramtypes";b.t5="post_construct";},99700:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r;d=this && this.__awaiter || (function(q,u,v,w){return new (v || (v=Promise))(function(x,y){function A(C){try{B(w.next(C));}catch(D){y(D);}}function z(C){try{B(w["throw"](C));}catch(D){y(D);}}function B(C){C.done?x(C.value):new v(function(D){D(C.value);}).then(A,z);}B((w=w.apply(q,u || [])).next());});});n=this && this.__generator || (function(q,u){var x,y,A,z,B;function v(C){return function(D){return w([C,D]);};}function w(C){if(y)throw new TypeError("Generator is already executing.");for(;x;)try{if((y=1,A && (z=A[C[0] & 2?"return":C[0]?"throw":"next"]) && !(z=z.call(A,C[1])).done))return z;if((A=0,z))C=[0,z.value];switch(C[0]){case 0:case 1:z=C;break;case 4:return (x.label++,{value:C[1],done:!1});case 5:x.label++;A=C[1];C=[0];continue;case 7:C=x.DS.pop();x.tc.pop();continue;default:if(!(z=x.tc,z=0 < z.length && z[z.length - 1]) && (6 === C[0] || 2 === C[0])){x=0;continue;}if(3 === C[0] && (!z || C[1] > z[0] && C[1] < z[3]))x.label=C[1];else if(6 === C[0] && x.label < z[1])(x.label=z[1],z=C);else if(z && x.label < z[2])(x.label=z[2],x.DS.push(C));else {z[2] && x.DS.pop();x.tc.pop();continue;}}C=u.call(q,x);}catch(D){C=[6,D];A=0;}finally{y=z=0;}if(C[0] & 5)throw C[1];return {value:C[0]?C[1]:void 0,done:!0};}x={label:0,T:function(){if(z[0] & 1)throw z[1];return z[1];},tc:[],DS:[]};return (B={next:v(0),"throw":v(1),"return":v(2)},"function" === typeof Symbol && (B[Symbol.iterator]=function(){return this;}),B);});Object.defineProperty(b,"__esModule",{value:!0});c=a(70078);f=a(25640);g=a(5493);a(37425);e=a(11499);h=a(75262);k=a(85933);l=a(49825);m=a(72632);p=a(48530);a(95817);r=a(62240);t=(function(){function q(u){u=u || ({});if("object" !== typeof u)throw Error("" + f.CUb);if(void 0 === u.aQ)u.aQ=g.gz.sja;else if(u.aQ !== g.gz.GGa && u.aQ !== g.gz.sja && u.aQ !== g.gz.Request)throw Error("" + f.AUb);if(void 0 === u.F7)u.F7=!1;else if("boolean" !== typeof u.F7)throw Error("" + f.zUb);if(void 0 === u.ZT)u.ZT=!1;else if("boolean" !== typeof u.ZT)throw Error("" + f.BUb);this.options={F7:u.F7,aQ:u.aQ,ZT:u.ZT};this.id=m.id();this.MO=new r.DXb();this.z4b=[];this.parent=this.TIa=null;this.v3b=new e.GDa();}q.qo=function(u,v){var x,y;function w(A,z){A.LUc(function(B,C){C.forEach(function(D){z.add(D.hi,D.clone());});});}x=new q();y=h.FQa(x);u=h.FQa(u);v=h.FQa(v);w(u,y);w(v,y);return x;};q.prototype.load=function(){var x,y;for(var u=[],v=0;v < arguments.length;v++)u[v]=arguments[v];v=this.vjb();for(var w=0;w < u.length;w++){x=u[w];y=v(x.id);x.a_a(y.Bnb,y.uQb,y.YAb,y.JJb);}};q.prototype.iba=function(){for(var u=[],v=0;v < arguments.length;v++)u[v]=arguments[v];d(this,void 0,void 0,function(){var w,x,y,A,z;return n(this,function(B){switch(B.label){case 0:(w=this.vjb(),x=0,y=u,B.label=1);case 1:if(!(x < y.length))return [3,4];A=y[x];z=w(A.id);return [4,A.a_a(z.Bnb,z.uQb,z.YAb,z.JJb)];case 2:(B.T(),B.label=3);case 3:return (x++,[3,1]);case 4:return [2];}});});};q.prototype.AQb=function(){function u(y){return function(A){return A.GEb === y;};}for(var v=this,w=[],x=0;x < arguments.length;x++)w[x]=arguments[x];w.forEach(function(y){y=u(y.id);v.MO.cMc(y);});};q.prototype.bind=function(u){var v;v=new c.PTb(u,this.options.aQ || g.gz.sja);this.MO.add(u,v);return new l.RTb(v);};q.prototype.$Kc=function(u){this.tQb(u);return this.bind(u);};q.prototype.tQb=function(u){try{this.MO.remove(u);}catch(v){throw Error(f.jUb + " " + p.NZ(u));}};q.prototype.kAb=function(u){var v;v=this.MO.Fyb(u);!v && this.parent && (v=this.parent.kAb(u));return v;};q.prototype.restore=function(){var u;u=this.z4b.pop();if(void 0 === u)throw Error(f.RYb);this.MO=u.M7;this.TIa=u.lCc;};q.prototype.Oec=function(){var u;u=new q(this.options);u.parent=this;return u;};q.prototype.get=function(u){return this.ujb(!1,!1,g.lF.DHa,u);};q.prototype.getAll=function(u){return this.ujb(!0,!0,g.lF.DHa,u);};q.prototype.resolve=function(u){var v;v=this.Oec();v.bind(u).CPb();return v.get(u);};q.prototype.vjb=function(){var y;function u(A){return function(z){z=y.$Kc.bind(y)(z);z.kd.GEb=A;return z;};}function v(){return function(A){return y.kAb.bind(y)(A);};}function w(){return function(A){y.tQb.bind(y)(A);};}function x(A){return function(z){z=y.bind.bind(y)(z);z.kd.GEb=A;return z;};}y=this;return function(A){return {Bnb:x(A),YAb:v(A),JJb:u(A),uQb:w(A)};};};q.prototype.ujb=function(u,v,w,x){var y;y=null;u={P8b:u,Tcc:function(A){return A;},cxc:v,key:void 0,hi:x,LTc:w,value:void 0};if(this.TIa){if((y=this.TIa(u),void 0 === y || null === y))throw Error(f.iXb);}else y=this.b4b()(u);return y;};q.prototype.b4b=function(){var u;u=this;return function(v){var w;w=h.R0(u.v3b,u,v.cxc,v.LTc,v.hi,v.key,v.value,v.P8b);w=v.Tcc(w);return k.resolve(w);};};return q;})();b.Uga=t;},51164:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(72632);b.Be=(function(){return function(n){this.id=d.id();this.a_a=n;};})();b.C5a=(function(){return function(n){this.id=d.id();this.a_a=n;};})();},95817:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.VZc=(function(){function a(){}a.of=function(d,n){var c;c=new a();c.M7=d;c.lCc=n;return c;};return a;})();},62240:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(25640);t=(function(){function n(){this.Wg=new Map();}n.prototype.Swb=function(){return this.Wg;};n.prototype.add=function(c,f){var g;if(null === c || void 0 === c)throw Error(d.o5);if(null === f || void 0 === f)throw Error(d.o5);g=this.Wg.get(c);void 0 !== g?(g.push(f),this.Wg.set(c,g)):this.Wg.set(c,[f]);};n.prototype.get=function(c){if(null === c || void 0 === c)throw Error(d.o5);c=this.Wg.get(c);if(void 0 !== c)return c;throw Error(d.$$a);};n.prototype.remove=function(c){if(null === c || void 0 === c)throw Error(d.o5);if(!this.Wg.delete(c))throw Error(d.$$a);};n.prototype.cMc=function(c){var f;f=this;this.Wg.forEach(function(g,e){g=g.filter(function(h){return !c(h);});0 < g.length?f.Wg.set(e,g):f.Wg.delete(e);});};n.prototype.Fyb=function(c){if(null === c || void 0 === c)throw Error(d.o5);return this.Wg.has(c);};n.prototype.clone=function(){var c;c=new n();this.Wg.forEach(function(f,g){f.forEach(function(e){return c.add(g,e.clone());});});return c;};n.prototype.LUc=function(c){this.Wg.forEach(function(f,g){c(g,f);});};return n;})();b.DXb=t;},22674:function(t,b,a){Object.defineProperty(b,"__esModule",{value:!0});t=a(37425);b.f1c=t;t=a(99700);b.Uga=t.Uga;t=a(5493);b.gz=t.gz;b.om=t.om;b.lF=t.lF;t=a(51164);b.C5a=t.C5a;b.Be=t.Be;t=a(16504);b.aa=t.aa;t=a(91823);b.bPb=t.bPb;t=a(44466);b.UEb=t.UEb;t=a(29385);b.v=t.v;b.uCa=t.uCa;t=a(5923);b.optional=t.optional;t=a(53022);b.Ou=t.Ou;t=a(3342);b.FH=t.FH;t=a(67509);b.gfa=t.gfa;t=a(76311);b.xIb=t.xIb;t=a(11499);b.GDa=t.GDa;t=a(72632);b.id=t.id;t=a(28041);b.qK=t.qK;t=a(41146);b.fQb=t.fQb;b.cPb=t.cPb;b.VEb=t.VEb;b.mQb=t.mQb;t=a(48530);b.NZ=t.NZ;a=a(14577);b.REb=a.REb;},91734:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(72632);t=(function(){function n(c){this.id=d.id();this.Ib=c;}n.prototype.U5b=function(c){this.R0=c;};return n;})();b.g7a=t;},67258:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(37425);t=(function(){function n(c,f){this.key=c;this.value=f;}n.prototype.toString=function(){return this.key === d.aJ?"named: " + this.value.toString() + " ":"tagged: { key:" + this.key.toString() + ", value: " + this.value + " }";};return n;})();b.Metadata=t;},11499:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(37425);t=(function(){function n(){}n.prototype.$vb=function(c){var f;f=Reflect.getMetadata(d.mEa,c);c=Reflect.getMetadata(d.dhb,c);return {Cpb:f,FWc:c || ({})};};n.prototype.Qrc=function(c){return Reflect.getMetadata(d.ehb,c) || [];};return n;})();b.GDa=t;},4595:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.w_b=(function(){return function(a,d){this.I0=a;this.O_a=d;};})();},75262:function(t,b,a){var g,e,h,k,l,m,p,r,q,u,v,w;function d(x,y,A,z,B){var C,D;C=f(A.Ib,B.hi);D=[];C.length === g.oza.Fcb && A.Ib.options.F7 && "function" === typeof B.hi && x.$vb(B.hi).Cpb && (A.Ib.bind(B.hi).CPb(),C=f(A.Ib,B.hi));D=y?C:C.filter(function(F){var H;H=new v.Request(F.hi,A,z,F,B);return F.TP(H);});n(B.hi,D,B,A.Ib);return D;}function n(x,y,A,z){switch(y.length){case g.oza.Fcb:if(A.HAb())return y;x=m.NZ(x);y=e.OYb;y+=m.Uyc(x,A);y+=m.qCb(z,x,f);throw Error(y);case g.oza.iZb:if(!A.isArray())return y;default:if(A.isArray())return y;x=m.NZ(x);y=e.QSb + " " + x;y+=m.qCb(z,x,f);throw Error(y);}}function c(x,y,A,z,B,C){var D;if(null === B){y=d(x,y,z,null,C);D=new v.Request(A,z,null,y,C);A=new q.w_b(z,D);z.U5b(A);}else (y=d(x,y,z,B,C),D=B.zlb(C.hi,y,C));y.forEach(function(F){var H,E,G;H=null;if(C.isArray())H=D.zlb(F.hi,F,C);else {if(F.cache)return;H=D;}if(F.type === h.om.Instance && null !== F.Dq){E=u.mpc(x,F.Dq);if(!z.Ib.options.ZT){G=u.Doc(x,F.Dq);if(E.length < G)throw (F=e.SSb(u.getFunctionName(F.Dq)),Error(F));}E.forEach(function(J){c(x,!1,J.hi,z,H,J);});}});}function f(x,y){var A,z;A=[];z=x.MO;z.Fyb(y)?A=z.get(y):null !== x.parent && (A=f(x.parent,y));return A;}Object.defineProperty(b,"__esModule",{value:!0});g=a(57197);e=a(25640);h=a(5493);k=a(37425);l=a(69523);m=a(48530);p=a(91734);r=a(67258);q=a(4595);u=a(34912);v=a(22929);w=a(23927);b.FQa=function(x){return x.MO;};b.R0=function(x,y,A,z,B,C,D,F){void 0 === F && (F=!1);y=new p.g7a(y);A=new r.Metadata(A?k.rO:k.M4,B);z=new w.oja(z,"",B,A);void 0 !== C && (C=new r.Metadata(C,D),z.zc.push(C));try{return (c(x,F,B,y,null,z),y);}catch(H){throw (l.OAb(H) && y.R0 && m.obc(y.R0.O_a),H);}};b.r6c=function(x,y,A,z){A=new w.oja(h.lF.DHa,"",y,new r.Metadata(A,z));x=new p.g7a(x);return new v.Request(y,x,null,[],A);};},11625:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=(function(){function a(d){this.c2=d;}a.prototype.startsWith=function(d){return 0 === this.c2.indexOf(d);};a.prototype.endsWith=function(d){var n;n=d.split("").reverse().join("");d=this.c2.split("").reverse().join("");return this.startsWith.call({c2:d},n);};a.prototype.contains=function(d){return -1 !== this.c2.indexOf(d);};a.prototype.equals=function(d){return this.c2 === d;};a.prototype.value=function(){return this.c2;};return a;})();b.N_b=t;},34912:function(t,b,a){var g,e,h,k,l,m;function d(p,r,q,u){var v,w,x,y,z,B,C,D,F,H,E,G;v=p.$vb(q);w=v.Cpb;if(void 0 === w)throw Error(e.eYb + " " + r + ".");v=v.FWc;x=Object.keys(v);y=0 === q.length && 0 < x.length?x.length:q.length;x=[];for(var A=0;A < y;A++){z=A;B=u;C=r;D=w;F=v[z.toString()] || [];H=f(F);E=!0 !== H.Ou;D=D[z];G=H.v || H.FH;D=G?G:D;D instanceof g.uCa && (D=D.tN());if(E){E=D === Function;E=D === Object || E || void 0 === D;if(!B && E)throw Error(e.fYb + " argument " + z + " in class " + C + ".");z=new m.oja(h.lF.d7a,H.gfa,D);z.zc=F;F=z;}else F=null;null !== F && x.push(F);}p=n(p,q);return x.concat(p);}function n(p,r){var x,y,A;for(var q=p.Qrc(r),u=[],v=0,w=Object.keys(q);v < w.length;v++){x=w[v];y=q[x];A=f(q[x]);x=new m.oja(h.lF.Q6a,A.gfa || x,A.v || A.FH);x.zc=y;u.push(x);}r=Object.getPrototypeOf(r.prototype).constructor;r !== Object && (p=n(p,r),u=u.concat(p));return u;}function c(p,r){var q,u;r=Object.getPrototypeOf(r.prototype).constructor;if(r !== Object){q=l.getFunctionName(r);q=d(p,q,r,!0);u=q.map(function(v){return v.zc.filter(function(w){return w.key === k.T5;});});u=[].concat.apply([],u).length;q=q.length - u;return 0 < q?q:c(p,r);}return 0;}function f(p){var r;r={};p.forEach(function(q){r[q.key.toString()]=q.value;});return {v:r[k.M4],FH:r[k.rO],gfa:r[k.bia],Ou:r[k.T5]};}Object.defineProperty(b,"__esModule",{value:!0});g=a(29385);e=a(25640);h=a(5493);k=a(37425);l=a(48530);b.getFunctionName=l.getFunctionName;m=a(23927);b.mpc=function(p,r){var q;q=l.getFunctionName(r);return d(p,q,r,!1);};b.Doc=c;},22929:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(72632);t=(function(){function n(c,f,g,e,h){this.id=d.id();this.hi=c;this.I0=f;this.LH=g;this.target=h;this.qMa=[];this.M7=Array.isArray(e)?e:[e];this.UMc=null === g?new Map():null;}n.prototype.zlb=function(c,f,g){c=new n(c,this.I0,this,f,g);this.qMa.push(c);return c;};return n;})();b.Request=t;},23927:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});d=a(37425);n=a(72632);c=a(67258);f=a(11625);t=(function(){function g(e,h,k,l){this.id=n.id();this.type=e;this.hi=k;this.name=new f.N_b(h || "");this.zc=[];e=null;"string" === typeof l?e=new c.Metadata(d.aJ,l):l instanceof c.Metadata && (e=l);null !== e && this.zc.push(e);}g.prototype.Oyb=function(e){for(var h=0,k=this.zc;h < k.length;h++)if(k[h].key === e)return !0;return !1;};g.prototype.isArray=function(){return this.Oyb(d.rO);};g.prototype.fBc=function(e){return this.aWa(d.rO)(e);};g.prototype.kUa=function(){return this.Oyb(d.aJ);};g.prototype.DUa=function(){return this.zc.some(function(e){return e.key !== d.M4 && e.key !== d.rO && e.key !== d.bia && e.key !== d.T5 && e.key !== d.aJ;});};g.prototype.HAb=function(){return this.aWa(d.Scb)(!0);};g.prototype.Vqc=function(){return this.kUa()?this.zc.filter(function(e){return e.key === d.aJ;})[0]:null;};g.prototype.jpc=function(){return this.DUa()?this.zc.filter(function(e){return e.key !== d.M4 && e.key !== d.rO && e.key !== d.bia && e.key !== d.T5 && e.key !== d.aJ;}):null;};g.prototype.aWa=function(e){var h;h=this;return function(k){var p;for(var l=0,m=h.zc;l < m.length;l++){p=m[l];if(p.key === e && p.value === k)return !0;}return !1;};};return g;})();b.oja=t;},40198:function(t,b,a){var c,f,g;function d(e,h,k){var l;h=h.filter(function(m){return null !== m.target && m.target.type === f.lF.Q6a;});l=h.map(k);h.forEach(function(m,p){m=m.target.name.value();e[m]=l[p];});return e;}function n(e,h){var k;if(Reflect.juc(g.t5,e)){k=Reflect.getMetadata(g.t5,e);try{h[k.value]();}catch(l){throw Error(c.m_b(e.name,l.message));}}}Object.defineProperty(b,"__esModule",{value:!0});c=a(25640);f=a(5493);g=a(37425);b.kNc=function(e,h,k){var l;l=null;0 < h.length?(l=h.filter(function(m){return null !== m.target && m.target.type === f.lF.d7a;}).map(k),l=new (e.bind.apply(e,[void 0].concat(l)))(),l=d(l,h,k)):l=new e();n(e,l);return l;};},85933:function(t,b,a){var c,f,g,e,h;function d(k){return function(l){var m,p,r,q,u;m=l.M7;p=l.qMa;r=l.target && l.target.isArray();q=!l.LH || !l.LH.target || !l.target || !l.LH.target.fBc(l.target.hi);if(r && q)return p.map(function(v){return d(k)(v);});r=null;if(!l.target.HAb() || 0 !== m.length){u=m[0];m=u.scope === f.gz.GGa;q=u.scope === f.gz.Request;if(m && u.VJa)return u.cache;if(q && null !== k && k.has(u.id))return k.get(u.id);if(u.type === f.om.b7a)r=u.cache;else if(u.type === f.om.Function)r=u.cache;else if(u.type === f.om.c7a)r=u.Dq;else if(u.type === f.om.a8a && null !== u.AY)r=n("toDynamicValue",u.hi,function(){return u.AY(l.I0);});else if(u.type === f.om.eBa && null !== u.Lx)r=n("toFactory",u.hi,function(){return u.Lx(l.I0);});else if(u.type === f.om.mfb && null !== u.kT)r=n("toProvider",u.hi,function(){return u.kT(l.I0);});else if(u.type === f.om.Instance && null !== u.Dq)r=h.kNc(u.Dq,p,d(k));else throw (p=e.NZ(l.hi),Error(c.eXb + " " + p));"function" === typeof u.KD && (r=u.KD(l.I0,r));m && (u.cache=r,u.VJa=!0);q && null !== k && !k.has(u.id) && k.set(u.id,r);return r;}};}function n(k,l,m){try{return m();}catch(p){if(g.OAb(p))throw Error(c.oUb(k,l.toString()));throw p;}}Object.defineProperty(b,"__esModule",{value:!0});c=a(25640);f=a(5493);g=a(69523);e=a(48530);h=a(40198);b.resolve=function(k){return d(k.R0.O_a.UMc)(k.R0.O_a);};},51580:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});d=a(5493);n=a(75714);t=(function(){function c(f){this.kd=f;}c.prototype.sa=function(){this.kd.scope=d.gz.GGa;return new n.NN(this.kd);};c.prototype.sTa=function(){this.kd.scope=d.gz.sja;return new n.NN(this.kd);};return c;})();b.QTb=t;},61142:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});d=a(51580);n=a(1003);c=a(7190);t=(function(){function f(g){this.kd=g;this.a6=new c.pza(this.kd);this.WHa=new n.Fga(this.kd);this.Sib=new d.QTb(g);}f.prototype.sa=function(){return this.Sib.sa();};f.prototype.sTa=function(){return this.Sib.sTa();};f.prototype.when=function(g){return this.a6.when(g);};f.prototype.hga=function(){return this.a6.hga();};f.prototype.KD=function(g){return this.WHa.KD(g);};return f;})();b.Y5a=t;},1003:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(7190);t=(function(){function n(c){this.kd=c;}n.prototype.KD=function(c){this.kd.KD=c;return new d.pza(this.kd);};return n;})();b.Fga=t;},49825:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});d=a(25640);n=a(5493);c=a(61142);f=a(75714);t=(function(){function g(e){this.kd=e;}g.prototype.to=function(e){this.kd.type=n.om.Instance;this.kd.Dq=e;return new c.Y5a(this.kd);};g.prototype.CPb=function(){if("function" !== typeof this.kd.hi)throw Error("" + d.jXb);this.to(this.kd.hi);};g.prototype.Pp=function(e){this.kd.type=n.om.b7a;this.kd.cache=e;this.kd.AY=null;this.kd.Dq=null;new f.NN(this.kd);};g.prototype.jN=function(e){this.kd.type=n.om.a8a;this.kd.cache=null;this.kd.AY=e;this.kd.Dq=null;return new c.Y5a(this.kd);};g.prototype.uUc=function(e){this.kd.type=n.om.c7a;this.kd.Dq=e;new f.NN(this.kd);};g.prototype.Zf=function(e){this.kd.type=n.om.eBa;this.kd.Lx=e;new f.NN(this.kd);};g.prototype.vUc=function(e){if("function" !== typeof e)throw Error(d.hXb);this.Pp(e);this.kd.type=n.om.Function;};g.prototype.APb=function(e){this.kd.type=n.om.eBa;this.kd.Lx=function(h){return function(){return h.Ib.get(e);};};new f.NN(this.kd);};g.prototype.tfa=function(e){this.kd.type=n.om.mfb;this.kd.kT=e;new f.NN(this.kd);};g.prototype.yUc=function(e){this.jN(function(h){return h.Ib.get(e);});};return g;})();b.RTb=t;},75714:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});d=a(1003);n=a(7190);t=(function(){function c(f){this.kd=f;this.a6=new n.pza(this.kd);this.WHa=new d.Fga(this.kd);}c.prototype.when=function(f){return this.a6.when(f);};c.prototype.hga=function(){return this.a6.hga();};c.prototype.KD=function(f){return this.WHa.KD(f);};return c;})();b.NN=t;},7190:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(1003);a(41146);t=(function(){function n(c){this.kd=c;}n.prototype.when=function(c){this.kd.TP=c;return new d.Fga(this.kd);};n.prototype.hga=function(){this.kd.TP=function(c){return null !== c.target && !c.target.kUa() && !c.target.DUa();};return new d.Fga(this.kd);};return n;})();b.pza=t;},41146:function(t,b,a){var c;function d(f){return function(g){function e(h){return null !== h && null !== h.target && h.target.aWa(f)(g);}e.eEb=new c.Metadata(f,g);return e;};}function n(f,g){f=f.LH;return null !== f?g(f)?!0:n(f,g):!1;}Object.defineProperty(b,"__esModule",{value:!0});t=a(37425);c=a(67258);b.fQb=n;b.cPb=d;a=d(t.aJ);b.VEb=a;b.mQb=function(f){return function(g){var e;if(null !== g){e=g.M7[0];return "string" === typeof f?e.hi === f:f === g.M7[0].Dq;}return !1;};};},14577:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.REb=function(a){return function(d){return function(){for(var n=[],c=0;c < arguments.length;c++)n[c]=arguments[c];return n.forEach(function(f){return a.bind(f).yUc(d);});};};};},69523:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(25640);b.OAb=function(n){return n instanceof RangeError || n.message === d.w0b;};},72632:function(t,b){var a;Object.defineProperty(b,"__esModule",{value:!0});a=0;b.id=function(){return a++;};},48530:function(t,b,a){var e;function d(h){return "function" === typeof h?h.name:"symbol" === typeof h?h.toString():h;}function n(h,k){return null === h.LH?!1:h.LH.hi === k?!0:n(h.LH,k);}function c(h){function k(l,m){var p;void 0 === m && (m=[]);p=d(l.hi);m.push(p);return null !== l.LH?k(l.LH,m):m;}return k(h).reverse().join(" --\x3e ");}function f(h){h.qMa.forEach(function(k){if(n(k,k.hi))throw (k=c(k),Error(e.nUb + " " + k));f(k);});}function g(h){var k;if(h.name)return h.name;h=h.toString();k=h.match(/^function\s*([^\s(]+)/);return k?k[1]:"Anonymous function: " + h;}Object.defineProperty(b,"__esModule",{value:!0});e=a(25640);b.NZ=d;b.qCb=function(h,k,l){var m;m="";h=l(h,k);0 !== h.length && (m="\nRegistered bindings:",h.forEach(function(p){var r;r="Object";null !== p.Dq && (r=g(p.Dq));m=m + "\n " + r;p.TP.eEb && (m=m + " - " + p.TP.eEb);}));return m;};b.obc=f;b.Uyc=function(h,k){var l,m;if(k.DUa() || k.kUa()){l="";m=k.Vqc();k=k.jpc();null !== m && (l+=m.toString() + "\n");null !== k && k.forEach(function(p){l+=p.toString() + "\n";});return " " + h + "\n " + h + " - " + l;}return " " + h;};b.getFunctionName=g;},9680:function(t){var n,c,f,g,e,h,k,l;function b(){return !1;}function a(m){try{if(d(m))return !1;n.call(m);return !0;}catch(p){return !1;}}function d(m){var p;try{p=n.call(m);return e.test(p);}catch(r){return !1;}}n=Function.prototype.toString;c="object" === typeof Reflect && null !== Reflect && Reflect.apply;if("function" === typeof c && "function" === typeof Object.defineProperty)try{f=Object.defineProperty({},"length",{get:function(){throw g;}});g={};c(function(){throw 42;},null,f);}catch(m){m !== g && (c=null);}else c=null;e=/^\s*class\b/;h=Object.prototype.toString;k="function" === typeof Symbol && !!Symbol.toStringTag;l=!((0 in [,]));"object" === typeof document && h.call(document.all) === h.call(document.all) && (b=function(m){var p;if(!(!l && m || "undefined" !== typeof m && "object" !== typeof m))try{p=h.call(m);return ("[object HTMLAllCollection]" === p || "[object HTML document.all class]" === p || "[object HTMLCollection]" === p || "[object Object]" === p) && null == m("");}catch(r){}return !1;});t.exports=c?function(m){if(b(m))return !0;if(!m || "function" !== typeof m && "object" !== typeof m)return !1;try{c(m,null,f);}catch(p){if(p !== g)return !1;}return !d(m) && a(m);}:function(m){var p;if(b(m))return !0;if(!m || "function" !== typeof m && "object" !== typeof m)return !1;if(k)return a(m);if(d(m))return !1;p=h.call(m);return "[object Function]" === p || "[object GeneratorFunction]" === p || (/^\[object HTML/).test(p)?a(m):!1;};},54277:function(t,b,a){var d,n,c;b=a(8435);d=b("Date.prototype.getDay");n=b("Object.prototype.toString");c=a(67226)();t.exports=function(f){if("object" !== typeof f || null === f)f=!1;else if(c)try{d(f);f=!0;}catch(g){f=!1;}else f="[object Date]" === n(f);return f;};},58786:function(t,b,a){var d,n,c,f,g,e,h;b=a(8435);d=a(67226)();n=a(72196);c=a(50326);if(d){f=b("RegExp.prototype.exec");g={};a=function(){throw g;};e={toString:a,valueOf:a};"symbol" === typeof Symbol.toPrimitive && (e[Symbol.toPrimitive]=a);a=function(k){var l;if(!k || "object" !== typeof k)return !1;l=c(k,"lastIndex");if(!l || !n(l,"value"))return !1;try{f(k,e);}catch(m){return m === g;}};}else {h=b("Object.prototype.toString");a=function(k){return !k || "object" !== typeof k && "function" !== typeof k?!1:"[object RegExp]" === h(k);};}t.exports=a;},26302:function(t,b,a){var d,n,c;b=a(8435);d=b("String.prototype.valueOf");n=b("Object.prototype.toString");c=a(67226)();t.exports=function(f){if("string" === typeof f)f=!0;else if(f && "object" === typeof f){if(c)try{d(f);f=!0;}catch(g){f=!1;}else f="[object String]" === n(f);}else f=!1;return f;};},88705:function(t,b,a){var d,n,c,f;b=a(8435);d=b("Object.prototype.toString");n=a(32636)();a=a(63671);if(n){c=b("Symbol.prototype.toString");f=a(/^Symbol\(.*\)$/);t.exports=function(g){if("symbol" === typeof g)return !0;if(!g || "object" !== typeof g || "[object Symbol]" !== d(g))return !1;try{return "symbol" !== typeof g.valueOf()?!1:f(c(g));}catch(e){return !1;}};}else t.exports=function(){return !1;};},14383:function(t){t.exports=Math.abs;},38752:function(t){t.exports=Number.MAX_SAFE_INTEGER || 9007199254740991;},45736:function(t){t.exports=Math.floor;},88562:function(t,b,a){var d;d=a(68806);t.exports=function(n){return ("number" === typeof n || "bigint" === typeof n) && !d(n) && Infinity !== n && -Infinity !== n;};},68806:function(t){t.exports=Number.isNaN || (function(b){return b !== b;});},27130:function(t){t.exports=Math.max;},22400:function(t){t.exports=Math.min;},23654:function(t){t.exports=Math.pow;},96890:function(t){t.exports=Math.round;},82026:function(t,b,a){var d;d=a(68806);t.exports=function(n){return d(n) || 0 === n?n:0 > n?-1:1;};},62082:function(t){function b(a){this.buffer=a;this.position=0;}b.prototype={seek:function(a){this.position=a;},skip:function(a){this.position+=a;},G$:function(){return this.buffer.length - this.position;},jpa:function(){return this.buffer.length;},Au:function(){return this.buffer[this.position++];},wn:function(a){var d;d=this.position;this.position+=a;a=this.buffer;return a.subarray?a.subarray(d,this.position):a.slice(d,this.position);},Bw:function(a){for(var d=0;a--;)d=256 * d + this.buffer[this.position++];return d;},QZa:function(a){for(var d="";a--;)d+=String.fromCharCode(this.buffer[this.position++]);return d;},tj:function(){return this.Bw(2);},Cw:function(){return this.Bw(4);},f1:function(){return this.Bw(8);},dE:function(a){for(var d,n="";a--;)(d=this.Au(),n+=("0123456789ABCDEF")[d >>> 4] + ("0123456789ABCDEF")[d & 15]);return n;},RZa:function(a){for(var d=0,n=0;n < a;n++)d+=this.Au() << (n << 3);return d;},e1:function(){return this.RZa(4);},dz:function(a){this.buffer[this.position++]=a;},DSb:function(a,d){this.position+=d;for(var n=1;n <= d;n++)(this.buffer[this.position - n]=a & 255,a=Math.floor(a / 256));},a4a:function(a){for(var d=a.length,n=0;n < d;n++)this.buffer[this.position++]=a[n];},U2:function(a,d){this.a4a(a.wn(d));}};t.exports=b;},31503:function(t){t.exports=function(b,a){for(var d in b)b.hasOwnProperty(d) && (a[d]=b[d]);return a;};},27E3:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});d=a(13752);n=a(29636);c=a(67566);b["default"]=function(f){var g;f=new d.Sya(f);g=new c.ZYb(f);return new n.YYb(f,g);};},13752:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=(function(){function a(d){this.fAc=d;}a.prototype.wwb=function(){var d;try{d=this.fAc.getItem("gtp");if(d)return JSON.parse(d);}catch(n){}};a.prototype.gl=function(){var d;d=this.wwb();if(d && d.tp)return d.tp.a;};a.prototype.iqc=function(){var d;d=this.lRa();if(d)return d.p25;};a.prototype.jqc=function(){var d;d=this.lRa();if(d)return d.p50;};a.prototype.kqc=function(){var d;d=this.lRa();if(d)return d.p75;};a.prototype.lRa=function(){var d;d=this.wwb();if(d && (d=d.iqr))return d;};return a;})();b.Sya=t;},29636:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=(function(){function a(d,n){this.UF=d;this.Usa=n;}a.prototype.gl=function(){return this.UF.gl();};return a;})();b.YYb=t;},67566:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=(function(){function a(d){this.UF=d;}a.prototype.Usa=function(){var d,n,c;d=this.UF.iqc();n=this.UF.jqc();c=this.UF.kqc();if("number" === typeof d && "number" === typeof n && "number" === typeof c)return (c - d) / n;};return a;})();b.ZYb=t;},15410:function(t,b,a){var f;function d(g){var e,h,k;e=g.sLa;h=g.Rta;k=g.version;g=g.filename;null !== e && void 0 !== e?e:e="https://occ.a.nflxso.net/genc/nrdp";e=("").concat(e,"/").concat(h,"/").concat(k);null !== g && void 0 !== g?g:g="index.release.js";return ("").concat(e,"/").concat(g);}function n(g){return new Promise(function(e,h){globalThis.GFb.ttc.load({url:g,Hcd:!1,async:!0},function(k){200 > k.kOb || 300 <= k.kOb?h(Error(("Failed to load, got a non-2xx response: ").concat(k.kOb))):k.data?e(k.data.toString()):h(Error("Failed to load: no data"));});});}function c(g){return f.__awaiter(this,void 0,void 0,function(){var e,h;return f.__generator(this,function(k){switch(k.label){case 0:return [4,n(g)];case 1:return (e=k.T(),h=("(function() { ").concat(e,"; return module.default; })();"),[2,globalThis.GFb.ttc.eval(h,g)]);}});});}Object.defineProperty(b,"__esModule",{value:!0});b.ICb=function(g){return f.__awaiter(this,void 0,void 0,function(){var e,h,k,l,m,p;return f.__generator(this,function(r){switch(r.label){case 0:e=null !== (p=g.fdd) && void 0 !== p?p:!1;if(!globalThis.GFb)throw Error("nf-package-loader only works on NRD devices. globalThis.nrdp is not defined.");h=d(g);return [4,c(h)];case 1:k=r.T();l=k.Kib;if(l !== g.Rta)throw Error(("Unexpected package name, expected '").concat(g.Rta,"', got '").concat(l,"'"));if(!e && (m=k.Eja,m !== g.version))throw Error(("ella-object: unexpected version, expected ").concat(g.version,", got ").concat(m,". "));return [2,k];}});});};b.hyb=d;b.D$c=c;f=a(22970);},79809:function(t){t.exports="undefined" !== typeof process && "undefined" !== typeof nrdp?nrdp.ha:Date.now;},94030:function(t,b,a){var f;function d(g,e,h,k,l,m,p){this.Tfa=k;this.SU=g;this.QWa=e;this.ED=h;this.Rxc=m;this.KM=p;this.split=l;}function n(){this.V={};this.V["0"]=new d("1","2","1","14","-0.0000100136",0,0);this.V["1"]=new d("3","4","3","20","-0.0000100136",0,0);this.V["3"]=new d("7","8","7","10","1.5",0,0);this.V["7"]=new d("15","16","15","9","4.5",0,0);this.V["15"]=new d("31","32","31","2","5.5",0,0);this.V["31"]=new d("63","64","63","29","-0.0000100136",0,0);this.V["63"]=new d("123","124","123","24","-0.0000100136",0,0);this.V["123"]=new d("123","124","123","0","0",1,.207298);this.V["124"]=new d("123","124","123","0","0",1,.49076);this.V["64"]=new d("125","126","125","4","40.5",0,0);this.V["125"]=new d("125","126","125","0","0",1,-.00157835);this.V["126"]=new d("125","126","125","0","0",1,.934205);this.V["32"]=new d("65","66","65","135","5.5",0,0);this.V["65"]=new d("127","128","128","4","1272.5",0,0);this.V["127"]=new d("127","128","128","0","0",1,-.510333);this.V["128"]=new d("127","128","128","0","0",1,.18363);this.V["66"]=new d("129","130","129","24","-0.0000100136",0,0);this.V["129"]=new d("129","130","129","0","0",1,-.0464542);this.V["130"]=new d("129","130","129","0","0",1,.458833);this.V["16"]=new d("33","34","34","10","2.00001",0,0);this.V["33"]=new d("67","68","67","0","29.5",0,0);this.V["67"]=new d("131","132","131","2","39.5",0,0);this.V["131"]=new d("131","132","131","0","0",1,-.37577);this.V["132"]=new d("131","132","131","0","0",1,.512087);this.V["68"]=new d("133","134","134","140","1.5",0,0);this.V["133"]=new d("133","134","134","0","0",1,.321272);this.V["134"]=new d("133","134","134","0","0",1,-.675396);this.V["34"]=new d("69","70","70","2","24.5",0,0);this.V["69"]=new d("135","136","136","9","28.5",0,0);this.V["135"]=new d("135","136","136","0","0",1,-.0573845);this.V["136"]=new d("135","136","136","0","0",1,-.507455);this.V["70"]=new d("137","138","137","45","-0.0000100136",0,0);this.V["137"]=new d("137","138","137","0","0",1,-.503909);this.V["138"]=new d("137","138","137","0","0",1,.450886);this.V["8"]=new d("17","18","17","4","44189.5",0,0);this.V["17"]=new d("35","36","35","2","21.5",0,0);this.V["35"]=new d("71","72","72","0","19.5",0,0);this.V["71"]=new d("139","140","140","9","2.5",0,0);this.V["139"]=new d("139","140","140","0","0",1,.00403497);this.V["140"]=new d("139","140","140","0","0",1,-.312656);this.V["72"]=new d("141","142","141","135","96",0,0);this.V["141"]=new d("141","142","141","0","0",1,-.465786);this.V["142"]=new d("141","142","141","0","0",1,.159633);this.V["36"]=new d("73","74","73","130","89.5",0,0);this.V["73"]=new d("143","144","144","10","4.5",0,0);this.V["143"]=new d("143","144","144","0","0",1,-.76265);this.V["144"]=new d("143","144","144","0","0",1,-.580804);this.V["74"]=new d("145","146","146","10","16.5",0,0);this.V["145"]=new d("145","146","146","0","0",1,.296357);this.V["146"]=new d("145","146","146","0","0",1,-.691659);this.V["18"]=new d("37","38","38","9","1.5",0,0);this.V["37"]=new d("37","38","38","0","0",1,.993951);this.V["38"]=new d("75","76","75","0","19",0,0);this.V["75"]=new d("147","148","147","39","-0.0000100136",0,0);this.V["147"]=new d("147","148","147","0","0",1,-.346535);this.V["148"]=new d("147","148","147","0","0",1,-.995745);this.V["76"]=new d("147","148","147","0","0",1,-.99978);this.V["4"]=new d("9","10","9","5","4.5",0,0);this.V["9"]=new d("19","20","19","2","4.5",0,0);this.V["19"]=new d("39","40","39","140","7.5",0,0);this.V["39"]=new d("77","78","78","134","6.5",0,0);this.V["77"]=new d("149","150","150","7","11.5",0,0);this.V["149"]=new d("149","150","150","0","0",1,.729843);this.V["150"]=new d("149","150","150","0","0",1,.383857);this.V["78"]=new d("151","152","151","133","4.5",0,0);this.V["151"]=new d("151","152","151","0","0",1,.39017);this.V["152"]=new d("151","152","151","0","0",1,.0434342);this.V["40"]=new d("79","80","79","133","3.5",0,0);this.V["79"]=new d("153","154","154","8","4.5",0,0);this.V["153"]=new d("153","154","154","0","0",1,-.99536);this.V["154"]=new d("153","154","154","0","0",1,-.00943396);this.V["80"]=new d("155","156","155","125","-0.0000100136",0,0);this.V["155"]=new d("155","156","155","0","0",1,.266272);this.V["156"]=new d("155","156","155","0","0",1,.959904);this.V["20"]=new d("41","42","42","10","65.5",0,0);this.V["41"]=new d("81","82","82","7","10.5",0,0);this.V["81"]=new d("157","158","158","2","37.5",0,0);this.V["157"]=new d("157","158","158","0","0",1,-.701873);this.V["158"]=new d("157","158","158","0","0",1,.224649);this.V["82"]=new d("159","160","159","133","9.5",0,0);this.V["159"]=new d("159","160","159","0","0",1,.0955181);this.V["160"]=new d("159","160","159","0","0",1,-.58962);this.V["42"]=new d("83","84","83","39","-0.0000100136",0,0);this.V["83"]=new d("161","162","161","135","31",0,0);this.V["161"]=new d("161","162","161","0","0",1,-.229692);this.V["162"]=new d("161","162","161","0","0",1,.88595);this.V["84"]=new d("163","164","164","1","13.5",0,0);this.V["163"]=new d("163","164","164","0","0",1,-.992157);this.V["164"]=new d("163","164","164","0","0",1,.922159);this.V["10"]=new d("21","22","22","4","486",0,0);this.V["21"]=new d("43","44","44","133","4.5",0,0);this.V["43"]=new d("85","86","86","10","4.5",0,0);this.V["85"]=new d("165","166","166","4","158.5",0,0);this.V["165"]=new d("165","166","166","0","0",1,-.127778);this.V["166"]=new d("165","166","166","0","0",1,.955189);this.V["86"]=new d("165","166","166","0","0",1,-.994012);this.V["44"]=new d("87","88","88","1","3.5",0,0);this.V["87"]=new d("167","168","168","135","7",0,0);this.V["167"]=new d("167","168","168","0","0",1,-.997015);this.V["168"]=new d("167","168","168","0","0",1,.400821);this.V["88"]=new d("169","170","169","130","36",0,0);this.V["169"]=new d("169","170","169","0","0",1,-.898638);this.V["170"]=new d("169","170","169","0","0",1,.56129);this.V["22"]=new d("45","46","45","9","2.5",0,0);this.V["45"]=new d("89","90","90","9","1.5",0,0);this.V["89"]=new d("171","172","171","10","10.5",0,0);this.V["171"]=new d("171","172","171","0","0",1,.573986);this.V["172"]=new d("171","172","171","0","0",1,-.627266);this.V["90"]=new d("173","174","173","31","-0.0000100136",0,0);this.V["173"]=new d("173","174","173","0","0",1,.925273);this.V["174"]=new d("173","174","173","0","0",1,-.994805);this.V["46"]=new d("91","92","91","136","5.5",0,0);this.V["91"]=new d("175","176","175","10","10.5",0,0);this.V["175"]=new d("175","176","175","0","0",1,.548352);this.V["176"]=new d("175","176","175","0","0",1,-.879195);this.V["92"]=new d("177","178","178","8","14.5",0,0);this.V["177"]=new d("177","178","178","0","0",1,.457305);this.V["178"]=new d("177","178","178","0","0",1,-.998992);this.V["2"]=new d("5","6","5","10","2.5",0,0);this.V["5"]=new d("11","12","11","9","4.5",0,0);this.V["11"]=new d("23","24","24","10","4.00001",0,0);this.V["23"]=new d("47","48","48","133","5.5",0,0);this.V["47"]=new d("93","94","93","3","13.5",0,0);this.V["93"]=new d("179","180","179","138","15.5",0,0);this.V["179"]=new d("179","180","179","0","0",1,.658398);this.V["180"]=new d("179","180","179","0","0",1,-.927007);this.V["94"]=new d("181","182","182","3","15.5",0,0);this.V["181"]=new d("181","182","182","0","0",1,-.111351);this.V["182"]=new d("181","182","182","0","0",1,-.99827);this.V["48"]=new d("95","96","95","7","167",0,0);this.V["95"]=new d("183","184","183","132","36.5",0,0);this.V["183"]=new d("183","184","183","0","0",1,.895161);this.V["184"]=new d("183","184","183","0","0",1,-.765217);this.V["96"]=new d("185","186","186","137","6.00001",0,0);this.V["185"]=new d("185","186","186","0","0",1,-.851095);this.V["186"]=new d("185","186","186","0","0",1,.674286);this.V["24"]=new d("49","50","49","137","5.5",0,0);this.V["49"]=new d("97","98","97","5","23.5",0,0);this.V["97"]=new d("187","188","187","3","28.5",0,0);this.V["187"]=new d("187","188","187","0","0",1,.951654);this.V["188"]=new d("187","188","187","0","0",1,-.993808);this.V["98"]=new d("187","188","187","0","0",1,-.99705);this.V["50"]=new d("187","188","187","0","0",1,-.997525);this.V["12"]=new d("25","26","25","8","8.5",0,0);this.V["25"]=new d("51","52","52","10","4.00001",0,0);this.V["51"]=new d("99","100","100","133","5.5",0,0);this.V["99"]=new d("189","190","190","7","40.5",0,0);this.V["189"]=new d("189","190","190","0","0",1,.151839);this.V["190"]=new d("189","190","190","0","0",1,-.855517);this.V["100"]=new d("191","192","192","133","14.5",0,0);this.V["191"]=new d("191","192","192","0","0",1,.86223);this.V["192"]=new d("191","192","192","0","0",1,.544394);this.V["52"]=new d("101","102","101","135","47.5",0,0);this.V["101"]=new d("193","194","194","4","24.5",0,0);this.V["193"]=new d("193","194","194","0","0",1,.946185);this.V["194"]=new d("193","194","194","0","0",1,.811859);this.V["102"]=new d("193","194","194","0","0",1,-.991561);this.V["26"]=new d("53","54","54","132","6.5",0,0);this.V["53"]=new d("103","104","103","131","85",0,0);this.V["103"]=new d("195","196","196","134","16.5",0,0);this.V["195"]=new d("195","196","196","0","0",1,.0473538);this.V["196"]=new d("195","196","196","0","0",1,-.999401);this.V["104"]=new d("197","198","198","8","15.5",0,0);this.V["197"]=new d("197","198","198","0","0",1,.816129);this.V["198"]=new d("197","198","198","0","0",1,-.99322);this.V["54"]=new d("105","106","105","133","3.5",0,0);this.V["105"]=new d("105","106","105","0","0",1,-.998783);this.V["106"]=new d("199","200","199","39","-0.0000100136",0,0);this.V["199"]=new d("199","200","199","0","0",1,.528588);this.V["200"]=new d("199","200","199","0","0",1,-.998599);this.V["6"]=new d("13","14","14","10","7.5",0,0);this.V["13"]=new d("27","28","28","133","7.5",0,0);this.V["27"]=new d("55","56","56","10","4.5",0,0);this.V["55"]=new d("107","108","107","3","3.5",0,0);this.V["107"]=new d("201","202","201","4","17.5",0,0);this.V["201"]=new d("201","202","201","0","0",1,-.379512);this.V["202"]=new d("201","202","201","0","0",1,.15165);this.V["108"]=new d("203","204","203","57","-0.0000100136",0,0);this.V["203"]=new d("203","204","203","0","0",1,-.884606);this.V["204"]=new d("203","204","203","0","0",1,.265406);this.V["56"]=new d("109","110","109","136","6.5",0,0);this.V["109"]=new d("205","206","205","4","157.5",0,0);this.V["205"]=new d("205","206","205","0","0",1,-.0142737);this.V["206"]=new d("205","206","205","0","0",1,.691279);this.V["110"]=new d("205","206","205","0","0",1,-.998086);this.V["28"]=new d("57","58","58","138","11.5",0,0);this.V["57"]=new d("111","112","112","2","6.5",0,0);this.V["111"]=new d("207","208","208","7","67.5",0,0);this.V["207"]=new d("207","208","208","0","0",1,.763925);this.V["208"]=new d("207","208","208","0","0",1,-.309645);this.V["112"]=new d("209","210","209","40","-0.0000100136",0,0);this.V["209"]=new d("209","210","209","0","0",1,-.306635);this.V["210"]=new d("209","210","209","0","0",1,.556696);this.V["58"]=new d("113","114","113","138","50.5",0,0);this.V["113"]=new d("211","212","212","8","25.5",0,0);this.V["211"]=new d("211","212","212","0","0",1,.508234);this.V["212"]=new d("211","212","212","0","0",1,.793551);this.V["114"]=new d("211","212","212","0","0",1,-.998438);this.V["14"]=new d("29","30","29","134","27.5",0,0);this.V["29"]=new d("59","60","60","7","17.5",0,0);this.V["59"]=new d("115","116","115","135","5.5",0,0);this.V["115"]=new d("213","214","214","137","5.5",0,0);this.V["213"]=new d("213","214","214","0","0",1,.401747);this.V["214"]=new d("213","214","214","0","0",1,.0367503);this.V["116"]=new d("215","216","216","8","5.5",0,0);this.V["215"]=new d("215","216","216","0","0",1,-.0241984);this.V["216"]=new d("215","216","216","0","0",1,-.999046);this.V["60"]=new d("117","118","117","0","12.5",0,0);this.V["117"]=new d("217","218","218","132","5.5",0,0);this.V["217"]=new d("217","218","218","0","0",1,-.997294);this.V["218"]=new d("217","218","218","0","0",1,.210398);this.V["118"]=new d("219","220","219","137","1.5",0,0);this.V["219"]=new d("219","220","219","0","0",1,-.55763);this.V["220"]=new d("219","220","219","0","0",1,.074493);this.V["30"]=new d("61","62","62","133","42.5",0,0);this.V["61"]=new d("119","120","119","135","5.5",0,0);this.V["119"]=new d("221","222","222","4","473.5",0,0);this.V["221"]=new d("221","222","222","0","0",1,-.920213);this.V["222"]=new d("221","222","222","0","0",1,-.17615);this.V["120"]=new d("223","224","224","5","144",0,0);this.V["223"]=new d("223","224","224","0","0",1,-.954295);this.V["224"]=new d("223","224","224","0","0",1,-.382538);this.V["62"]=new d("121","122","121","133","50",0,0);this.V["121"]=new d("225","226","226","10","18.5",0,0);this.V["225"]=new d("225","226","226","0","0",1,-.0731343);this.V["226"]=new d("225","226","226","0","0",1,.755454);this.V["122"]=new d("227","228","228","0","30",0,0);this.V["227"]=new d("227","228","228","0","0",1,.25);this.V["228"]=new d("227","228","228","0","0",1,-.997101);}function c(g,e,h,k,l,m){this.Iva=l;this.Bma=m;}b=a(21457);f=a(79809);a={};a.k8b=new (function(){this.E2b=f();this.hb=0;this.update=function(){this.hb=f() - this.E2b;};this.type="num";})();a.Vyc=new (function(){this.type="cat";})();a.Wyc=new (function(){this.type="cat";})();a.Yyc=new (function(){this.type="cat";})();a.Zyc=new (function(){this.type="cat";})();a.Xyc=new (function(){this.type="cat";})();a.$yc=new (function(){this.type="cat";})();a.azc=new (function(){this.type="cat";})();a.bzc=new (function(){this.type="cat";})();a.czc=new (function(){this.type="cat";})();a.dzc=new (function(){this.type="cat";})();a.ezc=new (function(){this.type="cat";})();a.fzc=new (function(){this.type="cat";})();a.hzc=new (function(){this.type="cat";})();a.izc=new (function(){this.type="cat";})();a.jzc=new (function(){this.type="cat";})();a.gzc=new (function(){this.type="cat";})();a.d9b=new (function(){this.update=function(g){for(var e in g.qc)if("becauseYouAdded" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.e9b=new (function(){this.update=function(g){for(var e in g.qc)if("becauseYouLiked" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.g9b=new (function(){this.update=function(g){for(var e in g.qc)if("billboard" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.Ucc=new (function(){this.update=function(g){for(var e in g.qc)if("continueWatching" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.f9b=new (function(){this.update=function(g){for(var e in g.qc)if("bigRow" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.doc=new (function(){this.update=function(g){for(var e in g.qc)if("genre" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.iDc=new (function(){this.update=function(g){for(var e in g.qc)if("netflixOriginals" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.rDc=new (function(){this.update=function(g){for(var e in g.qc)if("newRelease" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.yIc=new (function(){this.update=function(g){for(var e in g.qc)if("popularTitles" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.gg=new (function(){this.update=function(g){for(var e in g.qc)if("queue" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.kLc=new (function(){this.update=function(g){for(var e in g.qc)if("recentlyAdded" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.jRc=new (function(){this.update=function(g){for(var e in g.qc)if("similars" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.MUc=new (function(){this.update=function(g){for(var e in g.qc)if("trendingNow" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.iVc=new (function(){this.update=function(g){for(var e in g.qc)if("ultraHD" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.CXc=new (function(){this.update=function(g){for(var e in g.qc)if("watchAgain" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.AUc=new (function(){this.update=function(g){for(var e in g.qc)if("topTen" === g.qc[e].context){this.hb=Math.max(g.qc[e].list.length,this.hb);break;}};this.type="num";this.hb=0;})();a.bdc=new (function(){this.type="cat";})();a.cdc=new (function(){this.type="cat";})();a.ddc=new (function(){this.type="cat";})();a.edc=new (function(){this.type="cat";})();a.fdc=new (function(){this.type="cat";})();a.gdc=new (function(){this.type="cat";})();a.hdc=new (function(){this.type="cat";})();a.idc=new (function(){this.type="cat";})();a.jdc=new (function(){this.type="cat";})();a.kdc=new (function(){this.type="cat";})();a.ldc=new (function(){this.type="cat";})();a.mdc=new (function(){this.type="cat";})();a.ndc=new (function(){this.type="cat";})();a.odc=new (function(){this.type="cat";})();a.pdc=new (function(){this.type="cat";})();a.qdc=new (function(){this.type="cat";})();a.rdc=new (function(){this.type="cat";})();a.sdc=new (function(){this.type="cat";})();a.tdc=new (function(){this.type="cat";})();a.udc=new (function(){this.type="cat";})();a.vdc=new (function(){this.type="cat";})();a.wdc=new (function(){this.type="cat";})();a.xdc=new (function(){this.type="cat";})();a.ydc=new (function(){this.type="cat";})();a.zdc=new (function(){this.type="cat";})();a.Adc=new (function(){this.type="cat";})();a.Bdc=new (function(){this.type="cat";})();a.Cdc=new (function(){this.type="cat";})();a.Ddc=new (function(){this.type="cat";})();a.Edc=new (function(){this.type="cat";})();a.Fdc=new (function(){this.type="cat";})();a.Gdc=new (function(){this.type="cat";})();a.Hdc=new (function(){this.type="cat";})();a.Idc=new (function(){this.type="cat";})();a.Jdc=new (function(){this.type="cat";})();a.Kdc=new (function(){this.type="cat";})();a.Ldc=new (function(){this.type="cat";})();a.Mdc=new (function(){this.type="cat";})();a.Ndc=new (function(){this.type="cat";})();a.Odc=new (function(){this.type="cat";})();a.Pdc=new (function(){this.type="cat";})();a.Qdc=new (function(){this.type="cat";})();a.Rdc=new (function(){this.type="cat";})();a.Sdc=new (function(){this.type="cat";})();a.Tdc=new (function(){this.type="cat";})();a.Udc=new (function(){this.type="cat";})();a.Vdc=new (function(){this.type="cat";})();a.Wdc=new (function(){this.type="cat";})();a.Xdc=new (function(){this.type="cat";})();a.Ydc=new (function(){this.type="cat";})();a.Zdc=new (function(){this.type="cat";})();a.$dc=new (function(){this.type="cat";})();a.aec=new (function(){this.type="cat";})();a.bec=new (function(){this.type="cat";})();a.cec=new (function(){this.type="cat";})();a.dec=new (function(){this.type="cat";})();a.eec=new (function(){this.type="cat";})();a.fec=new (function(){this.type="cat";})();a.gec=new (function(){this.type="cat";})();a.hec=new (function(){this.type="cat";})();a.iec=new (function(){this.type="cat";})();a.jec=new (function(){this.type="cat";})();a.kec=new (function(){this.type="cat";})();a.lec=new (function(){this.type="cat";})();a.mec=new (function(){this.type="cat";})();a.nec=new (function(){this.type="cat";})();a.oec=new (function(){this.type="cat";})();a.pec=new (function(){this.type="cat";})();a.qec=new (function(){this.type="cat";})();a.rec=new (function(){this.type="cat";})();a.sec=new (function(){this.type="cat";})();a.tec=new (function(){this.type="cat";})();a.uec=new (function(){this.type="cat";})();a.vec=new (function(){this.type="cat";})();a.wec=new (function(){this.type="cat";})();a.xec=new (function(){this.type="cat";})();a.yec=new (function(){this.type="cat";})();a.zec=new (function(){this.type="cat";})();a.Aec=new (function(){this.type="cat";})();a.qLc=new (function(){this.type="cat";})();a.rLc=new (function(){this.type="cat";})();a.sLc=new (function(){this.type="cat";})();a.tLc=new (function(){this.type="cat";})();a.uLc=new (function(){this.type="cat";})();a.vLc=new (function(){this.type="cat";})();a.wLc=new (function(){this.type="cat";})();a.xLc=new (function(){this.type="cat";})();a.yLc=new (function(){this.type="cat";})();a.zLc=new (function(){this.type="cat";})();a.ALc=new (function(){this.type="cat";})();a.BLc=new (function(){this.type="cat";})();a.CLc=new (function(){this.type="cat";})();a.DLc=new (function(){this.type="cat";})();a.ELc=new (function(){this.type="cat";})();a.FLc=new (function(){this.type="cat";})();a.GLc=new (function(){this.type="cat";})();a.HLc=new (function(){this.type="cat";})();a.ILc=new (function(){this.type="cat";})();a.JLc=new (function(){this.type="cat";})();a.KLc=new (function(){this.type="cat";})();a.LLc=new (function(){this.type="cat";})();a.MLc=new (function(){this.type="cat";})();a.hTc=new (function(){this.update=function(g){"down" === g.direction && this.hb++;};this.type="num";this.hb=0;})();a.jTc=new (function(){this.update=function(g){"right" === g.direction && this.hb++;};this.type="num";this.hb=0;})();a.iTc=new (function(){this.update=function(g){"left" === g.direction && this.hb++;};this.type="num";this.hb=0;})();a.kTc=new (function(){this.update=function(g){"up" === g.direction && this.hb++;};this.type="num";this.hb=0;})();a.GBc=new (function(){this.hb=0;this.update=function(g){this.hb=Math.max(this.hb,g.rowIndex);};this.type="num";})();a.HBc=new (function(){this.hb=0;this.update=function(g){this.hb=Math.max(this.hb,g.tpb);};this.type="num";})();a.NBc=new (function(){this.PO=this.hb=0;this.update=function(g){this.PO++;this.hb=1 * (this.hb + g.rowIndex) / this.PO;};this.type="num";})();a.OBc=new (function(){this.PO=this.hb=0;this.update=function(g){this.PO++;return this.hb=1 * (this.hb + g.tpb) / this.PO;};this.type="num";})();a.lJc=new (function(){this.type="num";})();a.mJc=new (function(){this.type="num";})();n.prototype.KM=function(g){return this.Akb(this.V["0"].FLb(g),g);};n.prototype.Akb=function(g,e){return "string" == typeof g?this.Akb(this.V[g].FLb(e),e):g;};d.prototype.FLb=function(g){switch(this.Rxc){case 0:switch(g.features[this.Tfa].type){case "cat":return null === g.features[this.Tfa].value?this.QWa:"missing" == g.features[this.Tfa].value?this.ED:this.SU;case "num":return null === g.features[this.Tfa].value?this.ED:g.features[this.Tfa].value < this.split?this.SU:this.QWa;default:return this.ED;}case 1:return this.KM;default:return this.KM;}};b.declare({eca:["modelSelector","modelone"],$bc:["colEpisodeList",5],Iuc:["holdDuration",15E3],lLb:["rowFirst",2],spb:["colFirst",5],mLb:["rowScroll",2],upb:["colScroll",6],NNc:["rowScrollHorizontal",6],sOc:["searchTop",3],urb:["cwFirst",2],faa:["horizontalItemsFocusedMode",3],Uxc:["itemsPerRank",1],uBc:["maxNumberPayloadsStored",10],KDb:["maxNumberTitlesScheduled",5],q7c:["enableDetailedLogging",!0],ucd:["rowStep",20],a6c:["colStep",15],vbd:["pageRows",100],ubd:["pageColumns",75],$Va:["maskParamsList",new (function(){var g,e;this.$Va=[];this.Ep={};this.Iva=20;this.Bma=15;for(g=0;100 > g;g++)for(e=0;75 > e;e++)(Math.floor(g / this.Iva) + "_" + Math.floor(e / this.Bma) in this.Ep) || (this.Ep[Math.floor(g / this.Iva) + "_" + Math.floor(e / this.Bma)]=1,this.$Va.push(new c("grid",10,5,5,Math.floor(g / this.Iva),Math.floor(e / this.Bma))));})().$Va],V:["nodes",new n().V],mapping:["mapping",{HBc:"0",OBc:"1",GBc:"2",NBc:"3",k8b:"4",kTc:"5",iTc:"6",jTc:"7",hTc:"8",mJc:"9",lJc:"10",Vyc:"11",Wyc:"12",Yyc:"13",Zyc:"14",Xyc:"15",$yc:"16",azc:"17",bzc:"18",czc:"19",dzc:"20",ezc:"21",fzc:"22",gzc:"23",hzc:"24",izc:"25",jzc:"26",qLc:"27",rLc:"28",sLc:"29",tLc:"30",uLc:"31",vLc:"32",wLc:"33",xLc:"34",yLc:"35",zLc:"36",ALc:"37",BLc:"38",CLc:"39",DLc:"40",ELc:"41",FLc:"42",GLc:"43",HLc:"44",ILc:"45",JLc:"46",KLc:"47",LLc:"48",MLc:"49",bdc:"50",cdc:"51",ddc:"52",edc:"53",fdc:"54",gdc:"55",hdc:"56",idc:"57",jdc:"58",kdc:"59",ldc:"60",mdc:"61",ndc:"62",odc:"63",pdc:"64",qdc:"65",rdc:"66",sdc:"67",tdc:"68",udc:"69",vdc:"70",wdc:"71",xdc:"72",ydc:"73",zdc:"74",Adc:"75",Bdc:"76",Cdc:"77",Ddc:"78",Edc:"79",Fdc:"80",Gdc:"81",Hdc:"82",Idc:"83",Jdc:"84",Kdc:"85",Ldc:"86",Mdc:"87",Ndc:"88",Odc:"89",Pdc:"90",Qdc:"91",Rdc:"92",Sdc:"93",Tdc:"94",Udc:"95",Vdc:"96",Wdc:"97",Xdc:"98",Ydc:"99",Zdc:"100",$dc:"101",aec:"102",bec:"103",cec:"104",dec:"105",eec:"106",fec:"107",gec:"108",hec:"109",iec:"110",jec:"111",kec:"112",lec:"113",mec:"114",nec:"115",oec:"116",pec:"117",qec:"118",rec:"119",sec:"120",tec:"121",uec:"122",vec:"123",wec:"124",xec:"125",yec:"126",zec:"127",Aec:"128",CXc:"129",kLc:"130",jRc:"131",gg:"132",Ucc:"133",doc:"134",MUc:"135",AUc:"136",g9b:"137",rDc:"138",iVc:"139",yIc:"140",d9b:"141",f9b:"142",e9b:"143",iDc:"144"}],features:["features",a],B4c:["_modelName","tree"],y4c:["_format","xgboost"],A4c:["_itemsToKeep",5],z4c:["_itemsThreshold",null],B5c:["cacheLimit",20]});t.exports={config:b,bad:c,x6c:d};},45578:function(t){t.exports={ME:{$Ga:0,Sfb:1,Yp:2,name:["transient","semiTransient","permanent"]},GE:{T8a:0,Rfb:1,Yia:2,s5:3,fF:100,name:["firstLoad","scrollHorizontal","search","playFocus"]},j4c:{T3c:0,h1c:1,IZc:2,fF:100,name:["trailer","montage","content"]},cC:{jab:0,ufb:1,b1b:2,uVb:3,fF:100,name:["left","right","up","down"]},T4:{DUb:0,Yia:1,B0c:2,W_c:3,aZc:4,z0c:5,xTb:6,fF:100,name:("continueWatching search grid episode billboard genre bigRow").split(" ")},yV:{s5:0,p7a:1,fF:100,name:["playFocused","detailsOpened"]}};},90638:function(t,b,a){var c,f,g,e,h,k,l,m,p,r;function d(q,u){this.yn=q;this.rq=u;}function n(q){this.sb=q;this.reset();}c=a(79809);f=a(45578);b=a(76122);g=a(94030).config;e=b.fpc;h=b.Hoc;k=b.aic;l=b.wEc;m=b.vEc;p=b.uEc;r=b.Fub;n.prototype.constructor=n;n.prototype.reset=function(){this.jkb=void 0;this.Sn=[];this.ckb=this.dkb=!1;};n.prototype.update=function(q,u){var v;this.Sn && (this.Sn=this.Sn.filter(this.SQc,this));if(!1 === this.dkb){v=e(q.qc).slice(0,g.urb);0 < v.length && (this.nS(v,f.ME.Yp),this.dkb=!0,this.Sn=this.CU(v.concat(this.Sn)));}!1 === this.ckb && (v=h(q.qc).slice(0,g.urb),0 < v.length && (this.nS(v,f.ME.Yp),this.ckb=!0,this.Sn=this.CU(v.concat(this.Sn))));switch(u){case f.GE.T8a:u=this.Etc(q);break;case f.GE.Rfb:u=this.Ttc(q);break;case f.GE.Yia:u=this.Utc(q);break;case f.GE.s5:u=this.Otc(q);break;default:u=this.Atc(q);}this.jkb=q;return u;};n.prototype.Etc=function(q){q=l(q.qc,g.lLb,g.spb);this.nS(q,f.ME.Yp);return this.Sn=this.CU(this.Sn.concat(q));};n.prototype.Ttc=function(q){var u,v;this.sb.log("handleScrollHorizontal");u=q.qc;q=l(u,g.mLb,g.upb);v=k(u,this.jkb.qc);u=u[v].list.slice(0,g.NNc);u.concat(q);this.nS(u,f.ME.$Ga);return this.CU(u.concat(this.Sn));};n.prototype.nS=function(q,u){q.forEach(function(v){if(void 0 === v.fK || v.fK < u)v.fK=u;void 0 === v.gN && (v.gN=c());void 0 === v.ip && (v.ip=c());});};n.prototype.Utc=function(q){this.sb.log("handleSearch");q=m(q.qc,g.sOc);this.nS(q,f.ME.Sfb);this.Sn=q.concat(this.Sn);return this.Sn=this.CU(this.Sn);};n.prototype.Otc=function(q){var u,v,w,x,y;this.sb.log("handlePlayFocus: ",g.faa);u=q.direction;v=q.qc;q=[];w=r(v);if(void 0 !== w.yn)switch((q.push(w),u)){case f.cC.ufb:for(u=1;u < g.faa;u++)q.push(new d(w.yn,w.rq + u));q.push(new d(w.yn - 1,w.rq));q.push(new d(w.yn + 1,w.rq));break;case f.cC.jab:for(u=1;u < g.faa;u++)q.push(new d(w.yn,w.rq - u));q.push(new d(w.yn - 1,w.rq));q.push(new d(w.yn + 1,w.rq));break;case f.cC.b1b:q.push(new d(w.yn - 1,w.rq));for(u=1;u <= g.faa / 2;u++)(q.push(new d(w.yn,w.rq + u)),q.push(new d(w.yn,w.rq - u)));break;case f.cC.uVb:for((q.push(new d(w.yn + 1,w.rq)),u=1);u <= g.faa / 2;u++)(q.push(new d(w.yn,w.rq + u)),q.push(new d(w.yn,w.rq - u)));}x=[];q.forEach(function(A){y=p(v,A.yn,A.rq);void 0 !== y && x.push(y);});this.nS(x,f.ME.$Ga);return this.CU(x.concat(this.Sn));};n.prototype.Atc=function(q){this.sb.log("ModelOne: handleDefaultCase");q=l(q.qc,g.mLb,g.upb);this.nS(q,f.ME.$Ga);return this.CU(q.concat(this.Sn));};n.prototype.SQc=function(q){return q.fK == f.ME.Yp | q.fK == f.ME.Sfb & c() - q.gN < g.Iuc;};n.prototype.CU=function(q){var u,v,w,x,y,A,z;u=[];v={};x=0;y=q.length;for(w=0;w < y;w++){A=q[w].J;z=q[w];!1 === (A in v)?(u.push(z),v[A]=x,x++):(A=u[v[A]],z.ip < A.ip && (A.ip=z.ip),z.fK > A.fK && (A.fK=z.fK),z.gN > A.gN && (A.gN=z.gN));}return u;};t.exports=n;},7795:function(t){function b(d,n){var c;if(void 0 === n || "function" !== typeof n || "string" !== typeof d)throw new TypeError("EventEmitter: addEventListener requires a string and a function as arguments");if(void 0 === this.vi)return (this.vi={},this.vi[d]=[n],!0);c=this.vi[d];return void 0 === c?(this.vi[d]=[n],!0):0 > c.indexOf(n)?(c.push(n),!0):!1;}function a(d,n){d=this.vi?this.vi[d]:void 0;if(!d)return !1;d.forEach(function(c){c(n);});return !0;}t.exports={addEventListener:b,on:b,removeEventListener:function(d,n){var c;if(void 0 === n || "function" !== typeof n || "string" !== typeof d)throw new TypeError("EventEmitter: removeEventListener requires a string and a function as arguments");if(void 0 === this.vi)return !1;c=this.vi[d];if(void 0 === c)return !1;n=c.indexOf(n);if(0 > n)return !1;if(1 === c.length)return (delete this.vi[d],!0);c.splice(n,1);return !0;},oq:a,emit:a,removeAllListeners:function(d){this.vi && (void 0 === d?delete this.vi:delete this.vi[d]);return this;}};},65267:function(t){function b(d,n,c,f){d.trace(":",c,":",f);n(f);}function a(d){this.listeners=[];this.console=d;}a.prototype.constructor=a;a.prototype.addEventListener=function(d,n,c,f){c=f?c.bind(f):c;f=!1;if(d){this.console && (c=b.bind(null,this.console,c,n));if("function" === typeof d.addEventListener)f=d.addEventListener(n,c);else if("function" === typeof d.addListener)f=d.addListener(n,c);else throw Error("Emitter does not have a function to add listeners for '" + n + "'");this.listeners.push([d,n,c]);}return f;};a.prototype.on=a.prototype.addEventListener;a.prototype.clear=function(){var d;d=this.listeners.length;this.listeners.forEach(function(n){var c,f;c=n[0];f=n[1];n=n[2];"function" === typeof c.removeEventListener?c.removeEventListener(f,n):"function" === typeof c.removeListener && c.removeListener(f,n);});this.listeners=[];this.console && this.console.trace("removed",d,"listener(s)");};t.exports=a;},41628:function(t,b,a){t.exports={EventEmitter:a(7795),gf:a(65267)};},99886:function(t,b,a){var f,g,e,h,k,l,m;function d(p,r,q,u,v,w){this.R=this.J=p;this.priority=r;this.od=q;w && w.ff && (this.ff=w.ff);void 0 !== u && (this.Q0=u);this.ip=v;this.Cb=w;}function n(p,r,q,u,v){e(void 0 !== u,"video preparer is null");e(void 0 !== v,"ui preparer is null");this.sb=r || console;this.sb=r;this.xa=q;this.P4b=u;this.G4b=v;this.ikb=l.bZa;this.KW=[];this.KJa=!1;this.f6=0;new m().on(l,"changed",c,this);this.reset();}function c(){this.sb.log("config changed");l.bZa && (this.ikb=l.bZa);l.eca !== this.EW && (this.reset(),this.l_a());}f=a(79809);g=a(45578);b=a(76122);e=b.assert;h=b.Fub;k=a(90638);l=a(94030).config;m=a(41628).gf;l.declare({bZa:["ppmConfig",{AZc:{MFb:0,LFb:2,IFb:0,JFb:5,eNb:0},A3c:{MFb:0,LFb:1,IFb:0,JFb:3,eNb:1E3},PZc:{MFb:0,LFb:1,IFb:0,JFb:3,eNb:1E3}}]});n.prototype.constructor=n;n.prototype.reset=function(){this.uIa=!0;this.EW=l.eca;this.sb.log("create model: " + l.eca,l.lLb,l.spb);switch(l.eca){case "modelone":this.EW=new k(this.sb);break;default:this.EW=new k(this.sb);}};n.prototype.l_a=function(){var r,q;if(!1 === this.KJa){this.KJa=!0;for(var p=0;p < this.KW.length;p++){this.sb.log("PlayPredictionModel replay: ",JSON.stringify(this.KW[p]));r=this.$pb(this.KW[p]);q=this.Gvb(r);this.EW.update(r,q);this.uIa=!1;}this.KW=[];}};n.prototype.update=function(p){var r,q,u;this.sb.log("PlayPredictionModel update: ",JSON.stringify(p));if(p && p.qc && p.qc[0]){!1 === this.KJa && this.KW.length < l.uBc && this.KW.push(p);r=this.$pb(p);q=this.Gvb(r);this.sb.log("actionType",q);r="mlmodel" == l.eca?this.EW.update(p,q):this.EW.update(r,q);r=this.$nc(r,l.Uxc || 1);this.sb.log("PlayPredictionModel.prototype.update() - returnedList: ",JSON.stringify(r));0 === this.f6 && (this.f6=f(),this.xa && this.xa.Cda && this.xa.Cda({Xhc:this.f6}));if(this.xa && this.xa.vMc){this.ppc();u=[];r.forEach(function(v){u.push({Odd:v.J});});JSON.stringify(p);JSON.stringify(r);}this.P4b.dT(r);this.G4b.dT(r);this.uIa=!1;}};n.prototype.ppc=function(){f();};n.prototype.Cda=function(){this.f6=f();this.xa && this.xa.Cda && this.xa.Cda({Xhc:this.f6});};n.prototype.$pb=function(p){var r,q,u,v,w;r={};u=p.qc || [];v=(function(x){var y,A;y={};w=g.T4.name.indexOf(x.context);y.context=0 <= w?w:g.T4.fF;y.rowIndex=x.rowIndex;y.requestId=x.requestId;y.list=[];q=x.list || [];q.forEach((function(z){A={J:z.J,od:z.od,index:z.index,Q0:z.Q0,Fua:z.Fua,list:z.list,Cb:z.Cb};void 0 !== z.property && (w=g.yV.name.indexOf(z.property),A.property=0 <= w?w:g.yV.fF);y.list.push(A);}).bind(this));r.qc.push(y);}).bind(this);if(void 0 !== p.direction){w=g.cC.name.indexOf(p.direction);r.direction=0 <= w?w:g.cC.fF;}void 0 !== p.N9 && (r.$7c=p.N9.rowIndex,r.Z7c=p.N9.fcc);r.N9=p.N9;r.qc=[];u.forEach(v);return r;};n.prototype.Gvb=function(p){var r,q,u;r=p.direction || g.cC.fF;q=p.N9;u=p.qc || [];!0 === this.uIa?p=g.GE.T8a:!0 === u.some(this.ouc)?(p=g.GE.s5,this.uva(u,r,q)):p=u[0].context === g.T4.Yia?g.GE.Yia:r === g.cC.ufb || r === g.cC.jab?g.GE.Rfb:g.GE.fF;return p;};n.prototype.ouc=function(p){return (p.list || []).some(function(r){return r.property === g.yV.s5 || r.property === g.yV.p7a;});};n.prototype.uva=function(p,r,q){var u,v;this.sb.log("reportPlayFocusEvent: ",r,q);u={};v=h(p);this.xa && this.xa.uva && (u.G7c=f(),u.direction=g.cC.name[r],q && (u.rowIndex=q.rowIndex,u.tpb=q.fcc),void 0 !== v.yn && (u.requestId=p[v.yn].requestId),this.xa.uva && this.xa.uva(u));};n.prototype.$nc=function(p,r){for(var q=p.length,u=[],v,w,x,y,A=0;A < q;A++){w=p[A];v=Math.floor(A / r) + 1;if(void 0 !== w.list){x=w.list;y=x.length;for(var z=0;z < Math.min(l.$bc,y) && !(x[z].ip=w.ip,this.Jlb(x[z],v,u),u.length >= l.KDb);z++);}else this.Jlb(w,v,u);if(u.length >= l.KDb)break;}return u;};n.prototype.Jlb=function(p,r,q){var v,w;function u(x){x.ff && (x.Cb || (x.Cb={}),x.Cb.ff=x.ff);return x.Cb;}v=p.Fua;if(void 0 !== v && v instanceof Array)v.forEach(function(x){void 0 !== x.J && (w=u(x),q.push(new d(x.J,r,x.od,x.Q0,p.ip,w)));});else if(void 0 !== v && void 0 !== v.J){v=p.Fua;w=u(v);q.push(new d(v.J,r,v.od,v.Q0,p.ip,w));}void 0 !== p.J && (w=u(p),q.push(new d(p.J,r,p.od,p.Q0,p.ip,w)));};n.prototype.XQ=function(p){var r;r=this.ikb;return p?r[p]:r;};t.exports=n;},76122:function(t,b,a){var n;function d(c){for(var f="",g=0;g < c.length;g++)f+=c[g].J + "|";return f;}n=a(45578);t.exports={assert:function(c,f){if(!c)throw Error("PlayPredictionModel assertion failed" + (f?" : " + f:""));},F9c:function(c,f,g){Array.prototype.splice.apply(c,[f,0].concat(g));},fpc:function(c){for(var f=[],g=0;g < c.length;g++)if(c[g].context === n.T4.DUb){f=c[g].list;break;}return f;},Hoc:function(c){for(var f=[],g=0;g < c.length;g++)if(c[g].context === n.T4.xTb){f=c[g].list;break;}return f;},aic:function(c,f){for(var g=0,e,h,k,l=0,m=c.length - 1;l < m;l++){e=d(c[l].list || []);k=!1;for(var p=0,r=f.length;p < r;p++)if((h=d(f[p].list || []),h == e)){k=!0;break;}if(!1 === k){g=l;break;}}return g;},wEc:function(c,f,g){for(var e=[],h,k=0;k < Math.min(f,c.length);k++)(h=c[k].list || [],e=e.concat(h.slice(0,g)));return e;},vEc:function(c,f){for(var g=[],e,h=0;h < c.length && (e=c[h].list || [],e=e.slice(0,Math.min(e.length,f)),f-=e.length,g=g.concat(e),0 !== f);h++);return g;},uEc:function(c,f,g){var e;f < c.length && 0 <= f && (c=c[f].list || [],g < c.length && (e=c[g]));return e;},Fub:function(c){for(var f={},g=c.length,e,h=0;h < g;h++){e=c[h].list || [];for(var k=0;k < e.length;k++)if(e[k].property === n.yV.s5 || e[k].property === n.yV.p7a){f.yn=h;f.rq=k;break;}}void 0 === f.yn && void 0 === f.rq && (f.yn=0,f.rq=0);return f;}};},21457:function(t,b,a){var h,k,l,m,p,r,q,u;function d(v){return v.split(",").reduce(function(w,x){var y;y=x.split("=");x=y[0];y=y.slice(1).join("=");x && x.length && (w[x]=y || !0);return w;},{});}function n(v){return v && "object" === typeof v?JSON.stringify(v):"string" === typeof v?'"' + v + '"':"" + v;}function c(v,w,x){var y;if("string" === typeof v)return c.call(this,d(v),w,x);y=0;Object.keys(v).forEach(function(A){var z,B,C;z=p[A];B=v[A];if(z){if(C=r[A] || u[typeof h[z]])try{B=C(B);}catch(D){x && x.error("Failed to convert value '" + B + "' for config '" + A + "' : " + D.toString());return;}C=m[z];this[z]=B;m[z] !== C && (x && x.debug("Config changed for '" + A + "' from " + n(C) + " (" + typeof C + ") to " + n(B) + " (" + typeof B + ")"),++y);}else w?(z=(z=q[A])?z.filter(function(D){return D[0] !== this;},this):[],z.push([this,B]),q[A]=z):x && x.error("Attempt to change undeclared config option '" + A + "'");},this);y && m.emit("changed");return y;}function f(){return Object.keys(p).reduce(function(v,w){var x,y;x=p[w];y=v[x];y?(y.push(w),v[x]=y.sort(function(A,z){return z.length - A.length;})):v[x]=[w];return v;},{});}function g(v,w){return v.hasOwnProperty(w)?n(v[w]):void 0;}function e(v,w){return "undefined" === typeof v?w:v;}b=a(31503);a=a(37911).EventEmitter;h={};k=Object.create(h);l=Object.create(k);m=Object.create(l);p={};r={};q={};m.declare=function(v){Object.keys(v).forEach(function(w){var x,y,A,z;x=v[w];y=x[0];A=x[1];z=x[2];if(h.hasOwnProperty(w))throw Error("The local configuraion key '" + w + "' is already in use");"string" === typeof y && (y=[y]);y.forEach(function(B){var C;if(p.hasOwnProperty(B))throw Error("The configuration value '" + B + "' has been declared more than once");h.hasOwnProperty(w) || ("function" === typeof A && (A=A()),h[w]=A);p[B]=w;"function" === typeof z && (r[B]=z);if(C=q[B])(C.forEach(function(D){var F,H;F=D[0];H={};H[B]=D[1];c.call(F,H,!1);}),delete q[B]);});});return m;};u={object:function(v){return "object" == typeof v?v:JSON.parse("" + v);},"boolean":function(v){return "boolean" == typeof v?v:!("0" === "" + v || "false" === ("" + v).toLowerCase());},number:function(v){if("number" == typeof v)return v;v=parseFloat("" + v);if(isNaN(v))throw Error("parseFloat returned NaN");return v;}};m.set=c.bind(k);m.YXa=c.bind(l);m.dump=function(v,w){var y,A,z,B;function x(){B && v && v.log("===========================================");}y=Object.keys(q).sort();A={};z=f();w=e(w,!0);Object.keys(p).sort().forEach(function(C){var D,F,H;C=p[C];if(!A[C]){A[C]=!0;D=g(k,C);F=g(l,C);if(w || "undefined" !== typeof D || "undefined" !== typeof F){H=z[C].join(",");H+=" = " + n(m[C]) + " (" + typeof m[C] + ") [";H+=e(F,"") + ",";H+=e(D,"") + ",";H+=g(h,C) + "]";B || (B=!0,v && v.log("Current config values"),x());v && v.log(H);}}});(w || y.length) && v && v.log(" :",y);x();};m.St=function(v){var w,x;w={};x={};Object.keys(p).forEach(function(y){y=p[y];x[y] || (x[y]=!0,w[y]=m[y]);});v && c.call(w,v);return w;};m.IHc=function(){var v;v=f();return Object.getOwnPropertyNames(k).reduce(function(w,x){w[v[x][0]]=k[x];return w;},{});};m.reset=function(){Object.keys(k).forEach(function(v){delete k[v];});};m.vi={};b(a,m);t.exports=Object.freeze(m);},76295:function(t){function b(d,n){var c;if(void 0 === n || "function" !== typeof n || "string" !== typeof d)throw new TypeError("EventEmitter: addEventListener requires a string and a function as arguments");if(void 0 === this.vi)return (this.vi={},this.vi[d]=[n],!0);c=this.vi[d];return void 0 === c?(this.vi[d]=[n],!0):0 > c.indexOf(n)?(c.push(n),!0):!1;}function a(d,n){d=this.vi?this.vi[d]:void 0;if(!d)return !1;d.forEach(function(c){c(n);});return !0;}t.exports={addEventListener:b,on:b,removeEventListener:function(d,n){var c;if(void 0 === n || "function" !== typeof n || "string" !== typeof d)throw new TypeError("EventEmitter: removeEventListener requires a string and a function as arguments");if(void 0 === this.vi)return !1;c=this.vi[d];if(void 0 === c)return !1;n=c.indexOf(n);if(0 > n)return !1;if(1 === c.length)return (delete this.vi[d],!0);c.splice(n,1);return !0;},oq:a,emit:a,removeAllListeners:function(d){this.vi && (void 0 === d?delete this.vi:delete this.vi[d]);return this;}};},92653:function(t){function b(d,n,c,f){d.trace(":",c,":",f);n(f);}function a(d){this.listeners=[];this.console=d;}a.prototype.constructor=a;a.prototype.addEventListener=function(d,n,c,f){c=f?c.bind(f):c;f=!1;if(d){this.console && (c=b.bind(null,this.console,c,n));if("function" === typeof d.addEventListener)f=d.addEventListener(n,c);else if("function" === typeof d.addListener)f=d.addListener(n,c);else throw Error("Emitter does not have a function to add listeners for '" + n + "'");this.listeners.push([d,n,c]);}return f;};a.prototype.on=a.prototype.addEventListener;a.prototype.clear=function(){var d;d=this.listeners.length;this.listeners.forEach(function(n){var c,f;c=n[0];f=n[1];n=n[2];"function" === typeof c.removeEventListener?c.removeEventListener(f,n):"function" === typeof c.removeListener && c.removeListener(f,n);});this.listeners=[];this.console && this.console.trace("removed",d,"listener(s)");};t.exports=a;},37911:function(t,b,a){t.exports={EventEmitter:a(76295),gf:a(92653)};},17267:function(t){var b;b={pc:function(a){return "number" === typeof a;},IA:function(a){return "object" === typeof a;},Fi:function(a){return "string" === typeof a;},ey:function(a){return "undefined" === typeof a;},L9c:function(a){return "boolean" === typeof a;},Yx:function(a){return "function" === typeof a;},rd:function(a){return null === a;},isArray:function(a){return "[object Array]" === Object.prototype.toString.call(a);},isFinite:function(a){return isFinite(a) && !isNaN(parseFloat(a));},has:function(a,d){return null !== a && "undefined" !== typeof a && Object.prototype.hasOwnProperty.call(a,d);},KGc:function(a){var d,n;n=[];if(!b.IA(a))throw new TypeError("Object.pairs called on non-object");for(d in a)a.hasOwnProperty(d) && n.push([d,a[d]]);return n;}};b.g9=b.forEach=function(a,d,n){if(null === a || "undefined" === typeof a)return a;if(a.length === +a.length)for(var c=0,f=a.length;c < f;c++)d.call(n,a[c],c,a);else for(c in a)b.has(a,c) && d.call(n,a[c],c,a);return a;};t.exports=b;},75691:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;if(!Object.keys){d=Object.prototype.hasOwnProperty;n=Object.prototype.toString;c=a(30801);b=Object.prototype.propertyIsEnumerable;f=!b.call({toString:null},"toString");g=b.call(function(){},"prototype");e=("toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor").split(" ");h=function(p){var r;r=p.constructor;return r && r.prototype === p;};k={iYc:!0,jYc:!0,kYc:!0,lYc:!0,mYc:!0,nYc:!0,oYc:!0,pYc:!0,qYc:!0,rYc:!0,sYc:!0,tYc:!0,uYc:!0,vYc:!0,wYc:!0,xYc:!0,yYc:!0,zYc:!0,AYc:!0,BYc:!0,CYc:!0,DYc:!0,EYc:!0};l=(function(){if("undefined" === typeof Ba)return !1;for(var p in Ba)try{if(!k["$" + p] && d.call(Ba,p) && null !== Ba[p] && "object" === typeof Ba[p])try{h(Ba[p]);}catch(r){return !0;}}catch(r){return !0;}return !1;})();m=function(p){var r,q,u,v,w,y;r=null !== p && "object" === typeof p;q="[object Function]" === n.call(p);u=c(p);v=r && "[object String]" === n.call(p);w=[];if(!r && !q && !u)throw new TypeError("Object.keys called on a non-object");r=g && q;if(v && 0 < p.length && !d.call(p,0))for(v=0;v < p.length;++v)w.push(String(v));if(u && 0 < p.length)for(u=0;u < p.length;++u)w.push(String(u));else for(var x in p)r && "prototype" === x || !d.call(p,x) || w.push(String(x));if(f){if("undefined" !== typeof Ba && l)try{y=h(p);}catch(A){y=!1;}else y=h(p);for(u=0;u < e.length;++u)y && "constructor" === e[u] || !d.call(p,e[u]) || w.push(e[u]);}return w;};}t.exports=m;},33464:function(t,b,a){var d,n,c,f,g;d=Array.prototype.slice;n=a(30801);c=Object.keys;f=c?function(e){return c(e);}:a(75691);g=Object.keys;f.CQc=function(){Object.keys?(function(){var e;e=Object.keys(arguments);return e && e.length === arguments.length;})(1,2) || (Object.keys=function(e){return n(e)?g(d.call(e)):g(e);}):Object.keys=f;return Object.keys || f;};t.exports=f;},30801:function(t){var b;b=Object.prototype.toString;t.exports=function(a){var d,n;d=b.call(a);n="[object Arguments]" === d;n || (n="[object Array]" !== d && null !== a && "object" === typeof a && "number" === typeof a.length && 0 <= a.length && "[object Function]" === b.call(a.callee));return n;};},61386:function(t,b,a){var g,e,h,k;function d(l){var m,p,r;if("Object" !== h(this))throw new TypeError("receiver is not an Object");m=e(this,k);p=l;r=l;g(l) && (p=c(m,l),r=n(m,l));return this.then(p,r);}function n(l,m){return function(p){var r;r=m();return f(l,r).then(function(){throw p;});};}function c(l,m){return function(p){var r;r=m();return f(l,r).then(function(){return p;});};}function f(l,m){return new l(function(p){p(m);});}a(57897)();g=a(83317);e=a(88251);h=a(18132);k=Promise;Object.getOwnPropertyDescriptor && (b=Object.getOwnPropertyDescriptor(d,"name")) && b.configurable && Object.defineProperty(d,"name",{configurable:!0,value:"finally"});t.exports=d;},32887:function(t,b,a){var d,n;d=a(57897);n=a(61386);t.exports=function(){d();return "function" === typeof Promise.prototype["finally"]?Promise.prototype["finally"]:n;};},57897:function(t){t.exports=function(){if("function" !== typeof Promise)throw new TypeError("`Promise.prototype.finally` requires a global `Promise` be available.");};},65574:function(t,b,a){var d,n,c;d=a(57897);n=a(32887);c=a(14926);t.exports=function(){var f;d();f=n();c(Promise.prototype,{"finally":f},{"finally":function(){return Promise.prototype["finally"] !== f;}});return f;};},23614:function(t,b,a){var d;d=a(35375);b=a(31187)(function(n,c){return d(n.length,function(){return n.apply(c,arguments);});});t.exports=b;},57301:function(t,b,a){var d,n,c,f,g;b=a(31187);d=a(55446);n=a(89028);c=a(77894);f=a(67758);g=a(75850);a=b(function(e,h){return n(g(c,0,f("length",h)),function(){var k,l;k=arguments;l=this;return e.apply(l,d(function(m){return m.apply(l,k);},h));});});t.exports=a;},89028:function(t,b,a){var d,n,c;d=a(35375);n=a(16805);b=a(31187);c=a(16500);a=b(function(f,g){return 1 === f?n(g):d(f,c(f,[],g));});t.exports=a;},5154:function(t,b,a){var d;d=a(25701);b=a(20239)(function(n,c,f){for(var g=[],e=0,h=c.length;e < h;)(d(n,c[e],f) || d(n,c[e],g) || g.push(c[e]),e+=1);return g;});t.exports=b;},42514:function(t,b,a){var d,n,c,f,g,e;b=a(31187);d=a(8414);n=a(46458);c=a(78678);f=a(18468);g=a(14128);e=a(93358);a=b(d(["filter"],g,function(h,k){return c(k)?f(function(l,m){h(k[m]) && (l[m]=k[m]);return l;},{},e(k)):n(h,k);}));t.exports=a;},56663:function(t,b,a){b=a(31187)(function(d,n){for(var c=[],f=0,g=n.length;f < g;){for(var e=f + 1;e < g && d(n[e - 1],n[e]);)e+=1;c.push(n.slice(f,e));f=e;}return c;});t.exports=b;},35375:function(t){t.exports=function(b,a){switch(b){case 0:return function(){return a.apply(this,arguments);};case 1:return function(d){return a.apply(this,arguments);};case 2:return function(d,n){return a.apply(this,arguments);};case 3:return function(d,n,c){return a.apply(this,arguments);};case 4:return function(d,n,c,f){return a.apply(this,arguments);};case 5:return function(d,n,c,f,g){return a.apply(this,arguments);};case 6:return function(d,n,c,f,g,e){return a.apply(this,arguments);};case 7:return function(d,n,c,f,g,e,h){return a.apply(this,arguments);};case 8:return function(d,n,c,f,g,e,h,k){return a.apply(this,arguments);};case 9:return function(d,n,c,f,g,e,h,k,l){return a.apply(this,arguments);};case 10:return function(d,n,c,f,g,e,h,k,l,m){return a.apply(this,arguments);};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten");}};},48925:function(t){t.exports=function(b){return function(){return !b.apply(this,arguments);};};},86614:function(t){t.exports=function(b,a){var d,n,c,f;b=b || [];a=a || [];n=b.length;c=a.length;f=[];for(d=0;d < n;)(f[f.length]=b[d],d+=1);for(d=0;d < c;)(f[f.length]=a[d],d+=1);return f;};},25701:function(t){t.exports=function(b,a,d){for(var n=0,c=d.length;n < c;){if(b(a,d[n]))return !0;n+=1;}return !1;};},16805:function(t,b,a){var d;d=a(28198);t.exports=function(n){return function g(f){return 0 === arguments.length || d(f)?g:n.apply(this,arguments);};};},31187:function(t,b,a){var d,n;d=a(16805);n=a(28198);t.exports=function(c){return function h(g,e){switch(arguments.length){case 0:return h;case 1:return n(g)?h:d(function(k){return c(g,k);});default:return n(g) && n(e)?h:n(g)?d(function(k){return c(k,e);}):n(e)?d(function(k){return c(g,k);}):c(g,e);}};};},20239:function(t,b,a){var d,n,c;d=a(16805);n=a(31187);c=a(28198);t.exports=function(f){return function l(e,h,k){switch(arguments.length){case 0:return l;case 1:return c(e)?l:n(function(m,p){return f(e,m,p);});case 2:return c(e) && c(h)?l:c(e)?n(function(m,p){return f(m,h,p);}):c(h)?n(function(m,p){return f(e,m,p);}):d(function(m){return f(e,h,m);});default:return c(e) && c(h) && c(k)?l:c(e) && c(h)?n(function(m,p){return f(m,p,k);}):c(e) && c(k)?n(function(m,p){return f(m,h,p);}):c(h) && c(k)?n(function(m,p){return f(e,m,p);}):c(e)?d(function(m){return f(m,h,k);}):c(h)?d(function(m){return f(e,m,k);}):c(k)?d(function(m){return f(e,h,m);}):f(e,h,k);}};};},16500:function(t,b,a){var n,c;function d(f,g,e){return function(){var p;for(var h=[],k=0,l=f,m=0;m < g.length || k < arguments.length;){if(m < g.length && (!c(g[m]) || k >= arguments.length))p=g[m];else (p=arguments[k],k+=1);h[m]=p;c(p) || --l;m+=1;}return 0 >= l?e.apply(this,h):n(l,d(f,h,e));};}n=a(35375);c=a(28198);t.exports=d;},8414:function(t,b,a){var d,n;d=a(84357);n=a(11972);t.exports=function(c,f,g){return function(){var e,h;if(0 === arguments.length)return g();e=Array.prototype.slice.call(arguments,0);h=e.pop();if(!d(h)){for(var k=0;k < c.length;){if("function" === typeof h[c[k]])return h[c[k]].apply(h,e);k+=1;}if(n(h))return f.apply(null,e)(h);}return g.apply(this,arguments);};};},46458:function(t){t.exports=function(b,a){for(var d=0,n=a.length,c=[];d < n;)(b(a[d]) && (c[c.length]=a[d]),d+=1);return c;};},58380:function(t){t.exports=function(b,a){return Object.prototype.hasOwnProperty.call(a,b);};},46546:function(t,b,a){var d,n;d=a(58380);n=Object.prototype.toString;t.exports=function(){return "[object Arguments]" === n.call(arguments)?function(c){return "[object Arguments]" === n.call(c);}:function(c){return d("callee",c);};};},84357:function(t){t.exports=Array.isArray || (function(b){return null != b && 0 <= b.length && "[object Array]" === Object.prototype.toString.call(b);});},33905:function(t,b,a){var d,n;b=a(16805);d=a(84357);n=a(86807);a=b(function(c){return d(c)?!0:!c || "object" !== typeof c || n(c)?!1:1 === c.nodeType?!!c.length:0 === c.length?!0:0 < c.length?c.hasOwnProperty(0) && c.hasOwnProperty(c.length - 1):!1;});t.exports=a;},78678:function(t){t.exports=function(b){return "[object Object]" === Object.prototype.toString.call(b);};},28198:function(t){t.exports=function(b){return null != b && "object" === typeof b && !0 === b["@@functional/placeholder"];};},86807:function(t){t.exports=function(b){return "[object String]" === Object.prototype.toString.call(b);};},11972:function(t){t.exports=function(b){return "function" === typeof b["@@transducer/step"];};},55446:function(t){t.exports=function(b,a){for(var d=0,n=a.length,c=Array(n);d < n;)(c[d]=b(a[d]),d+=1);return c;};},18468:function(t,b,a){var c,f,g,e;function d(h,k,l){for(var m=l.next();!m.done;){if((k=h["@@transducer/step"](k,m.value)) && k["@@transducer/reduced"]){k=k["@@transducer/value"];break;}m=l.next();}return h["@@transducer/result"](k);}function n(h,k,l,m){return h["@@transducer/result"](l[m](g(h["@@transducer/step"],h),k));}c=a(33905);f=a(71402);g=a(23614);e="undefined" !== typeof Symbol?Symbol.iterator:"@@iterator";t.exports=function(h,k,l){"function" === typeof h && (h=f(h));if(c(l)){for(var m=0,p=l.length;m < p;){if((k=h["@@transducer/step"](k,l[m])) && k["@@transducer/reduced"]){k=k["@@transducer/value"];break;}m+=1;}return h["@@transducer/result"](k);}if("function" === typeof l["fantasy-land/reduce"])return n(h,k,l,"fantasy-land/reduce");if(null != l[e])return d(h,k,l[e]());if("function" === typeof l.next)return d(h,k,l);if("function" === typeof l.reduce)return n(h,k,l,"reduce");throw new TypeError("reduce: list must be array or iterable");};},18610:function(t){t.exports={Tb:function(){return this.kga["@@transducer/init"]();},result:function(b){return this.kga["@@transducer/result"](b);}};},14128:function(t,b,a){var d,n;b=a(31187);d=a(18610);n=(function(){function c(f,g){this.kga=g;this.f=f;}c.prototype["@@transducer/init"]=d.Tb;c.prototype["@@transducer/result"]=d.result;c.prototype["@@transducer/step"]=function(f,g){return this.f(g)?this.kga["@@transducer/step"](f,g):f;};return c;})();a=b(function(c,f){return new n(c,f);});t.exports=a;},94406:function(t,b,a){var d,n;b=a(31187);d=a(18610);n=(function(){function c(f,g){this.kga=g;this.f=f;}c.prototype["@@transducer/init"]=d.Tb;c.prototype["@@transducer/result"]=d.result;c.prototype["@@transducer/step"]=function(f,g){return this.kga["@@transducer/step"](f,this.f(g));};return c;})();a=b(function(c,f){return new n(c,f);});t.exports=a;},71402:function(t){var b;b=(function(){function a(d){this.f=d;}a.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap");};a.prototype["@@transducer/result"]=function(d){return d;};a.prototype["@@transducer/step"]=function(d,n){return this.f(d,n);};return a;})();t.exports=function(a){return new b(a);};},72849:function(t,b,a){var d;b=a(16805);d=a(57301);a=b(function(n){return d(function(){return Array.prototype.slice.call(arguments,0);},n);});t.exports=a;},93358:function(t,b,a){var d,n,c,f,g;b=a(16805);d=a(58380);n=a(46546);c=!({toString:null}).propertyIsEnumerable("toString");f=("constructor valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString").split(" ");g=(function(){return arguments.propertyIsEnumerable("length");})();a=b("function" !== typeof Object.keys || g?function(e){var h,k,l,m;if(Object(e) !== e)return [];h=[];k=g && n(e);for(l in e)!d(l,e) || k && "length" === l || (h[h.length]=l);if(c)for(k=f.length - 1;0 <= k;){l=f[k];if(m=d(l,e)){a:{for(m=0;m < h.length;){if(h[m] === l){m=!0;break a;}m+=1;}m=!1;}m=!m;}m && (h[h.length]=l);--k;}return h;}:function(e){return Object(e) !== e?[]:Object.keys(e);});t.exports=a;},81057:function(t,b,a){var d,n,c,f,g,e;b=a(31187);d=a(8414);n=a(55446);c=a(18468);f=a(94406);g=a(89028);e=a(93358);a=b(d(["fantasy-land/map","map"],f,function(h,k){switch(Object.prototype.toString.call(k)){case "[object Function]":return g(k.length,function(){return h.call(this,k.apply(this,arguments));});case "[object Object]":return c(function(l,m){l[m]=h(k[m]);return l;},{},e(k));default:return n(h,k);}}));t.exports=a;},77894:function(t,b,a){b=a(31187)(function(d,n){return n > d?n:d;});t.exports=b;},29664:function(t,b,a){var d;b=a(20239);d=a(29924);a=b(function(n,c,f){return d(function(g,e,h){return n(e,h);},c,f);});t.exports=a;},29924:function(t,b,a){var d,n;b=a(20239);d=a(78678);n=a(48796);a=b(function h(f,g,e){return n(function(k,l,m){return d(l) && d(m)?h(f,l,m):f(k,l,m);},g,e);});t.exports=a;},48796:function(t,b,a){var d;b=a(20239);d=a(58380);a=b(function(n,c,f){var g,e;g={};for(e in c)d(e,c) && (g[e]=d(e,f)?n(e,c[e],f[e]):c[e]);for(e in f)d(e,f) && !d(e,g) && (g[e]=f[e]);return g;});t.exports=a;},31435:function(t,b,a){var d;b=a(42514);d=a(72849);a=a(64580);a=d([b,a]);t.exports=a;},23335:function(t,b,a){b=a(31187)(function(d,n){for(var c=0;c < d.length;){if(null == n)return;n=n[d[c]];c+=1;}return n;});t.exports=b;},67758:function(t,b,a){var d,n;b=a(31187);d=a(81057);n=a(38695);a=b(function(c,f){return d(n(c),f);});t.exports=a;},38695:function(t,b,a){var d;b=a(31187);d=a(23335);a=b(function(n,c){return d([n],c);});t.exports=a;},75850:function(t,b,a){b=a(20239);a=a(18468);a=b(a);t.exports=a;},64580:function(t,b,a){var d,n;d=a(48925);b=a(31187);n=a(42514);a=b(function(c,f){return n(d(c),f);});t.exports=a;},60024:function(t,b,a){var d,n;d=a(86614);b=a(20239);n=a(25228);a=b(function(c,f,g){return n(c,d(f,g));});t.exports=a;},25228:function(t,b,a){var d;d=a(25701);b=a(31187)(function(n,c){for(var f=0,g=c.length,e=[],h;f < g;)(h=c[f],d(n,h,e) || (e[e.length]=h),f+=1);return e;});t.exports=b;},1738:function(t,b,a){var d;(function(n){(function(c){var g,e;function f(h,k){return function(l,m){"function" !== typeof h[l] && Object.defineProperty(h,l,{configurable:!0,writable:!0,value:m});k && k(l,m);};}g="object" === typeof a.qZ?a.qZ:"object" === typeof self?self:"object" === typeof this?this:Function("return this;")();e=f(n);"undefined" === typeof g.Reflect?g.Reflect=n:e=f(g.Reflect,e);c(e);})(function(c){var F,H,E,G,J,L,K,M,P,I,O;function f(Q,T,U){var X;X=O.get(Q);if(r(X)){if(!U)return;X=new P();O.set(Q,X);}Q=X.get(T);if(r(Q)){if(!U)return;Q=new P();X.set(T,Q);}return Q;}function g(Q,T,U){if(e(Q,T,U))return !0;T=A(T);return null === T?!1:g(Q,T,U);}function e(Q,T,U){T=f(T,U,!1);return r(T)?!1:!!T.has(Q);}function h(Q,T,U){if(e(Q,T,U))return k(Q,T,U);T=A(T);if(null !== T)return h(Q,T,U);}function k(Q,T,U){T=f(T,U,!1);if(!r(T))return T.get(Q);}function l(Q,T){var U,W,Z;U=m(Q,T);Q=A(Q);if(null === Q)return U;T=l(Q,T);if(0 >= T.length)return U;if(0 >= U.length)return T;Q=new I();for(var X=[],Y=0;Y < U.length;Y++){W=U[Y];Z=Q.has(W);Z || (Q.add(W),X.push(W));}for(U=0;U < T.length;U++)(W=T[U],(Z=Q.has(W)) || (Q.add(W),X.push(W)));return X;}function m(Q,T){var U,X;U=[];Q=f(Q,T,!1);if(r(Q))return U;Q=Q.keys();T=y(Q,G);if(!x(T))throw new TypeError();Q=T.call(Q);if(!q(Q))throw new TypeError();for(T=0;;){X=Q.next();X=X.done?!1:X;if(!X)return (U.length=T,U);X=X.value;try{U[T]=X;}catch(W){var Y;try{Y=Q["return"];Y && Y.call(Q);}finally{throw W;}}T++;}}function p(Q){if(null === Q)return 1;switch(typeof Q){case "undefined":return 0;case "boolean":return 2;case "string":return 3;case "symbol":return 4;case "number":return 5;case "object":return null === Q?1:6;default:return 6;}}function r(Q){return void 0 === Q;}function q(Q){return "object" === typeof Q?null !== Q:"function" === typeof Q;}function u(Q,T){var U;switch(p(Q)){case 0:return Q;case 1:return Q;case 2:return Q;case 3:return Q;case 4:return Q;case 5:return Q;}T=3 === T?"string":5 === T?"number":"default";U=y(Q,E);if(void 0 !== U){Q=U.call(Q,T);if(q(Q))throw new TypeError();return Q;}a:{if("string" === ("default" === T?"number":T)){T=Q.toString;if(x(T) && (T=T.call(Q),!q(T)))break a;T=Q.valueOf;}else {T=Q.valueOf;if(x(T) && (T=T.call(Q),!q(T)))break a;T=Q.toString;}if(!x(T) || (T=T.call(Q),q(T)))throw new TypeError();}return T;}function v(Q){Q=u(Q,3);return "symbol" === typeof Q?Q:"" + Q;}function w(Q){return Array.isArray?Array.isArray(Q):Q instanceof Object?Q instanceof Array:"[object Array]" === Object.prototype.toString.call(Q);}function x(Q){return "function" === typeof Q;}function y(Q,T){Q=Q[T];if(void 0 !== Q && null !== Q){if(!x(Q))throw new TypeError();return Q;}}function A(Q){var T,U;T=Object.getPrototypeOf(Q);if("function" !== typeof Q || Q === M || T !== M)return T;U=Q.prototype;U=U && Object.getPrototypeOf(U);if(null == U || U === Object.prototype)return T;U=U.constructor;return "function" !== typeof U || U === Q?T:U;}function z(){var X,Y,W;function Q(Z){return Z;}function T(Z,aa){return aa;}function U(Z,aa){return [Z,aa];}X={};Y=[];W=(function(){function Z(aa,ca,da){this.ti=0;this.Eg=aa;this.Ri=ca;this.u4b=da;}Z.prototype["@@iterator"]=function(){return this;};Z.prototype[G]=function(){return this;};Z.prototype.next=function(){var aa,ca;aa=this.ti;if(0 <= aa && aa < this.Eg.length){ca=this.u4b(this.Eg[aa],this.Ri[aa]);aa + 1 >= this.Eg.length?(this.ti=-1,this.Ri=this.Eg=Y):this.ti++;return {value:ca,done:!1};}return {value:void 0,done:!0};};Z.prototype.throw=function(aa){0 <= this.ti && (this.ti=-1,this.Ri=this.Eg=Y);throw aa;};Z.prototype.return=function(aa){0 <= this.ti && (this.ti=-1,this.Ri=this.Eg=Y);return {value:aa,done:!0};};return Z;})();return (function(){function Z(){this.Eg=[];this.Ri=[];this.mC=X;this.zz=-2;}Object.defineProperty(Z.prototype,"size",{get:function(){return this.Eg.length;},enumerable:!0,configurable:!0});Z.prototype.has=function(aa){return 0 <= this.wF(aa,!1);};Z.prototype.get=function(aa){aa=this.wF(aa,!1);return 0 <= aa?this.Ri[aa]:void 0;};Z.prototype.set=function(aa,ca){aa=this.wF(aa,!0);this.Ri[aa]=ca;return this;};Z.prototype.delete=function(aa){var ca,da;ca=this.wF(aa,!1);if(0 <= ca){da=this.Eg.length;for(ca+=1;ca < da;ca++)(this.Eg[ca - 1]=this.Eg[ca],this.Ri[ca - 1]=this.Ri[ca]);this.Eg.length--;this.Ri.length--;aa === this.mC && (this.mC=X,this.zz=-2);return !0;}return !1;};Z.prototype.clear=function(){this.Eg.length=0;this.Ri.length=0;this.mC=X;this.zz=-2;};Z.prototype.keys=function(){return new W(this.Eg,this.Ri,Q);};Z.prototype.values=function(){return new W(this.Eg,this.Ri,T);};Z.prototype.entries=function(){return new W(this.Eg,this.Ri,U);};Z.prototype["@@iterator"]=function(){return this.entries();};Z.prototype[G]=function(){return this.entries();};Z.prototype.wF=function(aa,ca){this.mC !== aa && (this.zz=this.Eg.indexOf(this.mC=aa));0 > this.zz && ca && (this.zz=this.Eg.length,this.Eg.push(aa),this.Ri.push(void 0));return this.zz;};return Z;})();}function B(){return (function(){function Q(){this.Wg=new P();}Object.defineProperty(Q.prototype,"size",{get:function(){return this.Wg.size;},enumerable:!0,configurable:!0});Q.prototype.has=function(T){return this.Wg.has(T);};Q.prototype.add=function(T){return (this.Wg.set(T,T),this);};Q.prototype.delete=function(T){return this.Wg.delete(T);};Q.prototype.clear=function(){this.Wg.clear();};Q.prototype.keys=function(){return this.Wg.keys();};Q.prototype.values=function(){return this.Wg.values();};Q.prototype.entries=function(){return this.Wg.entries();};Q.prototype["@@iterator"]=function(){return this.keys();};Q.prototype[G]=function(){return this.keys();};return Q;})();}function C(){var X,Y;function Q(){var W,ca;do {W="function" === typeof Uint8Array?"undefined" !== typeof crypto?crypto.getRandomValues(new Uint8Array(16)):"undefined" !== typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(16)):U(new Uint8Array(16),16):U(Array(16),16);W[6]=W[6] & 79 | 64;W[8]=W[8] & 191 | 128;for(var Z="",aa=0;16 > aa;++aa){ca=W[aa];if(4 === aa || 6 === aa || 8 === aa)Z+="-";16 > ca && (Z+="0");Z+=ca.toString(16).toLowerCase();}W="@@WeakMap@@" + Z;}while(K.has(X,W));X[W]=!0;return W;}function T(W,Z){if(!F.call(W,Y)){if(!Z)return;Object.defineProperty(W,Y,{value:K.create()});}return W[Y];}function U(W,Z){for(var aa=0;aa < Z;++aa)W[aa]=255 * Math.random() | 0;return W;}X=K.create();Y=Q();return (function(){function W(){this.Gz=Q();}W.prototype.has=function(Z){Z=T(Z,!1);return void 0 !== Z?K.has(Z,this.Gz):!1;};W.prototype.get=function(Z){Z=T(Z,!1);return void 0 !== Z?K.get(Z,this.Gz):void 0;};W.prototype.set=function(Z,aa){T(Z,!0)[this.Gz]=aa;return this;};W.prototype.delete=function(Z){Z=T(Z,!1);return void 0 !== Z?delete Z[this.Gz]:!1;};W.prototype.clear=function(){this.Gz=Q();};return W;})();}function D(Q){Q.y1b=void 0;delete Q.y1b;return Q;}F=Object.prototype.hasOwnProperty;H="function" === typeof Symbol;E=H && "undefined" !== typeof Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive";G=H && "undefined" !== typeof Symbol.iterator?Symbol.iterator:"@@iterator";H="function" === typeof Object.create;J=({__proto__:[]}) instanceof Array;L=!H && !J;K={create:H?function(){return D(Object.create(null));}:J?function(){return D({__proto__:null});}:function(){return D({});},has:L?function(Q,T){return F.call(Q,T);}:function(Q,T){return (T in Q);},get:L?function(Q,T){return F.call(Q,T)?Q[T]:void 0;}:function(Q,T){return Q[T];}};M=Object.getPrototypeOf(Function);P=(H="object" === typeof process && "true" === ({NODE_ENV:"production",PLATFORM:"cadmium",ASEBUILD:"release",OBFUSCATE:"obfuscate"}).REFLECT_METADATA_USE_MAP_POLYFILL) || "function" !== typeof Map || "function" !== typeof Map.prototype.entries?z():Map;I=H || "function" !== typeof Set || "function" !== typeof Set.prototype.entries?B():Set;O=new (H || "function" !== typeof WeakMap?C():WeakMap)();c("decorate",function(Q,T,U,X){var W;if(r(U)){if(!w(Q))throw new TypeError();if("function" !== typeof T)throw new TypeError();for(U=Q.length - 1;0 <= U;--U)if((X=(0,Q[U])(T),!r(X) && null !== X)){if("function" !== typeof X)throw new TypeError();T=X;}return T;}if(!w(Q))throw new TypeError();if(!q(T))throw new TypeError();if(!q(X) && !r(X) && null !== X)throw new TypeError();null === X && (X=void 0);U=v(U);for(var Y=Q.length - 1;0 <= Y;--Y){W=(0,Q[Y])(T,U,X);if(!r(W) && null !== W){if(!q(W))throw new TypeError();X=W;}}return X;});c("metadata",function(Q,T){return function(U,X){var Y;if(!q(U))throw new TypeError();if(Y=!r(X)){a:switch(p(X)){case 3:Y=!0;break a;case 4:Y=!0;break a;default:Y=!1;}Y=!Y;}if(Y)throw new TypeError();f(U,X,!0).set(Q,T);};});c("defineMetadata",function(Q,T,U,X){if(!q(U))throw new TypeError();r(X) || (X=v(X));f(U,X,!0).set(Q,T);});c("hasMetadata",function(Q,T,U){if(!q(T))throw new TypeError();r(U) || (U=v(U));return g(Q,T,U);});c("hasOwnMetadata",function(Q,T,U){if(!q(T))throw new TypeError();r(U) || (U=v(U));return e(Q,T,U);});c("getMetadata",function(Q,T,U){if(!q(T))throw new TypeError();r(U) || (U=v(U));return h(Q,T,U);});c("getOwnMetadata",function(Q,T,U){if(!q(T))throw new TypeError();r(U) || (U=v(U));return k(Q,T,U);});c("getMetadataKeys",function(Q,T){if(!q(Q))throw new TypeError();r(T) || (T=v(T));return l(Q,T);});c("getOwnMetadataKeys",function(Q,T){if(!q(Q))throw new TypeError();r(T) || (T=v(T));return m(Q,T);});c("deleteMetadata",function(Q,T,U){var X;if(!q(T))throw new TypeError();r(U) || (U=v(U));X=f(T,U,!1);if(r(X) || !X.delete(Q))return !1;if(0 < X.size)return !0;Q=O.get(T);Q.delete(U);if(0 < Q.size)return !0;O.delete(T);return !0;});});})(d || (d={}));},63671:function(t,b,a){var d,n,c;b=a(8435);d=a(58786);n=b("RegExp.prototype.exec");c=a(5408);t.exports=function(f){if(!d(f))throw new c("`regex` must be a RegExp");return function(g){return null !== n(f,g);};};},47669:function(t,b,a){var d,n,c,f,g;b=a(67286);d=a(75195);n=a(81181)();c=a(50326);f=a(5408);g=b("%Math.floor%");t.exports=function(e,h){var k,l,m,p;if("function" !== typeof e)throw new f("`fn` is not a function");if("number" !== typeof h || 0 > h || 4294967295 < h || g(h) !== h)throw new f("`length` must be a positive 32-bit integer");k=2 < arguments.length && !!arguments[2];l=!0;m=!0;if(("length" in e) && c){p=c(e,"length");p && !p.configurable && (l=!1);p && !p.writable && (m=!1);}if(l || m || !k)n?d(e,"length",h,!0,!0):d(e,"length",h);return e;};},24454:function(t,b,a){var d,n,c,f,g;d=a(42977);n=a(11885);c=a(8435)("String.prototype.replace");f=(b=(/^\s$/).test("\u180e"))?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/;g=b?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;t.exports=function(){var e;e=n(d(this));return c(c(e,f,""),g,"");};},11341:function(t,b,a){var n,c,f,g,e;function d(h){c(h);return e(h);}b=a(89429);n=a(14926);c=a(42977);f=a(24454);g=a(33871);a=a(93607);e=b(g());n(d,{S8c:g,implementation:f,CQc:a});t.exports=d;},33871:function(t,b,a){var d;d=a(24454);t.exports=function(){return String.prototype.trim?String.prototype.trim:d;};},93607:function(t,b,a){var d,n,c;d=a(81181)();n=a(75195);c=a(33871);t.exports=function(){var f;f=c();String.prototype.trim !== f && (d?n(String.prototype,"trim",f,!0):n(String.prototype,"trim",f));return f;};},15913:function(t,b,a){var g;function d(e,h,k){this.vY=!1 === e;this.Gv=e || .01;this.gCa=void 0 === h?25:h;this.H6a=void 0 === k?1.1:k;this.Rm=new g(n);this.reset();}function n(e,h){return e.Eh > h.Eh?1:e.Eh < h.Eh?-1:0;}function c(e,h){return e.BD - h.BD;}function f(e){this.config=e || ({});this.mode=this.config.mode || "auto";d.call(this,"cont" === this.mode?e.Gv:!1);this.hic=this.config.ratio || .9;this.iic=this.config.Gdd || 1E3;this.Fsa=0;}g=a(35558).P_b;d.prototype.reset=function(){this.Rm.clear();this.iVa=this.n=0;};d.prototype.size=function(){return this.Rm.size;};d.prototype.wj=function(e){var h;h=[];e?(this.Pja(!0),this.Rm.g9(function(k){h.push(k);})):this.Rm.g9(function(k){h.push({Eh:k.Eh,n:k.n});});return h;};d.prototype.summary=function(){return [(this.vY?"exact ":"approximating ") + this.n + " samples using " + this.size() + " centroids","min = " + this.Ek(0),"Q1 = " + this.Ek(.25),"Q2 = " + this.Ek(.5),"Q3 = " + this.Ek(.75),"max = " + this.Ek(1)].join("\n");};d.prototype.push=function(e,h){h=h || 1;e=Array.isArray(e)?e:[e];for(var k=0;k < e.length;k++)this.kjb(e[k],h);};d.prototype.HZa=function(e){e=Array.isArray(e)?e:[e];for(var h=0;h < e.length;h++)this.kjb(e[h].Eh,e[h].n);};d.prototype.Pja=function(e){var h;if(!(this.n === this.iVa || !e && this.H6a && this.H6a > this.n / this.iVa)){h=0;this.Rm.g9(function(k){k.BD=h + k.n / 2;h=k.gY=h + k.n;});this.n=this.iVa=h;}};d.prototype.Omc=function(e){var h,k;if(0 === this.size())return null;h=this.Rm.lowerBound({Eh:e});k=null === h.data()?h.Cy():h.data();return k.Eh === e || this.vY?k:(h=h.Cy()) && Math.abs(h.Eh - e) < Math.abs(k.Eh - e)?h:k;};d.prototype.FW=function(e,h,k){this.Rm.ku({Eh:e,n:h,gY:k});this.n+=h;};d.prototype.Gja=function(e,h,k){h !== e.Eh && (e.Eh+=k * (h - e.Eh) / (e.n + k));e.gY+=k;e.BD+=k / 2;e.n+=k;this.n+=k;};d.prototype.kjb=function(e,h){var k,l,m;k=this.Rm.min();l=this.Rm.max();m=this.Omc(e);m && m.Eh === e?this.Gja(m,e,h):m === k?this.FW(e,h,0):m === l?this.FW(e,h,this.n):this.vY?this.FW(e,h,m.gY):(k=m.BD / this.n,Math.floor(4 * this.n * this.Gv * k * (1 - k)) - m.n >= h?this.Gja(m,e,h):this.FW(e,h,m.gY));this.Pja(!1);!this.vY && this.gCa && this.size() > this.gCa / this.Gv && this.Zo();};d.prototype.q9b=function(e){var h,k;this.Rm.Az=c;h=this.Rm.upperBound({BD:e});this.Rm.Az=n;k=h.Cy();e=k && k.BD === e?k:h.next();return [k,e];};d.prototype.Ek=function(e){var h;h=(Array.isArray(e)?e:[e]).map(this.a4b,this);return Array.isArray(e)?h:h[0];};d.prototype.a4b=function(e){var h,k;if(0 !== this.size()){this.Pja(!0);this.Rm.min();this.Rm.max();e*=this.n;h=this.q9b(e);k=h[0];h=h[1];return h === k || null === k || null === h?(k || h).Eh:this.vY?e <= k.gY?k.Eh:h.Eh:k.Eh + (e - k.BD) * (h.Eh - k.Eh) / (h.BD - k.BD);}};d.prototype.Zo=function(){var e;if(!this.Jpb){e=this.wj();this.reset();for(this.Jpb=!0;0 < e.length;)this.HZa(e.splice(Math.floor(Math.random() * e.length),1)[0]);this.Pja(!0);this.Jpb=!1;}};f.prototype=Object.create(d.prototype);f.prototype.constructor=f;f.prototype.push=function(e){d.prototype.push.call(this,e);this.gbc();};f.prototype.FW=function(e,h,k){this.Fsa+=1;d.prototype.FW.call(this,e,h,k);};f.prototype.Gja=function(e,h,k){1 === e.n && --this.Fsa;d.prototype.Gja.call(this,e,h,k);};f.prototype.gbc=function(){!("auto" !== this.mode || this.size() < this.iic) && this.Fsa / this.size() > this.hic && (this.mode="cont",this.vY=!1,this.Gv=this.config.Gv || .01,this.Zo());};t.exports={TDigest:d,Digest:f};},63053:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);n=d.__importDefault(a(51411));c=a(32260);t=(function(f){function g(e,h,k,l){var m,p;m=this.constructor;p=f.call(this,h.message) || this;m=m.prototype;"undefined" === typeof Object.setPrototypeOf?p.__proto__=m:Object.setPrototypeOf(p,m);k && (p.message+=" [" + k + "]");p.name=e;p.error=h;p.Dc=l;e=p.toString();p.stack && (e+="\n" + p.stack);p.Dc && p.Dc.stack && (e+="\nCaused by " + p.Dc.stack);p.stack=e;return p;}d.__extends(g,f);g.prototype.ii=function(e){if(0 > e || e > n.default.Ye)throw new RangeError("Message ID " + e + " is outside the valid range.");this.$wb() || (this.bP=e);return this;};g.prototype.$wb=function(){if(this.bP)return this.bP;if(this.Dc && c.Dd(this.Dc))return this.Dc.bP;};g.prototype.kc=function(e){!e || this.bc || this.Tl || (this.bc=e);return this;};g.prototype.Xf=function(e){!e || this.bc || this.Tl || (this.Tl=e);return this;};g.prototype.De=function(e){!e || this.kg || this.yj || (this.kg=e);return this;};g.prototype.uf=function(e){!e || this.kg || this.yj || (this.yj=e);return this;};g.prototype.toString=function(){return this.name + ": " + this.message;};return g;})(Error);b["default"]=t;},51411:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.xxb=b.NI=void 0;t=a(69193);d=a(96837);a=t.ZB.nF;b.NI={mWb:"GZIP",tCa:"LZW"};b.xxb=function(g){for(var e=[b.NI.mWb,b.NI.tCa],h=0;h < e.length && 0 < g.length;++h)for(var k=e[h],l=0;l < g.length;++l)if(g[l] == k)return k;return null;};n={oya:"AES"};Object.defineProperties(n,{PQ:{value:function(g){var e;e=g;"string" === typeof g && (e=g.toLowerCase());"object" === typeof g && "string" === typeof g.name && (e=g.name.toLowerCase());return d.Oe.FN.name.toLowerCase() == e?n.oya:n[g];},writable:!1,enumerable:!1,configurable:!1},H2a:{value:function(g){if(n.oya == g)return d.Oe.FN;},writable:!1,enumerable:!1,configurable:!1}});Object.freeze(n);c={j4a:"AES/CBC/PKCS5Padding",KYc:"AESWrap",vfb:"RSA/ECB/PKCS1Padding"};Object.defineProperties(c,{PQ:{value:function(g){return c.j4a == g?c.j4a:c.vfb == g?c.vfb:c[g];},writable:!1,enumerable:!1,configurable:!1}});Object.freeze(c);f={KBa:"HmacSHA256",oGa:"SHA256withRSA",i4a:"AESCmac"};Object.defineProperties(f,{PQ:{value:function(g){var e,h;e=g;"string" === typeof g && (e=g.toLowerCase());"object" === typeof g && "string" === typeof g.name && (e=g.name.toLowerCase());"object" === typeof g.hash && (h=g.hash.name.toLowerCase());return d.Oe.wV.name.toLowerCase() == e && d.Oe.wV.hash.name.toLowerCase() == h?f.KBa:d.Oe.z5.name.toLowerCase() == e && d.Oe.z5.hash.name.toLowerCase() == h?f.oGa:d.Oe.k4a.name.toLowerCase() == e?f.i4a:f[g];},writable:!1,enumerable:!1,configurable:!1},H2a:{value:function(g){if(f.KBa == g)return d.Oe.wV;if(f.oGa == g)return d.Oe.oGa;if(f.i4a == g)return d.Oe.k4a;},writable:!1,enumerable:!1,configurable:!1}});Object.freeze(f);t={fa:1,Br:2,pg:3,Ne:4,R4:5,li:6,jd:7,R3:8,WFa:9,$ia:10};Object.freeze(t);b["default"]={RUb:a,Ye:9007199254740992,NXb:12,RAa:n,Mza:c,J5:f,P:t};},42458:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g,e){return n.call(this,"MslCryptoException",f,g,e) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(63053)).default);b["default"]=t;},88257:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g,e){return n.call(this,"MslEncodingException",f,g,e) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(63053)).default);b["default"]=t;},24571:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g,e){return n.call(this,"MslEntityAuthException",f,g,e) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(63053)).default);b["default"]=t;},36114:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970).__importDefault(a(51411));t=(function(){function n(c,f,g){this.uaa=1E5 + c;this.pNc=f;this.message=g;}n.prototype.toString=function(){return "MslError{" + this.uaa + "," + this.pNc + "," + this.message + "}";};n.Ze=new n(0,d.default.P.fa,"Error parsing MSL encodable.");n.hYb=new n(1,d.default.P.fa,"Error encoding MSL encodable.");new n(2,d.default.P.fa,"Computed hash does not match envelope hash.");n.gO=new n(3,d.default.P.fa,"Invalid public key provided.");n.xV=new n(4,d.default.P.fa,"Invalid private key provided.");new n(5,d.default.P.fa,"Plaintext is not a multiple of the block size.");new n(6,d.default.P.fa,"Plaintext contains incorrect padding.");new n(7,d.default.P.fa,"Ciphertext is not a multiple of the block size.");new n(8,d.default.P.fa,"Ciphertext contains incorrect padding.");n.GAa=new n(9,d.default.P.fa,"Encryption not supported.");n.Wza=new n(10,d.default.P.fa,"Decryption not supported.");new n(11,d.default.P.fa,"Encryption envelope key ID does not match crypto context key ID.");n.v6a=new n(12,d.default.P.fa,"Error parsing ciphertext envelope.");n.Oga=new n(13,d.default.P.fa,"Error encoding ciphertext envelope.");n.pGa=new n(14,d.default.P.fa,"Sign not supported.");n.BHa=new n(15,d.default.P.fa,"Verify not suppoprted.");n.Wfb=new n(16,d.default.P.fa,"Signature not initialized or unable to process data/signature.");n.yha=new n(17,d.default.P.fa,"Error computing HMAC.");n.mha=new n(18,d.default.P.fa,"Error encrypting plaintext.");n.OI=new n(19,d.default.P.fa,"Error decrypting ciphertext.");new n(20,d.default.P.fa,"Insufficient ciphertext for decryption.");new n(21,d.default.P.fa,"Error when creating session keys.");n.QBa=new n(24,d.default.P.fa,"Invalid symmetric key provided.");new n(25,d.default.P.fa,"Invalid encryption key.");new n(26,d.default.P.fa,"Invalid HMAC key.");n.wib=new n(27,d.default.P.fa,"Wrap not supported.");n.Uhb=new n(28,d.default.P.fa,"Unwrap not supported.");new n(29,d.default.P.fa,"Unidentified JSON web key type.");new n(30,d.default.P.fa,"Unidentified JSON web key usage.");new n(31,d.default.P.fa,"Unidentified JSON web key algorithm.");n.LHa=new n(32,d.default.P.fa,"Error wrapping plaintext.");n.rHa=new n(33,d.default.P.fa,"Error unwrapping ciphertext.");new n(34,d.default.P.fa,"Invalid JSON web key.");new n(35,d.default.P.fa,"Invalid JSON web key keydata.");new n(36,d.default.P.fa,"Unsupported JSON web key algorithm.");new n(37,d.default.P.fa,"Error when creating wrapping key.");new n(38,d.default.P.fa,"Invalid wrap ciphertext.");new n(39,d.default.P.fa,"Unsupported JSON web encryption algorithm.");new n(40,d.default.P.fa,"Error encoding JSON web encryption header.");new n(41,d.default.P.fa,"Error parsing JSON web encryption header.");new n(42,d.default.P.fa,"Invalid algorithm parameters.");new n(43,d.default.P.fa,"JSON web encryption header algorithms mismatch.");n.sXb=new n(44,d.default.P.fa,"Error importing key.");n.jCa=new n(45,d.default.P.fa,"Error exporting key.");new n(46,d.default.P.fa,"Error in digest.");n.pHa=new n(47,d.default.P.fa,"Unsupported key type or algorithm.");new n(48,d.default.P.fa,"Unsupported JSON web encryption serialization.");new n(51,d.default.P.fa,"Invalid wrapping key.");n.Phb=new n(52,d.default.P.fa,"Unidentified ciphertext envelope version.");new n(53,d.default.P.fa,"Unidentified signature envelope version.");n.$0b=new n(54,d.default.P.fa,"Unsupported ciphertext envelope version.");n.qHa=new n(55,d.default.P.fa,"Unsupported signature envelope version.");n.W0b=new n(56,d.default.P.fa,"Unidentified cipher specification.");n.oHa=new n(57,d.default.P.fa,"Unidentified algorithm.");new n(58,d.default.P.fa,"Error parsing signature envelope.");n.Vfb=new n(59,d.default.P.fa,"Error encoding signature envelope.");new n(60,d.default.P.fa,"Invalid signature.");new n(61,d.default.P.fa,"Error deriving key.");new n(62,d.default.P.fa,"Unidentified JSON web key key operation.");new n(63,d.default.P.fa,"Error generating key.");new n(64,d.default.P.fa,"Invalid initialization vector.");new n(65,d.default.P.fa,"Invalid ciphertext.");n.gbb=new n(1E3,d.default.P.pg,"Master token is not trusted.");n.fbb=new n(1001,d.default.P.pg,"Unable to construct symmetric keys from master token.");n.GXb=new n(1002,d.default.P.pg,"Master token expiration timestamp is before the renewal window opens.");n.JXb=new n(1003,d.default.P.pg,"No master token session data found.");n.HXb=new n(1004,d.default.P.pg,"Master token sequence number is out of range.");n.IXb=new n(1005,d.default.P.pg,"Master token serial number is out of range.");new n(1006,d.default.P.pg,"Invalid master token data.");new n(1007,d.default.P.pg,"Invalid master token signature.");new n(1008,d.default.P.pg,"Invalid master token session data.");new n(1009,d.default.P.pg,"Master token sequence number does not have the expected value.");n.LXb=new n(1010,d.default.P.pg,"No master token data found.");n.MXb=new n(1011,d.default.P.pg,"Error parsing master token data.");n.KXb=new n(1012,d.default.P.pg,"Error parsing master token session data.");new n(1013,d.default.P.pg,"Master token entity identity is revoked.");new n(1014,d.default.P.pg,"Master token is rejected by the application.");new n(1015,d.default.P.fa,"Master token issuer data encoding error.");n.sHa=new n(2E3,d.default.P.Ne,"User ID token master token serial number does not match master token serial number.");new n(2001,d.default.P.Ne,"User ID token is not decrypted or verified.");n.f1b=new n(2002,d.default.P.Ne,"User ID token requires a master token.");n.c1b=new n(2003,d.default.P.Ne,"User ID token expiration timestamp is before the renewal window opens.");n.l1b=new n(2004,d.default.P.Ne,"No user ID token user data found.");n.e1b=new n(2005,d.default.P.Ne,"User ID token is bound to an unknown master token.");n.g1b=new n(2006,d.default.P.Ne,"User ID token master token serial number is out of range.");n.h1b=new n(2007,d.default.P.Ne,"User ID token serial number is out of range.");new n(2008,d.default.P.Ne,"Invalid user ID token data.");new n(2009,d.default.P.Ne,"Invalid user ID token signature.");new n(2010,d.default.P.Ne,"Invalid user ID token user data.");n.d1b=new n(2011,d.default.P.Ne,"Invalid user ID token user identity.");new n(2012,d.default.P.Ne,"The entity is not associated with the user.");new n(2013,d.default.P.Ne,"The user identity was not found.");new n(2014,d.default.P.Ne,"The user identity must be reauthenticated because the password version changed.");n.k1b=new n(2015,d.default.P.Ne,"The user ID token and user authentication data user identities do not match.");n.i1b=new n(2016,d.default.P.Ne,"No user ID token data found.");n.j1b=new n(2017,d.default.P.Ne,"Error parsing user ID token data.");n.m1b=new n(2018,d.default.P.Ne,"Error parsing user ID token user data.");new n(2019,d.default.P.Ne,"User ID token is revoked.");new n(2020,d.default.P.jd,"User ID token is rejected by the application.");n.jGa=new n(3E3,d.default.P.fa,"Service token master token serial number does not match master token serial number.");n.kGa=new n(3001,d.default.P.fa,"Service token user ID token serial number does not match user ID token serial number.");new n(3002,d.default.P.fa,"Service token data invalid.");n.n0b=new n(3003,d.default.P.fa,"Service token is bound to an unknown master token.");n.p0b=new n(3004,d.default.P.fa,"Service token is bound to an unknown user ID token.");n.o0b=new n(3005,d.default.P.fa,"Service token master token serial number is out of range.");n.q0b=new n(3006,d.default.P.fa,"Service token user ID token serial number is out of range.");new n(3007,d.default.P.fa,"Invalid service token data.");new n(3008,d.default.P.fa,"Invalid service token signature.");n.Tfb=new n(3009,d.default.P.fa,"No service token data found.");n.X0b=new n(4E3,d.default.P.fa,"Unable to identify entity authentication scheme.");n.IAa=new n(4001,d.default.P.fa,"No factory registered for entity authentication scheme.");new n(4002,d.default.P.li,"Error parsing X.509 certificate data.");new n(4003,d.default.P.li,"Error encoding X.509 certificate data.");new n(4004,d.default.P.li,"X.509 certificate verification failed.");new n(4005,d.default.P.fa,"Entity not recognized.");new n(4006,d.default.P.fa,"Entity used incorrect entity authentication data type.");n.V_b=new n(4007,d.default.P.li,"RSA public key not found.");new n(4023,d.default.P.fa,"Unsupported entity authentication data.");n.l8a=new n(4025,d.default.P.fa,"Entity is revoked.");new n(4026,d.default.P.li,"Entity is rejected by the application.");new n(4028,d.default.P.li,"X.509 certificate is expired.");new n(4029,d.default.P.li,"X.509 certificate is not yet valid.");new n(4030,d.default.P.li,"X.509 certificate is invalid.");n.U_b=new n(4031,d.default.P.li,"RSA private key not found.");new n(4032,d.default.P.fa,"Entity authentication data master token is not decrypted or verified.");new n(4033,d.default.P.li,"Invalid entity authentication data siganture.");new n(4034,d.default.P.li,"Invalid entity authentication data ciphertext.");new n(4035,d.default.P.li,"Entity authentication data signature verification failed.");new n(4036,d.default.P.fa,"Invalid entity authentication data master token.");new n(4037,d.default.P.li,"ECC public key not found.");new n(4038,d.default.P.li,"ECC private key not found.");n.Z0b=new n(5003,d.default.P.fa,"Unable to identify user authentication scheme.");n.Whb=new n(5004,d.default.P.fa,"No factory registered for user authentication scheme.");n.LVb=new n(5005,d.default.P.jd,"Email or password is blank.");n.c8a=new n(5007,d.default.P.jd,"Email or password is incorrect.");n.a1b=new n(5008,d.default.P.fa,"Unsupported user authentication data.");new n(5011,d.default.P.jd,"User authentication data user ID token is invalid.");new n(5013,d.default.P.fa,"Unable to identify user authentication mechanism.");new n(5014,d.default.P.fa,"Unsupported user authentication mechanism.");new n(5016,d.default.P.jd,"User authentication required master token is missing.");new n(5021,d.default.P.jd,"User authentication data user ID token is not decrypted or verified.");new n(5024,d.default.P.jd,"User authentication data master token is invalid.");new n(5025,d.default.P.jd,"User authentication data master token is not decrypted or verified.");new n(5030,d.default.P.jd,"User authentication required user ID token is missing.");new n(5032,d.default.P.jd,"User authentication data does not match entity identity.");new n(5033,d.default.P.fa,"Entity used incorrect user authentication data type.");new n(5037,d.default.P.jd,"User is rejected by the application.");new n(5040,d.default.P.Ne,"The entity is not associated with the user.");new n(5041,d.default.P.jd,"Entity and user combination used incorrect user authentication data type.");new n(5042,d.default.P.jd,"User authentication data signature verification failed.");new n(5043,d.default.P.jd,"User ID token could not be checked for revocation.");n.Shb=new n(6E3,d.default.P.fa,"Unsupported compression algorithm.");n.pUb=new n(6001,d.default.P.fa,"Error compressing data.");n.S0b=new n(6002,d.default.P.fa,"Error uncompressing data.");n.eDa=new n(6003,d.default.P.fa,"Message header entity authentication data or master token not found.");n.kZb=new n(6004,d.default.P.fa,"Payload chunk message ID does not match header message ID .");n.mZb=new n(6005,d.default.P.fa,"Payload chunk sequence number does not match expected sequence number.");n.oZb=new n(6006,d.default.P.fa,"Payload chunk payload signature verification failed.");n.WXb=new n(6007,d.default.P.fa,"No message data found.");new n(6008,d.default.P.fa,"Malformed message data.");n.bYb=new n(6009,d.default.P.fa,"Message header/error data signature verification failed.");n.x9a=new n(6010,d.default.P.fa,"No header data found.");n.jZb=new n(6011,d.default.P.fa,"No payload data found in non-EOM payload chunk.");new n(6012,d.default.P.fa,"Corrupt payload data found in non-EOM payload chunk.");n.Qhb=new n(6013,d.default.P.fa,"Unidentified compression algorithm.");new n(6014,d.default.P.R3,"Message expired and not renewable. Rejected.");n.jbb=new n(6015,d.default.P.fa,"Message ID is out of range.");n.dXb=new n(6016,d.default.P.fa,"Error header internal code is negative.");n.V0b=new n(6017,d.default.P.fa,"Unexpected response message ID. Possible replay.");new n(6018,d.default.P.R4,"Message response requires encryption.");n.nZb=new n(6019,d.default.P.fa,"Payload chunk sequence number is out of range.");n.lZb=new n(6020,d.default.P.fa,"Payload chunk message ID is out of range.");new n(6021,d.default.P.WFa,"Non-replayable message replayed.");n.EWb=new n(6022,d.default.P.fa,"Non-replayable message sent without a master token.");new n(6023,d.default.P.fa,"Invalid Header signature.");new n(6024,d.default.P.fa,"Invalid header data.");new n(6025,d.default.P.fa,"Invalid payload.");new n(6026,d.default.P.fa,"Invalid payload signature.");new n(6027,d.default.P.R4,"Message response requires a master token.");new n(6028,d.default.P.Ne,"Message response requires a user ID token.");new n(6029,d.default.P.fa,"User-associated message requires user authentication data.");new n(6030,d.default.P.fa,"Message sender is equal to the local entity or not the master token entity.");n.MYb=new n(6031,d.default.P.fa,"Non-replayable message requires a master token.");n.pcb=new n(6032,d.default.P.fa,"Non-replayable message non-replayable ID is out of range.");new n(6033,d.default.P.fa,"Service token master token or user ID token serial number does not match the message token serial numbers.");new n(6034,d.default.P.fa,"Peer service token master token or user ID token serial number does not match the message peer token serial numbers.");new n(6035,d.default.P.R4,"Message response requires integrity protection.");n.qWb=new n(6036,d.default.P.fa,"Handshake message is not renewable or does not contain key request data.");new n(6037,d.default.P.fa,"Message recipient does not match local identity.");n.XXb=new n(6038,d.default.P.li,"Message header entity-based signature verification failed.");n.$Xb=new n(6039,d.default.P.pg,"Message header master token-based signature verification failed.");new n(6040,d.default.P.pg,"Non-replayable message replayed with a sequence number that is too far out of sync to recover.");new n(6041,d.default.P.fa,"Message sender is equal to the local entity.");n.U0b=new n(6042,d.default.P.fa,"User authentication data included in unencrypted message header.");n.aYb=new n(6043,d.default.P.fa,"Message sender entity identity does not match expected identity.");n.YXb=new n(6044,d.default.P.R3,"Message expired and not renewable. Rejected.");n.ZXb=new n(6045,d.default.P.R3,"Message expired and missing key request data. Rejected.");new n(6046,d.default.P.pg,"Master token identity does not match entity authentication data identity.");n.rWb=new n(6047,d.default.P.fa,"Handshake message requires key request data.");n.Rhb=new n(7E3,d.default.P.fa,"Unable to identify key exchange scheme.");n.hCa=new n(7001,d.default.P.fa,"No factory registered for key exchange scheme.");new n(7002,d.default.P.fa,"No key request found matching header key response data.");new n(7003,d.default.P.fa,"Unable to identify key exchange key ID.");new n(7004,d.default.P.fa,"Unsupported key exchange key ID.");n.Y0b=new n(7005,d.default.P.fa,"Unable to identify key exchange mechanism.");n.Thb=new n(7006,d.default.P.fa,"Unsupported key exchange mechanism.");n.X$a=new n(7007,d.default.P.fa,"Key exchange response does not match request.");n.qXb=new n(7008,d.default.P.fa,"Key exchange private key missing.");new n(7009,d.default.P.fa,"Key exchange parameters ID unknown or invalid.");new n(7010,d.default.P.fa,"Master token required for key exchange is missing.");new n(7011,d.default.P.fa,"Key exchange public key is invalid.");new n(7012,d.default.P.fa,"Key exchange public key missing.");new n(7013,d.default.P.fa,"Key exchange wrapping key missing.");new n(7014,d.default.P.fa,"Key exchange wrapping key ID missing.");new n(7015,d.default.P.fa,"Key exchange wrapping key is invalid.");new n(7016,d.default.P.fa,"Entity used incorrect key exchange data type.");new n(7017,d.default.P.fa,"Entity used incorrect key exchange mecahnism.");new n(7018,d.default.P.fa,"Key exchange derivation key missing.");new n(7019,d.default.P.fa,"Key exchange encryption key is invalid.");new n(7020,d.default.P.fa,"Key exchange HMAC key is invalid.");new n(7021,d.default.P.fa,"Key exchange wrap data is invalid.");new n(7022,d.default.P.fa,"Unsupported key exchange scheme.");new n(7023,d.default.P.fa,"Key exchange identity not found.");n.aC=new n(9E3,d.default.P.Br,"Internal exception.");new n(9001,d.default.P.fa,"Error communicating with MSL entity.");n.NONE=new n(9999,d.default.P.fa,"Special unit test error.");return n;})();b["default"]=t;},1966:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g,e){return n.call(this,"MslException",f,g,e) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(63053)).default);b["default"]=t;},18595:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g,e){var h;h=this.constructor;g=n.call(this,g) || this;h=h.prototype;"undefined" === typeof Object.setPrototypeOf?g.__proto__=h:Object.setPrototypeOf(g,h);g.name=f;g.Dc=e;f=g.toString();g.stack && (f+="\n" + g.stack);g.Dc && g.Dc.stack && (f+="\nCaused by " + g.Dc.stack);g.stack=f;return g;}d.__extends(c,n);c.prototype.toString=function(){return this.name + ": " + this.message;};return c;})(Error);b["default"]=t;},10690:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g){return n.call(this,"MslInternalException",f,g) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(18595)).default);b["default"]=t;},25978:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g){return n.call(this,"MslInterruptedException",f,g) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(18595)).default);b["default"]=t;},48795:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g){return n.call(this,"MslIoException",f,g) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(18595)).default);b["default"]=t;},35661:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g,e){return n.call(this,"MslKeyExchangeException",f,g,e) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(63053)).default);b["default"]=t;},80760:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g){f=n.call(this,"MslMasterTokenException",f) || this;f.bc=g;return f;}d.__extends(c,n);return c;})(d.__importDefault(a(63053)).default);b["default"]=t;},20754:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g,e){return n.call(this,"MslMessageException",f,g,e) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(63053)).default);b["default"]=t;},88361:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g,e){return n.call(this,"MslUserAuthException",f,g,e) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(63053)).default);b["default"]=t;},67609:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g,e,h){f=n.call(this,"MslUserIdTokenException",f,e,h) || this;f.kg=g;return f;}d.__extends(c,n);return c;})(d.__importDefault(a(63053)).default);b["default"]=t;},45826:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b["default"]="netflixidentity";},99075:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=d.__importDefault(a(36114));n=d.__importDefault(a(51411));a=(function(c){function f(g,e,h){return c.call(this,1E5 + g,e,h) || this;}d.__extends(f,c);new f(22,n.default.P.fa,"Error parsing ASN.1.");new f(23,n.default.P.fa,"Error encoding ASN.1.");new f(49,n.default.P.fa,"Error parsing XML.");new f(50,n.default.P.fa,"Error encoding XML.");new f(1009,n.default.P.pg,"Master token sequence number does not have the expected value.");new f(1013,n.default.P.pg,"Master token entity identity is revoked.");new f(2013,n.default.P.Ne,"The user identity was not found.");new f(2014,n.default.P.Ne,"The user identity must be reauthenticated because the password version changed.");new f(2015,n.default.P.fa,"The user ID token MSL user type is incorrect.");new f(2016,n.default.P.Ne,"The user ID token MSL user is invalid.");new f(2017,n.default.P.Br,"Error communicating with membership service");new f(2018,n.default.P.jd,"Previous credentials are no longer valid");new f(2019,n.default.P.Ne,"The user identity was not found.");new f(2020,n.default.P.Ne,"The user identity was not found.");new f(2021,n.default.P.Ne,"The user identity was not found.");new f(4005,n.default.P.fa,"Entity not recognized.");new f(4006,n.default.P.fa,"Entity used incorrect entity authentication data type.");new f(4024,n.default.P.fa,"Cryptex RSA key set not found.");f.l8a=new f(4025,n.default.P.fa,"Entity is revoked.");new f(4028,n.default.P.li,"Error parsing Anycast challenge.");new f(4029,n.default.P.li,"Anycast challenge is not acceptable.");new f(4030,n.default.P.li,"X.509 certificates are missing from entity auth.");new f(4031,n.default.P.fa,"Cryptex ECC key set not found.");new f(4032,n.default.P.fa,"Invalid MSL Trust Store found.");new f(4033,n.default.P.fa,"Entity migration is not allowed.");new f(4034,n.default.P.li,"FairPlay Streaming key request is invalid.");new f(5E3,n.default.P.jd,"User must login again.");new f(5001,n.default.P.jd,"Netflix ID cookie identity has expired.");f.IYb=new f(5002,n.default.P.jd,"Netflix ID cookie is blank.");new f(5003,n.default.P.jd,"Secure Netflix ID cookie is blank.");new f(5005,n.default.P.Br,"Unknown error communicating with authentication manager.");new f(5006,n.default.P.Br,"Error communicating with authentication manager.");f.c8a=new f(5007,n.default.P.jd,"Email or password is incorrect.");new f(5008,n.default.P.jd,"Password has not been set.");new f(5009,n.default.P.$ia,"SSO token is blank.");new f(5010,n.default.P.jd,"SSO token is not associated with a Netflix user.");new f(5012,n.default.P.jd,"Profile GUID is blank.");new f(5015,n.default.P.$ia,"SSO token invalid.");new f(5017,n.default.P.Br,"Error communicating with the account manager.");new f(5018,n.default.P.Br,"SSO user association failed.");new f(5019,n.default.P.Br,"SSO user disassociation failed.");new f(5020,n.default.P.jd,"MDX user authentication data verification failed.");new f(5022,n.default.P.jd,"MDX user authentication data action is invalid.");new f(5023,n.default.P.jd,"CTicket decryption failed.");new f(5026,n.default.P.jd,"Error creating CTicket crypto context.");new f(5027,n.default.P.jd,"MDX controller or target PIN is blank.");new f(5028,n.default.P.jd,"MDX controller and target PIN mismatch.");new f(5029,n.default.P.jd,"MDX controller user ID token or CTicket is not decrypted or verified.");new f(5031,n.default.P.jd,"MDX controller authentication data is invalid.");new f(5032,n.default.P.jd,"User authentication data does not match entity identity.");new f(5033,n.default.P.fa,"Entity used incorrect user authentication data type.");new f(5034,n.default.P.jd,"SSO user association failed because the customer is not a member.");new f(5035,n.default.P.jd,"SSO user association failed because the customer is a former member.");new f(5036,n.default.P.jd,"SSO user association failed because the token identifies a different member.");new f(5038,n.default.P.jd,"Not permitted to switch to the requested user profile.");new f(5039,n.default.P.Br,"Error communicating with the membership manager.");new f(5040,n.default.P.jd,"No entity association record found for the user.");new f(5041,n.default.P.fa,"The MSL user type is incorrect.");new f(5042,n.default.P.jd,"User entity association record query returned an error.");new f(5043,n.default.P.jd,"User entity association record query returned different entity identities.");new f(5044,n.default.P.jd,"User entity association record is deactivated.");new f(5045,n.default.P.jd,"User entity association record query returned different user identities.");new f(5046,n.default.P.Ne,"No entity association record found for the user.");new f(5047,n.default.P.Ne,"User entity association record query returned an error.");new f(5048,n.default.P.Ne,"User entity association record query returned different entity identities.");new f(5049,n.default.P.Ne,"User entity association record is deactivated.");new f(5050,n.default.P.Ne,"User entity association record query returned different user identities.");new f(5052,n.default.P.Ne,"User entity association record query returned different user identities.");new f(5053,n.default.P.Br,"The maximum number of devices has been reached for this user.");f.pcb=new f(6032,n.default.P.fa,"Non-replayable message non-replayable ID is out of range.");new f(7E3,n.default.P.fa,"Invalid key exchange GUID.");new f(7001,n.default.P.Br,"Error communicating with key exchange service");new f(7002,n.default.P.fa,"Identity in challenge doesn't match device identity");new f(7003,n.default.P.fa,"Error returned by key exchange service");new f(7004,n.default.P.fa,"Request rejected by key exchange service");new f(7005,n.default.P.Br,"Internal error encountered during key exchange");new f(7006,n.default.P.fa,"Request failed validation during key exchange");new f(7007,n.default.P.fa,"Request blacklisted by key exchange service");new f(7008,n.default.P.fa,"Request could not be decoded by key exchange service");new f(7009,n.default.P.pg,"Widevine key exchange entity authentication scheme unknown.");new f(7010,n.default.P.pg,"Widevine key exchange issuer data parse error.");new f(7011,n.default.P.pg,"Widevine key exchange identity mismatch between key request data and entity auth data");new f(7012,n.default.P.pg,"Widevine key exchange identity mismatch between key request data and mastertoken");new f(7013,n.default.P.pg,"Widevine key exchange CDM ID mismatch between key request data and previous mastertoken");new f(8E3,n.default.P.fa,"Error encrypting data with cryptex.");new f(8001,n.default.P.fa,"Error decrypting data with cryptex.");new f(8002,n.default.P.fa,"Error computing MAC with cryptex.");new f(8003,n.default.P.fa,"Error verifying MAC or signature with cryptex.");new f(8004,n.default.P.fa,"Error creating cryptex cipher or MAC context.");new f(8005,n.default.P.Br,"Error accessing data model device.");new f(8006,n.default.P.fa,"Data model device type not found.");new f(8007,n.default.P.fa,"Cryptex key set not supported.");new f(8008,n.default.P.fa,"Insufficient privileges for cryptex operation.");new f(8009,n.default.P.fa,"Error wrapping data with cryptex.");new f(8010,n.default.P.fa,"Error unwrapping data with cryptex.");new f(8011,n.default.P.Br,"Error comunicating with cryptex.");new f(8012,n.default.P.fa,"Error computing signature with cryptex.");new f(8013,n.default.P.fa,"Error computing key fingerprint with cryptex.");new f(8014,n.default.P.fa,"Bypassing Error Header Signing.");return f;})(t.default);b["default"]=a;},48603:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.R6a=void 0;d=a(22970).__importDefault(a(10690));t=(function(){function n(){}n.prototype.encrypt=function(c,f,g,e){e.result(c);};n.prototype.decrypt=function(c,f,g){g.result(c);};n.prototype.EE=function(c,f,g,e){e.error(new d.default("Wrap is unsupported by the MSL token crypto context."));};n.prototype.tN=function(c,f,g,e){e.error(new d.default("Unwrap is unsupported by the MSL token crypto context."));};n.prototype.sign=function(c,f,g,e){e.result(new Uint8Array(0));};n.prototype.verify=function(c,f,g,e){e.result(!1);};return n;})();b.R6a=t;},69351:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperty(b,"__esModule",{value:!0});b.S$a=b.B8a=b.Algorithm=void 0;t=a(22970);d=a(96837);n=t.__importDefault(a(10690));c=t.__importDefault(a(42458));f=t.__importDefault(a(36114));g=a(50441);e=a(36911);h=a(42486);k=a(60426);l=t.__importDefault(a(42979));b.Algorithm={hF:d.Oe.hF.name,nga:d.Oe.nga.name};b.B8a={A128GCM:"A128GCM",GYc:"A256GCM"};a=(function(){function m(p,r,q,u,v){switch(r){case b.Algorithm.hF:r=d.Oe.hF;v=v && (v.Aw || v);u=u && (u.Aw || u);break;case b.Algorithm.nga:r=d.Oe.nga;v=u=u && (u.Aw || u);break;default:throw new n.default("Unsupported algorithm: " + r);}this.ik=p;this.Tkb=r;this.W4b=v;this.K4b=u;}m.prototype.encrypt=function(p,r,q,u){u.error(new c.default(f.default.GAa));};m.prototype.decrypt=function(p,r,q){q.error(new c.default(f.default.Wza));};m.prototype.EE=function(p,r,q,u){l.default(u,function(){g.Tg.wrapKey("jwe+jwk",p.Aw,this.W4b,this.Tkb).then(function(v){u.result(new Uint8Array(v));},function(v){u.error(new c.default(f.default.LHa,null,v));});},this);};m.prototype.tN=function(p,r,q,u){function v(w){l.default(u,function(){switch(w.type){case "secret":k.cY(w,u);break;case "public":h.aY(w,u);break;case "private":e.$X(w,u);break;default:throw new c.default(f.default.pHa,"type: " + w.type);}});}l.default(u,function(){g.Tg.unwrapKey("jwe+jwk",p,this.K4b,this.Tkb,r,!1,q).then(function(w){v(w);},function(w){u.error(new c.default(f.default.rHa,null,w));});},this);};m.prototype.sign=function(p,r,q,u){u.error(new c.default(f.default.pGa));};m.prototype.verify=function(p,r,q,u){u.error(new c.default(f.default.BHa));};return m;})();b.S$a=a;},11475:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Ok={VFa:"raw",Kha:"jwk",iJ:"spki",TV:"pkcs8"};},25881:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;Object.defineProperty(b,"__esModule",{value:!0});b.kYa=b.rNa=b.BYb=b.jf=void 0;d=a(22970);t=a(48235);n=d.__importDefault(a(51411));c=d.__importDefault(a(42979));f=a(44127);g=d.__importDefault(a(42458));e=d.__importDefault(a(6838));h=d.__importDefault(a(88257));k=d.__importDefault(a(36114));l=d.__importDefault(a(10690));b.jf={Dl:1,yz:2};m=(function(p){function r(q,u,v){var w,x,y,A,z;w=p.call(this) || this;x=b.jf.Dl;y=q;A=null;for(z in n.default.Mza)if(n.default.Mza[z] == q){x=b.jf.yz;y=null;A=q;break;}w.version=x;w.NA=y;w.nbc=A;w.iv=u;w.iG=v;return w;}d.__extends(r,p);r.prototype.Gn=function(q,u,v){var w;w=this;c.default(v,function(){var x;x=q.mf();switch(w.version){case b.jf.Dl:x.put("keyid",w.NA);w.iv && x.put("iv",w.iv);x.put("ciphertext",w.iG);x.put("sha256",f.nk("AA=="));break;case b.jf.yz:x.put("version",w.version);x.put("cipherspec",w.nbc);w.iv && x.put("iv",w.iv);x.put("ciphertext",w.iG);break;default:throw new l.default("Ciphertext envelope version " + w.version + " encoding unsupported.");}q.Ij(x,u,v);},this);};return r;})(t.Oo);b.BYb=m;b.rNa=function(p,r,q,u){c.default(u,function(){return new m(p,r,q);});};b.kYa=function(p,r,q){c.default(q,function(){var u,v,w,x,y;if(!r)try{r=p.aR("version");u=!1;for(v in b.jf)if(b.jf[v] == r){u=!0;break;}if(!u)throw new g.default(k.default.Phb,"ciphertext envelope " + p);}catch(A){if(A instanceof e.default)r=b.jf.Dl;else throw A;}switch(r){case b.jf.Dl:try{w=p.we("keyid");x=p.has("iv")?p.vd("iv"):null;y=p.vd("ciphertext");p.vd("sha256");}catch(A){if(A instanceof e.default)throw new h.default(k.default.Ze,"ciphertext envelope " + p,A);throw A;}break;case b.jf.yz:try{if(p.aR("version") != b.jf.yz)throw new g.default(k.default.Phb,"ciphertext envelope " + p);w=n.default.Mza.PQ(p.we("cipherspec"));if(!w)throw new g.default(k.default.W0b,"ciphertext envelope " + p);x=p.has("iv")?p.vd("iv"):null;y=p.vd("ciphertext");}catch(A){if(A instanceof e.default)throw new h.default(k.default.Ze,"ciphertext envelope " + p,A);throw A;}break;default:throw new g.default(k.default.$0b,"ciphertext envelope " + p);}return new m(w,x,y);});};},50441:function(t,b,a){var f,g,e,h,k,l;function d(m){return "undefined" === typeof m?!1:m;}function n(m){if(m && m.length){if(k === b.Vb.Dr || k === b.Vb.Er)m=m.map(function(p){return "wrap" == p?"wrapKey":"unwrap" == p?"unwrapKey":p;});return m;}return k === b.Vb.Dr || k === b.Vb.Er?("encrypt decrypt sign verify deriveKey wrapKey unwrapKey").split(" "):("encrypt decrypt sign verify deriveKey wrap unwrap").split(" ");}function c(m){return m.then?m:g.default.create(function(p,r){m.oncomplete=function(q){p(q.target.result);};m.onerror=function(q){r(q);};});}Object.defineProperty(b,"__esModule",{value:!0});b.Tg=b.vPc=b.BSa=b.c1a=b.Vb=void 0;t=a(22970);f=a(11475);g=t.__importDefault(a(90122));e=a(69193);h=t.__importDefault(a(69763));b.Vb={tt:1,gx:2,Dr:3,Er:4,bx:5,vXb:3};k=b.Vb.vXb;b.c1a=function(m){k=m;};b.BSa=function(){return k;};if("undefined" !== typeof Ba)if(Ba.msCrypto){l=Ba.msCrypto.subtle;k=b.Vb.tt;}else if(Ba.crypto)if(Ba.crypto.IXc)(l=Ba.crypto.IXc,k=b.Vb.Er);else if(Ba.crypto.subtle)l=Ba.crypto.subtle;else throw new ReferenceError("Expected window.crypto.subtle but it was undefined. It may be unavailable if running in an insecure context.");b.vPc=function(m){l=m;};b.Tg={encrypt:function(m,p,r){switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:case b.Vb.bx:return (m=l.encrypt(m,p,r),c(m));default:throw Error("Unsupported Web Crypto version " + k + ".");}},decrypt:function(m,p,r){switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:case b.Vb.bx:return (m=l.decrypt(m,p,r),c(m));default:throw Error("Unsupported Web Crypto version " + k + ".");}},sign:function(m,p,r){switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:case b.Vb.bx:return (m=l.sign(m,p,r),c(m));default:throw Error("Unsupported Web Crypto version " + k + ".");}},verify:function(m,p,r,q){switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:case b.Vb.bx:return (m=l.verify(m,p,r,q),c(m));default:throw Error("Unsupported Web Crypto version " + k + ".");}},digest:function(m,p){switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:case b.Vb.bx:return (m=l.digest(m,p),c(m));default:throw Error("Unsupported Web Crypto version " + k + ".");}},generateKey:function(m,p,r){p=d(p);r=n(r);switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:case b.Vb.bx:return (m=l.generateKey(m,p,r),c(m));default:throw Error("Unsupported Web Crypto version " + k + ".");}},deriveKey:function(m,p,r,q,u){q=d(q);u=n(u);switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:case b.Vb.bx:return (m=l.deriveKey(m,p,r,q,u),c(m));default:throw Error("Unsupported Web Crypto version " + k + ".");}},deriveBits:function(m,p,r){switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:case b.Vb.bx:return (m=l.deriveBits(m,p,r),c(m));default:throw Error("Unsupported Web Crypto version " + k + ".");}},importKey:function(m,p,r,q,u){var v;q=d(q);u=n(u);switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.bx:return (r=l.importKey(m,p,r,q,u),c(r));case b.Vb.Er:if(m == f.Ok.iJ || m == f.Ok.TV){m=h.default.mSb(r);v=h.default.nSb(u);p=h.default.nLb(p,m,v,q);if(!p)throw Error("Could not make valid JWK from DER input");p=JSON.stringify(p);r=l.importKey(f.Ok.Kha,e.jC.vd(p),r,q,u);}else r=l.importKey(m,p,r,q,u);return c(r);default:throw Error("Unsupported Web Crypto version " + k + ".");}},exportKey:function(m,p){switch(k){case b.Vb.tt:case b.Vb.gx:case b.Vb.Dr:case b.Vb.bx:return (m=l.exportKey(m,p),c(m));case b.Vb.Er:if(m == f.Ok.iJ || m == f.Ok.TV)return (m=l.exportKey(f.Ok.Kha,p),c(m).then(function(r){r=JSON.parse(e.jC.we(new Uint8Array(r)));r=h.default.rBb(r);if(!r)throw Error("Could not make valid DER from JWK input");return r.V8.buffer;}));m=l.exportKey(m,p);return c(m);default:throw Error("Unsupported Web Crypto version " + k + ".");}},wrapKey:function(m,p,r,q){switch(k){case b.Vb.tt:case b.Vb.bx:m=l.wrapKey(p,r,q);break;case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:m=l.wrapKey(m,p,r,q);break;default:throw Error("Unsupported Web Crypto version " + k + ".");}return c(m);},unwrapKey:function(m,p,r,q,u,v,w){switch(k){case b.Vb.tt:m=l.unwrapKey(p,u,r);break;case b.Vb.gx:case b.Vb.Dr:case b.Vb.Er:case b.Vb.bx:v=d(v);w=n(w);m=l.unwrapKey(m,p,r,q,u,v,w);break;default:throw Error("Unsupported Web Crypto version " + k + ".");}return c(m);}};},75007:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperty(b,"__esModule",{value:!0});b.lYa=b.sNa=b.EYb=b.jf=void 0;t=a(22970);d=t.__importDefault(a(42979));n=t.__importDefault(a(10690));c=t.__importDefault(a(42458));f=t.__importDefault(a(51411));g=t.__importDefault(a(6838));e=t.__importDefault(a(88257));h=t.__importDefault(a(36114));k=a(44127);b.jf={Dl:1,yz:2};l=(function(){function m(p,r,q){this.version=p;this.algorithm=r;this.Cea=q;}m.prototype.vd=function(p,r,q){var u;u=this;d.default(q,function(){var v;switch(u.version){case b.jf.Dl:return u.Cea;case b.jf.yz:v=p.mf();v.put("version",u.version);v.put("algorithm",u.algorithm);v.put("signature",u.Cea);p.Ij(v,r,q);break;default:throw new n.default("Signature envelope version " + u.version + " encoding unsupported.");}});};return m;})();b.EYb=l;b.sNa=function(){var m,p,r,q;if(2 == arguments.length)(m=b.jf.Dl,p=arguments[0],r=null,q=arguments[1]);else 3 == arguments.length && (m=b.jf.yz,r=arguments[0],p=arguments[1],q=arguments[2]);d.default(q,function(){return new l(m,r,p);});};b.lYa=function(m,p,r,q){d.default(q,function(){var u,v,w,x,y;if(p)switch(p){case b.jf.Dl:return new l(b.jf.Dl,null,m);case b.jf.yz:try{u=r.Bp(m);v=u.aR("version");if(b.jf.yz != v)throw new c.default(h.default.qHa,"signature envelope " + m);w=f.default.J5.PQ(u.we("algorithm"));if(!w)throw new c.default(h.default.oHa,"signature envelope " + m);x=u.vd("signature");return new l(b.jf.yz,w,x);}catch(z){if(z instanceof g.default)throw new e.default(h.default.Ze,"signature envelope " + m,z);throw z;}default:throw new c.default(h.default.qHa,"signature envelope " + k.zi(m));}try{u=r.Bp(m);}catch(z){if(z instanceof g.default)u=null;else throw z;}if(u && u.has("version"))try{y=u.aR("version");y !== y && (y=b.jf.Dl);v=!1;for(var A in b.jf)if(b.jf[A] == y){v=!0;break;}v || (y=b.jf.Dl);}catch(z){z instanceof g.default && (y=b.jf.Dl);}else y=b.jf.Dl;switch(y){case b.jf.Dl:return new l(y,null,m);case b.jf.yz:try{return (w=f.default.J5.PQ(u.we("algorithm")),x=u.vd("signature"),w?new l(y,w,x):new l(b.jf.Dl,null,m));}catch(z){if(z instanceof g.default)return new l(b.jf.Dl,null,m);throw z;}default:throw new c.default(h.default.qHa,"signature envelope " + m);}});};},97962:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Mcb=void 0;t=(function(){function a(){}a.prototype.encrypt=function(d,n,c,f){f.result(d);};a.prototype.decrypt=function(d,n,c){c.result(d);};a.prototype.EE=function(d,n,c,f){f.result(d);};a.prototype.tN=function(d,n,c,f){f.result(d);};a.prototype.sign=function(d,n,c,f){f.result(new Uint8Array(0));};a.prototype.verify=function(d,n,c,f){f.result(!0);};return a;})();b.Mcb=t;},36911:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m){if(m == g.Ok.TV){if(l instanceof Uint8Array)return l;if("string" === typeof l)try{return h.nk(l);}catch(p){throw new c.default(e.default.xV,m + " " + l,p);}throw new c.default(e.default.xV,m + " " + l);}if(m == g.Ok.Kha){if("string" === typeof l)try{l=JSON.parse(l);}catch(p){throw new c.default(e.default.xV,m + " " + l,p);}if("object" === typeof l && l.constructor === Object)return l;throw new c.default(e.default.xV,m + " " + l);}throw new c.default(e.default.xV,"Invalid format '" + m + "'");}Object.defineProperty(b,"__esModule",{value:!0});b.kvc=b.$X=b.ifb=void 0;t=a(22970);n=t.__importDefault(a(42979));c=t.__importDefault(a(42458));f=a(50441);g=a(11475);e=t.__importDefault(a(36114));h=a(44127);k=(function(){function l(m,p,r){var u;function q(v){n.default(p,function(){u.Aw=m;u.bPa=v;return u;});}u=this;n.default(p,function(){if("object" !== typeof m || "private" != m.type)throw new TypeError("Only original private crypto keys are supported.");!r && m.extractable?f.Tg.exportKey(g.Ok.TV,m).then(function(v){q(new Uint8Array(v));},function(v){p.error(new c.default(e.default.jCa,g.Ok.TV,v));}):q(r);});}l.prototype.cD=function(){return this.bPa;};return l;})();b.ifb=k;b.$X=function(l,m){new k(l,m);};b.kvc=function(l,m,p,r,q){n.default(q,function(){var u;u=d(l,r);f.Tg.importKey(r,u,m,!0,p).then(function(v){new k(v,q,u);},function(v){q.error(new c.default(e.default.xV,null,v));});});};},42486:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m){if(m == g.Ok.iJ){if(l instanceof Uint8Array)return l;if("string" === typeof l)try{return h.nk(l);}catch(p){throw new c.default(f.default.gO,m + " " + l,p);}throw new c.default(f.default.gO,m + " " + l);}if(m == g.Ok.Kha){if("string" === typeof l)try{l=JSON.parse(l);}catch(p){throw new c.default(f.default.gO,m + " " + l,p);}if("object" === typeof l && l.constructor === Object)return l;throw new c.default(f.default.gO,m + " " + l);}throw new c.default(f.default.gO,"Invalid format '" + m + "'");}Object.defineProperty(b,"__esModule",{value:!0});b.pTa=b.aY=b.Gia=void 0;t=a(22970);n=t.__importDefault(a(42979));c=t.__importDefault(a(42458));f=t.__importDefault(a(36114));g=a(11475);e=a(50441);h=a(44127);k=(function(){function l(m,p,r){var u;function q(v){n.default(p,function(){u.Aw=m;u.bPa=v;return u;});}u=this;n.default(p,function(){if("object" !== typeof m || "public" != m.type)throw new TypeError("Only original public crypto keys are supported.");!r && m.extractable?e.Tg.exportKey(g.Ok.iJ,m).then(function(v){q(new Uint8Array(v));},function(v){p.error(new c.default(f.default.jCa,g.Ok.iJ,v));}):q(r);});}l.prototype.cD=function(){return this.bPa;};return l;})();b.Gia=k;b.aY=function(l,m){new k(l,m);};b.pTa=function(l,m,p,r,q){n.default(q,function(){var u;u=d(l,r);e.Tg.importKey(r,u,m,!0,p).then(function(v){new k(v,q,u);},function(v){q.error(new c.default(f.default.gO,null,v));});});};},33863:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q;Object.defineProperty(b,"__esModule",{value:!0});b.Xia=b.cF=void 0;t=a(22970);d=a(96837);n=t.__importDefault(a(42979));c=t.__importDefault(a(42458));f=t.__importDefault(a(6838));g=t.__importDefault(a(36114));e=a(50441);h=a(75007);k=a(60426);l=a(42486);m=a(36911);p=t.__importDefault(a(88257));r=a(25881);q=a(32260);b.cF={TVb:1,UVb:2,xib:3,yib:4,eW:5};a=(function(){function u(v,w,x,y,A){var z;x && (x=x.Aw);y && (y=y.Aw);v=A == b.cF.UVb?d.Oe.Oia:A == b.cF.TVb?d.Oe.hF:"nullOp";z=A == b.cF.yib?d.Oe.Oia:A == b.cF.xib?d.Oe.hF:"nullOp";A=A == b.cF.eW?d.Oe.z5:"nullOp";this.id=w;this.privateKey=x;this.publicKey=y;this.transform=v;this.iya=z;this.lla=A;}u.prototype.encrypt=function(v,w,x,y){var A;A=this;n.default(y,function(){if("nullOp" == A.transform)return v;if(!A.publicKey)throw new c.default(g.default.GAa,"no public key");if(0 == v.length)return v;e.Tg.encrypt(A.transform,A.publicKey,v).then(function(z){r.rNa(A.id,null,new Uint8Array(z),{result:function(B){B.Gn(w,x,{result:y.result,error:function(C){C instanceof f.default && (C=new c.default(g.default.Oga,null,C));y.error(C);}});},error:function(B){q.Dd(B) || (B=new c.default(g.default.mha,null,B));y.error(B);}});},function(z){y.error(new c.default(g.default.mha,null,z));});});};u.prototype.decrypt=function(v,w,x){var y;y=this;n.default(x,function(){var A;if("nullOp" == y.transform)return v;if(!y.privateKey)throw new c.default(g.default.Wza,"no private key");if(0 == v.length)return v;try{A=w.Bp(v);}catch(z){if(z instanceof f.default)throw new c.default(g.default.v6a,null,z);throw new c.default(g.default.OI,null,z);}r.kYa(A,h.jf.Dl,{result:function(z){try{e.Tg.decrypt(y.transform,y.privateKey,z.iG).then(function(B){x.result(new Uint8Array(B));},function(B){x.error(new c.default(g.default.OI,null,B));});}catch(B){q.Dd(B)?x.error(B):x.error(new c.default(g.default.OI,null,B));}},error:function(z){z instanceof p.default && (z=new c.default(g.default.Oga,null,z));q.Dd(z) || (z=new c.default(g.default.OI,null,z));x.error(z);}});});};u.prototype.EE=function(v,w,x,y){var A;A=this;n.default(y,function(){if("nullOp" == A.iya || !A.publicKey)throw new c.default(g.default.wib,"no public key");e.Tg.wrapKey("jwk",v.Aw,A.publicKey,A.iya).then(function(z){y.result(new Uint8Array(z));},function(z){y.error(new c.default(g.default.LHa,null,z));});});};u.prototype.tN=function(v,w,x,y){var z;function A(B){n.default(y,function(){switch(B.type){case "secret":k.cY(B,y);break;case "public":l.aY(B,y);break;case "private":m.$X(B,y);break;default:throw new c.default(g.default.pHa,"type: " + B.type);}});}z=this;n.default(y,function(){if("nullOp" == z.iya || !z.privateKey)throw new c.default(g.default.Uhb,"no private key");e.Tg.unwrapKey("jwk",v,z.privateKey,z.iya,w,!1,x).then(A,function(B){y.error(new c.default(g.default.rHa,null,B));});});};u.prototype.sign=function(v,w,x,y){var A;A=this;n.default(y,function(){if("nullOp" == A.lla)return new Uint8Array(0);if(!A.privateKey)throw new c.default(g.default.pGa,"no private key");e.Tg.sign(A.lla,A.privateKey,v).then(function(z){h.sNa(new Uint8Array(z),{result:function(B){B.vd(w,x,{result:y.result,error:function(C){C instanceof f.default && (C=new c.default(g.default.Vfb,void 0,C));y.error(C);}});},error:y.error});},function(z){y.error(new c.default(g.default.Wfb,void 0,z));});});};u.prototype.verify=function(v,w,x,y){var A;A=this;n.default(y,function(){if("nullOp" == A.lla)return !0;if(!A.publicKey)throw new c.default(g.default.BHa,"no public key");h.lYa(w,h.jf.Dl,x,{result:function(z){n.default(y,function(){var B;B=y.result;e.Tg.verify(A.lla,A.publicKey,z.Cea,v).then(B,function(C){y.error(new c.default(g.default.Wfb,void 0,C));});});},error:y.error});});};return u;})();b.Xia=a;},60426:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.qTa=b.cY=b.yGa=void 0;t=a(22970);d=t.__importDefault(a(42979));n=t.__importDefault(a(42458));c=t.__importDefault(a(36114));f=a(50441);g=a(11475);e=a(44127);h=(function(){function k(l,m,p){var q;function r(u){d.default(m,function(){var v;v=u?e.zi(u):void 0;q.algorithm=l.algorithm;q.Aw=l;q.NUa=u;q.l$c=v;return q;});}q=this;d.default(m,function(){if("object" !== typeof l)throw new n.default(c.default.QBa);!p && l.extractable?f.Tg.exportKey(g.Ok.VFa,l).then(function(u){r(new Uint8Array(u));},function(u){m.error(new n.default(c.default.jCa,g.Ok.VFa,u));}):r(p);});}k.prototype.size=function(){return this.NUa.length;};k.prototype.w2=function(){return this.NUa;};k.prototype.cD=function(){return this.NUa;};return k;})();b.yGa=h;b.cY=function(k,l){new h(k,l);};b.qTa=function(k,l,m,p){d.default(p,function(){try{k="string" === typeof k?e.nk(k):k;}catch(r){throw new n.default(c.default.QBa,"keydata " + k,r);}f.Tg.importKey(g.Ok.VFa,k,l,!0,m).then(function(r){new h(r,p,k);},function(r){p.error(new n.default(c.default.QBa,null,r));});});};},43088:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.I5=void 0;d=a(22970);t=a(72672);n=d.__importDefault(a(80760));c=d.__importDefault(a(36114));a=(function(f){function g(e,h,k,l,m){if(void 0 !== k || l || m)e=f.call(this,e,k?k + "_" + h.ak:"" + h.ak,l,m,null) || this;else {if(!h.Aaa())throw new n.default(c.default.gbb,h);e=f.call(this,e,h.ju + "_" + h.ak,h.Kv,h.mI,null) || this;}return e;}d.__extends(g,f);return g;})(t.YGa);b.I5=a;},72672:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q;Object.defineProperty(b,"__esModule",{value:!0});b.YGa=void 0;t=a(22970);d=t.__importDefault(a(42979));n=t.__importDefault(a(42458));c=t.__importDefault(a(36114));f=a(25881);g=t.__importDefault(a(6838));e=a(50441);h=a(96837);k=t.__importDefault(a(88257));l=a(60426);m=a(42486);p=a(36911);r=a(75007);q=a(32260);a=(function(){function u(v,w,x,y,A){this.qk=v;this.id=w;this.Kv=null === x || void 0 === x?void 0:x.Aw;this.mI=null === y || void 0 === y?void 0:y.Aw;this.wrapKey=null === A || void 0 === A?void 0:A.Aw;}u.prototype.encrypt=function(v,w,x,y){var A;A=this;d.default(y,function(){var z;if(!A.Kv)throw new n.default(c.default.GAa,"no encryption/decryption key");if(0 == v.length)return v;z=new Uint8Array(16);A.qk.Fxb().uDc(z);e.Tg.encrypt({name:h.Oe.FN.name,iv:z},A.Kv,v).then(function(B){f.rNa(A.id,z,new Uint8Array(B),{result:function(C){C.Gn(w,x,{result:y.result,error:function(D){D instanceof g.default && (D=new n.default(c.default.Oga,null,D));y.error(D);}});},error:function(C){q.Dd(C) || (C=new n.default(c.default.mha,null,C));y.error(C);}});},function(B){y.error(new n.default(c.default.mha,null,B));});});};u.prototype.decrypt=function(v,w,x){var y;y=this;d.default(x,function(){var A;if(!y.Kv)throw new n.default(c.default.Wza,"no encryption/decryption key");if(0 == v.length)return v;try{A=w.Bp(v);}catch(z){if(z instanceof g.default)throw new n.default(c.default.v6a,null,z);throw new n.default(c.default.OI,null,z);}f.kYa(A,f.jf.Dl,{result:function(z){try{e.Tg.decrypt({name:h.Oe.FN.name,iv:z.iv},y.Kv,z.iG).then(function(B){x.result(new Uint8Array(B));},function(B){x.error(new n.default(c.default.OI,null,B));});}catch(B){q.Dd(B)?x.error(B):x.error(new n.default(c.default.OI,null,B));}},error:function(z){z instanceof k.default && (z=new n.default(c.default.Oga,null,z));q.Dd(z) || (z=new n.default(c.default.OI,null,z));x.error(z);}});});};u.prototype.EE=function(v,w,x,y){var A;A=this;d.default(y,function(){if(!A.wrapKey)throw new n.default(c.default.wib,"no wrap/unwrap key");e.Tg.wrapKey("raw",v.Aw,A.wrapKey,A.wrapKey.algorithm).then(function(z){y.result(new Uint8Array(z));},function(z){y.error(new n.default(c.default.LHa,null,z));});});};u.prototype.tN=function(v,w,x,y){var z;function A(B){d.default(y,function(){switch(B.type){case "secret":l.cY(B,y);break;case "public":m.aY(B,y);break;case "private":p.$X(B,y);break;default:throw new n.default(c.default.pHa,"type: " + B.type);}});}z=this;d.default(y,function(){if(!z.wrapKey)throw new n.default(c.default.Uhb,"no wrap/unwrap key");e.Tg.unwrapKey("raw",v,z.wrapKey,z.wrapKey.algorithm,w,!1,x).then(function(B){A(B);},function(B){y.error(new n.default(c.default.rHa,null,B));});},this);};u.prototype.sign=function(v,w,x,y){var A;A=this;d.default(y,function(){if(!A.mI)throw new n.default(c.default.pGa,"no signature key.");e.Tg.sign(A.mI.algorithm,A.mI,v).then(function(z){d.default(y,function(){r.sNa(new Uint8Array(z),{result:function(B){B.vd(w,x,{result:y.result,error:function(C){d.default(y,function(){C instanceof g.default && (C=new n.default(c.default.Vfb,void 0,C));y.error(C);});}});},error:y.error});});},function(z){y.error(new n.default(c.default.yha,null,z));});});};u.prototype.verify=function(v,w,x,y){var A;A=this;d.default(y,function(){if(!A.mI)throw new n.default(c.default.BHa,"no signature key.");r.lYa(w,r.jf.Dl,x,{result:function(z){d.default(y,function(){var B;B=y.result;e.Tg.verify(A.mI.algorithm,A.mI,z.Cea,v).then(B,function(C){y.error(new n.default(c.default.yha,void 0,C));});});},error:y.error});});};return u;})();b.YGa=a;},96837:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Bwc=b.qxc=b.Swc=b.Oe=void 0;b.Oe={nga:{name:"AES-KW"},FN:{name:"AES-CBC"},JVb:{name:"ECDH"},VUb:{name:"DH"},wV:{name:"HMAC",hash:{name:"SHA-256"}},hF:{name:"RSA-OAEP",hash:{name:"SHA-1"}},Oia:{name:"RSAES-PKCS1-v1_5"},S_b:{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}},k4a:{name:"AES-CMAC"},KVb:{name:"ECDSA",hash:{name:"SHA-256"}},T_b:{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}},z5:{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},OYc:{name:"NFLX-DH"},a3c:{name:"SHA-256"},b3c:{name:"SHA-384"}};b.Swc=function(a){return "HMAC" == a.name;};b.qxc=function(a){switch(a.name){case b.Oe.hF.name:case b.Oe.Oia.name:case b.Oe.S_b.name:case b.Oe.T_b.name:case b.Oe.z5.name:return !0;default:return !1;}};b.Bwc=function(a){switch(a.name){case b.Oe.JVb.name:case b.Oe.KVb.name:return !0;default:return !1;}};},10558:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.qF={lha:["encrypt","decrypt"],S_c:["encrypt"],$Zc:["decrypt"],n4c:["wrap","unwrap"],KHa:["wrap"],$3c:["unwrap"],eW:["sign","verify"],c3c:["sign"],h4c:["verify"],b_c:["deriveKey"]};},58768:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.gHb=b.S3=void 0;d=a(22970);t=a(48235);n=d.__importDefault(a(42979));c=d.__importDefault(a(24571));f=d.__importDefault(a(36114));g=d.__importDefault(a(6838));e=d.__importDefault(a(88257));a=(function(h){function k(l){var m;m=h.call(this) || this;m.scheme=l;m.encodings={};return m;}d.__extends(k,h);k.prototype.equals=function(l){return this === l?!0:l instanceof k?this.scheme == l.scheme:!1;};k.prototype.Gn=function(l,m,p){var r;r=this;n.default(p,function(){if(r.encodings[m])return r.encodings[m];r.UQ(l,{result:function(q){n.default(p,function(){var u;u=l.mf();u.put("scheme",r.scheme.name);u.put("authdata",q);l.Ij(u,m,{result:function(v){n.default(p,function(){return r.encodings[m]=v;});},error:p.error});});},error:p.error});});};return k;})(t.Oo);b.S3=a;b.gHb=function(h,k,l){n.default(l,function(){var m,p,r,q;try{m=k.we("scheme");p=k.Bq("authdata",h.Dg);r=h.Gpc(m);if(!r)throw new c.default(f.default.X0b,m);q=h.dpa(r);if(!q)throw new c.default(f.default.IAa,r.name);q.y8(p,l);}catch(u){if(u instanceof g.default)throw new e.default(f.default.Ze,"entityauthdata " + k,u);throw u;}});};},80477:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.VAa=void 0;b.VAa=(function(){return function(a){this.scheme=a;};})();},36332:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.TE=void 0;t=(function(){function a(d,n,c){this.name=d;this.Una=n;this.eJb=c;a.wB[d]=this;}a.prototype.toString=function(){return this.name;};a.K$=function(d){return a.wB[d]?a.wB[d]:null;};a.wB={};return a;})();b["default"]=t;b.TE={xdb:new t("PSK",!0,!0),p_b:new t("PSK_PROFILE",!0,!0),p4c:new t("X509",!1,!0),aW:new t("RSA",!1,!0),IVb:new t("ECC",!1,!0),NONE:new t("NONE",!1,!1),LYb:new t("NONE_SUFFIXED",!1,!1),q1c:new t("MT_PROTECTED",!1,!1),y2c:new t("PROVISIONED",!1,!1),dYb:new t("MIGRATION",!1,!1)};},75563:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.dHc=b.I_b=void 0;d=a(22970);t=a(58768);n=a(36332);c=d.__importDefault(a(42979));f=d.__importDefault(a(6838));g=d.__importDefault(a(88257));e=d.__importDefault(a(36114));h=(function(k){function l(m,p){var r;r=k.call(this,n.TE.p_b) || this;r.Lua=m;r.profile=p;return r;}d.__extends(l,k);l.prototype.nA=function(){return this.Lua + "-" + this.profile;};l.prototype.UQ=function(m,p){var r;r=this;c.default(p,function(){var q;q=m.mf();q.put("pskid",r.Lua);q.put("profile",r.profile);return q;});};l.prototype.equals=function(m){return this === m?!0:m instanceof l?k.prototype.equals.call(this,m) && this.Lua == m.Lua && this.profile == m.profile:!1;};return l;})(t.S3);b.I_b=h;b.dHc=function(k){var l,m;try{l=k.we("pskid");m=k.we("profile");return new h(l,m);}catch(p){if(p instanceof f.default)throw new g.default(e.default.Ze,"psk profile authdata " + k);throw p;}};},90973:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.rHb=b.Nfb=void 0;d=a(22970);t=a(58768);n=a(36332);c=d.__importDefault(a(42979));f=d.__importDefault(a(6838));g=d.__importDefault(a(88257));e=d.__importDefault(a(36114));h=(function(k){function l(m,p){var r;r=k.call(this,n.TE.aW) || this;r.ju=m;r.Zua=p;return r;}d.__extends(l,k);l.prototype.nA=function(){return this.ju;};l.prototype.UQ=function(m,p){var r;r=this;c.default(p,function(){var q;q=m.mf();q.put("identity",r.ju);q.put("pubkeyid",r.Zua);return q;});};l.prototype.equals=function(m){return this === m?!0:m instanceof l?k.prototype.equals.call(this,m) && this.ju == m.ju && this.Zua == m.Zua:!1;};return l;})(t.S3);b.Nfb=h;b.rHb=function(k){var l,m;try{l=k.we("identity");m=k.we("pubkeyid");return new h(l,m);}catch(p){if(p instanceof f.default)throw new g.default(e.default.Ze,"RSA authdata" + k);throw p;}};},18089:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperty(b,"__esModule",{value:!0});b.Ofb=void 0;d=a(22970);t=a(80477);n=a(36332);c=d.__importDefault(a(42979));f=a(90973);g=d.__importDefault(a(10690));e=d.__importDefault(a(24571));h=d.__importDefault(a(36114));k=a(33863);a=(function(l){function m(p,r){var q;q=l.call(this,n.TE.aW) || this;q.pu=p;q.store=r;return q;}d.__extends(m,l);m.prototype.y8=function(p,r){c.default(r,function(){return f.rHb(p);});};m.prototype.kA=function(p,r){var q,u,v,w;if(!(r instanceof f.Nfb))throw new g.default("Incorrect authentication data type " + r + ".");q=r.ju;u=r.Zua;v=this.store.Dxb(u);w=this.store.Orc(u);if(u == this.pu && !w)throw new e.default(h.default.U_b,u).Xf(r);if(u != this.pu && !v)throw new e.default(h.default.V_b,u).Xf(r);return new k.Xia(p,q,w,v,k.cF.eW);};return m;})(t.VAa);b.Ofb=a;},88774:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.Pfb=void 0;t=a(22970);d=a(42486);a(36911);n=t.__importDefault(a(10690));t.__importDefault(a(32260));a=(function(){function c(){this.CZa={};this.PIb={};}c.prototype.Z5b=function(f,g){if(!(g instanceof d.Gia))throw new n.default("Incorrect key data type " + g + ".");this.CZa[f]=g;};c.prototype.Dxb=function(f){return this.CZa[f];};c.prototype.Orc=function(f){return this.PIb[f];};c.prototype.clear=function(){this.CZa={};this.PIb={};};return c;})();b.Pfb=a;},2479:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.vHb=b.tHa=void 0;d=a(22970);t=a(58768);n=a(36332);c=d.__importDefault(a(42979));f=d.__importDefault(a(6838));g=d.__importDefault(a(88257));e=d.__importDefault(a(36114));h=(function(k){function l(m){var p;p=k.call(this,n.TE.NONE) || this;p.ju=m;return p;}d.__extends(l,k);l.prototype.nA=function(){return this.ju;};l.prototype.UQ=function(m,p){var r;r=this;c.default(p,function(){var q;q=m.mf();q.put("identity",r.ju);return q;});};l.prototype.equals=function(m){return this === m?!0:m instanceof l?k.prototype.equals.call(this,m) && this.ju == m.ju:!1;};return l;})(t.S3);b.tHa=h;b.vHb=function(k){var l;try{l=k.we("identity");return new h(l);}catch(m){if(m instanceof f.default)throw new g.default(e.default.Ze,"Unauthenticated authdata" + k);throw m;}};},28296:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperty(b,"__esModule",{value:!0});b.Xhb=void 0;d=a(22970);t=a(80477);n=a(36332);c=d.__importDefault(a(42979));f=a(2479);g=d.__importDefault(a(24571));e=d.__importDefault(a(36114));h=d.__importDefault(a(10690));k=a(97962);a=(function(l){function m(p){var r;r=l.call(this,n.TE.NONE) || this;r.fnb=p;return r;}d.__extends(m,l);m.prototype.y8=function(p,r){c.default(r,function(){return f.vHb(p);});};m.prototype.kA=function(p,r){if(!(r instanceof f.tHa))throw new h.default("Incorrect authentication data type " + r + ".");p=r.nA();if(this.fnb.Fwc(p))throw new g.default(e.default.l8a,"none " + p).Xf(r);return new k.Mcb();};return m;})(t.VAa);b.Xhb=a;},66734:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.rHc=b.n1b=void 0;d=a(22970);t=a(58768);n=a(36332);c=d.__importDefault(a(42979));f=d.__importDefault(a(6838));g=d.__importDefault(a(88257));e=d.__importDefault(a(36114));h=(function(k){function l(m,p){var r;r=k.call(this,n.TE.LYb) || this;r.root=m;r.$wa=p;return r;}d.__extends(l,k);l.prototype.nA=function(){return this.root + "." + this.$wa;};l.prototype.UQ=function(m,p){var r;r=this;c.default(p,function(){var q;q=m.mf();q.put("root",r.root);q.put("suffix",r.$wa);return q;});};l.prototype.equals=function(m){return this === m?!0:m instanceof l?k.prototype.equals.call(this,m) && this.root == m.root && this.$wa == m.$wa:!1;};return l;})(t.S3);b.n1b=h;b.rHc=function(k){var l,m;try{l=k.we("root");m=k.we("suffix");return new h(l,m);}catch(p){if(p instanceof f.default)throw new g.default(e.default.Ze,"Unauthenticated suffixed authdata" + k);throw p;}};},83853:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.eUb=void 0;d=a(22970);t=a(53389);n=a(25078);c=d.__importDefault(a(48795));f=d.__importDefault(a(79804));a=(function(g){function e(h){var k;k=g.call(this) || this;k.Dt=h;k.Rb=null;k.Pn=0;k.kv=-1;k.El=!1;return k;}d.__extends(e,g);e.prototype.abort=function(){this.Dt.abort();};e.prototype.close=function(h,k){this.El=!0;this.Dt.close(h,k);};e.prototype.mark=function(h){var k;if(!this.Rb)(this.Rb=new n.Hga(),this.Pn=0);else if(0 < this.Pn){k=this.Rb.w2();this.Rb=new n.Hga();this.Rb.write(k,this.Pn,k.length - this.Pn,-1,{result:function(){},error:function(){}});this.Pn=0;}this.kv=h;};e.prototype.reset=function(){if(!this.Rb)throw new c.default("Cannot reset before input stream has been marked or if mark has been invalidated.");this.Pn=0;};e.prototype.read=function(h,k,l){var p;function m(r,q){var u;if(!q)return r;p.Rb && (-1 != p.kv && p.Rb.size() + q.length > p.kv?(p.Rb=null,p.Pn=0,p.kv=-1):(p.Rb.write(q,0,q.length,-1,{result:function(){},error:function(){}}),p.Pn+=q.length));if(!r)return q;u=new Uint8Array(r.length + q.length);u.set(r);u.set(q,r.length);return u;}p=this;f.default(l,function(){var r,q;if(p.El)throw new c.default("Stream is already closed.");if(p.Rb && p.Rb.size() > p.Pn){r=void 0;r=-1 == h?p.Rb.size():Math.min(p.Rb.size(),p.Pn + h);q=p.Rb.w2().subarray(p.Pn,r);p.Pn+=q.length;if(q.length >= h)return q;}else q=null;r=-1;-1 != h && (r=h - (q?q.length:0));p.Dt.read(r,k,{result:function(u){f.default(l,function(){return m(q,u);});},timeout:function(u){f.default(l,function(){var v;v=m(q,u);l.timeout(v);});},error:l.error});});};e.prototype.skip=function(h,k,l){var m;m=this;f.default(l,function(){var p;if(m.El)throw new c.default("Stream is already closed.");p=0;if(m.Rb && m.Rb.size() > m.Pn && (p=Math.min(h,m.Rb.size() - m.Pn),m.Pn+=p,p == h))return p;m.read(h - p,k,{result:function(r){f.default(l,function(){return r?r.length + p:p;});},timeout:function(r){f.default(l,function(){return r?r.length + p:p;});},error:l.error});});};return e;})(t.Iha);b.eUb=a;},99881:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.o6a=void 0;d=a(22970);t=a(53389);n=d.__importDefault(a(79804));c=d.__importDefault(a(48795));a=(function(f){function g(e){var h;h=f.call(this) || this;h.jk=e;h.El=!1;h.kx=0;h.OIa=-1;return h;}d.__extends(g,f);g.prototype.abort=function(){};g.prototype.close=function(e,h){var k;k=this;n.default(h,function(){return k.El=!0;});};g.prototype.mark=function(){this.OIa=this.kx;};g.prototype.reset=function(){if(-1 == this.OIa)throw new c.default("Cannot reset before input stream has been marked or if mark has been invalidated.");this.kx=this.OIa;};g.prototype.read=function(e,h,k){var l;l=this;n.default(k,function(){var m;if(l.El)throw new c.default("Stream is already closed.");if(l.kx == l.jk.length)return null;-1 == e && (e=l.jk.length - l.kx);m=l.jk.subarray(l.kx,l.kx + e);l.kx+=m.length;return m;});};g.prototype.skip=function(e,h,k){var l;l=this;n.default(k,function(){var m;m=l.kx;l.kx=Math.min(l.kx + e,l.jk.length);return l.kx - m;});};return g;})(t.Iha);b.o6a=a;},25078:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.Hga=void 0;d=a(22970).__importDefault(a(48795));t=(function(){function n(){this.El=!1;this.Lz=new Uint8Array(0);this.XHa=[];}n.prototype.abort=function(){};n.prototype.close=function(c,f){this.El=!0;f.result(!0);};n.prototype.write=function(c,f,g,e,h){var k;try{if(this.El)throw new d.default("Stream is already closed.");if(0 > f)throw new RangeError("Offset cannot be negative.");if(0 > g)throw new RangeError("Length cannot be negative.");if(f + g > c.length)throw new RangeError("Offset plus length cannot be greater than the array length.");k=c.subarray(f,Math.min(c.length,f + g));this.XHa.push(k);h.result(k.length);}catch(l){h.error(l);}};n.prototype.flush=function(c,f){var g,e;try{for(;0 < this.XHa.length;){g=this.XHa.shift();if(this.Lz){e=new Uint8Array(this.Lz.length + g.length);e.set(this.Lz);e.set(g,this.Lz.length);this.Lz=e;}else this.Lz=new Uint8Array(g);}f.result(!0);}catch(h){f.error(h);}};n.prototype.size=function(){this.flush(1,{result:function(){},error:function(){}});return this.Lz.length;};n.prototype.w2=function(){this.flush(1,{result:function(){},error:function(){}});return this.Lz;};return n;})();b.Hga=t;},98263:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.P6a=void 0;t=a(22970);d=t.__importDefault(a(51411));n=t.__importDefault(a(12457));a=(function(){function c(){var f,g,e;f=n.default.Le();f.vX=d.default.Ye;g={values:[],stack:[],Um:void 0,ap:void 0,YP:void 0};e=!1;f.onerror=function(){e || (e=!0,f.end());};f.onopenobject=function(h){var k;if(g.Um)(g.Um[g.YP]={},g.stack.push(g.Um),g.Um=g.Um[g.YP]);else if(g.ap){k={};g.stack.push(g.ap);g.ap.push(k);g.Um=k;g.ap=void 0;}else g.Um={};g.YP=h;};f.oncloseobject=function(){var h;h=g.stack.pop();h?"object" === typeof h?g.Um=h:(g.Um=void 0,g.ap=h):(g.values.push(g.Um),g.Um=void 0,f.pause());};f.onopenarray=function(){var h;if(g.Um)(g.Um[g.YP]=[],g.stack.push(g.Um),g.ap=g.Um[g.YP],g.Um=void 0);else if(g.ap){h=[];g.stack.push(g.ap);g.ap.push(h);g.ap=h;}else g.ap=[];};f.onclosearray=function(){var h;h=g.stack.pop();h?"object" === typeof h?(g.Um=h,g.ap=void 0):g.ap=h:(g.values.push(g.ap),g.ap=void 0,f.pause());};f.onkey=function(h){g.YP=h;};f.onvalue=function(h){g.Um?g.Um[g.YP]=h:g.ap?g.ap.push(h):(g.values.push(h),f.pause());};this.Ge=f;this.$a=g;}c.prototype.write=function(f){this.Ge.resume();this.Ge.write(f);};c.prototype.mFb=function(){var f;f=this.$a;0 == f.values.length && 0 < this.Ge.pending.length && (this.Ge.resume(),this.Ge.parse());if(0 < f.values.length)return f.values.shift();};return c;})();b.P6a=a;},30370:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.B7a=void 0;d=a(22970);t=a(21399);n=a(65630);c=a(77593);f=d.__importDefault(a(6838));g=d.__importDefault(a(42979));e=a(72536);a=(function(h){function k(){return null !== h && h.apply(this,arguments) || this;}d.__extends(k,h);k.prototype.yxb=function(){return n.dC.JSON;};k.prototype.boc=function(l,m){if(n.dC.JSON === m)return new c.R$a(this,l);throw new f.default("Unsupported encoder format: " + m + ".");};k.prototype.Bp=function(l){var m;m=this.UGc(l);if(n.dC.JSON == m)return new e.kO(this,l);throw new f.default("Unsupported encoder format: " + m + ".");};k.prototype.Ij=function(l,m,p){var r;r=this;g.default(p,function(){if(n.dC.JSON == m)e.mtb(r,l,p);else throw new f.default("Unsupported encoder format: " + m + ".");});};return k;})(t.icb);b.B7a=a;},14894:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.Y9a=void 0;t=a(22970);d=t.__importDefault(a(51411));n=t.__importDefault(a(79804));c=a(69193);f=a(99881);g=a(65630);e=t.__importDefault(a(48795));a=(function(){function h(k){this.eJa=k;this.Rb=void 0;this.kv=-1;this.zW=void 0;this.Ag=this.Nr=!1;this.b3b=void 0;this.Cjb=[];}h.prototype.abort=function(){this.eJa.abort();};h.prototype.close=function(k,l){var m;m=this;n.default(l,function(){if(m.Rb)m.Rb.close(k,l);else return !0;});};h.prototype.mark=function(k){this.Rb?this.Rb.mark(k):this.kv=k;};h.prototype.reset=function(){this.Rb && this.Rb.reset();};h.prototype.q$=function(){return this.Cjb;};h.prototype.read=function(k,l,m){var r;function p(q){n.default(m,function(){if(!q)return new Uint8Array(0);r.eJa.I$({result:function(u){n.default(m,function(){var v;if(u.Uqa)(r.Nr=!0,m.timeout());else {if(u.nL)throw (r.zW=u.error || new e.default("Unknown HTTP exception."),r.zW);if(!u.response)throw (r.zW=new e.default("Missing HTTP response."),r.zW);r.Cjb=u.response.headers;if(void 0 !== u.response.json){r.b3b=u.response.json;v=new Uint8Array([g.dC.JSON.identifier]);}else if(u.response.content instanceof Uint8Array)v=u.response.content;else if("string" === typeof u.response.body)v=c.jC.vd(u.response.body,d.default.RUb);else throw new e.default("Missing HTTP response content.");r.Rb=new f.o6a(v);-1 != r.kv && r.Rb.mark(r.kv);r.Rb.read(k,l,m);}});},error:m.error});});}r=this;n.default(m,function(){if(r.zW)throw r.zW;if(r.Nr)m.timeout();else {if(r.Ag)return new Uint8Array(0);r.Rb?r.Rb.read(k,l,m):r.eJa.close(l,{result:function(q){p(q);},timeout:m.timeout,error:m.error});}});};h.prototype.skip=function(){throw Error("wat?");};return h;})();b.Y9a=a;},41161:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.$9a=void 0;t=a(22970);d=t.__importDefault(a(10690));n=t.__importDefault(a(42979));c=a(89752);f=t.__importDefault(a(79804));g=a(25078);e=t.__importDefault(a(48795));a=(function(){function h(k,l){this.EIa=k;this.Il=l;this.Rb=new g.Hga();this.Fja=this.gq=void 0;this.Ag=!1;this.lP=new c.q3();}h.prototype.setTimeout=function(k){this.Il=k;};h.prototype.I$=function(k){var l;l=this;this.lP.Xca(-1,{result:function(m){n.default(k,function(){m && l.lP.add(m);return m;});},timeout:function(){n.default(k,function(){l.gq={nL:!0};l.lP.add(l.gq);l.abort();throw new d.default("Timeout while waiting for HttpOutputStream.getResponse() despite no timeout being specified.");});},error:function(m){n.default(k,function(){l.gq={nL:!0};l.lP.add(l.gq);throw m;});}});};h.prototype.abort=function(){this.Fja && this.Fja.abort();this.Ag=!0;};h.prototype.close=function(k,l){var m;m=this;f.default(l,function(){var p;if(m.gq || m.Fja || m.Ag)return !0;p=m.Rb.w2();0 < p.length && (m.Fja=m.EIa.I$({body:p},{result:function(r){m.gq={response:r};m.lP.add(m.gq);},timeout:function(){m.gq={Uqa:!0};m.lP.add(m.gq);},error:function(r){m.gq={nL:!0,error:r};m.lP.add(m.gq);}}));return !0;});};h.prototype.write=function(k,l,m,p,r){var q;q=this;f.default(r,function(){if(q.gq)throw new e.default("HttpOutputStream already closed.");q.Rb.write(k,l,m,p,r);},this);};h.prototype.flush=function(k,l){var m;m=this;f.default(l,function(){if(m.gq)return !0;m.Rb.flush(k,l);});};return h;})();b.$9a=a;},53389:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.Iha=void 0;d=a(22970).__importDefault(a(79804));t=(function(){function n(){}n.prototype.skip=function(c,f,g){this.read(c,f,{result:function(e){d.default(g,function(){return e?e.length:0;});},timeout:function(e){d.default(g,function(){return e?e.length:0;});},error:g.error});};return n;})();b.Iha=t;},89768:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;Object.defineProperty(b,"__esModule",{value:!0});b.Lha=void 0;d=a(22970);n=a(77633);c=a(9E3);f=a(48235);g=a(65630);e=a(69193);h=d.__importDefault(a(6838));k=a(44127);l=d.__importDefault(a(42979));m=a(72536);p=a(32260);t=(function(r){function q(u,v){var w,y;w=r.call(this,null) || this;w.uQ=u;u=[];if(v instanceof Array)u=v;else if(v instanceof n.Qk)for(var x=0;x < v.size();++x)u.push(v.tf(x));else if(v instanceof Uint8Array)try{x=e.jC.we(v,e.ZB.nF);y=JSON.parse(x);if(!(y instanceof Array))throw new h.default("Invalid JSON array encoding.");u=y;}catch(A){if(!p.Dd(A))throw new h.default("Invalid JSON array encoding.",A);throw A;}try{for(v=0;v < u.length;++v)w.put(-1,u[v]);}catch(A){if(A instanceof TypeError)throw new h.default("Invalid MSL array encoding.",A);throw A;}return w;}d.__extends(q,r);q.prototype.put=function(u,v){var w;try{w=v instanceof Object && v.constructor === Object?new m.kO(this.uQ,v):v instanceof Array?new q(this.uQ,v):v;}catch(x){if(x instanceof h.default)throw new TypeError("Unsupported JSON object or array representation.");throw x;}return r.prototype.put.call(this,u,w);};q.prototype.vd=function(u){var v;v=this.get(u);if(v instanceof Uint8Array)return v;try{if(v instanceof String)return k.nk(v.valueOf(),!1);if("string" === typeof v)return k.nk(v,!1);}catch(w){}throw new h.default("MslArray[" + u + "] is not binary data.");};q.prototype.pxa=function(u,v){var x;function w(y,A,z){l.default(v,function(){var B;if(z >= A)return y;B=x.tf(z);B instanceof Uint8Array?(y.push(k.zi(B)),w(y,A,z + 1)):B instanceof m.kO?B.sU(u,{result:function(C){l.default(v,function(){y.push(C);w(y,A,z + 1);});},error:v.error}):B instanceof q?B.pxa(u,{result:function(C){l.default(v,function(){y.push(C);w(y,A,z + 1);});},error:v.error}):B instanceof c.cj?new m.kO(u,B).sU(u,{result:function(C){l.default(v,function(){y.push(C);w(y,A,z + 1);});},error:v.error}):B instanceof n.Qk?new q(u,B).pxa(u,{result:function(C){l.default(v,function(){y.push(C);w(y,A,z + 1);});},error:v.error}):B instanceof f.Oo?B.Gn(u,g.dC.JSON,{result:function(C){l.default(v,function(){new m.kO(u,C).sU(u,{result:function(D){l.default(v,function(){y.push(D);w(y,A,z + 1);});},error:v.error});});},error:v.error}):(y.push(B),w(y,A,z + 1));});}x=this;l.default(v,function(){var y;y=x.size();w([],y,0);});};return q;})(n.Qk);b.Lha=t;},72536:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q;Object.defineProperty(b,"__esModule",{value:!0});b.kO=b.mtb=void 0;d=a(22970);n=a(77633);c=a(9E3);f=a(69193);g=a(48235);e=a(65630);h=d.__importDefault(a(6838));k=a(44127);l=d.__importDefault(a(42979));m=a(21399);p=a(89768);r=a(32260);b.mtb=function(u,v,w){l.default(w,function(){(v instanceof q?v:new q(u,v)).wUc(u,{result:function(x){l.default(w,function(){return f.jC.vd(x,f.ZB.nF);});},error:w.error});});};q=(function(u){function v(w,x){var y,B;void 0 === x && (x=null);y=u.call(this) || this;y.uQ=w;try{if((w=void 0,x instanceof c.cj))for(var A=x.s$(),z=0;z < A.length;++z)(w=A[z],y.put(w,x.tf(w)));else if(x instanceof Object && x.constructor === Object)for(w in x){if(!(w instanceof String) && "string" !== typeof w)throw new h.default("Invalid JSON object encoding.");y.put(w,x[w]);}else if(x instanceof Uint8Array){z=f.jC.we(x,f.ZB.nF);B=JSON.parse(z);if(!(B instanceof Object) || B.constructor !== Object)throw new h.default("Invalid JSON object encoding.");for(w in B){if(!(w instanceof String) && "string" !== typeof w)throw new h.default("Invalid JSON object encoding.");y.put(w,B[w]);}}}catch(C){if(C instanceof TypeError)throw new h.default("Invalid MSL object encoding.",C);if(!r.Dd(C))throw new h.default("Invalid JSON object encoding.",C);throw C;}return y;}d.__extends(v,u);v.prototype.put=function(w,x){var y;try{y=x instanceof Object && x.constructor === Object?new v(this.uQ,x):x instanceof Array?new p.Lha(this.uQ,x):x;}catch(A){if(A instanceof h.default)throw new TypeError("Unsupported JSON object or array representation.");throw A;}return u.prototype.put.call(this,w,y);};v.prototype.vd=function(w){var x;x=this.get(w);if(x instanceof Uint8Array)return x;try{if(x instanceof String)return k.nk(x.valueOf(),!1);if("string" === typeof x)return k.nk(x,!1);}catch(y){}throw new h.default("MslObject[" + m.quote(w) + "] is not binary data.");};v.prototype.sU=function(w,x){var A;function y(z,B,C){l.default(x,function(){var D,F;if(C >= B.length)return z;D=B[C];F=A.tf(D);F instanceof Uint8Array?(z[D]=k.zi(F),y(z,B,C + 1)):F instanceof v?F.sU(w,{result:function(H){l.default(x,function(){z[D]=H;y(z,B,C + 1);});},error:x.error}):F instanceof p.Lha?F.pxa(w,{result:function(H){l.default(x,function(){z[D]=H;y(z,B,C + 1);});},error:x.error}):F instanceof c.cj?new v(w,F).sU(w,{result:function(H){l.default(x,function(){z[D]=H;y(z,B,C + 1);});},error:x.error}):F instanceof n.Qk?new p.Lha(w,F).pxa(w,{result:function(H){l.default(x,function(){z[D]=H;y(z,B,C + 1);});},error:x.error}):F instanceof g.Oo?F.Gn(w,e.dC.JSON,{result:function(H){l.default(x,function(){new v(w,H).sU(w,{result:function(E){l.default(x,function(){z[D]=E;y(z,B,C + 1);});},error:x.error});});},error:x.error}):(z[D]=F,y(z,B,C + 1));});}A=this;l.default(x,function(){var z;z=A.s$();y({},z,0);});};v.prototype.wUc=function(w,x){this.sU(w,{result:function(y){l.default(x,function(){return JSON.stringify(y);});},error:x.error});};return v;})(c.cj);b.kO=q;},77593:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.R$a=void 0;d=a(22970);t=a(1454);n=d.__importDefault(a(42979));c=d.__importDefault(a(79804));f=d.__importDefault(a(6838));g=a(98263);e=a(72536);h=a(69193);a=(function(k){function l(m,p){var r;r=k.call(this) || this;r.Dg=m;r.Dt=p;r.Yib=h.ZB.nF;r.o6="";r.Ge=new g.P6a();return r;}d.__extends(l,k);l.prototype.close=function(m,p){var r;r=this;c.default(p,function(){var q;if(0 == r.Ge.Ge.pending.length)return !0;q=h.jC.vd(r.o6.substring(0,r.o6.length - r.Ge.Ge.pending.length),r.Yib);r.Dt.reset();r.Dt.skip(q.length,m,{result:function(u){n.default(p,function(){if(u != q.length)throw new f.default("Only skipped " + u + " of " + q.length + " bytes. Source input stream may not be reusable for additional MSL messages.");return !0;});},timeout:function(u){n.default(p,function(){if(u != q.length)throw new f.default("Only skipped " + u + " of " + q.length + " bytes. Source input stream may not be reusable for additional MSL messages.");return !0;});},error:p.error});});};l.prototype.abort=function(){k.prototype.abort.call(this);this.Dt.abort();};l.prototype.eHb=function(m,p){var r;r=this;c.default(p,function(){r.Dt.mark(65536);r.Dt.read(65536,m,{result:function(q){c.default(p,function(){var u;if(!q || !q.length)return null;r.o6=h.jC.we(q,r.Yib);u=r.Ge.Ge.pending.length + r.o6.length;if(10485760 < u)throw new f.default("JSON parsing stopped after reaching " + u + " unparsed characters.");r.Ge.write(r.o6);u=r.Ge.mFb();if(void 0 !== u)return u;setTimeout(function(){r.eHb(m,p);},0);});},timeout:p.timeout,error:function(q){n.default(p,function(){throw new f.default("Error reading from the source input stream.",q);});}});});};l.prototype.next=function(m,p){var q;function r(u){c.default(p,function(){if("object" !== typeof u)throw new f.default("Malformed MSL message. Parsed " + typeof u + " instead of object.");return new e.kO(q.Dg,u);});}q=this;c.default(p,function(){var u;u=q.Ge.mFb();void 0 !== u?r(u):q.eHb(q.Il,{result:function(v){c.default(p,function(){if(q.Ag || !v)return null;r(v);});},timeout:p.timeout,error:p.error});});};return l;})(t.jcb);b.R$a=a;},77633:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.Qk=void 0;d=a(22970).__importDefault(a(6838));n=a(48235);c=a(21399);f=a(9E3);g=a(46383);t=(function(){function e(h){void 0 === h && (h=null);this.list=[];if(h)for(var k=0;k < h.length;++k)this.put(-1,h[k]);}e.prototype.get=function(h){var k;if(0 > h || h >= this.list.length)throw new RangeError("MslArray[" + h + "] is negative or exceeds array length.");k=this.list[h];if(null === k || void 0 === k)throw new d.default("MslArray[" + h + "] is null.");return k instanceof Object && k.constructor === Object?new f.cj(k):k instanceof Array?new e(k):k;};e.prototype.Z9=function(h){var k;k=this.get(h);if(k instanceof Boolean)return k.valueOf();if("boolean" === typeof k)return k;throw new d.default("MslArray[" + h + "] is not a boolean.");};e.prototype.vd=function(h){var k;k=this.get(h);if(k instanceof Uint8Array)return k;throw new d.default("MslArray[" + h + "] is not binary data.");};e.prototype.aR=function(h){var k;k=this.get(h);if(k instanceof Number)return k.valueOf() << 0;if("number" === typeof k)return k << 0;throw new d.default("MslArray[" + h + "] is not a number.");};e.prototype.BRa=function(h){var k;k=this.get(h);if(k instanceof e)return k;if(k instanceof Array)return new e(k);throw new d.default("MslArray[" + h + "] is not a MslArray.");};e.prototype.Bq=function(h,k){var l;l=this.get(h);if(l instanceof f.cj)return l;if(l instanceof Object && l.constructor === Object)return new f.cj(l);if(l instanceof Uint8Array)try{return k.Bp(l);}catch(m){if(m instanceof d.default)throw new d.default("MslObject[" + h + "] is not a MslObject.",m);throw m;}throw new d.default("MslArray[" + h + "] is not a MslObject.");};e.prototype.io=function(h){var k;k=this.get(h);if(k instanceof Number)return parseInt(k.valueOf());if("number" === typeof k)return parseInt(k);throw new d.default("MslArray[" + h + "] is not a number.");};e.prototype.we=function(h){var k;k=this.get(h);if(k instanceof String)return k.valueOf();if("string" === typeof k)return k;throw new d.default("MslArray[" + h + "] is not a string.");};e.prototype.rd=function(h){if(0 > h || h >= this.list.length)throw new RangeError("MslArray[" + h + "] is negative or exceeds array length.");return null == this.list[h];};e.prototype.size=function(){return this.list.length;};e.prototype.tf=function(h){if(0 > h || h >= this.list.length)throw new RangeError("MslArray[" + h + "] is negative or exceeds array length.");h=this.list[h];try{if(h instanceof Object && h.constructor === Object)return new f.cj(h);if(h instanceof Array)return new e(h);}catch(k){if(k instanceof TypeError)return null;}return h;};e.prototype.Nta=function(h){h=this.tf(h);return h instanceof e?h:h instanceof Array?new e(h):null;};e.prototype.Bca=function(h,k){h=this.tf(h);return h instanceof String?h.valueOf():"string" === typeof h?h:k instanceof String?k.valueOf():"string" === typeof k || null === k?k:"";};e.prototype.put=function(h,k){if(-1 > h)throw new RangeError("MslArray[" + h + "] is negative.");if(!(k instanceof Boolean || "boolean" === typeof k || k instanceof Uint8Array || k instanceof Number || "number" === typeof k || k instanceof f.cj || k instanceof e || k instanceof String || "string" === typeof k || k instanceof n.Oo || null === k))if(k instanceof Object && k.constructor === Object)k=new f.cj(k);else if(k instanceof Array)k=new e(k);else throw new TypeError("Value [" + typeof k + "] is an unsupported type.");for(var l=this.list.length;l < h;++l)this.list.push(null);if(-1 == h || h == this.list.length)return (this.list.push(k),this);this.list[h]=k;return this;};e.prototype.remove=function(h){var k;if(-1 > h || h >= this.list.length)throw new RangeError("MslArray[" + h + "] is negative or exceeds array length.");k=this.tf(-1 == h?this.list.length - 1:h);this.list.splice(h,1);return k;};e.prototype.equals=function(h){if(this == h)return !0;if(!(h instanceof e))return !1;try{return g.ztb(this,h);}catch(k){if(k instanceof d.default)return !1;throw k;}};e.prototype.toString=function(){var l;for(var h="[",k=0;k < this.list.length;k++){l=this.list[k];h=l instanceof f.cj?h + "{}":l instanceof e?h + "[]":h + c.stringify(l);k != this.list.length - 1 && (h+=",");}return h + "]";};return e;})();b.Qk=t;},48235:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Oo=void 0;b.Oo=(function(){return function(){};})();},6838:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970);t=(function(n){function c(f,g){return n.call(this,"MslEncoderException",f,g) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(18595)).default);b["default"]=t;},21399:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.icb=b.stringify=b.quote=void 0;t=a(22970);d=a(44127);n=a(9E3);c=a(77633);f=a(65630);g=t.__importDefault(a(42979));e=t.__importDefault(a(6838));a(83853);b.quote=function(h){return JSON.stringify(h).replace(/["]/g,'\\"').replace(/[\\]/g,"\\\\").replace(/[\/]/g,"\\/").replace(/[\b]/g,"\\b").replace(/[\f]/g,"\\f").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\t]/g,"\\t");};b.stringify=function(h){return h instanceof n.cj || h instanceof c.Qk?h.toString():h instanceof Uint8Array?d.zi(h,!1):JSON.stringify(h).replace(/["]/g,'\\"').replace(/[\\]/g,"\\\\").replace(/[\/]/g,"\\/").replace(/[\b]/g,"\\b").replace(/[\f]/g,"\\f").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\t]/g,"\\t");};a=(function(){function h(){}h.prototype.igc=function(k,l,m){var r;function p(q,u){g.default(m,function(){var v;v=f.$ha.ZQa(u);if(!v)throw new e.default("Unidentified encoder format ID: (byte)" + u + ".");q.reset();return r.boc(q,v);});}r=this;g.default(m,function(){k.mark(1);k.read(1,l,{result:function(q){g.default(m,function(){if(null == q || 1 > q.length)throw new e.default("End of stream reached when attempting to read the byte stream identifier.");p(k,q[0]);});},timeout:m.timeout,error:m.error});});};h.prototype.mf=function(){var k;void 0 === k && (k=null);return new n.cj(k);};h.prototype.UGc=function(k){var l;if(1 > k.length)throw new e.default("No encoding identifier found.");k=k[0];l=f.$ha.ZQa(k);if(!l)throw new e.default("Unidentified encoder format ID: (byte)" + k + ".");return l;};h.prototype.w8=function(k){void 0 === k && (k=null);return new c.Qk(k);};return h;})();b.icb=a;},65630:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.dC=b.$ha=void 0;t=(function(){function a(d,n){this.name=d;this.identifier=n;a.hQa[d]=this;a.gQa[n]=this;}a.ZQa=function(d){return "string" === typeof d && a.hQa[d]?a.hQa[d]:"number" === typeof d && a.gQa[d]?a.gQa[d]:null;};a.gQa={};a.hQa={};return a;})();b.$ha=t;b.dC={JSON:new t("JSON",123)};},46383:function(t,b,a){var c,f,g,e,h,k;function d(l,m){var p,r,q,u,v;if(l === m)return !0;if(null == l || null == m)return !1;p=l.s$();r=m.s$();if(p !== r && (null == p || null == r || p.length != r.length || !k.default.t8(p,r)))return !1;for(r=0;r < p.length;++r){q=p[r];u=l.tf(q);v=m.tf(q);if(u !== v){if(null == u || null == v)return !1;if(u instanceof Uint8Array || v instanceof Uint8Array){if((u=l.vd(q),q=m.vd(q),!k.default.equal(u,q)))return !1;}else if(u instanceof f.cj && v instanceof f.cj){if(!d(u,v))return !1;}else if(u instanceof g.Qk && v instanceof g.Qk){if(!n(u,v))return !1;}else if(typeof u !== typeof v || u != v)return !1;}}return !0;}function n(l,m){var r,q;if(l === m)return !0;if(null == l || null == m || l.size() != m.size())return !1;for(var p=0;p < l.size();++p){r=l.tf(p);q=m.tf(p);if(r !== q){if(null == r || null == q)return !1;if(r instanceof Uint8Array || q instanceof Uint8Array){if((r=l.vd(p),q=m.vd(p),!k.default.equal(r,q)))return !1;}else if(r instanceof f.cj && q instanceof f.cj){if(!d(r,q))return !1;}else if(r instanceof g.Qk && q instanceof g.Qk){if(!n(r,q))return !1;}else if(typeof r !== typeof q || r != q)return !1;}}return !0;}Object.defineProperty(b,"__esModule",{value:!0});b.qo=b.klc=b.ztb=b.Atb=b.w8=void 0;t=a(22970);c=t.__importDefault(a(42979));f=a(9E3);g=a(77633);e=a(48235);h=t.__importDefault(a(6838));k=t.__importDefault(a(14945));b.w8=function(l,m,p){function r(q,u,v,w){c.default(w,function(){var x;if(v >= m.length)return u;x=m[v];if(x instanceof Boolean || "boolean" === typeof x || x instanceof Uint8Array || x instanceof Number || "number" === typeof x || x instanceof f.cj || x instanceof g.Qk || x instanceof String || "string" === typeof x || x instanceof Object && x.constructor === Object || x instanceof Array || null === x)(u.put(-1,x),r(q,u,v + 1,w));else if(x instanceof e.Oo)x.Gn(q,q.yxb(),{result:function(y){c.default(w,function(){var A;A=q.Bp(y);u.put(-1,A);r(q,u,v + 1,w);});},error:w.error});else throw new h.default("Class " + typeof x + " is not MSL encoding-compatible.");});}c.default(p,function(){var q,u;q=l.Dg;u=q.w8();r(q,u,0,p);});};b.Atb=d;b.ztb=n;b.klc=function(l,m){if(l == m)return !0;if(null == l || null == m || l.size() != m.size())return !1;for(var p=[],r=[],q=0;q < l.size();++q)(p[q]=l.tf(q),r[q]=m.tf(q));return k.default.t8(p,r);};b.qo=function(l,m){var q;if(!l && !m)return null;l=l?new f.cj(l.Swb()):new f.cj();if(!m)return l;for(var p=m.s$(),r=0;r < p.length;++r){q=p[r];l.put(q,m.get(q));}return l;};},9E3:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.cj=void 0;d=a(22970).__importDefault(a(6838));n=a(48235);c=a(21399);f=a(77633);g=a(46383);t=(function(){function e(h){void 0 === h && (h=null);this.map={};if(h)for(var k in h){if(!(k instanceof String) && "string" !== typeof k)throw new TypeError("Map key is not a string.");this.put(k,h[k]);}}e.prototype.get=function(h){var k;h instanceof String && (h=h.valueOf());if("string" !== typeof h)throw new TypeError("Unsupported key.");k=this.map[h];if(null === k || void 0 === k)throw new d.default("MslObject[" + c.quote(h) + "] not found.");return k instanceof Object && k.constructor === Object?new e(k):k instanceof Array?new f.Qk(k):k;};e.prototype.Z9=function(h){var k;k=this.get(h);if(k instanceof Boolean)return k.valueOf();if("boolean" === typeof k)return k;throw new d.default("MslObject[" + c.quote(h) + "] is not a boolean.");};e.prototype.vd=function(h){var k;k=this.get(h);if(k instanceof Uint8Array)return k;throw new d.default("MslObject[" + c.quote(h) + "] is not binary data.");};e.prototype.aR=function(h){var k;k=this.get(h);if(k instanceof Number)return k.valueOf() << 0;if("number" === typeof k)return k << 0;throw new d.default("MslObject[" + c.quote(h) + "] is not a number.");};e.prototype.BRa=function(h){var k;k=this.get(h);if(k instanceof f.Qk)return k;if(k instanceof Array)return new f.Qk(k);throw new d.default("MslObject[" + c.quote(h) + "] is not a MslArray.");};e.prototype.Bq=function(h,k){var l;l=this.get(h);if(l instanceof e)return l;if(l instanceof Object && l.constructor === Object)return new e(l);if(l instanceof Uint8Array)try{return k.Bp(l);}catch(m){if(m instanceof d.default)throw new d.default("MslObject[" + c.quote(h) + "] is not a MslObject.");throw m;}throw new d.default("MslObject[" + c.quote(h) + "] is not a MslObject.");};e.prototype.io=function(h){var k;k=this.get(h);if(k instanceof Number)return parseInt(k.valueOf());if("number" === typeof k)return k;throw new d.default("MslObject[" + c.quote(h) + "] is not a number.");};e.prototype.we=function(h){var k;k=this.get(h);if(k instanceof String)return k.valueOf();if("string" === typeof k)return k;throw new d.default("MslObject[" + c.quote(h) + "] is not a string.");};e.prototype.has=function(h){if("string" !== typeof h)throw new TypeError("Null key.");return this.map.hasOwnProperty(h);};e.prototype.tf=function(h){h instanceof String && (h=h.valueOf());if("string" !== typeof h)throw new TypeError("Unsupported key.");h=this.map[h];try{if(h instanceof Object && h.constructor === Object)return new e(h);if(h instanceof Array)return new f.Qk(h);}catch(k){if(h instanceof TypeError)return null;}return h;};e.prototype.Nta=function(h){h=this.tf(h);return h instanceof f.Qk?h:h instanceof Array?new f.Qk(h):null;};e.prototype.Bca=function(h,k){h=this.tf(h);return h instanceof String?h.valueOf():"string" === typeof h?h:k instanceof String?k.valueOf():"string" === typeof k || null === k?k:"";};e.prototype.put=function(h,k){h instanceof String && (h=h.valueOf());if("string" !== typeof h)throw new TypeError("Unsupported key.");if(null === k)return (delete this.map[h],this);if(k instanceof Boolean || "boolean" === typeof k || k instanceof Uint8Array || k instanceof Number || "number" === typeof k || k instanceof e || k instanceof f.Qk || k instanceof String || "string" === typeof k || k instanceof n.Oo)this.map[h]=k;else if(k instanceof Object && k.constructor === Object)this.map[h]=new e(k);else if(k instanceof Array)this.map[h]=new f.Qk(k);else throw new TypeError("Value [" + typeof k + "] is an unsupported type.");return this;};e.prototype.remove=function(h){var k;h instanceof String && (h=h.valueOf());if("string" !== typeof h)throw new TypeError("Unsupported key.");k=this.tf(h);delete this.map[h];return k;};e.prototype.s$=function(){return Object.keys(this.map);};e.prototype.Swb=function(){var h,k;h={};for(k in this.map)h[k]=this.map[k];return h;};e.prototype.equals=function(h){if(this == h)return !0;if(!(h instanceof e))return !1;try{return g.Atb(this,h);}catch(k){if(k instanceof d.default)return !1;throw k;}};e.prototype.toString=function(){var m,p;for(var h="{",k=Object.keys(this.map),l=0;l < k.length;l++){m=k[l];p=this.map[m];h=p instanceof e || p instanceof f.Qk?h + (c.quote(m) + ":{}"):h + (c.quote(m) + ":" + c.stringify(p));l != k.length - 1 && (h+=",");}return h + "}";};return e;})();b.cj=t;},1454:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.jcb=void 0;t=a(22970);d=t.__importDefault(a(79804));n=t.__importDefault(a(10690));a=(function(){function c(){this.FF=null;this.El=this.Ag=!1;}c.prototype.close=function(f,g){this.El=!0;g.result(!0);};c.prototype.abort=function(){this.Ag=!0;};c.prototype.NEb=function(f){var g;g=this;d.default(f,function(){if(g.Ag || g.El)return !1;if(g.FF)return !0;g.MWa({result:function(e){d.default(f,function(){g.FF=e;return null != g.FF;});},timeout:f.timeout,error:f.error});});};c.prototype.next=function(f,g){d.default(g,function(){throw new n.default("MslTokenizer.next() must be implemented by a subclass.");});};c.prototype.MWa=function(f){var g;g=this;d.default(f,function(){var e;if(g.Ag || g.El)return null;if(null != g.FF){e=g.FF;g.FF=null;return e;}g.next(-1,f);});};return c;})();b.jcb=a;},94971:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.Zhb=void 0;d=a(14894);n=a(41161);t=(function(){function c(f,g){void 0 === g && (g=null);this.EIa=f;this.Il=g;}c.prototype.setTimeout=function(f){this.Il=f;};c.prototype.YFc=function(){var f;f=new n.$9a(this.EIa,this.Il);return {input:new d.Y9a(f),FS:f};};return c;})();b.Zhb=t;},93562:function(t,b,a){var f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F;function d(H,E){e.default(E,function(){var G,J,L;try{G=H.we("keypairid");J=H.we("mechanism");L=H.vd("publickey");if(!b.Vu[J])throw new k.default(p.default.Y0b,J);}catch(K){if(K instanceof l.default)throw new m.default(p.default.Ze,"keydata " + H);throw K;}try{switch(J){case b.Vu.aW:case b.Vu.P$a:case b.Vu.O$a:case b.Vu.dCa:r.pTa(L,q.Oe.hF,u.qF.KHa,v.Ok.iJ,{result:function(K){E.result(new D(G,J,K,null));},error:E.error});break;case b.Vu.Q$a:r.pTa(L,q.Oe.Oia,u.qF.KHa,v.Ok.iJ,{result:function(K){E.result(new D(G,J,K,null));},error:E.error});break;default:throw new w.default(p.default.Thb,J);}}catch(K){if(!C.Dd(K))throw new w.default(p.default.gO,"keydata " + H,K);throw K;}});}function n(H,E){var G,J,L;try{G=E.we("keypairid");J=E.vd("encryptionkey");L=E.vd("hmackey");}catch(K){if(K instanceof l.default)throw new m.default(p.default.Ze,"keydata " + E);throw K;}return new F(H,G,J,L);}function c(H,E,G,J,L){switch(G){case b.Vu.P$a:case b.Vu.O$a:return new y.S$a(H,y.Algorithm.hF,y.B8a.A128GCM,J,L);case b.Vu.aW:case b.Vu.dCa:return new A.Xia(H,E,J,L,A.cF.xib);case b.Vu.Q$a:return new A.Xia(H,E,J,L,A.cF.yib);default:throw new w.default(p.default.Thb,G);}}Object.defineProperty(b,"__esModule",{value:!0});b.B5a=b.hHc=b.a0b=b.fHc=b.Sia=b.Vu=void 0;f=a(22970);t=a(59786);g=a(75948);e=f.__importDefault(a(42979));h=f.__importDefault(a(14945));k=f.__importDefault(a(35661));l=f.__importDefault(a(6838));m=f.__importDefault(a(88257));p=f.__importDefault(a(36114));r=a(42486);q=a(96837);u=a(10558);v=a(11475);w=f.__importDefault(a(42458));x=a(49140);y=a(69351);A=a(33863);z=f.__importDefault(a(10690));a(58892);f.__importDefault(a(80760));B=a(43088);C=a(32260);a(55531);a=a(75316);b.Vu={aW:"RSA",IVb:"ECC",P$a:"JWE_RSA",O$a:"JWEJS_RSA",dCa:"JWK_RSA",Q$a:"JWK_RSAES"};D=(function(H){function E(G,J,L,K){var M;M=H.call(this,g.Nha.sya) || this;M.pu=G;M.QL=J;M.publicKey=L;M.privateKey=K;return M;}f.__extends(E,H);E.prototype.oRa=function(G,J){var L;L=this;e.default(J,function(){var K;K=G.mf();K.put("keypairid",L.pu);K.put("mechanism",L.QL);K.put("publickey",L.publicKey.cD());return K;});};E.prototype.equals=function(G){var J;if(G === this)return !0;if(!(G instanceof E))return !1;J=this.privateKey === G.privateKey || this.privateKey && G.privateKey && h.default.equal(this.privateKey.cD(),G.privateKey.cD());return H.prototype.equals.call(this,G) && this.pu == G.pu && this.QL == G.QL && h.default.equal(this.publicKey.cD(),G.publicKey.cD()) && J;};E.prototype.ji=function(){var G,J;G=this.publicKey.cD();J=this.privateKey && this.privateKey.cD();G=H.prototype.ji.call(this) + ":" + this.pu + ":" + this.QL + ":" + h.default.Ypa(G);J && (G+=":" + h.default.Ypa(J));return G;};return E;})(t.fab);b.Sia=D;b.fHc=d;F=(function(H){function E(G,J,L,K){G=H.call(this,G,g.Nha.sya) || this;G.pu=J;G.Kv=L;G.ZK=K;return G;}f.__extends(E,H);E.prototype.oRa=function(G,J){var L;L=this;e.default(J,function(){var K;K=G.mf();K.put("keypairid",L.pu);K.put("encryptionkey",L.Kv);K.put("hmackey",L.ZK);return K;});};E.prototype.equals=function(G){return this === G?!0:G instanceof E?H.prototype.equals.call(this,G) && this.pu == G.pu && h.default.equal(this.Kv,G.Kv) && h.default.equal(this.ZK,G.ZK):!1;};E.prototype.ji=function(){return H.prototype.ji.call(this) + ":" + this.pu + ":" + h.default.Ypa(this.Kv) + ":" + h.default.Ypa(this.ZK);};return E;})(x.gab);b.a0b=F;b.hHc=n;a=(function(H){function E(G){var J;J=H.call(this,g.Nha.sya) || this;J.fnb=G;return J;}f.__extends(E,H);E.prototype.Yfc=function(G,J){d(G,J);};E.prototype.$fc=function(G,J,L){e.default(L,function(){return n(G,J);});};E.prototype.kA=function(G,J,L,K,M){e.default(M,function(){var P,I,O;if(!(J instanceof D))throw new z.default("Key request data " + J + " was not created by this factory.");if(!(L instanceof F))throw new z.default("Key response data " + L + " was not created by this factory.");P=J.pu;I=L.pu;if(P != I)throw new k.default(p.default.X$a,"request " + P + "; response " + I).kc(K);I=J.privateKey;if(!I)throw new k.default(p.default.qXb,"request Asymmetric private key").kc(K);O=c(G,P,J.QL,I,null);O.tN(L.Kv,q.Oe.FN,u.qF.lha,{result:function(Q){O.tN(L.ZK,q.Oe.wV,u.qF.eW,{result:function(T){G.cpa({result:function(U){e.default(M,function(){return new B.I5(G,L.bc,U.nA(),Q,T);});},error:function(U){e.default(M,function(){C.Dd(U) && U.kc(K);throw U;});}});},error:function(T){e.default(M,function(){C.Dd(T) && T.kc(K);throw T;});}});},error:function(Q){e.default(M,function(){C.Dd(Q) && Q.kc(K);throw Q;});}});});};return E;})(a.dab);b.B5a=a;},55531:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.tXb=void 0;b.tXb=(function(){return function(a,d){this.keyResponseData=a;this.$o=d;};})();},75316:function(t,b,a){Object.defineProperty(b,"__esModule",{value:!0});b.dab=void 0;t=a(22970);t.__importDefault(a(42979));a(60426);a(96837);a(10558);t.__importDefault(a(42458));t.__importDefault(a(36114));b.dab=(function(){return function(d){this.scheme=d;};})();},75948:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Nha=void 0;t=(function(){function a(d){this.name=d;a.wB[d]=this;}a.prototype.toString=function(){return this.name;};a.K$=function(d){return a.wB[d]?a.wB[d]:null;};a.wB={};return a;})();b["default"]=t;b.Nha={sya:new t("ASYMMETRIC_WRAPPED"),VUb:new t("DIFFIE_HELLMAN"),W0c:new t("JWE_LADDER"),X0c:new t("JWK_LADDER"),y3c:new t("SYMMETRIC_WRAPPED")};},59786:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.kHb=b.fab=void 0;d=a(22970);t=a(48235);n=d.__importDefault(a(42979));c=d.__importDefault(a(35661));f=d.__importDefault(a(6838));g=d.__importDefault(a(88257));e=d.__importDefault(a(36114));a=(function(h){function k(l){var m;m=h.call(this) || this;m.LA=l;return m;}d.__extends(k,h);k.prototype.Gn=function(l,m,p){var r;r=this;this.oRa(l,{result:function(q){n.default(p,function(){var u;u=l.mf();u.put("scheme",r.LA.name);u.put("keydata",q);l.Ij(u,m,p);});},error:p.error});};k.prototype.equals=function(l){return this === l?!0:l instanceof k?this.LA == l.LA:!1;};k.prototype.ji=function(){return this.LA;};return k;})(t.Oo);b.fab=a;b.kHb=function(h,k,l){n.default(l,function(){var m,p,r,q;try{m=k.we("scheme");p=h.Ewb(m);if(!p)throw new c.default(e.default.Rhb,m);r=k.Bq("keydata",h.Dg);q=h.mRa(p);if(!q)throw new c.default(e.default.hCa,p.name);q.Yfc(r,l);}catch(u){if(u instanceof f.default)throw new g.default(e.default.Ze,"keyrequestdata " + k,u);throw u;}});};},49140:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.lHb=b.gab=void 0;d=a(22970);t=a(48235);n=d.__importDefault(a(42979));c=a(58892);f=d.__importDefault(a(35661));g=d.__importDefault(a(36114));e=d.__importDefault(a(6838));h=d.__importDefault(a(88257));a=(function(k){function l(m,p){var r;r=k.call(this) || this;r.bc=m;r.LA=p;return r;}d.__extends(l,k);l.prototype.Gn=function(m,p,r){var q;q=this;this.oRa(m,{result:function(u){n.default(r,function(){var v;v=m.mf();v.put("mastertoken",q.bc);v.put("scheme",q.LA.name);v.put("keydata",u);m.Ij(v,p,r);});},error:r.error});};l.prototype.equals=function(m){return this === m?!0:m instanceof l?this.bc.equals(m.bc) && this.LA == m.LA:!1;};l.prototype.ji=function(){return this.bc.ji() + ":" + this.LA;};return l;})(t.Oo);b.gab=a;b.lHb=function(k,l,m){n.default(m,function(){var p,r,q,u,v;p=k.Dg;try{r=l.Bq("mastertoken",p);q=l.we("scheme");u=k.Ewb(q);if(!u)throw new f.default(g.default.Rhb,q);v=l.Bq("keydata",p);c.Yta(k,r,{result:function(w){n.default(m,function(){var x;x=k.mRa(u);if(!x)throw new f.default(g.default.hCa,u.name);x.$fc(w,v,m);});},error:m.error});}catch(w){if(w instanceof e.default)throw new h.default(g.default.Ze,"keyresponsedata " + l,w);throw w;}});};},69763:function(t,b,a){var A,z,B,C,D,F,H,E;function d(G,J,L,K,M,P,I,O,Q,T,U){this.n=G;this.e=J;this.d=L;this.p=K;this.q=M;this.dp=P;this.dq=I;this.qi=O;this.alg=Q;this.gra=T;this.ext=U;}function n(G,J,L,K){this.n=G;this.e=J;this.ext=L;this.gra=K;}function c(G){this.e6=G;}function f(G,J,L,K,M,P){this.jk=G;this.tC=J || void 0;this.cjb=L || !1;this.Okb=0;this.Jka=K || 0;this.wW=M || 0;this.RO=P || 0;}function g(G,J){var L;J.dz(G.f2a << 6 | G.$Ma << 5 | G.tag);L=G.BHb;if(128 > L)J.dz(L);else {for(var K=L,M=0;K;)(++M,K>>=8);J.dz(128 | M);for(K=0;K < M;++K)J.dz(L >> 8 * (M - K - 1) & 255);}if(G.lf)for((G.tag == C.LI && J.dz(0),G=G.OO);G;){if(!g(G,J))return !1;G=G.next;}else switch(G.tag){case C.Gha:G.dK[G.bA] >> 7 && J.dz(0);J.Mma(G.dK,G.bA,G.TC);break;case C.LI:J.dz(0);J.Mma(G.dK,G.bA,G.TC);break;case C.lia:J.Mma(G.dK,G.bA,G.TC);break;case C.dEa:J.Mma(G.dK,G.bA,G.TC);}return !0;}function e(G){var J,L;J=G.Au();L=J & 127;if(L == J)return L;if(3 < L || 0 === L)return -1;for(var K=J=0;K < L;++K)J=J << 8 | G.Au();return J;}function h(G,J,L){var K,M,P,I,O,Q,T;K=G.dK;M=new B(K,J);J+=L;L=G;if(!(8 < F++)){for(;M.position < J;){I=M.Au();if(31 == (I & 31)){for(P=0;I & 128;)(P<<=8,P|=I & 127);I=P;}O=I;P=O & 31;if(0 > P || 30 < P)return;I=e(M);if(0 > I || I > M.G$())return;L.$Ma=O & 32;L.f2a=(O & 192) >> 6;L.tag=P;L.TC=I;L.bA=M.position;P=M;Q=O;O=I;if(Q & 32)P=!0;else if(Q < C.LI || Q > C.lia)P=!1;else {T=new B(P);Q == C.LI && T.skip(1);T.Au() >> 6 & 1?P=!1:(Q=e(T),P=T.position - P.position + Q == O);}P && (P=M.position,O=I,L.tag == C.LI && (L.bA++,L.TC--,P++,O--),L.lf=new f(K,L),h(L.lf,P,O));L.tag == C.Gha && (P=M.position,0 == M.GHb(P) && M.GHb(P + 1) >> 7 && (L.bA++,L.TC--));M.skip(I);M.position < J && (L.next=new f(K,L.parent),L=L.next);}F--;return G;}}function k(G,J,L){if(9 != L)return !1;for(L=0;9 > L;++L)if(G[J++] != H[L])return !1;return !0;}function l(G){var J;if(!(G && G.lf && G.lf.next && G.lf.lf && G.lf.next.lf))return !1;J=G.lf.lf;return k(J.dK,J.bA,J.TC) && 2 == G.d0 && 2 == G.lf.d0 && 2 == G.lf.next.lf.d0?!0:!1;}function m(G){var J;if(!(G && G.lf && G.lf.next && G.lf.next.lf && G.lf.next.next && G.lf.next.next.lf))return !1;J=G.lf.next.lf;return k(J.dK,J.bA,J.TC) && 3 == G.d0 && 2 == G.lf.next.d0 && 9 == G.lf.next.next.lf.d0?!0:!1;}function p(G){var J,L;J=D.dY();L=new c(J);L.QJ(D.dY());L.QJ(D.Cqb(H));L.vx(D.Aqb());L.Rlb(J,D.Hec(null));L.QJ(D.dY());L.QJ(D.Dx(G.n));L.vx(D.Dx(G.e));return J;}function r(G){var J;G=G.lf.next.lf.lf;J=G.data;G=G.next;return new n(J,G.data,null,null);}function q(G){var J,L;J=D.dY();L=new c(J);L.QJ(D.Dx(new Uint8Array([0])));L.vx(D.dY());L.QJ(D.Cqb(H));L.vx(D.Aqb());L.Rlb(J,D.Nfc(null));L.QJ(D.dY());L.QJ(D.Dx(new Uint8Array([0])));L.vx(D.Dx(G.n));L.vx(D.Dx(G.e));L.vx(D.Dx(G.d));L.vx(D.Dx(G.p));L.vx(D.Dx(G.q));L.vx(D.Dx(G.dp));L.vx(D.Dx(G.dq));L.vx(D.Dx(G.qi));return J;}function u(G){var J;J=[];G=G.lf.next.next.lf.lf.next;for(var L=0;8 > L;L++)(J.push(G.data),G=G.next);return new d(J[0],J[1],J[2],J[3],J[4],J[5],J[6],J[7]);}function v(G,J,L,K){if(G instanceof n || G instanceof d){if(L)for(var M=0;M < L.length;++M)if(-1 == E.indexOf(L[M]))return;J={kty:"RSA",alg:J,key_ops:L || [],ext:void 0 == K?!1:K,n:A.zi(G.n,!0),e:A.zi(G.e,!0)};G instanceof d && (J.d=A.zi(G.d,!0),J.p=A.zi(G.p,!0),J.q=A.zi(G.q,!0),J.dp=A.zi(G.dp,!0),J.dq=A.zi(G.dq,!0),J.qi=A.zi(G.qi,!0));return J;}}function w(G){var J,L,K,M,P,I,O,Q,T,U;if(G.kty && "RSA" == G.kty && G.n && G.e){J=("RSA1_5 RSA-OAEP RSA-OAEP-256 RSA-OAEP-384 RSA-OAEP-512 RS256 RS384 RS512").split(" ");if(!G.alg || -1 != J.indexOf(G.alg)){J=[];G.use?"enc" == G.use?J=["encrypt","decrypt","wrap","unwrap"]:"sig" == G.use && (J=["sign","verify"]):J=G.key_ops;L=G.ext;K=A.nk(G.n,!0);M=A.nk(G.e,!0);if(G.d){P=A.nk(G.d,!0);I=A.nk(G.p,!0);O=A.nk(G.q,!0);Q=A.nk(G.dp,!0);T=A.nk(G.dq,!0);U=A.nk(G.qi,!0);return new d(K,M,P,I,O,Q,T,U,G.alg,J,L);}return new n(K,M,L,J);}}}function x(G,J,L,K){this.V8=G;this.type=J;this.gra=L;this.extractable=K;}function y(G){F=0;return h(new f(G),0,G.length);}Object.defineProperty(b,"__esModule",{value:!0});b.nSb=b.mSb=b.rBb=b.nLb=b.b0b=b.jHc=b.U9b=b.kHc=b.V9b=b.lHc=b.W9b=b.c0b=b.d0b=b.HTc=b.gUb=b.bZb=b.sxc=b.txc=b.show=b.parse=void 0;A=a(44127);z=a(11475);B=(function(){function G(J,L){J instanceof B?(this.MJ=J.MJ,this.position=J.position):(this.MJ=J,this.position=L || 0);}G.prototype={Au:function(){return this.MJ[this.position++];},dz:function(J){this.MJ[this.position++]=J;},GHb:function(J){return this.MJ[J];},Mma:function(J,L,K){var M;M=new Uint8Array(this.MJ.buffer,this.position,K);J=new Uint8Array(J.buffer,L,K);M.set(J);this.position+=K;},seek:function(J){this.position=J;},skip:function(J){this.position+=J;},setPosition:function(J){this.position=J;},G$:function(){return this.MJ.length - this.position;},jpa:function(){return this.MJ.length;},show:function(){return "AbvStream: pos " + (this.position.toString() + " of " + this.jpa().toString());}};return G;})();C={$Yc:0,cZc:1,Gha:2,LI:3,lia:4,n5:5,dEa:6,j2c:7,L0c:8,R2c:9,V_c:10,z_c:11,c4c:12,S2c:13,k0b:16,$2c:17,U1c:18,u2c:19,Q3c:20,P3c:20,i4c:21,G0c:22,b4c:23,x0c:24,A0c:25,k4c:26,T0c:26,y0c:27,Z3c:28,FZc:29,bZc:30};b.HTc=C;f.prototype={OO:void 0,FF:void 0,get data() {return new Uint8Array(this.jk.buffer.slice(this.wW,this.wW + this.RO));},get dK() {return this.jk;},get $Ma() {return this.cjb;},set $Ma(G) {this.cjb=0 != G?!0:!1;},get f2a() {return this.Okb;},set f2a(G) {this.Okb=G;},get tag() {return this.Jka;},set tag(G) {this.Jka=G;},get bA() {return this.wW;},set bA(G) {this.wW=G;},get TC() {return this.RO;},set TC(G) {this.RO=G;},get lf() {return this.OO;},set lf(G) {this.OO=G;this.OO.parent=this;},get next() {return this.FF;},set next(G) {this.FF=G;},get parent() {return this.tC;},set parent(G) {this.tC=G;},get BHb() {var G;G=0;if(this.OO){for(var J=this.OO;J;)(G+=J.length,J=J.next);this.Jka == C.LI && G++;}else switch(this.Jka){case C.Gha:G=this.RO;this.jk[this.wW] >> 7 && G++;break;case C.LI:G=this.RO + 1;break;case C.lia:G=this.RO;break;case C.n5:G=0;break;case C.dEa:k(this.jk,this.wW,this.RO) && (G=9);}return G;},get length() {var G,J;G=this.BHb;if(127 < G)for(J=G;J;)(J>>=8,++G);return G + 2;},get V8() {var G,J;G=this.length;if(G){G=new Uint8Array(G);J=new B(G);if(g(this,J))return G;}},get d0() {for(var G=0,J=this.OO;J;)(G++,J=J.next);return G;}};D={dY:function(){return new f(null,null,!0,C.k0b,null,null);},Cqb:function(G){return new f(G,null,!1,C.dEa,0,G?G.length:0);},Aqb:function(){return new f(null,null,!1,C.n5,null,null);},Hec:function(G){return new f(G,null,!1,C.LI,0,G?G.length:0);},Dx:function(G){return new f(G,null,!1,C.Gha,0,G?G.length:0);},Nfc:function(G){return new f(G,null,!1,C.lia,0,G?G.length:0);}};b.bZb=D;b.gUb=c;c.prototype={QJ:function(G){this.zKa(this.e6,G);},vx:function(G){this.zKa(this.e6.parent,G);},zKa:function(G,J){this.e6=J;this.e6.parent=G;if(G.lf){for(G=G.lf;G.next;)G=G.next;G.next=J;}else G.lf=J;},Rlb:function(G,J){this.Jmc(G) && this.zKa(G,J);},Jmc:function(G){for(var J=this.e6;J;){if(G == J)return !0;J=J.parent;}return !1;}};F=0;H=new Uint8Array([42,134,72,134,247,13,1,1,1]);b.show=function(){};b.txc=l;b.sxc=m;b.d0b=n;b.c0b=d;b.W9b=p;b.lHc=function(G){G=y(G);if(l)return r(G);};b.V9b=q;b.kHc=function(G){G=y(G);if(m(G))return u(G);};E=("sign verify encrypt decrypt wrapKey unwrapKey deriveKey deriveBits").split(" ");b.U9b=v;b.jHc=w;b.nLb=function(G,J,L,K){if(G=y(G)){if(l(G))G=r(G);else if(m(G))G=u(G);else return;return v(G,J,L,K);}};b.b0b=x;x.prototype.getDer=function(){return this.V8;};x.prototype.getType=function(){return this.type;};x.prototype.getKeyOps=function(){return this.gra;};x.prototype.getExtractable=function(){return this.extractable;};b.rBb=function(G){var J,L;if(G=w(G)){if(G instanceof n)(J=z.Ok.iJ,L=p(G).V8);else if(G instanceof d)(J=z.Ok.TV,L=q(G).V8);else return;return new x(L,J,G.gra,G.ext);}};b.nSb=function(G){return G.map(function(J){return "wrapKey" == J?"wrap":"unwrapKey" == J?"unwrap":J;});};b.mSb=function(G){if("RSAES-PKCS1-v1_5" == G.name)return "RSA1_5";if("RSASSA-PKCS1-v1_5" == G.name){if("SHA-256" == G.hash.name)return "RS256";if("SHA-384" == G.hash.name)return "RS384";if("SHA-512" == G.hash.name)return "RS512";}};b.parse=y;},12457:function(t,b,a){var k,l,m,p,q,u;function d(v){for(var w in l)v[w]=l[w];}function n(v){if(!(this instanceof n))return new n(v);d(this);this.vX=k.qO;this.pending=this.q=this.c=this.p="";this.tf=v || ({});this.closed=this.RX=this.IT=this.paused=!1;this.tag=this.error=null;this.state=p.YU;this.stack=[];this.position=this.lG=0;this.line=1;this.INb=!1;this.yQb=0;this.zxa=null;this.depth=0;f(this,"onready");}function c(v){var w;if(!(this instanceof c))return new c(v);this.Ge=new n(v);this.readable=this.writable=!0;this.zx=this.AX=0;this.l2a={2:new Buffer(2),3:new Buffer(3),4:new Buffer(4)};this.string="";w=this;u.apply(w);this.Ge.onend=function(){w.emit("end");};this.Ge.onerror=function(x){w.emit("error",x);w.Ge.error=null;};m.forEach(function(x){Object.defineProperty(w,"on" + x,{get:function(){return w.Ge["on" + x];},set:function(y){if(!y)return (w.removeAllListeners(x),w.Ge["on" + x]=y);w.on(x,y);},enumerable:!0,configurable:!1});});}function f(v,w,x){k.L4 && console.log("-- emit",w,x);if(v[w])v[w](x);}function g(v,w){var x,y;x=v.tf;y=v.textNode;void 0 !== y && (x.trim && (y=y.trim()),x.normalize && (y=y.replace(/\s+/g," ")));v.textNode=y;void 0 !== v.textNode && f(v,w?w:"onvalue",v.textNode);v.textNode=void 0;}function e(v,w){g(v);w+="\nLine: " + v.line + "\nColumn: " + v.lG + "\nChar: " + v.c;w=Error(w);v.error=w;f(v,"onerror",w);return v;}function h(v){v.state === p.zt && 0 === v.depth || e(v,"Unexpected end");g(v);v.c="";v.closed=!0;f(v,"onend");n.call(v,v.tf);return v;}Object.defineProperty(b,"__esModule",{value:!0});k={};t="object" === typeof process?{NODE_ENV:"production",PLATFORM:"cadmium",ASEBUILD:"release",OBFUSCATE:"obfuscate"}:Ba;k.Le=function(v){return new n(v);};k.JZc=n;k.KZc=c;k.zNa=function(v){return new c(v);};k.qO=65536;k.l="debug" === t.r6a;k.L4="debug" === t.r6a || "info" === t.r6a;k.pm=("value string key openobject closeobject openarray closearray error end ready").split(" ");l={textNode:void 0,Dk:""};m=k.pm.filter(function(v){return "error" !== v && "end" !== v;});p=0;k.zr={YU:p++,zt:p++,fEa:p++,eV:p++,mia:p++,Aza:p++,R3c:p++,uGa:p++,YYc:p++,T_c:p++,eEa:p++,w6a:p++,hhb:p++,ihb:p++,jhb:p++,P8a:p++,Q8a:p++,R8a:p++,S8a:p++,n5:p++,rcb:p++,scb:p++,SYb:p++,iia:p++};for(var r in k.zr)k.zr[k.zr[r]]=r;p=k.zr;Object.create || (Object.create=function(v){function w(){this.__proto__=v;}w.prototype=v;return new w();});Object.getPrototypeOf || (Object.getPrototypeOf=function(v){return v.__proto__;});Object.keys || (Object.keys=function(v){var w,x;w=[];for(x in v)v.hasOwnProperty(x) && w.push(x);return w;});q=/[\\"\n]/g;n.prototype={end:function(){h(this);},write:function(v){if(this.error)throw this.error;if(this.closed)return e(this,"Cannot write after close. Assign an onready handler.");if(null === v)return h(this);this.pending+=v;if(this.paused)return this;k.l && console.log("write -> [" + v + "]");return this.parse();},parse:function(){var A,z,B;for(var v=this.pending,w=0,x=v[0],y;x && !this.paused;){y=x;this.c=x=v.charAt(w++);y !== x?this.p=y:y=this.p;if(!x)break;k.l && console.log(w,x,k.zr[this.state]);this.position++;"\n" === x?(this.line++,this.lG=0):this.lG++;switch(this.state){case p.YU:"{" === x?this.state=p.fEa:"[" === x?this.state=p.mia:"\r" !== x && "\n" !== x && " " !== x && "\t" !== x && e(this,"Non-whitespace before {[.");continue;case p.eEa:case p.fEa:if("\r" === x || "\n" === x || " " === x || "\t" === x)continue;if(this.state === p.eEa)this.stack.push(p.w6a);else if("}" === x){f(this,"onopenobject");this.depth++;f(this,"oncloseobject");this.depth--;this.state=this.stack.pop() || p.zt;continue;}else this.stack.push(p.eV);'"' === x?this.state=p.uGa:e(this,'Malformed object key should start with "');continue;case p.w6a:case p.eV:if("\r" === x || "\n" === x || " " === x || "\t" === x)continue;":" === x?(this.state === p.eV?(this.stack.push(p.eV),g(this,"onopenobject"),this.depth++):g(this,"onkey"),this.state=p.zt):"}" === x?(g(this),f(this,"oncloseobject",void 0),this.depth--,this.state=this.stack.pop() || p.zt):"," === x?(this.state === p.eV && this.stack.push(p.eV),g(this),this.state=p.eEa):e(this,"Bad object");continue;case p.mia:case p.zt:if("\r" === x || "\n" === x || " " === x || "\t" === x)continue;if(this.state === p.mia)if((f(this,"onopenarray"),this.depth++,this.state=p.zt,"]" === x)){f(this,"onclosearray");this.depth--;this.state=this.stack.pop() || p.zt;continue;}else this.stack.push(p.Aza);'"' === x?this.state=p.uGa:"{" === x?this.state=p.fEa:"[" === x?this.state=p.mia:"t" === x?this.state=p.hhb:"f" === x?this.state=p.P8a:"n" === x?this.state=p.n5:"-" === x?this.Dk+=x:"0" === x?(this.Dk+=x,this.state=p.iia):-1 !== ("123456789").indexOf(x)?(this.Dk+=x,this.state=p.iia):e(this,"Bad value");continue;case p.Aza:if("," === x)(this.stack.push(p.Aza),g(this,"onvalue"),this.state=p.zt);else if("]" === x)(g(this),f(this,"onclosearray",void 0),this.depth--,this.state=this.stack.pop() || p.zt);else if("\r" === x || "\n" === x || " " === x || "\t" === x)continue;else e(this,"Bad array");continue;case p.uGa:void 0 === this.textNode && (this.textNode="");y=w - 1;(A=this.INb,z=this.yQb);a:for(;;){for(k.l && console.log(w,x,k.zr[this.state],A);0 < z;)if((this.zxa+=x,x=v.charAt(w++),this.position++,4 === z?(this.textNode+=String.fromCharCode(parseInt(this.zxa,16)),z=0,y=w - 1):z++,!x))break a;if('"' === x && !A){this.state=this.stack.pop() || p.zt;this.textNode+=v.substring(y,w - 1);this.position+=w - 1 - y;break;}if("\\" === x && !A && (A=!0,this.textNode+=v.substring(y,w - 1),this.position+=w - 1 - y,x=v.charAt(w++),this.position++,!x))break;if(A)if((A=!1,"n" === x?this.textNode+="\n":"r" === x?this.textNode+="\r":"t" === x?this.textNode+="\t":"f" === x?this.textNode+="\f":"b" === x?this.textNode+="\b":"u" === x?(z=1,this.zxa=""):this.textNode+=x,x=v.charAt(w++),this.position++,y=w - 1,x))continue;else break;q.lastIndex=w;B=q.exec(v);if(null === B){w=v.length + 1;this.textNode+=v.substring(y,w - 1);this.position+=w - 1 - y;break;}w=B.index + 1;x=v.charAt(B.index);if(!x){this.textNode+=v.substring(y,w - 1);this.position+=w - 1 - y;break;}}this.INb=A;this.yQb=z;continue;case p.hhb:if("" === x)continue;"r" === x?this.state=p.ihb:e(this,"Invalid true started with t" + x);continue;case p.ihb:if("" === x)continue;"u" === x?this.state=p.jhb:e(this,"Invalid true started with tr" + x);continue;case p.jhb:if("" === x)continue;"e" === x?(f(this,"onvalue",!0),this.state=this.stack.pop() || p.zt):e(this,"Invalid true started with tru" + x);continue;case p.P8a:if("" === x)continue;"a" === x?this.state=p.Q8a:e(this,"Invalid false started with f" + x);continue;case p.Q8a:if("" === x)continue;"l" === x?this.state=p.R8a:e(this,"Invalid false started with fa" + x);continue;case p.R8a:if("" === x)continue;"s" === x?this.state=p.S8a:e(this,"Invalid false started with fal" + x);continue;case p.S8a:if("" === x)continue;"e" === x?(f(this,"onvalue",!1),this.state=this.stack.pop() || p.zt):e(this,"Invalid false started with fals" + x);continue;case p.n5:if("" === x)continue;"u" === x?this.state=p.rcb:e(this,"Invalid null started with n" + x);continue;case p.rcb:if("" === x)continue;"l" === x?this.state=p.scb:e(this,"Invalid null started with nu" + x);continue;case p.scb:if("" === x)continue;"l" === x?(f(this,"onvalue",null),this.state=this.stack.pop() || p.zt):e(this,"Invalid null started with nul" + x);continue;case p.SYb:"." === x?(this.Dk+=x,this.state=p.iia):e(this,"Leading zero not followed by .");continue;case p.iia:-1 !== ("0123456789").indexOf(x)?this.Dk+=x:"." === x?(-1 !== this.Dk.indexOf(".") && e(this,"Invalid number has two dots"),this.Dk+=x):"e" === x || "E" === x?(-1 === this.Dk.indexOf("e") && -1 === this.Dk.indexOf("E") || e(this,"Invalid number has two exponential"),this.Dk+=x):"+" === x || "-" === x?("e" !== y && "E" !== y && e(this,"Invalid symbol in number"),this.Dk+=x):(this.Dk && f(this,"onvalue",parseFloat(this.Dk)),this.Dk="",w--,this.state=this.stack.pop() || p.zt);continue;default:e(this,"Unknown state: " + this.state);}}if(this.position >= this.vX){x=Math.max(k.qO,10);y=0;for(var C in l){A=void 0 === this[C]?0:this[C].length;if(A > x)switch(C){case "text":closeText(this);break;default:e(this,"Max buffer length exceeded: " + C);}y=Math.max(y,A);}this.vX=k.qO - y + this.position;}0 < w && (this.pending=v.substring(w));return this;},pause:function(){this.paused=!0;return this;},resume:function(){this.paused=!1;this.error=null;return this;},close:function(){return this.write(null);}};try{u=a(75177).J3c;}catch(v){u=function(){};}c.prototype=Object.create(null,{constructor:{value:c}});c.prototype.write=function(v){var x;v=new Buffer(v);for(var w=0;w < v.length;w++){x=v[w];if(0 < this.AX){for(x=0;x < this.AX;x++)this.l2a[this.zx][this.zx - this.AX + x]=v[x];this.string=this.l2a[this.zx].toString();this.zx=this.AX=0;w=w + x - 1;this.Ge.write(this.string);this.emit("data",this.string);}else if(0 === this.AX && 128 <= x){194 <= x && 223 >= x && (this.zx=2);224 <= x && 239 >= x && (this.zx=3);240 <= x && 244 >= x && (this.zx=4);if(this.zx + w > v.length){for(x=0;x <= v.length - 1 - w;x++)this.l2a[this.zx][x]=v[w + x];this.AX=w + this.zx - v.length;return !0;}this.string=v.slice(w,w + this.zx).toString();w=w + this.zx - 1;this.Ge.write(this.string);this.emit("data",this.string);}else {for(x=w;x < v.length && !(128 <= v[x]);x++);this.string=v.slice(w,x).toString();this.Ge.write(this.string);this.emit("data",this.string);w=x - 1;}}};c.prototype.end=function(v){v && v.length && this.Ge.write(v.toString());this.Ge.end();return !0;};c.prototype.on=function(v,w){var x;x=this;x.Ge["on" + v] || -1 === m.indexOf(v) || (x.Ge["on" + v]=function(){var y;y=1 === arguments.length?[arguments[0]]:Array.apply(null,arguments);y.splice(0,0,v);x.emit.apply(x,y);});return u.prototype.on.call(x,v,w);};c.prototype.Xt=function(){d(this.Ge);this.emit("close");};b["default"]=k;},31238:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.Pza=void 0;t=a(22970);t.__importDefault(a(42979));a(70390);d=a(93652);n=a(34801);c=a(25462);t.__importDefault(a(32260));f=a(56058);a=(function(){function g(){}g.prototype.qNa=function(e,h,k,l,m,p){n.vqb(e,h,k,l,m,p);};g.prototype.Ofc=function(e,h,k,l,m,p){c.wqb(e,h,k,l,null,m,p);};g.prototype.bY=function(e,h,k,l,m){d.uqb(e,h,k,l,m);};g.prototype.efc=function(e,h,k){f.kqb(e,h,k);};return g;})();b.Pza=a;},56058:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.kqb=b.S6a=void 0;d=a(22970);n=d.__importDefault(a(42979));c=a(68480);f=a(93652);g=a(32260);e=(function(h){function k(l,m,p){var r;r=h.call(this,l,null,null,0,p) || this;n.default(p,function(){var q,u,v,w,x,y,A,z;q=m.bc;u=m.Tl;v=m.kg;w=m.yj;x=m.Ce;y=f.cL(x);A=c.QTa(m.dEb,l.uF);try{z=m.keyResponseData;r.Mzb(l,y,A,u,z?z.bc:q,v,m.SM);return r;}catch(B){throw (g.Dd(B) && (B.kc(q),B.Xf(u),B.De(v),B.uf(w),B.ii(x)),B);}});return r;}d.__extends(k,h);return k;})(f.DDa);b.S6a=e;b.kqb=function(h,k,l){new e(h,k,l);};},70390:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u;Object.defineProperty(b,"__esModule",{value:!0});b.hHb=b.afc=b.T3=void 0;t=a(22970);d=t.__importDefault(a(51411));n=t.__importDefault(a(10690));c=t.__importDefault(a(20754));f=t.__importDefault(a(36114));g=t.__importDefault(a(42979));e=t.__importDefault(a(6838));h=t.__importDefault(a(24571));k=t.__importDefault(a(42458));l=t.__importDefault(a(58511));m=t.__importDefault(a(88257));p=a(44127);r=a(32260);q=(function(){return function(v,w){this.x9=v;this.iN=w;};})();u=(function(){function v(w,x,y,A,z,B,C,D){var F;0 > z && (z=-1);if(0 > y || y > d.default.Ye)throw new n.default("Message ID " + y + " is out of range.");if(!x)throw new c.default(f.default.eDa);if(D){F=D.iN;D=D.x9;}else (F=parseInt(w.getTime() / 1E3),D=w.Dg.mf(),D.put("timestamp",F),D.put("messageid",y),D.put("errorcode",A),0 < z && D.put("internalcode",z),B && D.put("errormsg",B),C && D.put("usermsg",C));this.qk=w;this.Tl=x;this.iN=F;this.Ce=y;this.errorCode=A;this.uaa=z;this.errorMessage=B;this.x9=D;this.encodings={};}v.prototype.rSa=function(){return null !== this.iN?new Date(1E3 * this.iN):null;};v.prototype.Gn=function(w,x,y){var A;A=this;g.default(y,function(){var z,B;if(A.encodings[x])return A.encodings[x];z=A.qk.dpa(A.Tl.scheme);if(!z)throw new e.default("No entity authentication factory found for entity.");try{B=z.kA(A.qk,A.Tl);}catch(C){if(C instanceof h.default || C instanceof k.default)throw new e.default("Error creating the entity crypto context.",C);throw C;}w.Ij(A.x9,x,{result:function(C){B.encrypt(C,w,x,{result:function(D){B.sign(D,w,x,{result:function(F){g.default(y,function(){var H;H=w.mf();H.put(l.default.iCa,A.Tl);H.put(l.default.rXb,D);H.put(l.default.kCa,F);w.Ij(H,x,{result:function(E){g.default(y,function(){return A.encodings[x]=E;});},error:y.error});});},error:function(F){F instanceof k.default && (F=new e.default("Error signing the error data.",F));y.error(F);}});},error:function(D){D instanceof k.default && (D=new e.default("Error signing the error data.",D));y.error(D);}});},error:y.error});});};return v;})();b.T3=u;b.afc=function(v,w,x,y,A,z,B,C){g.default(C,function(){return new u(v,w,x,y,A,z,B,null);});};b.hHb=function(v,w,x,y,A){g.default(A,function(){var z,B,C,D;z=v.Dg;if(!x)throw new c.default(f.default.eDa);try{B=x.scheme;C=v.dpa(B);if(!C)throw new h.default(f.default.IAa,B);D=C.kA(v,x);}catch(F){throw (r.Dd(F) && F.Xf(x),F);}D.verify(w,y,z,{result:function(F){g.default(A,function(){if(!F)throw new k.default(f.default.bYb).Xf(x);D.decrypt(w,z,{result:function(H){g.default(A,function(){var E,G,J,L,K,M,P,I,O;try{E=z.Bp(H);G=E.io("messageid");if(0 > G || G > d.default.Ye)throw new c.default(f.default.jbb,"errordata " + E).Xf(x);}catch(Q){if(Q instanceof e.default)throw new m.default(f.default.Ze,"errordata " + p.zi(H),Q).Xf(x);throw Q;}try{J=E.has("timestamp")?E.io("timestamp"):null;L=E.aR("errorcode");K=!1;for(M in d.default.P)if(d.default.P[M] == L){K=!0;break;}K || (L=d.default.P.fa);if(E.has("internalcode")){P=E.aR("internalcode");if(0 > P)throw new c.default(f.default.dXb,"errordata " + E).Xf(x).ii(G);}else P=-1;I=E.Bca("errormsg",null);O=E.Bca("usermsg",null);}catch(Q){if(Q instanceof e.default)throw new m.default(f.default.Ze,"errordata " + E,Q).Xf(x).ii(G);throw Q;}E=new q(E,J);return new u(v,x,G,L,P,I,O,E);});},error:function(H){g.default(A,function(){r.Dd(H) && H.Xf(x);throw H;});}});});},error:function(F){g.default(A,function(){r.Dd(F) && F.Xf(x);throw F;});}});});};},58511:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperty(b,"__esModule",{value:!0});b.Xta=void 0;t=a(22970);d=t.__importDefault(a(42979));n=t.__importDefault(a(6838));c=t.__importDefault(a(88257));f=a(58768);g=a(58892);e=t.__importDefault(a(20754));h=t.__importDefault(a(36114));k=a(70390);l=a(54449);b["default"]={iCa:"entityauthdata",Z$a:"mastertoken",Y$a:"headerdata",rXb:"errordata",kCa:"signature"};b.Xta=function(m,p,r,q){function u(w,x,y){x?g.Yta(m,x,{result:function(A){v(w,A,y);},error:q.error}):v(w,null,y);}function v(w,x,y){d.default(q,function(){var A,z;try{if(p.has("headerdata")){A=p.vd("headerdata");if(0 == A.length)throw new e.default(h.default.x9a).kc(x).Xf(w);l.oHb(m,A,w,x,y,r,q);}else if(p.has("errordata")){z=p.vd("errordata");if(0 == z.length)throw new e.default(h.default.x9a).kc(x).Xf(w);k.hHb(m,z,w,y,q);}else throw new c.default(h.default.Ze,p);}catch(B){if(B instanceof n.default)throw new c.default(h.default.Ze,"header/errormsg " + p,B);throw B;}});}d.default(q,function(){var w,x,y,A;try{w=m.Dg;x=p.has("entityauthdata")?p.Bq("entityauthdata",w):null;y=p.has("mastertoken")?p.Bq("mastertoken",w):null;A=p.vd("signature");}catch(z){if(z instanceof n.default)throw new c.default(h.default.Ze,"header/errormsg " + p,z);throw z;}x?f.gHb(m,x,{result:function(z){u(z,y,A);},error:q.error}):u(null,y,A);});};},93652:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperty(b,"__esModule",{value:!0});b.uqb=b.DDa=b.bhc=b.cL=void 0;t=a(22970);d=t.__importDefault(a(51411));n=t.__importDefault(a(10690));c=t.__importDefault(a(42979));f=t.__importDefault(a(36114));g=t.__importDefault(a(20754));e=a(54449);a(61693);a(97962);h=t.__importDefault(a(32260));k=a(32260);new Uint8Array(0);b.cL=function(m){if(0 > m || m > d.default.Ye)throw new n.default("Message ID " + m + " is outside the valid range.");return m == d.default.Ye?0:m + 1;};b.bhc=function(m){if(0 > m || m > d.default.Ye)throw new n.default("Message ID " + m + " is outside the valid range.");return 0 == m?d.default.Ye:m - 1;};l=(function(){function m(p,r,q,u,v){var w;w=this;c.default(v,function(){if(void 0 == u || null == u)u=h.default.Trc(p);else if(0 > u || u > d.default.Ye)throw new n.default("Message ID " + u + " is outside the valid range.");p.cpa({result:function(x){c.default(v,function(){w.Mzb(p,u,p.uF,x,r,q,null);return w;});},error:v.error});});}m.prototype.Mzb=function(p,r,q,u,v,w,x){var y,A;y=[];A=p.Fm.TK(v,w);y.push.apply(y,A);x && x.forEach(function(z){if(z.$x() && !z.Ch(v))throw new g.default(f.default.jGa,"st " + z + "; mt " + v).kc(v);if(z.cw() && !z.Ch(w))throw new g.default(f.default.kGa,"st " + z + "; uit " + w).kc(v).De(w);y.push(z);},this);this.ik=p;this.TO=u;this.Bt=v;this.bP=r;this.uF=q;this.rJ=null;this.G6=this.lx=this.t6=!1;this.sJ={};this.LJa=null;this.pP=w;this.wC=y;this.Z3b=this.X3b=null;this.Y3b=[];};m.prototype.$wb=function(){return this.bP;};m.prototype.ii=function(p){if(0 > p || p > d.default.Ye)throw new n.default("Message ID " + p + " is out of range.");this.bP=p;return this;};m.prototype.dD=function(){return this.Bt;};m.prototype.Px=function(){return this.pP;};m.prototype.qSb=function(){return this.Bt || this.TO.scheme.Una;};m.prototype.rSb=function(){return this.Bt || this.rJ || this.TO.scheme.Una;};m.prototype.sSb=function(){return this.Bt || this.TO.scheme.eJb;};m.prototype.tSb=function(){return this.Bt || this.rJ || this.TO.scheme.eJb;};m.prototype.SG=function(p){var r;r=this;c.default(p,function(){var q,u,v;q=r.rJ?r.rJ.keyResponseData:null;u=[];for(v in r.sJ)u.push(r.sJ[v]);if(r.t6){if(!r.Bt)throw new g.default(f.default.MYb);v=r.ik.Fm.grc(r.Bt);}else v=null;q=new e.O9a(r.bP,v,r.G6,r.lx,r.uF,u,q,r.LJa,r.pP,r.wC);u=new e.T9a(r.X3b,r.Z3b,r.Y3b);r.YX(r.ik,r.TO,r.Bt,q,u,p);});};m.prototype.YX=function(p,r,q,u,v,w){e.YX(p,r,q,u,v,w);};m.prototype.lu=function(){return this.t6;};m.prototype.RT=function(p){if(this.t6=p)this.lx=!1;};m.prototype.ou=function(){return this.G6;};m.prototype.N0a=function(p){(this.G6=p) || (this.lx=!1);};m.prototype.oL=function(){return this.lx;};m.prototype.HPc=function(p){if(this.lx=p)(this.t6=!1,this.G6=!0);};m.prototype.vMb=function(p,r){var q,u,w;q=this;if(r && !r.Ch(p))throw new n.default("User ID token must be bound to master token.");if(this.rJ)throw new n.default("Attempt to set message builder master token when key exchange data exists as a trusted network server.");try{u=this.ik.Fm.TK(p,r);}catch(x){if(k.Dd(x))throw new n.default("Invalid master token and user ID token combination despite checking above.",x);throw x;}for(var v=this.wC.length - 1;0 <= v;--v){w=this.wC[v];(w.cw() && !w.Ch(r) || w.$x() && !w.Ch(p)) && this.wC.splice(v,1);}u.forEach(function(x){q.Etb(x.name,x.$x(),x.cw());q.wC.push(x);});this.Bt=p;(this.pP=r) || (this.LJa=null);};m.prototype.uf=function(p){this.LJa=p;return this;};m.prototype.L5b=function(p){this.sJ[p.ji()]=p;};m.prototype.f6b=function(p){var r;r=this.rJ?this.rJ.keyResponseData.bc:this.Bt;if(p.$x() && !p.Ch(r))throw new g.default(f.default.jGa,"st " + p + "; mt " + r).kc(r);if(p.cw() && !p.Ch(this.pP))throw new g.default(f.default.kGa,"st " + p + "; uit " + this.pP).kc(r).De(this.pP);this.Etb(p.name,p.$x(),p.cw());this.wC.push(p);};m.prototype.Etb=function(){var p,r,q,v;if(1 == arguments.length){p=arguments[0];r=p.name;q=p.$x();p=p.cw();}else (arguments.length=3,r=arguments[0],q=arguments[1],p=arguments[2]);for(var u=this.wC.length - 1;0 <= u;--u){v=this.wC[u];v.name == r && v.$x() == q && v.cw() == p && this.wC.splice(u,1);}};m.prototype.TK=function(){var p;p=[];p.push.apply(p,this.wC);return p;};return m;})();b.DDa=l;b.uqb=function(m,p,r,q,u){new l(m,p,r,q,u);};},68480:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r){var q,u,v;q={};u=[];for(v=0;v < p.length;++v)q[p[v]]=!0;for(v=0;v < r.length;++v)q[r[v]] && u.push(r[v]);return u;}Object.defineProperty(b,"__esModule",{value:!0});b.nHb=b.acb=b.QTa=void 0;n=a(22970);t=a(48235);c=n.__importDefault(a(42979));f=n.__importDefault(a(14945));g=a(51411);e=a(65630);h=n.__importDefault(a(6838));k=n.__importDefault(a(88257));l=n.__importDefault(a(36114));b.QTa=function(p,r){var q,u;if(!p || !r)return null;q=d(p.jK,r.jK);u=d(p.languages,r.languages);p=d(p.vQ,r.vQ);return new m(q,u,p);};m=(function(p){function r(q,u,v){var w;w=p.call(this) || this;q || (q=[]);u || (u=[]);v || (v=[]);q.sort();w.jK=q;w.languages=u;w.vQ=v;return w;}n.__extends(r,p);r.prototype.Gn=function(q,u,v){var w;w=this;c.default(v,function(){var x;x=q.mf();x.put("compressionalgos",q.w8(w.jK));x.put("languages",w.languages);for(var y=q.w8(),A=0;A < w.vQ.length;++A)y.put(-1,w.vQ[A].name);x.put("encoderformats",y);q.Ij(x,u,v);});};r.prototype.equals=function(q){return this === q?!0:q instanceof r?f.default.t8(this.jK,q.jK) && f.default.t8(this.languages,q.languages) && f.default.t8(this.vQ,q.vQ):!1;};r.prototype.ji=function(){return this.jK.join(":") + "|" + this.languages.join(":") + "|" + this.vQ.join(":");};return r;})(t.Oo);b.acb=m;b.nHb=function(p){var v,w,x,y,A;try{for(var r=[],q=p.Nta("compressionalgos"),u=0;q && u < q.size();++u){v=q.we(u);(v in g.NI) && r.push(v);}q=[];w=p.Nta("languages");for(u=0;w && u < w.size();++u)q.push(w.we(u));w=[];x=p.Nta("encoderformats");for(u=0;x && u < x.size();++u){y=x.we(u);A=e.$ha.ZQa(y);A && w.push(A);}return new m(r,q,w);}catch(z){if(z instanceof h.default)throw new k.default(l.default.Ze,"capabilities " + p,z);throw z;}};},54449:function(t,b,a){var k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I;function d(O,Q,T){var U;if(T){if(Q=O.Fm.kA(T))return Q;if(!T.hr || !T.Aaa())throw new l.default(m.default.gbb,T);return new p.I5(O,T);}T=Q.scheme;U=O.dpa(T);if(!U)throw new r.default(m.default.IAa,T.name);return U.kA(O,Q);}function n(O,Q,T){q.default(T,function(){if(Q)F.lHb(O,Q,T);else return null;});}function c(O,Q,T,U){q.default(U,function(){if(Q)C.pYa(O,Q,T,U);else return null;});}function f(O,Q,T,U){q.default(U,function(){if(T)z.wHb(O,Q,T,U);else return null;});}function g(O,Q,T,U,X,Y,W){var aa;function Z(ca,da,ha){q.default(ha,function(){var S,N;if(da >= ca.size()){S=[];for(N in aa)S.push(aa[N]);return S;}try{S=ca.Bq(da,O.Dg);}catch(V){if(V instanceof w.default)throw new x.default(m.default.Ze,"headerdata " + Y,V);throw V;}B.aua(O,S,T,U,X,{result:function(V){q.default(ha,function(){aa[V.ji()]=V;Z(ca,da + 1,ha);});},error:ha.error});});}aa={};q.default(W,function(){if(Q)Z(Q,0,W);else return [];});}function e(O,Q,T,U,X){q.default(X,function(){return {uYa:null,wYa:null,vYa:[]};});}function h(O,Q,T){var X;function U(Y,W){q.default(T,function(){var Z;if(W >= Y.size())return X;Z=Y.Bq(W,O.Dg);D.kHb(O,Z,{result:function(aa){q.default(T,function(){X.push(aa);U(Y,W + 1);});},error:T.error});});}X=[];q.default(T,function(){var Y;try{if(!Q.has("keyrequestdata"))return [];Y=Q.BRa("keyrequestdata");U(Y,0);}catch(W){if(W instanceof w.default)throw new x.default(m.default.Ze,"headerdata " + Q,W);throw W;}});}Object.defineProperty(b,"__esModule",{value:!0});b.oHb=b.YX=b.MV=b.KUb=b.T9a=b.O9a=void 0;k=a(22970);l=k.__importDefault(a(80760));m=k.__importDefault(a(36114));p=a(43088);r=k.__importDefault(a(24571));t=a(48235);q=k.__importDefault(a(42979));u=k.__importDefault(a(51411));v=k.__importDefault(a(10690));w=k.__importDefault(a(6838));x=k.__importDefault(a(88257));y=k.__importDefault(a(42458));A=k.__importDefault(a(58511));z=a(5248);B=a(61693);a(58892);C=a(85065);D=a(59786);F=a(49140);H=k.__importDefault(a(20754));E=a(44127);G=a(68480);J=k.__importDefault(a(88361));L=a(32260);K=(function(){return function(O,Q,T,U,X,Y,W,Z,aa,ca){this.Ce=O;this.TWa=Q;this.i_a=T;this.jD=U;this.vg=X;this.qD=Y;this.keyResponseData=W;this.DRb=Z;this.kg=aa;this.SM=ca;};})();b.O9a=K;M=(function(){return function(O,Q,T){this.uYa=O;this.wYa=Q;this.vYa=T;};})();b.T9a=M;P=(function(){return function(O,Q,T,U){this.HU=O;this.iN=Q;this.dCc=T;this.aqa=U;};})();b.KUb=P;I=(function(O){function Q(T,U,X,Y,W,Z,aa){var da;function ca(ha){q.default(aa,function(){var S,N,V,ba,fa,ia,ka,pa,oa,la,R,ea,ja,sa,ta,qa;if(0 > Y.Ce || Y.Ce > u.default.Ye)throw new v.default("Message ID " + Y.Ce + " is out of range.");if(!U && !X)throw new v.default("Message entity authentication data or master token must be provided.");if(!X && !U.scheme.Una && Y.DRb)throw new v.default("User authentication data cannot be included if the message is not encrypted.");U=X?null:U;S=Y.TWa;N=Y.i_a;V=Y.jD;ba=Y.vg;fa=Y.Ce;ia=Y.qD?Y.qD:[];ka=Y.keyResponseData;pa=Y.DRb;oa=Y.kg;la=Y.SM?Y.SM:[];R=[];ea=ka?ka.bc:X;if(oa && (!ea || !oa.Ch(ea)))throw new v.default("User ID token must be bound to a master token.");la.forEach(function(Aa){if(Aa.$x() && (!ea || !Aa.Ch(ea)))throw new v.default("Master token bound service tokens must be bound to the provided master token.");if(Aa.cw() && (!oa || !Aa.Ch(oa)))throw new v.default("User ID token bound service tokens must be bound to the provided user ID token.");},da);R.forEach(function(Aa){if(Aa.$x())throw new v.default("Master token bound peer service tokens must be bound to the provided peer master token.");if(Aa.cw())throw new v.default("User ID token bound peer service tokens must be bound to the provided peer user ID token.");},da);if(Z)(ja=Z.HU,sa=Z.iN,ta=Z.aqa,qa=Z.dCc);else {ja=oa?oa.HU:null;sa=parseInt(T.getTime() / 1E3);try{ta=T.Dg.mf();"string" === typeof ha && ta.put("sender",ha);ta.put("timestamp",sa);ta.put("messageid",fa);ta.put("nonreplayable","number" === typeof S);"number" === typeof S && ta.put("nonreplayableid",S);ta.put("renewable",N);ta.put("handshake",V);ba && ta.put("capabilities",ba);0 < ia.length && ta.put("keyrequestdata",ia);ka && ta.put("keyresponsedata",ka);pa && ta.put("userauthdata",pa);oa && ta.put("useridtoken",oa);0 < la.length && ta.put("servicetokens",la);0 < R.length && ta.put("peerservicetokens",R);}catch(Aa){if(Aa instanceof w.default)throw new x.default(m.default.hYb,"headerdata",Aa).kc(X).Xf(U).De(null).uf(pa).ii(fa);throw Aa;}try{qa=d(T,U,X);}catch(Aa){throw (L.Dd(Aa) && (Aa.kc(X),Aa.Xf(U),Aa.De(oa),Aa.uf(pa),Aa.ii(fa)),Aa);}}da.Tl=U;da.bc=X;da.aqa=ta;da.iN=sa;da.Ce=fa;da.TWa=S;da.i_a=N;da.jD=V;da.dEb=ba;da.qD=ia;da.keyResponseData=ka;da.yj=pa;da.kg=oa;da.SM=la;da.uYa=null;da.wYa=null;da.vYa=R;da.HU=ja;da.$o=qa;da.encodings={};return da;});}da=O.call(this) || this;q.default(aa,function(){Z?ca(null):X?T.cpa({result:function(ha){q.default(aa,function(){var S;S=ha.nA();ca(S?S:"");});},error:aa.error}):ca(null);});return da;}k.__extends(Q,O);Q.prototype.rSa=function(){return new Date(1E3 * this.iN);};Q.prototype.ou=function(){return this.i_a;};Q.prototype.oL=function(){return this.jD;};Q.prototype.Gn=function(T,U,X){var Y;Y=this;q.default(X,function(){if(Y.encodings[U.name])return Y.encodings[U.name];T.Ij(Y.aqa,U,{result:function(W){q.default(X,function(){Y.$o.encrypt(W,T,U,{result:function(Z){q.default(X,function(){Y.$o.sign(Z,T,U,{result:function(aa){q.default(X,function(){var ca;ca=T.mf();Y.bc?ca.put(A.default.Z$a,Y.bc):ca.put(A.default.iCa,Y.Tl);ca.put(A.default.Y$a,Z);ca.put(A.default.kCa,aa);T.Ij(ca,U,{result:function(da){q.default(X,function(){return Y.encodings[U.name]=da;});},error:X.error});});},error:function(aa){q.default(X,function(){aa instanceof y.default && (aa=new w.default("Error signing the header data.",aa));throw aa;});}});});},error:function(Z){q.default(X,function(){Z instanceof y.default && (Z=new w.default("Error encrypting the header data.",Z));throw Z;});}});});},error:X.error});});};return Q;})(t.Oo);b.MV=I;b.YX=function(O,Q,T,U,X,Y){new I(O,Q,T,U,X,null,Y);};b.oHb=function(O,Q,T,U,X,Y,W){function Z(da,ha,S,N,V,ba,fa,ia,ka){q.default(ka,function(){n(O,V,{result:function(pa){q.default(ka,function(){var oa;oa=pa?pa.bc:U;c(O,ba,oa,{result:function(la){q.default(ka,function(){f(O,oa,fa,{result:function(R){q.default(ka,function(){var ea,ja,sa;if(R){if(!U && !T.scheme.Una)throw new H.default(m.default.U0b).De(la).uf(R);ea=R.scheme;ja=O.iyb(ea);if(!ja)throw new J.default(m.default.Whb,ea).De(la).uf(R);ja.kLa(O,U?U.ju:T.nA(),R,la,{result:function(ta){g(O,ia,oa,la,Y,ha,{result:function(qa){ca(da,ha,S,N,pa,la,R,ta,qa,ka);},error:ka.error});},error:ka.error});}else {sa=la?la.HU:null;g(O,ia,oa,la,Y,ha,{result:function(ta){ca(da,ha,S,N,pa,la,R,sa,ta,ka);},error:ka.error});}});},error:ka.error});});},error:ka.error});});},error:ka.error});});}function aa(da,ha){q.default(W,function(){var S,N,V,ba,fa,ia,ka,pa,oa;S=O.Dg;try{N=S.Bp(ha);V=N.io("messageid");if(0 > V || V > u.default.Ye)throw new H.default(m.default.jbb,"headerdata " + N).kc(U).Xf(T);}catch(la){if(la instanceof w.default)throw new x.default(m.default.Ze,"headerdata " + E.zi(ha),la).kc(U).Xf(T);throw la;}try{ba=N.has("timestamp")?N.io("timestamp"):null;fa=N.has("keyresponsedata")?N.Bq("keyresponsedata",S):null;ia=N.has("useridtoken")?N.Bq("useridtoken",S):null;ka=N.has("userauthdata")?N.Bq("userauthdata",S):null;pa=N.has("servicetokens")?N.BRa("servicetokens"):null;}catch(la){if(la instanceof w.default)throw new x.default(m.default.Ze,"headerdata " + N,la).kc(U).Xf(T).ii(V);throw la;}oa=W;W={result:oa.result,error:function(la){L.Dd(la) && (la.kc(U),la.Xf(T),la.ii(V));oa.error(la);}};Z(da,N,V,ba,fa,ia,ka,pa,W);});}function ca(da,ha,S,N,V,ba,fa,ia,ka,pa){q.default(pa,function(){var oa,la,R,ea,ja,sa;oa=O.Dg;try{la=ha.has("nonreplayableid")?ha.io("nonreplayableid"):null;R=ha.Z9("renewable");ea=ha.has("handshake")?ha.Z9("handshake"):!1;if(0 > la || la > u.default.Ye)throw new H.default(m.default.pcb,"headerdata " + ha.toString());ja=null;if(ha.has("capabilities")){sa=ha.Bq("capabilities",oa);ja=G.nHb(sa);}}catch(ta){if(ta instanceof w.default)throw new x.default(m.default.Ze,"headerdata " + ha.toString(),ta).kc(U).Xf(T).De(ba).uf(fa).ii(S);throw ta;}h(O,ha,{result:function(ta){e(O,ha,V,Y,{result:function(qa){q.default(pa,function(){var Aa,Ga,na,va;Aa=qa.uYa;Ga=qa.wYa;na=qa.vYa;va=new K(S,la,R,ea,ja,ta,V,fa,ba,ka);Aa=new M(Aa,Ga,na);Ga=new P(ia,N,da,ha);new I(O,T,U,va,Aa,Ga,pa);});},error:pa.error});},error:function(ta){q.default(pa,function(){L.Dd(ta) && (ta.De(ba),ta.uf(fa));throw ta;});}});});}q.default(W,function(){var da,ha;da=O.Dg;T=U?null:T;if(!T && !U)throw new H.default(m.default.eDa);try{ha=d(O,T,U);}catch(S){throw (L.Dd(S) && (S.kc(U),S.Xf(T)),S);}ha.verify(Q,X,da,{result:function(S){q.default(W,function(){if(!S){if(U)throw new y.default(m.default.$Xb);throw new y.default(m.default.XXb);}ha.decrypt(Q,da,{result:function(N){aa(ha,N);},error:function(N){q.default(W,function(){if(N instanceof y.default || N instanceof r.default)(N.kc(U),N.Xf(T));throw N;});}});});},error:function(S){q.default(W,function(){if(S instanceof y.default || S instanceof r.default)(S.kc(U),S.Xf(T));throw S;});}});});};},34801:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B;function d(C,D,F,H){c.default(H,function(){var G,J,L,K,M,P,I;function E(){c.default(H,function(){var O;if(I >= F.length){if(P)throw P;throw new g.default(e.default.X$a,F);}O=F[I];K != O.LA?(++I,E()):M.kA(C,O,J,G,{result:H.result,error:function(Q){c.default(H,function(){if(!z.Dd(Q))throw Q;P=Q;++I;E();});}});});}G=D.bc;J=D.keyResponseData;if(!J)return null;L=J.bc;if(L.Aaa())return new f.I5(C,L);K=J.LA;M=C.mRa(K);if(!M)throw new g.default(e.default.hCa,K);I=0;E();});}Object.defineProperty(b,"__esModule",{value:!0});b.vqb=b.Zha=void 0;n=a(22970);c=n.__importDefault(a(42979));f=a(43088);g=n.__importDefault(a(35661));e=n.__importDefault(a(36114));h=n.__importDefault(a(79804));k=n.__importDefault(a(88257));l=n.__importDefault(a(6838));t=a(53389);m=a(58511);p=a(70390);r=a(89752);q=n.__importDefault(a(20754));u=n.__importDefault(a(80760));v=n.__importDefault(a(67609));w=n.__importDefault(a(10690));x=a(42296);y=n.__importDefault(a(48795));A=a(54449);z=a(32260);B=(function(C){function D(F,H,E,G,J,L){var X;function K(Y){h.default(L,function(){X.P6=Y;X.P6.NEb({result:function(W){W?M():(X.af=new k.default(e.default.WXb),U());},timeout:function(){X.Nr=!0;U();},error:function(W){W instanceof l.default && (W=new k.default(e.default.Ze,"header",W));X.af=W;U();}});return X;});}function M(){X.P6.MWa({result:function(Y){m.Xta(F,Y,G,{result:P,error:function(W){X.af=W;U();}});},timeout:function(){X.Nr=!0;U();},error:function(Y){Y instanceof l.default && (Y=new k.default(e.default.Ze,"header",Y));X.af=Y;U();}});}function P(Y){var W;X.Ez=Y;if(X.Ez instanceof p.T3)(X.kka=null,X.Nja=null,U());else {W=X.Ez;d(F,W,E,{result:function(Z){var aa;try{X.kka=Z;X.Nja=X.kka?X.kka:W.$o;try{if(W.oL() && (!W.ou() || 0 == W.qD.length))throw new q.default(e.default.qWb,W);try{aa=W.bc;aa && aa.hr?T(F,W):I(F,W);}catch(ca){z.Dd(ca) && (ca.kc(W.bc),ca.Xf(W.kg),ca.De(W.yj),ca.uf(W.Ce));X.af=ca;U();}}catch(ca){z.Dd(ca) && (ca.kc(W.bc),ca.Xf(W.Tl),ca.De(W.kg),ca.uf(W.yj),ca.ii(W.Ce));X.af=ca;U();}}catch(ca){z.Dd(ca) && (ca.kc(W.bc),ca.Xf(W.Tl),ca.De(W.kg),ca.uf(W.yj),ca.ii(W.Ce));X.af=ca;U();}},error:function(Z){z.Dd(Z) && (Z.kc(W.bc),Z.Xf(W.Tl),Z.De(W.kg),Z.uf(W.yj),Z.ii(W.Ce));X.af=Z;U();}});}}function I(Y,W){var Z,aa;try{Z=W.bc;aa=W.TWa;"number" === typeof aa?Z?(null).E4c(Y,Z,aa,{result:function(ca){ca && (X.af=new q.default(ca,W).kc(Z).De(W.kg).uf(W.yj).ii(W.Ce));U();},error:function(ca){z.Dd(ca) && (ca.kc(Z),ca.De(W.kg),ca.uf(W.yj),ca.ii(W.Ce));X.af=ca;U();}}):(X.af=new q.default(e.default.EWb,W).Xf(W.Tl).De(W.kg).uf(W.yj).ii(W.Ce),U()):U();}catch(ca){z.Dd(ca) && (ca.kc(W.bc),ca.Xf(W.Tl),ca.De(W.kg),ca.uf(W.yj),ca.ii(W.Ce));X.af=ca;U();}}function O(Y,W){var Z;try{Z=W.bc;Z.aw(null)?W.ou()?0 == W.qD.length?(X.af=new q.default(e.default.ZXb,W).kc(Z).De(W.kg).uf(W.yj).ii(W.Ce),U()):(null).U9c(Y,Z,{result:function(aa){aa?(X.af=new q.default(aa,"Master token is expired and not renewable.").kc(Z).De(W.kg).uf(W.yj).ii(W.Ce),U()):I(Y,W);},error:function(aa){z.Dd(aa) && (aa.kc(W.bc),aa.De(W.kg),aa.uf(W.yj),aa.ii(W.Ce));X.af=aa;U();}}):(X.af=new q.default(e.default.YXb,W).kc(Z).De(W.kg).uf(W.yj).ii(W.Ce),U()):I(Y,W);}catch(aa){z.Dd(aa) && (aa.kc(W.bc),aa.De(W.kg),aa.uf(W.yj),aa.ii(W.Ce));X.af=aa;U();}}function Q(Y,W){var Z,aa;try{Z=W.bc;aa=W.kg;aa?(null).f$c(Y,Z,aa,{result:function(ca){ca?(X.af=new v.default(ca,aa).kc(Z).De(aa).ii(W.Ce),U()):O(Y,W);},error:function(ca){z.Dd(ca) && (ca.kc(W.bc),ca.De(W.kg),ca.uf(W.yj),ca.ii(W.Ce));X.af=ca;U();}}):O(Y,W);}catch(ca){z.Dd(ca) && (ca.kc(W.bc),ca.De(W.kg),ca.uf(W.yj),ca.ii(W.Ce));X.af=ca;U();}}function T(Y,W){var Z;try{Z=W.bc;(null).V9c(Y,Z,{result:function(aa){aa?(X.af=new u.default(aa,Z).De(W.kg).uf(W.yj).ii(W.Ce),U()):Q(Y,W);},error:function(aa){z.Dd(aa) && (aa.kc(W.bc),aa.De(W.kg),aa.uf(W.yj),aa.ii(W.Ce));X.af=aa;U();}});}catch(aa){z.Dd(aa) && (aa.kc(W.bc),aa.De(W.kg),aa.uf(W.yj),aa.ii(W.Ce));X.af=aa;U();}}function U(){X.Uk=!0;X.yJ.add(!0);}X=C.call(this) || this;X.ik=F;X.Dt=H;X.uC=1;X.Uja=!1;X.ajb=!1;X.Bm=!1;X.Dj=[];X.Kz=-1;X.IF=0;X.PIa=0;X.kv=0;X.IW=0;X.Uk=!1;X.yJ=new r.q3();X.Ag=!1;X.Nr=!1;h.default(L,function(){F.Dg.igc(H,J,{result:K,timeout:L.timeout,error:L.error});});return X;}n.__extends(D,C);D.prototype.zDc=function(F){var H;H=this;h.default(F,function(){if(!H.Aq())throw new w.default("Read attempted with error message.");if(H.Uja)return null;H.P6.NEb({result:function(E){h.default(F,function(){if(!E)return (H.Uja=!0,null);H.P6.MWa({result:F.result,timeout:F.timeout,error:function(G){h.default(F,function(){if(G instanceof l.default)throw new k.default(e.default.Ze,"payloadchunk",G);throw G;});}});});},timeout:F.timeout,error:function(E){h.default(F,function(){if(E instanceof l.default)throw new k.default(e.default.Ze,"payloadchunk",E);throw E;});}});});};D.prototype.KWa=function(F){var H;H=this;h.default(F,function(){var E;E=H.Aq();if(!E)throw new w.default("Read attempted with error message.");if(-1 != H.Kz && H.Kz < H.Dj.length)return H.Dj[H.Kz++];if(H.Uja)return null;H.zDc({result:function(G){h.default(F,function(){if(!G)return null;x.qHb(H.ik,G,H.Nja,{result:function(J){h.default(F,function(){var L,K,M,P;L=E.bc;K=E.Tl;M=E.kg;P=E.Y8c;if(J.Ce != E.Ce)throw new q.default(e.default.kZb,"payload mid " + J.Ce + " header mid " + E.Ce).kc(L).Xf(K).De(M).uf(P);if(J.ak != H.uC)throw new q.default(e.default.mZb,"payload seqno " + J.ak + " expected seqno " + H.uC).kc(L).Xf(K).De(M).uf(P);++H.uC;null == H.lx && (H.lx=E.ou() && 0 < E.qD.length && J.gPa && 0 == J.data.length);J.gPa && (H.Uja=!0);L=J.data;-1 != H.PIa && (H.Dj.push(L),H.Kz=-1);return L;});},error:F.error});});},timeout:F.timeout,error:F.error});});};D.prototype.ws=function(F){var E;function H(){h.default(F,function(){if(E.Ag)return !1;if(E.Nr)F.timeout();else {if(E.af)throw E.af;return !0;}});}E=this;h.default(F,function(){E.Uk?H():E.yJ.Xca(-1,{result:function(G){h.default(F,function(){if(void 0 === G)return !1;H();});},timeout:function(){c.default(F,function(){throw new w.default("Timeout while waiting for MessageInputStream.isReady() despite no timeout being specified.");});},error:F.error});});};D.prototype.oL=function(F){var H;H=this;h.default(F,function(){var E;E=H.Aq();if(!E)return !1;if(E.oL())return !0;if(null == H.lx)H.KWa({result:function(G){h.default(F,function(){if(!H.Ag)return (H.Tk=G,H.IF=0,H.Tk || (H.lx=!1),H.lx);});},timeout:F.timeout,error:function(G){h.default(F,function(){z.Dd(G) && (H.D6=new y.default("Error reading the payload chunk.",G));throw G;});}});else return H.lx;});};D.prototype.Aq=function(){return this.Ez instanceof A.MV?this.Ez:null;};D.prototype.AZ=function(){return this.Ez instanceof p.T3?this.Ez:null;};D.prototype.nA=function(){var F,H;F=this.Aq();if(F){H=F.bc;return H?H.ju:F.Tl.nA();}return this.AZ().Tl.nA();};D.prototype.Wbc=function(F){this.ajb=F;};D.prototype.abort=function(){this.Ag=!0;this.Dt.abort();this.yJ.mma();};D.prototype.close=function(F,H){var G;function E(){G.KWa({result:function(J){J?E():H.result(!0);},timeout:function(){H.timeout();},error:function(){H.result(!0);}});}G=this;h.default(H,function(){G.P6.close(F,{result:function(){G.ajb?G.Dt.close(F,H):G.Aq()?G.oL({result:function(J){J?E():H.result(!0);},timeout:H.timeout,error:function(){H.result(!0);}}):H.result(!0);},timeout:H.timeout,error:function(){H.result(!0);}});});};D.prototype.mark=function(F){this.kv=F?F:-1;this.IW=0;this.Bm=!0;if(this.Tk){for(;0 < this.Dj.length && this.Dj[0] !== this.Tk;)this.Dj.shift();0 == this.Dj.length && this.Dj.push(this.Tk);this.Kz=0;this.Tk=this.Dj[this.Kz++];this.PIa=this.IF;}else (this.Kz=-1,this.Dj=[]);};D.prototype.read=function(F,H,E){var L;function G(){h.default(E,function(){var K;if(L.Ag)return new Uint8Array(0);if(L.Nr)E.timeout(new Uint8Array(0));else {if(L.af)throw L.af;if(null != L.D6){K=L.D6;L.D6=null;throw K;}L.oL({result:function(M){h.default(E,function(){if(void 0 === M)return new Uint8Array(0);if(M)return null;J();});},timeout:E.timeout,error:function(M){h.default(E,function(){L.D6=null;throw new y.default("Error reading the payload chunk.",M);});}});}});}function J(){h.default(E,function(){var M,P,I;function K(O){h.default(O,function(){var Q,T,U;if(M && I >= M.length)return M.subarray(0,I);Q=-1;if(L.Tk){T=L.Tk.length - L.IF;if(!M){U=T;if(-1 != L.Kz)for(var X=L.Kz;X < L.Dj.length;++X)U+=L.Dj[X].length;0 < U && (M=new Uint8Array(U));}T=Math.min(T,M?M.length - I:0);0 < T && (Q=L.Tk.subarray(L.IF,L.IF + T),M.set(Q,P),Q=T,P+=T,L.IF+=T,L.Bm && (L.IW+=T,-1 != L.kv && L.IW > L.kv && (L.Bm=!1,L.IW=L.kv=0)));}-1 != Q?(I+=Q,K(O)):L.KWa({result:function(Y){h.default(O,function(){if(L.Ag)return M?M.subarray(0,I):new Uint8Array(0);L.Tk=Y;L.IF=0;if(L.Tk)K(O);else return 0 == I && 0 != F?null:M?M.subarray(0,I):new Uint8Array(0);});},timeout:function(){O.timeout(M?M.subarray(0,I):new Uint8Array(0));},error:function(Y){h.default(O,function(){z.Dd(Y) && (Y=new y.default("Error reading the payload chunk.",Y));if(0 < I)return (L.D6=Y,M.subarray(0,I));throw Y;});}});});}M=-1 != F?new Uint8Array(F):void 0;P=0;I=0;K(E);});}L=this;h.default(E,function(){if(-1 > F)throw new RangeError("read requested with illegal length " + F);L.Uk?G():L.yJ.Xca(H,{result:function(K){void 0 === K?E.result(!1):G();},timeout:function(){E.timeout(new Uint8Array(0));},error:E.error});});};D.prototype.reset=function(){this.Bm && (this.Kz=0,0 < this.Dj.length?(this.Tk=this.Dj[this.Kz++],this.IF=this.PIa):this.Tk=null,this.IW=0);};return D;})(t.Iha);b.Zha=B;b.vqb=function(C,D,F,H,E,G){new B(C,D,F,H,E,G);};},25462:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r;Object.defineProperty(b,"__esModule",{value:!0});b.wqb=b.xYb=void 0;t=a(22970);d=t.__importDefault(a(79804));n=a(54449);c=a(68480);f=a(42296);g=a(51411);e=t.__importDefault(a(6838));h=t.__importDefault(a(48795));k=t.__importDefault(a(10690));l=a(70390);m=a(89752);p=a(32260);r=(function(){function q(u,v,w,x,y,A,z){var B;B=this;this.ik=u;this.Sja=v;this.Ez=w;this.uC=1;this.Tk=[];this.$ib=this.El=!1;this.Xib=!0;this.Dj=[];this.Uk=!1;this.yJ=new m.q3();this.Nr=this.Ag=!1;this.af=null;d.default(z,function(){var D,F,H,E;function C(){B.Uk=!0;B.yJ.add(!0);}D=u.Dg;if(w instanceof n.MV)(H=(F=c.QTa(u.uF,w.dEb))?g.xxb(F.jK):null,E=D.yxb());else (F=u.uF,H=null,E=y);B.r2b=E;B.uF=F;B.Nja=x;B.cIa=H;w.Gn(D,E,{result:function(G){v.write(G,0,G.length,A,{result:function(J){try{B.Ag?C():J < G.length?(B.Nr=!0,C()):v.flush(A,{result:function(L){B.Ag || (B.Nr=!L);C();},timeout:function(){B.Nr=!0;C();},error:function(L){B.af=L;C();}});}catch(L){B.af=L;C();}},timeout:function(){B.Nr=!0;C();},error:function(J){B.af=J;C();}});},error:function(G){B.af=G instanceof e.default?new h.default("Error encoding the message header.",G):G;C();}});return B;});}q.prototype.ws=function(u){var w;function v(){d.default(u,function(){if(w.Ag)return !1;if(w.Nr)u.timeout();else {if(w.af)throw w.af;return !0;}});}w=this;d.default(u,function(){w.Uk?v():w.yJ.Xca(-1,{result:function(x){d.default(u,function(){if(void 0 === x)return !1;v();});},timeout:function(){d.default(u,function(){throw new k.default("Timeout while waiting for MessageOutputStream.isReady() despite no timeout being specified.");});},error:u.error});});};q.prototype.qPc=function(u,v,w){var y;function x(){y.flush(v,{result:function(A){d.default(w,function(){if(!A)throw new h.default("flush() aborted");y.cIa=u;return !0;});},timeout:w.timeout,error:w.error});}y=this;d.default(w,function(){if(!y.Aq())throw new k.default("Cannot write payload data for an error message.");if(y.cIa == u)return !0;if(u){if(!y.uF)return !1;for(var A=y.uF.jK,z=0;z < A.length;++z)if(A[z] == u){x();return;}return !1;}x();});};q.prototype.Aq=function(){return this.Ez instanceof n.MV?this.Ez:null;};q.prototype.AZ=function(){return this.Ez instanceof l.T3?this.Ez:null;};q.prototype.pSc=function(){this.Xib=!1;this.Dj=[];};q.prototype.abort=function(){this.Ag=!0;this.Sja.abort();this.yJ.mma();};q.prototype.Sbc=function(u){this.$ib=u;};q.prototype.close=function(u,v){var w;w=this;d.default(v,function(){if(w.Ag)return !1;if(w.Nr)v.timeout();else {if(w.af)throw w.af;if(w.El)return !0;w.El=!0;w.flush(u,{result:function(x){d.default(v,function(){x && (w.Tk=null);if(w.$ib)w.Sja.close(u,v);else return x;});},timeout:v.timeout,error:v.error});}});};q.prototype.flush=function(u,v){var x;function w(){d.default(v,function(){var y,A,D;if(!x.Tk || !x.El && 0 == x.Tk.length)return !0;y=x.Aq();if(!y || y.oL())return !0;A=0;x.Tk.forEach(function(F){A+=F.length;});for(var z=new Uint8Array(A),B=0,C=0;C < x.Tk.length;++C){D=x.Tk[C];z.set(D,B);B+=D.length;}f.Dqb(x.ik,x.uC,y.Ce,x.El,x.cIa,z,x.Nja,{result:function(F){d.default(v,function(){x.Xib && x.Dj.push(F);F.Gn(x.ik.Dg,x.r2b,{result:function(H){d.default(v,function(){x.Sja.write(H,0,H.length,u,{result:function(E){d.default(v,function(){if(x.Ag)return !1;E < F.length?v.timeout():x.Sja.flush(u,{result:function(G){d.default(v,function(){if(x.Ag)return !1;if(G)return (++x.uC,x.Tk=x.El?null:[],!0);v.timeout();});},timeout:v.timeout,error:function(G){d.default(v,function(){p.Dd(G) && (G=new h.default("Error encoding payload chunk [sequence number " + x.uC + "].",G));throw G;});}});});},timeout:function(){v.timeout();},error:function(E){d.default(v,function(){p.Dd(E) && (E=new h.default("Error encoding payload chunk [sequence number " + x.uC + "].",E));throw E;});}});});},error:function(H){d.default(v,function(){if(H instanceof e.default)throw new h.default("Error encoding payload chunk [sequence number " + x.uC + "].",H);throw H;});}});});},error:function(F){d.default(v,function(){p.Dd(F) && (F=new h.default("Error encoding payload chunk [sequence number " + x.uC + "].",F));throw F;});}});});}x=this;this.ws({result:function(y){d.default(v,function(){if(y)w();else return !1;});},timeout:v.timeout,error:v.error});};q.prototype.write=function(u,v,w,x,y){var A;A=this;d.default(y,function(){var z;if(A.Ag)return !1;if(A.Nr)y.timeout();else {if(A.af)throw A.af;if(A.El)throw new h.default("Message output stream already closed.");if(0 > v)throw new RangeError("Offset cannot be negative.");if(0 > w)throw new RangeError("Length cannot be negative.");if(v + w > u.length)throw new RangeError("Offset plus length cannot be greater than the array length.");z=A.Aq();if(!z)throw new k.default("Cannot write payload data for an error message.");if(z.oL())throw new k.default("Cannot write payload data for a handshake message.");z=u.subarray(v,v + w);A.Tk.push(z);return z.length;}});};return q;})();b.xYb=r;b.wqb=function(q,u,v,w,x,y,A){new r(q,u,v,w,x,y,A);};},41962:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.ccb=void 0;t=a(22970);d=t.__importDefault(a(20754));t.__importDefault(a(42979));a(61693);t.__importDefault(a(10690));a=(function(){function n(c,f,g){this.qk=c;this.fY=f.Woa();this.jb=g;}n.prototype.Mlb=function(c){try{this.jb.f6b(c);}catch(f){if(!(f instanceof d.default))throw f;}};return n;})();b.ccb=a;},84898:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.hcb=void 0;d=a(22970).__importDefault(a(2178));t=(function(){function n(c,f){this.Yjb=new d.default(c,f);}n.prototype.send=function(c,f){for(var g=[],e=2;e < arguments.length;e++)g[e - 2]=arguments[e];return this.Yjb.send(c,f,g);};n.prototype.request=function(c,f){for(var g=[],e=2;e < arguments.length;e++)g[e - 2]=arguments[e];return this.Yjb.request(c,f,g);};return n;})();b.hcb=t;},2178:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M;function d(P,I,O){return function(){I && P.MW.cancel(I);O.abort();};}function n(P){for(;P;){if(P instanceof e.default)return !0;P=y.Dd(P)?P.Dc:void 0;}return !1;}Object.defineProperty(b,"__esModule",{value:!0});b.CYb=b.DYb=b.AYb=void 0;c=a(22970);f=c.__importDefault(a(42979));g=c.__importDefault(a(79804));e=c.__importDefault(a(25978));h=c.__importDefault(a(1966));k=a(31238);l=a(74015);m=a(93652);p=c.__importDefault(a(10690));r=c.__importDefault(a(51411));q=a(41962);u=c.__importDefault(a(20754));v=c.__importDefault(a(36114));w=a(89752);x=a(81214);y=a(32260);A=(function(){return function(P,I){this.input=P;this.FS=I;};})();b.AYb=A;z=(function(){function P(I,O){this.ik=I;this.Bt=O;}P.prototype.equals=function(I){return this === I?!0:I instanceof P?this.ik === I.ik && this.Bt.equals(I.Bt):!1;};P.prototype.ji=function(){return this.ik.ji() + ":" + this.Bt.ji();};return P;})();t=(function(){function P(I){this.ix=I;}P.prototype.Woa=function(){return this.ix.Woa();};P.prototype.WRa=function(){return this.ix.WRa();};P.prototype.Caa=function(){return this.ix.Caa();};P.prototype.Nqa=function(){return this.ix.Nqa();};P.prototype.lu=function(){return this.ix.lu();};P.prototype.Oaa=function(){return this.ix.Oaa();};P.prototype.qA=function(){return this.ix.qA();};P.prototype.Ipa=function(I,O,Q,T){this.ix.Ipa(I,O,Q,T);};P.prototype.bR=function(I){this.ix.bR(I);};P.prototype.o3a=function(I,O,Q){this.ix.o3a(I,O,Q);};P.prototype.write=function(I,O,Q){this.ix.write(I,O,Q);};P.prototype.Zoa=function(){return this.ix.Zoa();};return P;})();B=(function(P){function I(O,Q){Q=P.call(this,Q) || this;Q.Dj=O;return Q;}c.__extends(I,P);I.prototype.write=function(O,Q,T){var U,X;U=this;if(this.Dj && 0 != this.Dj.length){X=function(Y){var W;if(Y == U.Dj.length)T.result(!0);else {W=U.Dj[Y];O.qPc(W.Fma,Q,{result:function(){O.write(W.data,0,W.data.length,Q,{result:function(){g.default(T,function(){W.gPa?O.close(Q,{result:function(Z){Z?X(Y + 1):T.result(Z);},timeout:T.timeout,error:T.error}):O.flush(Q,{result:function(Z){Z?X(Y + 1):T.result(Z);},timeout:T.timeout,error:T.error});});},timeout:T.timeout,error:T.error});},timeout:T.timeout,error:T.error});}};X(0);}else P.prototype.write.call(this,O,Q,T);};return I;})(t);C=(function(P){function I(O){return P.call(this,O) || this;}c.__extends(I,P);I.prototype.Oaa=function(){return !1;};return I;})(t);D=(function(){return function(P,I){this.bc=P;this.cUc=I;};})();F=(function(){return function(P,I){this.jb=P;this.WCc=I;};})();H=(function(){return function(P,I){this.request=P;this.jD=I;};})();E=(function(){return function(P,I){this.request=I.request;this.jD=I.jD;this.response=P;};})();G={};J=(function(){function P(I){I || (I=new k.Pza());this.DF=I;this.Xja=null;this.KF=[];this.$O={};}P.prototype.dR=function(I,O,Q,T){var U;U=this;g.default(T,function(){var X,Y,W,Z,aa;X=O.Fm;Y=X.dD();if(!Y)return null;W=new z(O,Y).ji();Z=U.$O[W];Z || (Z=new l.aGa(),U.$O[W]=Z);aa=Z.SKc(Q,{result:function(ca){g.default(T,function(){var da;if(void 0 === ca)throw new e.default("getNewestMasterToken aborted.");da=X.dD();if(Y.equals(da))return new D(Y,ca);Z.unlock(ca);Z.CSb(Q,{result:function(ha){g.default(T,function(){if(void 0 === ha)throw new e.default("getNewestMasterToken aborted.");delete U.$O[W];Z.unlock(ha);return U.dR(I,O,Q,T);});},timeout:T.timeout,error:T.error});});},timeout:T.timeout,error:T.error});I.O1(function(){aa && (Z.cancel(aa),aa=void 0);});});};P.prototype.fOa=function(I,O){var Q;Q=this;O && setTimeout(function(){var T,U;T=new z(I,O).ji();U=Q.$O[T];U || (U=new l.aGa(),Q.$O[T]=U);U.CSb(-1,{result:function(X){X && (I.Fm.cKb(O),delete Q.$O[T],U.unlock(X));},timeout:function(){throw new p.default("Unexpected timeout received.");},error:function(X){throw X;}});},0);};P.prototype.Bu=function(I,O){O && O.bc && (I=new z(I,O.bc).ji(),(I=this.$O[I]) && I.unlock(O.cUc));};P.prototype.ZVc=function(I,O,Q){var T;T=I.Fm;Q && (T.sea(Q.keyResponseData.bc,Q.$o),this.fOa(I,O.bc));};P.prototype.QVc=function(I,O,Q){var T,U;T=Q.Aq();if(T){U=I.Fm;if(T=T.keyResponseData)(U.sea(T.bc,Q.kka),this.fOa(I,O.bc));}};P.prototype.uOb=function(I,O,Q,T){var Y,W;I=I.Fm;for(var U=[],X=0;X < T.length;++X){Y=T[X];if(!Y.Ch(O) || !O.hr){W=Y.getData();W && 0 == W.length?I.nva(Y.name,Y.$x()?O:null,Y.cw()?Q:null):U.push(Y);}}0 < U.length && I.Zka(U);};P.prototype.S9b=function(I,O,Q,T,U){var X;X=this;this.dR(I,O,T,{result:function(Y){f.default(U,function(){var W,Z,aa,ca,da;try{W=Y && Y.bc;Z=void 0;if(W){aa=Q.qA();ca=O.Fm;da=aa?ca.Px(aa):null;Z=da && da.Ch(W)?da:null;}else Z=null;X.DF.bY(O,W,Z,null,{result:function(ha){f.default(U,function(){ha.RT(Q.lu());return {jb:ha,Qp:Y};});},error:function(ha){f.default(U,function(){X.Bu(O,Y);y.Dd(ha) && (ha=new p.default("User ID token not bound to master token despite internal check.",ha));throw ha;});}});}catch(ha){X.Bu(O,Y);}});},timeout:U.timeout,error:U.error});};P.prototype.O9b=function(I,O,Q,T,U,X){var Y;Y=this;this.DF.efc(O,T,{result:function(W){g.default(X,function(){W.RT(Q.lu());Y.dR(I,O,U,{result:function(Z){g.default(X,function(){var aa,ca,da,ha,S;try{aa=Z && Z.bc;ca=void 0;if(aa){da=Q.qA();ha=O.Fm;S=da?ha.Px(da):null;ca=S && S.Ch(aa)?S:null;}else ca=null;W.vMb(aa,ca);return {jb:W,Qp:Z};}catch(N){Y.Bu(O,Z);}});},timeout:X.timeout,error:X.error});});},error:X.error});};P.prototype.T9b=function(I,O,Q,T,U,X,Y){var aa;function W(ca,da){aa.dR(I,O,X,{result:function(ha){g.default(Y,function(){var S,N,V;S=ha && ha.bc;N=m.cL(U.Ce);V=new B(da,Q);aa.DF.bY(O,S,null,N,{result:function(ba){g.default(Y,function(){ba.RT(V.lu());return {BG:new F(ba,V),Qp:ha};});},error:Y.error});});},timeout:Y.timeout,error:Y.error});}function Z(ca,da){g.default(Y,function(){var ha,S;ha=m.cL(U.Ce);S=new B(da,Q);aa.DF.bY(O,null,null,ha,{result:function(N){g.default(Y,function(){N.RT(S.lu());return {BG:new F(N,S),Qp:null};});},error:Y.error});});}aa=this;g.default(Y,function(){var ca,da,ha;ca=T.request.Aq();da=T.request.Dj;ha=U.errorCode;switch(ha){case r.default.P.li:case r.default.P.pg:O.cpa({result:function(S){g.default(Y,function(){if(!S)return null;Z(ca,da);});},error:Y.error});break;case r.default.P.jd:case r.default.P.$ia:Q.Ipa(ha,!1,!0,{result:function(S){g.default(Y,function(){if(!S)return null;W(ca,da);});},error:Y.error});break;case r.default.P.Ne:W(ca,da);break;case r.default.P.R4:Q.bR({result:function(S){g.default(Y,function(){var N,V;if(null === S || 0 === S.length)return null;N=m.cL(U.Ce);V=new B(da,Q);aa.DF.bY(O,null,null,N,{result:function(ba){g.default(Y,function(){ba.N0a(!0);ba.RT(V.lu());return {BG:new F(ba,V),Qp:null};});},error:Y.error});});},error:Y.error});break;case r.default.P.R3:Q.bR({result:function(S){g.default(Y,function(){if(null === S || 0 === S.length)return null;aa.dR(I,O,X,{result:function(N){g.default(Y,function(){var V,ba,fa,ia;V=N && N.bc;if(V){ba=Q.qA();fa=O.Fm;ba=(ba=ba?fa.Px(ba):null) && ba.Ch(V)?ba:null;}else ba=null;fa=m.cL(U.Ce);ia=new B(da,Q);aa.DF.bY(O,V,ba,fa,{result:function(ka){g.default(Y,function(){var pa;pa=ca.bc;pa && !pa.equals(V) || ka.N0a(!0);ka.RT(ia.lu());return {BG:new F(ka,ia),Qp:N};});},error:Y.error});});},timeout:Y.timeout,error:Y.error});});},error:Y.error});break;case r.default.P.WFa:aa.dR(I,O,X,{result:function(S){g.default(Y,function(){var N,V,ba,fa;N=S && S.bc;if(N){V=Q.qA();ba=O.Fm;V=(V=V?ba.Px(V):null) && V.Ch(N)?V:null;}else V=null;ba=m.cL(U.Ce);fa=new B(da,Q);aa.DF.bY(O,N,V,ba,{result:function(ia){g.default(Y,function(){ia.RT(fa.lu());return {BG:new F(ia,fa),Qp:S};});},error:Y.error});});},timeout:Y.timeout,error:Y.error});break;default:return null;}});};P.prototype.ybc=function(I,O,Q){switch(Q.errorCode){case r.default.P.pg:case r.default.P.li:this.fOa(I,O.bc);break;case r.default.P.Ne:case r.default.P.jd:(Q=O.kg,O.bc && Q && I.Fm.xda(Q));}};P.prototype.send=function(I,O,Q,T,U,X,Y,W){var ha;function Z(S,N,V){g.default(W,function(){var ba;ba=new q.ccb(O,Q,U);Q.o3a(ba,V,{result:function(){U.SG({result:function(fa){g.default(W,function(){var ia,ka;ia=Q.Zoa();ia && ia.$Oc(fa);ia=U.rJ;ha.ZVc(O,fa,ia);ha.uOb(O,ia?ia.keyResponseData.bc:S,N,fa.SM);ia=ia?ia.$o:fa.$o;if(I.Ag)throw new e.default("send aborted.");ka=null != ha.Xja?ha.Xja.P8c(T):T;ha.DF.Ofc(O,ka,fa,ia,Y,{result:function(pa){g.default(W,function(){I.O1(function(){pa.abort();});pa.Sbc(X);pa.ws({result:function(oa){g.default(W,function(){if(!oa)throw new e.default("MessageOutputStream aborted.");aa(pa,V);});},timeout:W.timeout,error:W.error});});},timeout:W.timeout,error:W.error});});},timeout:W.timeout,error:W.error});},error:W.error});});}function aa(S,N){N?g.default(W,function(){return new H(S,N);}):Q.write(S,Y,{result:function(){g.default(W,function(){if(I.Ag)throw new e.default("MessageOutputStream write aborted.");return new H(S,N);});},timeout:W.timeout,error:W.error});}function ca(S,N,V){g.default(W,function(){var ba,fa,ia;ba=!(!(V || Q.Caa() && !U.rSb() || Q.Nqa() && !U.tSb()) && (!Q.lu() || U.lu() && S));U.HPc(ba);fa=[];if(U.ou()){ia=O.wpa();if(!S || S.ou(ia) || Q.lu()){Q.bR({result:function(ka){g.default(W,function(){var oa;if(ba && (null === ka || 0 == ka.length))throw new u.default(v.default.rWb);if(null !== ka)for(var pa=0;pa < ka.length;++pa){oa=ka[pa];fa.push(oa);U.L5b(oa);}Z(S,N,ba,fa);});},error:W.error});return;}}Z(S,N,ba,fa);});}function da(S,N,V){g.default(W,function(){ca(S,N,V);});}ha=this;g.default(W,function(){var S,N,V,ba;S=U.dD();N=U.Px();V=!1;if(Q.qA()){ba=!N;Q.Ipa(null,U.ou(),ba,{result:function(fa){g.default(W,function(){fa && (U.qSb() && U.sSb()?U.uf(fa):V=!0);da(S,N,V);});},error:W.error});}else da(S,N,V);});};P.prototype.dLc=function(I,O,Q,T,U,X,Y){var Z;function W(aa){g.default(Y,function(){var ca,da,ha,S,N,V,ba,fa,ia,ka,pa,oa,la;ca=aa.Aq();da=aa.AZ();ha=Q.Zoa();ha && ha.gLc(ca?ca:da);if(ca){ha=ca.bc;S=ca.Tl;N=ca.kg;V=ca.yj;}else (ha=null,S=da.Tl,V=N=null);if(U){ba=da?da.errorCode:null;if(ca || ba != r.default.P.fa && ba != r.default.P.Br && ba != r.default.P.pg && ba != r.default.P.li){ba=ca?ca.Ce:da.Ce;fa=m.cL(U.Ce);if(ba != fa)throw new u.default(v.default.V0b,"expected " + fa + "; received " + ba).kc(ha).Xf(S).De(N).uf(V);}}try{ia=Q.WRa();if(ia && S){ka=S.nA();if(ka && ia != ka)throw new u.default(v.default.aYb,"expected " + ia + "; received " + ka);}if(ca){U && Z.QVc(O,U,aa);pa=ca.keyResponseData;ba=ka=ia=void 0;ia=pa?pa.bc:ca.bc;ka=ca.kg;ba=ca.SM;oa=Q.qA();oa && ka && !ka.hr && O.Fm.bla(oa,ka);Z.uOb(O,ia,ka,ba);}la=ca?ca.rSa():null === da || void 0 === da?void 0:da.rSa();la && U && O.fWc(la);}catch(R){throw (y.Dd(R) && (R.kc(ha),R.Xf(S),R.De(N),R.uf(V)),R);}return aa;});}Z=this;g.default(Y,function(){var aa,ca,da;if(I.Ag)throw new e.default("receive aborted.");aa=[];U && (aa=U.qD.filter(function(){return !0;}));ca=Q.Woa();da=Z.Xja?Z.Xja.G8c(T):T;Z.DF.qNa(O,da,aa,ca,X,{result:function(ha){g.default(Y,function(){I.O1(function(){ha.abort();});ha.ws({result:function(S){g.default(Y,function(){if(!S)throw new e.default("MessageInputStream aborted.");W(ha);});},timeout:Y.timeout,error:Y.error});});},timeout:Y.timeout,error:Y.error});});};P.prototype.UOc=function(I,O,Q,T,U,X,Y,W,Z,aa){var da;function ca(ha,S,N){g.default(aa,function(){var V,ba;V=ha.jb;ba=ha.Qp;V.N0a(N);da.send(I,O,Q,U,V,W,Z,{result:function(fa){g.default(aa,function(){var ia,ka;ia=fa.request.Aq();ka=ia.qD;0 == Y || fa.jD || 1 == Y && (null == ka || 0 == ka.length) || ia.ou() && ia.bc && ia.yj?da.dLc(I,O,Q,T,ia,Z,{result:function(pa){g.default(aa,function(){var oa;oa=pa.AZ();oa && da.ybc(O,ia,oa);N && da.i1(O,S,pa);da.Bu(O,ba);pa.Wbc(W);return new E(pa,fa);});},timeout:function(){g.default(aa,function(){N && da.i1(O,S,null);da.Bu(O,ba);aa.timeout();});},error:function(pa){g.default(aa,function(){N && da.i1(O,S,null);da.Bu(O,ba);aa.error(pa);});}}):g.default(aa,function(){N && da.i1(O,S,null);da.Bu(O,ba);return new E(null,fa);});});},timeout:function(){g.default(aa,function(){N && da.i1(O,S,null);da.Bu(O,ba);aa.timeout();});},error:function(fa){g.default(aa,function(){N && da.i1(O,S,null);da.Bu(O,ba);aa.error(fa);});}});});}da=this;g.default(aa,function(){var ha;ha=new w.q3();da.i5b(I,O,Q,ha,X,Z,{result:function(S){ca(X,ha,S);},timeout:function(){g.default(aa,function(){da.Bu(O,X.Qp);aa.timeout();});},error:function(S){g.default(aa,function(){da.Bu(O,X.Qp);if(S instanceof e.default)return null;aa.error(S);});}});});};P.prototype.i5b=function(I,O,Q,T,U,X,Y){var ca;function W(da,ha,S,N,V){g.default(Y,function(){var ia,ka;if(I.Ag)throw new e.default("acquireRenewalLock aborted.");for(var ba=null,fa=0;fa < ca.KF.length;++fa){ia=ca.KF[fa];if(ia.qk === O){ba=ia.gg;break;}}if(!ba)return (ca.KF.push({qk:O,gg:T}),!0);ka=ba.Xca(X,{result:function(pa){g.default(Y,function(){var oa;if(void 0 === pa)throw new e.default("acquireRenewalLock aborted.");ba.add(pa);if(pa === G)W(da,ha,S,N,V);else {oa=da;da && da.equals(pa)?aa(oa,da,ha,S,N,V):(ca.Bu(O,V),ca.dR(I,O,X,{result:function(la){g.default(Y,function(){(da=(U.Qp=la) && la.bc)?aa(oa,da,ha,S,N,la):W(da,ha,S,N,la);});},timeout:Y.timeout,error:Y.error}));}});},timeout:Y.timeout,error:Y.error});I.O1(function(){ka && (ba.cancel(ka),ka=void 0);});});}function Z(da,ha){g.default(Y,function(){var S,V;if(I.Ag)throw new e.default("acquireRenewalLock aborted.");S=O.wpa();if(!da || da.ou(S) || !ha && Q.qA() || ha && ha.ou(S)){S=null;for(var N=0;N < ca.KF.length;++N){V=ca.KF[N];if(V.qk === O){S=V.gg;break;}}if(!S)return (ca.KF.push({qk:O,gg:T}),!0);}return !1;});}function aa(da,ha,S,N,V,ba){g.default(Y,function(){var fa;if(N && !S || S && !S.Ch(ha)){fa=O.Fm.Px(N);S=fa && fa.Ch(ha)?fa:null;}V.vMb(ha,S);fa=O.wpa();ha.aw(fa)?W(ha,S,N,V,ba):V.ou() && ha.equals(da)?W(ha,S,N,V,ba):Q.Oaa() && !S?W(ha,S,N,V,ba):Z(ha,S);});}ca=this;g.default(Y,function(){var da,ha,S,N,V,ba;da=U.jb;ha=U.Qp;S=da.dD();N=da.Px();V=Q.qA();ba=O.wpa();Q.Caa() && !da.rSb() || Q.Nqa() && !da.tSb() || da.ou() || !S && Q.lu() || S && S.aw(ba) || !(N || !V || da.qSb() && da.sSb()) || Q.Oaa() && (!S || V && !N)?W(S,N,V,da,ha):Z(S,N);});};P.prototype.i1=function(I,O,Q){var Y;for(var T,U,X=0;X < this.KF.length;++X){Y=this.KF[X];if(Y.qk === I){T=X;U=Y.gg;break;}}if(U !== O)throw new p.default("Attempt to release renewal lock that is not owned by this queue.");Q?(I=Q.Aq())?(Q=I.keyResponseData)?O.add(Q.bc):(I=I.bc)?O.add(I):O.add(G):O.add(G):O.add(G);this.KF.splice(T,1);};return P;})();b.DYb=J;t=(function(){function P(I,O){var Q;Q=null;"number" === typeof I && 0 < I && (Q=new x.sgb(I));this.Djb=new J(O);this.MW=Q;this.Hkb=!1;}P.prototype.submit=function(I,O,Q,T){var U,X;U=this;if(this.MW){X={result:function(Y){f.default(T,function(){U.MW.signal();return Y;});},timeout:function(){f.default(T,function(){U.MW.signal();T.timeout();});},error:function(Y){f.default(T,function(){U.MW.signal();T.error(Y);});}};Q=this.MW.wait(Q,{result:function(Y){Y?setTimeout(function(){I.call(X);},0):T.result(O);},timeout:T.timeout,error:T.error});return d(this,Q,I);}setTimeout(function(){I.call(T);},0);return d(this,null,I);};P.prototype.send=function(I,O){var U,X,Y,W,Z;for(var Q=[],T=2;T < arguments.length;T++)Q[T - 2]=arguments[T];if(this.Hkb)throw new h.default("MslControl is shutdown.");if(3 == Q.length)(X=Q[0],Y=U=null,W=Q[1],Z=Q[2]);else 4 == Q.length && (X=null,U=Q[0],Y=Q[1],W=Q[2],Z=Q[3]);new C(O);Q=new M(this.Djb,I,O,X,U,Y,W);return this.submit(Q,null,W,Z);};P.prototype.request=function(I,O,Q){var T,U,X,Y,W;if(this.Hkb)throw new h.default("MslControl is shutdown.");if(3 == Q.length)(U=Q[0],X=T=null,Y=Q[1],W=Q[2]);else 4 == Q.length && (U=null,T=Q[0],X=Q[1],Y=Q[2],W=Q[3]);I=new K(this.Djb,I,O,U,T,X,null,0,0,Y);return this.submit(I,null,Y,W);};return P;})();b.CYb=t;L={result:function(){},timeout:function(){},error:function(){}};K=(function(){function P(I,O,Q,T,U,X,Y,W,Z,aa){var ca;if(Y){ca=Y.jb;Y=Y.Qp;}else Y=ca=null;this.qJ=I;this.ik=O;this.Xjb=Q;this.Cka=T;this.qC=U;this.HF=X;this.eP=!1;this.YHa=ca;this.Skb=Y;this.qIa=W;this.Il=aa;this.z3b=Z;this.Ag=this.uka=!1;this.QHa=null;}P.prototype.abort=function(){this.Ag=!0;this.QHa && this.QHa.call(this);};P.prototype.O1=function(I){this.QHa=I;};P.prototype.Se=function(I,O,Q,T,U){var ca;function X(da){g.default(U,function(){var ha,S,N;ha=da.request;S=da.response;N=S.Aq();if(!da.jD)return new A(S,ha);W(da,function(V){g.default(U,function(){var ba;if(!V)return null;ba=new B(null,I);ca.qJ.O9b(ca,ca.ik,I,N,Q,{result:function(fa){g.default(U,function(){var ia;ia=new P(ca.qJ,ca.ik,ba,ca.Cka,null,null,fa,ca.qIa,T,ca.Il);ca.O1(function(){ia.abort();});ia.call(U);});},timeout:U.timeout,error:U.error});});});});}function Y(da){function ha(S,N){g.default(U,function(){return ca.uka || N && !N.input?new A(S.response,null):N;});}g.default(U,function(){var S;S=da.response;ca.qJ.T9b(ca,ca.ik,I,da,S.AZ(),Q,{result:function(N){g.default(U,function(){var V,ba;if(!N)return new A(S,null);V=N.BG;ba=new P(ca.qJ,ca.ik,V.WCc,ca.Cka,null,null,{jb:V.jb,Qp:N.Qp},ca.qIa,T,ca.Il);ca.O1(function(){ba.abort();});ba.call({result:function(fa){g.default(U,function(){ca.uka=ba.uka;ha(da,fa);});},timeout:U.timeout,error:U.error});});},timeout:U.timeout,error:U.error});});}function W(da,ha){Z(da,function(S){S?da.response.close(ca.Il,{result:function(N){ha.call(ca,N);},timeout:function(){ha.call(ca,!0);},error:function(N){n(N) && ha.call(ca,!1);ha.call(ca,!0);}}):ha.call(ca,!1);});}function Z(da,ha){da.request.close(ca.Il,{result:function(S){ha.call(this,S);},timeout:function(){ha.call(this,!0);},error:function(S){n(S) && ha.call(this,!1);ha.call(this,!0);}});}function aa(da){g.default(U,function(){W(da,function(ha){ha?Y(da):U.result(null);});});}ca=this;g.default(U,function(){if(T + 2 > r.default.NXb)return (ca.qJ.Bu(ca.ik,O.Qp),ca.uka=!0,null);ca.qJ.UOc(ca,ca.ik,I,ca.qC,ca.HF,O,ca.qIa,ca.eP,Q,{result:function(da){g.default(U,function(){var ha,S;if(!da)return null;ha=da.request;S=da.response;T+=2;if(!S)return new A(S,ha);S.Aq()?X(da):aa(da);});},timeout:U.timeout,error:U.error});});};P.prototype.call=function(I){var Q;function O(T,U,X){g.default(I,function(){Q.Se(Q.Xjb,{jb:T,Qp:U},X,Q.z3b,{result:function(Y){g.default(I,function(){Y && Y.FS && Y.FS.pSc();!Q.eP || Y && Y.input || Q.qC.close(X,L);return Y;});},timeout:function(){g.default(I,function(){Q.eP && (Q.HF.close(X,L),Q.qC.close(X,L));I.timeout();});},error:function(Y){g.default(I,function(){Q.eP && (Q.HF.close(X,L),Q.qC.close(X,L));if(n(Y))return null;I.error(Y);});}});});}Q=this;g.default(I,function(){var T,U,X;T=Q.Il;if(!Q.qC || !Q.HF)try{Q.Cka.setTimeout(Q.Il);U=Date.now();X=Q.Cka.YFc();Q.HF=X.FS;Q.qC=X.input;-1 != T && (T=Q.Il - (Date.now() - U));Q.eP=!0;}catch(Y){Q.YHa && Q.qJ.Bu(Q.ik,Q.Skb);Q.HF && Q.HF.close(Q.Il,L);Q.qC && Q.qC.close(Q.Il,L);if(n(Y))return null;throw Y;}Q.YHa?O(Q.YHa,Q.Skb,T):Q.qJ.S9b(Q,Q.ik,Q.Xjb,Q.Il,{result:function(Y){g.default(I,function(){O(Y.jb,Y.Qp,T);});},timeout:function(){g.default(I,function(){Q.eP && (Q.HF.close(Q.Il,L),Q.qC.close(Q.Il,L));I.timeout();});},error:function(Y){g.default(I,function(){Q.eP && (Q.HF.close(Q.Il,L),Q.qC.close(Q.Il,L));if(n(Y))return null;I.error(Y);});}});});};return P;})();M=(function(){function P(I,O,Q,T,U,X,Y){this.n4b=new K(I,O,Q,T,U,X,null,2,0,Y);}P.prototype.call=function(I){this.n4b.call({result:function(O){f.default(I,function(){return O?O.FS:null;});},timeout:I.timeout,error:I.error});};return P;})();b["default"]=t;},43056:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.xqb=b.VYb=void 0;d=a(22970);n=a(28865);c=(function(f){function g(e,h,k,l,m){return f.call(this,e,h,k,l,m) || this;}d.__extends(g,f);g.prototype.YX=function(e,h,k,l,m,p){n.tNa(e,h,k,l,m,p);};return g;})(a(93652).DDa);b.VYb=c;b.xqb=function(f,g,e,h,k){new c(f,g,e,h,k);};},61368:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.XDa=void 0;d=a(22970);t=a(31238);n=a(9635);d.__importDefault(a(43125));c=a(43056);a=(function(f){function g(){return null !== f && f.apply(this,arguments) || this;}d.__extends(g,f);g.prototype.qNa=function(e,h,k,l,m,p){n.yqb(e,h,k,l,m,p,void 0);};g.prototype.WP=function(e,h,k,l,m){c.xqb(e,h,k,l,m);};return g;})(t.Pza);b.XDa=a;},28865:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.tNa=void 0;d=a(22970);n=d.__importDefault(a(42979));c=d.__importDefault(a(6838));f=d.__importDefault(a(42458));g=d.__importDefault(a(58511));e=a(54449);(function(h){function k(l,m,p,r,q,u,v){return h.call(this,l,m,p,r,q,u,v) || this;}d.__extends(k,h);k.prototype.Gn=function(l,m,p){var r;r=this;n.default(p,function(){if(r.encodings[m])return r.encodings[m];l.Ij(r.aqa,m,{result:function(q){n.default(p,function(){r.$o.encrypt(q,l,m,{result:function(u){n.default(p,function(){r.$o.sign(u,l,m,{result:function(v){n.default(p,function(){var w;w=l.mf();r.bc?w.put(g.default.Z$a,r.bc):w.put(g.default.iCa,r.Tl);w.put(g.default.Y$a,u);w.put(g.default.kCa,v);l.Ij(w,m,{result:function(x){n.default(p,function(){return r.encodings[m]=x;});},error:p.error});});},error:function(v){n.default(p,function(){v instanceof f.default && (v=new c.default("Error signing the header data.",v));throw v;});}});});},error:function(u){n.default(p,function(){u instanceof f.default && (u=new c.default("Error encrypting the header data.",u));throw u;});}});});},error:p.error});});};return k;})(e.MV);b.tNa=function(h,k,l,m,p,r){new e.MV(h,k,l,m,p,null,r);};},9635:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.yqb=b.WYb=void 0;d=a(22970);a(66734);a(75563);t=a(34801);d.__importDefault(a(45826));n=(function(c){function f(g,e,h,k,l,m){return c.call(this,g,e,h,k,l,m) || this;}d.__extends(f,c);return f;})(t.Zha);b.WYb=n;b.yqb=function(c,f,g,e,h,k){new n(c,f,g,e,h,k);};},43125:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.Jfc=b.XYb=void 0;d=a(22970);n=a(28865);c=(function(f){function g(e,h,k){return f.call(this,e,h,k) || this;}d.__extends(g,f);g.prototype.YX=function(e,h,k,l,m,p){n.tNa(e,h,k,l,m,p);};return g;})(a(56058).S6a);b.XYb=c;b.Jfc=function(f,g,e){new c(f,g,e);};},42296:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u;Object.defineProperty(b,"__esModule",{value:!0});b.qHb=b.Dqb=b.r_b=void 0;d=a(22970);t=a(48235);n=d.__importStar(a(51411));c=d.__importDefault(a(10690));f=d.__importDefault(a(42979));g=d.__importDefault(a(42458));e=d.__importDefault(a(6838));h=d.__importDefault(a(88257));k=d.__importDefault(a(36114));l=d.__importDefault(a(20754));m=d.__importDefault(a(1966));p=a(44127);r=a(53140);q=(function(){return function(v){this.payload=v;};})();u=(function(v){function w(x,y,A,z,B,C,D,F){var H;H=v.call(this) || this;if(0 > y || y > n.default.Ye)throw new c.default("Sequence number " + y + " is outside the valid range.");if(0 > A || A > n.default.Ye)throw new c.default("Message ID " + A + " is outside the valid range.");if(F)x=F.payload;else {if(B){if((F=r.dF.Zo(B,C),!(F && F.length < C.length) || F.length * r.dF.wRa() < C.length))(B=null,F=C);}else (B=null,F=C);x=x.Dg.mf();x.put("sequencenumber",y);x.put("messageid",A);z && x.put("endofmsg",z);null != B && x.put("compressionalgo",B);x.put("data",F);}H.payload=x;H.ak=y;H.Ce=A;H.gPa=z;H.Fma=B;H.data=C;H.$o=D;H.encodings={};return H;}d.__extends(w,v);w.prototype.Gn=function(x,y,A){var z;z=this;f.default(A,function(){if(z.encodings[y])return z.encodings[y];x.Ij(z.payload,y,{result:function(B){f.default(A,function(){z.$o.encrypt(B,x,y,{result:function(C){f.default(A,function(){z.$o.sign(C,x,y,{result:function(D){f.default(A,function(){var F;F=x.mf();F.put("payload",C);F.put("signature",D);x.Ij(F,y,{result:function(H){f.default(A,function(){return z.encodings[y]=H;});},error:A.error});});},error:function(D){f.default(A,function(){if(D instanceof g.default)throw new e.default("Error signing the payload.",D);throw D;});}});});},error:function(C){f.default(A,function(){if(C instanceof g.default)throw new e.default("Error encrypting the payload.",C);throw C;});}});});},error:A.error});});};return w;})(t.Oo);b.r_b=u;b.Dqb=function(v,w,x,y,A,z,B,C){f.default(C,function(){return new u(v,w,x,y,A,z,B,null);});};b.qHb=function(v,w,x,y){function A(z,B){f.default(y,function(){var C,D,F,H,E,G,J,L;try{C=z.Bp(B);D=C.io("sequencenumber");if(0 > D || D > n.default.Ye)throw new m.default(k.default.nZb,"payload chunk payload " + C);F=C.io("messageid");if(0 > F || F > n.default.Ye)throw new m.default(k.default.lZb,"payload chunk payload " + C);H=C.has("endofmsg")?C.Z9("endofmsg"):!1;E=void 0;if(C.has("compressionalgo")){G=C.we("compressionalgo");if(-1 === Object.values(n.NI).indexOf(G))throw new l.default(k.default.Qhb,G);E=G;}else E=null;G=void 0;J=C.vd("data");if(0 == J.length){if(!H)throw new l.default(k.default.jZb);G=new Uint8Array(0);}else G=null == E?J:r.dF.zI(E,J);L=new q(C);return new u(v,D,F,H,E,G,x,L);}catch(K){if(K instanceof e.default)throw new h.default(k.default.Ze,"payload chunk payload " + p.zi(B),K);throw K;}});}f.default(y,function(){var z,B,C;z=v.Dg;try{B=w.vd("payload");C=w.vd("signature");}catch(D){if(D instanceof e.default)throw new h.default(k.default.Ze,"payload chunk " + w,D);throw D;}x.verify(B,C,z,{result:function(D){f.default(y,function(){if(!D)throw new g.default(k.default.oZb);x.decrypt(B,z,{result:function(F){A(z,F);},error:y.error});});},error:y.error});});};},58892:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u;Object.defineProperty(b,"__esModule",{value:!0});b.Yta=b.Bfc=b.ybb=void 0;d=a(22970);t=a(48235);n=d.__importDefault(a(10690));c=d.__importDefault(a(51411));f=d.__importDefault(a(42458));g=d.__importDefault(a(36114));e=d.__importDefault(a(42979));h=d.__importDefault(a(6838));k=d.__importDefault(a(88257));l=d.__importDefault(a(1966));m=a(44127);p=a(60426);r=a(10558);q=(function(){return function(v,w,x,y){this.jwa=v;this.cr=w;this.Jk=x;this.hr=y;};})();u=(function(v){function w(x,y,A,z,B,C,D,F,H,E){var G,J,L,K,M;G=v.call(this) || this;if(A.getTime() < y.getTime())throw new n.default("Cannot construct a master token that expires before its renewal window opens.");if(0 > z || z > c.default.Ye)throw new n.default("Sequence number " + z + " is outside the valid range.");if(0 > B || B > c.default.Ye)throw new n.default("Serial number " + B + " is outside the valid range.");y=Math.floor(y.getTime() / 1E3);A=Math.floor(A.getTime() / 1E3);if(E){J=E.jwa;L=E.cr;K=E.Jk;E=E.hr;}else {E=F.w2();L=c.default.RAa.PQ(F.algorithm);K=H.w2();M=c.default.J5.PQ(H.algorithm);if(!L || !M)throw new f.default(g.default.oHa,"encryption algorithm: " + F.algorithm + "; signature algorithm: " + H.algorithm);J=x.Dg.mf();C && J.put("issuerdata",C);J.put("identity",D);J.put("encryptionkey",E);J.put("encryptionalgorithm",L);J.put("hmackey",K);J.put("signaturekey",K);J.put("signaturealgorithm",M);K=L=null;E=!0;}G.qk=x;G.vT=y;G.GQ=A;G.ak=z;G.Nf=B;G.jwa=J;G.Sxc=C;G.ju=D;G.Kv=F;G.mI=H;G.cr=L;G.Jk=K;G.hr=E;G.encodings={};return G;}d.__extends(w,v);w.prototype.H$=function(){return new Date(1E3 * this.vT);};w.prototype.tk=function(){return new Date(1E3 * this.GQ);};w.prototype.Aaa=function(){return this.jwa?!0:!1;};w.prototype.ou=function(x){return x?this.H$().getTime() <= x.getTime():this.hr?this.H$().getTime() <= this.qk.getTime():!0;};w.prototype.aw=function(x){return x?this.tk().getTime() <= x.getTime():this.hr?this.tk().getTime() <= this.qk.getTime():!1;};w.prototype.fxc=function(x){var y;if(this.ak == x.ak)return this.tk() > x.tk();if(this.ak > x.ak){y=this.ak - c.default.Ye + 127;return x.ak >= y;}y=x.ak - c.default.Ye + 127;return this.ak < y;};w.prototype.Gn=function(x,y,A){var B;function z(C,D){e.default(A,function(){var F;F=x.mf();F.put("tokendata",C);F.put("signature",D);x.Ij(F,y,{result:function(H){e.default(A,function(){return B.encodings[y.name]=H;});},error:A.error});});}B=this;e.default(A,function(){var C;if(B.encodings[y.name])return B.encodings[y.name];if(null != B.cr || null != B.Jk)z(B.cr,B.Jk);else {try{C=B.qk.wka;}catch(D){if(D instanceof f.default)throw new h.default("Error creating the MSL crypto context.",D);throw D;}x.Ij(B.jwa,y,{result:function(D){C.encrypt(D,x,y,{result:function(F){e.default(A,function(){var H;H=x.mf();H.put("renewalwindow",B.vT);H.put("expiration",B.GQ);H.put("sequencenumber",B.ak);H.put("serialnumber",B.Nf);H.put("sessiondata",F);x.Ij(H,y,{result:function(E){C.sign(E,x,y,{result:function(G){z(E,G);},error:function(G){e.default(A,function(){if(G instanceof f.default)throw new h.default("Error signing the token data.",G);throw G;});}});},error:A.error});});},error:function(F){e.default(A,function(){if(F instanceof f.default)throw new h.default("Error encrypting the session data.",F);throw F;});}});},error:A.error});}});};w.prototype.toString=function(){var x,y;x=this.qk.Dg;y=x.mf();y.put("renewalwindow",this.vT);y.put("expiration",this.GQ);y.put("sequencenumber",this.ak);y.put("serialnumber",this.Nf);y.put("sessiondata","(redacted)");x=x.mf();x.put("tokendata",y);x.put("signature",this.Jk?this.Jk:"(null)");return x.toString();};w.prototype.equals=function(x){return this === x?!0:x instanceof w?this.Nf == x.Nf && this.ak == x.ak && this.tk().getTime() == x.tk().getTime():!1;};w.prototype.ji=function(){return this.Nf + ":" + this.ak + ":" + this.tk().getTime();};return w;})(t.Oo);b.ybb=u;b.Bfc=function(v,w,x,y,A,z,B,C,D,F){e.default(F,function(){return new u(v,w,x,y,A,z,B,C,D,null);});};b.Yta=function(v,w,x){function y(B,C,D,F,H){e.default(x,function(){var E,G,J,L,K,M,P,I;try{E=C.Bp(D);G=E.io("renewalwindow");J=E.io("expiration");if(J < G)throw new l.default(g.default.GXb,"mastertokendata " + E);L=E.io("sequencenumber");if(0 > L || L > c.default.Ye)throw new l.default(g.default.HXb,"mastertokendata " + E);K=E.io("serialnumber");if(0 > K || K > c.default.Ye)throw new l.default(g.default.IXb,"mastertokendata " + E);M=E.vd("sessiondata");if(0 == M.length)throw new k.default(g.default.JXb,"mastertokendata " + E);P=new Date(1E3 * G);I=new Date(1E3 * J);H?B.decrypt(M,C,{result:function(O){A(B,C,D,F,H,P,I,L,K,O);},error:x.error}):z(B,C,D,F,H,P,I,L,K,null,null,null,null,null);}catch(O){if(O instanceof h.default)throw new k.default(g.default.MXb,"mastertokendata " + m.zi(D),O);throw O;}});}function A(B,C,D,F,H,E,G,J,L,K){e.default(x,function(){var M,P,I,O,Q,T,U,X,Y;try{M=C.Bp(K);P=M.has("issuerdata")?M.Bq("issuerdata",C):null;I=M.we("identity");O=M.vd("encryptionkey");Q=M.Bca("encryptionalgorithm",c.default.RAa.oya);T=M.has("signaturekey")?M.vd("signaturekey"):M.vd("hmackey");U=M.Bca("signaturealgorithm",c.default.J5.KBa);}catch(W){if(W instanceof h.default)throw new k.default(g.default.KXb,"sessiondata " + m.zi(K),W);throw W;}X=c.default.RAa.H2a(Q);Y=c.default.J5.H2a(U);if(!X || !Y)throw new f.default(g.default.oHa,"encryption algorithm: " + Q + "; signature algorithm: " + U);p.qTa(O,X,r.qF.lha,{result:function(W){p.qTa(T,Y,r.qF.eW,{result:function(Z){z(B,C,D,F,H,E,G,J,L,M,P,I,W,Z);},error:function(Z){x.error(new f.default(g.default.fbb,Z));}});},error:function(W){x.error(new f.default(g.default.fbb,W));}});});}function z(B,C,D,F,H,E,G,J,L,K,M,P,I,O){e.default(x,function(){var Q;Q=new q(K,D,F,H);return new u(v,E,G,J,L,M,P,I,O,Q);});}e.default(x,function(){var B,C,D,F;B=v.wka;C=v.Dg;try{D=w.vd("tokendata");if(0 == D.length)throw new k.default(g.default.LXb,"mastertoken " + w);F=w.vd("signature");}catch(H){if(H instanceof h.default)throw new k.default(g.default.Ze,"mastertoken " + w,H);throw H;}B.verify(D,F,C,{result:function(H){y(B,C,D,F,H);},error:x.error});});};},61693:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;function d(x,y,A){var z,B;try{z=y.vd("tokendata");if(0 == z.length)throw new c.default(f.default.Tfb,"servicetoken " + y);B=x.Bp(z).we("name");return A[B]?A[B]:A[""];}catch(C){if(C instanceof g.default)throw new c.default(f.default.Ze,"servicetoken " + y,C);throw C;}}Object.defineProperty(b,"__esModule",{value:!0});b.aua=b.agc=b.vgb=void 0;n=a(22970);c=n.__importDefault(a(88257));f=n.__importDefault(a(36114));g=n.__importDefault(a(6838));t=a(48235);e=n.__importDefault(a(10690));h=a(58892);k=a(85065);l=n.__importDefault(a(42979));m=n.__importDefault(a(1966));p=n.__importDefault(a(42458));r=n.__importStar(a(51411));q=a(44127);u=a(53140);v=(function(){return function(x,y,A){this.cr=x;this.Jk=y;this.hr=A;};})();w=(function(x){function y(A,z,B,C,D,F,H,E,G){var J,L,K,M;J=x.call(this) || this;if(C && D && !D.Ch(C))throw new e.default("Cannot construct a service token bound to a master token and user ID token where the user ID token is not bound to the same master token.");C=C?C.Nf:-1;D=D?D.Nf:-1;if(G){L=G.cr;K=G.Jk;G=G.hr;}else {if(!E)throw new TypeError("Crypto context may not be null.");if(H){M=u.dF.Zo(H,B);M && M.length < B.length || (H=null,M=B);}else (H=null,M=B);K=L=null;G=!0;}J.qk=A;J.$o=E;J.name=z;J.Vj=C;J.Wy=D;J.dA=F;J.Fma=H;J.sMb=B;J.OMa=M;J.cr=L;J.Jk=K;J.hr=G;J.encodings={};return J;}n.__extends(y,x);y.prototype.Caa=function(){return this.dA;};y.prototype.Aaa=function(){return this.sMb?!0:!1;};y.prototype.getData=function(){return this.sMb;};y.prototype.$x=function(){return -1 != this.Vj;};y.prototype.Ch=function(A){return A?A instanceof h.ybb?A.Nf == this.Vj:A instanceof k.dib?A.Nf == this.Wy:!1:!1;};y.prototype.cw=function(){return -1 != this.Wy;};y.prototype.Lxc=function(){return -1 == this.Vj && -1 == this.Wy;};y.prototype.Gn=function(A,z,B){var F;function C(H){l.default(B,function(){var E;E=A.mf();E.put("name",F.name);-1 != F.Vj && E.put("mtserialnumber",F.Vj);-1 != F.Wy && E.put("uitserialnumber",F.Wy);E.put("encrypted",F.dA);F.Fma && E.put("compressionalgo",F.Fma);E.put("servicedata",H);A.Ij(E,z,{result:function(G){l.default(B,function(){F.$o.sign(G,A,z,{result:function(J){D(G,J);},error:function(J){l.default(B,function(){if(J instanceof p.default)throw new g.default("Error signing the token data.",J);throw J;});}});});},error:B.error});});}function D(H,E){l.default(B,function(){var G;G=A.mf();G.put("tokendata",H);G.put("signature",E);A.Ij(G,z,{result:function(J){l.default(B,function(){return F.encodings[z.name]=J;});},error:B.error});});}F=this;l.default(B,function(){if(F.encodings[z.name])return F.encodings[z.name];null != F.cr || null != F.Jk?D(F.cr,F.Jk):F.dA && 0 < F.OMa.length?F.$o.encrypt(F.OMa,A,z,{result:C,error:function(H){l.default(B,function(){if(H instanceof p.default)throw new g.default("Error encrypting the service data.",H);throw H;});}}):C(F.OMa);});};y.prototype.toString=function(){var A,z;A=this.qk.Dg;z=A.mf();z.put("name",this.name);z.put("mtserialnumber",this.Vj);z.put("uitserialnumber",this.Wy);z.put("servicedata","(redacted)");A=A.mf();A.put("tokendata",z);A.put("signature",this.Jk?this.Jk:"(null)");return A.toString();};y.prototype.equals=function(A){return this === A?!0:A instanceof y?this.name == A.name && this.Vj == A.Vj && this.Wy == A.Wy:!1;};y.prototype.ji=function(){return this.name + ":" + this.Vj + ":" + this.Wy;};return y;})(t.Oo);b.vgb=w;b.agc=function(x,y,A,z,B,C,D,F,H){l.default(H,function(){return new w(x,y,A,z,B,C,D,F,null);});};b.aua=function(x,y,A,z,B,C){function D(H,E,G,J,L){l.default(C,function(){var K,M,P,I,O,Q,T,U,X;try{K=H.Bp(E);M=K.we("name");if(K.has("mtserialnumber")){P=K.io("mtserialnumber");if(0 > P || P > r.default.Ye)throw new m.default(f.default.o0b,"servicetokendata " + K).kc(A).De(z);}else P=-1;if(K.has("uitserialnumber")){I=K.io("uitserialnumber");if(0 > I || I > r.default.Ye)throw new m.default(f.default.q0b,"servicetokendata " + K).kc(A).De(z);}else I=-1;O=K.Z9("encrypted");if(K.has("compressionalgo")){Q=K.we("compressionalgo");if(!((Q in r.NI)))throw new m.default(f.default.Qhb,Q);T=Q;}else T=null;U=K.vd("servicedata");}catch(Y){if(Y instanceof g.default)throw new c.default(f.default.Ze,"servicetokendata " + q.zi(E),Y).kc(A).De(z);throw Y;}if(L){if(O && 0 < U.length)J.decrypt(U,H,{result:function(Y){X=T?u.dF.zI(T,Y):Y;F(H,E,G,L,M,P,I,O,T,J,Y,X);},error:function(Y){l.default(C,function(){Y instanceof p.default && (Y.kc(A),Y.De(z));throw Y;});}});else {K=U;X=T?u.dF.zI(T,K):K;F(H,E,G,L,M,P,I,O,T,J,K,X);}}else (K=U,X=0 == U.length?new Uint8Array(0):null,F(H,E,G,L,M,P,I,O,T,J,K,X));});}function F(H,E,G,J,L,K,M,P,I,O,Q,T){l.default(C,function(){var U;if(-1 != K && (!A || K != A.Nf))throw new m.default(f.default.jGa,"st mtserialnumber " + K + "; mt " + A).kc(A).De(z);if(-1 != M && (!z || M != z.Nf))throw new m.default(f.default.kGa,"st uitserialnumber " + M + "; uit " + z).kc(A).De(z);U=new v(E,G,J);return new w(x,L,T,-1 != K?A:null,-1 != M?z:null,P,I,O,U);});}l.default(C,function(){var H,E,G,J;H=x.Dg;E=null;B && (E=d(H,y,B));try{G=y.vd("tokendata");if(0 == G.length)throw new c.default(f.default.Tfb,"servicetoken " + y).kc(A).De(z);J=y.vd("signature");}catch(L){if(L instanceof g.default)throw new c.default(f.default.Ze,"servicetoken " + y,L).kc(A).De(z);throw L;}E?E.verify(G,J,H,{result:function(L){D(H,G,J,E,L);},error:function(L){l.default(C,function(){L instanceof p.default && L.kc(A);throw L;});}}):D(H,G,J,E,!1);});};},85065:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r;Object.defineProperty(b,"__esModule",{value:!0});b.pYa=b.lgc=b.dib=void 0;d=a(22970);t=a(48235);n=d.__importDefault(a(10690));c=d.__importDefault(a(51411));f=d.__importDefault(a(42979));g=d.__importDefault(a(42458));e=d.__importDefault(a(6838));h=d.__importDefault(a(1966));k=d.__importDefault(a(88257));l=d.__importDefault(a(36114));m=a(44127);p=(function(){return function(q,u,v,w){this.H3a=q;this.cr=u;this.Jk=v;this.hr=w;};})();r=(function(q){function u(v,w,x,y,A,z,B,C){var D,F,H,E;D=q.call(this) || this;if(x.getTime() < w.getTime())throw new n.default("Cannot construct a user ID token that expires before its renewal window opens.");if(!y)throw new n.default("Cannot construct a user ID token without a master token.");if(0 > A || A > c.default.Ye)throw new n.default("Serial number " + A + " is outside the valid range.");w=Math.floor(w.getTime() / 1E3);x=Math.floor(x.getTime() / 1E3);y=y.Nf;if(C){F=C.H3a;H=C.cr;E=C.Jk;C=C.hr;}else (F=v.Dg.mf(),z && F.put("issuerdata",z),F.put("identity",B.cD()),E=H=null,C=!0);D.qk=v;D.vT=w;D.GQ=x;D.Vj=y;D.Nf=A;D.H3a=F;D.Sxc=z;D.HU=B;D.cr=H;D.Jk=E;D.hr=C;D.encodings={};return D;}d.__extends(u,q);u.prototype.Aaa=function(){return this.HU?!0:!1;};u.prototype.H$=function(){return new Date(1E3 * this.vT);};u.prototype.ou=function(v){return v?this.H$().getTime() <= v.getTime():this.hr?this.H$().getTime() <= this.qk.getTime():!0;};u.prototype.tk=function(){return new Date(1E3 * this.GQ);};u.prototype.aw=function(v){return v?this.tk().getTime() <= v.getTime():this.hr?this.tk().getTime() <= this.qk.getTime():!1;};u.prototype.Ch=function(v){return v && v.Nf == this.Vj;};u.prototype.Gn=function(v,w,x){var A;function y(z,B){f.default(x,function(){var C;C=v.mf();C.put("tokendata",z);C.put("signature",B);v.Ij(C,w,{result:function(D){f.default(x,function(){return A.encodings[w.name]=D;});},error:x.error});});}A=this;f.default(x,function(){var z;if(A.encodings[w.name])return A.encodings[w.name];if(null != A.cr || null != A.Jk)y(A.cr,A.Jk);else {try{z=A.qk.wka;}catch(B){if(B instanceof g.default)throw new e.default("Error creating the MSL crypto context.",B);throw B;}v.Ij(A.H3a,w,{result:function(B){z.encrypt(B,v,w,{result:function(C){f.default(x,function(){var D;D=v.mf();D.put("renewalwindow",A.vT);D.put("expiration",A.GQ);D.put("mtserialnumber",A.Vj);D.put("serialnumber",A.Nf);D.put("userdata",C);v.Ij(D,w,{result:function(F){z.sign(F,v,w,{result:function(H){y(F,H);},error:function(H){f.default(x,function(){if(H instanceof g.default)throw new e.default("Error signing the token data.",H);throw H;});}});},error:x.error});});},error:function(C){f.default(x,function(){if(C instanceof g.default)throw new e.default("Error encrypting the user data.",C);throw C;});}});},error:x.error});}});};u.prototype.toString=function(){var v,w;v=this.qk.Dg;w=v.mf();w.put("renewalwindow",this.vT);w.put("expiration",this.GQ);w.put("mtserialnumber",this.Vj);w.put("serialnumber",this.Nf);w.put("userdata","(redacted)");v=v.mf();v.put("tokendata",w);v.put("signature",this.Jk?this.Jk:"(null)");return v.toString();};u.prototype.equals=function(v){return this === v?!0:v instanceof u?this.Nf == v.Nf && this.Vj == v.Vj:!1;};u.prototype.ji=function(){return this.Nf + ":" + this.Vj;};return u;})(t.Oo);b.dib=r;b.lgc=function(q,u,v,w,x,y,A,z){f.default(z,function(){return new r(q,u,v,w,x,y,A,null);});};b.pYa=function(q,u,v,w){function x(z,B,C,D,F){f.default(w,function(){var H,E,G,J,L,K;try{H=z.Bp(C);E=H.io("renewalwindow");G=H.io("expiration");if(G < E)throw new h.default(l.default.c1b,"usertokendata " + H).kc(v);J=H.io("mtserialnumber");if(0 > J || J > c.default.Ye)throw new h.default(l.default.g1b,"usertokendata " + H).kc(v);L=H.io("serialnumber");if(0 > L || L > c.default.Ye)throw new h.default(l.default.h1b,"usertokendata " + H).kc(v);K=H.vd("userdata");if(0 == K.length)throw new h.default(l.default.l1b).kc(v);}catch(M){if(M instanceof e.default)throw new k.default(l.default.j1b,"usertokendata " + m.zi(C),M).kc(v);throw M;}F?B.decrypt(K,z,{result:function(M){y(z,C,D,F,E,G,J,L,M);},error:function(M){f.default(w,function(){M instanceof g.default && M.kc(v);throw M;});}}):A(C,D,F,E,G,J,L,null,null,null);});}function y(z,B,C,D,F,H,E,G,J){f.default(w,function(){var L,K,M;try{L=z.Bp(J);K=L.has("issuerdata")?L.Bq("issuerdata",z):null;M=L.we("identity");if(!M || 0 == M.length)throw new h.default(l.default.d1b,"userdata " + L).kc(v);}catch(P){if(P instanceof e.default)throw new k.default(l.default.m1b,"userdata " + m.zi(J),P).kc(v);throw P;}(null).s6c(q,M,{result:function(P){f.default(w,function(){if(!P)throw new n.default("TokenFactory.createUser() returned null in violation of the interface contract.");A(B,C,D,F,H,E,G,L,K,P);});},error:w.error});});}function A(z,B,C,D,F,H,E,G,J,L){f.default(w,function(){var K,M,P;K=new Date(1E3 * D);M=new Date(1E3 * F);if(!v || H != v.Nf)throw new h.default(l.default.sHa,"uit mtserialnumber " + H + "; mt " + v).kc(v);P=new p(G,z,B,C);return new r(q,K,M,v,E,J,L,P);});}f.default(w,function(){var z,B,C,D;z=q.wka;B=q.Dg;try{C=u.vd("tokendata");if(0 == C.length)throw new k.default(l.default.i1b,"useridtoken " + u).kc(v);D=u.vd("signature");}catch(F){if(F instanceof e.default)throw new k.default(l.default.Ze,"useridtoken " + u,F).kc(v);throw F;}z.verify(C,D,B,{result:function(F){x(B,z,C,D,F);},error:w.error});});};},23710:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.fHb=b.MAa=void 0;d=a(22970);t=a(5248);n=a(91331);c=d.__importDefault(a(42979));f=d.__importDefault(a(6838));g=d.__importDefault(a(88257));e=d.__importDefault(a(36114));h=(function(k){function l(m,p){var r;r=k.call(this,n.wja.BAa) || this;r.email=m;r.password=p;return r;}d.__extends(l,k);l.prototype.UQ=function(m,p){var r;r=this;c.default(p,function(){var q;q=m.mf();q.put("email",r.email);q.put("password",r.password);return q;});};l.prototype.equals=function(m){return this === m?!0:m instanceof l?k.prototype.equals.call(this,m) && this.email == m.email && this.password == m.password:!1;};return l;})(t.wHa);b.MAa=h;b.fHb=function(k){var l,m;try{l=k.we("email");m=k.we("password");return new h(l,m);}catch(p){if(p instanceof f.default)throw new g.default(e.default.Ze,"email/password authdata " + k,p);throw p;}};},25606:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.y8a=void 0;d=a(22970);n=a(91331);c=d.__importDefault(a(42979));f=a(23710);g=d.__importDefault(a(10690));e=d.__importDefault(a(88361));h=d.__importDefault(a(36114));t=(function(k){function l(m,p){var r;r=k.call(this,n.wja.BAa) || this;r.Fm=m;r.w4c=p;return r;}d.__extends(l,k);l.prototype.y8=function(m,p,r){c.default(r,function(){return f.fHb(p);});};l.prototype.kLa=function(m,p,r,q,u){var v;v=this;c.default(u,function(){var w,x;if(!(r instanceof f.MAa))throw new g.default("Incorrect authentication data type " + r + ".");w=r.email;x=r.password;if(!w || 0 == w.trim().length || !x || 0 == x.trim().length)throw new e.default(h.default.LVb).uf(r);w=v.Fm.e$c(w,x);if(null == w)throw new e.default(h.default.c8a).uf(r);if(q && (x=q.HU,!w.equals(x)))throw new e.default(h.default.k1b,"uad user " + w + "; uit user " + x).uf(r);return w;});};return l;})(a(49137).xHa);b.y8a=t;},49123:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.pHb=b.WDa=void 0;d=a(22970);t=a(5248);n=a(32256);c=d.__importDefault(a(42979));f=d.__importDefault(a(6838));g=d.__importDefault(a(88257));e=d.__importDefault(a(36114));h=(function(k){function l(m,p){var r;r=k.call(this,n.kia.SDa) || this;r.rS=m;r.cea=p;return r;}d.__extends(l,k);l.prototype.UQ=function(m,p){var r;r=this;c.default(p,function(){var q;q=m.mf();r.rS && q.put("netflixid",r.rS);r.cea && q.put("securenetflixid",r.cea);return q;});};l.prototype.equals=function(m){return this === m?!0:m instanceof l?k.prototype.equals.call(this,m) && this.rS == m.rS && this.cea == m.cea:!1;};return l;})(t.wHa);b.WDa=h;b.pHb=function(k){var l,m;try{l=k.has("netflixid")?k.we("netflixid"):void 0;m=k.has("securenetflixid")?k.we("securenetflixid"):void 0;return new h(l,m);}catch(p){if(p instanceof f.default)throw new g.default(e.default.Ze,"Netflix ID authentication data " + k,p);throw p;}};},79925:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperty(b,"__esModule",{value:!0});b.vcb=void 0;d=a(22970);n=a(32256);c=d.__importDefault(a(42979));f=a(49123);g=d.__importDefault(a(10690));e=d.__importDefault(a(88361));h=d.__importDefault(a(99075));k=d.__importDefault(a(36114));t=(function(l){function m(){return l.call(this,n.kia.SDa) || this;}d.__extends(m,l);m.prototype.y8=function(p,r,q){c.default(q,function(){return f.pHb(r);});};m.prototype.kLa=function(p,r,q){if(!(q instanceof f.WDa))throw new g.default("Incorrect authentication data type " + q + ".");p=q.cea;if(!q.rS || !p)throw new e.default(h.default.IYb).uf(q);throw new e.default(k.default.a1b,this.scheme).uf(q);};return m;})(a(49137).xHa);b.vcb=t;},32256:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.kia=void 0;d=a(22970);t=(function(n){function c(f){return n.call(this,f) || this;}d.__extends(c,n);return c;})(d.__importDefault(a(91331)).default);b["default"]=t;b.kia={SDa:new t("NETFLIXID"),e3c:new t("SSO"),x3c:new t("SWITCH_PROFILE"),d1c:new t("MDX"),dYb:new t("MIGRATION")};},5248:function(t,b,a){var d,n,c,f,g,e;Object.defineProperty(b,"__esModule",{value:!0});b.wHb=b.wHa=void 0;d=a(22970);t=a(48235);n=d.__importDefault(a(42979));c=d.__importDefault(a(88361));f=d.__importDefault(a(36114));g=d.__importDefault(a(6838));e=d.__importDefault(a(88257));a=(function(h){function k(l){var m;m=h.call(this) || this;m.scheme=l;m.encodings={};return m;}d.__extends(k,h);k.prototype.equals=function(l){return this === l?!0:l instanceof k?this.scheme == l.scheme:!1;};k.prototype.Gn=function(l,m,p){var r;r=this;n.default(p,function(){if(r.encodings[m.name])return r.encodings[m.name];r.UQ(l,{result:function(q){n.default(p,function(){var u;u=l.mf();u.put("scheme",r.scheme.name);u.put("authdata",q);l.Ij(u,m,{result:function(v){n.default(p,function(){return r.encodings[m.name]=v;});},error:p.error});});},error:p.error});});};return k;})(t.Oo);b.wHa=a;b.wHb=function(h,k,l,m){n.default(m,function(){var p,r,q;try{p=l.we("scheme");r=h.itc(p);if(!r)throw new c.default(f.default.Z0b,p);q=h.iyb(r);if(!q)throw new c.default(f.default.Whb,r.name);q.y8(k,l.Bq("authdata",h.Dg),m);}catch(u){if(u instanceof g.default)throw new e.default(f.default.Ze,"userauthdata " + l,u);throw u;}});};},49137:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.xHa=void 0;b.xHa=(function(){return function(a){this.scheme=a;};})();},91331:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.wja=void 0;t=(function(){function a(d){this.name=d;a.wB[d]=this;}a.prototype.toString=function(){return this.name;};a.K$=function(d){return a.wB[d]?a.wB[d]:null;};a.wB={};return a;})();b["default"]=t;b.wja={BAa:new t("EMAIL_PASSWORD"),a4c:new t("USER_ID_TOKEN")};},14945:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b["default"]=(function(){function a(){}a.equal=function(d,n){if(d === n)return !0;if(!d || !n || d.length != n.length)return !1;for(var c=0;c < d.length;++c)if(d[c] != n[c])return !1;return !0;};a.Saa=function(d){return d && d.constructor == Uint8Array;};a.Ypa=function(d){var f;if(!a.Saa(d) && !Array.isArray(d))throw new TypeError("Cannot compute the hash code of " + d);for(var n=1,c=0;c < d.length;++c){f=d[c];if("number" !== typeof f)throw new TypeError("Cannot compute the hash code over non-numeric elements: " + f);n=31 * n + f & 4294967295;}return n;};a.contains=function(d,n){var h;if(d === n)return !0;if(!d || !n)return !1;n instanceof Array || (n=[n]);for(var c=0;c < n.length;++c){for(var f=n[c],g=!1,e=0;e < d.length;++e){h=d[e];if(f.equals && "function" === typeof f.equals && f.equals(h) || f == h){g=!0;break;}}if(!g)return !1;}return !0;};a.t8=function(d,n){return a.contains(d,n) && (d.length == n.length || a.contains(n,d));};a.concat=function(d){var n,c,f,g,e;f=d.length;g=0;for(c=n=0;c < f;c++)n+=d[c].length;n=new Uint8Array(n);for(c=0;c < f;c++){e=d[c];n.set(e,g);g+=e.length;}return n;};return a;})();},42979:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b["default"]=function(a,d,n){var c,f;void 0 === n && (n=void 0);n && (c=n);if("object" !== typeof a || "function" !== typeof a.result || "function" !== typeof a.error)throw new TypeError("callback must be an object with function properties 'result' and 'error'.");try{f=d.call(c,a);void 0 !== f && a.result(f);}catch(g){try{a.error(g);}catch(e){}}};},44127:function(t,b){var a,d,n;Object.defineProperty(b,"__esModule",{value:!0});b.nk=b.zi=b.wMb=b.V5a=b.Oxc=void 0;a=/\s*/g;d=/^([A-Za-z0-9+/_-]{4})*([A-Za-z0-9+/_-]{4}|[A-Za-z0-9+/_-]{3}=|[A-Za-z0-9+/_-]{2}==)?$/;b.Oxc=function(c,f){c=c.replace(a,"");if(f && (f=c.length % 4)){f=4 - f;for(var g=0;g < f;++g)c+="=";}return 0 == c.length % 4 && d.test(c)?!0:!1;};b.V5a=(function(){return function(){};})();b.wMb=function(c){if(!c)throw new TypeError("Base64 implementation cannot be null.");n=c;};b.zi=function(c,f){return n.encode(c,f);};b.nk=function(c,f){return n.decode(c,f);};},41294:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p){m=k[m & 63];if(p){if("+" == m)return "-";if("/" == m)return "_";}return m;}Object.defineProperty(b,"__esModule",{value:!0});b.W5a=void 0;n=a(22970);t=a(44127);c=String.fromCharCode(9);f=String.fromCharCode(10);g=String.fromCharCode(13);e=String.fromCharCode(32);h=String.fromCharCode(127);k=(function(){var m,p;p=[];for(m=0;26 > m;m++)p[m]=String.fromCharCode(65 + m);for(m=26;52 > m;m++)p[m]=String.fromCharCode(97 + (m - 26));for(m=52;62 > m;m++)p[m]=String.fromCharCode(48 + (m - 52));p[62]="+";p[63]="/";return p;})();l=(function(){var m,p;p=[];for(m=0;128 > m;m++)p[m]=-1;for(m=65;90 >= m;m++)p[m]=m - 65;for(m=97;122 >= m;m++)p[m]=m - 97 + 26;for(m=48;57 >= m;m++)p[m]=m - 48 + 52;p[43]=62;p[47]=63;p[61]=h;return p;})();t=(function(m){function p(){return null !== m && m.apply(this,arguments) || this;}n.__extends(p,m);p.prototype.encode=function(r,q){var u,v,w;u="";v=r.length;for(w=0;3 <= v;(v-=3,w+=3))u+=d(r[w] >> 2) + d((r[w] & 3) << 4 | r[w + 1] >> 4 & 15) + d((r[w + 1] & 15) << 2 | r[w + 2] >> 6 & 3) + d(r[w + 2] & 63);1 == v?(u+=d(r[w] >> 2) + d((r[w] & 3) << 4),q || (u+="==")):2 == v && (u+=d(r[w] >> 2) + d((r[w] & 3) << 4 | r[w + 1] >> 4 & 15) + d((r[w + 1] & 15) << 2),q || (u+="="));return u;};p.prototype.decode=function(r,q){var C,D;for(var u=!1,v=r.length,w=Array(Math.floor(3 * v / 4)),x=0,y=Array(4),A=0,z=!1,B=0;B < v;++B){C=r[B];D=C.charCodeAt(0);isNaN(D)?D=void 0:(D=l[D],q && ("-" == D?D="+":"_" == D && (D="/")));if(void 0 === D || -1 == D)C != e && C != c && C != f && C != g && (u=!0);else if((z && (u=!0),y[A++]=D,4 == A)){if(y[0] == h || y[1] == h)u=!0;if(y[2] == h || y[3] == h)z=!0;w[x++]=y[0] << 2 | y[1] >> 4;y[2] != h && (w[x++]=y[1] << 4 | y[2] >> 2);y[3] != h && (w[x++]=y[2] << 6 | y[3]);A=0;}}q && 2 <= A && (w[x++]=y[0] << 2 | y[1] >> 4,3 == A && y[2] != h && (w[x++]=y[1] << 4 | y[2] >> 2),A=0);0 != A && (u=!0);if(u)throw Error("Invalid Base64 encoded string: " + r);r=new Uint8Array(x);for(v=u=0;u < w.length;++u)q && w[u] == h || (r[u]=w[v++]);return r;};return p;})(t.V5a);b.W5a=t;},89752:function(t,b,a){var c,f;function d(g){return g == c.default.Ye?1:g + 1;}function n(g){if(0 === Object.keys(g.Gm).length)return 0;for(var e=d(g.Ph);!g.Gm[e];)e=d(e);return e;}Object.defineProperty(b,"__esModule",{value:!0});b.q3=void 0;t=a(22970);c=t.__importDefault(a(51411));f=t.__importDefault(a(79804));a=(function(){function g(){this.Uo=[];this.Gm={};this.p6=this.Ph=0;}g.prototype.cancel=function(e){var h;if(this.Gm[e]){h=this.Gm[e];delete this.Gm[e];e == this.Ph && (this.Ph=n(this));h.call(this,void 0);}};g.prototype.mma=function(){for(;0 !== this.Ph;)this.cancel(this.Ph);};g.prototype.Xca=function(e,h){var k,l;k=this;l=d(this.p6);this.p6=l;f.default(h,function(){var m,p;if(0 < k.Uo.length){m=k.Uo.shift();setTimeout(function(){h.result(m);},0);}else {-1 != e && (p=setTimeout(function(){delete k.Gm[l];l == k.Ph && (k.Ph=n(k));h.timeout();},e));k.Gm[l]=function(r){clearTimeout(p);setTimeout(function(){h.result(r);},0);};k.Ph || (k.Ph=l);}});return l;};g.prototype.add=function(e){var h;if(this.Ph){h=this.Gm[this.Ph];delete this.Gm[this.Ph];this.Ph=n(this);h.call(this,e);}else this.Uo.push(e);};return g;})();b.q3=a;},79804:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});d=a(22970).__importDefault(a(42979));b["default"]=function(n,c,f){void 0 === f && (f=void 0);if("object" !== typeof n || "function" !== typeof n.timeout)throw new TypeError("callback must be an object with function properties 'result', 'timeout', and 'error'.");d.default(n,c,f);};},75513:function(t,b,a){var n,c,f,g;function d(e,h){h || (h=e.length);return e.reduce(function(k,l,m){return m < h?k + String.fromCharCode(l):k;},"");}Object.defineProperty(b,"__esModule",{value:!0});b.bbb=void 0;n=a(22970).__importDefault(a(48795));c={};for(t=0;256 > t;++t)(a=d([t]),c[a]=t);f=Object.keys(c).length;g=[];for(t=0;256 > t;++t)g[t]=[t];t=(function(){function e(){}e.prototype.Zo=function(h){var l,A;function k(z,B){for(var C;0 < B;){if(u >= q.length)return !1;B > v?(C=z,C>>>=B - v,q[u]|=C & 255,B-=v,v=8,++u):B <= v && (C=z,C<<=v - B,C&=255,C>>>=8 - v,q[u]|=C & 255,v-=B,B=0,0 == v && (v=8,++u));}return !0;}l={};for(m in c)l[m]=c[m];for(var m=f,p=[],r=8,q=new Uint8Array(h.length),u=0,v=8,w,x,y=0;y < h.length;++y){A=h[y];p.push(A);w=d(p);x=l[w];if(void 0 === x){p=d(p,p.length - 1);if(!k(l[p],r))return null;0 != m >> r && ++r;l[w]=m++;p=[A];}}return 0 < p.length && (w=d(p),x=l[w],!k(x,r))?null:q.subarray(0,8 > v?u + 1:u);};e.prototype.zI=function(h,k){var y,A;for(var l=g.slice(),m=0,p=0,r=8,q=new Uint8Array(Math.ceil(1.5 * h.length)),u=0,v,w=[];m < h.length && !(8 * (h.length - m) - p < r);){for(var x=v=0;x < r;){y=Math.min(r - x,8 - p);A=h[m];A<<=p;A&=255;A>>>=8 - y;x+=y;p+=y;8 == p && (p=0,++m);v|=(A & 255) << r - x;}x=l[v];0 == w.length?++r:(x?w.push(x[0]):w.push(w[0]),l[l.length]=w,w=[],l.length == 1 << r && ++r,x || (x=l[v]));v=u + x.length;if(v > k * h.length)throw new n.default("Deflate ratio " + k + " exceeded. Aborting uncompression.");v >= q.length && (y=new Uint8Array(Math.ceil(1.5 * v)),y.set(q),q=y);q.set(x,u);u=v;w=w.concat(x);}return q.subarray(0,u);};return e;})();b.bbb=t;},53140:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.dF=void 0;t=a(22970);d=t.__importDefault(a(1966));n=t.__importDefault(a(36114));c=t.__importDefault(a(48795));b.dF=(function(){function f(){}f.register=function(g,e){e?f.jqa[g]=e:delete f.jqa[g];};f.SPc=function(g){if(1 > g)throw new RangeError("The maximum deflate ratio must be at least one.");f.cWa=g;};f.wRa=function(){return f.cWa;};f.Zo=function(g,e){var h,k;h=f.jqa[g];if(!h)throw new d.default(n.default.Shb,g);try{k=h.Zo(e);return k && k.length < e.length?k:null;}catch(l){if(l instanceof c.default)throw new d.default(n.default.pUb,"algo " + g,l);throw l;}};f.zI=function(g,e){var h;h=f.jqa[g];if(!h)throw new d.default(n.default.Shb,g);try{return h.zI(e,f.cWa);}catch(k){if(k instanceof c.default)throw new d.default(n.default.S0b,"algo " + g,k);throw k;}};f.jqa={};f.cWa=200;return f;})();},38470:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.NDa=b.$Vb=void 0;t=a(22970);d=t.__importDefault(a(51411));n=t.__importDefault(a(10690));b.$Vb={pg:d.default.P.pg,li:d.default.P.li};c=0;a=(function(){function f(){var g;g=++c;if(0 >= g || !isFinite(g))throw new n.default("MSL context unique ID has overflowed. Are you sure you are using MSL context's correctly?");this.I4b=c;this.Mkb=!1;this.ed=0;}f.prototype.fWc=function(g){var e;e=this.getTime() / 1E3;this.ed=g.getTime() / 1E3 - e;this.Mkb=!0;};f.prototype.wpa=function(){var g;if(!this.Mkb)return null;g=this.getTime() / 1E3 + this.ed;return new Date(1E3 * g);};f.prototype.equals=function(g){return this === g?!0:!1;};f.prototype.ji=function(){return this.I4b.toString();};return f;})();b.NDa=a;},80824:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.QDa=void 0;t=a(22970);d=a(44127);n=a(53140);c=a(69193);a(31809);f=a(50441);t.__importDefault(a(90122));b.QDa=(function(){function g(){}g.Se=function(e){var h;h=e.M1b;h && d.wMb(h);if(h=e.Z1b)for(var k in h)n.dF.register(k,h[k]);(k=e.wRa()) && n.dF.SPc(k);(k=e.D4b) && c.jC.H0a(k);e=e.BSa();null !== e && void 0 !== e && f.c1a(e);};return g;})();},32260:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.Dd=void 0;t=a(22970);d=t.__importDefault(a(51411));n=t.__importDefault(a(63053));b["default"]={wcd:function(c,f){if(c.length != f.length)return !1;for(var g=0,e=0;e < c.length;++e)g|=c[e] ^ f[e];return 0 == g;},Trc:function(c){var f,g;f=d.default.Ye;f=!("number" === typeof f && isFinite(f) && Math.floor(f) == f && Math.abs(f) <= Number.MAX_SAFE_INTEGER) || 0 > f?!1:0 == f?!0:0 == (f & f - 1);c=c.Fxb();do {g=c.yDc();f && (g&=d.default.Ye - 1);}while(0 > g || g > d.default.Ye);return g;},jed:function(c){return c.sort().filter(function(f,g,e){return !g || f != e[g - 1];});}};b.Dd=function(c){return c instanceof n.default;};},18461:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.cEa=void 0;t=(function(){function a(){}a.prototype.Fwc=function(d){for(var n=1;n < arguments.length;n++);return !1;};return a;})();b.cEa=t;},90122:function(t,b){var a;Object.defineProperty(b,"__esModule",{value:!0});"undefined" !== typeof Promise && (a=Promise);b["default"]={setImpl:function(d){a=d;},create:function(d){return new a(d);}};},31809:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.wfb=void 0;d=0 - a(22970).__importDefault(a(51411)).default.Ye;"undefined" !== typeof Ba && (n=Ba.msCrypto || Ba.crypto);t=(function(){function c(){}c.prototype.yDc=function(){var g;for(var f=d;f == d;){f=new Uint8Array(7);n.getRandomValues(f);g=16777216 * ((f[6] & 31) << 24 | f[5] << 16 | f[4] << 8 | f[3]) + (f[2] << 16 | f[1] << 8 | f[0]);f=f[6] & 128?-g - 1:g;}return f;};c.prototype.uDc=function(f){var e,h;for(var g=0;;){e=Math.min(65536,f.length - g);if(0 == e)break;h=new Uint8Array(e);n.getRandomValues(h);f.set(h,g);g+=e;}};return c;})();b.wfb=t;},74015:function(t,b,a){var f,g,e;function d(h){return h == f.default.Ye?1:h + 1;}function n(h){if(0 === Object.keys(h.px).length)return 0;for(var k=d(h.Jz);!h.px[k];)k=d(k);return k;}function c(h){if(0 === Object.keys(h.yC).length)return 0;for(var k=d(h.hv);!h.yC[k];)k=d(k);return k;}Object.defineProperty(b,"__esModule",{value:!0});b.aGa=void 0;t=a(22970);f=t.__importDefault(a(51411));g=t.__importDefault(a(79804));e=t.__importDefault(a(10690));a=(function(){function h(){this.JW={};this.px={};this.QW=null;this.yC={};this.lka=this.hv=this.Jz=0;}h.prototype.cancel=function(k){var l;if(this.px[k]){l=this.px[k];delete this.px[k];k == this.Jz && (this.Jz=n(this));l.call(this,!0);}this.yC[k] && (l=this.yC[k],delete this.yC[k],k == this.hv && (this.hv=c(this)),l.call(this,!0));};h.prototype.mma=function(){for(;0 !== this.hv;)this.cancel(this.hv);for(;0 !== this.Jz;)this.cancel(this.Jz);};h.prototype.SKc=function(k,l){var m,p;m=this;p=d(this.lka);this.lka=p;g.default(l,function(){var r;if(!m.QW && 0 === Object.keys(m.yC).length)return (m.JW[p]=!0,p);-1 != k && (r=setTimeout(function(){delete m.px[p];p == m.Jz && (m.Jz=n(m));l.timeout();},k));m.px[p]=function(q){clearTimeout(r);q?setTimeout(function(){l.result(void 0);},0):(m.JW[p]=!0,setTimeout(function(){l.result(p);},0));};m.Jz || (m.Jz=p);});return p;};h.prototype.CSb=function(k,l){var m,p;m=this;p=d(this.lka);this.lka=p;g.default(l,function(){var r;if(0 === Object.keys(m.JW).length && 0 === Object.keys(m.px).length && !m.QW)return m.QW=p;-1 != k && (r=setTimeout(function(){delete m.yC[p];p == m.hv && (m.hv=c(m));l.timeout();},k));m.yC[p]=function(q){clearTimeout(r);q?setTimeout(function(){l.result(void 0);},0):(m.QW=p,setTimeout(function(){l.result(p);},0));};m.hv || (m.hv=p);});};h.prototype.unlock=function(k){var l;if(k == this.QW)this.QW=null;else {if(!this.JW[k])throw new e.default("There is no reader or writer with ticket number " + k + ".");delete this.JW[k];}if(this.hv)0 < Object.keys(this.JW).length || (k=this.yC[this.hv],delete this.yC[this.hv],this.hv=c(this),k.call(this,!1));else {for(k=this.Jz;0 < Object.keys(this.px).length;k=d(k))if(this.px[k]){l=this.px[k];delete this.px[k];l.call(this,!1);}this.Jz=0;}};return h;})();b.aGa=a;},81214:function(t,b,a){var c,f,g;function d(e){return e == c.default.Ye?1:e + 1;}function n(e){if(0 === Object.keys(e.Gm).length)return 0;for(var h=d(e.Ph);!e.Gm[h];)h=d(h);return h;}Object.defineProperty(b,"__esModule",{value:!0});b.sgb=void 0;t=a(22970);c=t.__importDefault(a(51411));f=t.__importDefault(a(79804));g=t.__importDefault(a(10690));a=(function(){function e(h){this.t3b=this.uW=h;this.Gm={};this.p6=this.Ph=0;}e.prototype.cancel=function(h){this.Gm[h] && (this.Gm[h].call(this,!1),delete this.Gm[h],h == this.Ph && (this.Ph=n(this)));};e.prototype.mma=function(){for(;0 !== this.Ph;)this.cancel(this.Ph);};e.prototype.wait=function(h,k){var l,m;l=this;if(0 < this.uW)return (--this.uW,setTimeout(function(){k.result(!0);},0),0);m=d(this.p6);this.p6=m;f.default(k,function(){var p;-1 != h && (p=setTimeout(function(){delete l.Gm[m];m == l.Ph && (l.Ph=n(l));k.timeout();},h));l.Gm[m]=function(r){clearTimeout(p);if(r){if(0 >= l.uW){setTimeout(function(){k.error(new g.default("Semaphore waiter signaled without any available resources."));},0);return;}--l.uW;}setTimeout(function(){k.result(r);},0);};l.Ph || (l.Ph=m);});return m;};e.prototype.signal=function(){var h;if(this.uW == this.t3b)throw new g.default("Semaphore signaled despite all resources being already available.");++this.uW;if(this.Ph){h=this.Gm[this.Ph];delete this.Gm[this.Ph];this.Ph=n(this);h.call(this,!0);}};return e;})();b.sgb=a;},25137:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.hW=void 0;t=a(22970);d=t.__importDefault(a(51411));n=t.__importDefault(a(10690));c=t.__importDefault(a(1966));f=t.__importDefault(a(36114));g=a(32260);a=(function(){function e(){this.zs={};this.fY={};this.Zy={};this.qca={};this.D2={};this.c0={};this.C2={};}e.prototype.sea=function(h,k){var l;if(k){l=h.ji();this.zs[l]=h;this.fY[l]=k;}else this.cKb(h);};e.prototype.dD=function(){var h,k,l;h=null;for(k in this.zs){l=this.zs[k];if(!h || l.fxc(h))h=l;}return h;};e.prototype.grc=function(h){var k;h=h.Nf;k=void 0 !== this.qca[h]?this.qca[h]:0;if(0 > k || k > d.default.Ye)throw new n.default("Non-replayable ID " + k + " is outside the valid range.");k=k == d.default.Ye?0:k + 1;return this.qca[h]=k;};e.prototype.kA=function(h){return this.fY[h.ji()];};e.prototype.cKb=function(h){var k,l,m,p,r;k=this;l=h.ji();if(this.zs[l]){m=h.Nf;for(p in this.zs){r=this.zs[p];if(!r.equals(h) && r.Nf == m){delete this.zs[l];delete this.fY[l];return;}}Object.keys(this.Zy).forEach(function(q){q=k.Zy[q];q.Ch(h) && k.xda(q);});try{this.nva(null,h,null);}catch(q){if(g.Dd(q))throw new n.default("Unexpected exception while removing master token bound service tokens.",q);throw q;}delete this.qca[m];delete this.zs[l];delete this.fY[l];}};e.prototype.Bbc=function(){[this.zs,this.fY,this.qca,this.Zy,this.C2,this.c0].forEach(function(h){for(var k in h)delete h[k];});};e.prototype.bla=function(h,k){var l,m;l=!1;for(m in this.zs)if(k.Ch(this.zs[m])){l=!0;break;}if(!l)throw new c.default(f.default.e1b,"uit mtserialnumber " + k.Vj);this.Zy[h]=k;};e.prototype.Px=function(h){return this.Zy[h];};e.prototype.xda=function(h){var k,l,m,p;k=this;l=null;for(m in this.zs){p=this.zs[m];if(h.Ch(p)){l=p;break;}}Object.keys(this.Zy).forEach(function(r){if(k.Zy[r].equals(h)){try{k.nva(null,l,h);}catch(q){if(g.Dd(q))throw new n.default("Unexpected exception while removing user ID token bound service tokens.",q);throw q;}delete k.Zy[r];}});};e.prototype.Zka=function(h){var k;k=this;h.forEach(function(l){var m,p;if(l.$x()){m=!1;for(p in k.zs)if(l.Ch(k.zs[p])){m=!0;break;}if(!m)throw new c.default(f.default.n0b,"st mtserialnumber " + l.Vj);}if(l.cw()){m=!1;for(var r in k.Zy)if(l.Ch(k.Zy[r])){m=!0;break;}if(!m)throw new c.default(f.default.p0b,"st uitserialnumber " + l.Wy);}});h.forEach(function(l){var m;if(l.Lxc())k.D2[l.ji()]=l;else {if(l.$x()){m=k.c0[l.Vj];m || (m={});m[l.ji()]=l;k.c0[l.Vj]=m;}l.cw() && ((m=k.C2[l.Wy]) || (m={}),m[l.ji()]=l,k.C2[l.Wy]=m);}});};e.prototype.TK=function(h,k){var l,m,p;if(k){if(!h)throw new c.default(f.default.f1b);if(!k.Ch(h))throw new c.default(f.default.sHa,"uit mtserialnumber " + k.Vj + "; mt " + h.Nf);}l={};for(m in this.D2){p=this.D2[m];l[p.ji()]=p;}if(h && (m=this.c0[h.Nf]))for(var r in m)(p=m[r],p.cw() || (l[r]=p));if(k && (k=this.C2[k.Nf]))for(var q in k)(r=k[q],r.Ch(h) && (l[q]=r));h=[];for(var u in l)h.push(l[u]);return h;};e.prototype.nva=function(h,k,l){var m,p,r;m=this;if(l && k && !l.Ch(k))throw new c.default(f.default.sHa,"uit mtserialnumber " + l.Vj + "; mt " + k.Nf);!h || k || l || Object.keys(this.D2).forEach(function(q){m.D2[q].name == h && delete m.D2[q];});k && !l && (p=this.c0[k.Nf]) && (Object.keys(p).forEach(function(q){var u;u=p[q];h && u.name != h || delete p[q];}),this.c0[k.Nf]=p);l && (r=this.C2[l.Nf]) && (k=Object.keys(r),k.forEach(function(q){var u;u=r[q];h && u.name != h || delete r[q];}),this.C2[l.Nf]=r);};return e;})();b.hW=a;},69193:function(t,b){var d;function a(n){if(!n)throw new TypeError("Text encoding implementation cannot be null.");d=n;}Object.defineProperty(b,"__esModule",{value:!0});b.jC=b.H0a=b.nhb=b.ZB=void 0;b.ZB={nF:"utf-8",d4c:"utf-16"};b.nhb=(function(){return function(){};})();b.H0a=a;b.jC={H0a:a,we:function(n,c){void 0 === c && (c=b.ZB.nF);return d.we(n,c);},vd:function(n,c){void 0 === c && (c=b.ZB.nF);return d.vd(n,c);}};},14348:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.pja=void 0;d=a(22970);n=a(69193);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.we=function(g,e){if(!e || e === n.ZB.nF){e=0;for(var h,k=g.length,l="";e < k;){h=g[e++];if(h & 128)if(192 === (h & 224))h=((h & 31) << 6) + (g[e++] & 63);else if(224 === (h & 240))h=((h & 15) << 12) + ((g[e++] & 63) << 6) + (g[e++] & 63);else throw Error("unsupported character");l+=String.fromCharCode(h);}return l;}throw Error("unsupported encoding");};f.prototype.vd=function(g,e){var h,k,l,m;if(!e || e === n.ZB.nF){e=g.length;h=0;l=0;for(k=e;k--;){m=g.charCodeAt(k);128 > m?h++:h=2048 > m?h + 2:h + 3;}h=new Uint8Array(h);for(k=0;k < e;k++)(m=g.charCodeAt(k),128 > m?h[l++]=m:(2048 > m?h[l++]=192 | m >>> 6:(h[l++]=224 | m >>> 12,h[l++]=128 | m >>> 6 & 63),h[l++]=128 | m & 63));return h;}throw Error("unsupported encoding");};return f;})(n.nhb);b.pja=t;},62807:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.zib=void 0;d=a(22970);n=a(41294);c=a(75513);f=a(14348);g=a(51411);t=(function(e){function h(){var k,l,m,p;k=e.call(this) || this;l=new n.W5a();m={};m[g.NI.tCa]=new c.bbb();p=new f.pja();k.M1b=l;k.Z1b=m;k.D4b=p;return k;}d.__extends(h,e);h.prototype.wRa=function(){return null;};h.prototype.BSa=function(){return null;};return h;})(a(80824).QDa);b.zib=t;},69452:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;d=a(76113);n=a(69808);c=a(48668);f=a(99939);g=a(97911);e=a(51832);b=a(67286);h=a(62680);k=a(26302);l=h("String.prototype.charAt");m=b("%Array.prototype.indexOf%");p=b("%Math.max%");t.exports=function(r){var q,u,v;q=1 < arguments.length?d(arguments[1]):0;if(m && !g(r) && e(q) && "undefined" !== typeof r)return -1 < m.apply(this,arguments);u=c(this);v=n(u.length);if(0 === v)return !1;for(q=0 <= q?q:p(0,v + q);q < v;){if(f(r,k(u)?l(u,q):u[q]))return !0;q+=1;}return !1;};},44878:function(t,b,a){var d;d=a(69452);t.exports=function(){return Array.prototype.includes && Array(1).includes(void 0)?Array.prototype.includes:d;};},26860:function(t,b,a){var d,n;d=a(14926);n=a(44878);t.exports=function(){var c;c=n();d(Array.prototype,{includes:c},{includes:function(){return Array.prototype.includes !== c;}});return c;};},17187:function(t){function b(){this.oc=this.oc || ({});this.Iz=this.Iz || void 0;}function a(n){return "function" === typeof n;}function d(n){return "object" === typeof n && null !== n;}t.exports=b;b.EventEmitter=b;b.prototype.oc=void 0;b.prototype.Iz=void 0;b.ZNa=10;b.prototype.setMaxListeners=function(n){if("number" !== typeof n || 0 > n || isNaN(n))throw TypeError("n must be a positive number");this.Iz=n;return this;};b.prototype.emit=function(n){var c,f,g,e;this.oc || (this.oc={});if("error" === n && (!this.oc.error || d(this.oc.error) && !this.oc.error.length)){f=arguments[1];if(f instanceof Error)throw f;g=Error('Uncaught, unspecified "error" event. (' + f + ")");g.context=f;throw g;}g=this.oc[n];if(void 0 === g)return !1;if(a(g))switch(arguments.length){case 1:g.call(this);break;case 2:g.call(this,arguments[1]);break;case 3:g.call(this,arguments[1],arguments[2]);break;default:(f=Array.prototype.slice.call(arguments,1),g.apply(this,f));}else if(d(g)){f=Array.prototype.slice.call(arguments,1);e=g.slice();g=e.length;for(c=0;c < g;c++)e[c].apply(this,f);}return !0;};b.prototype.addListener=function(n,c){if(!a(c))throw TypeError("listener must be a function");this.oc || (this.oc={});this.oc.qDc && this.emit("newListener",n,a(c.listener)?c.listener:c);this.oc[n]?d(this.oc[n])?this.oc[n].push(c):this.oc[n]=[this.oc[n],c]:this.oc[n]=c;d(this.oc[n]) && !this.oc[n].W3a && (c=void 0 === this.Iz?b.ZNa:this.Iz) && 0 < c && this.oc[n].length > c && (this.oc[n].W3a=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this.oc[n].length),"function" === typeof console.trace && console.trace());return this;};b.prototype.on=b.prototype.addListener;b.prototype.once=function(n,c){var g;function f(){this.removeListener(n,f);g || (g=!0,c.apply(this,arguments));}if(!a(c))throw TypeError("listener must be a function");g=!1;f.listener=c;this.on(n,f);return this;};b.prototype.removeListener=function(n,c){var f,g,e;if(!a(c))throw TypeError("listener must be a function");if(!this.oc || !this.oc[n])return this;f=this.oc[n];g=f.length;e=-1;if(f === c || a(f.listener) && f.listener === c)(delete this.oc[n],this.oc.removeListener && this.emit("removeListener",n,c));else if(d(f)){for(;0 < g--;)if(f[g] === c || f[g].listener && f[g].listener === c){e=g;break;}if(0 > e)return this;1 === f.length?(f.length=0,delete this.oc[n]):f.splice(e,1);this.oc.removeListener && this.emit("removeListener",n,c);}return this;};b.prototype.removeAllListeners=function(n){var c;if(!this.oc)return this;if(!this.oc.removeListener)return (0 === arguments.length?this.oc={}:this.oc[n] && delete this.oc[n],this);if(0 === arguments.length){for(c in this.oc)"removeListener" !== c && this.removeAllListeners(c);this.removeAllListeners("removeListener");this.oc={};return this;}c=this.oc[n];if(a(c))this.removeListener(n,c);else if(c)for(;c.length;)this.removeListener(n,c[c.length - 1]);delete this.oc[n];return this;};b.prototype.listeners=function(n){return this.oc && this.oc[n]?a(this.oc[n])?[this.oc[n]]:this.oc[n].slice():[];};b.prototype.listenerCount=function(n){if(this.oc){n=this.oc[n];if(a(n))return 1;if(n)return n.length;}return 0;};b.listenerCount=function(n,c){return n.listenerCount(c);};},70834:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=(function(){function a(d){this.buffer=d;this.position=0;}a.prototype.seek=function(d){this.position=d;};a.prototype.skip=function(d){this.position+=d;};a.prototype.G$=function(){return this.buffer.length - this.position;};a.prototype.jpa=function(){return this.buffer.length;};a.prototype.Au=function(){return this.buffer[this.position++];};a.prototype.wn=function(d){var n;n=this.position;this.position+=d;return this.Kxc(this.buffer)?this.buffer.subarray(n,this.position):this.buffer.slice(n,this.position);};a.prototype.Kxc=function(d){return void 0 !== d.subarray;};a.prototype.Bw=function(d){for(var n=0;d--;)n=256 * n + this.buffer[this.position++];return n;};a.prototype.QZa=function(d){for(var n="";d--;)n+=String.fromCharCode(this.buffer[this.position++]);return n;};a.prototype.tj=function(){return this.Bw(2);};a.prototype.Cw=function(){return this.Bw(4);};a.prototype.f1=function(){return this.Bw(8);};a.prototype.dE=function(d){for(var n,c="";d--;)(n=this.Au(),c+=("0123456789ABCDEF")[n >>> 4] + ("0123456789ABCDEF")[n & 15]);return c;};a.prototype.RZa=function(d){for(var n=0,c=0;c < d;c++)n+=this.Au() << (c << 3);return n;};a.prototype.e1=function(){return this.RZa(4);};a.prototype.dz=function(d){this.buffer[this.position++]=d;};a.prototype.DSb=function(d,n){this.position+=n;for(var c=1;c <= n;c++)(this.buffer[this.position - c]=d & 255,d=Math.floor(d / 256));};a.prototype.a4a=function(d){for(var n=d.length,c=0;c < n;c++)this.buffer[this.position++]=d[c];};a.prototype.U2=function(d,n){this.a4a(d.wn(n));};a.prototype.BSb=function(d){d=new a(d);for(var n,c;;)if((n=d.G$(),c=n >>> 14))(c=Math.min(4,c),this.dz(192 | c),this.U2(d,16384 * c));else {128 > n?this.dz(n):this.DSb(n | 32768,2);this.U2(d,n);break;}};a.prototype.yJb=function(){var c;for(var d=[],n=new a(d);;){c=this.Au();if(c & 128){if(128 == (c & 192))(c&=63,c=(c << 8) + this.Au(),n.U2(this,c));else if((c&=63,0 < c && 4 >= c)){n.U2(this,16384 * c);continue;}else throw Error("bad asn1");}else n.U2(this,c);break;}return new Uint8Array(d);};return a;})();b.$ga=t;},28660:function(t,b,a){var d;(function(n){var D,F,H,E,G,J,L,K,M;function c(P,I,O){var Q;Q=M.get(P);if(!Q){if(!O)return;Q=new L();M.set(P,Q);}P=Q.get(I);if(!P){if(!O)return;P=new L();Q.set(I,P);}return P;}function f(P,I,O){if(g(P,I,O))return !0;I=u(I);return null !== I?f(P,I,O):!1;}function g(P,I,O){I=c(I,O,!1);return void 0 !== I && !!I.has(P);}function e(P,I,O){if(g(P,I,O))return h(P,I,O);I=u(I);return null !== I?e(P,I,O):void 0;}function h(P,I,O){I=c(I,O,!1);return void 0 === I?void 0:I.get(P);}function k(P,I){var O,T;O=l(P,I);P=u(P);if(null === P)return O;I=k(P,I);if(0 >= I.length)return O;if(0 >= O.length)return I;P=new K();for(var Q=0;Q < O.length;Q++){T=O[Q];P.add(T);}for(O=0;O < I.length;O++)(T=I[O],P.add(T));return x(P);}function l(P,I){var O;P=c(P,I,!1);O=[];P && w(P,function(Q,T){return O.push(T);});return O;}function m(P){return void 0 === P;}function p(P){return Array.isArray?Array.isArray(P):P instanceof Array || "[object Array]" === Object.prototype.toString.call(P);}function r(P){return "object" === typeof P?null !== P:"function" === typeof P;}function q(P){return "symbol" === typeof P?P:String(P);}function u(P){var I,O;I=Object.getPrototypeOf(P);if("function" !== typeof P || P === J || I !== J)return I;O=P.prototype;O=O && Object.getPrototypeOf(O);if(null == O || O === Object.prototype)return I;O=O.constructor;return "function" !== typeof O || O === P?I:O;}function v(P){P=P.next();return P.done?void 0:P;}function w(P,I,O){var Q,T,U;Q=P.entries;if("function" === typeof Q){Q=Q.call(P);try{for(;T=v(Q);){U=T.value;I.call(O,U[1],U[0],P);}}finally{T && (P=Q["return"]) && P.call(Q);}}else (Q=P.forEach,"function" === typeof Q && Q.call(P,I,O));}function x(P){var I;I=[];w(P,function(O,Q){I.push(Q);});return I;}function y(P,I,O){var Q;Q=0;return {next:function(){var T;if((P || I) && Q < (P || I).length){T=Q++;switch(O){case "key":return {value:P[T],done:!1};case "value":return {value:I[T],done:!1};case "key+value":return {value:[P[T],I[T]],done:!1};}}I=P=void 0;return {value:void 0,done:!0};},"throw":function(T){if(P || I)I=P=void 0;throw T;},"return":function(T){if(P || I)I=P=void 0;return {value:T,done:!0};}};}function A(){var P;P={};return (function(){function I(){this.Eg=[];this.Ri=[];this.mC=P;this.zz=-2;}Object.defineProperty(I.prototype,"size",{get:function(){return this.Eg.length;},enumerable:!0,configurable:!0});I.prototype.has=function(O){return 0 <= this.wF(O,!1);};I.prototype.get=function(O){O=this.wF(O,!1);return 0 <= O?this.Ri[O]:void 0;};I.prototype.set=function(O,Q){O=this.wF(O,!0);this.Ri[O]=Q;return this;};I.prototype.delete=function(O){var Q;Q=this.wF(O,!1);if(0 <= Q){O=this.Eg.length;for(Q+=1;Q < O;Q++)(this.Eg[Q - 1]=this.Eg[Q],this.Ri[Q - 1]=this.Ri[Q]);this.Eg.length--;this.Ri.length--;this.mC=P;this.zz=-2;return !0;}return !1;};I.prototype.clear=function(){this.Eg.length=0;this.Ri.length=0;this.mC=P;this.zz=-2;};I.prototype.keys=function(){return y(this.Eg,void 0,"key");};I.prototype.values=function(){return y(void 0,this.Ri,"value");};I.prototype.entries=function(){return y(this.Eg,this.Ri,"key+value");};I.prototype.wF=function(O,Q){var T;if(this.mC === O)return this.zz;T=this.Eg.indexOf(O);0 > T && Q && (T=this.Eg.length,this.Eg.push(O),this.Ri.push(void 0));return (this.mC=O,this.zz=T);};return I;})();}function z(){return (function(){function P(){this.Wg=new L();}Object.defineProperty(P.prototype,"size",{get:function(){return this.Wg.size;},enumerable:!0,configurable:!0});P.prototype.has=function(I){return this.Wg.has(I);};P.prototype.add=function(I){return (this.Wg.set(I,I),this);};P.prototype.delete=function(I){return this.Wg.delete(I);};P.prototype.clear=function(){this.Wg.clear();};P.prototype.keys=function(){return this.Wg.keys();};P.prototype.values=function(){return this.Wg.values();};P.prototype.entries=function(){return this.Wg.entries();};return P;})();}function B(){var Q,T;function P(U,X){for(var Y=0;Y < X;++Y)U[Y]=255 * Math.random() | 0;return U;}function I(){var U,W;do {U="function" === typeof Uint8Array?"undefined" !== typeof crypto?crypto.getRandomValues(new Uint8Array(16)):"undefined" !== typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(16)):P(new Uint8Array(16),16):P(Array(16),16);U[6]=U[6] & 79 | 64;U[8]=U[8] & 191 | 128;for(var X="",Y=0;16 > Y;++Y){W=U[Y];if(4 === Y || 6 === Y || 8 === Y)X+="-";16 > W && (X+="0");X+=W.toString(16).toLowerCase();}U="@@WeakMap@@" + X;}while(G.has(Q,U));Q[U]=!0;return U;}function O(U,X){if(!D.call(U,T)){if(!X)return;Object.defineProperty(U,T,{value:E()});}return U[T];}Q=E();T=I();return (function(){function U(){this.Gz=I();}U.prototype.has=function(X){X=O(X,!1);return void 0 !== X?G.has(X,this.Gz):!1;};U.prototype.get=function(X){X=O(X,!1);return void 0 !== X?G.get(X,this.Gz):void 0;};U.prototype.set=function(X,Y){O(X,!0)[this.Gz]=Y;return this;};U.prototype.delete=function(X){X=O(X,!1);return void 0 !== X?delete X[this.Gz]:!1;};U.prototype.clear=function(){this.Gz=I();};return U;})();}function C(P){P.u4c=1;delete P.v4c;return P;}D=Object.prototype.hasOwnProperty;F="function" === typeof Object.create;H=(function(){var I;function P(){}I={};P.prototype=I;return new P().__proto__ === I;})();E=F?function(){return C(Object.create(null));}:H?function(){return C({__proto__:null});}:function(){return C({});};(function(P){var I;I=!F && !H;P.has=I?function(O,Q){return D.call(O,Q);}:function(O,Q){return (Q in O);};P.get=I?function(O,Q){return D.call(O,Q)?O[Q]:void 0;}:function(O,Q){return O[Q];};})(G || (G={}));J=Object.getPrototypeOf(Function);L="function" === typeof Map?Map:A();K="function" === typeof Set?Set:z();M=new ("function" === typeof WeakMap?WeakMap:B())();n.qK=function(P,I,O,Q){var U;if(m(Q)){if(m(O)){if(!p(P))throw new TypeError();if("function" !== typeof I)throw new TypeError();for(O=P.length - 1;0 <= O;--O)if((Q=(0,P[O])(I),!m(Q))){if("function" !== typeof Q)throw new TypeError();I=Q;}return I;}if(!p(P))throw new TypeError();if(!r(I))throw new TypeError();O=q(O);for(Q=P.length - 1;0 <= Q;--Q)(0,P[Q])(I,O);}else {if(!p(P))throw new TypeError();if(!r(I))throw new TypeError();if(m(O))throw new TypeError();if(!r(Q))throw new TypeError();O=q(O);for(var T=P.length - 1;0 <= T;--T){U=(0,P[T])(I,O,Q);if(!m(U)){if(!r(U))throw new TypeError();Q=U;}}return Q;}};n.zc=function(P,I){return function(O,Q){if(m(Q)){if("function" !== typeof O)throw new TypeError();c(O,void 0,!0).set(P,I);}else {if(!r(O))throw new TypeError();Q=q(Q);c(O,Q,!0).set(P,I);}};};n.ina=function(P,I,O,Q){if(!r(O))throw new TypeError();m(Q) || (Q=q(Q));c(O,Q,!0).set(P,I);};n.juc=function(P,I){var O;if(!r(I))throw new TypeError();m(O) || (O=q(O));return f(P,I,O);};n.RSa=function(P,I){var O;if(!r(I))throw new TypeError();m(O) || (O=q(O));return g(P,I,O);};n.getMetadata=function(P,I,O){if(!r(I))throw new TypeError();m(O) || (O=q(O));return e(P,I,O);};n.ixb=function(P,I,O){if(!r(I))throw new TypeError();m(O) || (O=q(O));return h(P,I,O);};n.L8c=function(P,I){if(!r(P))throw new TypeError();m(I) || (I=q(I));return k(P,I);};n.Q8c=function(P,I){if(!r(P))throw new TypeError();m(I) || (I=q(I));return l(P,I);};n.R6c=function(P,I,O){var Q;if(!r(I))throw new TypeError();m(O) || (O=q(O));Q=c(I,O,!1);if(m(Q) || !Q.delete(P))return !1;if(0 < Q.size)return !0;P=M.get(I);P.delete(O);if(0 < P.size)return !0;M.delete(I);return !0;};(function(P){if("undefined" !== typeof P.Reflect){if(P.Reflect !== n)for(var I in n)D.call(n,I) && (P.Reflect[I]=n[I]);}else P.Reflect=n;})("undefined" !== typeof Ba?Ba:"undefined" !== typeof WorkerGlobalScope?self:"undefined" !== typeof a.qZ?a.qZ:Function("return this;")());})(d || (d={}));},26388:function(t,b){var a;Object.defineProperty(b,"__esModule",{value:!0});b.hS=b.sga=b.u=void 0;b.u={X:0,U:1,Ca:2,sm:3};b.sga={X:0,U:1};b.hS=(a={},a[b.u.X]="audio",a[b.u.U]="video",a[b.u.Ca]="subtitle",a[b.u.sm]="mediaEvents",a);},84915:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},66164:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(84915),b);t.__exportStar(a(83403),b);t.__exportStar(a(93926),b);t.__exportStar(a(77985),b);t.__exportStar(a(67111),b);t.__exportStar(a(92884),b);t.__exportStar(a(13779),b);},83403:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},93926:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},77985:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},57421:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},3775:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},67111:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(3775),b);t.__exportStar(a(49971),b);t.__exportStar(a(57421),b);t.__exportStar(a(62103),b);t.__exportStar(a(92473),b);},62103:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},49971:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},92473:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},52991:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Hcb=void 0;t=(function(){function a(){}a.prototype.ha=function(){var d;d=process.v9c();return 1E3 * d[0] + d[1] / 1E6;};a.prototype.Bsa=function(d){return d - this.ha() + this.now();};a.prototype.lta=function(d){return d - this.now() + this.ha();};a.prototype.now=function(){return Date.now();};return a;})();b.Hcb=t;},92884:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.platform=void 0;t=a(52991);b.platform={name:"default-node",oTa:function(d){for(var n in d)d.hasOwnProperty(n) && (this[n]=d[n]);},reset:function(){},time:new t.Hcb(),pK:function(d){return new TextDecoder("utf-8").decode(d);}};},13779:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},89707:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.assert=function(c,f){if(!c)throw new n(f || "Assertion failed");};d=a(22970);n=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);return f;})(Error);},85017:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.yN=b.U9=void 0;b.pQa=function(a,d){return a.$ / a.O === d.$ / d.O;};b.U9={23976:{$:24E3,O:1001},24:{$:24E3,O:1E3},25:{$:25E3,O:1E3},2997:{$:3E4,O:1001},30:{$:3E4,O:1E3},50:{$:5E4,O:1E3},5994:{$:6E4,O:1001},60:{$:6E4,O:1E3}};b.yN={h264:["23976","24","25","2997","30"],h264hpl:["23976","24","25","2997","30"],"hevc-main10":("23976 24 25 2997 30 50 5994 60").split(" "),av1:("23976 24 25 2997 30 50 5994 60").split(" ")};},80463:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.W=[{data:"IAcgZnR5BwBpBzBvA2gBYBABgA4CBkBzBtgAIBdpeGRhBzBogCQAACBCBtFvB2gDYBdsbXZoBkgA4BgAAJC7CAgAwDABgAQDgAAIgBgLgB4QBAgDwNgAANACgGABeWdHJhBrgBYBBcB0BrgOYDgIIKgLoOgCYDgCgDgO4rcBMm1kBpBhgf4CgA4Aga4UBVDEgBgDAtgDoABsBygDIGgjwAB1BugFIKBNBlgIgBBIBhBugEQABlgEYDfdbWluBmgA4BAQgoIAgKgLAkgEwAgC4DccZHJlgA4CgTwGcMdXJsAggBYFehc3RiBsgO4CgA4ABzgHYGgC4CdFZWMtAzgaQPAGgMYAgwQJANBkgEgAAzgCQAAgAPgBgCAUBignwAB0gAwAADgpYBDugB4CDAgSADF0BzgSAJgB4BBzBjgB4JAUgB4BB6gn4NgEYBBjBvgB4JA4hAIABlB4gC4CBtBlgbgGAwgAgCAggNwAgC4DgUAGgAYBgRQAg5QFAA",Ia:!0,Ja:[176,590],size:610},{data:"IABkBtFvBmgA4BcQbWZoBkgA4BgAACABgAYBdMdHJhgC4CAgB0gC4CACAAA6gC4FgAYBAGgAwBADgCQBgAADAQgD4ABkB0gG4FgAACAUgG4AB1BugFYFAIgAYBBsgAQAcYCG1kBhB0ALB3ABB/A/CHDAgKAAgCgBgHYCAEBIAfgAYAgAAAIBAAJAIQgBgBcY+fPnDPCfA+B8gAwBDfDzCrgBQGDHD8DqgC4Gfx/zq+gCQCgBgCB/DOCvgD4EgBgAAfgFgLgQwCcDxtttC2DbDHCPAeA7G7C4gB4BcNa1rWC1CggBABAbgCwBdvHjx4LuDggWQFB4gFQCd48ePHJ3gCQFADgCIBBtgCAACPAdHdDcgCQFAPgHIRgbgBgdIBDjgFgMAGC1CtgNgADQgOYCgCwBC3gQIAA8gKwBBwgGAFA8gFQCC8gNYBgSoAC7CAgtgFgCIBC2gPgBCOgK4BgEoFAHCNgHIQA2gAoDDxgFgMADgagBCtBogOYCgdoMgAACAeA2gCYBDegVwADxgSoADdguoAgAAEgdARgk4NgAACAbgioSABgagBDWC0gjQogdARgk4NgAACANgDYDgioOgagBgNgAgjQpgdAQgk4NgAACAGgDYDgioOhCwCCtgjQphHokBghiAJgAAEBIA4hf//hf//hf//hf//hf//hf//hf//hf//hf//hf//hf70",Ia:!0,Ja:[44],size:6252},{$:1536,O:48E3},{$:12288,O:48E3},"ddplus-5.1-dash",192,"5.1"];},73502:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(80463);b.W=[{data:"hMPLAIhMIMAEhMgBDogGYGhMJ3",Ia:!0,Ja:[176,590],size:610,Oa:t.W[0]},{data:"sNY4AEsNYpAgsNYGD/htYKcD+B9lhtQChtIBhs4ChswFB9hpgJgAwThsIJgAwThuwJgAwTh3AJgAwTh5oKgQAVh2QCB3DNg0oAgCAAhEYCgAQIhEIBBAgDIdBfA+gDAMhlQEAOD5gD4AgDIvDIgoYCC+gNYADXDPCbgD4LhU4EgDIcgXIxgDIVB2gAYBAAAdDzhWIAgmgAgDgKgAQAiN4EgDIbgXIygDIVCyhPQCDvCagjQADzDmgNgMhpYBh3oBgDIbgXIxgDIWCQiBoCB8gNYAhUQAh6QCgAQIiUwEgDIcgXIxgDIVDsiV4CA7DmgjQAhWQAg2ILDbjNwEgDIbgXIygDIViJoGgAADBABZh///h///h///h///h///h///h///h///h///h///h///h///h///h//x",Ia:!0,Ja:[44],size:8300,Oa:t.W[1]},{$:1536,O:48E3},{$:12288,O:48E3},"ddplus-5.1hq-dash",256,"5.1"];},86252:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(80463).W[0];a=a(73502);b.W=[{data:"hMPLAMhMIMg8oBAFDcgGYCgEQChMJ3",Ia:!0,Ja:[176,590],size:610,Oa:t},{data:"wNY4gAYAwNYoAwwNYFACiNYLcEEB+6iNYxiHgviRwwicAwiWIwgYwSgnwCA2gGwCg14BdvHjx4DxDjDHCPgAwDgB4AgCYAhBoBhaABiM4EAABvgGYBg6oCgD4FgAwCgBoADfA+gD4DgAgDgEYBANgLQBhy4CgIwIgAwAcbbbfPhUQBgEYEiFQCADBrgP4BhFICgEgbgSQBhagCDegSQJB2gB4AgCYAgEYGhs4CAADZgXwCgJ4SAegB4AgV4AA1gFQGhhgCAGgd4BDNhSwBC8gJ4IDGgJ4PgZwAhiADC3gcQIgAwAgB4AgCYAgJAHhZ4BglwTgEgPA3gsQBhgoCgSQJA3glwQiE4Cgv3/gvz8gABZBYAGi///iQH/i///i///iQH/i///i///iQH/i///i///iQH/i///i///iQH/i///i///iQH/i///i///iQH/i//q",Ia:!0,Ja:[44],size:12396,Oa:a.W[1]},{$:1536,O:48E3},{$:12288,O:48E3},"ddplus-5.1hq-dash",384,"5.1"];},27443:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(80463).W[0];a=a(86252);b.W=[{data:"hMPLAOhMIMAHgEgBDWgGYChMJ7",Ia:!0,Ja:[176,590],size:610,Oa:t},{data:"4NY4AH4NYpA44NYFADB/jNYLAoAfDMjNQAjNIAjM4AjMwFiuICDfjAwvjNozjBozjOgzjbY0jPYIAbhcwChOYEZ3gAAAhiYRhKwEgFgIA7a7C7haADCNgCgAhboAhLYIgAgAhxgDgFQCh2ADgFgqAdbdDdhvQDhkYMhWwEhpQAgFQDhbYCgFgMh0AMgFgFDwgcgCgRZwgFgcCObuDuDvidgQiF4EiQAAgFQDiKgCgFgMC7gFgSB4gcgCgRZwgFgdhJ4HiUYQisoEABC+gtIEgxICgFgLDdgFgSC8itoDgRZvgFgdhJwGC7itIDgCgAh+YAgQYJC1Cgi6oCjDgCi/IEgFgLBugFgSDeijwDgRZvgFgdhJwGDdju4RjXQEBvju4Cjl4EgFgLjOoNgFgFi5ADgRZvgFgdhJwGDuj4IRkQYEA3j4ICjvIEgFgLAbgCYBgFgQhQABgABpBhBJjf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf//jf7m",Ia:!0,Ja:[44],size:14444,Oa:a.W[1]},{$:1536,O:48E3},{$:12288,O:48E3},"ddplus-5.1hq-dash",448,"5.1"];},75452:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(86252).W[0];a=a(27443);b.W=[{data:"hMPLAUhMIMAKgAQAAJgYQCAChMJ7",Ia:!0,Ja:[176,590],size:610,Oa:t},{data:"8NY4AK8NYpBQ8NYFAED/jtYCgAAChQYBcAjgYYBhCGjQwzjfY+juA+j8o9jwo+gfwLhdACABhWwGgrgEgAAQADhkwBhWQChkYFgIYMgEACA7jcoFC4hFQWiJgBj4oDj7wEBfgQ4LhWgCAHiO4GgIAWAOhewADthhICiuAFgZYLjt4DiyIChjgCDggIAVABgb4BgIAChxwFghAMgEACAdjYgFDcgQQWgcABhxYDj3oEhG4MgnICADjFoEiLgGhxYWAHgcgAkGoBiqoHgpYLD4glYDki4FBwgRAWgcoBiCYDh/4EhQAMglYDjVIGgIAWgcwBibQDj0QEDXhC4Lgn4ChCCDglYDhCzDhCCAghQDhCzEhCCAgHIDhCzDhCCBgHIDjH0FhCA/k/xsgABrAXBQk///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k///k//c",Ia:!0,Ja:[44],size:20588,Oa:a.W[1]},{$:1536,O:48E3},{$:12288,O:48E3},"ddplus-5.1hq-dash",640,"5.1"];},46871:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(54468);b.W=[{data:"hZniCAhZjm",Ia:!0,Ja:[176,599],size:717,Oa:t.W[0]},{data:"gXy9",Ia:!0,Ja:[44],size:191,Oa:t.W[1]},{$:1024,O:24E3},{$:7168,O:24E3},"heaac-2hq-dash",128,"2.0"];},54468:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.W=[{data:"IAcgZnR5BwBpBzBvA2gBYBABgA4CBkBzBtgAIBdpeGRhBzBogCQAACCtBtFvB2gDYBdsbXZoBkgA4BgAAJBdDAgAwDABgAQDgAAIgBgLgB4QBAgDwNgAANACgGABefdHJhBrgBYBBcB0BrgOYDADgLoZgCYDgCgDgO4rcBO21kBpBhgf4CgA4Aga4UBVDEgBgDAtgDoABsBygDIGgjwAB1BugFIKBTgB4BBkBIBhgAYABsBlgEYDfmbWluBmgA4BAQgoIAgKgLAkgNYAgC4DccZHJlgA4CgTwGcMdXJsAggBYFeqc3RiBsgA4BBegA4ABzgHYGgC4CdObXA0gVACgaQMgkwAAQgwQJAqBlgGQABzgBACADAcgAgBcEFEAVgAoAAXgAQAAFBYge4CEFcTEFblAAAGABgrQBgTIBF0gFIDgAAFgB4BBzBjgB4JAUgB4BB6gpANgEYBBjBvgB4JA4hBQABlB4gC4CBtBlgcoGA0gAgCAgg2wAgC4DgVIGgAYBAEg6YGgAACdidWR0gZICBagG4AgA4DgAACAhgrwKgyQBg/AAFwggoCgAAHAtBpBsgPwAgA4BAlCpB0hRAAgA4BAdhS4AgHgDghQDdMYXZmA1A3AuAyA1AuAxEw",Ia:!0,Ja:[176,599],size:717},{data:"IAB8BtFvBmgA4BcQbWZoBkgA4BgAACABgAYBdkdHJhgC4CAcB0gC4CACAAAqgC4FgAYBAEgBwBgAADAQgDYAgEwAgGYFgAACAwgGYAB1BugAwAACgE4CAHgAYBCEgAYBAXgAYBAGgAYVdDbWRhB0DegJgAdMYXZjA1A3AuAyA0AuAxAwAyAABCAgAIDBAYA4AhAQAEBgCMAcgAoc",Ia:!0,Ja:[44],size:191},{$:1024,O:24E3},{$:7168,O:24E3},"heaac-2-dash",64,"2.0"];},39532:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(54468);b.W=[{data:"hZniBghZjm",Ia:!0,Ja:[176,599],size:717,Oa:t.W[0]},{data:"gXy9",Ia:!0,Ja:[44],size:191,Oa:t.W[1]},{$:1024,O:24E3},{$:7168,O:24E3},"heaac-2-dash",96,"2.0"];},95426:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(47718);b.W=[{data:"hkvRACBagAQADzhNoCDAhkpAgEAAhksD",Ia:!0,Ja:[176,661],size:806,Oa:t.W[0]},{data:"sBABDEsN4VCssN4FAcsN4FAqsN4LsNYUB4sNYEACsNYGDMgCwEACBagAYBgA4CgAZVAwBisZZDgEAAsZYcd/gHxSsZybgAFVtEoGe/wD4ppk71gAD7tkoGg//2tEoGg//2ukoGh///g//1pEoGg//2wEoGg//2wkoGg//2xEoGg//2xkoGg//2xEoGg//2wEoGh///g//1zkoGg//20EoGg//20koGk///g//11koGs///g//12koGg//23EoGg//23koGg//24EoGg//2B5",Ia:!0,Ja:[44],size:12582,Oa:t.W[1]},{$:2048,O:48E3},{$:12288,O:48E3},"xheaac-dash",192,"2.0"];},70349:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.W=[{data:"IAcgZnR5BwBpBzBvA2gBYBABgA4CBkBzBtgAIBdpeGRhBzBogCQAADAKBtFvB2gDYBdsbXZoBkgA4BgAAJC7CAgAwDABgAQDgAAIgBgLgB4QBAgDwNgAANACgGABfhdHJhBrgBYBBcB0BrgOYDAHgLoZgCYDgCgDgO4rcBfW1kBpBhgf4CgA4Aga4UBVDEgBgDAlgDoABsBygDIGgjwAB1BugFIKgB4FcBMG1pBuBmgBABAQgnIAgJgLAkgMYAgC4DccZHJlgA4CgSwGcMdXJsAggBYFf0c3RiBsgA4BCogA4ABzgHYGgC4CeYbXA0gUACgZQMgjwAAQgvQJB0BlgGQABzgBACADgLoCcEXkAVgFQAA4gBAACFCogbACcFT/lGBDBCA8DADTDJEggBwAcSS2aBACAEAGALBcCIACAJACAIAJAIAAAJD8ABCAABAQgAQAdfwBgMAoAZgB4AeB/yAGACCGAIBCgHAAgQoABggGAAcFFUKegSwAeuQAQFgOYBcP8ARWDLAAAGABgzgBgcYBF0gOYDgAAFgB4BBzBjgB4JAUgB4BB6gxQNgEYBBjBvgB4JA4hJgABlB4gC4CBtBlgl4GBggAgCAgg/AAgC4DgeYGgAYBgTAAggIJd9dWR0giYCB1gG4AgA4DgAACAhg0AKg6gBhHQAFwgp4CgAAHBIBpBsgPwAhAACCpB0hZQAgPgChbIAgHgDgKQDBGgFwAg4QAdob2ZlByAgFJdTIE1QBFBHAtAyAvA0AvBEAgBBgNYAdpbyBFBugXAABkgDgB",Ia:!0,Ja:[176,665],size:810},{data:"IACUBtFvBmgA4BcQbWZoBkgA4BgAACABgAYBd8dHJhgC4CAcB0gC4CACAAAqgC4FgAYBAIgBIEgGYBgDYABkB0gGYFgAACBIgGYAB1BugAwAACAFgBYBAMgAYBCcgJwFA4gAgBCrgAYFCqgBYgcIlm1kBhB0DRC/DlDDBCA8DADTDJEggCQAcSS2aBACAEAGALBcCIACAJACAIAJgQIAcJ/AGAABAQgAQAdfwBgMAoAZgB4AeB/yAGACCGAIBCAAAggVgABggGAAcFFUKeBsAACuBAAEgRQAgXQAcP8ARWDLAEAAA5BAB7AkAAAbCVDAAMCbD2CiA8gNIBcPAMBAgTYAeC8AFgDAgBoBc9QLWyDZgaIAgD4WcYALblBwADAmD9CoCPgDIBcDwDAQgAoAdgvABYAwgAwACjCpZpgACEdVMAFtDKDgAjgVIACDDwgvQCBkBTBUa0gACQCngVQHBwhEwCALAiCaalgACRgqoOA0gqiWCwgqi5hVSYC5gqoOCZgqlBCqh/9SC+h/9TC1",Ia:!0,Ja:[44],size:2346},{$:2048,O:48E3},{$:12288,O:48E3},"xheaac-dash",32,"2.0"];},72041:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(70349);b.W=[{data:"hlIhALhlJxDihlJhB+hlJKAxhlI5D1hlIFCphlINCZhlIhB1hlIHBnhlICBfhlICD6gAQAAEgd4DAFBQhlIBBihlI2cEHXPzADBhCAAVDIgPYACggJYAcB/gCKDZBghlT6",Ia:!0,Ja:[176,666],size:811,Oa:t.W[0]},{data:"klJlD6gAYBBVgAYFBWgBYgAQCsklICfUf+YDBiklI2cEHXPzADBhCAAVDIgVAAegAEABD+AACKDZBgklYABNklYCcCQIejDUAQgFAAgAAFADBGCAgF4BgAAADBB4hKoAAGgCYFBRkmoEgFIgkn4AewkCHoD1AEgRAAgEgGDRCgAYgjwBAAAwBegM4ADBgCgDBfDgAGhACYgACTCmhoAAdhIEPYD2ACAVhLIIALAlg4QACBZLgAE0gqlSBKgqgVCDhVM7hVVTh///gqrAhVVTiqlTh///gqnm",Ia:!0,Ja:[44],size:4416,Oa:t.W[1]},{$:2048,O:48E3},{$:12288,O:48E3},"xheaac-dash",64,"2.0"];},47718:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(70349).W[0];a=a(72041);b.W=[{data:"hlIhAGhlJxDdhlJhB5hlJKAshlI5DwhlIFCkhlINCUhlIhBwhlIHBihlICBahlICgFoBB3hPQDAFBLhlIBAihlI2cEwArkAADABQgBoAcA/wBFBsCwhkpzAEhkqE",Ia:!0,Ja:[176,661],size:806,Oa:t},{data:"gogBBoon4VBQon4FAgon4FA6on4IoRAAgAwDooYUAYooYEAAooYCoLwAgAAABwgCwFAIoiYCfLP+VjAioiY3fACuQADABQgBoAcA/wBFBsCwgSQAAXocwAClCkojoAocwCDQgNQABooZICBObSgACUDbAwor4AhYgCC9DpZpgADtB0gf79Bogf79BAg//9Bagf79Bxgf79BGgf79Bpgf79B9gf79BTgf79B1g//9Bwgf79Bygf79Brif/9Bfmf/9Bjgf79B2gf79Bmgf79BJgf79B5",Ia:!0,Ja:[44],size:6256,Oa:a.W[1]},{$:2048,O:48E3},{$:12288,O:48E3},"xheaac-dash",96,"2.0"];},43051:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.Zmb=b.RRb=void 0;b.qVc=function(d){return {Tb:d[0],La:d[1],Ea:d[2],duration:d[3],profile:d[4],bitrate:d[5],width:d[6],height:d[7],gYa:d[8],hYa:d[9]};};b.pVc=function(d){return {Tb:d[0],La:d[1],Ea:d[2],duration:d[3],profile:d[4],bitrate:d[5],channels:d[6]};};b.RRb={padding:{"16:9":{h264:{23976:function(){return a(6350);},24:function(){return a(937);},25:function(){return a(6153);},2997:function(){return a(32477);},30:function(){return a(19034);}},h264hpl:{23976:function(){return a(98989);},24:function(){return a(5339);},25:function(){return a(95350);},2997:function(){return a(4029);},30:function(){return a(75034);}},"hevc-main10":{23976:function(){return a(56803);},24:function(){return a(51914);},25:function(){return a(44661);},2997:function(){return a(5066);},30:function(){return a(10124);},50:function(){return a(23259);},5994:function(){return a(33781);},60:function(){return a(98640);}},av1:{23976:function(){return a(83295);},24:function(){return a(77013);},25:function(){return a(64826);},2997:function(){return a(60939);},30:function(){return a(58097);},50:function(){return a(50640);},5994:function(){return a(56130);},60:function(){return a(17826);}}},"4:3":{h264:{23976:function(){return a(46977);},24:function(){return a(47976);},25:function(){return a(45185);},2997:function(){return a(5801);},30:function(){return a(26931);}},h264hpl:{23976:function(){return a(26776);},24:function(){return a(25378);},25:function(){return a(41470);},2997:function(){return a(6320);},30:function(){return a(59375);}},"hevc-main10":{23976:function(){return a(56E3);},24:function(){return a(21610);},25:function(){return a(96660);},2997:function(){return a(35455);},30:function(){return a(88354);},50:function(){return a(90090);},5994:function(){return a(35619);},60:function(){return a(13947);}},av1:{23976:function(){return a(61547);},24:function(){return a(81396);},25:function(){return a(64332);},2997:function(){return a(81647);},30:function(){return a(15871);},50:function(){return a(79196);},5994:function(){return a(3338);},60:function(){return a(7937);}}}}};b.Zmb={silence:{heaac:{64:function(){return a(54468);},96:function(){return a(39532);},128:function(){return a(46871);}},ddp:{192:function(){return a(80463);},256:function(){return a(73502);},384:function(){return a(86252);},448:function(){return a(27443);},640:function(){return a(75452);}},xheaac:{32:function(){return a(70349);},64:function(){return a(72041);},96:function(){return a(47718);},192:function(){return a(95426);}}}};},61547:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(83295);b.W=[{data:"hYTzgAgCDwhYTOgagAgaQAhYRJeHn/eNBTC4AIhYQcBUgIgBA4gAYEhYR4",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"guhdA6gugFBUgrgNAXgB4FgA4GgugYDKgugQeHn/eNBTC4AIgpIAgugVdmTI+fB6BeBfBlCrB1DWDAAyAfgtwWf0N2MUDTBHBwAyAZgtQQfbGvSMC6A9AYgtIRfeCd0IgmwBgtIAAVgtIQAFAsDwgCwBgtAODaDKDvgs4C",Ia:!0,Ja:[44],size:360,Oa:t.W[1]},{$:1001,O:24E3},{$:6006,O:24E3},"av1-main-L30-dash-cbcs-prk",64,320,240,1,1];},81396:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(61547);b.W=[{data:"hYX/hYQOCghYQugpgBgAYChYRXBwhYQVDogBoG",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"gs41Dogs5yCggs65",Ia:!0,Ja:[44],size:360,Oa:t.W[1]},{$:1E3,O:24E3},{$:6E3,O:24E3},"av1-main-L30-dash-cbcs-prk",64,320,240,1,1];},64332:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(81396);b.W=[{data:"hYRABhCohYTUga4EhYTyCGCjhYQpAaC4gAYEhYRWATCIhYQe",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"gQIBCVgs4VB9gs4tA8gs4JAFgAYBCdgs4hgB4GARgr4KgrwCCzgrwLCGCjgrwNBgAKAogrwGCvCPACgrwTAEgrwDBEgfAAAggrwAgnoAgrwYgC4AAogrwxgDQHgrwCgo4B",Ia:!0,Ja:[44],size:328,Oa:t.W[1]},{$:1E3,O:25E3},{$:5E3,O:25E3},"av1-main-L30-dash-cbcs-prk",64,320,240,1,1];},81647:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(61547);b.W=[{data:"hYRAB1AwhYTUga4EhYTyDUDDhYQpAegN4BgAYChYR4",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"gs6tDUDDgs61",Ia:!0,Ja:[44],size:360,Oa:t.W[1]},{$:1001,O:3E4},{$:6006,O:3E4},"av1-main-L30-dash-cbcs-prk",64,320,240,1,1];},15871:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(81647).W[0];a=a(81396);b.W=[{data:"hYX/hYQOCghYQuBQgAYEhYRXBwhYQVDogBoG",Ia:!0,Ja:[180,687],size:707,Oa:t},{data:"gs6tDUDDgs61",Ia:!0,Ja:[44],size:360,Oa:a.W[1]},{$:1E3,O:3E4},{$:6E3,O:3E4},"av1-main-L30-dash-cbcs-prk",64,320,240,1,1];},79196:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(81396).W[0];a=a(50640);b.W=[{data:"hYRADDBQhYTUga4EhYTxADANBDhYQmgUoBAuAYgAYEhYRWAnAQhYQe",Ia:!0,Ja:[180,687],size:707,Oa:t},{data:"hARdA+hAQFBsg8QVgB4GAug9QOgB4FgA4GhAQcAvhAQQeHn/eNBTC4AIAyAnhAQadjiAHSAdAFAQAACBBVBZAyAfg/YWf0N2MUDTBHBwAyAZg+4QfbGvSMC6A9gJwAg+wRfeCd0IhFYAguwAg+wPAFAsDwg04Eg+oODaDKDvg+gDAWg+gRgGgBAyAUg+YQB9DzgJQCgDAAg+QODVDJA+gCoBg+IPAHg+AC",Ia:!0,Ja:[44],size:497,Oa:a.W[1]},{$:1E3,O:5E4},{$:1E4,O:5E4},"av1-main-L30-dash-cbcs-prk",64,320,240,1,1];},3338:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(61547).W[0];a=a(56130);b.W=[{data:"hYRADqBghYTUga4EhYTxADCpCDhYQmgUoBAyAQgAYEhYRWA6CnhYQe",Ia:!0,Ja:[180,687],size:707,Oa:t},{data:"hTpdA6hToFBshIoVAWgB4FgA4OgD4GAugC4VgG4ehToZCZhToQeHn/eNBTC4AIhOQAhToWeTI+feGXfZat11CwAyAfhS4Wf0N2MUDTBHBwAyAZhSYQfbGvSMC6A9AYhSQSfeCd0IhY4Agz4AhSQPAFAsDwgCwBhSIODaDKDvhSADAUhSAQB9DzgCoBhR4ODVDJA+gCoBhRwPAHhRoDAWhRoRgOwCgGAAhRgODQCtBIgCoBhRYPArBogRYEhRQODLCeBQgCoBhRIODJCShygAgCoAhRAODHgGwAhQ4B",Ia:!0,Ja:[44],size:648,Oa:a.W[1]},{$:1001,O:6E4},{$:15015,O:6E4},"av1-main-L30-dash-cbcs-prk",64,320,240,1,1];},7937:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(3338);b.W=[{data:"hYX/hYQOCghYQugWoBgAYChYRXCYhYQVDogBoG",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"hQ41DohQ7DCghQ+I",Ia:!0,Ja:[44],size:648,Oa:t.W[1]},{$:1E3,O:6E4},{$:15E3,O:6E4},"av1-main-L30-dash-cbcs-prk",64,320,240,1,1];},46977:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(6350);b.W=[{data:"hdjvgAgChdlACACIhdgdhNAFhdiM",Ia:!0,Ja:[176,729],size:749,Oa:t.W[0]},{data:"h/v/h/v7",Ia:!0,Ja:[44],size:1022,Oa:t.W[1]},{$:1001,O:24E3},{$:6006,O:24E3},"playready-h264mpl30-dash",64,320,240,1,1];},47976:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(937);b.W=[{data:"hdzvgAgChd1ACACIhdwfhNQFhdyM",Ia:!0,Ja:[176,731],size:751,Oa:t.W[0]},{data:"h/v/h/v7",Ia:!0,Ja:[44],size:1022,Oa:t.W[1]},{$:1E3,O:24E3},{$:6E3,O:24E3},"playready-h264mpl30-dash",64,320,240,1,1];},45185:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(6153);b.W=[{data:"hdzvgAgChd1ACAhLABhdwdhNQFhdyM",Ia:!0,Ja:[176,731],size:751,Oa:t.W[0]},{data:"h7X/h7XY",Ia:!0,Ja:[44],size:987,Oa:t.W[1]},{$:1E3,O:25E3},{$:5E3,O:25E3},"playready-h264mpl30-dash",64,320,240,1,1];},5801:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(32477);b.W=[{data:"hdjvgAgChdlACACIhdgdhNAFhdiM",Ia:!0,Ja:[176,729],size:749,Oa:t.W[0]},{data:"h/v/h/v7",Ia:!0,Ja:[44],size:1022,Oa:t.W[1]},{$:1001,O:3E4},{$:6006,O:3E4},"playready-h264mpl30-dash",64,320,240,1,1];},26931:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(19034);b.W=[{data:"hdzvgAgChd1ACACIhdwfhNQFhdyM",Ia:!0,Ja:[176,731],size:751,Oa:t.W[0]},{data:"h/v/h/v7",Ia:!0,Ja:[44],size:1022,Oa:t.W[1]},{$:1E3,O:3E4},{$:6E3,O:3E4},"playready-h264mpl30-dash",64,320,240,1,1];},26776:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(98989);b.W=[{data:"hdzvgAgChd1BABhdwfhNQFhdyM",Ia:!0,Ja:[176,731],size:751,Oa:t.W[0]},{data:"h/v/h/v7",Ia:!0,Ja:[44],size:1022,Oa:t.W[1]},{$:1001,O:24E3},{$:6006,O:24E3},"playready-h264hpl30-dash",64,320,240,1,1];},25378:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(5339);b.W=[{data:"heDvgAgCheFBABheAhhNgFheCM",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"h/v/h/v7",Ia:!0,Ja:[44],size:1022,Oa:t.W[1]},{$:1E3,O:24E3},{$:6E3,O:24E3},"playready-h264hpl30-dash",64,320,240,1,1];},41470:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(95350);b.W=[{data:"heDvgAgCheFBABheAhhNgFheCM",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"h7X/h7XY",Ia:!0,Ja:[44],size:987,Oa:t.W[1]},{$:1E3,O:25E3},{$:5E3,O:25E3},"playready-h264hpl30-dash",64,320,240,1,1];},6320:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(4029);b.W=[{data:"hdzvgAgChd1BABhdwfhNQFhdyM",Ia:!0,Ja:[176,731],size:751,Oa:t.W[0]},{data:"h/v/h/v7",Ia:!0,Ja:[44],size:1022,Oa:t.W[1]},{$:1001,O:3E4},{$:6006,O:3E4},"playready-h264hpl30-dash",64,320,240,1,1];},59375:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(75034);b.W=[{data:"heDvgAgCheFBABheAhhNgFheCM",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"h/v/h/v7",Ia:!0,Ja:[44],size:1022,Oa:t.W[1]},{$:1E3,O:3E4},{$:6E3,O:3E4},"playready-h264hpl30-dash",64,320,240,1,1];},56E3:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(56803);b.W=[{data:"heH/heDu",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"hNMtDABahNM3",Ia:!0,Ja:[44],size:618,Oa:t.W[1]},{$:1001,O:24E3},{$:6006,O:24E3},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,1,1];},21610:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(51914);b.W=[{data:"heH/heDu",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"hNktDABahNk6",Ia:!0,Ja:[44],size:621,Oa:t.W[1]},{$:1E3,O:24E3},{$:6E3,O:24E3},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,1,1];},96660:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(44661);b.W=[{data:"heH/heDu",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"hHkgDABahHkX",Ia:!0,Ja:[44],size:573,Oa:t.W[1]},{$:1E3,O:25E3},{$:5E3,O:25E3},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,1,1];},35455:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(5066);b.W=[{data:"heH/heDu",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"hNUtDABahNU4",Ia:!0,Ja:[44],size:619,Oa:t.W[1]},{$:1001,O:3E4},{$:6006,O:3E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,1,1];},88354:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(10124);b.W=[{data:"heH/heDu",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"hNctDABahNc5",Ia:!0,Ja:[44],size:620,Oa:t.W[1]},{$:1E3,O:3E4},{$:6E3,O:3E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,1,1];},90090:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(23259);b.W=[{data:"heH/heDu",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"hk9hDABahk/B",Ia:!0,Ja:[44],size:808,Oa:t.W[1]},{$:1E3,O:5E4},{$:1E4,O:5E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,1,1];},35619:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(33781);b.W=[{data:"heH/heDu",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"iCWiDABaiCX/iCRq",Ia:!0,Ja:[44],size:1043,Oa:t.W[1]},{$:1001,O:6E4},{$:15015,O:6E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,1,1];},13947:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(98640);b.W=[{data:"heH/heDu",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"iCmiDABaiCn/iChs",Ia:!0,Ja:[44],size:1045,Oa:t.W[1]},{$:1E3,O:6E4},{$:15E3,O:6E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,1,1];},83295:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(9253);b.W=[{data:"g/wChxYKdhdjAxhx4QACCfhx5wABDzhx5XDggAYBAOgDgDCPhtZSA6htY8AAD6htYEAACuhtYMAACegzgChtYXDggaQBhtYyAhgKoAcxQ4EFBMAAAKAThWgBAPCkgHAAB3hXABcFiO/DBGCpDchYwChYQIgyoAgAIChYQJBZgAQAAZDYgAYEhYR4",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"g3YCg6YVCGg6YtBEg6YEAGg6YGCmgAYBBAACBAgDYDBZABBBgA4Dgd4ACBgA4DAYgB4FgA4GgC4Gg3YHAkAUAYEUAYgBABDXg3YCAKATgX4BAPCkgPQAB3gdIBcFiO/DBGCpDcAEAyApAQABCFAAAIEgeIBBAEC0BaDMC1B6A+DZDgBIAxB6AeBlBjA1BEDKCdAICYARCYBuAhAICEDED+CDBgAyAjAoAFAfghoCdD0AccAwDEAEAIAACADQAKCWCxAIBdA9D8DADpAMB3C/APC6CRAFCAAyAaAoACCfgiAAckgUSQAJAkBBAECECIADgXYAfdqKPnBMB5DNAwAyAWAwADA+gHwAeSAougAYBgCiCJAJAQAGCADfCfBTAXCJAaABCogDQBcGfgmkBJgDQAhKoABYgDQEfdxAVPAggC4BcIPg22gC4BgGQHfbKTytCAgGQACY",Ia:!0,Ja:[44],size:373,Oa:t.W[1]},{$:1001,O:24E3},{$:6006,O:24E3},"av1-main-L30-dash-cbcs-prk",64,480,270,1,1];},77013:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(83295);b.W=[{data:"hYX/hYQOCghYQugpgBgAYChYRXBwhYQVDogBoG",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"gug1DoguhyCggujG",Ia:!0,Ja:[44],size:373,Oa:t.W[1]},{$:1E3,O:24E3},{$:6E3,O:24E3},"av1-main-L30-dash-cbcs-prk",64,480,270,1,1];},64826:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(77013);b.W=[{data:"hYRABhCohYTUga4EhYTyCGCjhYQpAcCYgAYEhYRWATCIhYQe",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"gRABCVgugVB9gugtA8gugJAFgAYBCdgughgB4GARgtgKgtYCC/gtYLCGCjgtYNBgAKAogtYGCvCPACgtYZAEgtYDBEgf4AAggtYAgowAgtYcgDYAAogtYygDQHgtYDgqYB",Ia:!0,Ja:[44],size:340,Oa:t.W[1]},{$:1E3,O:25E3},{$:5E3,O:25E3},"av1-main-L30-dash-cbcs-prk",64,480,270,1,1];},60939:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(83295);b.W=[{data:"hYRAB1AwhYTUga4EhYTyDUDDhYQpAggN4BgAYChYR4",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"guitDUDDgujC",Ia:!0,Ja:[44],size:373,Oa:t.W[1]},{$:1001,O:3E4},{$:6006,O:3E4},"av1-main-L30-dash-cbcs-prk",64,480,270,1,1];},58097:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(60939).W[0];a=a(77013);b.W=[{data:"hYX/hYQOCghYQuBYgAYEhYRXBwhYQVDogBoG",Ia:!0,Ja:[180,687],size:707,Oa:t},{data:"guitDUDDgujC",Ia:!0,Ja:[44],size:373,Oa:a.W[1]},{$:1E3,O:3E4},{$:6E3,O:3E4},"av1-main-L30-dash-cbcs-prk",64,480,270,1,1];},50640:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(77013);b.W=[{data:"hYRADDBQhYTUga4EhYTxADANBDhYQmgdwBAwhJQBgAYChYRWAnAQhYQe",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"gRABDCgugVCqgugtgBgAgugIgFYCDKgAYBBFgugFBygugVgB4GAwgB4NAXgB4FgA4GgC4GAWgygKgAICgzACgEYAgzAKADANBDgzAJAugzAACEAgAGgEgAAIgzABfYA+mUCwCfAAApAYAyC9AdBNAmDtAABiBhBEChBiA0CxC7DcBoCzDhDtDaDmAnD9BAgvAAgzoAAJgzoEgIQAcUIIQCgzoWAEgzoDBDCwg4QCgEgAgzoKAXg3IBgHwABJABBEgG4AAog3IFgzwDg2wCA8gDAADbgwYJgzYDgwYAC4g2wCB8AOA2g6IKgzwFg6IAgJwAcGPQTShBAMg6QDcVMAp8AKAkgJwKfYsUrPgJoCgDIAAOgJoBhAgKfWKr8igCwBcQPBJIhAYKfTZ6lkhAQB",Ia:!0,Ja:[44],size:515,Oa:t.W[1]},{$:1E3,O:5E4},{$:1E4,O:5E4},"av1-main-L30-dash-cbcs-prk",64,480,270,1,1];},56130:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(83295).W[0];a=a(50640);b.W=[{data:"hYRADqBghYTUga4EhYTxADCpCDhYQmgdwBA0DQgAYEhYRWA6CnhYQe",Ia:!0,Ja:[180,687],size:707,Oa:t},{data:"gdoBDvhAQVDXhAQZDphAQRCMhAQJAPgAYBD3gAYBBAhAQNg/QOg9QOg+QOhDQGgC4OgG4eAbhFQIhE4ChFYDgAwCgXoBCvhF4ICkgF4ACpCDhF4JAphF4ACDCAhFYAhF4De0WsyEAUBXA2B4ASAMBeCHCZBYDNBRAyCnBCAmAEBmAbCIBCAhAxA/CgDYhFQBAOhFQDBCCQgFYAAQBEhFQXAHhFQEhQgBhJ4ChFQMADhFQEAwAIAghIwAhFQSg4IHg+YEgC4AAEg4QBg+YKhE4Fg+gCAIhIQDCKCggGQGhBwChEoCgGIBhLIBhBYOAMgCwEhBYNhN4CAKhN4EgSYIhN4GAQhN4EgJIHfRRKVYgCwBASgSQNfO7A6wgSIEAWhQwDgSIIfM05YQgCwBAYhQwEgI4HDKDwBygLwCAahToNfJUUDghToB",Ia:!0,Ja:[44],size:670,Oa:a.W[1]},{$:1001,O:6E4},{$:15015,O:6E4},"av1-main-L30-dash-cbcs-prk",64,480,270,1,1];},17826:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(56130);b.W=[{data:"hYX/hYQOCghYQugpgBgAYChYRXCYhYQVDogBoG",Ia:!0,Ja:[180,687],size:707,Oa:t.W[0]},{data:"hTo1DohTrDCghTue",Ia:!0,Ja:[44],size:670,Oa:t.W[1]},{$:1E3,O:6E4},{$:15E3,O:6E4},"av1-main-L30-dash-cbcs-prk",64,480,270,1,1];},6350:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.W=[{data:"IAcgZnR5BwBpBzBvA2gBYBABgA4CBkBzBtgAIBdpeGRhBzBogCQAACDNBtFvB2gDYBdsbXZoBkgA4BgAAJBdDAgAwDABgAQDgAAIgBgLgB4QBAgDwNgAANACgAQBchdHJhBrgBYBBcB0BrgOYDgIIKgLoOgO4rABCqgAgBDwgBwDckZWR0BzgA4BccZWxzB0gGIMAHDSgBIEcBmW1kBpBhgkYCgA4AgfYUBVDEgBgDAtgDoABsBygDIGd2aWRlgFIKBNgNAAgIgABIBhBugEQABlgEYCcBRG1pBuBmgBABAUB2BtgbgPAkgFQAgDYDccZHJlgA4CgSgGcMdXJsAggtQFAEgVwABiBsgBYBC4gA4ABzgSgGgEYCeoYXZjAxgkgWABgfoAgewABIgBABgAYCgowcgAAGAYH/gAoBAugKoBdDAU1AAND/DhAAAWBngA4BDsGgD9CHAIgDAAAfgJIAcF3AB4ChBMCwgJQAcFaOvjDLgT4CAQBwhGgABwgA4BAEgAYBADgcYCBig5IAgrgBACguQBBnDggAYEgEYAgW4AgvADgAAGgB4BBzBjgB4JAUgB4BB6gRYNgEYBBjBvgB4JA4hRgABlB4gC4CBtBlgzAGAXhUgCAggNwAgC4DgcIGgAYBADDpgBoG",Ia:!0,Ja:[176,729],size:749},{data:"AAAAtm1vb2YAAAAQbWZoZAAAAAAAAAABAAAAnnRyYWYAAAAYdGZoZAACAAoAAAABAAAAAQAAA+kAAAAQdGZkdAAAAAAAAAAAAAAAXHRydW4AAA4BAAAABgAAAL4AAALwAmAAAAAAB9IAAAAQAWEAAAAAE40AAAAOAWEAAAAAB9IAAAAOAaEAAAAAAAAAAAAOAaEAAAAAA+kAAAAWAWEAAAAAB9IAAAASc2R0cAAAAAAmFhYaGhYAAANIbWRhdAAAAq4GBf//qtxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDggcjI3MjcgN2QwMjZlOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTYgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0xIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz03IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MyBiX3B5cmFtaWQ9MiBiX2FkYXB0PTEgYl9iaWFzPTAgZGlyZWN0PTEgd2VpZ2h0Yj0xIG9wZW5fZ29wPTAgd2VpZ2h0cD0yIGtleWludD0yNTAga2V5aW50X21pbj0yMyBzY2VuZWN1dD00MCBpbnRyYV9yZWZyZXNoPTAgcmNfbG9va2FoZWFkPTQwIHJjPWNyZiBtYnRyZWU9MSBjcmY9MjMuMCBxY29tcD0wLjYwIHFwbWluPTAgcXBtYXg9NjkgcXBzdGVwPTQgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAADpliIQAN//+9vD+BTZWBFCXEc3onTMfvxW4ujQ3vc4AAq1PEG+4LBNpT2AQQAABnxHdErgspBAQL0rqAAAADEGaJGxC//6MsAADagAAAApBnkJ4hf8AAIOAAAAACgGeYXRCvwAAtoAAAAAKAZ5jakK/AAC2gAAAABJBmmVJqEFomUwIV//+OEAADUg=",Ia:!1,Ja:[44],size:1022},{$:1001,O:24E3},{$:6006,O:24E3},"playready-h264mpl30-dash",64,320,240,4,3];},937:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(6350);b.W=[{data:"hdghDPhdhxAjhdh9DQhdgFCbhdhSBGhdg9AGhdgFC6hdgNCqhdhTAwhdgJAYhdgKhZYAgAgCABCAhdwohJoBgAYDhdxXgO4ChdwSDogBoG",Ia:!0,Ja:[176,731],size:751,Oa:t.W[0]},{data:"h/o1Doh/otDQh/oJCIh/oJgC4Ch/oSgL4Ch/oGgEYCh/v/h/pBg9AAh/sP",Ia:!0,Ja:[44],size:1022,Oa:t.W[1]},{$:1E3,O:24E3},{$:6E3,O:24E3},"playready-h264mpl30-dash",64,320,240,4,3];},6153:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(937);b.W=[{data:"hdw8BhCohdz4gfYEhd0ACQhdwoB+CQgAYEhdxWATCIhdwe",Ia:!0,Ja:[176,731],size:751,Oa:t.W[0]},{data:"gCoBCph/oVCRh/otBQh/oJAFgAYBCxh/o9ARh+ILgCgBAyh+H/h+AuA1h+CKAzh+ABDsC+h+AAAUDIh+ABcsxdpKBwA+AqCkGAB3A0DAhg4AcW5YhODXD+DzDeDPCABpgBoAcKgHlYBoAkA0CnARCRDmDohgACh+AEC/h2AHh+Al",Ia:!0,Ja:[44],size:987,Oa:t.W[1]},{$:1E3,O:25E3},{$:5E3,O:25E3},"playready-h264mpl30-dash",64,320,240,4,3];},32477:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(6350).W[0];a=a(6153);b.W=[{data:"hdg8B1Awhdj4gfYEhdj8AHBThdgpCBDYgAYEhdh4",Ia:!0,Ja:[176,729],size:749,Oa:t},{data:"gBoBC2h7QVCeh7QZDph7QRBch7QJAGgAYBC+h7QJDSh7QJCNh7QJgC4Ch7QSgL4CAWgEYJASh8wLAWgEIBBIh8//h88KB/h7IIh84BgBoBDph84IgBoGASgHIAdlSahBBoCZBMAIBPD/D9DxgCAAAfDg",Ia:!0,Ja:[44],size:1022,Oa:a.W[1]},{$:1001,O:3E4},{$:6006,O:3E4},"playready-h264mpl30-dash",64,320,240,4,3];},19034:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(937).W[0];a=a(32477);b.W=[{data:"hdw8B1Awhdz4gfYEhd0ADghdwoCCgBwBgAYChdx4",Ia:!0,Ja:[176,731],size:751,Oa:t},{data:"h/o1Doh/otDQh/oJCIh/oJgC4Ch/oSgL4Ch/oGgEYCh/v/h/tU",Ia:!0,Ja:[44],size:1022,Oa:a.W[1]},{$:1E3,O:3E4},{$:6E3,O:3E4},"playready-h264mpl30-dash",64,320,240,4,3];},98989:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(937).W[0];a=a(6350);b.W=[{data:"hd0VDShd0OgM4AhdwCAXBngA4BCsDZFBD7AOAQgDIAc+kAALC4AADxBCCZBggJYAAGhdoCAigiQChdwZBnDggAYEhdxXhUwChdwSDpgBoG",Ia:!0,Ja:[176,731],size:751,Oa:t},{data:"h/t2Azh/oDgD4Ah/pZhWIBh/v/h/od",Ia:!0,Ja:[44],size:1022,Oa:a.W[1]},{$:1001,O:24E3},{$:6006,O:24E3},"playready-h264hpl30-dash",64,320,240,4,3];},5339:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(98989).W[0];a=a(937);b.W=[{data:"hdwhDRhdxxAlhdx9DQhdwFCdhdxSBIhdw9AIhdwFC8hdwNCshdxTAyhdwJAZhdwLhZgAgAgCgAoAheAphJ4BgAYDheBXgO4CheASDogBoG",Ia:!0,Ja:[176,733],size:753,Oa:t},{data:"h/t2Azh/oDgD4Ah/pZhWIBh/v/h/od",Ia:!0,Ja:[44],size:1022,Oa:a.W[1]},{$:1E3,O:24E3},{$:6E3,O:24E3},"playready-h264hpl30-dash",64,320,240,4,3];},95350:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(5339).W[0];a=a(6153);b.W=[{data:"heA8BhCoheD4gfYEheEBAgheApB+CQgAYEheBWATCIheAe",Ia:!0,Ja:[176,733],size:753,Oa:t},{data:"h7VpAzh7QDgD4Ah7RZhRwBh7X/h7QH",Ia:!0,Ja:[44],size:987,Oa:a.W[1]},{$:1E3,O:25E3},{$:5E3,O:25E3},"playready-h264hpl30-dash",64,320,240,4,3];},4029:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(98989).W[0];a=a(32477);b.W=[{data:"hdw8B1Awhdz4gfYEhdz9AOCmhdwqCBDYgAYEhdx4",Ia:!0,Ja:[176,731],size:751,Oa:t},{data:"h/t2Azh/oDgD4Ah/pZhWIBh/v/h/od",Ia:!0,Ja:[44],size:1022,Oa:a.W[1]},{$:1001,O:3E4},{$:6006,O:3E4},"playready-h264hpl30-dash",64,320,240,4,3];},75034:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(5339).W[0];a=a(19034);b.W=[{data:"heA8B1AwheD4gfYEheEBDAheApCCgBwBgAYCheB4",Ia:!0,Ja:[176,733],size:753,Oa:t},{data:"h/t2Azh/oDgD4Ah/pZhWIBh/v/h/od",Ia:!0,Ja:[44],size:1022,Oa:a.W[1]},{$:1E3,O:3E4},{$:6E3,O:3E4},"playready-h264hpl30-dash",64,320,240,4,3];},9253:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(6350);b.W=[{data:"hdggADhcgAhdhwDAhdiEACgqYAhdhRDjhdg9CjhdgEABBXhdgMABBHBohdhSC6gKoBhdgAACgPgCCQgfAEgI4AH9H6gBAAAPADCggIoBcYQAEMABgFIAgEAChboAgEIBhcQBgAQAddmLAkChgDgBBtBCEBgDINegCggPATBnCYC5AkApAQATC4BCCwGJfl9/o8DZDLD6A5CUDJB7gAgAezL9GFAIBOAiCxAmBeD+COBsDLD0BhBEBOBqDECbD2BlD6AwCmCcCVCUDfCjAKBKDDCaKACCg0QDcAu4H0BVDvB+AACXBAASDwABAuCAAlDhCigOIBcHRAHBByD2A8gVQChvAOAThlwAg0gABuBjBshhgAgEwAgAIChxYIhwgAgAQAAiCwgAYEhxZ4",Ia:!0,Ja:[176,888],size:908,Oa:t.W[0]},{data:"h/pcAABnh/oJAkh/oJAjh7IJgBYAh/oIgBYFgL4DAih/oaABAeh/oEgNIAdOAYEBADgboCAWgBIAgSYACggHgBcAIPWAAKD8CAgAoDCQgDICANgDIAABgSIBgDAAgAQBAEgCACcuJgGsB9DgCECCAkC/D/D8BhgAwAczjsxSCKBCD8BJgDQBgEAAADA8gFIDBXDAgeQAgBIEDagIQOAHgCACcPAgHgAmBYDCA+DwCYgCQCCjgCQCAMgEYFggABgMoDgEQCAWAogEQLgIwGgpoAgAYBgCACAOgZIAfgDjjCARC8CVgBoBBTgOYAgEQIgNQCga4DgEQCAeBIgEQKALgEQEAEgM4JcovGEfB4gM4F",Ia:!0,Ja:[44],size:468,Oa:t.W[1]},{$:1001,O:24E3},{$:6006,O:24E3},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,4,3];},56803:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(5339).W[0];a=a(6350);b.W=[{data:"heDvgAgCheAgDSheCzBoBlB2heBQAfBoheACACgPgCCQgfAEgI4AH9H6gBAAAPhQoDhboFhLIFAAAThSYAghIABuBjBshOIAgBoAgAICheAIAAgJoBA1gFQBgAYCheBXhVACheASDpgBoG",Ia:!0,Ja:[176,733],size:753,Oa:t},{data:"h/pcAAD/h/oJAkh/oJAih7IJAjh/oJgBYFgL4DAhh/oaABC0h/oEgToAdAAQwBh/4AACAggGoBAACQgAgCgAQBddmLAkgDYBBtBCEBgDANegCggPATBnCYC5AkApAQATC4BCCwGJfl9/o8DZDLD6A5CUDJB7gAgAezL9GFAIBOAiCxAmBeD+COBsDLD0BhBEBOBqDECbD2BlD6AwCmCcCVCUDfCjAKBKDDCaKACCgSgEe7gfRVDvB+AACXBAASDwABAuCAAlDhgVYCdEAcFyD2A8gNoBggIAdOAYEBADguoCAWgBIAglYACggPoCcg9YAKD8CAgAoDCQgDICANgDIAABglIBgTIDAEgCACcuJgGsB9DgCECCAkC/D/D8BhgAwAczjsxSCKBCD8BJgDQBgEAAADA8gFIDBXDAgxQAgBIEDagIQOAHgCACcPAgHgAmBYDCA+DwCYgCQCCjgCQCAMgEYFgzABgMoDAOgEQBcWKMIRC8CVgBoBBTgJ4AgIoIg8gAgAYBgEQDgsAADgAOA4gEQSgNICgawDgEQCAeBIgEQKALgEQEAEgMwJcovGEIDegEAE",Ia:!0,Ja:[44],size:618,Oa:a.W[1]},{$:1001,O:24E3},{$:6006,O:24E3},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,4,3];},51914:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(56803);b.W=[{data:"heEVDQheFREBhdgBDggAYEheBXgRQCheASDogBoG",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"hNI1DohNIkg9ABhNIEDQhNIJCIhKIDhIoEgC4ChNISgL4ChNIGgEYChNIQC3hNIhBvhNJXgJIAgygCAAAxhNa1gEQChNYBgEQKhNhi",Ia:!0,Ja:[44],size:621,Oa:t.W[1]},{$:1E3,O:24E3},{$:6E3,O:24E3},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,4,3];},44661:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(51914);b.W=[{data:"heA8BhCoheD4gfYEheEtA9hdgBgAYCheBWATCIheAe",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"gCIBCphNgVCRhNgtBQhNgJAFgAYBCxhNglAihNgJgBYFgL4DARhMALgJgBCUhL6CAzhL7ZANhL4EA2DwgeQAgN4AgeQBhLwQgEIChLwBgEIF",Ia:!0,Ja:[44],size:573,Oa:t.W[1]},{$:1E3,O:25E3},{$:5E3,O:25E3},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,4,3];},5066:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(56803);b.W=[{data:"heA8B1AwheD4gfYEheEtBCgvQBgAYCheB4",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"hNJ1hKIAhNI+C1hNJ/DqBhhNK1gEQChNIBgEQKhNRi",Ia:!0,Ja:[44],size:619,Oa:t.W[1]},{$:1001,O:3E4},{$:6006,O:3E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,4,3];},10124:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(51914);b.W=[{data:"heA8B1AwheD4gfYEheEtBDgmgBgAYCheB4",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"hNh1AihNg/gWoAhNiBA9hNi1hAgChNgBhJARhNZa",Ia:!0,Ja:[44],size:620,Oa:t.W[1]},{$:1E3,O:3E4},{$:6E3,O:3E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,4,3];},23259:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(51914);b.W=[{data:"heA8DDBQheD4gfYEheEtBYgFQBgAYCheBWAnAQheAe",Ia:!0,Ja:[176,733],size:753,Oa:t.W[0]},{data:"gCIBDqhNgVDShNgtCMhNgJgFYCDyhNgNhMAFhNgnAigF4JgBYFgF4DgBYAgF4IgBYFhTgPAWhTgMhUAEACA+hUCCBlhUCShCoChUABhGwJhT4VATC8CTgGgCAigTIBhT5PhlQHdGGMIZC8CMgmIDhIgBgEIGAFgRIJA2gRIMgVgFgRgDgMoGAugRALgEIFAHgQ4KA+gQ4SAIhk4JBIhk4I",Ia:!0,Ja:[44],size:808,Oa:t.W[1]},{$:1E3,O:5E4},{$:1E4,O:5E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,4,3];},33781:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(56803).W[0];a=a(23259);b.W=[{data:"heA8DqBgheD4gfYEheEtBbDogAYEheBWA6CnheAe",Ia:!0,Ja:[176,733],size:753,Oa:t},{data:"hZYBArhk4UABAThk4ZDphk4RDIhk4JAPgEwBAzgA4BhRYAhk4EDShk4JCNhe4JgC4Ehk4QgL4Chk4GgF4Ohk4SgF4ygR4FALC7gO4NAbhsYQgAYCAahtABDohtAhBthtBXgZoBABDUDBhsy0gEIChswBhoQRhsrOgQ4HBmgQ4TAJgQ4JBWgQ4Ths4BgQ4IBOgQ4SALgQ4KBegQ4SAMgeABgEACAQgMoBdw6rGEAnB4gMwPANgIgGh1YAgEYAdol8YQCNDggIoE",Ia:!0,Ja:[44],size:1043,Oa:a.W[1]},{$:1001,O:6E4},{$:15015,O:6E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,4,3];},98640:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.W=void 0;t=a(51914).W[0];a=a(33781);b.W=[{data:"heA8DqBgheD4gfYEheEtBcgvwBgAYCheBWA6CYheAe",Ia:!0,Ja:[176,733],size:753,Oa:t},{data:"iCQ1DoiCQkhjgBiCQEDQiCQJCIh2QJgC4EiCQQgL4Ch8QGgF4Oh8QSgF4yiCQGC4gO4NiCQZDqiCQhBviCRXhLYBgAgCB5iCn/iChe",Ia:!0,Ja:[44],size:1045,Oa:a.W[1]},{$:1E3,O:6E4},{$:15E3,O:6E4},"hevc-main10-L30-dash-cenc-prk-do",64,320,240,4,3];},95316:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Gla=b.Yfa=b.GI=void 0;t=a(22970);t.__exportStar(a(38454),b);t.__exportStar(a(85017),b);d=a(68954);Object.defineProperties(b,{GI:{enumerable:!0,get:function(){return d.GI;}}});Object.defineProperties(b,{Yfa:{enumerable:!0,get:function(){return d.Yfa;}}});Object.defineProperties(b,{Gla:{enumerable:!0,get:function(){return d.Gla;}}});},67769:function(t,b,a){var g,e;function d(h){return e[h >> 6] + e[h & 63];}function n(h,k){(0,g.assert)(0 < k && 8 > k);return d((k - 1 << 8) + h);}function c(h){return d(1792 + h[0]) + d((h[1] << 4) + (h[2] >>> 4)) + d((h[2] << 8 & 3840) + h[3]);}function f(h){return 43 === h?62:47 === h?63:58 > h?h - 48 + 52:91 > h?h - 65:h - 71;}Object.defineProperties(b,{__esModule:{value:!0}});b.O$c=function(h,k){var p,r,q,u,v,w;function l(x,y){var A;A=p;x=r - y - x;(0,g.assert)(1 <= x);(0,g.assert)(16384 > x - 1);(0,g.assert)(2 <= y && 512 > y - 2);y=d(2048 + (x - 1 >>> 3)) + d(((x - 1 & 7) << 9) + (y - 2));p=A + y;q=r;u=0;}function m(x,y,A){return h.subarray(x,x + A).every(function(z,B){return z === h[y + B];});}p="";r=k || 0;q=r;u=0;for(k=0;r < h.byteLength;){v=q;w=u;if(0 !== u && 513 > u && h[r] === h[q + u])(++u,++r);else if(513 === u)(l(v,w),k=0);else {for(--q;0 <= q && q >= r - u - 16384 && (h[v] !== h[q] || 0 < u && !m(r - u,q,u + 1));)--q;if(0 <= q && q >= r - u - 16384)(++u,++r);else if(v === r || 1 === w){r-=w;for(v=1;7 > v && h[r + v] === h[r];)++v;p+=n(h[r],v);r+=v;k=1 < v?0:k + 1;4 === k && (p=p.slice(0,p.length - 8),p+=c(h.subarray(r - 4,r)));q=r;u=0;}else (l(v,w),k=0);}}1 === u?p+=n(h[q],1):1 < u && l(q,u);return p;};b.ZCb=function(h,k){var v,w;function l(y,A){p(A);if(y + A <= u)r.set(r.subarray(y,y + A),u);else for(var z=0;z < A;++z)r[u + z]=r[y + z];u+=A;}function m(){var y;y=h.slice(q,q+=2);return (f(y.charCodeAt(0)) << 6) + f(y.charCodeAt(1));}function p(y){u + y > r.byteLength && (y=new Uint8Array(2 * r.byteLength),y.set(r,0),r=y);}for(var r=k || new Uint8Array(4096),q=0,u=k?k.byteLength:0;q < h.length;){v=m();if(v & 2048){w=m();l(u - (((v & 2047) << 3) + (w >>> 9) + 1),(w & 511) + 2);}else if(1792 === (v & 3840))(p(4),r[u++]=v & 255,w=m(),v=m(),r[u++]=w >>> 4,r[u++]=(w << 4 & 240) + (v >>> 8),r[u++]=v & 255);else {w=v & 255;v=(v >>> 8) + 1;p(v);for(var x=0;x < v;++x)r[u++]=w;}}return r.subarray(k?k.byteLength:0,u);};g=a(89707);e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";},68954:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.r8b=b.q8b=b.s8b=b.p8b=b.Gla=b.t8b=b.hXc=b.Yfa=b.aXc=b.GI=b.jXc=b.yN=void 0;d=a(85017);Object.defineProperties(b,{yN:{enumerable:!0,get:function(){return d.yN;}}});b.jXc=["padding"];b.GI=["h264","h264hpl","hevc-main10","av1"];b.aXc=["16:9","4:3"];b.Yfa={h264:/h264mpl/,h264hpl:/h264hpl/,"hevc-main10":/hevc-main10/,av1:/av1/};b.hXc={h264:"playready-h264mpl30-dash",h264hpl:"playready-h264hpl30-dash","hevc-main10":"hevc-main10-L30-dash-cenc-prk-do",av1:"av1-main-L30-dash-cbcs-prk"};b.t8b=["silence"];b.Gla=["heaac","ddp","xheaac"];b.p8b={heaac:[64,96,128],xheaac:[32,64,96,192],ddp:[192,256,384,448,640]};b.s8b={xheaac:{32:"xheaac-dash",64:"xheaac-dash",96:"xheaac-dash",192:"xheaac-dash"},heaac:{64:"heaac-2-dash",96:"heaac-2-dash",128:"heaac-2hq-dash"},ddp:{192:"ddplus-5.1-dash",256:"ddplus-5.1hq-dash",384:"ddplus-5.1hq-dash",448:"ddplus-5.1hq-dash",640:"ddplus-5.1hq-dash"}};b.q8b={xheaac:{32:"2.0",64:"2.0",96:"2.0",192:"2.0"},heaac:{64:"2.0",96:"2.0",128:"2.0"},ddp:{192:"5.1",256:"5.1",384:"5.1",448:"5.1",640:"5.1"}};b.r8b={xheaac:{$:2048,O:48E3},heaac:{$:1024,O:24E3},ddp:{$:1536,O:48E3}};},38454:function(t,b,a){var n,c,f,g,e,h,k;function d(l){if(-1 !== g.GI.indexOf(l))return l;for(var m,p=0;p < g.GI.length;++p)if(-1 !== l.indexOf(g.GI[p])){m=g.GI[p];break;}(0,h.assert)(m);return m;}Object.defineProperties(b,{__esModule:{value:!0}});b.Ogb=void 0;n=a(22970);c=a(91176);f=a(43051);g=a(68954);e=a(85017);h=a(89707);k=a(67769);t=(function(){function l(m,p){this.atob=m;this.console=p;this.CX=1;this.Xfa=[];this.y7=[];}l.prototype.Csc=function(m,p,r,q,u){var v,y;void 0 === q && (q={w:16,Rx:9});void 0 === u && (u=1);p=d(p);v=(0,c.cc)(e.yN[p],function(A){return (0,e.pQa)(r,e.U9[A]);});(0,h.assert)(v);(0,h.assert)(16 === q.w && 9 === q.Rx || 4 === q.w && 3 === q.Rx);q=16 === q.w?"16:9":"4:3";for(var w=0,x=this.Xfa;w < x.length;w++){y=x[w];if(y.type === m && y.BC === q && y.Xc === p && y.frameRate === v && y.trackId === u)return y;}m=this.Ygc(m,q,p,v,u);this.Xfa.unshift(m);this.Xfa.length > this.CX && this.Xfa.splice(this.CX,this.Xfa.length - this.CX);return m;};l.prototype.Asc=function(m,p,r){var w;void 0 === r && (r=1);for(var q,u=0,v=this.y7;u < v.length;u++){w=v[u];"silence" === w.type && w.Xc === m && w.bitrate === p && w.trackId === r && (q=w);}void 0 === q && (q=this.Tgc(m,p,r),this.y7.unshift(q),this.y7.length > this.CX && this.y7.splice(this.CX,this.y7.length - this.CX));return q;};l.prototype.Bsc=function(){void 0 === l.Ysb && (l.Ysb=new Uint8Array(Array.from({length:40},function(m,p){return ('').charCodeAt(p);})).buffer);return l.Ysb;};l.prototype.Ygc=function(m,p,r,q,u){var v;v=f.RRb[m][p][r][q];(0,h.assert)(v);v=(0,f.qVc)(v().W);return n.__assign(n.__assign({},this.decode(v,u)),{type:m,BC:p,Xc:r,frameRate:q,width:v.width,height:v.height,gYa:v.gYa,hYa:v.hYa});};l.prototype.Tgc=function(m,p,r){var q;q=f.Zmb.silence[m][p];(0,h.assert)(q);q=(0,f.pVc)(q().W);return n.__assign(n.__assign({},this.decode(q,r)),{type:"silence",Xc:m,bitrate:p,channels:q.channels});};l.prototype.decode=function(m,p){var r,q,u,v;r=m.Tb.Ia?this.K8(m.Tb):this.atob(m.Tb.data);q=m.La.Ia?this.K8(m.La):this.atob(m.La.data);if(1 !== p){u=new DataView(r);v=new DataView(q);m.Tb.Ja.forEach(function(w){return u.setUint32(w,p);});m.La.Ja.forEach(function(w){return v.setUint32(w,p);});}return n.__assign(n.__assign({},m),{Tb:r,La:q,trackId:p});};l.prototype.K8=function(m){var p;if(m.Ia){if(void 0 === m.Oa)m=(0,k.ZCb)(m.data);else {p=this.K8(m.Oa);m=(0,k.ZCb)(m.data,new Uint8Array(p));}}else m=new Uint8Array(this.atob(m.data));return m.buffer.slice(m.byteOffset,m.byteOffset + m.byteLength);};return l;})();b.Ogb=t;},29088:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y;Object.defineProperties(b,{__esModule:{value:!0}});b.Q4a=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(91176);g=a(66164);a(97685);e=a(91176);h=a(8743);k=a(58348);l=a(6200);m=a(79183);p=a(3033);r=a(65161);a(57141);q=a(19089);u=a(52571);v=a(7470);w=a(35438);x=a(37058);y=a(61996);A=a(54366);z=a(650);B=a(40666);C=a(17122);D=a(69575);F=a(8478);H=a(27255);E=a(93747);G=a(75402);J=a(91967);L=a(33143);K=a(29688);M=a(14609);P=a(27288);I=a(23102);O=a(27459);Q=a(61567);T=a(66607);U=a(66701);X=a(11177);Y=a(358);t=(function(){function W(Z){this.console=Z;this.$a=h.JE.CLOSED;this.wf=[];this.Aea=[];this.y6=[];this.Ct=[];this.Vib={};this.N6={};this.R1a=h.Bga.default;this.vcc={Qy:!1};this.ck=new y.zm({qj:this,source:"engine",xg:10,console:Z});}Object.defineProperties(W.prototype,{mB:{get:function(){(0,u.assert)(this.JF);return this.JF;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{state:{get:function(){return this.$a;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{nIc:{get:function(){return this.y6;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{WS:{get:function(){return this.Ct.map(function(Z){return Z.Z;});},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{pIc:{get:function(){return this.Ct;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{bd:{get:function(){this.fN();return this.MC.bd;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{YL:{get:function(){this.fN();return this.MC.YL;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{Xl:{get:function(){this.fN();return this.MC.Xl;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{QT:{get:function(){this.fN();return this.MC.QT;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{oXc:{get:function(){return this.wf.length;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{wX:{get:function(){return this.Vib;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{Ot:{get:function(){return this.lC;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{$T:{get:function(){return this.N6;},enumerable:!1,configurable:!0}});Object.defineProperties(W.prototype,{ZBc:{get:function(){return this.Ujb || (this.Ujb=this.D$b());},enumerable:!1,configurable:!0}});W.prototype.open=function(Z,aa,ca,da){var ha;ha=this;if(this.$a === h.JE.OPEN)return !1;if(void 0 !== Z.on)Z.on("changed",function(){Z.OY || ha.wf.forEach(function(S){var N;(null === (N=S.M) || void 0 === N?0:N.di) && S.M.di.disable();});});this.Ur=new Y.Z6a(Z,this.console);this.config=this.Ur.rLa;e.bW.sPc(this.config);this.Aj=new B.mJ(new C.hja({lj:!0,currentTime:function(){return c.I.Ba(g.platform.time.ha());},speed:1}),this.console,"Engine Scheduler");this.ISa=new m.g9a(this.console,Z);this.Ns=new q.Gfb(this.Xqa.bind(this),this.Aj,Z);if(Z.FI || g.platform.Al.vg.k$c)this.lC=new k.m6a(this.console,Z,function(){return ha.wX;});this.MC=p.TN.rpa(Z,this.console,aa);this.$a=h.JE.OPEN;this.JF=(0,I.spa)(Z);ca && this.JF.TMb(ca);da && this.JF.L0a(da);this.nIb=new O.Meb({al:function(){ha.$a !== h.JE.CLOSED && ha.Ns.al("playgraphOpportunity");}});this.aEb=new E.Zbb(function(){return ha.npa();},function(){return ha.opa().global;},this.console);this.Xfc();return !0;};W.prototype.g7=function(Z,aa,ca,da,ha){var N,V,ba,fa,ia;function S(ka){return N.Ps(da,ia,ka);}N=this;void 0 === ha && (ha=!0);this.fN();ca=Object.create(ca,{DB:{value:this.$T},FI:{value:!!this.lC}});if(ha){ba=this.mB.tbc(Z,ca);if(ba){ba.r3a(aa);fa=this.Ps.bind(this,da,ba);fa.Ae=da;fa=ba.eQc(fa).Ae;if((fa=null === (V=da.G9c) || void 0 === V?void 0:V.call(da,fa)) && !fa.success)(fa={reason:fa.reason},this.hE(ba));else return ba;}}S.Ae=da;V=new L.Hfb(S,da,function(ka,pa){return !!N.pwb(pa,ka).dga;});ia=(0,T.vNa)(ca,[Z,aa,ca,W.ADc++,this.bd,V,function(ka){return N.Ns.al(ka);},ha?this.mB.qbc.bind(this.mB):function(){},this.npa.bind(this),this.Ur],this.console);ia.Sc(new w.Ngb(ia));ia.Sc(new x.khb(ia.gd));ia.Sc(new P.Kab(this.Ur,ia));fa && ia.Sc(new M.Teb(fa));ia.z_.Sc(new G.q5a(ia));ia.z_.Sc(new K.Jab(ia));this.Xe.iE.forEach(function(ka){return ia.Sc(ka);});this.nIb.g7(ia);Z=new n.gf();Z.on(ia.events,"requestsPruned",this.$Mc.bind(this));Z.on(ia.events,"weightUpdated",this.OXa.bind(this));Z.on(ia.events,"underflow",this.ml.bind(this,ia));this.Ct.push({Z:ia,Qj:Z,tda:0});this.OXa();return ia;};W.prototype.ml=function(Z){Z=this.aEb.Enc(Z);(null === Z || void 0 === Z?0:Z.sna) || this.mB.reset();};W.prototype.hE=function(Z){this.nIb.hE(Z);Z.Ka();this.Ct=this.Ct.filter(function(aa){return aa.Z === Z?(aa.Qj.clear(),!1):!0;});this.OXa();};W.prototype.Y5b=function(Z,aa){var ca;this.fN();ca=aa.Gh;ca=void 0 === ca?[r.u.X,r.u.U]:ca;Z=(0,U.ZX)(aa,[Z,ca,this.Jlc(aa)]);this.y6.push(Z);return Z;};W.prototype.c_a=function(Z){this.fN();this.y6=this.y6.filter(function(aa){return aa !== Z;});Z.Ka();};W.prototype.nPc=function(Z,aa){this.Vib=Z;this.N6=aa;this.Ujb=void 0;};W.prototype.qwa=function(Z,aa){var ca,da;da=null === (ca=(0,f.cc)(this.wf,function(ha){return ha.TX.equals(Z);})) || void 0 === ca?void 0:ca.M;da?da.qwa(d.__assign(d.__assign({},aa),{xS:this.$sa.bind(this)})):this.Aea.push({XRb:Z,m1a:aa});};W.prototype.oKb=function(Z){this.Aea=this.Aea.filter(function(aa){return !aa.XRb.equals(Z);});};W.prototype.close=function(){this.$a !== h.JE.CLOSED && (this.$Lc(),(0,u.assert)(0 === this.wf.length,"Unexpected viewable lease after Playgraph destruction."),this.ZLc(),this.Aea=[],delete this.MC,this.$a=h.JE.CLOSED,this.Aj.Ka());};W.prototype.kQc=function(Z){this.R1a=Z;this.Ns.al("streamingModeChanged");};W.prototype.rPc=function(Z){var aa,ca,da;this.vcc.Qy=Z.Qy;if(this.config.TOa){da=!0 === Z.Qy;this.config.set?this.config.set((aa={},aa.enableCprVideo=da,aa)):this.config.enableCprVideo=!0 === Z.Qy;try{for(var ha=d.__values(this.Ct),S=ha.next();!S.done;S=ha.next())S.value.Z.WPc(da);}catch(V){var N;N={error:V};}finally{try{S && !S.done && (ca=ha.return) && ca.call(ha);}finally{if(N)throw N.error;}}}};W.prototype.Jlc=function(Z){var aa;aa={};!Z.DB && this.N6 && (aa.DB={value:this.N6});return Object.create(Z,aa);};W.prototype.Xfc=function(){this.Xe=new J.Ria(this.config,this.console);this.Xe.Sc(new F.E8a(this));this.Xe.Sc(new z.Ifb(this.bd,this.Ns));this.Xe.Sc(new v.C8a(this.bd));this.Xe.Sc(new A.On(this.ck));this.Xe.Sc(new A.On(this.Ns.ew));this.Xe.Sc(new A.On(this.ISa.pe));this.Xe.Sc(new A.On(this.aEb.pe));this.Xe.Sc(new A.On(this.mB.pe,{bpb:!1}));this.lC && this.Xe.Sc(new A.On(this.lC.pe));};W.prototype.$sa=function(){};W.prototype.H2=function(Z){return d.__awaiter(this,void 0,void 0,function(){var aa,ca,da,ha;return d.__generator(this,function(S){switch(S.label){case 0:return ((0,u.assert)(Z,"ase.updateViewable(): Viewable config not found."),aa=(0,f.cc)(this.wf,function(N){return N.TX.equals(Z);}),(0,u.assert)(aa,"ase.updateViewable(): Viewable entry not found."),[4,aa.kr]);case 1:return (ca=S.T(),ha=(da=ca).H2,[4,Z.Pu]);case 2:return (ha.apply(da,[S.T()]),[2]);}});});};W.prototype.pwb=function(Z,aa){var ca;ca=Z.js(aa.J,aa.dm);return {dga:(0,f.cc)(this.wf,function(da){return da.TX.equals(ca);}),TX:ca};};W.prototype.Ps=function(Z,aa,ca){var da,ha,S,N,V,ba,fa,ia,ka;da=this;S=ca.J;N=ca.dm;V=this.pwb(Z,ca);ba=null === V || void 0 === V?void 0:V.dga;fa=V.TX;if(!ba){N=null === (ha=null === N || void 0 === N?void 0:N.Rf) || void 0 === ha?void 0:ha.fd;if(void 0 !== N)(ia=this.Ps(Z,aa,{J:N,dm:{}}),ka=ia.jl);ba={TX:fa,kr:(function(){return d.__awaiter(da,void 0,void 0,function(){var pa,oa,la,R,ea;ea=this;return d.__generator(this,function(ja){switch(ja.label){case 0:return [4,Promise.all([fa.Pu,null === ia || void 0 === ia?void 0:ia.kr])];case 1:return (pa=d.__read.apply(void 0,[ja.T(),2]),oa=pa[0],la=pa[1],R=this.RC(S,fa,oa,aa.id,la),!R.Eb || !R.di || R.Iq.Gxc || R.di.complete?[3,3]:[4,Promise.race([R.Iq.CTc,new Promise(function(sa){return setTimeout(sa,ea.config.bPc);})])]);case 2:(ja.T(),ja.label=3);case 3:return (ba.M=R,[2,R]);}});});})(),M:void 0,PA:new c.DV({name:"viewableCollection",yca:function(pa){pa() && (null === ka || void 0 === ka?void 0:ka.release(),da.f_a(ba));},console:(0,D.Df)(g.platform,this.console,("").concat(S))})};this.wf.push(ba);}Z=new X.rib(ba,this.console,aa,ca,ka);Z.events.once("error",this.f_a.bind(this,ba,!1));return Z;};W.prototype.f_a=function(Z,aa){var ca,da,ha;void 0 === aa && (aa=!0);(0,u.assert)(Z,"expected viewableEntry to exist");ca=Z.TX;da=Z.M;ha=Z.kr;aa && (ca.KX(),da?da.Ka():ha.then(function(S){S.Ka();}));this.wf=this.wf.filter(function(S){return S !== Z;});};W.prototype.RC=function(Z,aa,ca,da,ha){var S,N;S=this;this.fN();N=ca.config;ca={S:ca.S,config:N,KC:ca.KC,Pv:ca.Pv,bd:this.MC.bd,Xl:this.MC.Xl,qlc:{XK:function(){return S.Ns.al("networkFailureReset");},Vf:this.Vf.bind(this,Z),dy:this.dy.bind(this,Z)},Jda:{ux:this.ux.bind(this),Ey:this.Ey.bind(this),N8c:function(){return S.Ns.KFb;}},$T:this.N6,Ot:this.lC,Ur:this.Ur,Ns:this.Ns,PU:this.Aj,un:da};Z=new l.z5a(Z,ca,ha);N.sQ && (ha=(0,f.cc)(this.Aea,function(V){return V.XRb.equals(aa);})) && (ha=ha.m1a,this.oKb(aa),N.Rna?Z.fQc(d.__assign(d.__assign({},ha),{xS:this.$sa.bind(this)})):Z.qwa(d.__assign(d.__assign({},ha),{xS:this.$sa.bind(this)})));return Z;};W.prototype.Xqa=function(){var Z,aa,ca,da,ha;(0,u.assert)(this.state === h.JE.OPEN);Z=this.opa();aa=this.PZ();ca=this.ISa.tmc(aa);da=ca.nnb;aa=ca.BY;ha=ca.reason;ca=ca.sQb;return 0 < da.length?(Z=this.ISa.uGb(Z,da),!Z.Bf && 0 < ca?{Bf:!1,reason:Z.reason,BY:aa}:Z):0 < ca?((0,u.assert)("available" !== ha,"Unavailable streamables may not be available"),{Bf:!1,reason:ha,BY:aa}):{Bf:!1,reason:"noEligibleStreamables"};};W.prototype.PZ=function(){var Z,aa,ca;Z=this;ca=null !== (aa=this.config.QIc) && void 0 !== aa?aa:this.Ct.every(function(da){return !da.Z.lo;});aa=(0,f.flatten)(this.Ct.map(function(da){return da.Z.PZ().map(function(ha){da.Z.lo || 1 === da.tda || (ha.sA=da.tda);return ha;});}));this.R1a === h.Bga.disabled?aa=[]:this.R1a === h.Bga.wAc && (aa=aa.filter(function(da){return Z.config.ADb >= da.Do - da.fp;}));ca || (ca=aa.filter(function(da){var ha;return 1 === (null !== (ha=da.sA) && void 0 !== ha?ha:1);}),ca.length && (aa=ca));ca=this.wf.reduce(function(da,ha){return ha.M?d.__spreadArray(d.__spreadArray([],d.__read(da),!1),d.__read(ha.M.PZ()),!1):da;},[]);return (0,f.flatten)(d.__spreadArray(d.__spreadArray([],d.__read(aa),!1),d.__read(ca),!1));};W.prototype.fN=function(){if(this.$a === h.JE.CLOSED)throw Error("Engine CLOSED");};W.prototype.$Lc=function(){var Z,da;try{for(var aa=d.__values(this.Ct),ca=aa.next();!ca.done;ca=aa.next()){da=ca.value;da.Qj.clear();this.hE(da.Z);}}catch(S){var ha;ha={error:S};}finally{try{ca && !ca.done && (Z=aa.return) && Z.call(aa);}finally{if(ha)throw ha.error;}}};W.prototype.ZLc=function(){var Z;try{for(var aa=d.__values(this.y6),ca=aa.next();!ca.done;ca=aa.next())this.c_a(ca.value);}catch(ha){var da;da={error:ha};}finally{try{ca && !ca.done && (Z=aa.return) && Z.call(aa);}finally{if(da)throw da.error;}}};W.prototype.Vf=function(Z,aa){var ca;aa.J=Z;ca=!1;this.sxb(Z).forEach(function(da){if(!aa.k2a || (0,r.rs)(da.ie.value))ca=da.Vf(aa);});return ca;};W.prototype.dy=function(Z){return this.sxb(Z).some(function(aa){return aa.dy();});};W.prototype.sxb=function(Z){return this.Ct.filter(function(aa){var ca;for(aa=aa.Z;aa.Da;)aa=aa.Da;ca=aa.Z;return Object.keys(ca.ba).some(function(da){return ca.ba[da].J === Z;});}).map(function(aa){return aa.Z;});};W.prototype.opa=function(){var Z;Z=new H.d9a();this.Ct.forEach(function(aa){var ca,da;ca=aa.Z;aa=aa.tda;da=ca.opa();da.sA=aa;Z.add(ca.id,da);});return Z;};W.prototype.npa=function(){return this.ZBc;};W.prototype.D$b=function(){var Z,aa;aa=(0,Q.S$b)(this.config,this.wX);return {total:(Z={},Z[r.u.U]=this.wX.video || Infinity,Z[r.u.X]=this.wX.audio || Infinity,Z[r.u.Ca]=this.wX.text || Infinity,Z.total=this.wX.total || Infinity,Z),G1a:aa};};W.prototype.ux=function(Z){var aa;this.Ns.ux(Z);null === (aa=this.lC) || void 0 === aa?void 0:aa.ux(Z);};W.prototype.Ey=function(Z){this.Ns.Ey(Z);};W.prototype.OXa=function(){var Z;Z=this.WS.reduce(function(aa,ca){return Math.max(ca.weight,0) + aa;},0);this.Ct.forEach(function(aa){aa.tda=0 >= aa.Z.weight?0:aa.Z.weight / Z;});};W.prototype.$Mc=function(Z){var aa;aa=this;this.lC && (Z.requests.forEach(function(ca){return aa.lC.Ey(ca);}),this.wf.forEach(function(ca){var da;return null === (da=ca.M) || void 0 === da?void 0:da.zNc();}),this.Ns.al("prunedRequest"));};W.ADc=0;d.__decorate([(0,y.gb)({methodName:"open"})],W.prototype,"open",null);d.__decorate([(0,y.gb)({methodName:"addPlaygraph",context:function(Z){var aa,ca;return {playgraphCount:null !== (ca=null === (aa=Z.TFb.Ct) || void 0 === aa?void 0:aa.length) && void 0 !== ca?ca:0};}})],W.prototype,"g7",null);d.__decorate([(0,y.gb)({methodName:"removePlaygraph",context:function(Z){return {playgraphCount:Z.TFb.Ct.length};}})],W.prototype,"hE",null);d.__decorate([(0,y.gb)({methodName:"close"})],W.prototype,"close",null);d.__decorate([(0,y.gb)({methodName:"setStreamingMode",Km:!0})],W.prototype,"kQc",null);d.__decorate([(0,y.gb)({methodName:"setConcurrentStreamingDevice",Km:!0})],W.prototype,"rPc",null);d.__decorate([(0,y.gb)({methodName:"notifyAseException",Km:!0})],W.prototype,"$sa",null);d.__decorate([(0,y.gb)({methodName:"updateViewable"})],W.prototype,"H2",null);d.__decorate([(0,y.gb)({methodName:"requestViewable"})],W.prototype,"Ps",null);d.__decorate([(0,y.gb)({methodName:"removeViewable"})],W.prototype,"f_a",null);d.__decorate([(0,y.gb)({methodName:"createViewable"})],W.prototype,"RC",null);d.__decorate([(0,y.gb)({methodName:"issueRequestOpportunity",Re:!0,return:!0})],W.prototype,"Xqa",null);d.__decorate([(0,y.gb)({methodName:"reportStreamingFailure",Km:!0})],W.prototype,"Vf",null);return W;})();b.Q4a=t;},66701:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.ZX=function(f,g){var e,h,k;e=[function(l){return new (c.bza.bind.apply(c.bza,d.__spreadArray([void 0],d.__read(l.eIc),!1)))();}];if(f.nQ){h=a(79).ZMa;e.unshift(function(l,m){return h(l,m);});}if(f.WC){k=a(79).ZMa;e.unshift(function(l,m){return k(l,m);});}return n.OE.kL({eIc:g},e);};d=a(22970);n=a(91176);c=a(34434);},66607:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.vNa=function(e,h,k){var l,m,p,r;l=[function(q){return new (f.cza.bind.apply(f.cza,d.__spreadArray([void 0],d.__read(q.Wca),!1)))();}];m=(0,g.Sf)({Z:h[0]});c.l && k.trace("Creating playgraph",{Ubd:m,PP:e.nQ,Kb:e.WC});if(e.nQ){p=a(25750);l.unshift(function(q,u){return p.s8({},q,u);});}if(e.WC){r=a(86681);l.unshift(function(q,u){return r.s8({},q,u);});}return n.OE.kL({Wca:h,MKa:[]},l);};d=a(22970);n=a(91176);c=a(48170);f=a(62819);g=a(28871);},358:function(t,b,a){var c,f,g,e,h;function d(k,l,m){if("function" === typeof k.set)0 === k.set(l) && m.trace("Invalid keys" + JSON.stringify(Object.keys(l)));else for(m in (m=void 0,l))k[m]=l[m];}function n(k,l){var m,p,u;p={};try{for(var r=c.__values(k),q=r.next();!q.done;q=r.next()){u=q.value;void 0 !== l[u] && (p[u]=l[u]);}}catch(w){var v;v={error:w};}finally{try{q && !q.done && (m=r.return) && m.call(r);}finally{if(v)throw v.error;}}return p;}Object.defineProperties(b,{__esModule:{value:!0}});b.Z6a=void 0;c=a(22970);f=a(7675);g=a(36948);e=a(64396);t=(function(){function k(l,m){this.rLa=l;this.console=m;this.Xxa=new WeakMap();this.Sra=new WeakMap();this.console.trace("Created config manager with base config" + JSON.stringify(l));}k.prototype.Wpc=function(){var l;l=(0,f.nEc)(this.rLa.utc);if(void 0 === l || 0 === Object.keys(l).length)return (this.console.warn("ConfigManager: No globalConfigMutationAllowList found in base config, no manifest config will override global config."),{});this.console.trace("ConfigManager global config override allowed properties: " + JSON.stringify(l));return l;};k.prototype.pQc=function(l,m){this.Xxa.has(l) && this.console.trace("Updating existing viewable config for " + l);this.Xxa.set(l,m);};k.prototype.kyb=function(l){if(this.Xxa.has(l))return this.Xxa.get(l);this.console.warn("ConfigManager: No viewable config found for " + l.R);return this.rLa;};k.prototype.RPc=function(l,m,p){var r;r=this.kyb(l);p=this.pWc(r,p);m=this.qWc(r,p,m);this.Sra.has(l) && this.console.trace("Updating existing manifest config for " + l);this.Sra.set(l,m);};k.prototype.uRa=function(l){if(this.Sra.has(l))return this.Sra.get(l);this.console.warn("ConfigManager: No manifest config found for " + l.R);return this.kyb(l);};k.prototype.h1a=function(l){var m;l=null === (m=l.steeringAdditionalInfo) || void 0 === m?void 0:m.O1a;return void 0 !== l && 0 < Object.keys(l).length;};k.prototype.pWc=function(l,m){l=Object.create(l);l.set?(l.set({DB:m.DB}),l.set({FI:!!m.Ot})):(l.DB=m.DB,l.FI=!!m.Ot);return l;};k.prototype.qWc=function(l,m,p){var r,q,u,v,w,x,y;r=this;p=p.steeringAdditionalInfo;if(!p)return m;q=p.streamingClientConfig;u=this.Wpc();v=n(h,p);if(!q || (0,e.ZTa)(q) && (0,e.ZTa)(v))return m;w=Object.create(m);x=Object.keys(g.XMa).reduce(function(A,z){var B;B=g.XMa[z][0];Array.isArray(B)?B.forEach(function(C){return A[C]=z;}):(B=Array.isArray(B)?B[0]:B,A[B]=z);return A;},{});m=Object.keys(c.__assign(c.__assign({},q),v)).filter(function(A){return void 0 !== x[A];});y={};m.forEach(function(A){var z,B,C;B=x[A];if(void 0 !== w[B]){C=null !== (z=q[A]) && void 0 !== z?z:v[A];z=void 0;"number" === typeof w[B]?z=Number(C):"boolean" === typeof w[B]?z="true" === C:"string" === typeof w[B]?z=C:r.console.trace("Unsupported type for" + A);r.console.trace("ConfigManager Updating value for key " + A + " from " + w[B] + " to " + z);y[B]=z;}else r.console.trace("Invalid key" + A);});0 < Object.keys(y).length && (m=m.filter(function(A){return void 0 !== u[A] && void 0 !== y[u[A]];}).reduce(function(A,z){A[u[z]]=y[u[z]];return A;},{}),d(w,y,this.console),d(l,m,this.console));return w;};return k;})();b.Z6a=t;h=["liveEdgeCushionWithSpreadMs"];},60069:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.z$=function(){var f;if(!c){f=new d.platform.Console("ASEJS","media|asejs");c=new n.Q4a(f);}return c;};b.ncd=function(){c=void 0;};d=a(66164);n=a(29088);},27459:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Meb=void 0;t=(function(){function a(d){this.al=d.al;this.iD=this.Evc();}a.prototype.g7=function(d){d.events.on("requestsPruned",this.iD);};a.prototype.hE=function(d){d.events.removeListener("requestsPruned",this.iD);};a.prototype.Evc=function(){var d;d=this;return function(){return d.al();};};return a;})();b.Meb=t;},23102:function(t,b,a){var n,c,f,g;function d(){return n.__awaiter(this,void 0,void 0,function(){var e;return n.__generator(this,function(h){switch(h.label){case 0:return [4,Promise.resolve().then(function(){return n.__importStar(a(60069));})];case 1:return (e=h.T().z$,[2,e()]);}});});}Object.defineProperties(b,{__esModule:{value:!0}});b.spa=function(e){var h;h=new c.platform.Console("ASEJS","media|asejs");g || (g=new f.Web(function(){return d();},e,h));return g;};n=a(22970);c=a(66164);f=a(91961);},61567:function(t,b,a){var n;function d(c,f,g,e){return c && f?Math.min(c - f * g,c - e):(c || Infinity) - e;}Object.defineProperties(b,{__esModule:{value:!0}});b.S$b=function(c,f){var g,e,h,k,l,m,p,r;r=d(f.audio,f.d5c,c.aNa,null !== (e=c.Vpb) && void 0 !== e?e:0);e=d(f.video,f.Ded,c.aNa,null !== (h=c.Xpb) && void 0 !== h?h:0);h=d(f.text,f.Edd,c.aNa,null !== (k=c.Wpb) && void 0 !== k?k:0);return (g={},g[n.u.X]=r,g[n.u.U]=e,g[n.u.Ca]=h,g.total=(f.total || Infinity) - (null !== (l=c.Vpb) && void 0 !== l?l:0) - (null !== (m=c.Xpb) && void 0 !== m?m:0) - (null !== (p=c.Wpb) && void 0 !== p?p:0),g);};n=a(65161);},11177:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.rib=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(48170);g=a(95407);t=(function(){function e(h,k,l,m,p){var r;r=this;this.dga=h;this.console=k;this.D7b=l;this.dm=m;this.MGc=p;this.events=new n.EventEmitter();this.jl=h.PA.Oz();this.i3b=(0,c.rra)(function(){return (function(){return d.__awaiter(r,void 0,void 0,function(){var q,u;return d.__generator(this,function(v){switch(v.label){case 0:return (v.tc.push([0,2,,3]),[4,this.dga.kr]);case 1:return [2,v.T()];case 2:throw (q=v.T(),g.gC.pUa(q) && this.D7b.Vf({J:this.dm.J,Ti:q.message,FYa:q}),f.l && this.console.trace("Removing broken viewable entry due to error",this.dm),this.events.emit("error",{error:q}),null === (u=this.MGc) || void 0 === u?void 0:u.release(),q);case 3:return [2];}});});})();});}Object.defineProperties(e.prototype,{M:{get:function(){var h;return null === (h=this.dga) || void 0 === h?void 0:h.M;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{kr:{get:function(){return this.i3b();},enumerable:!1,configurable:!0}});return e;})();b.rib=t;},67164:function(t,b,a){var n;function d(c,f){var g;void 0 === f && (f=d);g="";c.gA && (g=null === c || void 0 === c?void 0:c.gA.map(f).reduce(function(e,h){return ("").concat(e,",").concat(h);}));return ("").concat(null === c || void 0 === c?void 0:c.name,"::").concat(null === c || void 0 === c?void 0:c.message,"::{").concat(null === c || void 0 === c?void 0:c.stack,"}[").concat(g,"]");}Object.defineProperties(b,{__esModule:{value:!0}});b.j3=void 0;n=a(22970);t=(function(c){function f(g,e){g=c.call(this,f.Xnc(g,e)) || this;g.w2b=e;g.name="AggregateError";return g;}n.__extends(f,c);f.Xnc=function(g,e){return e.reduce(function(h,k){return ("").concat(h,"\n").concat(k);},g);};f.stringify=function(g){return d(g);};Object.defineProperties(f.prototype,{gA:{get:function(){return this.w2b;},enumerable:!1,configurable:!0}});return f;})(Error);b.j3=t;},83906:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(32973),b);t.__exportStar(a(16816),b);},32973:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},16816:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});t=b.RN={};t[t.wed=0]="userSeek";t[t.NIc=1]="prefetchReset";t[t.rna=2]="destruction";t[t.nBb=3]="jitPlaygraphUpdate";},63251:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},7042:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},43520:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},20271:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});t=b.qt={};t[t.CLOSED=0]="CLOSED";t[t.OPEN=1]="OPEN";t[t.$p=2]="STREAMING";},89577:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},8743:function(t,b){var a,d;Object.defineProperties(b,{__esModule:{value:!0}});b.JE=b.Bga=void 0;(function(n){n[n.default=0]="default";n[n.disabled=1]="disabled";n[n.wAc=2]="lowCpuPlaybackStarting";})(a || (b.Bga=a={}));(function(n){n[n.CLOSED=0]="CLOSED";n[n.OPEN=1]="OPEN";})(d || (b.JE=d={}));},51308:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Lc=void 0;t=a(22970);t.__exportStar(a(8743),b);t.__exportStar(a(43520),b);t.__exportStar(a(20271),b);t.__exportStar(a(89577),b);t.__exportStar(a(41186),b);t.__exportStar(a(83906),b);t.__exportStar(a(16816),b);t.__exportStar(a(85178),b);t.__exportStar(a(63251),b);t.__exportStar(a(35963),b);t.__exportStar(a(7042),b);d=a(91967);Object.defineProperties(b,{Lc:{enumerable:!0,get:function(){return d.Lc;}}});},41186:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},85178:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},16756:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});t=b.Aga={};t[t.start=0]="start";t[t.end=1]="end";},86003:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},46062:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},97627:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},9980:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(16756),b);t.__exportStar(a(97627),b);t.__exportStar(a(86003),b);t.__exportStar(a(46062),b);},35963:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});a(22970).__exportStar(a(9980),b);},8171:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Xw=void 0;d=a(66164);n=a(65167);t=(function(){function c(f){f=("(").concat(f,")");this.console=new d.platform.Console("ASEJS","media|asejs",f);this.kWa=[];}c.prototype.eD=function(f){var g;if(!this.kWa[f]){g=("[").concat(f,"]");this.kWa[f]=(0,n.Df)(d.platform,this.console,g);}return this.kWa[f];};return c;})();b.Xw=new t(0);},6200:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K;function d(M,P,I){return M.M.Eb?new A.uab(M,P,I):new y.Wcb(M,P,I);}Object.defineProperties(b,{__esModule:{value:!0}});b.z5a=b.GHa=b.yYb=void 0;n=a(22970);c=a(90745);f=a(91176);g=a(66164);e=a(24473);h=a(62333);t=a(81392);k=a(83744);l=a(79857);m=a(18905);p=a(65161);r=a(52571);a(69575);q=a(24251);u=a(444);v=a(97757);w=a(8149);x=a(76452);y=a(1913);A=a(92945);z=a(91967);B=a(28057);C=a(24940);D=a(94810);F=a(31303);H=a(39795);E=a(66133);G=a(27457);J=a(34012);L=(function(){return function(M){this.mediaType=M;this.aCb=void 0;};})();b.yYb=L;(function(M){M[M.PYb=0]="NO_DATA";M[M.G0b=1]="SWITCHABLE";M[M.NYb=2]="NONSWITCHABLE";M[M.w3c=3]="SWITCHABLE_AND_NONSWITCHABLE";})(K || (b.GHa=K={}));a=(function(M){function P(I,O,Q){var T,U,X,Y,W,Z,aa,ca,da,ha,S,N,V,ba,fa,ia,ka,pa,oa,la,R,ea,ja,sa,ta,qa,Aa,Ga;U=O.S;X=O.KC;Y=O.Pv;W=O.config;Z=O.Jda;aa=O.bd;ca=O.Xl;da=O.qlc;ha=O.$T;S=O.Ot;N=O.Ur;V=O.PU;O=O.un;R=M.call(this) || this;R.J=I;R.Wj=Q;R.Xyb=!1;R.Pib=K.PYb;R.uJ={};R.Ro={};R.Pjb={};R.SA=(T={},T[p.u.X]={},T[p.u.U]={},T[p.u.Ca]={},T[p.u.sm]={},T);R.Ya=[];R.Gwa=[];R.rK=[];R.gka=!1;R.Zsa=!1;R.qXc=[new L(p.u.X),new L(p.u.U),new L(p.u.Ca)];R.Xe=new z.Ria(W,R.console);R.Qjb=U;R.iJa=null !== O && void 0 !== O?O:-1;R.console=new g.platform.Console("ASEJS","media|asejs","<" + String(R.J) + ">");R.console.trace("creating viewable:",I);R.Ur=N;W.sRb?(I={DB:ha,Ot:S},R.Ur.pQc(R,W),R.Ur.RPc(R,U,I),R.config=R.Ur.uRa(R)):R.config=W;R.Iq=new F.Pab(R,R.config);R.Nzc=null !== (fa=null === (ba=U.steeringAdditionalInfo) || void 0 === ba?void 0:ba.wRc) && void 0 !== fa?fa:void 0;R.events=new c.EventEmitter();R.yA=new H.Q9a(R,R.console,R.config,function(na){return R.events.emit("logdata",na);},function(na){return R.events.emit("transportReport",na);});R.bd=aa;R.Jda=Z;R.$T=ha;R.lC=S;R.KC=X;R.Pv=!!Y;ea=[[],[],[],[]];ja=[{},{},{},{}];sa=[0,0];ta=!1;R.Oc=new G.Hab(R,R.config,R.console);R.qp=R.gUa;if(R.Eb)Aa=U.Ji.maxBitrate;["audio_tracks","video_tracks",,"mediaEventTracks"].forEach(function(na,va){na && R.S[na] && R.S[na].forEach(function(xa,ra){if(xa.type !== p.u.X || !xa.ay && !1 !== xa.cf)(ra=d({M:R,Tj:xa,mediaType:va,Pv:R.Pv,pN:ra,KJ:ra + (va === p.u.X?R.S.video_tracks.length:0),RR:Aa},R.config,R.console),va === p.u.U && W.Gkc && new q.A5a(W).dKc(ra.Ed),va === p.u.U && (qa=u.pF.from({ty:xa.Mba,Hv:xa.Lba})),ea[va].push(ra),ja[va]=n.__assign(n.__assign({},ja[va]),ra.kR()),ra.maxBitrate > sa[ra.mediaType] && (sa[ra.mediaType]=ra.maxBitrate),ta=ta || ra.lp);});});R.Eb && R.S.timedtexttracks.forEach(function(na,va){var xa;if(!na.ay && !1 !== na.cf){xa=p.u.Ca;na=d({M:R,Tj:na,mediaType:xa,Pv:!1,pN:va,KJ:va},R.config,R.console);ea[xa].push(na);ja[xa]=n.__assign(n.__assign({},ja[xa]),na.kR());}});R.S.Hd && ((0,r.assert)(qa,"Should have video track if there are adverts"),R.Hd=n.__assign(n.__assign({},R.S.Hd),{lb:(null === (ia=R.S.Hd.lb) || void 0 === ia?void 0:ia.map(function(na,va){var xa,ra;ra=qa.normalize(na.fw);va=n.__assign(n.__assign({},na),{Xb:va,xj:na.fw,fw:ra.G,duration:(null === (xa=na.Kb) || void 0 === xa?void 0:xa.reduce(function(ya,Ca){return ya.add(f.I.Ba(Ca.fb - Ca.Ua));},f.I.ia)) || f.I.ia,location:ra,Zx:!!na.Kb,Qm:!!na.Xk,source:"viewable",j_:!1,Pa:ra,type:"dynamic"});na.Kb !== na.ads && (va.unnormalizedLocationMs=va.xj,va.locationMs=va.fw,va.location=va.location,va.contentTimestamp=va.Pa,va.type=va.type);return va;})) || []}));R.Vi=new m.Y4(R.S,ja,aa,ca,R.config,function(na){return R.events.emit("logdata",na);});R.Eb && (R.FL=new l.Aab(R.console,R.config,R,R.yA));X=da.XK;Y=da.dy;R.hP=da.Vf;R.dy=Y;R.XK=X;R.Vja=new k.G8a(R.naa,R.Vi,R.config,R.Dtc.bind(R),R.Ctc.bind(R),R.M1.bind(R));R.Vja.events.addListener("requestError",function(na){R.Eb && R.config.Hzc && 404 === na.wk && R.Iq.aLb();});R.KO=ea;R.Twa=ja;R.ML=sa;R.lp=ta;R.LB=n.__spreadArray([],n.__read(U.y2a || []),!1);R.Hma=R.qcc();if(R.Eb && (null === (ka=ea[p.u.sm]) || void 0 === ka?0:ka.length) && R.config.OY && void 0 !== U.L_){da=ea[p.u.sm][0].O;void 0 !== da && U.L_.O !== da && (R.console.warn("MediaEventsStore: MediaEvents history timescale does not match track timescale",{q9c:U.L_.O,$dd:da}),U.L_.O=da);R.di=new x.Lbb(V,R,R.config,U.L_);if(R.Hd && (null === (oa=null === (pa=R.di.model) || void 0 === pa?void 0:pa.uoa) || void 0 === oa?0:oa.YD)){Ga=null === (la=R.di.model.uoa.YD) || void 0 === la?void 0:la.Pa;R.Hd.lb.forEach(function(na){na.Pa=na.location.add(Ga);na.Kb !== na.ads && (na.contentTimestamp=na.Pa);});}R.Xe.Sc(new B.Jbb(R.di.Zn));}R.Xe.Sc(new J.a7a(R.Hma));R.Dwc && (R.tjc=(0,D.Zzc)(R.config).then(function(na){return n.__awaiter(R,void 0,void 0,function(){return n.__generator(this,function(){this.zjc=na.uqa({sLa:this.config.LOa});return [2,na];});});}));return R;}n.__extends(P,M);Object.defineProperties(P.prototype,{pL:{get:function(){return this.Oc.pL();},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{S:{get:function(){return this.Qjb;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{Eb:{get:function(){return (0,f.GA)(this.S.Yf);},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{hH:{get:function(){return (0,f.hH)(this.S.Yf);},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{gUa:{get:function(){var I;return this.Eb && !(null === (I=this.nj) || void 0 === I?0:I.endTime);},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{R:{get:function(){return this.S.movieId;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{Sr:{get:function(){return this.S.choiceMap;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{duration:{get:function(){return this.S.duration;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{kn:{get:function(){return this.gka;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{Ot:{get:function(){return this.lC;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{WY:{get:function(){(0,r.assert)(this.Vja,"ErrorDirector is not available on old architecture prefetch viewables.");return this.Vja;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{BQ:{get:function(){return this.WY.events;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{Wf:{get:function(){return this.Iq.Wf;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{nj:{get:function(){return this.uJ;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{Gzc:{get:function(){return this.Pjb;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{oX:{get:function(){return this.Pib;},set:function(I){this.Pib=I;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{JA:{get:function(){var I,O;return (null === (O=null === (I=this.S.qE) || void 0 === I?void 0:I.aN) || void 0 === O?void 0:O.JA) || !1;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{un:{get:function(){return this.iJa;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{naa:{get:function(){return !!this.hba;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{hba:{get:function(){var I;return this.Eb?this:null === (I=this.Wj) || void 0 === I?void 0:I.hba;},enumerable:!1,configurable:!0}});Object.defineProperties(P.prototype,{Dwc:{get:function(){return this.config.TR?this.Eb:!1;},enumerable:!1,configurable:!0}});P.prototype.h1a=function(){return this.config.sRb?this.Ur.h1a(this.S):!1;};P.prototype.Ka=function(){this.events.emit("destructed",{M:this});this.close();this.Qe();};P.prototype.BAb=function(I){I=this.vpa(p.u.U,I);return !(null === I || void 0 === I || !I.WDb);};P.prototype.close=function(){var I,O;this.rK=[];null === (I=this.Vja) || void 0 === I?void 0:I.Ka();this.Vi.Ka();null === (O=this.di) || void 0 === O?void 0:O.Ka();this.gka=!0;};P.prototype.Qe=function(){var I;this.yA.Qe();null === (I=this.FL) || void 0 === I?void 0:I.Qe();};P.prototype.H2=function(I){var O,Q,T;O=this;Q=I.S;I=I.KC;if(this.Eb)T=Q.Ji.maxBitrate;(0,r.assert)(I === this.KC,"Updating Viewable clearplay not supported");(0,r.assert)(Q.movieId === this.S.movieId,"Changing Viewable manifest movieId unsupported");["audio_tracks","video_tracks"].forEach(function(U,X){var Y,W;Y=Q[U];W=O.KO[X];(0,r.assert)(W.every(function(Z){var aa;aa=Y[Z.pN];return aa && aa.jt === Z.trackId && (aa.type === p.u.U || !1 !== aa.cf);}),"Existing tracks must still exist and be hydrated in updated manifest");Y.forEach(function(Z,aa){var ca,da;if(Z.type !== p.u.X || !Z.ay && !1 !== Z.cf){ca=O.getTrackById(Z.jt);if(ca){(0,w.oo)(ca) && (ca.RR=T,ca.tea(z.oW.S,T));Z=Z.streams;da=Object.keys(ca.kR());(0,r.assert)(Z.length === da.length,"Expected updated manifest track to have same number of streams");Z.forEach(function(ha){ha=ha.downloadable_id;(0,r.assert)(-1 !== da.indexOf(ha),"Changing Viewable track streams unsupported");});}else (ca=d({M:O,Tj:Z,mediaType:X,Pv:O.Pv,pN:aa,KJ:aa + (X === p.u.X?O.S.video_tracks.length:0),RR:T},O.config,O.console),W.push(ca),O.Twa[X]=n.__assign(n.__assign({},O.Twa[X]),ca.kR()),ca.maxBitrate > O.ML[ca.mediaType] && (O.ML[ca.mediaType]=ca.maxBitrate),(0,r.assert)(O.lp || !ca.lp,"Can not update clear viewable with drm track."));}});});this.Qjb=Q;this.Vi.RJ(this.S,this.Twa);};P.prototype.qwa=function(I){var O,Q,T;O=I.Jf;Q=I.Ha;T=I.wY;I=I.xS;O && Q?this.S1=new e.wgb(O,{Ha:String(Q),wY:!!T,IBc:this.config.RV.mx,C9b:this.config.RV.lv,HGc:this.config.ZGb,yK:this.config.yK},I):this.Zsa || (I("SideChannel: pbcid/xid is missing."),this.Zsa=!0);};P.prototype.fQc=function(I){var O,Q,T;O=I.Jf;Q=I.Ha;T=I.wY;I=I.xS;O && Q?(Q={sessionId:String(Q),wY:!!T,GDc:this.config.htb?this.config.pca:void 0,rNc:this.config.ZGb},(this.AB=this.Eb?(0,h.vfc)(O,Q,this.Wtc.bind(this),this.config.rY,this.console):(0,h.egc)(O,Q,void 0,this.console)) && this.AB.Sc(this.Xe)):this.Zsa || (I("SideChannelCoordinator: pbcid/xid is missing."),this.Zsa=!0);};P.prototype.Wtc=function(I,O){var Q,T,U,X,Y,W,Z,aa,ca,da,ha,S,N;void 0 !== (null === (Q=I.response) || void 0 === Q?void 0:Q.Wf) && void 0 !== O.jn && this.Kfa(I.response.Wf,O.jn);((null === (T=I.title) || void 0 === T?0:T.Bra) || (null === (U=I.title) || void 0 === U?0:U.Ara)) && this.Cxa(null === (X=I.title.Bra) || void 0 === X?void 0:X.time,null === (Y=I.title.Ara) || void 0 === Y?void 0:Y.time);I.La && O.mediaType && this.TQb(O.mediaType,{bo:I.La.bo,ao:I.La.ao,bwa:O.bi,ob:O.Sa});if(void 0 !== (null === (W=I.title) || void 0 === W?void 0:W.maxBitrate)){N=I.title.maxBitrate;0 < N && this.getTracks(p.u.U).forEach(function(V){(0,w.oo)(V) && (V.RR=N,V.tea(z.oW.ANb,N));});}void 0 !== (null === (aa=null === (Z=I.title) || void 0 === Z?void 0:Z.cT) || void 0 === aa?void 0:aa.time) && void 0 !== (null === (ca=I.title) || void 0 === ca?void 0:ca.aT) && this.F2("prefetch",I.title.cT.time,String(I.title.aT));void 0 !== (null === (ha=null === (da=I.title) || void 0 === da?void 0:da.YS) || void 0 === ha?void 0:ha.time) && void 0 !== (null === (S=I.title) || void 0 === S?void 0:S.XS) && this.F2("execute",I.title.YS.time,String(I.title.XS));};P.prototype.VTa=function(){return void 0 !== this.Sr;};P.prototype.getTracks=function(I){return void 0 === I?(0,f.flatten)(this.KO):this.KO[I];};P.prototype.vpa=function(I,O){I=this.getTracks(I);O=O.OT(this.S,I.map(function(Q){return Q.Tj;}));return "number" === typeof O && 0 <= O?I[O]:void 0;};P.prototype.getTrackById=function(I){var O;this.KO.some(function(Q){return Q.some(function(T){if(T.trackId === I)return (O=T,!0);});});O || this.console.warn("getTrackById not found:",I,"length:",this.KO.length);return O;};P.prototype.Ui=function(I,O){return (I=this.kR(I)) && I[O];};P.prototype.kR=function(I){return this.Twa[I];};P.prototype.Mxc=function(I){var O,Q;if(void 0 === I.Nua || void 0 === I.nZa){O=this.Vi.EZ().filter(function(T){return void 0 !== T.streams[I.Sa];})[0];Q=O.children.filter(function(T){return T.urls.some(function(U){return U.stream.id === I.Sa;});})[0];I.Nua=O.id;I.nZa=Q.id;}return {HUa:I.location === I.Nua,Nxc:I.Ab === I.nZa};};P.prototype.P0a=function(I,O,Q){void 0 !== O && void 0 !== Q && (this.yKb(I.mediaType,O),I.P0a(O,Q));};P.prototype.yKb=function(I,O){var Q;Q=this.config.Nsa;("location" === Q || "video_location" === Q && I === p.u.U) && this.bd.mwa(O);};P.prototype.Vf=function(I){(0,r.assert)(this.hP,"Stream failure reporting can not be used on old architecture prefetch viewables.");return this.hP(I);};P.prototype.Xsa=function(I,O){var Q;(0,r.assert)(!this.Eb,"Unexpected normalizeTimestamp. Live segments not supported. Use AsePlaygraph.normalizeLiveSegment() instead.");Q=this.vpa(p.u.U,I[p.u.U]);Q || (this.console.trace("normalizeTimestamp looking for audio track in absense of video track"),Q=this.vpa(p.u.X,I[p.u.X]));if(null !== Q && void 0 !== Q && Q.EA)return (I=f.I.Ba(O),O=Q.Mx(this.config,I,void 0,!0).qa,I.add(Q.EA.ze).ln(O)?O:Q.GK(this.config,I).ta);};P.prototype.nt=function(I){var O;O=this;if(this.kn)return (this.console.error("updateRequestUrls, closed Viewable:",this.J),!1);p.i5.forEach(function(Q){O.kWc(Q,I) && O.WVc(Q);});this.OVc();this.events.emit("urlsUpdated",{});return !0;};P.prototype.Mx=function(I,O,Q){Q=this.vpa(p.u.U,Q);return (null === Q || void 0 === Q?void 0:Q.EA) && Q.Mx(I,O);};P.prototype.Kfa=function(I,O){this.Iq.Kfa(I,O);};P.prototype.sRa=function(){var I;I=this.getTracks();I=I[(0,f.Lm)(I,function(O){return O.mediaType === p.u.U;})];(0,r.assert)(I,"AseViewable.getLiveSegmentDuration(): No video track");(0,r.assert)((0,w.oo)(I),"AseViewable.getLiveSegmentDuration(): Video stream undefined or not live");return I.Zk;};P.prototype.kWc=function(I,O){var Q;Q=this;return this.kn?(this.console.warn("updateStreamUrls ignored, viewable cleaned up"),!1):this.Ya.reduce(function(T,U){return (0,f.jX)(T,U.ka.filter(function(X){return X.mediaType === I;}));},[]).map(function(T){return Q.Vi.Gxa(Q.J,T.Ed,void 0,O);}).every(function(T){return T;});};P.prototype.OVc=function(){(0,r.assert)(this.yA,"Headers not available on old architecture prefetch viewables.");this.yA.nt();};P.prototype.WVc=function(I){var O,Q,X;Q=[];if(this.kn)this.console.warn("updateStreamUrls ignored, viewable cleaned up");else try{for(var T=n.__values(this.Ya),U=T.next();!U.done;U=T.next()){X=U.value.nt(I);X.length && Q.push.apply(Q,X);}}catch(W){var Y;Y={error:W};}finally{try{U && !U.done && (O=T.return) && O.call(T);}finally{if(Y)throw Y.error;}}};P.prototype.ml=function(){var I;I=this;this.Vi.ml();(this.S1 || this.AB) && p.i5.forEach(function(O){I.M1("rebuffer",I.axb(O).aCb);});};P.prototype.axb=function(I){return this.qXc[I];};P.prototype.M1=function(I,O){var Q;if(this.config.yK){this.AB?Q=this.AB.Tqb({P7:I}):this.S1 && (Q=this.S1.Tt({P7:I}));if(O && Q)try{new g.platform.Al(void 0,"notification").open(O,void 0,2,void 0,void 0,void 0,Q);}catch(T){this.console.error("BlackBox notification failed:",T);}}};P.prototype.zNc=function(){var I;if(0 !== this.Gwa.length){I=[];this.Gwa.forEach(function(O){O.resume() || I.push(O);});this.Gwa=I;}};P.prototype.SG=function(I,O){return this.yA.SG(I,O);};P.prototype.AMb=function(I,O,Q){this.rK.push({K:O,stream:I,Jsc:Q});};P.prototype.$Jb=function(){this.rK=[];};P.prototype.eMc=function(I){this.rK=this.rK.filter(function(O){return O.stream !== I;});};P.prototype.dMc=function(I){this.rK=this.rK.filter(function(O){return O !== I;});};P.prototype.PZ=function(){var I;I=this;return this.dy()?[]:this.rK.map(function(O){return new E.sib(I,O);});};P.prototype.PB=function(I,O,Q){(0,r.assert)(this.yA,"Headers not available on old architecture prefetch viewables.");return this.yA.PB(I,O,Q);};P.prototype.RW=function(I,O){(0,r.assert)(this.yA,"Headers not available on old architecture prefetch viewables.");this.yA.RW(I,O);};P.prototype.Ftc=function(I){var O;O=I.mediaType;this.Ui(O,I.Sa).FVc(g.platform.DZ()[O],this.VTa()?this.config.nBc:0);this.events.emit("onHeaderFragments",I);};P.prototype.NLc=function(I){this.Ya.push(I);};P.prototype.rVc=function(I){I=this.Ya.indexOf(I);(0,r.assert)(-1 !== I,"Unexpected call to unregisterBranch, branch not registered with Viewable.");this.Ya.splice(I,1);};P.prototype.Kta=function(I){var O;null === (O=this.Jda) || void 0 === O?void 0:O.ux(I);};P.prototype.BS=function(I){this.kn?this.console.warn("onloadstart ignored, viewable cleaned up, mediaRequest:",I):void 0 !== I.location && this.yKb(I.mediaType,I.location);};P.prototype.ND=function(I){this.kn?this.console.warn("onprogress ignored, viewable cleaned up, mediaRequest:",I):(0,C.aUa)(I) && this.WY.uN(I);};P.prototype.uo=function(I){var O;(0,C.owc)(I) && (null === (O=this.Jda) || void 0 === O?void 0:O.Ey(I));this.kn?this.console.warn("oncomplete ignored, viewable cleanuped, mediaRequest:",I):this.dy() || (0,C.aUa)(I) && this.WY.uN(I);};P.prototype.z0=function(I,O,Q){var T;Q && (null === (T=this.Jda) || void 0 === T?void 0:T.Ey(I));};P.prototype.yy=function(I){this.kn?this.console.warn("onerror ignored, viewable cleaned up, mediaRequest:",I):(0,C.aUa)(I) && (this.WY.YH(I,void 0,I.status,I.bh,I.Qg),this.nt(I.stream) || this.Vf({Ti:I.YC || "unknown",XC:"NFErr_MC_StreamingFailure",GH:I.bh,wk:I.status,Qg:I.Qg,Ab:I.stream.Ab}));};P.prototype.Lta=function(I){(0,C.oxc)(I) && this.Gwa.push(I);};P.prototype.VIb=function(){var I,O;this.Cxa(null === (I=this.S.Ji) || void 0 === I?void 0:I.z9,null === (O=this.S.Ji) || void 0 === O?void 0:O.CQ,!0);};P.prototype.pLc=function(){this.Ro.prefetch && void 0 !== this.Ro.prefetch.startTime && void 0 !== this.Ro.prefetch.duration && this.F2("prefetch",this.Ro.prefetch.startTime,this.Ro.prefetch.duration,!1);this.Ro.execute && void 0 !== this.Ro.execute.startTime && void 0 !== this.Ro.execute.duration && this.F2("execute",this.Ro.execute.startTime,this.Ro.execute.duration,!1);};P.prototype.Cxa=function(I,O,Q,T){var U,X,Y,W,Z;(0,r.assert)(this.S.Ji,"Missing manifest liveMetadata.");Y=this.S.Ji;W=Y.z9;Z=Y.CQ;Y=this.nj;this.uJ={startTime:null !== (U=null !== W && void 0 !== W?W:I) && void 0 !== U?U:Y.startTime,endTime:null !== (X=null !== Z && void 0 !== Z?Z:O) && void 0 !== X?X:Y.endTime,BK:T};I=this.uJ.startTime !== Y.startTime;O=this.uJ.endTime !== Y.endTime;Y=this.duc(Y);if(Q || I || O || Y)(this.events.emit("liveEventTimesUpdated",n.__assign({M:this},this.uJ)),this.pLc());(O || Y) && this.Ya.forEach(function(aa){aa.AM();});};P.prototype.TQb=function(I,O){if(this.SA[I].ao !== O.ao || this.SA[I].bo !== O.bo)(this.SA[I]=O,this.events.emit("liveLoggingInfoUpdated",{M:this,mediaType:I,info:O}));};P.prototype.F2=function(I,O,Q,T){var U,X,Y,W,Z;U=!this.Ro.execute || this.Ro.execute.startTime !== O || this.Ro.execute.duration !== Q || T;T=!this.Ro.prefetch || this.Ro.prefetch.startTime !== O || this.Ro.prefetch.duration !== Q || T;if(this.Oc.z9){X=this.Oc.Vcc(O);Y=1E3 * Number(Q);W=Math.floor(Math.random() * Y) + X.G;X=X.G;Z="execute" === I?"ending":"prefetch";if("execute" === I && U || "prefetch" === I && T)(this.Ro[I]={startTime:O,duration:Q},this.Pjb[I]={rawStartMs:X,rawEndMs:X + Y,selectedStartMs:W},this.LB=this.LB.filter(function(aa){return aa.type !== Z;}),this.LB.push({Jea:W,Ukc:W,type:Z}),this.events.emit("livePostplayUpdated",{M:this,Yca:W,action:I}));}else this.console.warn("Received oc live message prior to event start, ignoring",{action:I,actionTime:O,duration:Q});};P.prototype.tXa=function(I,O){var Q;if(this.Eb && I.mediaType === p.u.X){O=(0,f.cc)(O.ka,function(T){return T.mediaType === p.u.U;});(0,r.assert)((0,w.oo)(O),"onFirstFragmentReceived called with non-live branch");Q=O.Nx;I.MEc(O.Fk,this.config.tCb?Q:f.I.ia);this.Ya.forEach(function(T){return T.Uf?T.DU(I):T.Uf;});}};P.prototype.fl=function(I){void 0 === I && (I=!1);return this.Oc.fl(I);};P.prototype.fo=function(I){void 0 === I && (I=!1);return this.Oc.fo(I);};P.prototype.Y9=function(){return this.Oc.Y9();};P.prototype.S0a=function(I){this.Oc.S0a(I);this.di && this.di.pnc();};P.prototype.L_a=function(I){this.Oc.L_a(I);};P.prototype.Dtc=function(I){var O,Q,T,U;if(!this.gka){O=I.Sqa;Q=I.iGc;T=I.kGc;U=I.lGc;I=I.Ab;this.console.warn("Streaming failure, is permanent: " + O + ", last error code: " + Q + ", last http code: " + T + ", last native code: " + U + ", server: " + I);O?(this.console.warn(" > Permanent failure, done"),O=this.Vf({Ti:"Permanent failure",XC:"NFErr_MC_StreamingFailure",GH:Q,wk:T,Qg:U,Ab:I})):(this.console.warn(" > We are buffering, calling it!"),O=this.Vf({Ti:"Temporary failure while buffering",XC:"NFErr_MC_StreamingFailure",GH:U,wk:T,Qg:U,k2a:!0,Ab:I}));O || (this.console.warn(" > Resetting failures"),this.WY.t1());}};P.prototype.Ctc=function(){(0,r.assert)(this.XK,"Error handling not available on old architecture prefetch viewables.");this.gka || (this.nt(),this.XK());};P.prototype.duc=function(I){return I.BK && this.uJ.BK?this.uJ.BK < I.BK:this.uJ.BK !== I.BK;};P.prototype.kob=function(I){var O,Q,T,U,X,Y,W,Z,aa,ha,V,ia,ka,pa,ea,ja;W=this;if(!I || 2 > I.length || !I.every(function(ta){return 0 < (W.KO[ta] || []).length;}))return !1;Z={};aa={};try{for(var ca=n.__values(I),da=ca.next();!da.done;da=ca.next()){ha=da.value;Z[ha]=new Set();aa[ha]={};try{for(var S=(Q=void 0,n.__values(this.KO[ha])),N=S.next();!N.done;N=S.next()){V=N.value;try{for(var ba=(U=void 0,n.__values(V.Ed)),fa=ba.next();!fa.done;fa=ba.next()){ia=fa.value;if(void 0 === ia.location || void 0 === ia.Ab){Z[ha]=new Set(["__invalid__"]);break;}Z[ha].add(ia.location);ka=ia.location;pa=aa[ha];(pa[ka]=pa[ka] || new Set()).add(ia.Ab);}}catch(ta){U={error:ta};}finally{try{fa && !fa.done && (X=ba.return) && X.call(ba);}finally{if(U)throw U.error;}}}}catch(ta){Q={error:ta};}finally{try{N && !N.done && (T=S.return) && T.call(S);}finally{if(Q)throw Q.error;}}}}catch(ta){var oa;oa={error:ta};}finally{try{da && !da.done && (O=ca.return) && O.call(ca);}finally{if(oa)throw oa.error;}}oa=I[0];Q=Array.from(Z[oa] || []);for(O=1;O < I.length;O++)if((T=Array.from(Z[I[O]] || []),0 < (0,f.Yo)(Q,T).length || 0 < (0,f.Yo)(T,Q).length))return !1;try{for(var la=n.__values(Q),R=la.next();!R.done;R=la.next()){ka=R.value;ea=Array.from(aa[oa][ka] || new Set()).slice().sort(function(ta,qa){return ta - qa;});Z=function(ta){var qa;qa=Array.from(aa[I[ta]][ka] || new Set()).slice().sort(function(Aa,Ga){return Aa - Ga;});if(ea.length !== qa.length || ea.some(function(Aa,Ga){return Aa !== qa[Ga];}))return {value:!1};};for(O=1;O < I.length;O++){ja=Z(O);if("object" === typeof ja)return ja.value;}}}catch(ta){var sa;sa={error:ta};}finally{try{R && !R.done && (Y=la.return) && Y.call(la);}finally{if(sa)throw sa.error;}}return !0;};P.prototype.qcc=function(){var I,O,Q,T,X,Y,aa;Q=this.config.Kzc || [];T={};if(!this.Eb || 0 === Q.length)return T;for(var U=0;U < Q.length;U++){X=Q[U];if(this.kob(X)){Y=X[0];try{for(var W=(I=void 0,n.__values(X)),Z=W.next();!Z.done;Z=W.next()){aa=Z.value;aa !== Y && (T[aa]=Y);}}catch(ca){I={error:ca};}finally{try{Z && !Z.done && (O=W.return) && O.call(W);}finally{if(I)throw I.error;}}}}return T;};P.prototype.cpc=function(I){var O;O=this.Hma;return O && void 0 !== O[I]?O[I]:I;};return P=n.__decorate([v.rZ],P);})(t.KN);b.z5a=a;},26286:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.h6a=void 0;d=a(22970);n=a(91176);c=a(66164);t=(function(){function f(g,e,h,k,l,m){this.J=g;this.aI=e;this.IH=h;this.WFc=k;this.NXa=l;this.i$=m;this.OJa=new n.Jo();}Object.defineProperties(f.prototype,{M:{get:function(){var g;return null === (g=this.ega) || void 0 === g?void 0:g.M;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{kr:{get:function(){return this.OJa.promise;},enumerable:!1,configurable:!0}});f.prototype.Ka=function(){var g;this.M && (this.M.rVc(this.oa),this.NXa(this.M));null === (g=this.ega) || void 0 === g?void 0:g.jl.release();this.ega=void 0;};f.prototype.Wpa=function(){return this.aI.Wpa(this.J);};f.prototype.Tb=function(g,e){return d.__awaiter(this,void 0,void 0,function(){var h,k,l,m,p,r,q,u,v;return d.__generator(this,function(w){switch(w.label){case 0:return (this.oa=g,this.aI.Wpa(this.J) || !e?[3,2]:[4,e()]);case 1:h=w.T();if(g.Zc)throw Error("Branch cancelled");w.label=2;case 2:k=this.i$();l=this.aI.Ps(this.J,k);m=l.kr;p=l.M;r=l.jl;this.ega={jl:r,M:p};q={tB:c.platform.time.ha(),vB:void 0};if(p)return (q.vB=q.tB,this.Ezb(p,g,h,q,!1),this.OJa.resolve(p),[2,p]);w.label=3;case 3:return (w.tc.push([3,5,,6]),[4,m]);case 4:return (u=w.T(),q.vB=c.platform.time.ha(),[3,6]);case 5:throw (v=w.T(),q.vB=c.platform.time.ha(),this.WFc(g,v,h,q),v);case 6:return (this.OJa.resolve(u),this.Ezb(u,g,h,q,!0),[2,u]);}});});};f.prototype.Ezb=function(g,e,h,k,l){this.ega && (this.ega.M=g,g.NLc(e),this.IH(e,g,h,k,l));};return f;})();b.h6a=t;},39795:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.Q9a=void 0;d=a(22970);n=a(66164);c=a(8171);f=a(35018);g=a(65161);t=a(81392);e=a(52571);h=a(42431);a=(function(k){function l(m,p,r,q,u){var v;v=k.call(this,m) || this;v.M=m;v.console=p;v.config=r;v.dXa=q;v.iQa=u;v.headers=[Object.create(null),Object.create(null)];v.OBb=[void 0,void 0];v.mv=void 0;return v;}d.__extends(l,k);Object.defineProperties(l.prototype,{zd:{get:function(){return this.mv || (this.mv=this.QC());},enumerable:!1,configurable:!0}});l.prototype.Qe=function(){var m;m=this;this.headers.forEach(function(p,r){for(var q in p)(p[q].Qe(),m.eOa(r,q));});this.mv && h.QI.instance.W8(this.mv);this.mv=void 0;};l.prototype.SG=function(m,p){return this.headers[m][p];};l.prototype.PB=function(m,p,r){var q,u,v,w;q=this.config;if(this.SG(m.mediaType,m.Sa))return !1;u=this.ryc;v=this.syc;if(void 0 !== q.yWa && void 0 !== u && void 0 !== v){w=n.platform.time.ha();if(w - u < q.yWa || w - v < q.yWa)return !1;}m=this.WUc(m,p,r);this.syc=n.platform.time.ha();return m;};l.prototype.WUc=function(m,p,r){var q;q=m.mediaType;c.Xw.eD(q);if(this.SG(q,m.Sa))m=!1;else {p={K:p,offset:0,ma:this.XY(m)};r || (r=this.zd);(0,e.assert)(r);m.za && r.track.ZOb && (p.offset=0,p.ma=0);m.url && (this.M.axb(q).aCb=m.MZ(!0));if(!this.hfc(m,r,p).open())return (this.M.Vf({Ti:"MediaRequest open failed (2)",XC:"NFErr_MC_StreamingFailure"}),!1);m=!0;}return m;};l.prototype.nt=function(){var m,p;m=this;p=[];this.headers.forEach(function(r,q){var v;c.Xw.eD(q);for(var u in r){q=r[u];v=q.p3a();1 === v?p.push(q):2 === v && m.M.Vf({Ti:"swapUrl failure"});}});return p;};l.prototype.uo=function(m,p){var r,q;if(m instanceof f.Yya){r=m.mediaType;q=c.Xw.eD(r);this.M.kn?q.warn("header onrequestcomplete ignored, session shutdown:",m.toString()):(this.dXa({type:"logdata",target:"startplay",Nc:{usedNativeDataView:m.EWc}}),m.cua > m.UXa && (this.OBb[r]=m.cua),this.Mtc(m),this.ryc=n.platform.time.ha());this.MQ(m,p);}};l.prototype.RW=function(m,p){var r,q,u;r=this.headers[m];for(q in r){u=r[q];u && !u.stream.Qa && u.gg === p && (this.eOa(m,q),u.Qe());}};l.prototype.QC=function(){var m,p,r,q;m=this;p=this.M.R;r="headers";this.config.gLb && this.M.JA && this.M.Wj && (p=this.M.Wj.R,this.config.Qzc && this.M.kob([g.u.U,g.u.X]) && (r=g.u.U));q=h.QI.instance.QC(r,p,!0,!1,{},this.config);q.on("error",function(){m.console.error("headerManager.createRequestQueue: error on request queue",q.bh,q.Qg);});q.on("transportreport",function(u){u.Vna=m.M.Iq.CK;u.S=m.M.S;m.iQa(u);});q.Tb();return q;};l.prototype.I5b=function(m){this.headers[m.mediaType][m.Sa]=m;};l.prototype.Mtc=function(m){var p,r,q,v;p=this.config;r=c.Xw.eD(m.mediaType);q=m.stream.Qa;if(p.Xma){p=q.length;r.trace("fragment count:",p);for(var u=0;u < p;++u){v=q.get(u);r.trace("fragment: " + u + ", startPts: " + v.qa.G + ", duration: " + v.Wb.G + ", offset: " + v.offset);}}this.G5b(m);};l.prototype.G5b=function(m){var p,r;p=m.mediaType;r=m.Sa;c.Xw.eD(p);m.KGb && (m.KGb.forEach(function(q){(q=q.Ui(p,r)) && q !== m.stream && !q.sh && q.bqb(m.stream);}),m.KGb=void 0);this.M.Ftc(m);};l.prototype.hfc=function(m,p,r){var q,u;q=this;u=c.Xw.eD(m.mediaType);m=new f.Yya(m,this.config,p,r,this,r.K,!1,u);this.config.W6b && (p=this.M.S1) && r.BB && (r.BB=p.Tt({}));m.addListener("headerRequestCancelled",function(v){q.Gtc(v.request);});this.I5b(m);return m;};l.prototype.XY=function(m){var p,r,q,u;p=m.Ao;r=m.M;q=r.duration;u=this.config;return m.za?512:r.Pv?u.hub?u.hub:u.Y$:u.CWc && p?p.offset + p.size:(m=this.OBb[m.mediaType])?m + 128:u.XY?2292 + 12 * Math.ceil(q / 2E3):u.Y$;};l.prototype.Gtc=function(m){this.eOa(m.mediaType,m.Sa);};l.prototype.eOa=function(m,p){delete this.headers[m][p];};return l;})(t.KN);b.Q9a=a;},27457:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Hab=void 0;d=a(22970);n=a(91176);c=a(59458);f=a(48170);t=(function(){function g(e,h,k){var l;this.M=e;this.config=h;this.console=k;this.Ojb=this.ZGc();this.wkb=0;this.Eea=null;e.Eb && (this.M.VIb(),this.RVa=this.$Gc(),this.JBc=(e=null === (l=e.S.Ji) || void 0 === l?void 0:l.vOc) && 0 < e?n.I.Inc(e):n.I.dh,this.wkb=this.Zfc());}Object.defineProperties(g.prototype,{CKb:{get:function(){return this.wkb;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{wCb:{get:function(){return this.Ojb;},enumerable:!1,configurable:!0}});g.prototype.cNa=function(e){return (e instanceof n.I?e:n.I.Ba(new Date(e).getTime())).ea(this.Wwa);};g.prototype.Vcc=function(e){var h;e=this.cNa(e);h=this.EG;if(h)return e.ea(h);this.console.warn("LivePositionService.convertEpochToLiveUXContentTimestamp(): Event start time is not available");return n.I.ia;};g.prototype.bNa=function(e){return this.Wwa.add(e);};g.prototype.Ypb=function(e){return this.RVa.add(e);};g.prototype.gwa=function(e){return this.M.Iq.gwa(e);};g.prototype.CYa=function(e){return this.M.Iq.CYa(e);};Object.defineProperties(g.prototype,{Wf:{get:function(){return this.M.Iq.Wf;},enumerable:!1,configurable:!0}});g.prototype.K8b=function(e){return e.add(n.I.Ba(this.config.ll));};Object.defineProperties(g.prototype,{Wwa:{get:function(){return this.RVa.ea(this.ulc);},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{CSc:{get:function(){var e;e=this.M.nj.BK;if(void 0 !== e)return n.I.Ba(e);e=this.M.nj.endTime;if(void 0 === e)return n.I.dh;e=new Date(e).getTime() + this.config.yCb;return n.I.Ba(e);},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{z9:{get:function(){var e;e=this.M.nj.startTime;if(void 0 !== e)return n.I.Ba(new Date(e).getTime());},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{CQ:{get:function(){var e;e=this.M.nj.endTime;if(void 0 !== e)return n.I.Ba(new Date(e).getTime());},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{wOb:{get:function(){return this.CSc.ea(this.Wwa);},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{EG:{get:function(){var e;e=this.M.nj.startTime;if(void 0 !== e)return this.cNa(e);},enumerable:!1,configurable:!0}});g.prototype.fo=function(e){return n.I.Ba(Math.max(0,this.fl(e) - this.config.ll));};g.prototype.Y9=function(){var e,h;e=this.u$(!0);h=n.I.Ba(this.M.Iq.Wf).ea(this.JBc);return h.lessThan(e)?n.I.ia:h.ea(e);};Object.defineProperties(g.prototype,{jrb:{get:function(){return {KVa:n.I.Ba(this.fl(!0)),ozc:this.fo(!0)};},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{coa:{get:function(){var e;e=this.M.nj.endTime;if(void 0 !== e)return this.cNa(e);},enumerable:!1,configurable:!0}});g.prototype.pL=function(){return null !== this.Eea;};g.prototype.S0a=function(e){this.Eea=n.I.Ba(this.M.Iq.Wf - this.config.ll - e - this.config.lRc);};g.prototype.L_a=function(e){this.pL() && (this.Eea=this.Eea.add(n.I.Ba(e)));};g.prototype.u$=function(e){return e && this.pL()?this.Eea:this.RVa;};g.prototype.tRa=function(e){return this.u$(e).add(n.I.Ba(this.Ojb)).add(n.I.Ba(this.CKb));};g.prototype.fl=function(e){e=this.tRa(e).G;return Math.max(0,this.M.Iq.Wf - e);};Object.defineProperties(g.prototype,{ulc:{get:function(){var e,h;h=this.M.S.Ji;h=null !== (e=null === h || void 0 === h?void 0:h.boa) && void 0 !== e?e:0;return n.I.Ba(h);},enumerable:!1,configurable:!0}});g.prototype.aqb=function(e){return this.EG?e.add(this.EG):this.jrb.KVa;};g.prototype.ZGc=function(){var e;e=this.config.rVa || this.config.zra;f.l && this.console.log(("Live edge cushion is ").concat(e,"ms"));return e;};g.prototype.$Gc=function(){var e,h;e=this.M.S.Ji;(0,n.assert)(e,"LivePositionService.parseManifestAvailabilityStartTime(): Expected live metadata");h=d.__read(Object.keys(e.LT),1)[0];e=new Date("string" === typeof e.CP?e.CP:e.LT[h].CP).getTime();return n.I.Ba(e);};g.prototype.Zfc=function(){var e;if(Math.random() < this.config.yra)return (f.l && (0,n.assert)(0 >= this.config.dba,"`liveEarlyRequestDefaultoffsetMs` must be negative"),this.config.dba);e=(0,c.vJb)(0,this.config.Hra,{$vc:!0,uvc:!0});f.l && this.console.log(("Client request offset is ").concat(e,"ms"));return e;};return g;})();b.Hab=t;},31303:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Pab=b.I0b=void 0;d=a(66164);n=a(91176);c=a(48170);f=(function(){function g(){this.BBc=20;this.max=Number.NEGATIVE_INFINITY;this.min=Number.POSITIVE_INFINITY;this.trace=[];this.fwa=[];this.count=0;}g.prototype.Yka=function(e,h){this.count++;this.max < e && (this.max=e);this.min > e && (this.min=e);this.trace.length >= this.BBc && (this.trace.shift(),this.fwa.shift());this.trace.push(e);this.fwa.push(h);};return g;})();b.I0b=f;t=(function(){function g(e,h){this.M=e;this.config=h;this.gxa=new n.Jo();this.console=new d.platform.Console("ASEJS","asejs|serverclock");this.Dkb=new f();}Object.defineProperties(g.prototype,{Wf:{get:function(){var e;if(void 0 === this.Ip){e=d.platform.time.now();c.l && this.console.debug("serverTimeMs will be based on the device clock and may be inaccurate prior to setting serverTimeDelta from OC clock sync." + ("returning ").concat(e));return e;}return d.platform.time.ha() + this.Ip;},set:function(e){var h;this.tD=d.platform.time.ha();this.hy=e;h=this.hy - this.tD;(void 0 === this.Ip || h > this.Ip) && this.aRb(h,e);this.gxa.FM || (c.l && this.console.trace("LiveServerClock: synchronized",{vCb:this.M.fo()}),this.gxa.resolve());},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{CTc:{get:function(){return this.gxa.promise;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{Gxc:{get:function(){return this.gxa.FM;},enumerable:!1,configurable:!0}});g.prototype.aRb=function(e,h){var k;k=this.Ip;this.Ip=e;void 0 !== k && (this.cLb(k),this.Dkb.Yka(e - k,h));c.l && this.console.debug("Updating serverTimeDelta from ",k,"ms to ",e,"ms");};g.prototype.gwa=function(e){var h;return e - (null !== (h=this.Ip) && void 0 !== h?h:0);};g.prototype.CYa=function(e){var h;return e + (null !== (h=this.Ip) && void 0 !== h?h:0);};g.prototype.Kfa=function(e,h){var k,l;c.l && this.console.log("updateServerTimeMs: ",e,h);if(!this.config.Lna || void 0 === this.Ip || 0 > h)this.Wf=e;else {this.tD=d.platform.time.ha();this.hy=e;k=this.hy - this.tD;l=this.tD + this.Ip;if(l < this.hy || l > this.hy + h + this.config.Isa)(c.l && this.console.debug("updateServerTimeDelta: ",this.Ip,k,this.hy,l,h),this.aRb(k,e));}};Object.defineProperties(g.prototype,{y0a:{get:function(){return this.Dkb;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{CK:{get:function(){var e;e=d.platform.time.ha();return void 0 === this.Ip?{jpb:e}:{jpb:e,Wf:e + this.Ip,tD:this.tD,hy:this.hy};},enumerable:!1,configurable:!0}});g.prototype.aLb=function(){var e;if(void 0 !== this.tD && void 0 !== this.hy){e=this.Ip;this.Ip=this.hy - this.tD;c.l && this.console.debug("resync: Updating serverTimeDelta from ",e,"ms to ",this.Ip,"ms");this.cLb(e);}};g.prototype.cLb=function(e){this.M.pL && ((0,n.assert)(e && this.Ip,"Unexpected simulatedLiveEdge during initial clock sync. simulatedLiveEdge should be set during pipeline normalization AFTER the initial header request and intial clock sync occurs."),this.M.L_a(this.Ip - e));};return g;})();b.Pab=t;},10943:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Cdb=void 0;d=a(66164);n=a(79048);c=a(91176);t=(function(){function f(g,e){this.J=g;this.iXc=e;this.KC=!0;this.Xyb=this.lp=this.Pv=!1;this.R=("").concat(n.vr);this.pL=this.qp=this.gUa=this.hH=this.Eb=!1;this.console=new d.platform.Console("ASEJS","media|asejs","PaddingViewable");}Object.defineProperties(f.prototype,{Wf:{get:function(){this.console.warn("Uexpected access of serverTimeMs on PaddingViewable. serverTimeMs is not server synced on PaddingViewable and will be based on the device clock.");return d.platform.time.now();},enumerable:!1,configurable:!0}});f.prototype.BAb=function(){return !1;};f.prototype.getTrackById=function(){};Object.defineProperties(f.prototype,{kn:{get:function(){return !1;},enumerable:!1,configurable:!0}});f.prototype.ml=function(){};f.prototype.$Jb=function(){};f.prototype.Vf=function(){return !0;};f.prototype.Xsa=function(g,e){var h;(0,c.assert)(this.NQ,"Padding viewable must have fragmentDuration set when timestamp normalization is requested");g=Math.floor(e / this.NQ) * this.NQ;h=Math.ceil(e / this.NQ) * this.NQ;return Math.abs(e - g) <= Math.abs(e - h)?c.I.Ba(g):c.I.Ba(h);};f.prototype.fo=function(){};f.prototype.Y9=function(){return c.I.BWa;};f.prototype.fl=function(){return -1;};f.prototype.sRa=function(){return c.I.Ba(-1);};return f;})();b.Cdb=t;},34012:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.a7a=void 0;d=a(91967);t=(function(){function n(c){this.Hma=c;this.dc=this.Zl=n.dc;}Object.defineProperties(n.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});n.prototype.Bh=function(c){if(c.xs === d.Td.Kp)return this.Hma;};n.dc="connection-sharing";return n;})();b.a7a=t;},66133:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.sib=void 0;t=(function(){function a(d,n){var c;this.M=d;this.Zrb=n;this.kw=-Infinity;this.Sz="available";c=n.stream;n=n.Jsc;n=n();this.identifier=("").concat(c.J,"-").concat(c.mediaType,"-").concat(c.bitrate);this.mediaType=c.mediaType;this.hh=n.hh;this.ie=n.ie;this.yu=n.yu;this.Do=n.Do;this.fp=n.fp;this.hT=0;this.gT=Infinity;this.Fw=this.PH=1;this.jZ=0;this.groupId=("").concat(d.J);this.cy=!0;this.Ak=this.op=!1;}a.prototype.dG=function(){return {NS:!0};};a.prototype.tL=function(){var d,n;d=this.Zrb;n=d.stream;if(n.PB(d.K))return (this.M.eMc(n),{Bf:!0,reason:"success"});this.M.dMc(this.Zrb);return {Bf:!1,reason:"viewableTryIssueHeaderRequest"};};a.prototype.toJSON=function(){return {mediaType:this.mediaType,sA:this.sA,hh:this.hh,ie:this.ie,yu:this.yu,Do:this.Do,fp:this.fp,jZ:this.jZ,hT:this.hT,PH:this.PH,gT:this.gT,Fw:this.Fw,ah:this.ah,e2:this.e2,groupId:this.groupId,cy:this.cy,op:this.op,Ak:this.Ak,identifier:this.identifier};};return a;})();b.sib=t;},24473:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.wgb=void 0;t=a(66164);d=a(69575);n=t.platform.Al;new t.platform.Console("ASEJS_SIDECHANNEL","media|asejs");a=(function(){function c(f,g,e){this.D8=g;this.xS=e;this.Y4b=new d.Dja(f);this.Ha=g.Ha;this.P1b=1E3 * g.IBc / g.C9b;this.wic=g.wY;this.Hmb=!1;}c.prototype.Tt=function(f){var g,e,h;g={s_xid:this.Ha,dl:this.wic?1:0};this.D8.HGc && (g.r_pad=1);f.GP && (g.bs=(0,d.vma)(Math.floor(f.GP / this.P1b) + 1,1,5));f.pca && (g.limit_rate=f.pca);f.P7 && (g.bb_reason=f.P7);f.E2a && (g.tm=f.E2a);f.aIb && (g.play_ms=f.aIb);if(f.WGb){e=f.WGb;h=e.Fs;"HYBRID" === h?(g.hybrid=e.zA.gzb,g.cspr=e.zA.rn,g.cu=e.zA.nma,g.cldl=e.zA.xva,g.h_ms=e.zA.UDb):"CCSP" === h && ((h=e.Qqa()) || !h && this.Hmb) && (g.cpr_ss=e.oE,g.cpr_ca=e.NC,g.cpr_rec=e.gE,this.Hmb=h);}f.yLa && (g.br="" + f.yLa.start + "+" + f.yLa.size);return this.K3b(g);};c.prototype.M1=function(f,g){var e,h;if(this.D8.yK)try{e=new n(void 0,"notification");h=this.Tt({P7:f});g && h && e.open(g,void 0,2,void 0,void 0,void 0,h);}catch(k){this.xS("SideChannel: Error when sending sendBlackBoxNotification. Error: " + k);}};c.prototype.K3b=function(f){var g;try{g=this.v4b(f);return this.Y4b.encrypt(g);}catch(e){this.xS("SideChannel: Error when obfuscating msg. Error: " + e);}};c.prototype.v4b=function(f){return Object.keys(f).map(function(g){return encodeURIComponent(g) + "=" + encodeURIComponent(JSON.stringify(f[g]));}).join("&");};return c;})();b.wgb=a;},74418:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;Object.defineProperties(b,{__esModule:{value:!0}});b.n5a=void 0;d=a(22970);t=a(90745);n=a(91176);c=a(91176);f=a(66164);g=a(48170);e=a(29358);h=a(29092);k=a(55024);l=a(63002);m=a(53693);p=a(33604);r=a(52571);q=a(54540);u=a(69575);v=a(54923);w=a(58049);a=(function(x){function y(){var A;A=x.apply(this,d.__spreadArray([],d.__read(arguments),!1)) || this;A.xkb=0;A.vJa=0;A.Kja=0;A.dIa=0;return A;}d.__extends(y,x);y.prototype.t_a=function(A){var z,B,C,D;x.prototype.t_a.call(this,A);this.xkb++;this.vJa++;this.Qkb=f.platform.time.ha();this.AW || (this.AW={Ncc:null === (z=A.ta) || void 0 === z?void 0:z.G,Kma:null === (B=A.qa) || void 0 === B?void 0:B.G,index:A.index},this.Zja || (this.Zja=this.AW));z=this.nka;B=!1;z && 100 > Math.abs(z.Ob.G - (null === (C=A.Sb) || void 0 === C?NaN:C.G)) && (this.Kja+=A.Ob.G - z.Ob.G,this.dIa++,B=!0);B || (this.Kja=null === (D=A.Wb) || void 0 === D?void 0:D.G,this.dIa=1);this.nka=A;};y.prototype.stop=function(){x.prototype.stop.call(this);this.vJa=0;this.AW=void 0;};y.prototype.Dwb=function(){var A,z,B,C,D;z=this.Gy;B=z.Uma;if(B){D=B.je(this.CF);D && D.ee && (C=D.ee.Exb());return {RM:C,currentBranch:{sId:B.K && B.K.id,cancelled:B.Zc},currentReceivedCount:z && z.zgc,totalReceivedCount:this.xkb,currentState:z && z.nrb || "Uninitialized",lastRequestPushed:this.nka && ({contentEndPts:null === (A=this.nka.ta) || void 0 === A?void 0:A.G,fragmentIndex:this.nka.index}),tslp:this.Qkb && f.platform.time.ha() - this.Qkb,cpts:this.Kja,crq:this.dIa,rslp:this.vJa,firstRequestSSPushed:this.AW && ({contentStartPts:this.AW.Kma,fragmentIndex:this.AW.index}),firstRequestPushed:this.Zja && ({contentStartPts:this.Zja.Kma,fragmentIndex:this.Zja.index})};}};return y;})((function(x){function y(A,z,B,C,D,F,H,E,G,J,L){var K;K=x.call(this) || this;K.yx=A;K.CF=z;K.config=C;K.console=D;K.player=F;K.uw=H;K.gd=E;K.Rp=G;K.aP=new c.vt(!1);K.WO=new c.vt(n.I.Ba(-Infinity));K.console=(0,u.Df)(f.platform,K.console,("AsePlayerBuffer [").concat(z,"]:"));K.Gy=new e.f6a(K.console,B,z);K.resume();F && H && E && (L?(K.TD=L,L.Rz(F,E,K.yx)):K.zqb(),A=new l.L8a(null === F || void 0 === F?void 0:F.gd,n.I.Ba(K.config.cca),D),K.Gy.h7(A),0 < K.config.znb && (K.ynb=new v.X5a(n.I.Ba(K.config.c9b),K.config.znb,K.console),K.Gy.h7(K.ynb)),K.config.zmb && (F=new m.zdb(null === F || void 0 === F?void 0:F.gd,K.config.zmb,n.I.Ba(K.config.i7b),D),K.Gy.h7(F)),J && (K.ILb=new p.jgb(J,K.mediaType,D),K.Gy.h7(K.ILb)),g.l && K.config.nkc && (D=new q.Lab(D),K.Gy.h7(D)));K.yx.on("requestAppended",function(M){K.aP.set(!0);M.request.Ob && K.WO.set(M.request.Ob);K.emit("requestAppended");});return K;}d.__extends(y,x);Object.defineProperties(y.prototype,{xp:{get:function(){return this.aP;},enumerable:!1,configurable:!0}});Object.defineProperties(y.prototype,{JR:{get:function(){return this.WO;},enumerable:!1,configurable:!0}});Object.defineProperties(y.prototype,{fAb:{get:function(){return this.Gy.lj;},enumerable:!1,configurable:!0}});Object.defineProperties(y.prototype,{XT:{get:function(){return this.yx.endOfStream;},enumerable:!1,configurable:!0}});y.prototype.zqb=function(){var A;(0,r.assert)(this.player && this.uw && this.gd,"Player should be defined");A=this.TD;this.TD && this.TD.MXa();this.TD=new k.dfb(this.CF,this.console,this.player,this.yx,this.player.events,this.uw,this.gd,this.Rp);this.TD.O2a(A);};Object.defineProperties(y.prototype,{mediaType:{get:function(){return this.CF;},enumerable:!1,configurable:!0}});y.prototype.Dwb=function(){};y.prototype.resume=function(){g.l && this.console.trace("resume");this.WNb();};Object.defineProperties(y.prototype,{i8b:{get:function(){return this.sW;},enumerable:!1,configurable:!0}});y.prototype.Bea=function(){this.yx.cta(!0);};y.prototype.reset=function(A,z){var B,C,D,F;void 0 === A && (A=!1);g.l && this.console.trace("AsePlayerBuffer.reset mediaTypes:",z);this.stop();this.yx.reset(A);this.aP.set(!1);this.WO.set(n.I.Ba(-Infinity));A || (this.sW=void 0,null === (B=this.TD) || void 0 === B?void 0:B.reset(),A=null === (C=this.player) || void 0 === C?void 0:C.Gh,null === (D=this.ILb) || void 0 === D?void 0:D.yXa(A,z || A),null === (F=this.ynb) || void 0 === F?void 0:F.yXa());};y.prototype.cd=function(A){void 0 === A && (A=!1);g.l && this.console.trace("restart");this.reset(A);this.WNb(!0);};y.prototype.stop=function(){g.l && this.console.trace("stop");this.Gy.mOb();};y.prototype.close=function(){var A;g.l && this.console.trace("close");null === (A=this.TD) || void 0 === A?void 0:A.close();};y.prototype.Ka=function(){this.stop();this.close();};y.prototype.m0=function(){this.config.zoa && this.yx.hnc();this.yx.d9();};y.prototype.VM=function(A){this.yx.VM(A);};y.prototype.Xmc=function(A){this.yx.SDc(A);};y.prototype.$k=function(A){var z;return !(null === (z=this.TD) || void 0 === z || !z.$k(A));};y.prototype.WNb=function(A){if(!this.Gy.lj || A)(this.Gy.uNc(),h.AsyncIterator.$qa(this.Gy,this.Xxc.bind(this)));};y.prototype.Xxc=function(A){if(!A.done)if((A=A.value,(0,w.iUa)(A)))(this.WO.set(A.oa.Ob),this.aP.set(!0));else try{this.t_a(A);}catch(z){this.console.error("Error in requestReceived",z);}};y.prototype.t_a=function(A){var z,B,C,D,F,H,E,G;g.l && this.console.trace(("requestReceived: ").concat(null === (z=this.Gy.Uma) || void 0 === z?void 0:z.K.id) + (" ").concat(A.toString(),", edit: ").concat(JSON.stringify(A.pa)));this.yx.endOfStream?g.l && this.console.error("Buffer manager has declared EOS, ignoring request",A.toString()):(this.sW?(this.sW.qyc=null === (H=A.ta) || void 0 === H?void 0:H.G,this.sW.uyc=null === (E=A.Ob) || void 0 === E?void 0:E.G,this.sW.RBb=A.Ob):this.sW={V7c:null === (B=A.qa) || void 0 === B?void 0:B.G,X7c:null === (C=A.Sb) || void 0 === C?void 0:C.G,qyc:null === (D=A.ta) || void 0 === D?void 0:D.G,uyc:null === (F=A.Ob) || void 0 === F?void 0:F.G,RBb:A.Ob},A.bn && A.stream.track.lp && (null === (G=this.player) || void 0 === G || !G.Baa(A.M.J)) && this.emit("drmNeeded",{J:A.M.J,xo:A.Sb}),this.yx.g8b(A));};return y;})(t.EventEmitter));b.n5a=a;},92140:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Ggb=void 0;t=(function(){function a(){this.yuc=this.Rma([{x:32,y:3.3},{x:48,y:3.65},{x:64,y:4.24},{x:80,y:4.56},{x:96,y:4.67}]);this.aYc=this.Rma([{x:16,y:2},{x:32,y:3.2},{x:48,y:3.6},{x:64,y:3.8},{x:80,y:4.3},{x:96,y:4.5},{x:112,y:4.6},{x:128,y:4.7},{x:144,y:4.8}]);this.Igc=this.Rma([{x:48,y:2.73},{x:64,y:3.15},{x:80,y:3.39},{x:96,y:3.59},{x:128,y:4.55},{x:192,y:4.8}]);this.Hgc=this.Rma([{x:192,y:2.9},{x:256,y:3.4},{x:320,y:3.8},{x:384,y:4.3},{x:448,y:4.6},{x:512,y:4.75},{x:576,y:4.76},{x:640,y:4.9},{x:768,y:4.9}]);}a.fqc=function(){a.instance || (a.instance=new a());return a.instance;};a.prototype.Rma=function(d){d.sort(function(n,c){return n.x - c.x;});return function(n){var c,f;if(n < d[0].x){c=(d[1].y - d[0].y) / (d[1].x - d[0].x);f=d[0].y - c * d[0].x;return c * n + f;}if(n > d[d.length - 1].x)return (c=(d[d.length - 1].y - d[d.length - 2].y) / (d[d.length - 1].x - d[d.length - 2].x),f=d[d.length - 1].y - c * d[d.length - 1].x,c * n + f);for(f=0;f < d.length - 1;f++)if(n >= d[f].x && n <= d[f + 1].x)return (c=(d[f + 1].y - d[f].y) / (d[f + 1].x - d[f].x),f=d[f].y - c * d[f].x,c * n + f);};};a.prototype.Cwa=function(d,n){return (-1 !== n.indexOf("xheaac")?this.aYc:-1 !== n.indexOf("heaac")?this.yuc:-1 !== n.indexOf("ddplus-2")?this.Igc:this.Hgc)(d);};return a;})();b.Ggb=t;},71472:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.yga=void 0;d=a(22970);n=a(52571);t=a(85254);c=a(5800);a=a(71808);f=(function(){function g(e,h){this.console=e;this.tb=[];this.Cg=void 0;this.$e=0;h && h.length && (Array.isArray(h)?(this.tb=h.slice(),this.Z5(0,this.tb.length)):h instanceof g && (this.tb=h.tb.slice(),this.Z5(0,this.tb.length)));}Object.defineProperties(g.prototype,{length:{get:function(){return this.tb.length;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{empty:{get:function(){return 0 === this.tb.length;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{first:{get:function(){return this.tb[0];},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{Md:{get:function(){return this.tb[this.tb.length - 1];},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{ub:{get:function(){return this.first && this.first.ub;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{Lb:{get:function(){return this.Md && this.Md.Lb;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{Ev:{get:function(){return this.Cg;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{ma:{get:function(){return this.$e;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{O:{get:function(){return this.first && this.first.O;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{Hp:{get:function(){return this.first && this.first.Hp;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{Qa:{get:function(){return this.tb;},enumerable:!1,configurable:!0}});g.prototype.EVc=function(e){this.$e+=e;};g.prototype.Lla=function(){var e;if(0 === this.tb.length)((0,n.assert)(void 0 === this.Cg),(0,n.assert)(0 === this.$e));else {(0,n.assert)(this.Cg instanceof c.KE);(0,n.assert)("number" === typeof this.$e);(0,n.assert)(void 0 !== this.Ev && this.Ev.ub === this.ub);e=this.tb.reduce(function(h,k,l){return 0 === l || k.ub === h?k.Lb:h;},0);(0,n.assert)(this.Ev.Lb === e);(0,n.assert)(this.tb.reduce(function(h,k,l){return 0 === l || k.ub === h?k.Lb:h;},0) === this.Ev.Lb);(0,n.assert)(this.tb.reduce(function(h,k){return h + k.ma;},0) === this.$e);}};g.prototype.get=function(e){0 > e && (e+=this.tb.length);return this.tb[e];};g.prototype.push=function(e){this.tb.push(e);this.Z5(this.tb.length - 1);return this.length;};g.prototype.unshift=function(e){this.tb.unshift(e);this.Z5(0,1);return this.length;};g.prototype.pop=function(){if(0 !== this.tb.length)return (this.sJa(this.tb.length - 1),this.tb.pop());};g.prototype.shift=function(){if(0 !== this.tb.length)return (this.sJa(0),this.tb.shift());};g.prototype.splice=function(e,h){for(var k,l=[],m=2;m < arguments.length;m++)l[m - 2]=arguments[m];0 > e && (e+=this.tb.length);0 > e && (e=0);e > this.tb.length && (e=this.tb.length);if(void 0 === h || 0 > h)h=0;h=Math.min(h,this.tb.length - e);0 < h && this.sJa(e,e + h);m=(k=this.tb).splice.apply(k,d.__spreadArray([e,h],d.__read(l),!1));0 < l.length && this.Z5(e,e + arguments.length - 2);return m;};g.prototype.slice=function(e,h){void 0 === e && (e=0);void 0 === h && (h=this.tb.length);0 > e && (e+=this.tb.length);if(e >= this.tb.length)return new g(this.console);h > this.tb.length && (h=this.tb.length);0 > h && (h+=this.tb.length);return new g(this.console,this.tb.slice(e,h));};g.prototype.ku=function(e){if(0 === this.tb.length || e.ub >= this.Lb)this.push(e);else if(e.Lb <= this.ub)this.unshift(e);else {for(var h=0,k=this.tb.length - 1,l;h < k - 1;)(l=Math.floor((k + h) / 2),(0,n.assert)(l !== k && l !== h),e.ub >= this.tb[l].Lb?h=l:k=l);(0,n.assert)(h !== k,"Fragments may not be in order");(0,n.assert)(this.tb[h].Lb <= e.ub && this.tb[k].ub >= e.Lb,"Inserted fragment does not fit within array");this.splice(k,0,e);}};g.prototype.remove=function(e){e=this.tb.indexOf(e);if(0 > e)return !1;this.splice(e,1);return !0;};g.prototype.concat=function(){for(var e=[],h=0;h < arguments.length;h++)e[h]=arguments[h];e=e.map(function(k){return k.tb;});return new g(this.console,Array.prototype.concat.apply(this.tb,e));};g.prototype.forEach=function(e){var h;h=this;this.tb.forEach(function(k,l){return e(k,l,h);});};g.prototype.some=function(e){var h;h=this;return this.tb.some(function(k,l){return e(k,l,h);});};g.prototype.every=function(e){var h;h=this;return this.tb.every(function(k,l){return e(k,l,h);});};g.prototype.map=function(e){var h;h=this;return this.tb.map(function(k,l){return e(k,l,h);});};g.prototype.reduce=function(e,h){var k;k=this;return this.tb.reduce(function(l,m,p){return e(l,m,p,k);},h);};g.prototype.indexOf=function(e){return this.tb.indexOf(e);};g.prototype.find=function(e){var h,k;h=this;return this.tb.some(function(l,m){k=m;return e(l,m,h);})?this.tb[k]:void 0;};g.prototype.findIndex=function(e){var h,k;h=this;return this.tb.some(function(l,m){k=m;return e(l,m,h);})?k:-1;};g.prototype.filter=function(e){var h;h=this;return new g(this.console,this.tb.filter(function(k,l){return e(k,l,h);}));};g.prototype.lZ=function(e){for(var h=this.tb.length - 1;0 <= h;--h)e(this.tb[h],h,this);};g.prototype.x1a=function(e){for(var h=this.tb.length - 1;0 <= h;--h)if(e(this.tb[h],h,this))return !0;return !1;};g.prototype.KPa=function(e){if(this.empty || e < this.qa.G || e >= this.ta.G)return -1;for(var h=0,k=this.tb.length - 1,l;k > h;){l=Math.floor((k + h) / 2);if(e >= this.tb[l].qa.G && e < this.tb[l].ta.G){k=l;break;}e < this.tb[l].ta.G?k=l - 1:h=l + 1;}return k;};g.prototype.F9=function(e){if(this.empty || e < this.Sb.G || e >= this.Ob.G)return -1;for(var h=0,k=this.tb.length - 1,l;k > h;){l=Math.floor((k + h) / 2);if(e >= this.tb[l].Sb.G && e < this.tb[l].Ob.G){k=l;break;}e < this.tb[l].Ob.G?k=l - 1:h=l + 1;}return k;};g.prototype.zub=function(e){e=this.F9(e);return 0 <= e?this.tb[e]:void 0;};g.prototype.UPb=function(e,h){this.remove(e);h.ku(e);};g.prototype.update=function(){this.Cg && (this.Cg.tPc(this.ub),this.S6(0));};g.prototype[Symbol.iterator]=function(){var e;return d.__generator(this,function(h){switch(h.label){case 0:(e=0,h.label=1);case 1:return e < this.tb.length?[4,this.tb[e]]:[3,4];case 2:(h.T(),h.label=3);case 3:return (e++,[3,1]);case 4:return [2];}});};g.prototype.S6=function(e){var h;h=this.tb[e].Lb;for(e+=1;e < this.tb.length && h === this.tb[e].ub;++e)h=this.tb[e].Lb;e < this.tb.length?void 0 === this.Cg?this.Cg=new c.KE(this,{Lb:h}):this.Cg.P1(h):void 0 === this.Cg?this.Cg=new c.KE(this,{}):this.Cg.yma();};g.prototype.G1b=function(e,h){for(var k=e;k < h;++k)this.$e+=this.tb[k].ma;void 0 === this.Cg || 0 === e?this.S6(0):this.Cg.Lb === this.Lb?this.S6(e - 1):this.tb[e].ub === this.Cg.Lb && this.S6(e);};g.prototype.cq=function(e,h){var k;if(0 === e)(this.Cg=void 0,h < this.length && this.S6(h));else {k=this.Cg;k.Lb > this.tb[e - 1].Lb && (h < this.length?k.P1(this.tb[e - 1].Lb):k.yma());}for(;e < h;++e)this.$e-=this.tb[e].ma;};g.prototype.Z5=function(e,h){void 0 === h && (h=e + 1);this.G1b(e,h);};g.prototype.sJa=function(e,h){void 0 === h && (h=e + 1);this.cq(e,h);};return g;})();b.yga=f;(0,t.vl)(a.fz,f);},47743:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;Object.defineProperties(b,{__esModule:{value:!0}});b.Wya=void 0;d=a(22970);n=a(66164);c=a(52571);t=a(85254);f=d.__importDefault(a(14282));g=a(50468);e=a(50247);h=n.platform.Al;k=a(51440);l=a(45691);m=a(87225);a=(function(p){var R8;R8=2;for(;R8 !== 9;){switch(R8){case 12:return r;break;case 3:return r;break;case 2:d.__extends(r,p);r.create=function(q,u,v,w,x,y,A,z){var E_v;E_v=2;for(;E_v !== 8;){switch(E_v){case 3:var N87="stream must be a Li";N87+="veA";N87+="seStream";return ((0,c.assert)(q instanceof m.BCa,N87),new l.zga(q,v,w,x,y,u,A,z));break;case 9:return new r(q,v,w,x,y,u,A,z);break;case 1:E_v=q.mediaType === f.default.Vp.U && 0 < w.ma?5:4;break;case 4:E_v=u.Qna && q.mediaType !== f.default.Vp.Ca && 0 === w.ma?3:9;break;case 2:E_v=!u.Cn && w.pa?1:9;break;case 5:return new k.x5a(q,v,w,x,y,u,A,z);break;}}};r.prototype.Xx=function(){var q4j;q4j=2;for(;q4j !== 1;){switch(q4j){case 2:return this.Cqa() && p.prototype.Xx.call(this);break;}}};r.prototype.toString=function(){var p8$;p8$=2;for(;p8$ !== 1;){switch(p8$){case 2:var Y5X="I";Y5X+="D";Y5X+=":";Y5X+=" ";return Y5X + this.Ei() + ":" + g.Ho.prototype.toString.call(this);break;}}};R8=3;break;}}function r(q,u,v,w,x,y,A,z){var Z9f,B;Z9f=2;for(;Z9f !== 7;){switch(Z9f){case 2:var p34="m";p34+="edi";p34+="a";var b41="m";b41+="e";b41+="dia(e";b41+="d";b41+="it)";var G3E="1S";G3E+="IYb";G3E+="ZrNJC";G3E+="p";G3E+="9";G3E;B=v.pa?b41:p34;void 0 === v.responseType && (v.responseType=v.pa || h.vg && !h.vg.I_a.tGa?0:1);Z9f=4;break;case 4:u=p.call(this,q,u,B,v,w,x,y,A) || this;u.ED=!1;g.Ho.Tb(u,q,x,v,z);return u;break;}}}})(e.l3);b.Wya=a;(0,t.vl)(g.Ho,a,!1);},50468:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperties(b,{__esModule:{value:!0}});b.Ho=void 0;d=a(22970);n=a(91176);c=a(52571);f=d.__importDefault(a(14282));g=a(95591);t=a(85254);e=a(89645);h=a(78015);k=a(5800);a=a(71808);l=(function(m){function p(r,q,u,v){var w;w=m.call(this,r,u) || this;w.Fna=!1;p.Tb(w,r,q,u,v);return w;}d.__extends(p,m);p.Tb=function(r,q,u,v,w){var x;h.XU.ITa(r,q,v);r.ti=v.index;r.nC=v.ub;r.cv=v.Lb;r.T4b=v.Pb?v.Pb:q.Pb;r.Iy=v.Iy;r.K=u;r.qpa=w;r.tjb=!!v.bn;r.Ljb=!!v.Gi;r.tkb=null !== (x=v.region) && void 0 !== x?x:0;r.sjb=!!v.XPa;r.Kjb=!!v.OA;r.La=void 0 === v.LG || void 0 === v.LK || v.LG === v.ub && v.LK === v.Lb?r:new k.KE(r,{ub:v.LG,Lb:v.LK});r.x3b=v.Csa;r.H1b=v.Jm;r.SZ=q.SZ;r.ej=v.pa?r.uFb(v.pa):void 0;r.Pkb=v.Ju;r.AC=!1;r.wyb=!1;r.Cu=[];};p.Tma=function(r){for(var q=new Uint32Array(r.length),u=new Uint32Array(r.length),v=new Uint8Array(r.length),w=new Uint8Array(r.length),x=0,y,A,z=0;z < r.length;++z)(y=r[z],A=y.$e,q[z]=y.cv - y.nC,u[z]=A,v[z]=y.stream.Iw,void 0 !== y.Pb && null !== y.Pb && (w[z]=y.Pb),x+=A);return new g.FGa(q,u,r.length?r[0].O:1E3,x);};Object.defineProperties(p.prototype,{nwc:{get:function(){return !0;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{HA:{get:function(){return !0;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{index:{get:function(){return this.ti;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Pb:{get:function(){return this.T4b;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{vLa:{get:function(){return 8 * this.ma / this.Wb.G;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{ub:{get:function(){return this.nC;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Lb:{get:function(){return this.cv;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Hp:{get:function(){var r,q;return null !== (q=null === (r=this.qpa) || void 0 === r?void 0:r.call(this)) && void 0 !== q?q:0;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{bn:{get:function(){return this.tjb;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Gi:{get:function(){return this.Ljb;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{region:{get:function(){return this.tkb;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{XPa:{get:function(){return this.sjb;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{OA:{get:function(){return this.Kjb;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Csa:{get:function(){return this.x3b;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Jm:{get:function(){return this.H1b;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{pa:{get:function(){return this.ej;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Ju:{get:function(){return this.Pkb;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{dI:{get:function(){var r;return this.ej?(null !== (r=this.ej.end) && void 0 !== r?r:this.rf) - this.ej.start:this.rf;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{LG:{get:function(){return this.La.ub;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{LK:{get:function(){return this.La.Lb;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{xnc:{get:function(){return this.La.wK;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{ync:{get:function(){return this.La.Wb;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Rv:{get:function(){return this.La.qa;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{oZ:{get:function(){return this.La.ta;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{rf:{get:function(){var r;r=this.xnc;(0,c.assert)(r);return r / this.stream.Ea.$;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{oR:{get:function(){return this.wyb;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{uuc:{get:function(){return 0 < this.Cu.length;},enumerable:!1,configurable:!0}});p.prototype.Ifa=function(r,q,u){var v,w,x;(0,c.assert)(r.O === this.O,"Cannot change content timestamp timescale");(0,c.assert)(q.O === this.O,"Cannot change content timestamp timescale");if(this.Rsb(this.pa))(this.nC=r.$,this.cv=q.$,this.La=this,this.pa && (this.ej=d.__assign(d.__assign({},this.ej),{start:0,end:null})));else {(0,c.assert)(this.pa,"Undefined edit window should be handled as whole fragment");w=this.rf;this.La=new k.KE(this,{ub:r.$,Lb:q.$});x=this.pa;q=x.start;x=x.end;this.pa.end=u || w >= this.rf?null === x || x >= this.rf?null:this.pa.end:null === x?w:x;this.nC=r.add(this.Ea.eh(q)).$;this.cv=r.add(this.Ea.eh(null !== (v=this.pa.end) && void 0 !== v?v:this.rf)).$;}};p.prototype.g3a=function(r){this.Ifa(this.Rv.Kc(this.O),this.Rv.add(this.Ea.eh(r)),!0);};p.prototype.OQb=function(r){(0,c.assert)(!this.pa || 0 === this.pa.start,"Cannot change start time of fragment with start edit");this.Ifa(r,this.oZ,!0);};p.prototype.ZAc=function(){this.tjb=!0;};p.prototype.YVa=function(){this.Ljb=!0;};p.prototype.pwa=function(r){this.Iy={Yd:r.gwb(),get iH() {return r.p2;}};};p.prototype.Q1=function(r){this.Pkb=r;};p.prototype.cQc=function(r,q,u){this.tkb=r;this.sjb=q;this.Kjb=u;};p.prototype.xh=function(r){var q,u,v;void 0 === r && (r={});u=this.stream.Ea.$;v=this.ej || ({start:0,end:null});r=this.uFb(r);this.Rsb(r)?(this.nC=this.La.ub,this.cv=this.La.Lb,this.La=this):(this.La && this.La !== this || (this.La=new k.KE(this,this)),this.nC=this.La.ub + r.start * u,this.cv=this.La.ub + (null !== (q=r.end) && void 0 !== q?q:this.rf) * u);this.ej=d.__assign(d.__assign({},v),r);};p.prototype.EOa=function(r){void 0 === r && (r=1);this.ej?this.xh({start:this.ej.start + r,end:this.ej.end}):this.xh({start:r});};p.prototype.Dna=function(r){this.ej?this.xh({start:this.ej.start,end:(this.ej.end || 0) - r}):this.xh({start:0,end:-r});};p.prototype.rh=function(){this.pa?this.xh({start:this.pa.start,end:this.pa.start}):this.xh({start:0,end:0});};p.prototype.gQc=function(r){this.ej || this.xh();this.ej.ywa=r;};p.prototype.FMb=function(r){this.ej || this.xh();this.ej.gs=!0;r && (this.ej.Ytb=r);};p.prototype.GMb=function(r){this.ej || this.xh();this.ej.wq=!0;r && (this.ej.Ztb=r);};p.prototype.Kub=function(r){var u;if(!(r < this.qa.G || r >= this.ta.G) && this.Jm && this.Jm.length){r=new n.I(r + 1 - this.qa.G,1E3).nf(this.stream.Ea);for(var q=this.Jm.length - 1;0 <= q;--q){u=this.Jm[q];if(u.ql <= r)return u;}return {ql:0,od:this.Rv.G};}};p.prototype.Nmc=function(r){var u;if(!(r < this.qa.G || r >= this.ta.G) && this.Jm && this.Jm.length){r=new n.I(r + 1 - this.qa.G,1E3).nf(this.stream.Ea);for(var q=this.Jm.length - 1;0 <= q;--q){u=this.Jm[q];if(u.ql <= r)return u;}return {ql:0,od:this.Rv.G};}};p.prototype.wub=function(r,q){var u,v,w;if(!(r < this.qa.G || r >= this.ta.G)){if(!q && this.SZ)return {ql:0,od:this.qa.G};u=this.Ea.$;v=this.Ea.O;w=Math.floor(this.wK / u);r=Math.min((q?Math.ceil:Math.floor)((n.I.PEb(r,v) - this.ub + (q?-1:1) * (v / 1E3 - 1)) / u),w);u=n.I.F2a(this.ub + r * u,v);return r === w?void 0:{ql:r,od:u};}};p.prototype.Lmc=function(r){return this.mediaType === f.default.Vp.U?this.Kub(r):this.wub(r,!1);};p.prototype.NPa=function(r){return this.mediaType === f.default.Vp.U?this.Nmc(r):this.wub(r,!0);};p.prototype.Cqa=function(){return this.pa?this.oR:this.uuc;};p.prototype.XRa=function(){(0,c.assert)(!this.Qda,"Should not get response iterator more than once");this.Qda=new e.KI(this.stream.sb);return this.Qda.getIterator();};p.prototype.$ua=function(r,q){this.Qda?(this.Qda.enqueue(r),q && this.Qda.wQ()):this.Cu.push(r);this.wyb=q;};p.prototype.j1=function(){this.Cu=[];};p.prototype.DKa=function(r){this.$e+=r.ma;this.cv=r.Lb;this.ej && (this.La=new k.KE(this,{ub:this.LG,Lb:this.cv}),this.ej.end=this.rf);};p.prototype.xKb=function(r){var q,u,v;q={type:"logdata",target:"endplay",fields:{}};u=this.mediaType === f.default.Vp.X?"audioedit":"videoedit";v=this.Rv.equal(this.qa);v=[v?this.ta.G:this.qa.G,v?-this.Wb.G:this.Wb.G];r && v.push(r);q.fields[u]={type:"array",value:v};return q;};p.prototype.toString=function(){return ("[").concat(this.Sa,", ").concat(this.bitrate,"kbit/s, ") + ("c:").concat(this.qa.G,"-").concat(this.ta.G,",") + ("p:").concat(this.Sb.G,"-").concat(this.Ob.G,",d:").concat(this.Wb.G,"]");};p.prototype.toJSON=function(){return {movieId:this.R,streamId:this.Sa,bitrate:this.bitrate,index:this.index,startPts:this.qa.G,endPts:this.ta.G,contentStartPts:this.qa.G,contentEndPts:this.ta.G,fragmentStartPts:this.Rv.G,fragmentEndPts:this.oZ.G,edit:this.pa};};p.prototype.Iub=function(r){var u;if(this.Jm)for(var q=0;q < this.Jm.length;++q)if(this.Jm[q].ql === r)u=this.Jm[q].offset;return u;};p.prototype.uFb=function(r){var q,u;q=Math.max(r.start || 0,0);u=void 0 === r.end || null === r.end || r.end === this.rf?null:Math.min(this.rf,Math.max(q,0 > r.end?this.rf + r.end:r.end));return d.__assign(d.__assign({},r),{start:q,end:u});};p.prototype.Rsb=function(r){return !r || 0 === r.start && (r.end === this.rf || null === r.end);};return p;})(h.XU);b.Ho=l;(0,t.vl)(a.fz,l);},21306:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.j5a=void 0;d=a(22970);n=a(52571);c=a(99735);t=a(85254);f=a(71472);g=a(71808);e=a(81392);h=a(5800);a=(function(k){function l(m,p){var r,q;r=this;q=[new f.yga(m),new f.yga(m),new f.yga(m)];r=k.call(this,q,function(u){return u.complete?r.empty || u.ub <= r.mcc?0:1:u.active?1:2;}) || this;q=d.__read(q,3);r.Cj=q[0];r.oi=q[1];r.iq=q[2];r.Jr=0;r.RHa=0;r.console=m;r.Jt=p;return r;}d.__extends(l,k);Object.defineProperties(l.prototype,{ma:{get:function(){return this.Cj.ma + this.oi.ma + this.iq.ma;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{CQb:{get:function(){return this.iq;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{active:{get:function(){return this.oi;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{complete:{get:function(){return this.Cj;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{pda:{get:function(){return this.Jr;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Dma:{get:function(){return this.Cj.ma;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{qw:{get:function(){return this.Cj.ma + this.oi.ma - this.Jr;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{sVc:{get:function(){return this.iq.ma;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{k1:{get:function(){return this.ma - this.Jr;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{first:{get:function(){return this.Knc();},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Md:{get:function(){return this.R8b();},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{IOa:{get:function(){return !this.Cj.empty || this.iq.empty || this.oi.empty?this.first:this.oi.ub < this.iq.ub?this.oi.first:this.iq.first;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{cCb:{get:function(){return this.iq.empty || this.oi.empty?this.Md:this.oi.Lb < this.iq.Lb?this.iq.Md:this.oi.Md;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Zub:{get:function(){return this.iq.first;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{O:{get:function(){return this.first && this.first.O;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{ub:{get:function(){return this.IOa && this.IOa.ub;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Lb:{get:function(){return this.cCb && this.cCb.Lb;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Hp:{get:function(){return this.first && this.first.Hp;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{mcc:{get:function(){return this.Cj.empty?this.ub:this.Cj.Lb;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{lcc:{get:function(){var m;return this.Cj.empty?null === (m=this.qa) || void 0 === m?void 0:m.G:this.Cj.ta.G;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Dpb:{get:function(){var m;return this.Cj.empty?null === (m=this.Sb) || void 0 === m?void 0:m.G:this.Cj.Ob.G;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{xHb:{get:function(){var m,p;return (null === (m=this.oi.Ob) || void 0 === m?void 0:m.G) || (null === (p=this.Cj.Ob) || void 0 === p?void 0:p.G);},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{sN:{get:function(){return this.iq.length;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Hm:{get:function(){return this.oi.length;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Gpb:{get:function(){return this.Cj.length;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{T:{get:function(){return this.Cj.concat(this.oi);},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Ev:{get:function(){return this.Cg;},enumerable:!1,configurable:!0}});l.prototype.Lla=function(){var m,p;if(0 === this.length)((0,n.assert)(0 === this.Jr),(0,n.assert)(this.Cj.empty),(0,n.assert)(this.oi.empty),(0,n.assert)(this.iq.empty));else {(0,n.assert)(this.Cj.every(function(u){return u.complete || u.aborted;}));(0,n.assert)(this.oi.every(function(u){return u.active || u.complete || u.aborted;}));(0,n.assert)(this.iq.every(function(u){return !u.active && !u.complete;}));!this.oi.empty && this.oi.first.complete && (this.Cj.empty?(0,n.assert)(!this.iq.empty && this.oi.ub > this.iq.ub,"unsent earlier than active"):(0,n.assert)(this.oi.ub > this.Cj.Lb,"gap in complete array"));this.Jr !== this.Cj.reduce(function(u,v){return u + (v.aborted?0:v.bytesReceived);},0) + this.oi.reduce(function(u,v){return u + (v.aborted?0:v.bytesReceived);},0) && (0,n.assert)(!1,"receivedBytes does not match complete + active");m=this.Ev;if(this.empty)(0,n.assert)(void 0 === m);else {(0,n.assert)(void 0 !== m);p=this.map(function(u){return u;});p.sort(function(u,v){return u.ub - v.ub;});(0,n.assert)(m.ub === p[0].ub);for(var r=p[0].Lb,q=1;q < p.length && p[q].ub === r;++q)r=p[q].Lb;(0,n.assert)(m.Lb === r,"contigousEnd mismatch");}this.oe.forEach(function(u){return u.Lla();});}};l.prototype.add=function(m){var p;m.aborted?++this.RHa:this.Jr+=m.bytesReceived || 0;if(this.empty)this.Cg=new h.KE(this,{});else if(m.ub !== this.Lb)if(m.ub > this.Cg.Lb)this.Cg.P1(this.Cg.Lb);else if(m.ub < this.ub || m.ub === this.Cg.Lb){p=m.Lb;this.dnc(function(r,q){return r.ub - q.ub;},function(r){p=r.ub === p?r.Lb:p;});p === Math.max(this.Lb,m.Lb)?this.Cg.yma():this.Cg.P1(p);}m.O0a(this);};l.prototype.cq=function(m){m.aborted?--this.RHa:this.Jr-=m.bytesReceived;this.empty?this.Cg=void 0:m.ub !== this.Lb && m.Lb <= this.Cg.Lb && m.ub > this.Cg.ub && this.Cg.P1(m.ub);m.dpb();};l.prototype.update=function(){var m;this.Cj.update();this.oi.update();this.iq.update();if(this.Cg){m=this.map(function(q){return q;});m.sort(function(q,u){return q.ub - u.ub;});this.Cg.yma();for(var p=m[0].Lb,r=1;r < m.length;++r){if(m[r].ub !== p){this.Cg.P1(p);break;}p=m[r].Lb;}}};l.prototype.push=function(m){this.add(m);return k.prototype.push.call(this,m);};l.prototype.shift=function(){var m;m=k.prototype.shift.call(this);m && this.cq(m);return m;};l.prototype.pop=function(){var m;m=k.prototype.pop.call(this);m && this.cq(m);return m;};l.prototype.unshift=function(m){this.add(m);return k.prototype.unshift.call(this,m);};l.prototype.ku=function(m){this.add(m);k.prototype.ku.call(this,m);};l.prototype.remove=function(m){if(!k.prototype.remove.call(this,m))return !1;this.cq(m);return !0;};l.prototype.splice=function(m,p){for(var r=[],q=2;q < arguments.length;q++)r[q - 2]=arguments[q];q=k.prototype.splice.apply(this,d.__spreadArray([m,p],d.__read(r),!1));r.forEach(this.add.bind(this));q.forEach(this.cq.bind(this));return q;};l.prototype.jda=function(m){var p;p=this;this.reduce(function(r,q,u){q.aborted && !q.ED && (m && m(q,u,p),0 === r.length || r[0].end !== u?r.unshift({start:u,end:u + 1}):r[0].end+=1);return r;},[]).forEach(function(r){return p.splice(r.start,r.end - r.start);});};l.prototype.KPa=function(m){return this.Bub(function(p){return p.KPa(m);});};l.prototype.F9=function(m){return this.Bub(function(p){return p.F9(m);});};l.prototype.zub=function(m){m=this.F9(m);return -1 !== m?this.get(m):void 0;};l.prototype.LOc=function(m){var r;for(var p=[];m < this.length;){r=this.get(m);r && p.push(r);m++;}return p;};l.prototype.BS=function(m){this.move(m);this.Doa(m);};l.prototype.ND=function(m,p){this.Jr+=p;this.nZ(m,p);};l.prototype.uo=function(m,p){this.Jr+=p;this.kNb();this.MQ(m,p);};l.prototype.z0=function(m,p,r){this.Jr-=m.bytesReceived;++this.RHa;this.mZ(m,p,r);};l.prototype.CS=function(m,p,r){this.oi.EVc(p - r);this.lQa(m,p,r);};l.prototype.XFc=function(){this.kNb();};l.prototype.kNb=function(){for(;this.oi.first && (this.oi.first.complete || this.oi.first.ED) && (this.Cj.empty?this.oi.first === this.IOa:this.oi.first.ub === this.Cj.Lb);)this.BQc();};l.prototype.apc=function(){return this.Cj.map(function(m){return {requestId:m.Ei(),appended:m.AC,isAppendable:m.Xx()};});};return l;})(c.W6a);b.j5a=a;(0,t.vl)(e.KN,a,!1);(0,t.vl)(g.fz,a);},83527:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Xya=void 0;d=a(22970);n=a(78015);t=(function(c){function f(g,e,h,k){var l;l=c.call(this,g,h) || this;l.gg=void 0;f.Czb(l,g,e,h,k);return l;}d.__extends(f,c);f.Czb=function(g,e,h,k,l){n.XU.ITa(g,e,k);g.K=h;g.yF=k.Pj;g.jk=k.dua;g.njb=k.dA;g.sb=l;};Object.defineProperties(f.prototype,{df:{get:function(){return !0;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Pj:{get:function(){return this.yF;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{dua:{get:function(){return this.jk;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{dA:{get:function(){return this.njb;},enumerable:!1,configurable:!0}});f.prototype.toJSON=function(){return {movieId:this.R,streamId:this.Sa,bitrate:this.bitrate};};return f;})(n.XU);b.Xya=t;},35018:function(t,b,a){var n,c,f,g,e,h,k,l,m,p;function d(r){return {df:!0,Ky:{wh:l.Ub.Bl},dd:r,responseType:0};}Object.defineProperties(b,{__esModule:{value:!0}});b.Yya=void 0;n=a(22970);c=a(91562);f=a(91176);t=a(90745);g=a(66164);e=a(69575);h=a(85254);k=a(52571);l=a(65161);m=a(83527);a=a(50247);p=g.platform.MediaSource;a=(function(r){function q(u,v,w,x,y,A,z,B){var C,D,F;C=w.track;z=(z?"(cache)":"") + u.id + " header";D=x.offset;F=x.ma;x.dua && (D+=x.dua.byteLength,F-=x.dua.byteLength);x=n.__assign(n.__assign(n.__assign({},x),d(x.dd)),{offset:D,ma:F});v=r.call(this,u,C,z,x,y,A,v,B) || this;v.gg=w;v.OWa=0;m.Xya.Czb(v,u,A,x,B);v.UXa=x.ma;++v.OWa;return v;}n.__extends(q,r);Object.defineProperties(q.prototype,{df:{get:function(){return !0;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{cua:{get:function(){return this.W3b;},enumerable:!1,configurable:!0}});q.prototype.Qe=function(){var u;if(!this.complete){u={type:"headerRequestCancelled",request:this};this.emit(u.type,u);}r.prototype.Qe.call(this);};q.prototype.S9=function(u){this.stream.vXa();r.prototype.S9.call(this,u);};q.prototype.mZ=function(u,v,w){this.stream.Ata();r.prototype.mZ.call(this,u,v,w);};q.prototype.uo=function(u,v){var w;w=u.response;w && this.A5b(w);(0,k.assert)(this.jk);u.j1();this.parse()?(this.stream.Ata(),r.prototype.uo.call(this,u,v)):this.ela?(this.Ilc(u.offset + u.ma,this.ela),r.prototype.uo.call(this,u,v)):r.prototype.yy.call(this,u);};q.prototype.Ilc=function(u,v){this.Rtb(this.uK,this.label + " (" + this.OWa + ")",d(this.dd),{offset:u,ma:v});++this.OWa;};q.prototype.parse=function(){var u,v,w,x,y,A,z;x=this.config;y=new c.um(q.TCc,this.stream,this.jk,this.stream.za?["moov"]:["sidx"],x.NGc,{$cd:this.stream.track.mZa,sHb:void 0 === this.Ea,cQb:!p.vg || !p.vg.Xbc,Q2a:x.Q2a,Sh:this.stream.Sh,K2:this.config.K2,DNc:!0,Ewa:!p.vg || !p.vg.cDc,j_a:this.config.j_a});A=y.parse({Ea:this.Ea});this.EWc=x.K2 && y.kuc;if(A.dB){(0,k.assert)(A.Pj);this.yF=A.Pj;this.W3b=A.cua;this.njb=!!A.Qkc;void 0 === this.Ea && void 0 === A.Ea && this.sb.error("No frame duration available for " + this.Sa);y=A.Ea?new f.I(A.Ea):this.Ea;z=void 0;if(this.stream.mediaType === l.u.U && (null === (u=x.MS) || void 0 === u?0:u.enabled))if(null === (v=this.stream.NT) || void 0 === v?0:v.length)z=this.stream.NT;else if((u=this.stream.su.NT,0 < (null === u || void 0 === u?void 0:u.length)))for((z=new Uint8Array(u.length),w=0);w < u.length;w++)z[w]=u[w].Pb;else if(null === (w=A.DE) || void 0 === w?0:w.length)for((z=new Uint8Array(A.DE.length),w=0);w < A.DE.length;w++)z[w]=A.DE[w];w=A.CY?new f.I(A.CY):void 0;this.stream.p0(A.Pj,A.O,y,A.Qa,A.a0,A.Jm,z,A.trackId,w);this.jk=void 0;}else this.ela=A.ela || 0;return !!A.dB;};q.prototype.A5b=function(u){this.jk=this.jk?(0,e.Zz)(this.jk,u):u;};q.TCc=new g.platform.Console("MP4","media|asejs");return q;})(a.l3);b.Yya=a;(0,h.vl)(m.Xya,a,!1,!1);(0,h.vl)(t.EventEmitter,a);},33923:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.JI=void 0;b.M1a=function(f){var g,e;(0,d.assert)(f.mediaType !== n.u.sm,"Media events is unsupported");e=(g={},g[n.u.X]={audio:f},g[n.u.U]={video:f},g[n.u.Ca]={text:f},g);return new c(e[f.mediaType]);};d=a(91176);n=a(65161);c=(function(){function f(g){this.audio=g.audio;this.video=g.video;this.text=g.text;}f.prototype.Txb=function(g){switch(g){case n.u.X:return this.audio;case n.u.U:return this.video;case n.u.Ca:return this.text;}};f.prototype.Ui=function(g){return this.Txb(g);};f.prototype.mR=function(g){return (g=this.Txb(g))?g.track:void 0;};Object.defineProperties(f.prototype,{Kf:{get:function(){return this.video || this.audio || this.text;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{AAb:{get:function(){return void 0 !== this.video && void 0 !== this.audio;},enumerable:!1,configurable:!0}});f.prototype.O9=function(g){[this.audio,this.video,this.text].filter(function(e){return void 0 !== e;}).forEach(g);};f.prototype.uPa=function(g){return [this.audio,this.video,this.text].filter(function(e){return void 0 !== e;}).every(g);};Object.defineProperties(f.prototype,{R:{get:function(){return this.Kf.R;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{mediaType:{get:function(){return this.Kf.mediaType;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{bitrate:{get:function(){return this.k9b;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{k9b:{get:function(){return this.AAb?this.video.bitrate + this.audio.bitrate:this.Kf.bitrate;},enumerable:!1,configurable:!0}});f.prototype.wLa=function(){return this.AAb?("audio: ").concat(this.wv,"kbps | video ").concat(this.ot,"kbps"):("").concat(this.bitrate,"kbps");};Object.defineProperties(f.prototype,{wv:{get:function(){var g;return null === (g=this.audio) || void 0 === g?void 0:g.bitrate;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{ot:{get:function(){var g;return null === (g=this.video) || void 0 === g?void 0:g.bitrate;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Pb:{get:function(){var g;return null !== (g=this.Kf.Pb) && void 0 !== g?g:0;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{kb:{get:function(){return this.Kf.kb;},set:function(g){this.Kf.kb=g;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{id:{get:function(){return this.Kf.id;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Sa:{get:function(){return this.Kf.Sa;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Qa:{get:function(){return this.Kf.Qa;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{ky:{get:function(){return this.Kf.ky;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{kfa:{get:function(){return this.Kf.kfa;},set:function(g){this.Kf.kfa=g;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Qv:{get:function(){return this.uPa(function(g){return g.Qv;});},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Ab:{get:function(){return this.Kf.Ab;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{za:{get:function(){return this.Kf.za;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Hq:{get:function(){return this.uPa(function(g){return g.Hq;});},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{np:{get:function(){return this.Kf.np;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{jH:{get:function(){return this.Kf.jH;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{ko:{get:function(){return this.Kf.ko;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Uc:{get:function(){return this.Kf.Uc;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Jw:{set:function(g){this.O9(function(e){e.Jw=g;});},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{location:{get:function(){return this.Kf.location;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Sj:{get:function(){var g;g=[];this.O9(function(e){e.location && g.push(e.location);});return g;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Gu:{set:function(g){this.Kf.Gu=g;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{n0a:{set:function(g){this.Kf.n0a=g;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{YZ:{set:function(g){this.Kf.YZ=g;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{ZSa:{set:function(g){this.Kf.ZSa=g;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{$Sa:{set:function(g){this.Kf.$Sa=g;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{su:{get:function(){return this.Kf.su;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{profile:{get:function(){return this.Kf.profile;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Iw:{get:function(){return this.Kf.Iw;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{M:{get:function(){return this.Kf.M;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{yb:{get:function(){return this.Kf.yb;},set:function(g){this.Kf.yb=g;},enumerable:!1,configurable:!0}});f.prototype.isEqual=function(g){return g && this.uPa(function(e){var h;h=g.Ui(e.mediaType);return void 0 !== h && e.Sa === h.Sa;});};f.prototype.toString=function(){return ("").concat(this.audio?this.audio.toString():"") + ("").concat(this.video?this.video.toString():"") + ("").concat(this.text?this.text.toString():"");};return f;})();b.JI=c;},45691:function(t,b,a){var n,c,f,g,e,h,k,l,m,p;function d(r,q,u){return 2 === q.length?q[1]:q.reduce(function(v,w){return Math.abs(w - r) < Math.abs(v - r)?w:v;},u);}Object.defineProperties(b,{__esModule:{value:!0}});b.zga=void 0;n=a(22970);a(66164);c=a(91562);f=a(91176);g=a(26388);e=a(75539);t=a(85254);h=a(48170);k=a(69575);l=a(50247);m=a(50468);(function(r){r[r.Mo=0]="INITIAL";r[r.h9a=1]="HAVE_CONTENT_LENGTH";r[r.j9a=2]="HAVE_MOOF_LENGTH";r[r.i9a=3]="HAVE_MOOF";})(p || (p={}));a=(function(r){function q(u,v,w,x,y,A,z,B){w=u.mediaType === g.u.X?n.__assign(n.__assign({},w),{responseType:0}):w;v=r.call(this,u,v,"live-edit",w,x,y,A,z) || this;v.ED=!1;v.AT=p.Mo;v.hsb=!1;m.Ho.Tb(v,u,y,w,B);v.Fna=!0;(0,f.assert)(v.mediaType === g.u.X || v.mediaType === g.u.U);return v;}n.__extends(q,r);Object.defineProperties(q.prototype,{stream:{get:function(){return this.Pe;},enumerable:!1,configurable:!0}});q.prototype.Xx=function(){return this.Cqa() && r.prototype.Xx.call(this);};q.prototype.YLa=function(){return !1;};q.prototype.pNa=function(u,v,w){var x,y;x=w.offset;y=this.config.qzc;w=n.__assign(n.__assign({},w),{fQa:this.config.UOa,responseType:0});this.$D(u,v,w,{offset:x,ma:y});};q.prototype.cM=function(u){(void 0 !== this.Vn || this.tEc(u)) && this.t3a(u);this.AT === p.Mo && void 0 !== this.Vn && (this.CS(u,this.Vn,this.ma),this.AT=p.h9a);};q.prototype.uo=function(u,v){if(!(this.state > e.kh.xm)){h.l && this.console.trace(("AseLiveEditingRequest: onrequestcomplete, ").concat(this.toString(),": ") + ("ID: ").concat(u.Ei(),", requestState: ").concat(this.AT,", bytes: ").concat(v));this.AT !== p.i9a && (this.data=void 0 === this.data?u.response:(0,k.Zz)(this.data,u.response));switch(this.AT){case p.Mo:(0,f.assert)(!1,"Should not encounter request complete before obtaining content length");case p.h9a:if(!this.yEc())break;this.AT=p.j9a;case p.j9a:this.xEc(u) && (this.AT=p.i9a);}r.prototype.uo.call(this,u,v);}};q.prototype.tEc=function(u){this.Vn=u.bwb();h.l && this.console.debug(("AseLiveEditingRequest: ").concat(this.toString()," setting contentLength to ").concat(this.Vn," from range"));return void 0 === this.Vn?(this.syb(u),!1):!0;};q.prototype.yEc=function(){var u,v;(0,f.assert)(void 0 !== this.Vn,"Should have content length by now");(0,f.assert)(void 0 !== this.data,"Should have some data by now");u=c.$I.path(new DataView(this.data),["moof"]);v=u.offset;u=u.end;if(void 0 === v || void 0 === u)return (h.l && this.console.error("AseLiveEditingRequest: onrequestcomplete, failed to find moof in initial request"),v=this.offset + this.data.byteLength,u=this.config.zCb,this.$D(this.rb[0].uK,this.label,n.__assign(n.__assign({},this.properties),{responseType:0}),{offset:v,ma:u}),!1);this.FWa=v;this.K_=this.offset + u + 8;h.l && this.console.trace(("AseLiveEditingRequest: obtainMoofLength, ").concat(this.toString(),": ") + ("moofOffset: ").concat(this.FWa,", mediaDataOffset: ").concat(this.K_));return !0;};q.prototype.xEc=function(u){var v,w,x;(0,f.assert)(void 0 !== this.Vn,"Should have content length by now");(0,f.assert)(void 0 !== this.K_,"Should have sample offset by now");(0,f.assert)(void 0 !== this.data,"Should have some data by now");v=this.data.byteLength;w=this.K_ > v;if(w){x=this.K_ - v;h.l && this.console.trace("AseLiveEditingRequest: obtainMoof, request:",u.toString(),("did not contain all of the moof, requesting ").concat(x," more bytes"));this.$D(u.uK,this.label,n.__assign(n.__assign({},this.properties),{responseType:0}),{offset:v,ma:x});v+=x;}this.pa?w || this.bHc(v,this.Vn):(w || (u=c.$I.Utb(new DataView(this.data))) && void 0 !== u.Nx && void 0 !== u.dI && (h.l && this.console.trace("AseLiveEditingRequest: fragment times (unoptimized): " + ("tfdt: ").concat(u.A2,", ") + ("ffco: ").concat(u.Nx,", ") + ("sampleCount: ").concat(u.dI)),this.jQa(this,u,!1,!1)),this.hsb || (x=this.Vn - v,0 < x && (h.l && this.console.trace(("AseLiveEditingRequest: obtainMoof with on edits: offset ").concat(v,", bytes ").concat(x,", ") + ("contentLength ").concat(this.Vn)),this.EZa(v,x,this.Vn),this.hsb=!0)));return !w;};q.prototype.EZa=function(u,v,w){this.Y2a(u,v) || (this.NF={offset:u,ma:v,Vn:w},this.kQa(this));};q.prototype.bHc=function(u,v){var w,x,y,A,z,B,C,D,F,H,E;(0,f.assert)(void 0 !== this.K_,"Should have sample offset by now");(0,f.assert)(void 0 !== this.FWa,"Should have moof offset by now");(0,f.assert)(void 0 !== this.data,"Should have some data by now");(0,f.assert)(this.data.byteLength >= this.K_,"Should have enough data for the whole moof by now");(0,f.assert)(void 0 !== this.pa,"Should have an edit");x=new c.mz(this.console,{mediaType:this.mediaType},this.data);y=0;if(x.parse().done){A=c.um.path(x,["moof","traf"]);x=c.um.path(A,["tfhd"]);z=c.um.path(A,["tfdt"]);B=c.um.path(A,["trun"]);if(void 0 !== x && void 0 !== z && void 0 !== B && void 0 !== B.el){x=B.UKc(x);z=z.YF;A=B.Wmc;C=x.length;h.l && this.console.trace(("AseLiveEditingRequest: fragment times: tfdt: ").concat(z,", ") + ("firstFrameCompositionOffset: ").concat(A,", sampleCount: ").concat(C));D=this.FWa + B.el;F=!1;if(null === this.pa.end && this.rf < C)(h.l && this.console.warn(("AseLiveEditingRequest: null edit end for fragment with ").concat(this.rf," ") + ("expected samples but actual fragment is longer (").concat(C,") - extending")),F=!0,this.g3a(x.length));else if(null === this.pa.end && this.rf > C || null !== this.pa.end && this.pa.end > C)(h.l && this.console.warn(("AseLiveEditingRequest: edit end (").concat(this.pa.end,", ").concat(this.rf,") ") + ("is beyond actual samples (").concat(x.length,") - truncating")),F=!0,this.g3a(x.length));H=!1;if(this.config.Vea && this.mediaType === g.u.U){B=B.QKc();if(0 !== this.pa.start && -1 === B.indexOf(this.pa.start)){E=this.pa.start;H=d(this.pa.start,B,this.rf);h.l && this.console.warn(("AseLiveEditingRequest: ").concat(this.toString()," edit start point ").concat(E," is not an IDR, ") + ("nearest IDR is ").concat(H));this.xh({start:H,end:this.pa.end});H=!0;}null !== this.pa.end && this.pa.end < this.rf && -1 === B.indexOf(this.pa.end) && (E=this.pa.end,H=d(this.pa.end,B,this.rf),h.l && this.console.warn(("AseLiveEditingRequest: ").concat(this.toString()," edit end point ").concat(E," is not an IDR, ") + ("nearest IDR is ").concat(H)),this.xh({start:this.pa.start,end:H}),H=!0);}this.jQa(this,{A2:z,Nx:A,dI:C},F,H);for(z=0;z < this.pa.start && z < x.length;z++)D+=x[z];A=null !== (w=this.pa.end) && void 0 !== w?w:this.rf;for(z=this.pa.start;z < A && z < x.length;z++)y+=x[z];D < u && (y-=u - D,D=u);h.l && this.console.trace(("AseLiveEditingRequest: edit: ").concat(JSON.stringify(this.pa)) + (", samples expected ").concat(this.rf,", actual ").concat(x.length,", sample sizes: ").concat(x) + (", start: ").concat(this.pa.start,", end: ").concat(this.pa.end) + (", requestOffset: ").concat(D,", bytes: ").concat(y,", contentLength: ").concat(v));}else h.l && this.console.error("AseLiveEditingRequest: failed to find trun or tfhd in moof");this.data=void 0;}void 0 !== D?0 < y && (this.EZa(D,y,v),this.B0={offset:D,ma:y}):(y=v - u,0 < y && (this.EZa(u,y,v),this.B0={offset:u,ma:y}));h.l && this.console.trace(("AseLiveEditingRequest: edit: ").concat(JSON.stringify(this.pa),", ") + ("requestOffset: ").concat(D,", bytes: ").concat(y,", contentLength: ").concat(v,", ") + ("optimizedRequest: ").concat(JSON.stringify(this.B0)));};q.prototype.toString=function(){return "ID: " + this.Ei() + ("[").concat(this.Sa,", ").concat(this.bitrate,"kbit/s, ") + ("c:").concat(this.qa.G,"-").concat(this.ta.G,",") + ("p:").concat(this.Sb.G,"-").concat(this.Ob.G,",d:").concat(this.Wb.G,"]");};return q;})(l.l3);b.zga=a;(0,t.vl)(m.Ho,a,!1);},11758:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Zya=void 0;d=a(22970);a(66164);n=a(52571);t=(function(c){function f(g,e,h,k,l,m,p,r){g=c.call(this,g,e,h,k,l,m,p,r) || this;(0,n.assert)(0 === h.responseType);(0,n.assert)(h.bi);g.bi=h.bi;return g;}d.__extends(f,c);Object.defineProperties(f.prototype,{stream:{get:function(){return this.Pe;},enumerable:!1,configurable:!0}});return f;})(a(47743).Wya);b.Zya=t;},79459:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.aza=void 0;d=a(22970);n=a(79048);c=a(48170);t=(function(f){function g(e,h,k,l,m,p,r,q,u,v,w,x,y){void 0 === x && (x=!0);void 0 === y && (y=!0);e=f.call(this,k,u,{index:0,offset:0,ma:0,ub:m,Lb:p,O:l,bn:x,Gi:y,Ju:w},v) || this;e.JGc=k;e.console=q;e.K=u;c.l && e.console.log(("AsePaddingRequest [").concat(e.mediaType,"], constructed ").concat(e.toString()) + (", ").concat(h.byteLength," bytes") + (", ").concat(e.rf," samples"));e.$ua(h,!0);return e;}d.__extends(g,f);Object.defineProperties(g.prototype,{profile:{get:function(){return this.JGc.profile;},enumerable:!1,configurable:!0}});g.prototype.abort=function(){return !1;};g.prototype.toJSON=function(){var e,h,k,l,m;return {viewableId:n.vr,startPts:null === (e=this.Sb) || void 0 === e?void 0:e.G,endPts:(null === (h=this.Sb) || void 0 === h?void 0:h.G) + (null === (k=this.Wb) || void 0 === k?void 0:k.G),"contentStartTicks:":this.ub,contentEndTicks:this.Lb,contentStartPts:null === (l=this.qa) || void 0 === l?void 0:l.G,contentEndPts:null === (m=this.ta) || void 0 === m?void 0:m.G};};g.prototype.toString=function(){return ("[padding c:").concat(this.qa.G,"-").concat(this.ta.G,",") + ("p:").concat(this.Sb.G,"-").concat(this.Ob.G,",") + ("d:").concat(this.ta.G - this.qa.G,"]");};return g;})(a(50468).Ho);b.aza=t;},81392:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.KN=b.r5a=void 0;d=a(22970);t=(function(){function n(c){this.Jt=c;}n.prototype.O0a=function(c){this.Jt=c;};n.prototype.dpb=function(){this.Jt=void 0;};n.prototype.S9=function(c){var f,g;null === (g=null === (f=this.Jt) || void 0 === f?void 0:f.Kta) || void 0 === g?void 0:g.call(f,c);};n.prototype.Doa=function(c){var f,g;null === (g=null === (f=this.Jt) || void 0 === f?void 0:f.BS) || void 0 === g?void 0:g.call(f,c);};n.prototype.R9=function(c){var f,g;null === (g=null === (f=this.Jt) || void 0 === f?void 0:f.cM) || void 0 === g?void 0:g.call(f,c);};n.prototype.nZ=function(c,f){var g,e;null === (e=null === (g=this.Jt) || void 0 === g?void 0:g.ND) || void 0 === e?void 0:e.call(g,c,f);};n.prototype.MQ=function(c,f){var g,e;null === (e=null === (g=this.Jt) || void 0 === g?void 0:g.uo) || void 0 === e?void 0:e.call(g,c,f);};n.prototype.Coa=function(c){var f,g;null === (g=null === (f=this.Jt) || void 0 === f?void 0:f.yy) || void 0 === g?void 0:g.call(f,c);};n.prototype.mZ=function(c,f,g){var e,h;null === (h=null === (e=this.Jt) || void 0 === e?void 0:e.z0) || void 0 === h?void 0:h.call(e,c,f,g);};n.prototype.lQa=function(c,f,g){var e,h;null === (h=null === (e=this.Jt) || void 0 === e?void 0:e.CS) || void 0 === h?void 0:h.call(e,c,f,g);};n.prototype.lvb=function(c){var f,g;null === (g=null === (f=this.Jt) || void 0 === f?void 0:f.Jta) || void 0 === g?void 0:g.call(f,c);};n.prototype.kQa=function(c){var f,g;null === (g=null === (f=this.Jt) || void 0 === f?void 0:f.Lta) || void 0 === g?void 0:g.call(f,c);};n.prototype.jQa=function(c,f,g,e){var h,k;null === (k=null === (h=this.Jt) || void 0 === h?void 0:h.QXa) || void 0 === k?void 0:k.call(h,c,f,g,e);};return n;})();b.r5a=t;t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);return c;})(t);b.KN=t;t.prototype.Kta=t.prototype.S9;t.prototype.BS=t.prototype.Doa;t.prototype.cM=t.prototype.R9;t.prototype.ND=t.prototype.nZ;t.prototype.uo=t.prototype.MQ;t.prototype.yy=t.prototype.Coa;t.prototype.z0=t.prototype.mZ;t.prototype.CS=t.prototype.lQa;t.prototype.Jta=t.prototype.lvb;t.prototype.Lta=t.prototype.kQa;t.prototype.QXa=t.prototype.jQa;},50247:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;Object.defineProperties(b,{__esModule:{value:!0}});b.l3=b.pt=void 0;d=a(22970);n=a(90745);c=a(91562);a(66164);t=a(85254);f=a(52571);a(1936);g=a(75539);e=a(45247);h=a(8149);k=a(24940);l=a(81392);a=a(78015);(function(p){p[p.qcb=0]="NOTHING_APPENDED";p[p.pia=1]="PARTIAL";p[p.Kn=2]="COMPLETE";p[p.Tp=3]="ERROR";})(m || (b.pt=m={}));m=(function(p){function r(q,u,v,w,x,y,A,z){var B;B=p.call(this,q,w) || this;B.uK=u;B.label=v;B.properties=w;B.K=y;B.config=A;B.console=z;B.r1=k.Via.Ke;B.events=new n.EventEmitter();B.$a=g.kh.UB;B.NO=0;B.n6=-Infinity;B.rb=[];B.Eva=0;B.C3a=!1;B.O0a(x);B.$a=g.kh.UB;B.Hg=q.MZ(!!w.df,w.bi);B.YO=q.location || w.location;B.M6=q.Ab || w.dd;B.bi=w.bi;B.C3a=0 >= w.ma && B.YLa();B.pNa(u,v,w);return B;}d.__extends(r,p);Object.defineProperties(r.prototype,{df:{get:function(){return !1;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{state:{get:function(){return this.$a;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{nw:{get:function(){return this.$a >= g.kh.OPENED && this.$a < g.kh.Kn;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{active:{get:function(){return this.$a >= g.kh.EN && this.$a < g.kh.Kn;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{UZa:{get:function(){return this.$a === g.kh.xm;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{complete:{get:function(){return this.$a === g.kh.Kn;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{aborted:{get:function(){return this.$a === g.kh.Nw;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{Zs:{get:function(){return void 0 !== this.NF;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{url:{get:function(){return this.Hg;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{status:{get:function(){var q;return (null === (q=this.r_) || void 0 === q?void 0:q.status) || this.rb[0].status;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{bh:{get:function(){var q;return null === (q=this.r_) || void 0 === q?void 0:q.bh;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{YC:{get:function(){var q;return null === (q=this.r_) || void 0 === q?void 0:q.YC;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{Qg:{get:function(){var q;return null === (q=this.r_) || void 0 === q?void 0:q.Qg;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{bytesReceived:{get:function(){return this.NO;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{mj:{get:function(){return this.n6;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{responseType:{get:function(){return this.properties.responseType;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{location:{get:function(){return this.YO;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{dd:{get:function(){return this.M6;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{zNb:{get:function(){return this.properties.BB;},enumerable:!1,configurable:!0}});r.prototype.P0a=function(q,u){this.YO=q;this.M6=u;};r.prototype.Xx=function(){return this.state < g.kh.xm?!1:this.rb.every(function(q){return q.state === g.kh.xm || q.state === g.kh.Kn;});};r.prototype.p3a=function(){var q,u,v,w;if(this.complete)return 0;q=this.stream;u=q.M;v=u.naa;if(!q.url)return (this.console.warn("updateurl, missing url for streamId:",q.Sa,"mediaRequest:",this,"stream:",q),1);w=q.MZ(this.df,this.bi);if(this.url !== w || v)if((u.P0a(this,q.location,q.Ab),!this.m2(w)))return (this.console.warn("swapUrl failed: ",this.YC),2);return 0;};r.prototype.Dac=function(){return 0 >= this.ma && 1 <= this.rb.length && void 0 !== this.rb[0].bh;};r.prototype.Cac=function(q){(0,f.assert)(0 >= this.ma,"AseRequest.changeStream is only supported for open range requests");(0,f.assert)(1 <= this.rb.length && void 0 !== this.rb[0].bh,"AseRequest.changeStream only supported when open range request has failed");(0,f.assert)(this.stream.track === q.track,"AseStream.changeStream cannot change stream to a different track");this.Us(q);this.p3a();};r.prototype.iQb=function(){var v;for(var q,u;this.Eva < this.rb.length && (u=this.rb[this.Eva]).response;){++this.Eva;v=!this.Zs && this.Eva === this.rb.length;null === (q=this.$ua) || void 0 === q?void 0:q.call(this,u.response,v);u.j1();}};r.prototype.pNa=function(q,u,v){var w,x;if(0 < v.ma)v.PL && v.ma > v.PL?this.AKc(q,u,v,v.PL,v):this.$D(q,u,v,v);else if(this.C3a)this.$D(q,u,v,v);else {w=v.offset;x=void 0;void 0 !== v.index && (x=this.stream.Tpc(v.index));x || (x=this.mediaType === e.u.Ca?this.config.Pzc:this.config.zCb);if(this.config.Yma || this.config.UOa)v=d.__assign(d.__assign({},v),{responseType:0,fQa:this.config.UOa});this.$D(q,u,v,{offset:w,ma:x});}};r.prototype.AKc=function(q,u,v,w,x){var y,A;w=Math.ceil(x.ma / w);y=x.offset;for(x=x.ma;0 < x;--w){A=Math.ceil(x / w);this.$D(q,u,v,{offset:y,ma:A});y+=A;x-=A;}};r.prototype.YLa=function(){return !!this.uK.ZOb;};r.prototype.$D=function(q,u,v,w){q=new g.$Da(this.stream,this.Hg,q,u,v,w,this,this.K,this.config,this.console);this.rb.push(q);this.state >= g.kh.OPENED && (q.open(),this.state >= g.kh.Kn && (this.$a=g.kh.OPENED,this.S9(this)));};r.prototype.Ey=function(q){var u;u=this.rb.indexOf(q);-1 !== u && (this.rb.splice(u,1),0 < this.$e && ((0,f.assert)(this.$e >= q.ma),this.$e-=q.ma));};r.prototype.Rtb=function(q,u,v,w){this.$D(q,u,v,w);this.$e+=w.ma;};r.prototype.open=function(){var q;null === (q=this.MIa) || void 0 === q?void 0:q.uFc();if(q=this.rb.every(function(u){return u.open();}))(this.$a=g.kh.OPENED,this.S9(this));return q;};r.prototype.resume=function(){var q;(0,f.assert)(void 0 !== this.NF,"invalid attempt to resume request hat is not stalled");q=this.Y2a(this.NF.offset,this.NF.ma);q && (this.NF=void 0);return q;};r.prototype.abort=function(){var q,u;if(this.$a !== g.kh.Nw){q=this.active;u=this.nw;this.$a=g.kh.Nw;this.rb.forEach(function(v){return v.abort();});this.NF=void 0;this.mZ(this,q,u);}return !0;};r.prototype.Qe=function(){this.rb.forEach(function(q){return q.Qe();});this.NF=void 0;};r.prototype.m2=function(q){var u;u=this;this.Hg=q;return this.rb.map(function(v){return v.m2(u.Hg);}).some(function(v){return v;});};r.prototype.I$=function(q){(0,f.assert)(0 <= q && q < this.rb.length);return this.rb[q].response;};r.prototype.getResponseHeader=function(q,u){var v;v=null;this.rb.some(function(w){return !!(v=w.getResponseHeader(q,u));});return v;};r.prototype.getAllResponseHeaders=function(q){var u;u=null;this.rb.some(function(v){return !!(u=v.getAllResponseHeaders(q));});return u;};r.prototype.Ei=function(){return 1 === this.rb.length?this.rb[0].Ei():"(" + this.rb.map(function(q){return q.Ei();}).join(", ") + ")";};r.prototype.ZRa=function(){return this.rb[0].Ei();};r.prototype.Kta=function(){};r.prototype.BS=function(q){var u;this.state > g.kh.OPENED || (this.$a=g.kh.EN,this.n6=Math.max(this.n6,q.mj),null === (u=this.MIa) || void 0 === u?void 0:u.jFc(),this.Doa(this));};r.prototype.Xtc=function(q,u,v){void 0 === v?this.syb(q):(q=v - u,0 < q && !this.Y2a(u,q) && (this.NF={offset:u,ma:q,Vn:v},this.kQa(this)));};r.prototype.cM=function(q){var u,v,w;if((0,h.yk)(this.stream)){if(this.config.skc && void 0 !== this.properties.index){u=q.getResponseHeader("X-NFLX-NCL",!1);u && (u=Number(u),isNaN(u) || this.stream.HMb(this.properties.index + 1,u));}u=0 < q.cI.length?q.cI[0]:-1;v=q.getResponseHeader("X-TCP-Info",!1);w=this.stream.M;this.config.Rna && w.AB && v?w.AB.SIb(v,{mediaType:this.mediaType,jn:u,bi:this.properties.bi,Sa:this.stream.Sa,stream:this.stream,ixa:!0}):w.FL && w.FL.YIb(this.stream,this.K,this.url,this.mediaType,v,u,this.properties.bi);}u=q.bwb();void 0 !== this.properties.index && void 0 !== u && this.stream.HMb(this.properties.index,u);0 >= this.ma && !this.C3a?(this.Xtc(q,this.offset + q.ma,u),void 0 !== u && (this.t3a(q),this.CS(q,u,this.ma))):this.t3a(q);};r.prototype.t3a=function(q){var u;this.state <= g.kh.EN?(this.RXa(q,0),this.$a=g.kh.xm,null === (u=this.MIa) || void 0 === u?void 0:u.eFc(),this.iQb(),this.R9(this)):this.ND(q,0);};r.prototype.Lta=function(){(0,f.assert)(!1);};r.prototype.QXa=function(){(0,f.assert)(!1);};r.prototype.Y2a=function(q,u){var v;v=this.stream.M;if(v.Ot && !v.Ot.pma(this.mediaType,u))return !1;this.$D(this.rb[0].uK,this.label,this.properties,{offset:q,ma:u});return !0;};r.prototype.syb=function(q){this.Upb=(this.Upb || 0) + 1;1 >= this.Upb && (this.Ey(q),q.abort(),this.NF=void 0,this.pNa(q.uK,this.label,this.properties));};r.prototype.ND=function(q,u){this.RXa(q,u);this.nZ(this,u);};r.prototype.uo=function(q,u){var v;this.state > g.kh.xm || (this.config.Yma && this.stream.za && this.Yma(q),this.RXa(q,u),this.iQb(),this.rb.every(function(w){return w.complete;}) && !this.Zs?(this.$a=g.kh.Kn,null === (v=this.MIa) || void 0 === v?void 0:v.LD(),this.MQ(this,u),this.Qe()):this.nZ(this,u));};r.prototype.Jta=function(){this.lvb(this);};r.prototype.yy=function(q){var u;this.console.warn("AseRequest.onrequesterror:",this.toString(),"sub request:",q.toString());u=q.status;(416 === u || 206 === u) && 0 >= this.ma && !this.YLa()?(q.abort(),q.Qe(),this.Ey(q),this.$D(q.uK,this.label,this.properties,{offset:q.offset,ma:Math.max(Math.ceil(q.ma / 2),1)})):(this.r_=q,this.Coa(this));};r.prototype.z0=function(){var q,u;if(this.state !== g.kh.Nw){this.console.warn("AseRequest.onrequestaborted:",this.toString());q=this.active;u=this.nw;this.$a=g.kh.Nw;this.mZ(this,q,u);}};r.prototype.CS=function(q,u,v){this.$e+=u - v;q={type:"updatedBytes",eFb:u,UXa:v};this.events.emit(q.type,q);this.lQa(this,u,v);};r.prototype.RXa=function(q,u){this.r_ === q && (this.r_=void 0);this.n6=Math.max(this.n6,q.mj);this.NO+=u;};r.prototype.toString=function(){return "ID: " + this.Ei();};r.prototype.Yma=function(q){var u,v,w,x,y,A,z,B;(0,f.assert)((0,h.yk)(this.stream),"debugFragmentTimes only supported for live streams");if(this.mediaType !== e.u.Ca && this.nwc && q === this.rb[0] && q.response instanceof ArrayBuffer){u=c.$I.Utb(new DataView(q.response));if(u){q=u.A2;v=u.Nx;w=u.dI;if(void 0 === v || void 0 === w)(u=void 0 === v?this.mediaType === e.u.U?this.stream.Ea.Kc(this.Yl).$:0:0,new e.I(q + u,this.stream.Yl));else {x=this.M.getTracks(e.u.U)[0];(0,f.assert)((0,h.oo)(x),"Unexpected on-demand video track in live branch");u=q;this.mediaType === e.u.X && this.config.tCb && (u-=x.Nx.Kc(this.Yl).$);w=this.stream.Ea.eh(w);v=new e.I(u + v,this.stream.Yl).ea(this.stream.track.Nx);y=this.Rv.add(x.Fk);A=this.ync;x=!w.equal(A);z=1 < e.I.abs(v.ea(y)).$;B=x && z?"both":x?"duration":z?"presentation":v.equal(y)?"ok":"onetick";q="onrequestcomplete, fragmentTimes: index " + this.index + (" decode ").concat(q) + (" adjusted ").concat(u) + (" presentation ").concat(v.ca()) + (" expected ").concat(y.ca()) + (" duration ").concat(w.ca()) + (" expected ").concat(A.ca()," ") + B;x?this.console.error(q):z?this.console.warn(q):this.console.trace(q);}}}};return r;})(a.XU);b.l3=m;(0,t.vl)(l.r5a,m,!1);},11031:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.m3=void 0;d=a(22970);n=a(91176);c=a(6198);f=a(52571);g=a(48170);e=a(92140);h=a(50468);t=(function(){function k(l,m,p){var r,q,u;this.Bb=m;this.sb=p;this.ze=n.I.ia;this.Sh=!0;this.ovb=new Map();this.Jkb=l.Iw;this.su=l.su;this.Et=l.track;this.Y2b=this.mediaType !== c.u.Ca?this.bS.xk:!1;this.p2a=l.p2a;this.yF=l.Pj;m=l.np;this.np=void 0 === m?!0:m;this.wna=l.wna;this.BW=void 0;this.FDb=this.Rt=0;this.url=this.oea=this.Ab=this.Gu=this.zVa=this.location=this.kb=this.yb=void 0;this.ko=!1;this.HUa=this.Og=void 0;m=(l=this.Bb) && "object" === typeof l.gda && l.gda[this.profile];"object" === typeof m && (m=m[this.bitrate]) && (this.ze=new n.I(m.ticks,m.timescale));this.JDc=0 <= (null === (r=l.$mb) || void 0 === r?void 0:r.indexOf(this.profile));this.sAb=this.mediaType === c.u.X?!0:this.mediaType === c.u.U?this.za || -1 !== this.Uc.indexOf("h264bpl") || -1 !== this.Uc.indexOf("h264mpl") || -1 !== this.Uc.indexOf("hevc") && -1 === this.Uc.indexOf("do"):!1;if((null === (q=l.MS) || void 0 === q?0:q.l7c) && this.mediaType === c.u.U && (r=this.su,0 < (null === (u=r.NT) || void 0 === u?void 0:u.length))){u=r.NT.splice(0,r.NT.length);r=new Uint8Array(u.length);for(q=0;q < u.length;q++)r[q]=u[q].Pb;this.NT=r;}}Object.defineProperties(k.prototype,{gAb:{get:function(){return !0;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{M:{get:function(){return this.Et.M;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{J:{get:function(){return this.M.J;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{un:{get:function(){return this.M.un;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{R:{get:function(){return this.Et.R;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{mediaType:{get:function(){return this.Et.mediaType;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Ea:{get:function(){return this.Et.Ea;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{O:{get:function(){return this.Et.O;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Yl:{get:function(){return this.Et.Yl;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{trackId:{get:function(){return this.Et.trackId;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{bS:{get:function(){if(this.mediaType !== c.u.Ca)return this.su;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Iw:{get:function(){return this.Jkb;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Sa:{get:function(){var l;return this.mediaType === c.u.Ca?null !== (l=this.p2a) && void 0 !== l?l:"":this.bS.downloadable_id;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{id:{get:function(){return this.Sa;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{xk:{get:function(){return this.Y2b;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{za:{get:function(){return this.track.Eb;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{bitrate:{get:function(){return this.mediaType === c.u.Ca?0:this.bS.bitrate;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Pb:{get:function(){var l;if(this.aoa)return this.aoa;if(this.mediaType === c.u.U)return null !== (l=this.su.vmaf) && void 0 !== l?l:void 0;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Cwa:{get:function(){return this.mediaType !== c.u.X?e.Ggb.fqc().Cwa(this.bitrate,this.profile):void 0;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{G_a:{get:function(){if(this.mediaType === c.u.U)return this.su.res_w || void 0;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{CT:{get:function(){if(this.mediaType === c.u.U)return this.su.res_h || void 0;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{profile:{get:function(){return this.mediaType === c.u.Ca?"timedtext":this.bS.content_profile;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Uc:{get:function(){return this.profile;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Ao:{get:function(){if(this.mediaType === c.u.U)return this.su.sidx;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{SZ:{get:function(){return this.JDc;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{ky:{get:function(){return this.Qa && this.Qa.ky;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Qv:{get:function(){return void 0 !== this.BW?this.BW:this.Dxc();},set:function(l){this.BW=l;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Hq:{get:function(){return this.np && !this.ko;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{jH:{get:function(){return this.Hq && !1 !== this.Qv;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Pj:{get:function(){return this.yF;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{swc:{get:function(){(0,f.assert)(!!this.Qa,"Initial header should have been received already");return this.M.VTa() && -1 < this.Uc.indexOf("h264mpl") && void 0 === this.Qa.AKa;},enumerable:!1,configurable:!0}});k.prototype.wLa=function(){return ("").concat(this.bitrate,"kbps");};k.prototype.SG=function(){return this.M.SG(this.mediaType,this.Sa);};k.prototype.aqc=function(){var l;l=this.SG();return l && l.stream.Qa;};k.prototype.PB=function(l,m){return this.M.PB(this,l,m);};k.prototype.vXa=function(){this.track.vXa();};k.prototype.Ata=function(){this.track.Ata();};k.prototype.bu=function(l){g.l && (0,f.assert)(this.Qa && 0 <= l && l < this.Qa.length);return new h.Ho(this,void 0,this.Qa.get(l));};k.prototype.nwb=function(l){var m;g.l && (0,f.assert)(l instanceof h.Ho);g.l && (0,f.assert)(this.trackId === l.stream.trackId);m=this.bu(l.index);l.pa && (m.xh(l.pa),m.Q1(l.Ju),g.l && this.sb && this.sb.trace("AseStream: other stream fragment: " + JSON.stringify(l) + " transferring edit:" + JSON.stringify(l.pa)));return m;};k.prototype.HMb=function(l,m){this.ovb.set(l,m);};k.prototype.Tpc=function(l){return this.ovb.get(l);};k.prototype.FVc=function(l,m){this.Rt=l;this.FDb=m;};k.prototype.Jbc=function(){this.kb=this.yb=this.Ab=this.location=this.url=void 0;};k.prototype.ks=function(){switch(this.mediaType){case c.u.X:return this.toc();case c.u.U:return this.ltc();case c.u.Ca:return this.Psc();default:(0,f.assert)(!1,("Unsupported mediaType: ").concat(this.mediaType));}};k.prototype.toJSON=function(){return {movieId:this.R,mediaType:this.mediaType,streamId:this.Sa,bitrate:this.bitrate,streamIndex:this.Iw,isAvailable:this.np,fittable:this.Qv,vmaf:this.Pb,resolutionWidth:this.G_a,resolutionHeight:this.CT};};k.prototype.toString=function(){return (0 === this.mediaType?"a":"v") + ":" + this.Sa + ":" + this.bitrate;};k.prototype.Dxc=function(){var l;if(!this.sh)return !0;if(this.track.VSa >= this.bitrate)return this.BW=!0;if(this.track.XCb <= this.bitrate)return this.BW=!1;g.l && this.sb && this.sb.trace("isStreamFittableInBuffer: minRequiredBuffer " + this.Bb.oy);l=this.gma();l?this.track.mZa && !this.xk && this.track.lp || (this.track.VSa=this.bitrate):this.track.XCb=this.bitrate;return this.BW=l;};k.prototype.ltc=function(){return d.__assign(d.__assign({},this.track.ks()),{profile:this.Uc});};k.prototype.toc=function(){return d.__assign(d.__assign({},this.track.ks()),{profile:this.Uc,bitrate:this.bitrate});};k.prototype.Psc=function(){return d.__assign(d.__assign({},this.track.ks()),{profile:this.Uc});};return k;})();b.m3=t;},78015:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.XU=void 0;a(52571);t=(function(){function d(n,c){d.ITa(this,n,c);}d.ITa=function(n,c,f){n.Pe=c;n.$e=f.ma;n.ed=f.offset;};Object.defineProperties(d.prototype,{stream:{get:function(){return this.Pe;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{ma:{get:function(){return this.$e;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{offset:{get:function(){return this.ed;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{M:{get:function(){return this.Pe.M;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{R:{get:function(){return this.Pe.R;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{mediaType:{get:function(){return this.Pe.mediaType;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{Sa:{get:function(){return this.Pe.Sa;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{bitrate:{get:function(){return this.Pe.bitrate;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{profile:{get:function(){return this.Pe.profile;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{O:{get:function(){return this.Pe.O;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{Yl:{get:function(){return this.Pe.Yl;},enumerable:!1,configurable:!0}});Object.defineProperties(d.prototype,{Ea:{get:function(){return this.Pe.Ea;},enumerable:!1,configurable:!0}});d.prototype.Us=function(n){this.Pe=n;};return d;})();b.XU=t;},5800:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.KE=void 0;t=a(85254);a=a(71808);d=(function(){function n(c,f){this.parent=c;this.nC=f.ub;this.cv=f.Lb;}Object.defineProperties(n.prototype,{ub:{get:function(){return void 0 !== this.nC?this.nC:this.parent.ub;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{Lb:{get:function(){return void 0 !== this.cv?this.cv:this.parent.Lb;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{O:{get:function(){return this.parent.O;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{Hp:{get:function(){return this.parent.Hp;},enumerable:!1,configurable:!0}});n.prototype.tPc=function(c){this.nC=c;};n.prototype.P1=function(c){this.cv=c;};n.prototype.yma=function(){this.cv=void 0;};return n;})();b.KE=d;(0,t.vl)(a.fz,d);},71808:function(t,b,a){var c;function d(f,g){return void 0 === f?void 0:0 === f?c.I.ia:new c.I(f,g);}function n(f,g){return void 0 === f || void 0 === g?void 0:f + g;}Object.defineProperties(b,{__esModule:{value:!0}});b.fz=void 0;c=a(91176);t=(function(){function f(){}Object.defineProperties(f.prototype,{wK:{get:function(){var g,e;g=this.Lb;e=this.ub;return (void 0 === g || void 0 === e?void 0:g - e) || 0;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{lIc:{get:function(){return n(this.ub,this.Hp);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{hIc:{get:function(){return n(this.Lb,this.Hp);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Wb:{get:function(){return d(this.wK,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{qa:{get:function(){return d(this.ub,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{ta:{get:function(){return d(this.Lb,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Sb:{get:function(){return d(this.lIc,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Ob:{get:function(){return d(this.hIc,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Yua:{get:function(){return d(this.Hp,this.O);},enumerable:!1,configurable:!0}});return f;})();b.fz=t;},26279:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r;Object.defineProperties(b,{__esModule:{value:!0}});b.n3=void 0;d=a(22970);n=a(6198);c=a(52571);f=a(69575);g=a(65077);e=a(444);h=a(52629);k=a(8149);l=a(48170);m=a(91967);p=a(87225);r=a(48834);t=(function(){function q(u,v,w){var x,y;x=this;this.config=v;this.console=w;this.Dz=new f.xgb();this.u6=0;this.Tj=u.Tj;this.M=u.M;this.mediaType=u.mediaType;this.pN=u.pN;this.KJ=u.KJ;this.mediaType === n.u.U?(v=this.Tj,w=d.__read(v.streams,1)[0],this.q4b=new h.pW({w:v.maxWidth,Rx:v.maxHeight},{w:v.VHb,Rx:v.WHb}),void 0 !== w.framerate_value && void 0 !== w.framerate_scale && (this.wIa=e.pF.from({ty:w.framerate_value,Hv:w.framerate_scale}),this.vJ=this.wIa.Ea(),l.l && this.console.trace("AseTrack: video frame duration normalized to " + this.vJ.toString() + " from " + JSON.stringify(w))),void 0 !== v.Mba && void 0 !== v.Lba && (this.p3b=e.pF.from({ty:v.Mba,Hv:v.Lba}))):this.mediaType === n.u.X && (this.T1b=this.Tj.streams[0].channels,this.r4b=48E3);this.Db=(this.At=this.vJ) && this.At.O;this.mediaType === n.u.Ca && (this.Db=1E3);this.mJa=!1;this.VSa=-Infinity;this.XCb=Infinity;u=q.e2b(this,u.Pv);v=u.pEb;w=u.maxBitrate;y=u.Ed;this.lp=u.lp;this.pEb=v;this.maxBitrate=w;this.Ed=y;this.tea(m.oW.S,w,v);this.DSc=y.reduce(function(A,z){A[z.Sa]=z;return A;},{});l.l && (function(){(0,c.assert)(void 0 !== x.R);(0,c.assert)(void 0 !== x.mediaType);(0,c.assert)(void 0 === x.At || x.Db === x.At.O);});l.l && this.console.trace(("AseTrack: new track for movie ").concat(this.R,", mediaType ").concat(this.mediaType) + (", viewableId ").concat(this.M.J,", track ").concat(this.trackId) + (", frameDuration ").concat(this.Ea && this.Ea.toString()) + (", trackIndex ").concat(this.pN) + (", absoluteTrackIndex ").concat(this.KJ));}q.e2b=function(u,v){var w,x,y,A,z,B,C,D,F,H;w=u.config;x=u.mediaType === n.u.U;y=!1;A=Infinity;z=0;B=[];C=(0,k.oo)(u)?p.BCa:r.Vcb;if(u.mediaType === n.u.X || u.mediaType === n.u.U){D=u.Tj;F=D.streams.some(function(E){return E.xk;});D.streams.forEach(function(E,G){var J,L,K;J=E.bitrate;L=!0;if(x){K=E.xk;L=v?!0:K === F;y=y || K;}L && (J < A && (A=J),J > z && (z=J));E=new C({su:E,Iw:G,track:u,np:L},w,u.console);B.push(E);});}else if(u.mediaType === n.u.Ca){H=u.Tj;D=H.downloadableIds["imsc1.1"];l.l && u.console.trace("parsing text track dlid:",D);if(H=H.ttDownloadables["imsc1.1"])(D=new C({su:H,Iw:0,track:u,np:!0,p2a:D,Pj:[]},w,u.console),B.push(D),u.Dz.set(D));}else (D=u.Tj,D.streams.forEach(function(E,G){E=new C({su:E,Iw:G,track:u,np:!0},w,u.console);B.push(E);}));return {lp:y,pEb:A,maxBitrate:z,Ed:B};};Object.defineProperties(q.prototype,{hca:{get:function(){return !this.sh && 0 === this.u6;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{mZa:{get:function(){return this.mJa;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{R:{get:function(){return String(this.M.R);},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{trackId:{get:function(){return this.mediaType === n.u.Ca?this.Tj.id:this.Tj.track_id;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{vu:{get:function(){return this.Wjb;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{Ea:{get:function(){return this.At;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{frameRate:{get:function(){return this.wIa;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{$ra:{get:function(){return this.p3b;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{yo:{get:function(){return this.q4b;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{channels:{get:function(){return this.T1b;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{sampleRate:{get:function(){return this.r4b;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{profile:{get:function(){return this.mediaType === n.u.Ca?this.Tj.rawTrackType:this.Tj.profile;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{aU:{get:function(){return this.mediaType === n.u.Ca?this.Tj.rawTrackType:this.Tj.aU;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{O:{get:function(){return this.Db;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{Yl:{get:function(){return this.UIa;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{dk:{get:function(){return this.He;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{EA:{get:function(){return this.Dz.value;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{VPa:{get:function(){return this.Dz;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{WDb:{get:function(){return this.Ed.some(function(u){var v;return 1 < ((null === (v=u.Pj) || void 0 === v?void 0:v.length) || 0);});},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{Eb:{get:function(){return this.M.Eb;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{hLa:{get:function(){return this.mediaType === n.u.X?this.Tj.f8:void 0;},enumerable:!1,configurable:!0}});q.prototype.Ui=function(u){return this.kR()[u];};q.prototype.kR=function(){return this.DSc;};q.prototype.equals=function(u){return !!u && this.R === u.R && this.mediaType === u.mediaType && this.trackId === u.trackId;};q.prototype.vXa=function(){this.u6++;};q.prototype.Ata=function(){l.l && (0,c.assert)(0 < this.u6,"Removing more header requests than opened");0 < this.u6 && this.u6--;};q.prototype.tea=function(u,v,w){var x;if(void 0 !== v && (void 0 === this.dWa || v < this.dWa.bitrate)){x=this.Ed.filter(function(y){return y.bitrate <= v;}).sort(function(y,A){return A.bitrate - y.bitrate;});0 < x.length && (this.dWa={bitrate:x[0].bitrate,reason:u});}void 0 !== w && (void 0 === this.vWa || w > this.vWa.bitrate) && (x=this.Ed.filter(function(y){return y.bitrate >= w;}).sort(function(y,A){return y.bitrate - A.bitrate;}),0 < x.length && (this.vWa={bitrate:x[0].bitrate,reason:u}));};q.prototype.kGb=function(u){void 0 === this.Dz.value && (l.l && this.console.trace("first AseTrack.onHeaderComplete for stream:",u.id),this.Dz.set(u));};q.prototype.cqb=function(u){l.l && (0,c.assert)(u instanceof q);l.l && this.console.trace("AseTrack: copying header to movie " + this.R + ", track " + this.trackId + ", mediaType " + this.mediaType + ", from movie " + u.R + ", track " + u.trackId + ", mediaType " + u.mediaType + ", track.headerReceived " + u.sh);this.sh || (this.swa(u.O),this.K0a(u.Yl),this.G0a(u.Ea),this.He=u.dk,u.VPa.value?this.Dz.set(u.VPa.value):this.Dz.QKb());};q.prototype.Mx=function(u,v,w,x){var y;(0,c.assert)(this.EA);y=this.EA;u=(0,g.Mx)(this.mediaType,u,y,v,w,x);l.l && this.console.trace("AseTrack.findFirstFragment() pts:",v,"parentLastFragment:",null === w || void 0 === w?void 0:w.toString(),"found:",u);return u;};q.prototype.GK=function(u,v,w){var x;(0,c.assert)(this.EA);x=this.EA;u=(0,g.GK)(this.mediaType,u,x,v,w);l.l && this.console.trace("AseTrack.findLastFragment() pts:",v,"found:",u);return u;};q.prototype.ks=function(){switch(this.mediaType){case n.u.X:return ((0,c.assert)(this.mediaType === n.u.X),(0,c.assert)(void 0 !== this.channels),(0,c.assert)(void 0 !== this.sampleRate),{channels:this.channels,profile:this.profile,aU:this.aU,bitrate:this.Ed[this.Ed.length - 1].bitrate,sampleRate:this.sampleRate,vu:this.vu});case n.u.U:return ((0,c.assert)(this.mediaType === n.u.U),(0,c.assert)(void 0 !== this.$ra),(0,c.assert)(void 0 !== this.yo),{J:this.M.J,lp:this.lp,profile:this.profile,h8c:this.$ra.ty,g8c:this.$ra.Hv,aU:this.aU,yo:this.yo,maxWidth:this.yo.yo.w,maxHeight:this.yo.yo.Rx,VHb:this.yo.$Gb.w,WHb:this.yo.$Gb.Rx,vu:this.vu});case n.u.Ca:return ((0,c.assert)(this.mediaType === n.u.Ca),{profile:this.profile,aU:this.aU});default:(0,c.assert)(!1,("Unsupported mediaType: ").concat(this.mediaType));}};q.prototype.toJSON=function(){return {movieId:this.R,mediaType:this.mediaType,trackId:this.trackId};};q.prototype.toString=function(){return (0 === this.mediaType?"a":"v") + ":" + this.trackId;};q.prototype.swa=function(u){l.l && (0,c.assert)(void 0 === this.Db || this.Db === u);this.Db=u;};q.prototype.K0a=function(u){l.l && (0,c.assert)(void 0 === this.UIa || this.UIa === u);this.UIa=u;};q.prototype.G0a=function(u){var v;l.l && (0,c.assert)(void 0 !== u);v=new e.pF(u.O,u.$).Ea();l.l && (0,c.assert)(void 0 === this.At || this.At.equal(v));this.At=u;this.mediaType === n.u.U && (this.wIa=e.pF.tQa(u));};return q;})();b.n3=t;},51440:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.x5a=void 0;d=a(22970);a(91562);a(66164);a(52571);t=a(85254);n=a(50468);a=(function(c){function f(g,e,h,k,l,m,p,r){var q;q=d.__assign(d.__assign({},h),{offset:h.offset,ma:h.Csa + 8,PL:void 0,responseType:0});k=c.call(this,g,e,"moof",q,k,l,m,p) || this;k.Fna=!0;k.ED=!1;n.Ho.Tb(k,g,l,h,r);k.B0=k.C$b(h,q.ma);k.Rtb(e,"mdat",h,k.B0);return k;}d.__extends(f,c);f.prototype.Xx=function(){return this.Cqa() && c.prototype.Xx.call(this);};f.prototype.C$b=function(g,e){var h;e={offset:g.offset + e,ma:g.ma - e};if(this.pa){if(0 < this.pa.start){h=this.Iub(this.pa.start);h && (e.offset=g.offset + h,e.ma=g.ma - h);}null !== this.pa.end && this.pa.end < this.rf && (h=this.Iub(this.pa.end)) && (e.ma-=g.ma - h);}return e;};f.prototype.toString=function(){return "ID: " + this.Ei() + ":" + c.prototype.toString.call(this);};return f;})(a(50247).l3);b.x5a=a;(0,t.vl)(n.Ho,a);},87225:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.BCa=void 0;d=a(22970);n=a(91176);c=a(48170);f=a(11031);t=(function(g){function e(h,k,l){h=g.call(this,h,k,l) || this;h.Bb=k;h.sb=l;h.Sh=!1;return h;}d.__extends(e,g);Object.defineProperties(e.prototype,{Qa:{get:function(){},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{track:{get:function(){return this.Et;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{sh:{get:function(){return !!this.yF;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Fk:{get:function(){return this.track.Fk;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{K9:{get:function(){return this.track.K9;},enumerable:!1,configurable:!0}});e.prototype.p0=function(h,k,l,m,p,r,q,u,v){c.l && this.sb && this.sb.trace("AseStream.onHeaderReceived");this.sh?c.l && this.sb.trace("Duplicate header received for stream ",this):(this.yF=h,this.track.p0(this,k,l,m,r,u,v),this.track.kGb(this));};e.prototype.bqb=function(h){c.l && (0,n.assert)(h instanceof f.m3);c.l && (0,n.assert)(h.Sa === this.Sa);this.sh || (this.track.cqb(h.track),this.yF=h.Pj);};e.prototype.MZ=function(h,k,l){var m,p,r;l=null === (m=l || this.url) || void 0 === m?void 0:m.split("?");m=null !== (p=null === l || void 0 === l?void 0:l[0]) && void 0 !== p?p:"";p=null !== (r=null === l || void 0 === l?void 0:l[1]) && void 0 !== r?r:"";h?h=this.track.Jzb:(void 0 === k && this.sb.error("AseStream.getRequestUrl: liveSegmentId undefined"),(0,n.assert)(void 0 !== k,"liveSegmentId is required for live media requests"),h=this.track.UBc.replace("$Number$",k.toString()));this.M.Oc.pL() && (k=this.track.Zk,p+=(p?"&":"") + "flp=" + encodeURIComponent(("ast,").concat(this.M.Oc.tRa(!0).G,",startSegment,").concat(this.track.Bo,",duration,").concat(k.$,",timeScale,").concat(k.O)));return m + "/" + h + (p?"?" + p:"");};e.prototype.gma=function(){var h,k;return this.Bb.gS * this.bitrate / 8 * (this.Bb.oy + (null !== (k=null === (h=this.M) || void 0 === h?void 0:h.$T.G) && void 0 !== k?k:0)) < this.Rt;};e.prototype.JZ=function(h,k){var l;l=void 0 === h || h === this.track.Bo;return this.MZ(l,l?void 0:h,k);};return e;})(f.m3);b.BCa=t;},92945:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperties(b,{__esModule:{value:!0}});b.uab=void 0;d=a(22970);n=a(91176);c=a(6198);f=a(52571);g=a(444);e=a(48170);h=a(8149);k=a(91967);t=(function(l){function m(p,r,q){var u;r=l.call(this,p,r,q) || this;r.CY=n.I.ia;r.q6=p.RR;void 0 !== r.q6 && r.tea(k.oW.S,r.q6);p=r.M.S.Ji;(0,f.assert)(p,"Live metadata cannt be undefined on live viewable");q=r.Ed[0].Sa;u=null === p || void 0 === p?void 0:p.Bna[q];(0,f.assert)(void 0 !== u,"No segment template id found for downloadableId: " + q);r.nE=p.LT[u];(0,f.assert)(r.nE,"No segment template found for segmentTemplateId: " + u);r.Bo=Number(r.nE.XNb);r.Fk=new n.I(Number(r.nE.kJc),r.nE.O);r.Zk=new n.I(r.nE.duration,r.nE.O);void 0 === r.O && r.swa(r.nE.O);return r;}d.__extends(m,l);Object.defineProperties(m.prototype,{Jzb:{get:function(){return this.nE.Pvc;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{UBc:{get:function(){return this.nE.media;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{sh:{get:function(){var p;return this.mediaType === c.u.Ca?!0:!(null === (p=this.Dz.value) || void 0 === p || !p.sh);},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{RR:{get:function(){return this.q6;},set:function(p){e.l && this.console.trace("setting liveBitrateDynamicCap:",this.q6,"->",p);this.q6=p;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{K9:{get:function(){return this.Yja || n.I.ia;},set:function(p){var r;e.l && this.Yja && !p.equal(this.Yja) && this.console.warn("Unexpected change in first frame offset timestamp" + ("").concat(null === (r=this.Yja) || void 0 === r?void 0:r.ca()," -> ").concat(p.ca()));this.Yja=p;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Nx:{get:function(){return this.toa?new n.I(this.toa.Nx,this.Yl):this.CY || n.I.ia;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{EA:{get:function(){var p;p=this.Dz.value;return (0,h.yk)(p)?p:void 0;},enumerable:!1,configurable:!0}});m.prototype.p0=function(p,r,q,u,v,w,x){e.l && this.console.trace(("[").concat(this.mediaType,"] AseTrack.onHeaderReceived for stream: ").concat(p.id,", ") + ("movieTimescale: ").concat(r,", ") + ("frameDuration: ").concat(null === q || void 0 === q?void 0:q.ca(),", ") + ("editListOffset: ").concat(null === x || void 0 === x?void 0:x.ca()));if(p.xk || !p.track.lp)this.mJa=!0;this.sh || (this.K0a(r),this.Wjb=w,x && (this.CY=x),void 0 !== q && this.mediaType === c.u.U && this.config.ALb && (q=g.pF.tQa(q).Ea()),(q=q || this.vJ)?(e.l && this.console.trace(("[").concat(this.mediaType,"] AseTrack: Setting frame duration for movie ").concat(this.R) + (", track ").concat(this.trackId) + (" to ").concat(q.toString()) + (", was ").concat(this.At && this.At.toString()) + (", manifestFrameDuration ").concat(this.vJ)),this.G0a(q || this.vJ),void 0 === this.O && this.swa(q.O)):(e.l && this.console.trace(("[").concat(this.mediaType,"] AseTrack: No frame duration for movie ").concat(this.R) + (", track ").concat(this.trackId) + (", mediaType ").concat(this.mediaType) + (", timescale ").concat(this.O)),e.l && (0,f.assert)(this.O)));};m.prototype.tXa=function(p,r,q){var u,v;if(this.mediaType !== c.u.X && this.mediaType !== c.u.U)return (e.l && this.console.error(("[").concat(this.mediaType,"] AseTrack.onFirstFragmentReceived: unexpected media type"),this.mediaType),!1);if(void 0 !== this.toa)return !1;if(void 0 === q.Nx)return (e.l && this.console.warn(("[").concat(this.mediaType,"] AseTrack.onFirstFragmentReceived: no first frame composition offset")),!1);if(this.mediaType === c.u.U){u=this.Zk;v=this.Bo;r=new n.I(q.A2 + q.Nx,this.Yl).ea(u.eh(r - v)).ea(this.CY);r.equal(this.Fk) || e.l && this.console.warn(("[").concat(this.mediaType,"] AseTrack.onFirstFragmentReceived: presentation time offset difference"),this.Fk.ca(),r.ca(),r.ea(this.Fk).ca());}e.l && this.console.warn(("[").concat(this.mediaType,"] AseTrack.onFirstFragmentReceived: firstFragmentTimes ").concat(JSON.stringify(q)));this.toa=q;this.M.tXa(this,p);return !0;};m.prototype.MEc=function(p,r){var q,u,v,w,x;(0,f.assert)(this.mediaType === c.u.X,("Unexpected call to onAudioFirstFragmentsReceived for media type ").concat(this.mediaType));q=this.toa;u=q.A2;q=q.Nx;r=u - r.Kc(this.Yl).$;p=p.Kc(this.Yl);v=new n.I(r + q,this.Yl).ea(p);w=Math.floor(v.nf(this.Ea));x=v.ea(this.Ea.eh(w));this.K9=x;e.l && this.console.trace(("[").concat(this.mediaType,"] AseTrack.onAudioFirstFragmentReceived: trackFragmentDecodeTime: "),("").concat(new n.I(u,this.Yl).ca()),"adjustedTrackFragmentDecodeTime: ",("").concat(new n.I(r,this.Yl).ca()),"firstFrameCompositionOffset",("").concat(new n.I(q,this.Yl).ca(),","),("videoPresentationTimeOffset ").concat(p.ca(),","),("fragment presentation offset ").concat(v.ca(),","),("").concat(w," frames = ").concat(this.Ea.eh(w).ca(),","),("firstFrameTimeOffsetTimestamp ").concat(x.ca()));};m.prototype.kpa=function(p){return this.M.fl() - p.G > 1E3 * this.M.Vi.Rzc?"DVR":"LIVE";};m.prototype.Tv=function(p){var r,q,u,v,w,x;q=this.Zk.Kc(null !== (r=this.O) && void 0 !== r?r:this.nE.O);if(this.mediaType === c.u.X){u=this.K9.Kc(this.O);v=this.Ea.Kc(this.Yl);r=Math.ceil(q.eh(p - this.Bo).ea(u).nf(v));w=Math.ceil(q.eh(p - this.Bo + 1).ea(u).nf(v));x=v.eh(r).add(u).Kc(this.O);u=v.eh(w).add(u).Kc(this.O);e.l && this.console.trace("AseStream.getContentTimestampsBySegmentId",("[").concat(this.mediaType,"] ").concat(p,"-").concat(this.Bo," ") + ("=> frames ").concat(r,"-").concat(w),("offset ").concat(this.K9.ca()),("frame ").concat(this.Ea.G," segment ").concat(q.G),("start ").concat(x.G," end ").concat(u.G),("old start ").concat(q.eh(p - this.Bo).G),("old end ").concat(q.eh(p - this.Bo + 1).G));}else (x=q.eh(p - this.Bo),u=x.add(q),e.l && this.console.trace("AseStream.getContentTimestampsBySegmentId",("[").concat(this.mediaType,"] ").concat(p,"-").concat(this.Bo," =>"),("segment ").concat(q.G),("start ").concat(x.G," end ").concat(u.G)));return {qa:x,ta:u};};return m;})(a(26279).n3);b.uab=t;},48834:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.Vcb=void 0;d=a(22970);n=a(91176);c=a(89613);f=a(48170);g=a(11031);t=(function(e){function h(k,l,m){k=e.call(this,k,l,m) || this;k.Bb=l;k.sb=m;k.tb=void 0;k.Sh=k.Bb.Sh;return k;}d.__extends(h,e);Object.defineProperties(h.prototype,{track:{get:function(){return this.Et;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{sh:{get:function(){return !!this.tb;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{Qa:{get:function(){return this.tb;},enumerable:!1,configurable:!0}});h.prototype.p0=function(k,l,m,p,r,q,u,v){f.l && this.sb && this.sb.trace("AseStream.onHeaderReceived");p && void 0 !== p.Iu && (this.track.sh || void 0 !== p.fg && p.fg.length) && void 0 !== p.offset && void 0 !== p.sizes && p.sizes.length?(this.Sh && this.ze && 0 === p.Iu && (f.l && this.sb.trace("Applying profile timestamp offset of " + this.ze.toString() + " fragments.startTicks " + p.Iu + " / " + p.O + " for profile " + this.profile),p.Iu+=this.ze.Kc(p.O).$),this.sh?f.l && this.sb.trace("Duplicate header received for stream ",this):(this.yF=k,this.track.p0(this,l,m,p,q,v),this.tb=new c.Ugb(this.Jkb,this.track.dk,p,r,q,u,this.R),this.track.kGb(this))):p?this.sb.error("AseStream.onHeaderReceived: fragmentsData was missing data:" + (void 0 !== p.Iu) + "," + this.track.sh + "," + this.track.mZa + "," + (void 0 !== p.fg) + "," + !(!p.fg || !p.fg.length) + "," + (void 0 !== p.offset) + "," + (void 0 !== p.sizes) + "," + !(!p.sizes || !p.sizes.length)):this.sb.error("AseStream.onHeaderReceived: fragmentsData was undefined.");};h.prototype.bqb=function(k){f.l && (0,n.assert)(k instanceof g.m3);f.l && (0,n.assert)(k.Sa === this.Sa);this.sh || (this.track.cqb(k.track),this.tb=k.Qa,this.yF=k.Pj);};h.prototype.MZ=function(k,l,m){return m || this.url;};h.prototype.gma=function(){var k,l,m,p;return this.tb.gma(this.Bb.oy,this.Rt,null !== (l=null === (k=this.M) || void 0 === k?void 0:k.$T.G) && void 0 !== l?l:0,null !== (p=null === (m=this.M) || void 0 === m?void 0:m.$T.ma) && void 0 !== p?p:0,this.FDb);};h.prototype.JZ=function(k,l){return l;};return h;})(g.m3);b.Vcb=t;},1913:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.Wcb=void 0;d=a(22970);n=a(6198);c=a(82149);f=a(52571);g=a(444);e=a(48170);t=(function(h){function k(l,m,p){l=h.call(this,l,m,p) || this;l.CIa=!1;return l;}d.__extends(k,h);Object.defineProperties(k.prototype,{sh:{get:function(){return this.mediaType === n.u.Ca?!0:!!this.dk && !!this.Dz.value;},enumerable:!1,configurable:!0}});k.prototype.p0=function(l,m,p,r,q,u){e.l && this.console.trace("AseTrack.onHeaderReceived for stream:",l.id);if(r && void 0 !== r.Iu && (this.sh || void 0 !== r.fg && r.fg.length)){if(l.xk || !l.track.lp)this.mJa=!0;if(this.sh)!this.CIa && r.fg && r.fg.length > this.dk.length && (e.l && this.console.trace("AseTrack: extending durations from " + ("").concat(this.dk.length," to ").concat(r.fg.length)),this.He=new c.gHa(this.mediaType,this.Ea,r,q),this.Dz.QKb(),this.VSa=-Infinity,this.CIa=!0);else if((this.K0a(m),this.Wjb=u,void 0 !== p && this.mediaType === n.u.U && this.config.ALb && (p=g.pF.tQa(p).Ea()),(p=p || this.vJ)?(e.l && this.console.trace(("AseTrack: Setting frame duration for movie ").concat(this.R) + (", track ").concat(this.trackId) + (", mediaType ").concat(this.mediaType) + (" to ").concat(p.toString()) + (", was ").concat(this.At && this.At.toString()) + (", manifestFrameDuration ").concat(this.vJ)),this.G0a(p || this.vJ),void 0 === this.O && this.swa(p.O)):(e.l && this.console.trace(("AseTrack: No frame duration for movie ").concat(this.R) + (", track ").concat(this.trackId) + (", mediaType ").concat(this.mediaType) + (", timescale ").concat(this.O)),e.l && (0,f.assert)(this.O)),this.He=new c.gHa(this.mediaType,this.Ea,r,q),l.xk || !l.track.lp))this.CIa=!0;}else this.console && this.console.error("AseTrack.onHeaderReceived with missing fragments data");};return k;})(a(26279).n3);b.Wcb=t;},24251:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.A5a=void 0;d=a(91176);t=(function(){function n(c){this.config=c;}n.prototype.dKc=function(c){var f,g,e;f=this.config;g=[];e=[];c.forEach(function(p,r){void 0 === p.Pb?e.push(r):g.push(r);});if(0 !== e.length)for(var h=-1,k=-1,l=function(p){var r,q,u,v,w,x;r=e[p];q=c[r];if(0 === p || r !== e[p - 1] + 1)(h=g[(0,d.Jmb)(g,function(y){return y < r;})] || -1,k=g[(0,d.Lm)(g,function(y){return y > r;})] || -1);u=0;v=f.CBc;p=0;w=f.DBc;-1 < k && (v=c[k].bitrate,w=c[k].Pb);-1 < h && (p=c[h].Pb,u=c[h].bitrate);v=Math.log(v);u=0 === u?0:Math.log(u);x=Math.log(q.bitrate);q.aoa=Math.max(0,Math.min(110,Math.round((p * (v - x) + w * (x - u)) / (v - u) * 100) / 100));},m=0;m < e.length;m++)l(m);};return n;})();b.A5a=t;},29092:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.map=b.XTa=b.xoa=b.APa=b.Sga=b.AsyncIterator=b.xga=void 0;d=a(91176);Object.defineProperties(b,{xga:{enumerable:!0,get:function(){return d.xga;}}});Object.defineProperties(b,{AsyncIterator:{enumerable:!0,get:function(){return d.AsyncIterator;}}});Object.defineProperties(b,{Sga:{enumerable:!0,get:function(){return d.Sga;}}});Object.defineProperties(b,{APa:{enumerable:!0,get:function(){return d.APa;}}});Object.defineProperties(b,{xoa:{enumerable:!0,get:function(){return d.xoa;}}});Object.defineProperties(b,{XTa:{enumerable:!0,get:function(){return d.XTa;}}});Object.defineProperties(b,{map:{enumerable:!0,get:function(){return d.map;}}});},89645:function(t,b,a){var c,f,g,e,h,k,l,m;function d(p,r){return p.done?p:{value:{value:p.value,flb:r}};}function n(p){p.flb();return {done:!1,value:p.value};}Object.defineProperties(b,{__esModule:{value:!0}});b.O_b=b.KI=void 0;b.i5c=function(p){return (0,g.map)(p,n);};c=a(22970);f=a(66164);t=a(90745);g=a(29092);e=a(48170);h=a(69575);k=a(52571);a=a(85254);l=(function(){function p(r,q){this.console=r;this.Jh=q;this.xDc=this.U8=0;this.yi=[];this.console=(0,h.Df)(f.platform,this.console,"QueueIterator:");}Object.defineProperties(p.prototype,{Nhc:{get:function(){return this.U8;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Epb:{get:function(){var r,q,u;for(q=0;q < this.yi.length;q++){u=this.yi[q];if(!u.Iaa || (null === (r=u.item) || void 0 === r?0:r.done))break;}return q;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{count:{get:function(){return this.Jh;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{gH:{get:function(){return 0 === this.Jh;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{y_a:{get:function(){var r;for(r=0;r < this.yi.length && this.yi[r].zUa;r++);return r;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{head:{get:function(){var r;r=c.__read(this.yi,1)[0];return (r=r && r.item) && !r.done && r.value;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{NWa:{get:function(){var r;for(r=0;r < this.yi.length && this.yi[r].Iaa;r++);return r;},enumerable:!1,configurable:!0}});p.prototype.wQ=function(){var r;if(void 0 === this.Jh){r=this.console;e.l && r && r.trace("QueueIterator: enqueueEnd");this.f3a(this.NWa - (this.Jh || 0));}};p.prototype.wj=function(){return this.yi.map(function(r){return r.item;});};p.prototype.G2a=function(){this.values || (this.values=this.yi.filter(function(r){return (null === r || void 0 === r?void 0:r.item) && !r.item.done;}).map(function(r){return r.item.value;}));return this.values;};p.prototype.f3a=function(r){var q;e.l && this.console.trace("updateCount",{ibd:this.Jh,Gv:r});if(void 0 !== this.Jh){q=this.yi[this.Jh];q && this.NTa(q);}this.Jh=void 0 === this.Jh?r:void 0 === r?r:this.Jh + r;void 0 !== this.Jh && (this.Jh=Math.max(0,this.Jh),(q=this.yi[this.Jh]) && q.GR.resolve({done:!0}));};p.prototype.enqueue=function(r){var q;e.l && this.console.trace("Enqueue called");q=this.NWa;this.xma();return this.qKc(q,{value:r,done:!1}).Vrb.promise;};p.prototype.PKb=function(){e.l && this.console.trace("resetEnd");this.f3a(void 0);};p.prototype.clear=function(r){var q,u,v;e.l && this.console.trace("clear");this.zZa();q=this.y_a;u=this.yi.length - q;if(0 < u){v={index:q,hXa:u};e.l && this.console.trace("Removing items",v);this.yi.splice(q,u);this.xma();this.emit("onRemoved",v);}for(u=1;u < q;u++)this.NTa(this.yi[u]);this.Jh=void 0;this.f3a(r?r + q:r);this.U8 && (this.U8=0);};p.prototype.getIterator=function(){var r,q;r=this;q=(0,h.Df)(f.platform,this.console,"QueueIteratorInstance::");return new m(this,function(u){return r.exb(u);},q);};p.prototype.Mhc=function(){var r;if(0 < this.y_a){r=c.__read(this.yi,1)[0];r.Iaa && (e.l && this.console.trace("dequeue",r.id),this.zZa(1),this.emit("onDequeue",r.GR.promise));}};p.prototype.remove=function(r){var q,u,v;for(q=0;q < this.yi.length;q++){u=this.yi[q];v=u.item;if(v && !v.done && v.value === r){this.yi.splice(q,1);this.Jh && this.Jh > q && this.Jh--;this.xma();e.l && this.console.trace("removed",{id:u.id});this.emit("onRemoved",{index:q,hXa:1});break;}}};p.prototype.zZa=function(r){var q;r=r || Math.min(this.y_a,this.NWa);if(0 < r){q=this.yi.splice(0,r);this.xma();this.Jh && (this.Jh-=r);e.l && this.console.trace("pruned",r);Promise.resolve().then(function(){q.forEach(function(u){u.Vrb.resolve();});});this.emit("onRemoved",{index:0,hXa:r});this.U8+=r;}};p.prototype.exb=function(r){var q;e.l && this.console.trace("getNextItemCalled",{offset:r});if(void 0 === this.count || 0 < this.count){this.Dzb(r);q=this.yi[r];q.ZMc.resolve();r=q.GR.promise;e.l && this.console.trace("getNextItem:return",{id:q.id});}else (e.l && this.console.trace("getNextItem:returnDone"),r=Promise.resolve({done:!0}));return r;};p.prototype.qKc=function(r,q){var u;u=!q.done && q.value;u=u && u.toJSON?u.toJSON():u;e.l && this.console.trace("Providing result",{w7b:r,item:u});this.Dzb(r);r=this.yi[r];u=r.GR.resolve;u(q);return r;};p.prototype.Dzb=function(r){var q;if(void 0 === this.yi[r]){q={};this.NTa(q);this.yi[r]=q;r === this.Jh && q.GR.resolve({done:!0});e.l && this.console.trace("Item initialized",{w7b:r});}};p.prototype.xNa=function(r){var q;q={};q.promise=new Promise(function(u,v){q.resolve=function(w){u(w);r && r(w);};q.reject=v;});return q;};p.prototype.NTa=function(r){var q;q=this;r.GR=this.xNa(function(u){r.item=u;r.Iaa=!0;e.l && q.console.trace("Item resolved",{id:r.id});});r.id && r.zUa && !r.Iaa && (r.GR.resolve({done:!0}),e.l && this.console.warn("Overwriting requested queue item",r.id));r.Vrb=this.xNa();r.ZMc=this.xNa(function(){r.zUa=!0;e.l && q.console.trace("Item requested",{id:r.id});});r.id=this.xDc++;r.zUa=!1;r.Iaa=!1;r.item=void 0;};p.prototype.xma=function(){this.values=void 0;};p.prototype.Poa=function(){var r,q,u;r=this;q=(0,h.Df)(f.platform,this.console,"QueueIteratorInstance::");u=new m(this,function(v){var w,x;if(0 === r.count)return g.AsyncIterator.lSa();w=r.exb(v);x=r.yi[0];return w.then(function(y){return d(y,function(){u.d_ || (x === r.yi[0]?r.Mhc():(0,k.assert)(!r.yi.filter(function(A){return A.GR.promise === w;}).length,"Out of order acknowledgements are not supported"));});});},q);return u;};return p;})();b.KI=l;(0,a.vl)(t.EventEmitter,l);m=(function(p){function r(q,u,v){var w;w=p.call(this,function(){e.l && w.console.trace("Next item requested",{index:w.index});return w.KNc(w.index++);}) || this;w.parent=q;w.KNc=u;w.console=v;w.X2b=!1;w.index=0;w.FIa=!1;w.bM=function(x){var y;y=x.index;x=x.hXa;w.index >= y && (w.index=Math.max(y,w.index - x));y=w.console;e.l && y && y.trace("QueueIteratorInstance: onRemoved modified",w.index);};return w;}c.__extends(r,p);r.prototype.Zg=function(){this.console.trace("disposed");this.X2b=!0;this.Qe();p.prototype.Zg.call(this);};r.prototype.next=function(){this.d_ || this.uqa();return p.prototype.next.call(this);};r.prototype.cancel=function(){this.Qe();return p.prototype.cancel.call(this);};r.prototype.Qe=function(){this.parent.$l("onRemoved",this.bM);this.FIa=!1;};r.prototype.uqa=function(){this.FIa || (this.FIa=!0,this.parent.on("onRemoved",this.bM));};return r;})(g.AsyncIterator);b.O_b=m;},54923:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.X5a=void 0;d=a(22970);n=a(91176);t=(function(){function c(f,g,e){this.jBc=f;this.uRc=g;this.console=e;this.name="BatchRequestThrottler";this.uLb=new n.fgb();this.reset();}c.prototype.process=function(f){return d.__awaiter(this,void 0,void 0,function(){var g;g=this;return d.__generator(this,function(e){switch(e.label){case 0:this.uLb.uxc || (this.Rla=n.I.ia);this.uLb.QRc();if(f.done)return [3,3];if(!this.Rla.Tf(this.jBc))return [3,2];!1;return [4,new Promise(function(h){return setTimeout(h,g.uRc);})];case 1:(e.T(),e.label=2);case 2:(this.Rla=this.Rla.add(f.value.value.Wb),e.label=3);case 3:return [2,f];}});});};c.prototype.reset=function(){};c.prototype.yXa=function(){!1;this.Rla=n.I.ia;};return c;})();b.X5a=t;},29358:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.f6a=void 0;d=a(22970);n=a(29092);c=a(48170);f=a(58049);t=(function(){function g(e,h,k){this.sb=e;this.N1b=h;this.CF=k;this.Qja=0;this.ara=!1;this.s7=[];this.jY=void 0;c.l && e.trace(("BranchRequestIterator [").concat(this.CF,"]: created"));}Object.defineProperties(g.prototype,{zgc:{get:function(){return this.Qja;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{Uma:{get:function(){return this.ejb;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{lj:{get:function(){return this.ara;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{nrb:{get:function(){return this.mp?this.mp.gH?"Complete":this.mp.vZa?"WaitingForBranch":void 0 !== this.jY?("In Policy ").concat(this.s7[this.jY].name):"WaitingForRequest":("Uninitialized;Prior:").concat(this.WBb);},enumerable:!1,configurable:!0}});g.prototype.next=function(){return d.__awaiter(this,void 0,void 0,function(){var e,h,k,l,m;return d.__generator(this,function(p){var r;switch(p.label){case 0:e=this.mp;if(!e)return [3,6];this.jY=void 0;return [4,e.next()];case 1:h=p.T();this.sb.log("BranchRequestIterator:: processing result",!h.done && h.value.value.toString());r=h;k=!r.done && !(0,f.iUa)(r.value.value);l=0;p.label=2;case 2:if(!(l < this.s7.length))return [3,5];this.jY=l;m=this.s7[l];if(!k && !h.done && !m.dac)return (this.sb.log("BranchRequestIterator::Skipping policy",{name:m.name}),[3,4]);this.sb.log("BranchRequestIterator::Checking policy",{name:m.name});return [4,m.process(h)];case 3:(h=p.T(),this.sb.log("BranchRequestIterator::policy complete",{name:m.name}),p.label=4);case 4:return (l++,[3,2]);case 5:this.jY=void 0;if(h.done || this.mp !== e)return [2,{done:!0}];this.Qja++;h.value.flb();return [2,{done:!1,value:h.value.value}];case 6:return [2,n.AsyncIterator.lSa()];}});});};g.prototype.uNc=function(){this.mOb();this.nLc();};g.prototype.mOb=function(){var e;if(this.mp){this.WBb=this.nrb;e=this.mp;e && e.Zg();this.s7.forEach(function(h){return h.reset();});e && c.l && this.sb.trace(("BranchRequestIterator [").concat(this.CF,"]: Disposing iterator that was on branch "),this.Uma && this.Uma.K.id);this.ara=!1;this.jY=this.mp=void 0;}};g.prototype.h7=function(e){this.s7.push(e);};g.prototype.nLc=function(){var e,h,k,l;e=this;if(!this.ara){h=this.sb;k=this.N1b;l=this.CF;this.Qja=0;this.WBb=this.ejb=void 0;this.mp=(0,n.xoa)((0,n.map)(k.qsc(),function(m){return d.__awaiter(e,void 0,void 0,function(){var p;return d.__generator(this,function(r){switch(r.label){case 0:return (this.ejb=m,this.Qja=0,c.l && h.trace(("BranchRequestIterator [").concat(this.CF,"]: new branch ").concat(m.K.id)),[4,m.SK(l)]);case 1:if(p=r.T())return [2,{value:p}];c.l && h.error(("BranchRequestIterator [").concat(this.CF,"]: skipping branch ").concat(m.K.id));return [2,{value:[]}];}});});},h),h);this.ara=!0;}};return g;})();b.f6a=t;},50930:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.R9a=void 0;d=a(78541);n=a(42431);a(65161);c=a(52571);t=(function(){function f(g,e,h,k,l,m,p,r){this.oa=g;this.track=e;this.bSc=h;this.ORc=k;this.config=l;this.console=m;this.events=p;this.IFc=r;this.pj=0;this.hZa=this.lk=!1;}Object.defineProperties(f.prototype,{mediaType:{get:function(){return this.track.mediaType;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{L:{get:function(){return this.oa.K.id;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{hh:{get:function(){return this.oa.hh;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Jwa:{get:function(){return this.bSc();},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{pk:{get:function(){return this.Jwa;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{pI:{get:function(){return this.Jwa;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Xwa:{get:function(){return this.ORc;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{iZ:{get:function(){return this.oa.iZ;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{zd:{get:function(){return this.mv || (this.mv=this.QC());},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Ak:{get:function(){return !this.track.hca;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{qYa:{get:function(){return !1;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Lp:{get:function(){return this.oa.N$(this.mediaType);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{kw:{get:function(){return -Infinity;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Sz:{get:function(){return "available";},enumerable:!1,configurable:!0}});f.prototype.cy=function(){return this.track.hca;};f.prototype.op=function(){return this.track.sh;};f.prototype.Uf=function(){return !1;};f.prototype.uwb=function(){return {Qa:[],eua:0,qw:0,k1:0};};f.prototype.VPb=function(){var g;(0,c.assert)(this.op());g=this.zd;this.mv=void 0;return g;};f.prototype.X2a=function(g){return (g=g.PB(this.oa.K,this.zd))?{Bf:g,reason:"success"}:{Bf:g,reason:"pipelineTryIssueHeaderRequest"};};f.prototype.cancel=function(){this.mv && (this.oa.M.RW(this.mediaType,this.mv),n.QI.instance.W8(this.mv),this.mv.removeAllListeners(),this.mv=void 0);};f.prototype.oUa=function(){var g,e,h;h=this.config.Lq;if(null === (g=this.zd) || void 0 === g?0:g.track)h=null === (e=this.zd) || void 0 === e?void 0:e.track.Lq;return h;};f.prototype.FZ=function(){return this.oa.kxb(this.mediaType);};f.prototype.QC=function(){var g,e;g=this;e=(0,d.QC)(this.mediaType,this.track.M,this.config,this.console,this.track.Eb,function(h){return g.events.emit("transportReport",h);},function(h){return g.events.emit("mediaRequestComplete",h);},function(){});e.on("created",this.IFc);return e;};return f;})();b.R9a=t;},25813:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r;Object.defineProperties(b,{__esModule:{value:!0}});b.Adb=b.s3=void 0;d=a(22970);n=a(91176);c=a(66164);f=a(65161);t=a(71808);g=a(85254);e=a(89645);h=a(52571);k=a(69575);l=a(3033);m=a(27977);p=a(27259);a=a(58049);(function(q){q[q.UB=0]="CREATED";q[q.t3=1]="CANCELLED";})(r || (b.s3=r={}));a=(function(q){function u(v,w,x,y,A,z){v=q.call(this,w,y,x,n.I.ia,(0,k.Df)(c.platform,v,"AsePadding")) || this;v.M=A;v.config=z;v.MU=new e.KI(v.console);v.$J=new e.KI(v.console);v.pn=new n.Jo();v.HS=new p.Bdb(z).create();v.console.trace(("PaddingBranch {").concat(w.id,"}: created"));return v;}d.__extends(u,q);u.prototype.Fec=function(v){return d.__awaiter(this,void 0,void 0,function(){var w,x,y,A,z,B,C,D;D=this;return d.__generator(this,function(F){switch(F.label){case 0:return [4,this.vJc()];case 1:return (w=F.T(),x=w.ze,y=w.Xc,A=w.bitrate,z=w.vu,B=(0,k.Df)(c.platform,this.console,"[0]"),this.$J=new e.KI(B),C=l.TN.instance().Pea.fJb(this.M,x,y,A,z,v,this.K,this.Pvb.bind(this),this.config,B),C.forEach(function(H){return D.$J.enqueue(H);}),this.$J.wQ(),[2]);}});});};u.prototype.ogc=function(v){return d.__awaiter(this,void 0,void 0,function(){var w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M;J=this;return d.__generator(this,function(P){switch(P.label){case 0:return [4,this.wJc()];case 1:return (w=P.T(),x=w.profile,y=w.BC,A=w.vu,z=null === (M=null === (K=null === (L=this.parent) || void 0 === L?void 0:L.je(f.u.U)) || void 0 === K?void 0:K.track.Ea) || void 0 === M?void 0:M.VZa(),(0,h.assert)(z,"padding branches should always have a frameRate"),B=(0,k.Df)(c.platform,this.console,"[0]"),C=this.HS.cMb({profile:x,frameRate:z}),D=C.profile,F=C.frameRate,H=l.TN.instance().Pea.gJb(this.M,this.M.iXc,D,F,y,A,v,this.K,this.Pvb.bind(this),B),E=H.duration,G=H.Qa,this.K.UMb([]),G.forEach(function(I){return J.MU.enqueue(I);}),this.MU.wQ(),this.QIa=E,this.M.NQ=E.G,[2]);}});});};Object.defineProperties(u.prototype,{Ak:{get:function(){return !0;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{lk:{get:function(){return !0;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{SJ:{get:function(){return 0;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{Uf:{get:function(){return this.pn.FM;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{CN:{get:function(){return this.pn.promise;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{dya:{get:function(){return Promise.resolve();},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{Wl:{get:function(){return !0;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{O:{get:function(){return this.fS.O;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{ub:{get:function(){return this.K.ib.Kc(this.O).$;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{Lb:{get:function(){return this.ub + this.fS.$;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{Hp:{get:function(){return this.Kd.Kc(this.O).$;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{fH:{get:function(){return this.K.ib.add(this.Kd);},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{iZ:{get:function(){(0,h.assert)(!this.K.Ul,"exit zone not supported for padding segments");return n.I.ia;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{gX:{get:function(){return this.$J && this.MU?this.$J.gH && this.MU.gH:!1;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{OKa:{get:function(){return !(!this.$J && !this.MU);},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{vw:{get:function(){return this.K.ib.add(this.Kd);},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{VS:{get:function(){return this.K.Yb.add(this.Kd);},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{qra:{get:function(){return this.Ob;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{pk:{get:function(){return this.Ob;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{Kd:{get:function(){return this.kC;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{fS:{get:function(){return this.QIa || this.K.Yb.ea(this.K.ib);},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{Xy:{get:function(){return n.I.ia;},enumerable:!1,configurable:!0}});u.prototype.Tb=function(){return d.__awaiter(this,void 0,void 0,function(){var v;return d.__generator(this,function(w){switch(w.label){case 0:return [4,q.prototype.Tb.call(this)];case 1:(w.T(),w.label=2);case 2:return (w.tc.push([2,6,,7]),this.parent?[4,this.parent.CN]:[3,4]);case 3:(w.T(),w.label=4);case 4:return (this.console.trace(("PaddingBranch {").concat(this.K.id,"}: init")),this.QIa=this.K.Yb.ea(this.K.ib),[4,this.Nqb([f.u.X,f.u.U])]);case 5:return (w.T(),this.pn.resolve(),[3,7]);case 6:v=w.T();if(!this.Zc)throw v;return [3,7];case 7:return [2];}});});};u.prototype.SK=function(v){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){this.console.trace(("PaddingBranch {").concat(this.K.id,"}: getRequestIterator(").concat(v,")"));return v === f.u.X?[2,this.$J.Poa()]:v === f.u.U?[2,this.MU.Poa()]:[2,this.hxb(v)];});});};u.prototype.reset=function(){};u.prototype.Jg=function(v){void 0 === v && (v="other");q.prototype.Jg.call(this,v);this.$a=r.t3;this.QIa=void 0;this.events.emit("branchDestroyed",{type:"branchDestroyed",reason:v});this.events.removeAllListeners();};u.prototype.UP=function(){return !0;};u.prototype.je=function(){};u.prototype.Spa=function(v){return [f.u.X,f.u.U].some(function(w){return w === v;});};u.prototype.pA=function(){return [];};u.prototype.uk=function(v){var w;return null === (w=this.parent) || void 0 === w?void 0:w.uk(v);};u.prototype.mpa=function(){return [];};u.prototype.VG=function(){};u.prototype.en=function(){return this.fS.G;};u.prototype.WQ=function(){return {};};u.prototype.wZ=function(){return this.K.Yb.G;};u.prototype.Ny=function(v,w,x,y){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(A){switch(A.label){case 0:return [4,this.pn.promise];case 1:return (A.T(),this.parent?[4,this.parent.CN]:[3,3]);case 2:(A.T(),A.label=3);case 3:return [4,this.Nqb(y)];case 4:return (A.T(),[2]);}});});};u.prototype.Nqb=function(v){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(w){switch(w.label){case 0:if(-1 === v.indexOf(f.u.U))return [3,2];this.MU.clear();return [4,this.ogc(this.fS)];case 1:(w.T(),w.label=2);case 2:if(-1 === v.indexOf(f.u.X))return [3,4];this.$J.clear();this.console.trace(("AsePaddingBranch {").concat(this.K.id,"}: video duration ").concat(this.fS.ca()));return [4,this.Fec(this.fS)];case 3:(w.T(),w.label=4);case 4:return [2];}});});};u.prototype.nt=function(){return [];};u.prototype.UX=function(v){var w,x;return !!((null === (w=this.Ob) || void 0 === w?0:w.greaterThan(v)) && (null === (x=this.Sb) || void 0 === x?0:x.lessThan(v)));};u.prototype.Xoa=function(){return this.fS;};u.prototype.xxa=function(){return !1;};u.prototype.toJSON=function(){var v,w;return {segment:this.K.id,viewableId:this.MF.J,contentStartPts:null === (v=this.qa) || void 0 === v?void 0:v.G,contentEndPts:null === (w=this.ta) || void 0 === w?void 0:w.G};};u.prototype.wJc=function(){return d.__awaiter(this,void 0,void 0,function(){var v,w,x,y,A,z,B,C,D,F,H;return d.__generator(this,function(E){switch(E.label){case 0:return (v=null === (z=null === (A=this.parent) || void 0 === A?void 0:A.je(f.u.U)) || void 0 === z?void 0:z.Co.il)?[3,2]:[4,null === (C=null === (B=this.parent) || void 0 === B?void 0:B.je(f.u.U)) || void 0 === C?void 0:C.Co.fSb];case 1:E.T();if(this.Zc)return [2,Promise.reject()];E.label=2;case 2:return (v=null === (F=null === (D=this.parent) || void 0 === D?void 0:D.je(f.u.U)) || void 0 === F?void 0:F.Co.il,(0,h.assert)(v,"Parent of padding branch must have last selected video stream"),w=null === (H=v.track.yo) || void 0 === H?void 0:H.BC,x=v.track.vu,y=v.Uc,[2,{profile:y,BC:w,vu:x}]);}});});};u.prototype.vJc=function(){return d.__awaiter(this,void 0,void 0,function(){var v,w,x,y,A,z,B,C,D,F,H;return d.__generator(this,function(E){switch(E.label){case 0:return (v=null === (B=null === (z=this.parent) || void 0 === z?void 0:z.je(f.u.X)) || void 0 === B?void 0:B.Co.il)?[3,2]:[4,null === (D=null === (C=this.parent) || void 0 === C?void 0:C.je(f.u.X)) || void 0 === D?void 0:D.Co.fSb];case 1:E.T();if(this.Zc)return [2,Promise.reject()];E.label=2;case 2:return (v=null === (H=null === (F=this.parent) || void 0 === F?void 0:F.je(f.u.X)) || void 0 === H?void 0:H.Co.il,(0,h.assert)(v,"Parent of padding branch must have last selected audio stream"),w=v.ze || n.I.ia,x=(0,m.Yvb)(v.profile),y=v.bitrate,A=v.track.vu,[2,{ze:w,Xc:x,bitrate:y,vu:A}]);}});});};u.prototype.Pvb=function(v,w){return this.kC.add(w).Kc(v).$;};u.prototype.jR=function(){return [];};u.prototype.Bxb=function(){return Infinity;};u.prototype.Cpa=function(){return Infinity;};u.prototype.dG=function(){return {NS:!0,reason:void 0};};u.prototype.HX=function(v){return v.Ua === this.K.Ua && v.fb === this.K.fb;};return u;})(a.tza);b.Adb=a;(0,g.vl)(t.fz,a);},58049:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r;function d(q){return q === k.u.U?0:q === k.u.X?1:q === k.u.Ca?2:3;}Object.defineProperties(b,{__esModule:{value:!0}});b.tza=b.s3=b.wYb=b.LU=void 0;b.iUa=function(q){return "mediaTypeNotAvailable" === q.type;};n=a(22970);c=a(90745);f=a(91176);g=a(66164);e=a(89645);h=a(48170);k=a(65161);l=a(69575);m=a(68825);b.LU=function(q,u){q=d(q.mediaType);u=d(u.mediaType);return q - u;};b.wYb={LU:b.LU};(function(q){q[q.UB=0]="CREATED";q[q.t3=1]="CANCELLED";})(p || (b.s3=p={}));r=0;t=(function(){function q(u,v,w,x,y){this.MF=u;this.getParent=v;this.kC=w;this.Eq=x;this.$a=p.UB;this.NW=[];this.Ryb=!1;this.Tja=new Map();this.events=new c.EventEmitter();v=u.id && u.id.length?"{" + u.id + "}":"";this.console=(0,l.Df)(g.platform,y,v);this.Tib=u.id + "-" + r++;h.l && this.console.debug(("BranchBase created with id ").concat(this.Tib));this.H0=new m.Ddb(this);}Object.defineProperties(q.prototype,{state:{get:function(){return this.$a;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{Zc:{get:function(){return this.$a === p.t3;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{K:{get:function(){return this.MF;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{ka:{get:function(){return this.NW;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{parent:{get:function(){var u;return null === (u=this.getParent) || void 0 === u?void 0:u.call(this,this);},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{tX:{get:function(){return this.Tib;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{EL:{get:function(){return this.j3b;},enumerable:!1,configurable:!0}});q.prototype.Dta=function(){var u;this.H0.Dta();if(null === (u=this.parent) || void 0 === u?0:u.Ob)(u=this.parent.Ob.ea(this.Eq),this.Mw(u,"on parent normalization"));};q.prototype.Tb=function(){var u;if(this.parent){if(this.parent.Ob){u=this.parent.Ob.ea(this.Eq);this.Mw(u,"at intialization");}this.Gvc();this.Bvc();}h.l && this.console.trace(("BranchBase {").concat(this.K.id,"}: Initialization complete"));};q.prototype.Gvc=function(){n.__awaiter(this,void 0,void 0,function(){var u,v;return n.__generator(this,function(w){switch(w.label){case 0:return (u=this.H0,[4,u.cya()]);case 1:w.T();h.l && this.console.trace(("Branch {").concat(this.K.id,"}: waitForParent Viewable Complete"));if(this.Zc || !this.parent)return [2];this.j3b=(null === (v=this.parent) || void 0 === v?0:v.M.qp)?this.parent.Kd:this.parent.EL;return [2];}});});};q.prototype.Bvc=function(){n.__awaiter(this,void 0,void 0,function(){var u,v;return n.__generator(this,function(w){switch(w.label){case 0:return (u=this.H0,h.l && this.console.trace(("Branch {").concat(this.K.id,"}: waitForParent Normalization Started")),[4,u.cya()]);case 1:w.T();h.l && this.console.trace(("Branch {").concat(this.K.id,"}: waitForParent Normalization Complete"));if(this.Zc || !this.parent)return [2];this.parent.Ob && (v=this.parent.Ob.ea(this.Eq),this.Mw(v,"on parent normalization"));return [2];}});});};q.prototype.update=function(u){(0,f.assert)(this.HX(u),"Cannot update branch with segment");this.MF=u;};q.prototype.Mw=function(u,v){void 0 === v && (v="unknown");h.l && this.console.log(("AseBranch adjusting branchOffset to ").concat(u.ca()) + (" from ").concat(this.Kd.ca()," ").concat(v));this.kC=u;this.events.emit("branchOffsetUpdated",{type:"branchOffsetUpdated",Kd:u});};q.prototype.kxb=function(u){var w;if(!this.Zc)for(var v=this.parent;v;){w=v.VG(u);if(w)return w;v=v.parent;}};q.prototype.Jg=function(){this.getParent=void 0;this.H0.Dta();};q.prototype.Spa=function(u){return this.ka.some(function(v){return v.mediaType === u;});};q.prototype.hxb=function(u){var v;if(!this.Tja.has(u)){v=new e.KI(this.console,1);v.enqueue({oa:this,K:this.K,type:"mediaTypeNotAvailable"});this.Tja.set(u,v);}return this.Tja.get(u).Poa();};q.prototype.OKb=function(u){var v;v=this;u.forEach(function(w){v.Tja.delete(w);});};return q;})();b.tza=t;},70842:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Hcc=function(f){var g,e,h,k,l,m,p,r,q,u,v,w;g=f.config;e=f.console;h=f.SYa;k=f.K;l=f.events;m=f.PM;p=f.Eq;r=f.Kd;q=f.yq;u=f.ie;v=f.gd;w=f.SB;f=f.Aj;k.J === d.vr && g.WC?(l=new n.Cdb(k.J,g.Uta),g=new (a(25813).Adb)(e,k,r,h.tpa.bind(h),l,g)):g=new c.d6a(g,e,l,k,m,p,r,q,h.tpa.bind(h),u,v,w,f);return g;};d=a(79048);n=a(10943);c=a(1552);},46498:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Kob=b.g6a=void 0;d=a(22970);t=(function(){function c(f){var g;g=f.mCb;g=void 0 === g?n:g;this.oa=f.oa;this.mCb=g;}c.prototype.dG=function(f){var g,k,l;try{for(var e=d.__values(this.mCb),h=e.next();!h.done;h=e.next()){k=h.value;l=k(this.oa,f);if(l)return {NS:!1,reason:l};}}catch(p){var m;m={error:p};}finally{try{h && !h.done && (g=e.return) && g.call(e);}finally{if(m)throw m.error;}}return {NS:!0,reason:void 0};};return c;})();b.g6a=t;b.Kob=function(c,f){f=c.en(f);c=c.Cpa();if(f >= c)return "targetBufferDurationLimit";};n=[b.Kob];},1552:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H;Object.defineProperties(b,{__esModule:{value:!0}});b.d6a=b.s3=void 0;d=a(22970);n=a(91176);c=a(91176);f=a(66164);g=a(79048);e=a(6200);h=a(42431);k=a(65161);t=a(71808);l=a(52571);m=a(19595);p=a(32412);r=a(48170);q=a(78541);u=a(42556);v=a(7559);w=a(85254);x=a(97757);y=a(62442);A=a(42193);z=a(50930);B=a(58049);C=a(18447);D=a(20717);F=a(46498);(function(E){E[E.UB=0]="CREATED";E[E.t3=1]="CANCELLED";})(H || (b.s3=H={}));a=(function(E){function G(J,L,K,M,P,I,O,Q,T,U,X,Y,W){var Z;Z=E.call(this,M,T,O,I,L) || this;Z.config=J;Z.QS=K;Z.Bwb=P;Z.yq=Q;Z.ie=U;Z.gd=X;Z.SB=Y;Z.V3a=W;Z.cH=new p.LV();Z.s_a=0;Z.Qd=void 0;Z.sI=void 0;Z.t9b=new F.g6a({oa:Z});Z.Tra=void 0;Z.zh=void 0;Z.pn=new c.Jo();Z.pn.then(function(){r.l && Z.console.log("AseBranch normalized promise callback",Z.tX);});Z.qqa=new c.Jo();Z.wXa=Z.Ivc();Z.AOb=[];return Z;}d.__extends(G,E);G.prototype.N$=function(J){return this.wea()?this.byc:this.AOb[J];};Object.defineProperties(G.prototype,{ka:{get:function(){var J;this.Wl && 0 === (null === (J=this.NW) || void 0 === J?void 0:J.length) && this.Bwb && (r.l && this.console.trace("Branch getting initial tracks"),this.NW=this.Bwb(this.M).sort(B.LU),r.l && this.console.trace("Branch got initial tracks:",this.NW));return this.NW;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{gX:{get:function(){return this.lk?this.pA().every(function(J){return J.ee.gX;}):!1;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{OKa:{get:function(){return this.pA().some(function(J){return J.X6b;});},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{Ak:{get:function(){var J;return !(null === (J=this.xd) || void 0 === J || !J.Ak);},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{lk:{get:function(){var J;return !(null === (J=this.xd) || void 0 === J || !J.lk);},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{SJ:{get:function(){var J,L;return null !== (L=null === (J=this.xd) || void 0 === J?void 0:J.SJ) && void 0 !== L?L:0;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{Uf:{get:function(){var J;return !(null === (J=this.xd) || void 0 === J || !J.Uf);},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{CN:{get:function(){return this.pn.promise.then(function(){});},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{dya:{get:function(){return this.SB.kr.then(function(){});},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{Wl:{get:function(){var J;return !(null === (J=this.SB) || void 0 === J || !J.M);},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{Rpa:{get:function(){return !!this.ka.length && this.ka.every(function(J){return J.sh;});},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{M:{get:function(){(0,l.assert)(this.SB.M,"viewable should be available");return this.SB.M;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{O:{get:function(){var J;return (null === (J=this.xd) || void 0 === J?void 0:J.O) || this.Eq.O;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{ub:{get:function(){var J,L;return null !== (L=null === (J=this.xd) || void 0 === J?void 0:J.ub) && void 0 !== L?L:this.Eq.$;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{Lb:{get:function(){var J,L;return null !== (L=null === (J=this.xd) || void 0 === J?void 0:J.Lb) && void 0 !== L?L:this.K.Yb.Kc(this.Eq.O).$;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{Hp:{get:function(){var J,L;return null !== (L=null === (J=this.xd) || void 0 === J?void 0:J.Hp) && void 0 !== L?L:this.Kd.Kc(this.O).$;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{fH:{get:function(){var J,L;return (null === (J=this.xd) || void 0 === J?void 0:J.fH) || (null === (L=this.Eq) || void 0 === L?void 0:L.add(this.Kd));},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{iZ:{get:function(){var J,L;L=null === (J=this.K.Ul) || void 0 === J?void 0:J[0];return L && this.qa?n.I.Ba(Math.max(0,L[0] - this.qa.G - this.K.ib.G)):n.I.ia;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{vw:{get:function(){var J;return (null === (J=this.xd) || void 0 === J?void 0:J.vw) || this.K.ib.add(this.Kd);},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{VS:{get:function(){var J;return (null === (J=this.xd) || void 0 === J?void 0:J.VS) || this.K.Yb.add(this.Kd);},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{qra:{get:function(){var J;return null === (J=this.xd) || void 0 === J?void 0:J.qra;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{Kd:{get:function(){var J;return (null === (J=this.xd) || void 0 === J?void 0:J.Kd) || this.kC;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{Xy:{get:function(){var J,L;L=null === (J=this.xd) || void 0 === J?void 0:J.Xy;return (null === L || void 0 === L?0:L.isFinite())?L:this.K.Yb.ea(this.Eq || this.K.ib);},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{pk:{get:function(){var J;return null === (J=this.xd) || void 0 === J?void 0:J.pk;},enumerable:!1,configurable:!0}});G.prototype.Tb=function(){return d.__awaiter(this,void 0,void 0,function(){var J,L,K;K=this;return d.__generator(this,function(M){switch(M.label){case 0:E.prototype.Tb.call(this);if(this.Zc)return [2];r.l && this.console.log(("AseBranch {").concat(this.K.id,"} awaiting viewable"));return [4,this.SB.Tb(this,function(){return d.__awaiter(K,void 0,void 0,function(){var P;return d.__generator(this,function(I){switch(I.label){case 0:return (r.l && this.console.trace(("Branch {").concat(this.K.id,"}: Waiting for randomization")),[4,this.yXc()]);case 1:P=I.T();r.l && this.console.trace(("Branch {").concat(this.K.id,"}: Randomization complete"));if(!this.Zc)return [3,3];r.l && this.console.trace(("Branch {").concat(this.K.id,"}: Cancelled"));return [4,new Promise(function(){})];case 2:(I.T(),I.label=3);case 3:return [2,P];}});});})];case 1:M.T();r.l && this.console.log(("AseBranch {").concat(this.K.id,"} viewable available, branch ").concat(this.Zc?"cancelled":"active"));if(this.Zc)return [2];(0,l.assert)(this.SB.M,"viewable should be available");this.SB.M.h1a() && (this.config=this.SB.M.config);J=this.ka.map(function(P){var I;return null === (I=K.parent) || void 0 === I?void 0:I.uk(P.mediaType);});this.IMb(this.Eq);this.ka.some(function(P){P.mediaType === k.u.Ca && K.ZMb(P);});return [4,this.lub()];case 2:M.T();r.l && this.console.log(("AseBranch {").concat(this.K.id,"} have headers"));if(this.Zc)return [2];if(!this.parent)return [3,4];L=this.H0;return [4,L.cya()];case 3:M.T();if(this.Zc)return [2];r.l && this.console.log(("AseBranch {").concat(this.K.id,"} parent normalized, creating header streamables"));this.ifc(J);M.label=4;case 4:return (this.normalize(),[2]);}});});};G.prototype.yXc=function(){return d.__awaiter(this,void 0,void 0,function(){var J,L,K,M,P,I,O,Q,T,U,X,Y;Y=this;return d.__generator(this,function(W){switch(W.label){case 0:if(!this.parent)return (r.l && this.console.info(("Branch {").concat(this.K.id,"}: Not eligible for randomization - no - parent")),[2]);if(this.Zc)return (r.l && this.console.info(("Branch {").concat(this.K.id,"}: Not eligible for randomization - cancelled")),[2]);if(!this.config.lkc)return (r.l && this.console.info(("Branch {").concat(this.K.id,"}: Not eligible for randomization - live manifest throttling disabled")),[2]);J=this.H0;return [4,J.AXc()];case 1:W.T();if(!this.parent)return (r.l && this.console.info(("Branch {").concat(this.K.id,"}: Not eligible for randomization - no parent")),[2]);L=this.parent.M.Wj || this.parent.M;if(!L || !L.qp || !L.Oc)return (r.l && this.console.info(("Branch {").concat(this.K.id,"}: Not eligible for randomization - parent checks failed"),{root:L.J,qp:L.qp,Vd:!!L.Oc}),[2]);this.console.info(("Branch {").concat(this.K.id,"}: Waiting for parent normalization"));return [4,J.cya()];case 2:W.T();r.l && this.console.trace(("Branch {").concat(this.K.id,"}: Completed parent viewable"));if(!this.parent)return (r.l && this.console.info(("Branch {").concat(this.K.id,"}: Not eligible for randomization - no parent")),[2]);if(this.Zc)return (r.l && this.console.info(("Branch {").concat(this.K.id,"}: Not eligible for randomization - cancelled")),[2]);if(!this.EL)return (r.l && this.console.info(("Branch {").concat(this.K.id,"}: Live branch offset missing"),{root:L.J,qp:L.qp,Vd:!!L.Oc,EL:this.EL}),[2]);K=L.Oc;M=this.Sb.ea(this.EL);if(!M.isFinite())return [3,4];P=(0,y.cob)(M,K,this.config);I=P.VRc;O=P.YHb;Q=P.qDb;T=P.KXc;U=P.delay;X=P.tE;r.l && this.console.info(("AseBranch {").concat(this.K.id,"} ad start availability time: ").concat(I),(", window start availability time: ").concat(T),(", manifest request time: ").concat(Q),(", platform manifest request time: ").concat(O),{Ma:this.V3a.Ma.currentTime,oH:this.config.oH,QR:this.config.QR,delay:U,qDb:Q,kdd:M.ca(),Hbd:this.Sb.ca(),x$c:this.EL.ca()});return O > f.platform.time.ha()?[4,new Promise(function(Z){Y.Tra=Y.V3a.Ut(n.$d.lm(n.I.Ba(O)),Z,"liveAdManifestWindow");})]:[3,4];case 3:return (W.T(),r.l && this.console.info(("AseBranch {").concat(this.K.id,"} completed"),{Ma:this.V3a.Ma.currentTime}),[2,{iga:this.config.oH,zP:T,o2:U,HB:T + U,tE:X}]);case 4:return [2];}});});};G.prototype.normalize=function(){r.l && this.console.log(("AseBranch {").concat(this.K.id,"} normalizing"));this.Zc || (this.xd=new (this.M.Eb?C.Qha:D.Xcb)(this,this.config,this.console,this.M,this.QS,this.MF,this.Eq,this.cH.items,this.kC,this.yq,this.ie,this.events,this.gd),this.POa(this.xd.eQ),r.l && this.console.log(("AseBranch {").concat(this.K.id,"} normalizing - setting normalized branch")),this.pn.resolve(this.xd),this.events.emit("needsRequest"));};G.prototype.ifc=function(J){var L;L=this;this.cH.forEach(function(K){var M,P,I;I=null === (M=L.parent) || void 0 === M?void 0:M.uk(K.mediaType);(0,l.assert)(K.mediaType === k.u.Ca || I,"Parent state should be defined");-1 === (null === J || void 0 === J?void 0:J.indexOf(I)) && (null === (P=L.N$(K.mediaType).uk(K.mediaType)) || void 0 === P?void 0:P.Ka(),M=new m.N5(function(){var O;return null === (O=L.parent) || void 0 === O?void 0:O.uk(K.mediaType);}),L.N$(K.mediaType).XMb(M));I=void 0;});J=void 0;};G.prototype.lub=function(){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){this.Rpa?this.qqa.resolve():(this.M.events.on("onHeaderFragments",this.wXa),this.events.emit("needsRequest"));return [2,this.qqa.promise];});});};G.prototype.Ivc=function(){var J;J=this;return function(){!J.Zc && J.Rpa && (J.M.events.$l("onHeaderFragments",J.wXa),J.qqa.resolve());};};G.prototype.AM=function(){var J;null === (J=this.xd) || void 0 === J?void 0:J.AM();};G.prototype.HX=function(J){var L;return !this.Uf || (null === (L=this.xd) || void 0 === L?void 0:L.HX(J)) || !1;};G.prototype.update=function(J){var L;E.prototype.update.call(this,J);this.Wl && (null === (L=this.xd) || void 0 === L?0:L.update(J)) && this.POa(!0);};G.prototype.Mw=function(J,L){var K;void 0 === L && (L="unknown");E.prototype.Mw.call(this,J,L);null === (K=this.xd) || void 0 === K?void 0:K.Mw(J);};G.prototype.SK=function(J){return d.__awaiter(this,void 0,void 0,function(){var L,K;return d.__generator(this,function(M){switch(M.label){case 0:return [4,this.pn];case 1:return (L=M.T(),[4,null === L || void 0 === L?void 0:L.SK(J)]);case 2:return (K=M.T(),[2,K || this.hxb(J)]);}});});};G.prototype.reset=function(){var J;null === (J=this.xd) || void 0 === J?void 0:J.reset();};G.prototype.Jg=function(J){var L,K;void 0 === J && (J="other");E.prototype.Jg.call(this,J);this.$a=H.t3;if(this.Wl){K=this.M;this.M.events.$l("onHeaderFragments",this.wXa);}null === (L=this.xd) || void 0 === L?void 0:L.Jg(J);this.cH.forEach(function(M){M.cancel();M.Lp.uk(M.mediaType).Ka();});this.SB.Ka();this.Tra && (this.Tra.Ka(),this.Tra=void 0);this.sI && (this.sI.removeAllListeners(),r.l && this.console.trace("AseBranch destroying textRequestQueue:",this.sI),h.QI.instance.W8(this.sI),this.sI=void 0);this.events.emit("branchDestroyed",{type:"branchDestroyed",reason:J,M:K});this.events.removeAllListeners();};G.prototype.UP=function(J){var L;return !(null === (L=this.xd) || void 0 === L || !L.UP(J));};G.prototype.je=function(J){var L;return null === (L=this.xd) || void 0 === L?void 0:L.je(J);};G.prototype.Spa=function(J){return this.ka.some(function(L){return L.mediaType === J;});};G.prototype.pA=function(J){var L;void 0 === J && (J=B.LU);return (null === (L=this.xd) || void 0 === L?void 0:L.pA(J)) || [];};G.prototype.uk=function(J){var L;return null === (L=this.N$(J)) || void 0 === L?void 0:L.uk(J);};G.prototype.mpa=function(){var J,L;if(!this.Rpa)return this.cH.items;L=(null === (J=this.xd) || void 0 === J?void 0:J.mpa()) || [];r.l && this.console.trace("getMediaStreamables returning:",L);return L;};G.prototype.VG=function(J){var L;return (null === (L=this.xd) || void 0 === L?void 0:L.VG(J)) || this.cH.get(J);};G.prototype.en=function(J,L){var K;return (null === (K=this.xd) || void 0 === K?void 0:K.en(J,L)) || 0;};G.prototype.WQ=function(){var J;return (null === (J=this.xd) || void 0 === J?void 0:J.WQ()) || ({});};G.prototype.wZ=function(J){var L;return (null === (L=this.xd) || void 0 === L?void 0:L.wZ(J)) || this.fH.G;};G.prototype.Ny=function(J,L,K,M){return d.__awaiter(this,void 0,void 0,function(){var P,I,O,Q,T;T=this;return d.__generator(this,function(U){switch(U.label){case 0:r.l && this.console.trace("Branch.setTracks:",J);this.NW=J.sort(B.LU);this.IMb(L);if(!this.Uf)return [3,4];(0,l.assert)(this.xd);P=this.cH.filter(function(X){return X.track.sh;}).items;I=this.xd.WQb(P,L,K,M);O=I.una;Q=I.eQ;O && this.POa(Q);if(this.Rpa)return [3,4];this.qqa=new c.Jo();this.pn=new c.Jo();r.l && this.console.log(("AseBranch {").concat(this.K.id,"} setTracks waiting for headers"));return [4,this.lub()];case 1:return (U.T(),this.Zc?[2]:this.parent?[4,this.parent.CN]:[3,3]);case 2:(U.T(),U.label=3);case 3:(this.xd.WQb(this.cH.items,L,K,[]),r.l && this.console.log(("AseBranch {").concat(this.K.id,"} setTracks pipelines updated")),this.pn.resolve(this.xd),this.events.emit("needsRequest"),U.label=4);case 4:return (J.some(function(X){if(X.mediaType === k.u.Ca)return (T.ZMb(X),!0);}),this.OKb(M),[2]);}});});};G.prototype.ZMb=function(J){var L;L=this;this.Qd=J;this.sI || (this.sI=(0,q.QC)(k.u.Ca,this.M,this.config,this.console,!0,function(K){return L.QS.emit("transportReport",K);},function(K){return L.QS.emit("mediaRequestComplete",K);},function(){}),r.l && this.console.trace("AseBranch created textRequestQueue:",this.sI));this.OKb([k.u.Ca]);};G.prototype.Zec=function(){var J,L;J=this.mR(k.u.X);L=this.mR(k.u.U);this.zh=new A.q8a(this.M.bd,this.console,J,L,this.config);};G.prototype.pfc=function(J){var L,K,M,P,I,O;L=this;J=J.track.Eb?this.config.fba:this.config.Vwa;K=this.mR(k.u.X);M=this.mR(k.u.U);P=this.qNb(k.u.U);I=new m.N5(function(){var Q;return null === (Q=L.parent) || void 0 === Q?void 0:Q.uk(k.u.X);});O=new m.N5(function(){var Q;return null === (Q=L.parent) || void 0 === Q?void 0:Q.uk(k.u.U);});K && I.Z0a(K);M && O.Z0a(M);this.byc=new u.P4(J,this.config,I,O,P);};G.prototype.bgc=function(J){this.wea()?this.pfc(J):this.sfc(J);this.config.TR && void 0 === this.zh && this.Zec();};G.prototype.sfc=function(J){var L,K,M;L=this;K=J.mediaType === k.u.X?this.config.y8b:J.track.Eb?this.config.fba:this.config.Vwa;M=new m.N5(function(){var P;return null === (P=L.parent) || void 0 === P?void 0:P.uk(J.track.mediaType);});M.Z0a(J.track);K=new u.O5(K,this.config,M,this.qNb(J.mediaType));this.AOb[J.mediaType]=K;};G.prototype.IMb=function(J){var L;L=this.M.Eb?this.ka:this.ka.filter(function(K){return K.mediaType !== k.u.Ca;});this.JPc(J,L);};G.prototype.JPc=function(J,L){var K,M,P;K=this;M=this.s_a=0;L=L.map(function(I){var O;O=K.cH.find(function(Q){return Q.track === I;});O || (++K.s_a,O=new z.R9a(K,I,function(){return (null === J || void 0 === J?void 0:J.add(K.Kd)) || n.I.ia;},J || n.I.ia,K.config,K.console,K.QS,function(){0 === --K.s_a && K.events.emit("requestQueuesCreated");}),K.wea() && 0 < M || (K.bgc(O),M++));return O;});this.cH=new p.LV(L);L=this.M.oX;P=this.Nyb();P?this.M.oX=L | e.GHa.G0b:void 0 !== P && (this.M.oX=L | e.GHa.NYb);};G.prototype.nt=function(J){var L;return (null === (L=this.xd) || void 0 === L?void 0:L.nt(J)) || [];};G.prototype.UX=function(J){var L;return !(null === (L=this.xd) || void 0 === L || !L.UX(J));};G.prototype.Xoa=function(J){return this.xd?this.xd.Xoa(J):n.I.ia;};G.prototype.xxa=function(J){var L;return !(null === (L=this.xd) || void 0 === L || !L.xxa(J));};G.prototype.DU=function(J){(0,l.assert)(this.M.Eb,"updateFragmentTimes called on non-live Branch");(0,l.assert)(this.xd,"updateFragmentTimes called before Branch is normalized");(0,l.assert)(J.mediaType === k.u.X,"updateFragmentTimes called with non-audio track");this.xd.DU(J);};G.prototype.Bxb=function(){return this.xd instanceof C.Qha?this.xd.Axb():Infinity;};G.prototype.Cpa=function(){return this.xd instanceof C.Qha?this.xd.Nsc():Infinity;};G.prototype.dG=function(J){return this.t9b.dG(J);};G.prototype.POa=function(J){J={type:"branchNormalized",segmentContentStart:this.K.ib,branchContentStart:this.qa,branchContentEnd:this.ta,didNormalizeSegment:J};this.events.emit(J.type,J);r.l && this.console.trace("branchNormalized:",J);};G.prototype.mR=function(J){var L;L=this.ka.filter(function(K){return K.mediaType === J;});return 0 < L.length?L[0]:void 0;};G.prototype.jR=function(J){var L;return (null === (L=this.mR(J)) || void 0 === L?void 0:L.Ed) || [];};G.prototype.toJSON=function(){var J;return (null === (J=this.xd) || void 0 === J?void 0:J.toJSON()) || ({});};G.prototype.wea=function(){return this.config.Taa && !this.M.Eb;};Object.defineProperties(G.prototype,{naa:{get:function(){return void 0 !== this.M.hba;},enumerable:!1,configurable:!0}});Object.defineProperties(G.prototype,{qs:{get:function(){return this.K.type === g.Gd.Rc;},enumerable:!1,configurable:!0}});G.prototype.qNb=function(J){return !this.config.wkc && this.Nyb()?!1:this.qs?this.naa?this.M.qp?this.config.btb:this.config.Vjc:this.config.Wjc:!this.config.btb && this.M.Eb?!1:this.config.m9 || J === k.u.X && this.config.j9 || J === k.u.U && this.config.xG || this.config.TOa;};G.prototype.Nyb=function(){var J,L;L=(null === (J=this.jR(k.u.X)[0]) || void 0 === J?void 0:J.profile) || void 0;return L?(0,v.hAb)(L,this.config):void 0;};return G=d.__decorate([x.rZ],G);})(B.tza);b.d6a=a;(0,w.vl)(t.fz,a);},18447:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p){return Math.min(p.OL,Math.max(p.ll,p.iJc - p.SR * p.M8b));}Object.defineProperties(b,{__esModule:{value:!0}});b.Qha=void 0;b.K5c=d;n=a(22970);c=a(91176);f=a(26388);g=a(48170);e=a(32412);h=a(95324);t=a(71808);k=a(85254);l=a(98561);m=a(8149);a=(function(p){function r(){return null !== p && p.apply(this,arguments) || this;}n.__extends(r,p);r.prototype.uNa=function(q,u,v){var w,x;w=this;g.l && this.console.trace("LiveNormalizedBranch.createPipelines");x=new e.LV();q.forEach(function(y){var A;A=w.me.find(function(z){return z.track === y.track;});void 0 === A?((0,c.assert)((0,m.oo)(y.track),"live normalized branch expected live track"),A=new h.Rha(w,w.config,w.console,w.QS,w.oa,y.track,u,w.gd,y.VPb()),w.vqa(A)):A.SW();x.add(A);});this.yPb=!this.config.Vea;return this.Yzb(x,u,v);};r.prototype.vqa=function(q){var u;u=this;q.events.on("liveMissingSegment",function(v){return u.events.emit("liveMissingSegment",v) && u.vca();});p.prototype.vqa.call(this,q);};r.prototype.normalize=function(q,u){var v;null === (v=this.eB) || void 0 === v?void 0:v.Qe();this.eB=new l.Cab({console:this.console,config:this.config,M:this.M,K:this.K,me:this.me,qa:q,ta:this.K.Yb,splice:u});u=p.prototype.normalize.call(this,q,u);!this.oa.parent && this.M.Eb && this.config.hhc && q.greaterThan(c.I.Ba(this.config.DCc)) && this.Mw(c.I.Ba(this.config.ihc).ea(q));return u;};r.prototype.HX=function(q){var u;if(!this.YPa || this.K.Ua === q.Ua)return !0;u=this.me.get(f.u.U);g.l && (0,c.assert)(u,"Segment start time update should only occur for branches with video");return !!u && u.kac(q.Ua);};r.prototype.UP=function(q){return p.prototype.UP.call(this,q) && this.yPb;};r.prototype.DU=function(q){this.me.forEach(function(u){u.track === q && u.DU();});};r.prototype.Axb=function(){var q,u,v,w;u=this.M.fl(!0);v=this.yq();w=(null === (q=this.Yua) || void 0 === q?void 0:q.G) || 0;return u + w - v;};r.prototype.vqc=function(q){if(q=this.VG(q))if((q=q.Lp.uk(f.u.U).il,(q=null === q || void 0 === q?void 0:q.track) && (0,m.oo)(q)))return q;};r.prototype.Nsc=function(){var q;q=this.vqc(f.u.U);return q?d({M8b:q.Zk.G,ll:this.config.ll,iJc:this.Axb(),SR:this.config.SR,OL:this.config.OL}):Infinity;};r.prototype.MHc=function(q){var u;q === this.zu && ((0,c.assert)(q.qa,"videoPipelineStartChanged: pipeline should have content start timestamp"),g.l && this.console.log(("videoPipelineStartChanged ").concat(q.qa.ca())),q.mediaType === f.u.U && (null === (u=this.me.get(f.u.X)) || void 0 === u?void 0:u.x6b(q.qa)),this.tta(),this.oa.parent && (u=this.oa.parent.Ob,(0,c.assert)(u,"videoPipelineStartChanged: parent branch should have player end timestamp"),q=u.ea(q.qa),this.oa.Mw(q,"on pipeline start changed")));};r.prototype.LHc=function(q){var u;q === this.zu && ((0,c.assert)(q.qa,"videoPipelineEndChanged: pipeline should have content start timestamp"),(0,c.assert)(q.ta,"videoPipelineEndChanged: pipeline should have content end timestamp"),g.l && this.console.log(("videoPipelineEndChanged ").concat(q.ta.ca())),q.mediaType === f.u.U && (null === (u=this.me.get(f.u.X)) || void 0 === u?void 0:u.w6b(q.ta)),this.tta(),this.events.emit("branchEdited",{type:"branchEdited"}));};r.prototype.Sub=function(q){q === this.zu && (this.yPb=!0,this.events.emit("contentStartFinalized",{type:"contentStartFinalized"}),this.me.forEach(function(u){return u.BU();}));};r.prototype.tta=function(){var q,u;q=this.K;u=q.ib;q=q.Yb;this.K.normalize(this.qa,this.ta);this.events.emit("branchTimestampsChanged",{type:"branchTimestampsChanged",oa:this.oa,mGc:u,hGc:q});};return r;})(a(33928).bEa);b.Qha=a;(0,k.vl)(t.fz,a);},33928:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r){return (p.mediaType === e.u.U?0:1) - (r.mediaType === e.u.U?0:1);}Object.defineProperties(b,{__esModule:{value:!0}});b.bEa=b.v_b=void 0;n=a(22970);c=a(91176);f=a(91176);g=a(66164);t=a(81392);e=a(65161);h=a(52571);k=a(32412);l=a(99548);m=a(69575);b.v_b={LU:d};a=(function(p){function r(q,u,v,w,x,y,A,z,B,C,D,F,H){var E,G;G=p.call(this,w) || this;G.oa=q;G.config=u;G.M=w;G.QS=x;G.MF=y;G.kC=B;G.yq=C;G.ie=D;G.events=F;G.gd=H;G.me=new k.LV([]);G.tF=!1;G.IBb=0;G.Onb=G.UEc.bind(G);(0,h.assert)(w.J === G.K.J || isNaN(w.J) && isNaN(G.K.J));q=y.id && y.id.length?"{" + y.id + "}":"";G.console=(0,m.Df)(g.platform,v,q);G.Eq=A || G.K.ib;v=G.parent;G.aHb=null === v || void 0 === v?void 0:v.Ob;null === (E=G.ie) || void 0 === E?void 0:E.addListener(G.Onb);z=G.uNa(z,G.Eq,!!v).eQ;G.eQ=z;return G;}n.__extends(r,p);Object.defineProperties(r.prototype,{Zc:{get:function(){return this.tF;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{K:{get:function(){return this.MF;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{YPa:{get:function(){return this.me.some(function(q){return q.YPa;});},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{Ak:{get:function(){return this.me.every(function(q){return q.Ak;});},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{lk:{get:function(){return this.me.every(function(q){return q.lk;});},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{SJ:{get:function(){return this.pA().reduce(function(q,u){return q + u.SJ;},0);},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{Uf:{get:function(){return this.pA().every(function(q){return q.Uf();});},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{ka:{get:function(){return this.oa.ka;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{O:{get:function(){return this.zu.O;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{ub:{get:function(){return this.zu.ub;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{Lb:{get:function(){return this.zu.Lb;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{Hp:{get:function(){return this.Kd.Kc(this.O).$;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{fH:{get:function(){return this.Eq.add(this.Kd);},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{vw:{get:function(){return this.K.ib.add(this.Kd);},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{VS:{get:function(){return this.K.Yb.add(this.Kd);},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{qra:{get:function(){return this.me.reduce(function(q,u){return q && u.Ob?c.I.max(q,u.Ob):u.Ob?u.Ob:q;},void 0);},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{pk:{get:function(){return this.me.reduce(function(q,u){u=u.pk;return q && u?c.I.max(q,u):q || u;},void 0);},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{Xy:{get:function(){return this.zu.Xy;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{Kd:{get:function(){return this.kC;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{parent:{get:function(){return this.oa.parent;},enumerable:!1,configurable:!0}});r.prototype.WQb=function(q,u,v,w){void 0 === u && (u=this.qa || this.Eq);return this.uNa(q,u,v,w);};r.prototype.AM=function(){var q,u,v,w,x;if(this.eB){q=this.MF;u=n.__read(this.eB.AM(q,q.Yb),3);v=u[0];w=u[1];u=u[2];x=this.je(e.u.X);x && ((0,h.assert)(v,"branch.renormalize: audioLastFragment should be defined"),x.truncate(v));if(v=this.je(e.u.U))((0,h.assert)(w,"branch.renormalize: videoLastFragment should be defined"),v.truncate(w));if(w=this.je(e.u.Ca))((0,h.assert)(u,"branch.renormalize: lastTextFragment should be defined"),w.truncate(u));w=this.eB.ta;q.normalize(q.ib,w);(null === w || void 0 === w?0:w.lessThan(q.ib)) && this.console.error("NormalizedBranch.renormalize(): contentEndTimestamp is less than segment.startTimestamp",{$ad:null === w || void 0 === w?void 0:w.ca(),Lcd:q.ib.ca()});this.events.emit("branchEdited",{type:"branchEdited"});}};r.prototype.update=function(q){var u;(0,h.assert)(void 0 !== q.Ua,"segment.startTimeMs is required for normalized branch update");(0,h.assert)(void 0 !== q.fb,"segment.endTimeMs is required for normalized branch update");(0,h.assert)(void 0 !== this.K.Ua,"this.segment.startTimeMs is required for normalized branch update");(0,h.assert)(void 0 !== this.K.fb,"this.segment.endTimeMs is required for normalized branch update");(0,h.assert)(this.K.id === q.id,"segment.id must match this.segment.id");u=this.eB && (q.Ua !== this.K.Ua || q.fb !== this.K.fb);u && this.console.debug("NormalizedBranch.update() should renormalize");this.MF=q;return u?(this.AM(),!0):!1;};r.prototype.Mw=function(q){this.Kd.equal(q) || (this.console.debug("updateBranchOffset",{qta:this.kC.ca(),Psa:q.ca()}),(0,h.assert)(this.me.every(function(u){return !u.qOa;}),"Cannot adjust branch offset after attaching"),this.kC=q,this.events.emit("branchOffsetUpdated",{type:"branchOffsetUpdated",Kd:q}),this.events.emit("branchEdited",{type:"branchEdited"}));};r.prototype.SK=function(q){return n.__awaiter(this,void 0,void 0,function(){var u;return n.__generator(this,function(v){switch(v.label){case 0:return [4,Promise.resolve()];case 1:return (v.T(),(u=this.je(q))?[2,u.SK()]:[2,void 0]);}});});};r.prototype.SW=function(){this.me.forEach(function(q){return q.SW();});};r.prototype.reset=function(){this.me.forEach(function(q){q.reset();});};r.prototype.Jg=function(q){var u,v;this.tF || (this.tF=!0,null === (u=this.eB) || void 0 === u?void 0:u.Qe(),this.eB=void 0,this.me.forEach(function(w){w.Jg("aborted" === q);}),null === (v=this.ie) || void 0 === v?void 0:v.removeListener(this.Onb));};r.prototype.UP=function(){return !0;};r.prototype.je=function(q){return this.me.get(q);};r.prototype.pA=function(q){void 0 === q && (q=d);return this.me.items.slice().sort(q);};r.prototype.mpa=function(){return this.me.items;};r.prototype.VG=function(q){return this.je(q);};r.prototype.en=function(q,u){q=this.je(q);if(!q)return 0;if(u)return q.zva;u=q.m8;if(void 0 === u)return 0;q=this.yq();return u - q;};r.prototype.WQ=function(){var q,u,v,w,x,y,A;A=null === (q=this.je(e.u.X)) || void 0 === q?void 0:q.SX;q=null === (u=this.je(e.u.U)) || void 0 === u?void 0:u.SX;return {JU:null !== (v=null === q || void 0 === q?void 0:q.G) && void 0 !== v?v:0,uP:null !== (w=null === A || void 0 === A?void 0:A.G) && void 0 !== w?w:0,xN:null !== (x=null === q || void 0 === q?void 0:q.ma) && void 0 !== x?x:0,LJ:null !== (y=null === A || void 0 === A?void 0:A.ma) && void 0 !== y?y:0};};r.prototype.wZ=function(q){var u;return (q=this.je(q))?null !== (u=q.m8) && void 0 !== u?u:0:0;};r.prototype.nt=function(q){var u;return (null === (u=this.je(q)) || void 0 === u?void 0:u.nt()) || [];};r.prototype.UEc=function(q){q=q.newValue;(0,e.rs)(q) && this.vca();};r.prototype.UX=function(q){return this.me.every(function(u){return u.UX(q);});};r.prototype.Xoa=function(q){var u;return (null === (u=this.me.get(q)) || void 0 === u?void 0:u.Agc) || c.I.ia;};r.prototype.xxa=function(q){var u,v,w,x;u=this.zu.FBb;if(!u)return !1;q=(0,f.cc)(q,function(y){return u.G <= y.qa.G;});if(!q)return !1;v=q.qa;q=!1;w=n.__read((0,l.uKb)(this.config,this.me,v),3);v=w[0];x=w[1];w=w[2];x && (x=this.je(e.u.U).truncate(x),q || (q=x));v && (x=this.je(e.u.X).truncate(v),q || (q=x));w && (x=this.je(e.u.Ca).truncate(w),q || (q=x));q && (v={type:"branchEdited"},this.events.emit(v.type,v));return q;};r.prototype.uo=function(q,u){this.tF || ((0,h.assert)(!q.df),this.vca(),this.events.emit("requestComplete",{type:"requestComplete",oa:this.oa}),this.lk && this.RFc());this.MQ(q,u);};r.prototype.ND=function(q,u){this.config.gtb && this.vca(!0);this.nZ(q,u);};r.prototype.cM=function(q){this.config.gtb && this.vca(!0);this.R9(q);};r.prototype.Yzb=function(q,u,v){var w;w=0 < q.length;this.me.filter(function(x){return !q.Pyb(x);}).forEach(function(x){w=!0;x.Jg();});this.me=q;return w?this.normalize(u,v):{una:!1,eQ:!1};};r.prototype.vqa=function(q){var u;u=this;q.events.on("lastRequestIssued",function(){return u.Ak && u.events.emit("lastRequestIssued",{type:"lastRequestIssued"});});};r.prototype.normalize=function(){var q,u;(0,h.assert)(this.eB,"Must call through normalize through subclass to create pipeline normalizer");this.zu=this.me.zu;q=this.eB.normalize();u=q.una;q=q.eQ;u && this.aHb && (this.kC=this.aHb.ea(this.qa));return {una:u,eQ:q};};r.prototype.KQc=function(q){var u;return (0,e.rs)((null === (u=this.ie) || void 0 === u?void 0:u.value) || e.Rd.$p) && (!q || this.IBb + this.config.Xba < g.platform.time.ha());};r.prototype.vca=function(q){void 0 === q && (q=!1);this.KQc(q) && (this.IBb=g.platform.time.ha(),q={type:"checkBufferingProgress"},this.events.emit(q.type,q));};r.prototype.RFc=function(){var q;q={type:"branchStreamingComplete"};this.events.emit(q.type,q);};r.prototype.toJSON=function(){var q,u,v;return {segment:this.K.id,branchOffset:null === (q=this.Kd) || void 0 === q?void 0:q.G,viewableId:this.MF.J,contentStartPts:null === (u=this.qa) || void 0 === u?void 0:u.G,contentEndPts:null === (v=this.ta) || void 0 === v?void 0:v.G};};return r;})(t.KN);b.bEa=a;},20717:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.Xcb=void 0;d=a(22970);n=a(48170);c=a(32412);f=a(95052);t=a(85254);g=a(71808);e=a(72117);a=(function(h){function k(){return null !== h && h.apply(this,arguments) || this;}d.__extends(k,h);k.prototype.uNa=function(l,m,p,r){var q,u;q=this;void 0 === r && (r=[]);n.l && this.console.trace("OnDemandNormalizedBranch.createPipelines");u=new c.LV();l.forEach(function(v){var w;w=q.me.find(function(x){return x.track === v.track && !(r.some(function(y){return y === x.mediaType;}) && q.oa.OKa);});void 0 === w?(w=new f.Ycb(q,q.config,q.console,q.QS,q.oa,v.track,m,q.gd,v.VPb()),q.vqa(w)):w.SW();u.add(w);});return this.Yzb(u,m,p);};k.prototype.normalize=function(l,m){var p;null === (p=this.eB) || void 0 === p?void 0:p.Qe();this.eB=new e.Zcb({console:this.console,config:this.config,M:this.M,K:this.K,me:this.me,qa:l,ta:this.K.Yb,splice:m});return h.prototype.normalize.call(this,l,m);};k.prototype.HX=function(l){return l.Ua === this.K.Ua;};return k;})(a(33928).bEa);b.Xcb=a;(0,t.vl)(g.fz,a);},68825:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Ddb=void 0;d=a(91176);n=a(66164);c=a(48170);t=(function(){function f(g){var e;e=this;this.oa=g;this.PW=new d.jW({n7:!1});this.OW=new d.jW({n7:!1});this.sb=new n.platform.Console("PARENT-BRANCH-HELPER","asejs",g.tX);this.fCb=(0,d.rra)(function(){return e.Nzb();});}f.prototype.Dta=function(){c.l && this.sb.debug("Reparenting - resetting promises");this.Nzb();};f.prototype.Nzb=function(){var g,e;g=this;c.l && this.sb.debug("setting up promise chain");this.OW.Paa && (this.OW=new d.jW({n7:!1}),this.OW.promise.then(function(){c.l && g.sb.debug("Parent normalization complete");}));this.PW.Paa && (this.PW=new d.jW({n7:!1}),this.PW.then(function(){c.l && g.sb.debug("Parent viewable complete");}));if(this.oa.parent){c.l && this.sb.debug("Listening to parent",{id:this.oa.parent.tX,CN:!!this.oa.parent.CN,dya:!!this.oa.parent.dya});e=this.oa.parent;this.OW.TM(e.CN,!1);this.PW.TM(e.dya,!1);}else (c.l && this.sb.debug("Resolving directly, no parent branch"),this.OW.TM(Promise.resolve(),!1),this.PW.TM(Promise.resolve(),!1));};f.prototype.AXc=function(){this.fCb();return this.PW.promise;};f.prototype.cya=function(){this.fCb();return this.OW.promise;};return f;})();b.Ddb=t;},45550:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.PN=void 0;d=a(15913);n=a(52571);t=(function(){function c(f){this.config=f;this.reset();}c.instance=function(){(0,n.assert)(void 0 !== c.Fz);return c.Fz;};c.Ccc=function(f){c.Fz=new c(f);};c.prototype.push=function(f){this.ul && this.ul.push(f);};c.prototype.yb=function(){if(this.ul)return (this.ul.Zo(),this.ul.Ek([.25,.5,.75,.9,.95,.99]).map(function(f){return f?parseFloat(f.toFixed(1)):0;}));};c.prototype.reset=function(){this.config.zkc && this.config.cCa && (this.ul=new d.TDigest(this.config.cCa.c,this.config.cCa.maxc));};return c;})();b.PN=t;},78647:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v;Object.defineProperties(b,{__esModule:{value:!0}});b.l6a=void 0;b.FD=function(w){return w.ea(n.I.Ba(w.GT));};d=a(22970);t=a(90745);n=a(91176);c=a(91176);f=a(66164);g=a(8171);e=d.__importDefault(a(14282));h=a(65161);k=a(52571);l=a(98321);m=a(50247);p=a(40666);r=a(69575);q=a(29092);u=a(11758);v=a(8149);a=(function(w){function x(y,A,z,B,C,D){var F,H;H=w.call(this) || this;H.mediaType=y;H.ei=A;H.Pd=z;H.config=B;H.player=C;H.mc=D;H.eSb=!1;H.Lsb=!1;H.Iea=!1;H.console=g.Xw.eD(H.mediaType);H.error=H.console.error.bind(H.console);H.warn=H.console.warn.bind(H.console);H.trace=H.console.trace.bind(H.console);null === (F=z.events) || void 0 === F?void 0:F.addListener("ready",function(){H.append();});H.ZDb=new l.Vbb(H.config,H.mediaType,H.ei.vg,H.console);H.reset();return H;}d.__extends(x,w);Object.defineProperties(x.prototype,{endOfStream:{get:function(){return this.h6;},enumerable:!1,configurable:!0}});Object.defineProperties(x.prototype,{oTc:{get:function(){return !!this.Pd.Tkc;},enumerable:!1,configurable:!0}});x.prototype.reset=function(y){var A,z,B;null === (A=this.yFb) || void 0 === A?void 0:A.Ka();y || (this.vI=[]);this.KIa=this.$ja=this.LR=void 0;this.UJ && (this.UJ.Zc=!0,this.UJ.iterator.Zg(),this.UJ=void 0);this.iX && (this.iX.Zc=!0,this.iX.iterator.Zg(),this.iX=void 0);this.pOa=!1;this.OR=void 0;this.Iea=this.h6=!1;this.Gkb(n.I.ia);null === (B=(z=this.Pd).reset) || void 0 === B?void 0:B.call(z);this.ZDb.reset();};x.prototype.hnc=function(){this.$ja=!0;};x.prototype.d9=function(){this.Lsb=!0;this.append();};x.prototype.VM=function(y){this.eSb=y;};x.prototype.g8b=function(y){this.vI.push(y);this.append();};x.prototype.EI=function(){this.append();};x.prototype.SDc=function(y){this.config.qla && void 0 === this.KIa && this.hX(y,0);this.append();};x.prototype.cta=function(y){var A,z,B,C;A=this;void 0 === y && (y=!1);if(!this.h6 && (this.h6=!0,this.append(),y || !this.oTc))if(this.OR && this.mc && this.config.Dhc){y=n.I.Ba(this.config.eUc);y=this.OR.ea(y);C=(0,p.R2)(this.mc,y,!0);y=C.Ee;C=C.promise;null === (z=this.yFb) || void 0 === z?void 0:z.Ka();this.yFb=y;C.then(function(){var D,F;A.h6 && (null === (F=(D=A.Pd).endOfStream) || void 0 === F?void 0:F.call(D));});}else null === (B=(C=this.Pd).endOfStream) || void 0 === B?void 0:B.call(C);};x.prototype.Gkb=function(y){var A;null !== (A=this.timestampOffset) && void 0 !== A && A.equal(y) || (this.timestampOffset=y,this.Pd.$Mb(y.$,y.O));};x.prototype.append=function(){var y,A,z,B,C,D,F,H;C=this.config;if(!this.UJ && !this.iX && this.vI.length)if(this.Pd && !1 !== this.Pd.ready){D=this.vI[0];if(D.aborted)(this.warn("aborted fragment should not appear in the toAppend list:",D.toString(),"complete:",D.complete),this.Bda("@" + f.platform.time.ha() + ", append: removing aborted fragment from toAppend: " + D.toString()),this.vI.shift());else {F=D.stream;H=F.M;if(F.sh)if((D.bn && !this.Iea && (null === (A=(y=this.Pd).YNb) || void 0 === A?void 0:A.call(y,{J:F.track.M.J,pAb:F.xk}),this.Iea=!0),this.GQc(F,D.index)))(this.$ja=!1,this.hX(F,D.index));else if((y=this.player.Baa(H.J),F=this.lvc(F),y || F || !this.pOa && !C.bya))if((y=this.Ixb(D),this.mediaType === e.default.Vp.X && (D.Gi || D.OA || (null === (z=D.pa) || void 0 === z?0:z.wq)) && D.pa && !C.BT && !this.h6 && this.vI.length <= (D.Gi || D.OA?1:2) && y > C.cca && (null === (B=D.Iy) || void 0 === B || !B.iH)))this.iOc();else {this.pOa || (this.pOa=F);this.vI.shift();try{this.f7b(D);}catch(E){throw (this.console.error(E),E);}}}}else this.Bda("@" + f.platform.time.ha() + ", append: not appending, sourceBuffer not ready");};x.prototype.iOc=function(){var y;y=this;this.mc && (this.LUa?this.LUa.mo || this.LUa.cd():this.LUa=this.mc.Xr(function(){return y.eyc();},"JIT Appender"));};x.prototype.eyc=function(){var y,A,z,B;return d.__generator(this,function(C){switch(C.label){case 0:if(1 !== this.vI.length)return [3,3];y=this.vI[0];if(!y.Gi && !y.OA || (null === (B=y.Iy) || void 0 === B?0:B.iH))return [2];A=this.Ixb(y);z=this.config.cca;return A > z?[4,p.$d.bz(n.I.Ba(A - z))]:[3,2];case 1:(C.T(),C.label=2);case 2:return (this.append(),[3,0]);case 3:return [2];}});};x.prototype.Ixb=function(y){var A;return (null === (A=y.Sb) || void 0 === A?NaN:A.G) - this.player.Ld.G;};x.prototype.GQc=function(y,A){var z;z=y.Pj;(0,k.assert)(z);return 0 === z.length?this.$ja=!1:this.$ja || void 0 === this.LR || y.Sa !== this.LR.Sa?!0:1 < z.length?(0,c.Jmb)(z,function(B){return B.Te <= A;}) !== this.LR.yAb:!1;};x.prototype.lvc=function(y){if(y.mediaType === h.u.X || !y.xk)return !0;if(void 0 === this.LR)return !1;if(!y.track.WDb)return !y.xk;y=y.Pj;(0,k.assert)(y);return !1 === y[this.LR.yAb].dA;};x.prototype.hX=function(y,A){var z,B,C,D;if(!this.eSb || this.Lsb){if(y.Pj && 0 !== y.Pj.length){C=y.Pj.reduce(function(F,H,E){return H.Te <= A?E:F;},0);D=y.Pj[C];this.LR || (null === (B=(z=this.Pd).YNb) || void 0 === B?void 0:B.call(z,{J:y.track.M.J,pAb:y.xk}),this.Iea=!0);if(!this.Pd.appendBuffer(D.data,{df:!0,profile:y.profile,bitrate:y.bitrate,Sa:y.Sa}))throw (this.warn("appendHeader error: " + this.Pd.error),this.Bda("@" + f.platform.time.ha() + ", appendHeader error: " + this.Pd.error),Error("appendHeaderError"));this.Bda("@" + f.platform.time.ha() + ", header appended, streamId: " + y.Sa);this.LR={Sa:y.Sa,yAb:C};this.wMc(y.Sa,C);}this.append();}};x.prototype.f7b=function(y){var A,z,B,C,D,F;A=this;C=y.Yua || n.I.ia;D=y.stream;F=y.K;!(0,v.yk)(D) && F.Yb && !F.Yb.equal(n.I.dh) && (C=F.Yb.add(C).Zi,Infinity === this.ei.duration || this.ei.duration < C) && (this.ei.duration=C);C=void 0 !== y.Ju?n.I.Ba(y.Ju).add(y.Yua):void 0;D=null === (z=this.vI[0]) || void 0 === z?void 0:z.Sb;z={endOfStream:this.endOfStream || !(null === (B=y.Iy) || void 0 === B || !B.iH),P_:C,JWa:D};D=this.ZDb.append(y,z);B=D.rh;C=D.Dh;z=D.Cu;D=D.offset;null === C || void 0 === C?void 0:C.forEach(function(H){return A.emit(H.type,H);});this.Gkb(D);B && (y.Gi || y.OA) && y.rh();C=m.pt.qcb;B || (this.mediaType === h.u.X || this.mediaType === h.u.U?C=this.b7b(y,z):this.mediaType === h.u.Ca && (C=this.l7b(y)));switch(C){case m.pt.Tp:this.e7b(y);break;case m.pt.pia:this.KIa=y;break;case m.pt.Kn:this.uXa(y);this.KIa=y;break;case m.pt.qcb:this.jGb(y,!0);}};x.prototype.UOb=function(){var y;return f.platform.Al.vg.I_a.tGa || !(null === (y=this.ei.vg) || void 0 === y || !y.UOb);};x.prototype.b7b=function(y,A){return this.UOb()?this.c7b(y,A):this.d7b(y,A);};x.prototype.c7b=function(y,A){var z,B,C;z=this;B=(0,r.gDb)(A,y);if((A=(A || y.Cu).every(function(D,F){return z.Pd.appendBuffer(D,0 === F?B:void 0);})) && !y.oR){A=y.XRa();C={La:y,iterator:A,Zc:!1};this.UJ=C;q.AsyncIterator.$qa(A,function(D){C.Zc || (D.done?(z.UJ=void 0,z.uXa(y)):z.Pd.appendBuffer(D.value,B));});A=m.pt.pia;}else A=A?m.pt.Kn:m.pt.Tp;return A;};x.prototype.d7b=function(y,A){var z,B,C,D;z=this;B=(0,r.gDb)(A,y);A || (A=y.Cu);if(y.oR)C=(C=this.Mpb(A,B))?m.pt.Kn:m.pt.Tp;else {C=y.XRa();D={La:y,iterator:C,Zc:!1};this.UJ=D;q.AsyncIterator.$qa(C,function(F){D.Zc || (F.done?(z.Mpb(A,B),z.UJ=void 0,z.uXa(y)):A.push(F.value));});C=m.pt.pia;}return C;};x.prototype.Mpb=function(y,A){y=1 < y.length?(0,r.Zz)(y):y[0];return this.Pd.appendBuffer(y,A);};x.prototype.l7b=function(y){var A,z,B,C;A=this;(0,k.assert)(y instanceof u.Zya);z=y.Cu;if(y.oR){(0,k.assert)(z.every(function(D){return D instanceof ArrayBuffer;}));Promise.resolve().then(function(){return A.Xsb(y,z);});B=m.pt.Kn;}else {B=y.XRa();C={La:y,iterator:B,Zc:!1};this.iX=C;q.AsyncIterator.$qa(B,function(D){C.Zc || (D.done?(A.iX=void 0,(0,k.assert)(z.every(function(F){return F instanceof ArrayBuffer;})),A.Xsb(y,z)):z.push(D.value));});B=m.pt.pia;}return B;};x.prototype.Xsb=function(y,A){var z,B;A=(0,r.Zz)(A);A=new Uint8Array(A);A=f.platform.pK(A);(0,k.assert)(A);B=y.Gi && (null === (z=y.Iy) || void 0 === z?void 0:z.iH);y={d$c:!0,L:y.bi,Gb:y.qa.G,Lg:y.ta.G,By:y.stream.Fk.G,kQb:A,endOfStream:B};z=d.__assign({type:"subtitleData"},y);this.ei.events.emit(z.type,z);"function" === typeof this.Pd.k7b && this.Pd.k7b(y);};x.prototype.uXa=function(y){var A;void 0 === this.OR || this.mediaType !== e.default.Vp.X || y.Sb.equal(this.OR) || (this.OR=void 0);this.Bda("@" + f.platform.time.ha() + ", request appended, type: " + y.mediaType + ", streamId: " + y.Sa + ", pts: " + (null === (A=y.Sb) || void 0 === A?void 0:A.G) + "-" + y.Ob.G);this.jGb(y,!1);};x.prototype.jGb=function(y,A){var z,B,C;y.Gi || y.OA?(this.OR=A?y.Sb:y.Ob,null === (B=(z=this.Pd).Tkc) || void 0 === B?void 0:B.call(z,y.Iy),this.Iea=!1,(null === (C=y.Iy) || void 0 === C?0:C.iH) && this.cta()):this.OR=void 0;y.AC=!0;y.j1();this.AMc(y);this.append();};x.prototype.e7b=function(y){if(void 0 !== this.Pd.error){if("done" === this.Pd.error)return;this.error("failure to append queued mediaRequest:",null === y || void 0 === y?void 0:y.toString(),"err:",JSON.stringify(this.Pd.error));throw this.Pd.error;}y=Error("failure to append queued mediaRequest: " + (null === y || void 0 === y?void 0:y.toString()) + " err: " + this.Pd.error);this.error(y.message);throw y;};x.prototype.wMc=function(y,A){y={type:"headerAppended",mediaType:this.mediaType,streamId:y,isIndex:A};this.emit(y.type,y);};x.prototype.AMc=function(y){y={type:"requestAppended",mediaType:this.mediaType,request:y};this.emit(y.type,y);};x.prototype.Bda=function(y){y={type:"managerdebugevent",message:y};this.emit(y.type,y);};return x;})(t.EventEmitter);b.l6a=a;},58348:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.m6a=void 0;d=a(90745);n=a(66164);c=a(91176);f=a(65161);g=a(61996);e=a(52571);t=(function(){function h(k,l,m){this.sb=k;this.Bb=l;this.G2b=m;this.ox=this.jx=this.Or=0;this.hx=[];this.uJa=new Map();this.pe=new g.zm({xg:4,qj:this,source:"BufferSizeLimiter"});}Object.defineProperties(h.prototype,{ma:{get:function(){return {total:this.Or,audio:this.jx,video:this.ox};},enumerable:!1,configurable:!0}});h.prototype.ux=function(k){var l,m,p,r;l=this;if(!k.df){m={requestId:k.ZRa(),mediaType:k.mediaType,ma:k.ma,gN:n.platform.time.ha(),R:k.stream.M.R};this.hx.push(m);p=k.ma;if(0 >= p){r=new d.gf();r.on(k.events,"updatedBytes",function(q){l.ylb(k.mediaType,q.eFb - q.UXa);m.ma=q.eFb;r.clear();l.uJa.delete(k);});this.uJa.set(k,r);}else this.ylb(k.mediaType,p);}};h.prototype.Ey=function(k){var l,m;if(!k.df){l=k.ZRa();m=(0,c.Lm)(this.hx,function(p){return p.requestId === l;});-1 !== m && (this.hx.splice(m,1),m=k.ma,0 < m && (this.Or-=m,k.mediaType === f.u.X?this.jx-=m:this.ox-=m,(0,e.assert)(this.Or === this.jx + this.ox),(0,e.assert)(0 <= this.Or),(0,e.assert)(0 <= this.jx),(0,e.assert)(0 <= this.ox)),this.uJa.delete(k));}};h.prototype.pma=function(k,l){var m;(0,e.assert)(this.Or === this.jx + this.ox);m=this.G2b();if(void 0 !== m.total && this.Or + l > m.total)return (this.JPb(),!1);m=k === f.u.X?m.audio:m.video;k=k === f.u.X?this.jx:this.ox;return void 0 !== m && k + l > m?(this.JPb(),!1):!0;};h.prototype.ylb=function(k,l){this.Or+=l;k === f.u.X?this.jx+=l:this.ox+=l;(0,e.assert)(this.Or === this.jx + this.ox);(0,e.assert)(0 < this.Or);(0,e.assert)(0 <= this.jx);(0,e.assert)(0 <= this.ox);};h.prototype.JPb=function(){var k;if(this.Bb.Rjc){k=n.platform.time.ha();this.pe.j7("traceActiveRequests",{Hm:this.hx.map(function(l){return {requestId:l.requestId,ma:l.ma,R:l.R,Jdd:k - l.gN};})});}};h.prototype.Lla=function(){var k,l,m;k=0;l=0;m=0;this.hx.forEach(function(p){k+=p.ma;p.mediaType === f.u.X?l+=p.ma:m+=p.ma;});(0,e.assert)(k === l + m);(0,e.assert)(0 < k);(0,e.assert)(0 <= l);(0,e.assert)(0 <= m);(0,e.assert)(k === this.Or);(0,e.assert)(l === this.jx);(0,e.assert)(m === this.ox);};return h;})();b.m6a=t;},35779:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.Tvb=b.KQa=b.$Za=b.OLa=b.GV=void 0;d=a(22970);n=a(66164);c=a(52571);f=a(69575);t=(function(){function e(h,k,l){void 0 === l && (l={});this.config=h;this.iPa=k;this.ae=[];this.BX=new f.Vg();this.fma=new f.Vg();this.options=d.__assign({xg:10},l);}Object.defineProperties(e.prototype,{isEnabled:{get:function(){return this.config.Njc;},enumerable:!1,configurable:!0}});e.prototype.rpa=function(h,k){var l;if(!this.isEnabled)return k();l=this.Noa(h);if(l)return l.value;k=k();this.ku(h,k);return k;};e.prototype.findIndex=function(h){var k,l,m,p;k=Infinity;l=Infinity;if(this.options.rx || this.options.Dw){m=n.platform.time.ha();this.options.Dw && (k=m - this.options.Dw);this.options.rx && (l=m - this.options.rx);}for(m=0;m < this.ae.length;m++){p=this.ae[m];if(this.options.Dw && p.$aa < k){this.ae.splice(m,this.ae.length - m);break;}if(this.options.rx && p.Tm < l)(this.ae.splice(m,1),m--);else if(this.iPa(p.key,h))return m;}return -1;};e.prototype.Noa=function(h){var k;h=this.findIndex(h);if(-1 !== h){k=this.ae[h];this.ae.splice(h,1);this.ae.unshift(k);this.options.Dw && (k.$aa=n.platform.time.ha());this.fma.push(h);this.BX.push(1);return k;}this.BX.push(0);};e.prototype.ku=function(h,k){this.ae.unshift({key:h,value:k});if(this.options.Dw || this.options.rx)(h=n.platform.time.ha(),this.options.Dw && (this.ae[0].$aa=h),this.options.rx && (this.ae[0].Tm=h));this.jMa();};e.prototype.jMa=function(){this.ae.length > this.options.xg && this.ae.pop();};e.prototype.clear=function(){this.ae=[];};return e;})();b.GV=t;g=new WeakMap();b.OLa=function(e){void 0 === e && (e="default");return function(h,k,l){var m;m=l.value;l.value=function(p){var r,q,u;r=this;u=null === (q=g.get(this)) || void 0 === q?void 0:q[e];(0,c.assert)(u,"lruCache not defined");return u.rpa(p,function(){return m.call(r,p);});};};};b.$Za=function(e,h,k){g.has(e) || g.set(e,{});g.get(e)[h]=k;};b.KQa=function(e){var h;if(!g.has(e))return [];h=g.get(e);return Object.keys(h).map(function(k){return h[k];});};b.Tvb=function(e){return g.has(e)?g.get(e):{};};},68539:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.Wa=void 0;t=a(36948);b.Wa={ny:560,WA:Infinity,my:0,tu:65535,mS:-Infinity,Dba:Infinity,Mp:["ddplus-5.1-dash","ddplus-5.1hq-dash","ddplus-atmos-dash"],rI:[{profiles:["ddplus-5.1-dash","ddplus-5.1hq-dash"],override:{minInitAudioBitrate:0,maxInitAudioBitrate:65535}},{profiles:["ddplus-atmos-dash"],override:{minInitAudioBitrate:0,maxInitAudioBitrate:65535}}],lS:235,oy:3E4,zp:7800,Xba:999999,oda:1,Qfa:!0,AD:45E3,Jba:Infinity,As:2600,qsa:0,usa:0,fL:null,nU:15,J7:10,K7:!1,L7:[{m:65,b:8E3},{m:65,b:3E4},{m:50,b:6E4},{m:45,b:9E4},{m:40,b:12E4},{m:20,b:18E4},{m:5,b:24E4}],o8:20,bfa:!1,q8:0,p8:[{m:80,b:8E3},{m:80,b:3E4},{m:70,b:6E4},{m:60,b:9E4},{m:50,b:12E4},{m:30,b:18E4},{m:10,b:24E4}],eS:0,Fea:!1,gga:8E3,baa:9E4,pba:51E4,daa:3E5,rba:3E5,caa:6E5,qba:0,aaa:.5,UA:15E3,XR:15E3,tba:25E3,VA:2E4,vba:!1,gS:1,xH:1E4,x7:262144,Wfa:1048576,eZ:3,C9:1,wH:24E4,IDb:24E4,zwa:!0,r8:!1,n8:1,csa:20,Eba:12E4,lba:6E4,RH:!1,Qua:8E3,xP:!0,Pua:100,H_:300,Wra:2,Y$:4096,XY:!1,T_:1E4,Lq:!1,dsa:3,w1a:0,A7:32768,aga:65536,bqa:32768,Lnb:2E3,vv:0,Qz:3E5,U0:24E4,hua:2,Mra:200,cla:2E3,dla:8E3,g1:6E4,sQ:!0,RV:{lv:5,mx:240},Pna:!1,fna:4,ena:8E3,Lsa:2E3,Ksa:12E4,Kba:3,jfa:2E3,Nra:400,doa:!1,BT:!0,XOa:!1,ZEb:36E3,uEb:8E3,gub:10368E3,snb:5184E3,cub:86400,Mtb:!1,hqa:!1,ysa:500,xsa:131072,Sua:2E3,Rua:262144,$yb:2E3,Pmb:"optimized",fba:"livesimple",Taa:!1,ctb:("throughput-ewma throughput-sw throughput-sw-fast throughput-iqr throughput-tdigest avtp entropy").split(" "),oub:{},Jrb:"throughput-ewma",KLb:"none",YNa:{"throughput-ewma":{type:"discontiguous-ewma",mw:5E3,wt:5E3},"throughput-sw":{type:"slidingwindow",mw:5E3},"throughput-sw-fast":{type:"slidingwindow",mw:500},"throughput-iqr":{type:"iqr",mx:Infinity,mn:5,bw:15E3,iv:1E3},"throughput-iqr-history":{type:"iqr-history"},"throughput-location-history":{type:"discrete-ewma",hl:14400,"in":3600},"respconn-location-history":{type:"discrete-ewma",hl:100,"in":25},"throughput-tdigest":{type:"tdigest",maxc:25,c:.5,b:1E3,w:15E3,mn:6},"throughput-tdigest-history":{type:"tdigest-history",maxc:25,rc:"ewma",c:.5,hl:7200},"respconn-ewma":{type:"discrete-ewma",hl:10,"in":10},avtp:{type:"avtp"},entropy:{type:"entropy",mw:2E3,sw:6E4,"in":"none",mins:1,hdl:[150,230,352,539,825,1264,1936,2966,4543,6958],uhdl:[150,230,352,539,825,1264,1936,2966,4543,6958,10657,16322,25E3]}},T7:"default",Xma:!1,Zma:0,Wva:"none",Vra:"simple",sma:"throughput-ci",Awa:"default",Ntb:["throughput-wssl"],Nsa:"video_location",eWa:Infinity,wWa:5,Nca:3E5,$da:18E4,Gsa:!0,Ula:!0,Zra:Infinity,ZA:4E3,CD:4E3,Vka:!1,XSa:0,WSa:0,YSa:{numB:Infinity,bSizeMs:1E3,fillS:"last",fillHl:1E3},dca:3E3,EEb:500,Iba:30,aca:3E5,bya:!1,zoa:!1,gvb:!0,Hwa:!1,tva:!1,F_:3,wra:!0,qla:!0,Zba:2E3,nQ:!0,WC:!0,qQ:!0,pQ:!1,z1:!1,A9:[],JY:!1,Q9:[],P9:0,FI:!1,ped:!1,VJ:!1,L8:{ticks:-3268,timescale:48E3},gda:{"heaac-2-dash":{64:{ticks:-3268,timescale:48E3},96:{ticks:-3268,timescale:48E3}},"heaac-2hq-dash":{128:{ticks:-3268,timescale:48E3}},"heaac-5.1-dash":{192:{ticks:-3268,timescale:48E3}},AMP_AUDIO_PROFILE_DEFAULT:{194:{ticks:-3268,timescale:48E3}},FMP4_AAC:{194:{ticks:-3268,timescale:48E3}}},Sh:!1,Sba:!1,Nda:!1,Oda:!1,OM:"fallback",UW:!1,jw:1,kS:1,DH:1,G_:4,bca:3E3,Rea:.3,HP:7800,QY:!1,w1:[],Lca:100,Pfa:!0,MS:{enabled:!1,earlyManifestProcessing:!1},Tta:1E3,HS:"flexible",Uta:"padding",d2a:!1,mua:2E3,nua:6E3,tQ:!1,Gda:1E4,Uwa:.75,zra:0,Ona:!1,gba:!0,pra:4,xra:"strict",Cra:!0,eba:750,w_:6,Dra:Infinity,Lna:!1,Isa:1E3,Ira:!0,rQ:!0,YT:!1,uVa:!1,Fra:!0,Gra:!0,rY:1E3,dna:1E3,LY:!0,x_:3E4,Hra:1E3,qVa:!1,Qna:!0,VR:!1,yra:.05,dba:-500,Vea:!0,n2:0,o7:!1,OY:!0,oH:1E4,QR:5E3,dfa:"",n9:!0,oQ:!0,yK:!0,ll:1E4,SR:0,nCb:!0,oEb:0,zEb:0,AEb:0,cda:!0,U_:6E4,Fba:96E4,ZOa:t.eg.ZOa[1],hfa:t.eg.hfa[1],Gua:t.eg.Gua[1],MY:t.eg.MY[1],B_:t.eg.B_[1],C_:t.eg.C_[1],OL:t.eg.OL[1],p9:!1,W_:t.eg.W_[1],k2:t.eg.k2[1],xG:!1,k9:!0,KY:!1,IY:!1};},36948:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.XMa={Xba:["minCheckBufferingCompleteInterval",200],gtb:["enableMoreFrequentBufferingCompleteCheck",!1],L8:["defaultAacTimestampOffset",{ticks:-3268,timescale:48E3}],gda:["profileTimestampOffsets",{"heaac-2-dash":{64:{ticks:-3268,timescale:48E3},96:{ticks:-3268,timescale:48E3}},"heaac-2hq-dash":{128:{ticks:-3268,timescale:48E3}},"heaac-5.1-dash":{192:{ticks:-3268,timescale:48E3}}}],HS:["paddingCodecSelector","strict"],Cn:["stallAtFrameCount",void 0],$da:["saveBitrateMs",0],Nda:["requireDownloadDataAtBuffering",!1],zzb:["indicatorForDownloadDataAtBuffering","oncomplete"],Oda:["requireSetupConnectionDuringBuffering",!1],PL:["maxRequestSize",0],htb:["enableNginxRateLimit",!1],pca:["nginxSendingRate",4E4],j9:["enableCprAudio",!1],xG:["enableCprVideo",!0],btb:["enableCprLive",!1],Vjc:["enableCprDai",!1],Wjc:["enableCprSvodAd",!1],m9:["enableHybridPacing",!1],nma:["catchUpMode",!1],yBc:["maxSegHint",4],xva:["requestLevelLogging",!1],TOa:["enableConcurrentStreamingHandling",!1],wkc:["enablePacingOnSwitchableAudio",!1],Lq:["pipelineEnabled",!0],itb:["enableSCByteRangeHints",!1],gI:["segmentFadeDuration",400],AD:["maxPrebufSize",5E4],zp:["minPrebufSize",5756],cca:["minimumJustInTimeBufferLevel",3E3],t7c:["enableMissingSegmentsDetection",!0],rQ:["enableMissingSegmentsReplacement",!0],skc:["enableNextSegmentSizeFromOC",!0],Ira:["liveSwitchStreamsOnErrorInPipeline",!0],nzc:["liveEdgeRetryWindowMs",6E3],YT:["simulateLiveEdge",!1],lRc:["simulateLiveEdgeDistance",0],usa:["minVideoMediaRequestSizeBytes",0],qsa:["minAudioMediaRequestSizeBytes",0],FBc:["maxVideoMediaRequestSizeBytes",Infinity],iBc:["maxAudioMediaRequestSizeBytes",Infinity],CD:["minVideoMediaRequestDuration",0],ZA:["minAudioMediaRequestDuration",0],tsa:["minMediaRequestDuration",0],bsa:["maxMediaRequestDuration",Infinity],EBc:["maxVideoMediaRequestDuration",Infinity],hBc:["maxAudioMediaRequestDuration",Infinity],HKa:["allowFirstRequestAggregation",!1],FNc:["reuseOnErrorCacheTimeout",6E4],tBc:["maxMediaRequestSizeBytesInFraction",1],Pfa:["useExitZones",!0],yCb:["liveEndSlateMaxDuration",6E4],Vwa:["ase_stream_selector","optimized"],y8b:["audiostreamSelectorAlgorithm","selectaudioadaptive"],fba:["liveStreamSelectorAlgorithm","livesimple"],Taa:["jointStreamSelectorEnabled",!1],KNb:["smartHeaderPreDownloading",!1],T_:["minBufferLenForHeaderDownloading",1E4],n8:["connectTimeMultiplier",1],VA:[["lowestWaterMarkLevel","lowestWatermarkLevel"],3E4],vba:["lowestWaterMarkLevelBufferRelaxed",!1],oy:["minRequiredBuffer",2E4],xH:["maxTrailingBufferLen",15E3],wH:["maxMediaBufferAllowed",27E4],Awa:["simulationDurationStrategy","default"],mRc:["simulationFullBufferPercentage",1],xEb:["minSimulationDuration",2E4],esa:["maxSimulationDuration",3E5],baa:["highStreamRetentionWindow",9E4],pba:["lowStreamTransitionWindow",51E4],daa:["highStreamRetentionWindowUp",5E5],rba:["lowStreamTransitionWindowUp",1E5],caa:["highStreamRetentionWindowDown",6E5],qba:["lowStreamTransitionWindowDown",0],aaa:["highStreamInfeasibleBitrateFactor",.5],C9:["fastDownswitchFactor",3],eZ:["fastUpswitchFactor",3],Ylc:["fastUpswitchFactorWithoutHeaders",3],Xlc:["fastUpswitchFactorForNextSegment",1],r8:["considerConnectTime",!0],UA:["lowestBufForUpswitch",9E3],XR:["lockPeriodAfterDownswitch",15E3],tba:["lowWatermarkLevel",15E3],Fea:["skipBitrateInUpswitch",!1],gga:["watermarkLevelForSkipStart",8E3],GSc:["streamSelectionTrace",[{f:60,s:5},{f:61,s:3},{f:62,s:2},{f:63,s:0}]],Zsb:["enableAllHeadersPreDownloading",!1],Bkc:["enableStreamSelectionAugmentData",!1],D8b:["augmentDataNumOfChunks",30],Jad:["minFragmentVmaf",void 0],gba:["liveStreamSelectorUseLatency",!0],pra:["latencyMultiplierForLive",4],Dyc:["latencyAverageMultiplierForLive",1],kPb:["throughputDiscountForLive",.8],jPb:["throughputDiscountExponentBC",1.5],xra:["liveBufferRatioStrategy","strict"],$Tc:["throughputThresholdSelectorParam",0],tJa:["reportedFilters",[]],T7:["bufferingSelectorAlgorithm","default"],oRb:["upswitchDuringBufferingFactor",2],lmb:["allowUpswitchDuringBuffering",!1],Dra:["liveMaxUpswitchSteps",Infinity],rFb:["noRepeatedFirstSelectionLogic",!1],ohc:["defaultThroughput",1537],ny:["minInitVideoBitrate",-Infinity],WA:["maxInitVideoBitrate",Infinity],my:["minInitAudioBitrate",-Infinity],tu:["maxInitAudioBitrate",Infinity],lS:["minAcceptableVideoBitrate",-Infinity],kS:["minAcceptableVMAF",0],oCc:["minAcceptableVMAFRebufferScalingFactor",0],mS:["minAllowedVideoBitrate",-Infinity],Dba:["maxAllowedVideoBitrate",Infinity],DH:["minAllowedVmaf",-Infinity],zDb:["maxAllowedVmaf",Infinity],V_:["minRequiredAudioBuffer",0],fL:["initialBitrateSelectionCurve",null],nU:["throughputPercentForAudio",15],J7:["bandwidthMargin",0],L7:["bandwidthMarginCurve",[{m:20,b:15E3},{m:17,b:3E4},{m:10,b:6E4},{m:5,b:12E4}]],tnb:["bandwidthMarginCurveAudio",{min:.7135376,max:.85,gG:76376,scale:18862.4,gamma:3.0569}],K7:["bandwidthMarginContinuous",!1],unb:["bandwidthMarginForAudio",!0],bfa:["switchConfigBasedOnInSessionTput",!0],o8:["conservBandwidthMargin",20],q8:["conservBandwidthMarginTputThreshold",6E3],p8:["conservBandwidthMarginCurve",[{m:25,b:15E3},{m:20,b:3E4},{m:15,b:6E4},{m:10,b:12E4},{m:5,b:24E4}]],Tz:["bandwidthManifold",{curves:[{min:.05,max:.82,gG:7E4,scale:178E3,gamma:1.16},{min:0,max:.03,gG:15E4,scale:16E4,gamma:3.7}],threshold:14778,gamma:2.1,niqrcurve:{min:1,max:1,center:2,scale:2,gamma:1},filter:"throughput-sw",niqrfilter:"throughput-iqr",simpleScaling:!0}],RDb:["maxStartingVideoVMAF",110],jw:["minStartingVideoVMAF",1],UW:["activateSelectStartingVMAF",!1],cwa:["selectStartingVMAFTDigest",-1],OM:["selectStartingVMAFMethod","fallback"],bMb:["selectStartingVMAFMethodCurve",{log_p50:[6.0537,-.8612],log_p40:[5.41,-.7576],log_p20:[4.22,-.867],sigmoid_1:[11.0925,-8.0793]}],oda:["rebufferingFactor",1],g1:["rebufferCheckDuration",6E4],Qfa:["useMaxPrebufSize",!0],Nra:["lowThroughputThreshold",400],doa:["excludeSessionWithoutHistoryFromLowThroughputThreshold",!1],xkc:["enablePenaltyForLongConnectTime",!1],hua:["penaltyFactorForLongConnectTime",2],Mra:["longConnectTimeThreshold",200],cla:["additionalBufferingLongConnectTime",2E3],dla:["additionalBufferingPerFailure",8E3],As:["maxBufferingTime",2E3],w3a:["upperThroughputPredictionFactor",1.6],gS:["mediaRate",1.5],dUc:["timeAtEachBitrateRoundRobin",1E4],MNc:["roundRobinDirection","forward"],Vra:["marginPredictor","simple"],Gkc:["enableVmafEstimationFromBitrate",!1],CBc:["maxVMAFMappingBitrate",16E3],DBc:["maxVMAFMappingVMAF",110],dLa:["audioBwFactor",1],A8b:["audioSwitchConfig",{upSwitchFactor:5.02,downSwitchFactor:3.76,lowestBufForUpswitch:16E3,lockPeriodAfterDownswitch:16E3}],B8b:["audioSwitchConfigLive",{upSwitchFactor:2.5,downSwitchFactor:1.3,lowestBufForUpswitch:6E3,lockPeriodAfterDownswitch:3E4}],rI:["switchableAudioProfilesOverride",[{profiles:["ddplus-5.1-dash","ddplus-5.1hq-dash"],override:{maxInitAudioBitrate:192}},{profiles:["ddplus-atmos-dash"],override:{minInitAudioBitrate:448,maxInitAudioBitrate:448,minAudioBitrate:448}}]],Hla:["audioProfilesOverride",[{profiles:["ddplus-5.1-dash","ddplus-5.1hq-dash"],override:{maxInitAudioBitrate:256,audioBwFactor:5.02}},{profiles:["ddplus-atmos-dash"],override:{maxInitAudioBitrate:448}}]],wra:["limitAudioDiscountByMaxAudioBitrate",!1],VR:["liveSlowBufferFilling",!1],Mzc:["liveSlowBufferFillingMinBitrate",1200],Hzc:["liveResyncClockOn404Error",!0],Lna:["enableConditionalServerTimeUpdate",!0],Isa:["negligibleServerTimeDeltaDifference",1E3],Nsa:["networkMeasurementGranularity","video_location"],nBc:["maxFragsForFittableOnBranching",300],Sh:["applyProfileStreamingOffset",!0],ALb:["sanitizeMediaVideoFrameDuration",!0],Hkc:["enableWsslEstimate",!1],wBc:["maxRequestsToAttachOnBranchActivation",void 0],XOa:["enableManagerDebugTraces",!1],zwa:["simulatePartialBlocks",!0],zCb:["liveInitialFetchSizeBytes",1024],Pzc:["liveTextInitialFetchSizeBytes",40],qzc:["liveEditInitialFetchSizeBytes",4096],MS:["perFragmentVMAFConfig",{enabled:!1,earlyManifestProcessing:!1}],tCb:["liveAdjustAudioTimestamps",!1],Yma:["debugFragmentTimes",!1],Qna:["enableTwoPartLiveFragmentEditing",!0],NGc:["parseAdditionalBoxesMp4Header",!0],Ead:["minAudioMediaRequestDurationCache",0],Mad:["minVideoMediaRequestDurationCache",0],UOa:["enableForcedJsRequests",!1],GCc:["missedRequestFailureTimeout",5E3],xDb:["markRequestActiveOnFirstByte",!1],K2:["useNativeDataViewMethods",!0],Osa:["networkRequestRetryDelay",500],lDc:["networkRequestRetryMinJitter",100],kDc:["networkRequestRetryMaxJitter",2E3],Q2a:["translateToVp9Draft",!1],j_a:["reorderTrakMvex",!1],Uzb:["insertSilentFrames",0],b8c:["forceDiscontinuityAtTransition",!0],tdd:["supportAudioResetOnDiscontinuity",void 0],sdd:["supportAudioEasingOnDiscontinuity",void 0],oad:["maxWsslRequestSize",131072],nad:["maxWsslRequestRatio",.2],yra:["liveEarlyRequestProbability",.05],dba:["liveEarlyRequestDefaultOffsetMs",-500],Vea:["supportLiveIdrMismatch",!1],n2:["synthesizeLiveIdrMismatch",0],Xjc:["enableCsprNonPipelined",!1],Ujc:["enableCprAudioNonPipelined",!1],k9:["enableCprVideoNonPipelined",!1],vkc:["enablePaceReportLogging",!1],CGc:["paceRateSelectorAlgorithm","regression"],DGc:["paceRateSelectorAlgorithmAudio","default"],EGc:["paceRateSelectorAlgorithmNonPipelined","default"],jOb:["staticPacingRateKbps",0],zma:["clientPacingParams",{minRequiredBuffer:0,rateDiscountFactors:[1,1,1],lowestAllowedRateFactor:1,lowestAllowedFragmentBitrateFactors:[0,0,0]}],oVc:["unpacedFragmentInterval",0],ULc:["regressionAlgoPacingCoefficients",[{playerStates:[0,1,2],networkConfidence:[],bufferLevelPct:0,coefficients:{offset:0}},{playerStates:[],networkConfidence:[0,1,2],bufferLevelPct:0,coefficients:{offset:0}},{playerStates:[],networkConfidence:[],bufferLevelPct:0,coefficients:{maxAverageBitrate:6.4}},{playerStates:[],networkConfidence:[],bufferLevelPct:1,coefficients:{maxAverageBitrate:2.8}}]],JTc:["targetBufferLevelStddevMultiplier",1],ITc:["targetBufferLevelDurationMs",0],GGc:["pacingTargetBufferStrategy","capacityPercentage"],yCc:["minTargetBufferLevelMs",27E4],Gsa:["needMinimumNetworkConfidence",!0],Ula:["biasTowardHistoricalThroughput",!1],mzc:["liveDvrSwitchThresholdms",1E4],RH:["probeServerWhenError",!1],cda:["probeBeforeSwitchingBackToPrimary",!0],U_:["minIntervalForSwitchingBackToPrimary",6E4],Fba:["maxIntervalForSwitchingBackToPrimary",96E4],KY:["enableInitialThroughputHistory",!0],hAc:["locationSelectorPersistFailures",!0],lba:["locationStatisticsUpdateInterval",6E4],Ouc:["httpsConnectErrorAsPerm",!1],jfa:["throttledNetworkFailureThresholdMs",2E3],Kba:["maxThrottledNetworkFailures",5],Lsa:["networkFailureResetWaitMs",2E3],Eba:["maxBufferingTimeAllowedWithNetworkError",6E4],uMc:["replicateErrorDirectorInitialBuffering",!0],Ksa:["networkFailureAbandonMs",6E4],xP:["allowSwitchback",!0],H_:["maxDelayToReportFailure",300],Qua:["probeRequestTimeoutMilliseconds",3E4],Vbd:["probeRequestConnectTimeoutMilliseconds",8E3],Pua:["probeDetailDenominator",100],Zba:["minProbeIntervalMs",2E3],bca:["minStreamableConcurrencyWindow",3E3],ABc:["maxStreamableConcurrencyWindow",Infinity],Rea:["streamableConcurrencyFactor",.3],HP:["bufferingConcurrencyWindow",7800],KJb:["rebufferRiskHalfLife",1E4],JY:["enableDiscontiguousBuffering",!1],G_:["maxAllowedOutstandingRequests",4],Hra:["liveRequestSpreadMs",1E3],qVa:["liveConsiderSpreadInCushion",!1],zra:["liveEdgeCushion",0],rVa:["liveEdgeCushionWithSpreadMs",0],Ona:["enableLive504Handling",!1],Mp:["switchableAudioProfiles",[]],Jba:["maxRebufSize",Infinity],U0:["prebufferTimeLimit",6E4],x7:["audioBufferTargetAvailableSize",262144],Wfa:["videoBufferTargetAvailableSize",1048576],pyb:["graphSelectorSetAudioRate",!1],ayc:["jointStreamCreationAlgorithm","optimized"],BEb:["minimumBufferingCompleteInterval",1E4],H9b:["bufferingCompleteOnMemoryLimit",!1],Zra:["maxFastPlayBufferInMs",2E4],ADb:["maxBufferingCompleteBufferInMs",Infinity],oIc:["playgraphDefaultWeight",65520],zWa:["minimumDownstreamBranchProbability",.075],nQ:["enableCombinedPlaygraphs",!0],WC:["enableAdPlaygraphs",!0],qQ:["enableLiveAdPlaygraphs",!0],zLa:["branchCreationThreshold",12E4],s9b:["branchDistanceThreshold",6E4],hhc:["defaultBranchOffsetEnabled",!0],ihc:["defaultBranchOffsetMs",1E4],DCc:["minimumContentStartTimestampForBranchOffsetMs",864E5],wXc:["waitForDrmToAppendHeadersWhenClearAndEncryptedContent",!1],eS:["maxTotalBufferLevelPerSession",0],R6b:["allowParallelStreaming",!0],fna:["defaultHeaderCacheSize",4],ena:["defaultHeaderCacheDataPrefetchMs",0],fyc:["keepWishListOnExpiration",!0],rcd:["reuseOnErrorCacheSize",1],lDb:["manifestCacheDormantCacheEnabled",!0],HAc:["manifestCacheReuseOnErrorEnabled",!0],Fra:["livePrefetchEnabled",!1],Gra:["livePrefetchEnabledForStickySteering",!0],PIc:["prefetchWeightBudget",32],QIc:["prefetchWhilePlaying",!0],XIc:["prefetcherSoftReset",!0],LIc:["prefetchBudgetInBytes",0],mua:["pipelineHealthThresholdCriticalMs",2E3],nua:["pipelineHealthThresholdLowMs",6E3],tQ:["enableRequestAbandonment",!1],Gda:["requestAbandonmentLockIntervalMs",1E4],Uwa:["streamModeAppendAttachThreshold",.75],zQc:["shareDownloadTracks",!0],AQc:["shareOpenRangeTracks",!1],zWc:["usePipelineForAudio",!1],yWc:["usePipelineDetectionForAudio",!1],AWc:["usePipelineForBranchedAudio",!0],BWc:["usePipelineForText",!0],dsa:["maxParallelConnections",3],F_:["maxActiveRequestsPerSession",void 0],$ba:["minRequestSize",65536],w1a:["socketReceiveBufferSize",0],A7:["audioSocketReceiveBufferSize",32768],aga:["videoSocketReceiveBufferSize",65536],WTc:["textSocketReceiveBufferSize",32768],xRb:["usePipelineDetectionForVideo",!1],zCc:["minVideoSocketReceiveBufferSize",65536],bqa:["headersSocketReceiveBufferSize",32768],lic:["disableHeaderDownloadTracks",!1],d2:["streamFilteringRules",{enabled:!1,profiles:["playready-h264mpl40-dash"],action:"keepLowest"}],kzb:["ignoreUserFilterOnEmptyResult",!0],QY:["enableResolutionVMAFStreamFilter",!1],Lca:["percentCapTitlesForResolutionVMAFStreamFilter",100],w1:["resolutionVMAFCappingRuleList",[]],xWc:["useLiveBitrateDynamicCap",!0],A7b:["aseDiagnostics",[{dc:"queue-audit",enabled:!0},{dc:"task-audit",enabled:!0},{dc:"trace-ShimSession",enabled:!0},{dc:"trace-engine",enabled:!0},{dc:"trace-RequestPacer",enabled:!0},{dc:"trace-BufferStateTracker",enabled:!0},{dc:"trace-GraphStreamingProcess",enabled:!0},{dc:"trace-AsePlaygraph",enabled:!0},{dc:"playgraph-branch-audit",enabled:!0},{dc:"content-playgraph",enabled:!0},{dc:"trace-CphAsePlaygraph",enabled:!0},{dc:"trace-GraphLocation",enabled:!0},{dc:"cache-ads::gls",enabled:!0},{dc:"cache-content::gls",enabled:!0},{dc:"trace-LiveOCSideChannel",enabled:!0},{dc:"trace-media-events-provider",enabled:!0},{dc:"trace-Prefetcher",enabled:!0},{dc:"trace-AdBreakHydrator",enabled:!0}]],Pjc:["enableAseReporting",!0],YBc:["memDeadlockShouldCheckMemory",!0],XBc:["memDeadlockOverageThreshold",.9],WBc:["memDeadlockMaxUtilizationPercentage",.5],Njc:["enableAdLruCaches",!1],Uta:["paddingMediaType","padding"],Tta:["paddingDurationMs",1E3],sBc:["maxLiveDAIReplacedMismatchDurationMs",2100],PY:["enablePrerollForInitialSeek",!1],WLc:["rehydrateSkippableAdBreaks",!0],Yuc:["hydrateWaitTimeBetweenAdBreaksMs",5E3],LDb:["maxPlayerDistancePriorToAdBreakHydrationMs",6E4],A9:["excludedContentPlaygraphIds",[]],Nmb:["aseGcSettings",{segmentPresenting:!0,branchPruned:!0}],G1:["seamlessAudio",!1],qla:["appendFirstHeaderOnComplete",!0],bya:["waitForDrmToAppendMedia",!1],s7c:["enableJustInTimeAppends",!1],eUc:["timeBeforeEndOfStreamBufferMark",6E3],Dhc:["delayNotificationOfEoS",!1],rsa:["minAudioPtsGap",void 0],CCc:["minimumAudioFramesPerFragment",1],BT:["requireAudioStreamToEncompassVideo",!1],Sba:["mediaSourceSupportsNegativePts",!1],TUc:["truncateEndOfStreamAudio",!1],PTa:["insertSilentFramesOnSeek",!1],Vzb:["insertSilentFramesOnSeekForTitles",[]],e0a:["seamlessAudioMaximumSyncError",void 0],f0a:["seamlessAudioMinimumSyncError",void 0],$mb:["audioProfilesNonSyncSamples",["xheaac-dash"]],VJ:["applyProfileTimestampOffset",!1],y3a:["useDpiAssumedAacEncoderDelay",!0],Uvc:["insertSilentFramesOnSeekCount",3],Zva:["segmentFadeInDuration",-1],$va:["segmentFadeOutDuration",-1],J_:["maximumFade",{"heaac-2-dash":-44,"heaac-2hq-dash":-44,"ddplus-5.1hq-dash":-44,"ddplus-5.1-dash":-44}],z1:["retainSbrOnFade",!1],Tzb:["insertSilentFrameOnFade",!0],zoa:["forceAppendHeadersAfterDrm",!1],zmb:["appendPacingFactor",0],i7b:["appendPacingThreshold",3E3],nkc:["enableLiveRequestLogger",!1],xac:["cdndldistEnabled",!1],kIc:["playerPtsPadding",1],vEb:["minNumSessionHistory",5],xnb:["baselineHighAndStableThreshold",{bwThreshold:2E4,nethreshold:.15}],Cra:["liveLowQualityAvoidance",!0],eba:["liveLowQualityThreshold",750],w_:["liveLowQualityMultiplier",6],ECb:["liveReportSendIntervalMs",6E4],tVa:["liveReportCollectIntervalMs",5E3],sRb:["useConfigManager",!0],utc:["globalConfigMutationAllowList",{rQ:"enableMissingSegmentsReplacement",ll:"minimumPresentationDelayMs",zp:"minPrebufSize",tQ:"enableRequestAbandonment",OY:"enableMediaEventsTrack",oH:"liveAdManifestWindowMs",QR:"liveAdManifestWindowAllowanceMs",o7:"alwaysRetainAds",qQ:"enableLiveAdPlaygraphs"}],hqa:["ignoreShortResponses",!0],mNb:["shortResponseDurationMs",10],lNb:["shortResponseBytes",1E4],x2b:["expandDownloadTime",!0],DEb:["minimumResponseDurationMs",10],ysa:["minimumMeasurementTime",500],xsa:["minimumMeasurementBytes",131072],Sua:["probingMeasurementTime",2E3],Rua:["probingMeasurementBytes",262144],sSc:["stopNetworkConfidence",!0],l3b:["historicBandwidthUpdateInterval",2E3],Nwa:["stopOnAllInactiveRequests",!1],IY:["enableActiveRequestsInFilters",!0],LKb:["resetActiveRequestsAtSessionInit",!0],jtb:["enableThroughputTraceResearchData",!1],mPb:["throughputTraceParam",{numB:3600,bSizeMs:2E3,fillS:"last",fillHl:1E3}],ESb:["wsslAggregationMethod","max"],Wva:["secondThroughputEstimator","slidingwindow"],hjb:["defaultFilter","throughput-ewma"],l2b:["defaultFilterField","average"],Bkb:["secondaryFilter","throughput-sw"],Hwa:["startMonitorOnLoadStart",!1],q2b:["enableFilters",("throughput-ewma initial-throughput-ewma throughput-sw throughput-sw-fast throughput-iqr avtp entropy deliverytime").split(" ")],y2b:["experimentalFilter",["initial-throughput-ewma"]],rIa:["filterDefinitionOverrides",{"initial-throughput-ewma":{type:"initial-discontiguous-ewma",mw:1E4,playerStates:[0,1]},"throughput-ewma":{mw:4060.623425},"throughput-ewma2":{type:"discontiguous-ewma",mw:97831.788213}}],ijb:["defaultFilterDefinitions",{"throughput-ewma":{type:"discontiguous-ewma",mw:4060.623425},"throughput-ewma2":{type:"discontiguous-ewma",mw:97831.788213},"initial-throughput-ewma":{type:"initial-discontiguous-ewma",mw:1E4,playerStates:[0,1]},"throughput-sw":{type:"slidingwindow",mw:3E5},"throughput-sw-fast":{type:"slidingwindow",mw:500},"throughput-wssl":{type:"wssl",mw:5E3,max_n:20},"throughput-iqr":{type:"iqr",mx:100,mn:5,bw:15E3,iv:1E3},"throughput-iqr-history":{type:"iqr-history"},"throughput-location-history":{type:"discrete-ewma",hl:14400},"respconn-location-history":{type:"discrete-ewma",hl:100},"throughput-tdigest":{type:"tdigest",maxc:25,c:.5,b:1E3,w:15E3},"throughput-ci":{type:"ci",max_n:10,maxc:25,c:.5,lowPercentile:.1,highPercentile:.9,initialPercentile:.2,decay:!1,halfLife:5E3,maxDecay:1E9},"throughput-tdigest-history":{type:"tdigest-history",maxc:25,rc:"ewma",c:.5,hl:7200},"respconn-ewma":{type:"discrete-ewma",hl:10},avtp:{type:"avtp"},entropy:{type:"entropy",mw:2E3,sw:6E4,mins:1,hdl:[150,230,352,539,825,1264,1936,2966,4543,6958],uhdl:[150,230,352,539,825,1264,1936,2966,4543,6958,10657,16322,25E3]},deliverytime:{type:"deliverytime",hl:4E3,max_n:10,min_iv:500,min_b:16384},"deliverytime-ci":{type:"deliverytime-ci",hl:4E3,max_n:10,metric:"deliverytime",lowPercentile:.1,highPercentile:.9,initialPercentile:.2,accuracy:1E-10,maxIterations:20,min_iv:500,min_b:16384}}],B2b:["fastHistoricBandwidthExpirationTime",10368E3],R2b:["bandwidthExpirationTime",5184E3],A2b:["failureExpirationTime",86400],$jb:["minReportedNetIntrDuration",4E3],jDc:["netIntrStoreWindow",36E3],Yad:["minNetIntrDuration",8E3],aca:["minSessionHistoryDuration",3E5],Iba:["maxNumSessionHistoryStored",10],hvc:["ignorePacedRequestStrategy","none"],Eca:["pacedThresholdPct",.1],JOa:["effectivePaceRateFactor",1],H1a:["stddevPredictorMultiplier",-.3],I1a:["stddevPredictorUpperMultiplier",2],nSc:["stddevPredictorSource","deliverytime"],sma:["ciPredictorSource","throughput-ci"],Vka:["addHeaderDataToNetworkMonitor",!0],tva:["reportFailedRequestsToNetworkMonitor",!1],Zma:["ase_location_history",0],Nca:["periodicHistoryPersistMs",0],Y$:["headerRequestSize",4096],XY:["estimateHeaderSize",!0],CWc:["useSidxInfoFromManifestForHeaderRequestSize",!1],hub:["fastPlayHeaderRequestSize",0],yWa:["minTimeBetweenHeaderRequests",void 0],sQ:["enableOCSideChannel",!0],rY:["decryptOCSideChannelMinInterval",1E3],dna:["decryptOCSideChannelMinIntervalAfterCompleted",1E3],LY:["enableLiveOCSideChannelRefresh",!0],x_:["liveOCSideChannelRefreshInterval",3E4],RV:["OCSCBufferQuantizationConfig",{lv:5,mx:240}],Rna:["enableUnifiedSideChannel",!1],Q9:["forceImmediateTransitionTypeForTitles",[]],P9:["forceImmediateTransitionExitZone",0],Wra:["maxActiveRequestsSABCell100",2],j6c:["contentOverrides",void 0],k6c:["contentProfileOverrides",void 0],csa:["maxNetworkErrorsDuringBuffering",20],mBc:["maxFastPlayContentTimeThresholdMs",112E3],dca:["minimumTimeBeforeBranchDecision",2E3],BCc:["minimumAppendedMediaBeforePlayback",5E3],mBb:["jitBranchAppendingDistance",1E4],mcd:["researchEnvironmentEnabled",!1],Xma:["ase_dump_fragments",!1],RNb:["stallAtFrameCountAudio",void 0],eWa:["maxIQRSamples",100],wWa:["minIQRSamples",5],Ecd:["seamlessAudioProfiles",[]],Fcd:["seamlessAudioProfilesAndTitles",{}],ejc:["editCompleteFragments",!0],v8b:["audioOverlapGuardSampleCount",2],zkc:["enableRecordJSBridgePerf",!1],cCa:["JSBridgeTDigestConfig",{maxc:25,c:.5}],XSa:["hindsightDenominator",0],WSa:["hindsightDebugDenominator",0],n9c:["hindsightAlgorithmsEnabled",[]],YSa:["hindsightParam",{numB:Infinity,bSizeMs:1E3,fillS:"last",fillHl:1E3}],vv:["aseReportDenominator",0],Qz:["aseReportIntervalMs",3E5],WJ:["aseReportMaxStreamSelections",400],aNa:["contiguousBufferMultiplier",3],Vpb:["contiguousBufferMinimumAudio",1048576],Xpb:["contiguousBufferMinimumVideo",8388608],Wpb:["contiguousBufferMinimumText",0],FI:["useBufferSizeLimiter",!1],DWc:["useStaticBufferSizeLimiter",!1],d2a:["supportsPtsChanged",!0],wN:["usePrioritySetTimeout",!1],tob:["centralizeClockSchedulers",!0],qnb:["backOffSetTimeout",!0],cdd:["skipIntroPlaygraphEnabled",!1],n9:["enableMediaEventHistory",!0],Rjc:["enableBufferSizeLimiterTracer",!1],uVa:["liveShouldAccountForPlayDelay",!1],sed:["useManifestServerExpiration",!1],o7:["alwaysRetainAds",!1],OY:["enableMediaEventsTrack",!1],oH:["liveAdManifestWindowMs",1E4],QR:["liveAdManifestWindowAllowanceMs",5E3],kzc:["liveAdEarlyTerminationCushionMs",1E3],lzc:["liveAdManifestWindowOnset",0],lkc:["enableLiveManifestThrottling",!0],gLb:["reuseTcpConnectionsWhenStickySteered",!1],pQ:["enableLiveAdDynamicAutoskip",!0],Kzc:["liveShareTcpConnections",[[]]],Qzc:["liveUseMediaTcpForHeaders",!1],dfa:["syntheticAdBreakUx",""],ZGb:["padOcaSideChannelRequests",!0],wzc:["liveHydrationMinDistanceFromLiveEdge",3E4],eac:["canPerformHydrationsCloseToLiveEdge",!1],B$c:["liveHydrationMinDistanceFromPlayback",12E4],uzc:["liveHydrationDefaultJitterWindow",3E4],vzc:["liveHydrationDistanceThatNeedJitter",12E4],L5c:["canPerformSoftHydrations",!0],BGc:["paceHydrationPolicyByLiveEdge",!0],yK:["enableBlackBoxNotification",!0],BCb:["liveMediaEventsMinBufferMs",4E3],mad:["maxWaitTimeForMediaEventsWhileBufferingMS",5E3],zzc:["liveMediaEventsCatchupMs",3E4],bjc:["earlyFetchMediaEvents",!0],ACb:["liveMaximumEventsCatchupMs",12E4],Ojc:["enableAdPlaygraphsForBranching",!0],W6b:["alwaysSendSideChannel",!0],qhc:["defaultTimeoutForFetchRequests",8E3],bPc:["serverClockSyncOnViewableRetrievalTimeout",1E4],okc:["enableLiveWithAdsOptimalPanic",!1],c9b:["batchRequestThrottlerMaxDuration",15E3],znb:["batchRequestThrottlerSleepDuration",0],oQ:["enableLiveAdBreakReportingEvents",!0],ll:["minimumPresentationDelayMs",1E4],SR:["liveEdgeSegmentSkipCount",0],nCb:["linearEnforceSegmentAvailabilityWindowAtIssueRequest",!0],QBc:["mediaEventsMaxRetry",20],ZOa:["enablePresentationDelayControl",!1],hfa:["targetPresentationDelayToleranceMs",500],Gua:["presentationDelayQoeLockPeriodMs",6E4],MY:["enableLiveRequestPacing",!0],kkc:["enableLiveLikeRequestPacing",!1],yzc:["liveLikeRequestPacingMultiplier",1],B_:["logarithmicRequestPacingCurveCenterPositionMs",4E4],C_:["logarithmicRequestPacingCurveSharpness",8],OL:["maxLiveTargetBufferDurationMs",24E4],TR:["liveIsEllaEnabled",!1],xzc:["liveIsEllaABREnabled",!0],xD:["liveIsEllaHttpMixingEnabled",!0],rzc:["liveEllaEdgeCushion",4E3],xCb:["liveEllaProximityThresholdMs",4E3],szc:["liveEllaProximityCheckIntervalMs",500],tzc:["liveEllaTimeoutMultiplier",2],kjc:["ellaAudioThroughputPercentage",10],Bjc:["ellaThroughputBasedSelectionMargin",.4],ujc:["ellaPktLossRateThreshold",[.01,.02]],vjc:["ellaQueuingDelayThreshold",[20,50]],pjc:["ellaLockPeriodToStayMs",1E4],ojc:["ellaLockPeriodToDrainMs",1E4],qjc:["ellaMaxEncodingBitrateKbps",6500],rjc:["ellaMinEncodingBitrateKbps",800],NOa:["ellaImplementation","js"],LOa:["ellaCdnBaseUrl","https://occ.a.nflxso.net/genc/nrdp/ella"],wjc:["ellaRelayFailureRecordWindowMs",6E5],yjc:["ellaRelayMaxFailuresInWindow",15],xjc:["ellaRelayMaxConsecutiveFailures",5],ZXa:["overrideManifestForElla",!0],QGb:["overrideEllaRelayServers",[{id:2,k7:"2a00:86c0:2028:2028::166",port:7002},{id:1,k7:"::1",port:7002}]],njc:["ellaFecRate",.1],Ajc:["ellaSendRateMultiplier",[1.1,1.2,1.5]],ljc:["ellaChannelNamePrefix","/2557822/1263725932"],sjc:["ellaMovieId",82101269],p9:["enableSvodRequestPacing",!0],k2:["svodBufferGrowthRateSlope",2],W_:["minSvodTargetBufferDurationMs",6E4],Dkc:["enableSvodLogarithmicPacing",!1],wTc:["svodLogarithmicRequestPacingCurveCenterPositionMs",4E4],xTc:["svodLogarithmicRequestPacingCurveSharpness",8],zPa:["explicitVideoDownloadablesMap",{}],C6b:["adsTruncationThreshold",2500]};b.Fcc=b.XMa;b.eg=b.Fcc;},49502:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},7559:function(t,b){function a(n,c){var f;c.some(function(g){var e;e=g.profiles;(e=e && 0 <= e.indexOf(n)) && (f=g.override);return e;});return f;}function d(n,c){return !!c && c.Mp && 0 <= c.Mp.indexOf(n);}Object.defineProperties(b,{__esModule:{value:!0}});b.P4c=function(n){return n.G1;};b.bxb=function(n,c){return void 0 !== n.rsa?n.rsa:c && void 0 !== c.rsa?c.rsa:100;};b.uoc=function(n,c){n=n.profile;n=d(n,c)?a(n,c.rI):a(n,c.Hla);return {my:n && n.minInitAudioBitrate || c.my,tu:n && n.maxInitAudioBitrate || c.tu,rCc:n && n.minAudioBitrate || -Infinity,gBc:n && n.maxAudioBitrate || Infinity,oy:n && n.minRequiredAudioBuffer || c.V_};};b.hAb=d;},78541:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.QC=function(f,g,e,h,k,l,m,p){var r,q,u;d.l && h.trace("AsePlaygraph.createRequestQueue()");r=e.gLb && g.JA && g.Wj?g.Wj.R:g.R;q=g.cpc(f);d.l && h.trace(("AsePlaygraph.createRequestQueue for ").concat(g.R,"/").concat(f," (").concat(g.JA?"sticky":"non-sticky",") using ").concat(r,"/").concat(q));u=n.QI.instance.QC(q,r,!0,!1,{zK:e.zK,za:k},e);u.Qj.on(u,"networkfailing",function(){var v;d.l && h.trace("requestQueue OnNetworkFailing: ",u);u.FPa && ((0,c.assert)(u.GPa),null === (v=g.WY) || void 0 === v?void 0:v.YH(void 0,u.GPa,void 0,u.bh,u.Qg));g.nt();});u.Qj.on(u,"error",function(){p(u.bh,u.Qg);});u.on("transportreport",function(v){v.Vna=g.Iq.CK;v.S=g.S;l(v);});u.on("mediaRequestComplete",m);u.Tb();return u;};d=a(48170);n=a(42431);c=a(52571);},42431:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.QI=void 0;d=a(22970);n=a(66164);c=d.__importDefault(a(14282));f=a(65161);g=a(91772);t=(function(){function e(h){this.IO=h;this.ka=[];this.console=new n.platform.Console("ASEJS_DOWNLOAD_TRACK_POOL","asejs");}Object.defineProperties(e,{instance:{get:function(){void 0 === e.Fz && (e.Fz=new e(n.platform.P3));return e.Fz;},enumerable:!1,configurable:!0}});e.reset=function(){e.Fz=void 0;};e.prototype.QC=function(h,k,l,m,p,r){var q;q=r.zQc?this.Fmc(l,k,h,r.AQc):-1;-1 === q?(q={track:this.Yec(l,m,h,p,r),Zj:l,R:k,sJb:h,xM:[],Tm:!1,cQ:!1},this.ka.push(q),this.mLc(q),h=!1):(h=!0,q=this.ka[q]);h=new g.C5(this.console,q.track,q.Tm,h);q.xM.push(h);return h;};e.prototype.mLc=function(h){function k(){h.Tm=!0;h.track.removeListener("created",k);}h.track.on("created",k);};e.prototype.W8=function(h){var k,l;h.Xt();k=this.H9(function(m){return m.track === h.track;});if(-1 !== k){if((k=this.ka[k],1 === k.xM.length))(k.track.Xt(),k.cQ=!0);else {l=k.xM.indexOf(h);0 <= l && k.xM.splice(l,1);}}else h.track.Xt();};e.prototype.Se=function(){this.IO.Se();};e.prototype.Yec=function(h,k,l,m,p){var r,q,u,v,w,x;r=this;q=!1;u=!1;v=!1;w=m.za;h?l === f.u.U?(h=1,p.Lq?(v=!0,h=p.dsa):p.F_ && 2 < p.F_ && (v=!0,h=p.F_),h={type:this.IO.U,openRange:w?!1:!v,pipeline:v,connections:h,socketBufferSize:p.aga,minRequestSize:p.$ba}):l === f.u.X?(q=p.Lq && (p.zWc || k && p.AWc),h={type:this.IO.X,openRange:w?!1:!q,pipeline:q,connections:1,socketBufferSize:p.A7,minRequestSize:p.$ba}):l === f.u.Ca?(u=w?!1:!p.BWc,h={type:this.IO.Ca,openRange:u,pipeline:p.Lq,connections:1,socketBufferSize:p.WTc,minRequestSize:p.$ba}):h={type:p.lic?this.IO.U:this.IO.sWb,openRange:!1,pipeline:!0,connections:1,socketBufferSize:p.bqa,minRequestSize:p.$ba}:h={type:l === f.u.X?c.default.Vp.X:c.default.Vp.U,openRange:!1,pipeline:!1,connections:1,socketBufferSize:l === f.u.X?p.A7:p.aga,minRequestSize:p.$ba};x=new this.IO(h,m);x.Lq=v;x.on("transportreport",function(y){var A;A=r.H9(function(z){return z.track === x;});-1 !== A && (A=r.ka[A],A.xM.length && A.xM[0].emit("transportreport",y));});x.on("mediaRequestComplete",function(y){var A;A=r.H9(function(z){return z.track === x;});-1 !== A && (A=r.ka[A],A.xM.length && A.xM[0].emit("mediaRequestComplete",y));});x.on("destroyed",function(){var y;y=r.H9(function(A){return A.track === x;});-1 !== y && r.ka.splice(y,1);x.removeAllListeners();});x.on("pipelinedisabled",function(){x.Lq=!1;if(w)x.WZa(d.__assign(d.__assign({},x.config),{pipeline:!1,openRange:!1,connections:1}));else if(q && p.yWc || p.xRb)p.xRb && x.config.type === f.u.U?x.WZa(d.__assign(d.__assign({},x.config),{socketBufferSize:p.zCc,pipeline:!1,openRange:!0,connections:1})):x.WZa(d.__assign(d.__assign({},x.config),{pipeline:!1,openRange:!0}));});return x;};e.prototype.Fmc=function(h,k,l,m){return this.H9(function(p){return !p.cQ && (!m && p.track.config.obd || !h?!p.Zj && p.sJb === l:p.Zj && p.R === k && p.sJb === l);});};e.prototype.H9=function(h){for(var k=0;k < this.ka.length;++k)if(h(this.ka[k]))return k;return -1;};return e;})();b.QI=t;},91772:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.C5=void 0;d=a(22970);n=a(90745);t=(function(c){function f(g,e,h,k){var l;l=c.call(this) || this;l.sb=g;l.track=e;l.Tm=!1;l.eL=!1;l.Qj=new n.gf();l.Qj.on(e,"networkfailing",function(){l.emit("networkfailing");});l.Qj.on(e,"error",function(){l.sb.warn("requestQueue got error");l.emit("error");});if(h)(l.Tm=!0,Promise.resolve().then(function(){return l.emit("created");}));else l.Qj.on(e,"created",function(){l.Tm=!0;l.emit("created");});l.eL=k;return l;}d.__extends(f,c);Object.defineProperties(f.prototype,{FPa:{get:function(){return this.track.FPa;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{bh:{get:function(){return this.track.bh;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Qg:{get:function(){return this.track.Qg;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{GPa:{get:function(){return this.track.GPa;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{config:{get:function(){return this.track.config;},enumerable:!1,configurable:!0}});f.prototype.Tb=function(){var g,e;this.eL || (null === (e=(g=this.track).Tb) || void 0 === e?void 0:e.call(g),this.eL=!0);};f.prototype.toString=function(){return this.track.toString();};f.prototype.toJSON=function(){return this.track;};f.prototype.Xt=function(){this.Qj.clear();};return f;})(n.EventEmitter);b.C5=t;},42193:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.q8a=void 0;d=a(22970);n=a(26388);c=a(18690);f=a(68902);g=a(87231);e=a(67895);t=(function(){function h(k,l,m,p,r){this.console=l;this.config=r;this.KOa=!1;this.Hx=new f.v8a(k);k=this.$ec(m,p);m=this.Wfc(m,p);0 < k[n.u.X].length && 0 < k[n.u.U].length && 0 < m[n.u.X].length && 0 < m[n.u.U].length?(l.info("EllaAlgorithms: creating channel selector and relay node selector"),this.MOa=c.s8a.Nec(k,this.Hx,r),this.lQ=e.w8a.Vfc(l,m,r),this.KOa=!0):l.info("EllaAlgorithms: not creating channel selector and relay node selector due to incomplete information from manifest");}h.prototype.$ec=function(k,l){var m;m={0:[],1:[],2:[],3:[]};m[n.u.X]=this.nqb(k);m[n.u.U]=this.nqb(l);return m;};h.prototype.nqb=function(k){var l,m,p,r,v;if(void 0 === k)return [];r=[];if(this.config.ZXa && k.R === String(this.config.sjc))try{for(var q=d.__values(k.Ed),u=q.next();!u.done;u=q.next()){v=u.value;r.push(new g.LAa(v.Sa,v.bitrate,this.Pfc(v)));}}catch(z){var w;w={error:z};}finally{try{u && !u.done && (l=q.return) && l.call(q);}finally{if(w)throw w.error;}}else try{for(var x=d.__values(k.Ed),y=x.next();!y.done;y=x.next())(v=y.value,(null === (p=v.bS) || void 0 === p?0:p.Hna) && r.push(new g.LAa(v.Sa,v.bitrate,v.bS.Hna)));}catch(z){var A;A={error:z};}finally{try{y && !y.done && (m=x.return) && m.call(x);}finally{if(A)throw A.error;}}return r;};h.prototype.Pfc=function(k){var l,m,p,r,q;l=[];m=this.config.ljc;p=this.config.njc;r=k.Sa;q=this.console;this.config.Ajc.forEach(function(u){var v;v=Number((1 / u).toFixed(2));v=m + ("/").concat(k.Sa,"?dutyCycle=").concat(v,"&fec=").concat(p);l.push({ce:v,zob:Number(r),kMb:u,Tna:k.bitrate,iub:p,Rpb:!0});q.info("bitrate: " + k.bitrate + ", channel name: " + v);});return l;};h.prototype.Wfc=function(k,l){var m;m={0:[],1:[],2:[],3:[]};this.config.ZXa?(l=this.config.QGb,m[n.u.X]=l.map(function(p){return p.id;}),m[n.u.U]=l.map(function(p){return p.id;})):(k && (k=k.Tj,k.qT && (m[n.u.X]=k.qT.map(function(p){return p.id;}))),l && (k=l.Tj,k.qT && (m[n.u.U]=k.qT.map(function(p){return p.id;}))));return m;};return h;})();b.q8a=t;},63292:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.r8a=void 0;d=a(22970);t=a(66164);n=a(91176);a(65161);c=new t.platform.Console("ASEJS_ELLA_ASE_CLIENT","media|asejs");(function(g){g[g.yt=0]="STOPPED";g[g.Bl=1]="STARTING";g[g.fW=2]="STARTED";})(f || (f={}));a=(function(){function g(e,h,k,l,m,p){this.config=e;this.track=h;this.mjc=k;this.Yh=l;this.zh=m;this.pT=p;this.eo=this.Cs=this.oG=this.cp=null;this.Ud=!1;this.CL={fE:0,DD:0,KH:0,TH:0};this.state=f.yt;this.track=h;this.mediaType=this.track.mediaType;c.warn(this.mediaType,"ELLA: Constructor: ",this.config.TR);(0,n.assert)(m);(0,n.assert)(p);c.warn(this.mediaType,"using channel selector: ",this.zh.MOa.name);c.warn(this.mediaType,"first relay server is ",JSON.stringify(this.pT[0]));}g.prototype.Zxc=function(e,h){return d.__awaiter(this,void 0,void 0,function(){var k,l,m,p,r,q,u,v,w;return d.__generator(this,function(x){switch(x.label){case 0:k=this.track.M;l=k.tjc;if(!l)throw Error("Ella is not enabled for this viewable");return [4,l];case 1:return (m=x.T(),c.warn(this.mediaType,"ELLA: Joining channel",e,h),p=this,q=(r=m).join,[4,k.zjc]);case 2:return [4,q.apply(r,[x.T(),e.k7,e.port,h])];case 3:return (p.oG=x.T(),null === (u=this.oG) || void 0 === u?void 0:u.on("object",this.qXa.bind(this)),null === (v=this.oG) || void 0 === v?void 0:v.on("progress",this.$Ec.bind(this)),null === (w=this.oG) || void 0 === w?void 0:w.on("abandoned",this.pXa.bind(this)),[2]);}});});};g.prototype.pBb=function(e){return d.__awaiter(this,void 0,void 0,function(){var h,k,l,m,p,r,q,u;return d.__generator(this,function(v){switch(v.label){case 0:(h=0,k=null !== (q=null === (r=this.pT) || void 0 === r?void 0:r.length) && void 0 !== q?q:0,v.label=1);case 1:if(!(h < k))return [3,6];l=this.zh.lQ.VRa(this.mediaType);if(null === l)return (c.error(this.mediaType,"ELLA: No more valid relay servers available after",h,"attempts"),[2,null]);m=this.$rc(l);if(null === m)return (c.error(this.mediaType,"ELLA: Could not find relay server with id",l),h++,[3,1]);v.label=2;case 2:return (v.tc.push([2,4,,5]),c.warn(this.mediaType,"ELLA: Attempting to join channel",e,"on relay server",m.id,"(attempt",h + 1,"of",k,")"),[4,this.Zxc(m,e)]);case 3:return (v.T(),c.warn(this.mediaType,"ELLA: Successfully joined channel",e,"on relay server",m.id),this.$Dc(m,e,h),[2,m]);case 4:return (p=v.T(),c.error(this.mediaType,"ELLA: Failed to join channel",e,"on relay server",m.id,"Error:",(null === p || void 0 === p?void 0:p.message) || p),null === (u=this.zh) || void 0 === u?void 0:u.lQ.xMc(m.id,e),this.ZL(m,e,"fail_to_join"),h++,[3,5]);case 5:return [3,1];case 6:return (c.error(this.mediaType,"ELLA: Exhausted all relay servers. Unable to join channel",e),[2,null]);}});});};g.prototype.ZL=function(e,h,k){this.Yh.rGb && (c.trace(this.mediaType,"ELLA: Relay failure detected",e.id,h,"reason:",k),this.Yh.rGb(e.id,h,k));};g.prototype.$Dc=function(e,h,k){this.Vm && this.Vm.id === e.id || !this.Yh.dGb || (k=this.Vm || 0 !== k?0 < k?"fail_to_join":"fail_to_receive":"initial",c.trace(this.mediaType,"ELLA: Relay switch detected",e.id,h,"reason:",k),this.Yh.dGb(e.id,h,k));};g.prototype.fbc=function(e){var h,k,l,m,p;if(!this.config.xzc)return !1;m=!1;p=this.zh.lQ.VRa(this.mediaType);this.Cs=this.zh.MOa.VLb(this.mediaType,this.cp,e);if(null === p || null === this.Cs)return (this.Yh.n0 && this.Yh.n0("fail_to_receive"),m);if(p !== (null === (h=this.Vm) || void 0 === h?void 0:h.id) || (null === (k=this.Cs) || void 0 === k?void 0:k.ce) !== (null === (l=this.cp) || void 0 === l?void 0:l.ce))(c.warn(this.mediaType," need to switch to channel ",this.Cs.ce,", relay server: ",p),m=!0);return m;};g.prototype.qXa=function(e){return d.__awaiter(this,void 0,void 0,function(){var h,k,l,m,p;return d.__generator(this,function(r){switch(r.label){case 0:c.warn(("").concat(this.mediaType,", ELLA: Object complete (objectId=").concat(e.zc.Ap,", channelId=").concat(e.yob,", channelName=").concat(e.ce,")"));null === this.eo && (this.eo=e.zc.Ap,this.state !== f.fW && this.Yh.gGb && this.Yh.gGb(1,null !== (l=null === (k=this.Vm) || void 0 === k?void 0:k.id) && void 0 !== l?l:0,null !== (p=null === (m=this.cp) || void 0 === m?void 0:m.ce) && void 0 !== p?p:"",this.CL),this.state=f.fW);if(e.zc.Ap !== this.eo)return [3,2];this.mjc.qXa(e,this.oG.ce);this.Vm && this.zh && this.zh.lQ.BMc(this.Vm.id,e.ce);this.zh.Hx.jya();return [4,this.oma(!1)];case 1:return (r.T(),this.eo+=1,[3,5]);case 2:if(!(e.zc.Ap < this.eo))return [3,3];this.Yh.eGb && this.Yh.eGb(1);c.error(this.mediaType,"Duplicate segment: ",e.yob,e.ce,e.zc.Ap);return [3,5];case 3:return (h=e.zc.Ap - this.eo,c.error(this.mediaType,"Missing ",h," segments: ",e.yob,e.ce,e.zc.Ap,this.eo),this.Vm && this.zh && this.zh.lQ.n_a(this.Vm.id,e.ce,h) && this.ZL(this.Vm,e.ce,"fail_to_receive"),this.zh.Hx.jya(),[4,this.oma(!0)]);case 4:(r.T(),this.eo=e.zc.Ap + 1,this.Yh.o0 && this.Yh.o0(h),r.label=5);case 5:return [2];}});});};g.prototype.oma=function(e){return d.__awaiter(this,void 0,void 0,function(){var h,k,l,m,p,r,q,u,v,w,x,y;return d.__generator(this,function(A){switch(A.label){case 0:h=this.fbc(e);if(!h)return [3,2];k=this.Cs.Sa;l={Eac:this.Cs.ce,Tna:this.Cs.wG.bitrate};this.oG && this.oG.close();return [4,this.pBb(this.Cs.ce)];case 1:m=A.T();if(!m)return (c.error(this.mediaType,"ELLA: Failed to switch to channel",this.Cs.ce,"after trying all available relay servers"),this.Ud=!0,this.Yh.n0 && this.Yh.n0("fail_to_join"),[2]);c.warn(this.mediaType,"switched from channel: ",null === (p=this.cp) || void 0 === p?void 0:p.ce,null === (r=this.cp) || void 0 === r?void 0:r.Sa,null === (q=this.cp) || void 0 === q?void 0:q.wG.bitrate," relay server: ",this.Vm," to channel: ",null === (u=this.Cs) || void 0 === u?void 0:u.ce,null === (v=this.Cs) || void 0 === v?void 0:v.Sa,null === (w=this.Cs) || void 0 === w?void 0:w.wG.bitrate," relay server: ",m);this.Yh.xta && (c.trace(this.mediaType,"ELLA: Channel switch detected",k,l,this.CL),this.Yh.xta(k,l,this.CL));(null === (x=this.cp) || void 0 === x?void 0:x.Sa) !== (null === (y=this.Cs) || void 0 === y?void 0:y.Sa) && this.Yh.fGb(this.Cs.Sa);this.cp=this.Cs;this.Vm=m;A.label=2;case 2:return [2];}});});};g.prototype.$Ec=function(e){var h,k,l,m,p,r;c.warn(this.mediaType,"ella object progress: ",JSON.stringify(e));r=e.Gv;0 < r.bytesReceived && (r={bytesReceived:r.bytesReceived,HPb:r.fE,GPb:r.Pad,YGb:null !== (h=r.tbd) && void 0 !== h?h:0},e={ib:e.ib,Yb:e.Yb},this.zh.Hx.eLc(null !== (l=null === (k=this.Vm) || void 0 === k?void 0:k.id) && void 0 !== l?l:0,null !== (p=null === (m=this.cp) || void 0 === m?void 0:m.ce) && void 0 !== p?p:"",this.mediaType,e,r),k=this.zh.Hx.hp,this.CL={fE:k.fE,DD:k.DD,KH:k.KH,TH:k.TH},c.trace(this.mediaType,"ELLA: Network stat updated",this.CL));};g.prototype.pXa=function(e){return d.__awaiter(this,void 0,void 0,function(){var h;return d.__generator(this,function(k){switch(k.label){case 0:c.warn(this.mediaType,"ella object abandoned: ",JSON.stringify(e));this.Yh.pXa(e);if(null === this.eo)return [2];if(e.Ap !== this.eo)return [3,2];c.error(this.mediaType,"ella object ",e.Ap,e.ce," is abandoned");this.eo+=1;this.Vm && this.zh && this.zh.lQ.n_a(this.Vm.id,e.ce,1) && this.ZL(this.Vm,e.ce,"fail_to_receive");this.zh.Hx.jya();return [4,this.oma(!0)];case 1:return (k.T(),this.Yh.o0 && this.Yh.o0(1),[3,5]);case 2:if(!(e.Ap < this.eo))return [3,3];c.warn(this.mediaType,"ella object issue: abandoning a complete object, ",e.Ap,e.ce);return [3,5];case 3:return (h=e.Ap - this.eo + 1,c.error(this.mediaType,"Multiple ella objects have been lost: ",this.eo,e.Ap),this.eo=e.Ap + 1,this.Vm && this.zh && this.zh.lQ.n_a(this.Vm.id,e.ce,h) && this.ZL(this.Vm,e.ce,"fail_to_receive"),this.zh.Hx.jya(),[4,this.oma(!0)]);case 4:(k.T(),this.Yh.o0 && this.Yh.o0(h),k.label=5);case 5:return [2];}});});};g.prototype.cOb=function(){var e,h;e=this;c.warn(this.mediaType,"ELLA: Starting streaming");this.state=f.Bl;if(void 0 === this.pT || 0 === this.pT.length)c.error(this.mediaType,"ELLA: No relay servers available. Fall back to HTTP");else if((this.cp=this.zh.MOa.VLb(this.mediaType,null,!1),null === this.cp))c.error(this.mediaType,"ELLA: No valid ella channel. Fall back to HTTP");else {this.Yh.fGb(this.cp.Sa);h=this.cp.ce;(function(){return d.__awaiter(e,void 0,void 0,function(){var k,l;return d.__generator(this,function(m){switch(m.label){case 0:return [4,this.pBb(h)];case 1:return ((k=m.T())?(this.Vm=k,this.Yh.xta && (l={Eac:this.cp.ce,Tna:this.cp.wG.bitrate},c.trace(this.mediaType,"ELLA: Channel switch detected",this.cp.Sa,l,this.CL),this.Yh.xta(this.cp.Sa,l,this.CL))):(c.error(this.mediaType,"ELLA: Failed to join any relay server. Fallback to HTTP required."),this.Ud=!0,this.Yh.n0 && this.Yh.n0("fail_to_join")),[2]);}});});})().catch(function(k){c.error(e.mediaType,"ELLA: Unexpected error in startStreaming",(null === k || void 0 === k?void 0:k.message) || k);});}};g.prototype.$rc=function(e){for(var h=null,k=0;k < this.pT.length;k++)if(this.pT[k].id === e){h=this.pT[k];break;}return h;};g.prototype.Owa=function(){c.warn(this.mediaType,"ELLA: Stopping streaming");this.oG && this.oG.close();this.eo=null;this.state=f.yt;};return g;})();b.r8a=a;},18690:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.s8a=void 0;d=a(7224);b.s8a=(function(){function n(){}n.Nec=function(c,f,g){return new d.zgb(c,f,g);};return n;})();},37468:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.u8a=void 0;d=a(50468);t=a(85254);n=a(75539);c=a(24940);a=(function(){function f(g,e,h){this.r1=c.Via.jjc;d.Ho.Tb(this,g,e,h);}f.WP=function(g,e,h,k,l){h=new f(g,h,k);h.bi=k.bi;h.active=!l;h.complete=l;h.aborted=!1;h.bytesReceived=0;h.location=g.location || "";h.df=!1;h.bh=void 0;h.YC=void 0;h.Qg=void 0;h.status=0;h.state=n.kh.Kn;g=e.data;h.$ua(g.buffer.slice(g.byteOffset,g.byteLength),!0);return h;};f.prototype.abort=function(){return !1;};f.prototype.Xx=function(){return this.complete;};f.prototype.Qe=function(){};f.prototype.Ei=function(){return this.Sa;};f.prototype.ZRa=function(){return this.Sa;};f.prototype.O0a=function(g){this.listener=g;};f.prototype.dpb=function(){this.listener=void 0;};f.prototype.Cqa=function(){return this.Xx();};return f;})();b.u8a=a;(0,t.vl)(d.Ho,a,!1);},68902:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.v8a=void 0;d=a(26388);n=new (a(66164).platform.Console)("ASEJS_ELLA_NETWORK_MONITOR","media|asejs");t=(function(){function c(f){this.bd=f;this.Jna=0;this.zsa=Infinity;this.mfa=this.bytesReceived=0;this.hp={fE:0,DD:0,KH:0,TH:0};}c.prototype.eLc=function(f,g,e,h,k){var l,m;m=k.bytesReceived;n.warn(("receiveChannelInfoUpdate for ").concat(e,": relayNode=").concat(f,",\n channelName=").concat(g,", bytes=").concat(m,", packet delay=").concat(k.YGb,",\n packets received=").concat(k.HPb,", packets lost=").concat(k.GPb));e === d.u.U && (f=h.Yb - h.ib,this.bytesReceived+=m,this.mfa+=f,this.Jna=8 * this.bytesReceived / this.mfa,this.hp.DD+=Math.abs(k.GPb),this.hp.fE+=k.HPb,this.hp.KH=this.hp.DD / (this.hp.DD + this.hp.fE),k=null !== (l=k.YGb) && void 0 !== l?l:this.zsa,this.zsa=Math.min(k,this.zsa),this.hp.TH=k - this.zsa,n.warn(("ELLA Network stats updated for ").concat(e,": throughput=").concat(this.Jna.toFixed(2),"kbps, packet loss rate=").concat((100 * this.hp.KH).toFixed(2),"%, queueing delay=").concat(this.hp.TH.toFixed(2),"ms")));};c.prototype.jya=function(){this.mfa=this.bytesReceived=0;this.hp.fE=0;this.hp.DD=0;n.info("wrapUpMeasurement: Network stats",(100 * this.hp.KH).toFixed(2),this.hp.TH);};c.prototype.gl=function(){var f;f=this.bd.get().kb.Fa;return 0 !== this.Jna?this.Jna:f;};c.prototype.KZ=function(){return {requestId:"0",Sl:void 0,type:void 0,ma:void 0};};return c;})();b.v8a=t;},67895:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.w8a=void 0;d=a(56949);b.w8a=(function(){function n(){}n.Vfc=function(c,f,g){return new d.Agb(c,f,g);};return n;})();},87231:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.LAa=void 0;b.LAa=(function(){return function(a,d,n){this.Sa=a;this.bitrate=d;this.channels=n;};})();},7224:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.zgb=void 0;d=a(66164);n=a(6198);c=a(52571);f=new d.platform.Console("ASEJS_ELLA_CHANNEL_SELECTOR","media|asejs");(function(h){h[h.hJ=0]="PROBE";h[h.F5=1]="STAY";h[h.C3=2]="DRAIN";})(g || (g={}));(function(h){h[h.hia=0]="NO_CONGESTION";h[h.Xfb=1]="SOME_CONGESTION";h[h.B6a=2]="CONGESTION";})(e || (e={}));t=(function(){function h(k,l,m){var p;p=this;this.Ina=k;this.Hx=l;this.dwa="SimpleEllaChannelSelector";this.IC=g.hJ;this.Waa=-1;this.anb=m.kjc;this.ZTc=m.Bjc;this.XHb=m.ujc;this.tJb=m.vjc;this.jAc=m.pjc;this.iAc=m.ojc;this.kBc=m.qjc;this.rEb=m.rjc;k=this.Ina[n.u.U];k=k.filter(function(r){return r.bitrate <= p.kBc;});k[k.length - 1].bitrate >= this.rEb && (k=k.filter(function(r){return r.bitrate >= p.rEb;}));this.Ina[n.u.U]=k;}Object.defineProperties(h.prototype,{name:{get:function(){return this.dwa;},enumerable:!1,configurable:!0}});h.prototype.VLb=function(k,l,m){var p;if(null === this.Ina[k])return null;p=this.Ina[k];return null === l?this.WLb(k,p):k === n.u.X?l:k === n.u.U?this.KOc(k,p,l,m):null;};h.prototype.WLb=function(k,l){var m,p;m=this.gl(k);l.map(function(r){return r.bitrate;});p=l.filter(function(r){return r.bitrate < m;});l=0 === p.length?l[0]:p[p.length - 1];p={Sa:l.Sa,ce:l.channels[0].ce,wG:l};f.log(("ELLA Channel selected for ").concat(k,": ").concat(p.ce," (").concat(l.bitrate,"kbps)"));return p;};h.prototype.GVc=function(k,l){var m;m=this.Wqc();switch(this.IC){case g.hJ:this.IVc(m,k);break;case g.C3:this.HVc(m);break;case g.F5:this.JVc(m,k);break;default:f.error("Unsupported channel selection state: ",this.IC);}l && (this.IC=g.C3);f.log("updateChannelSelectionState: ",this.IC);};h.prototype.Wqc=function(){var k,l,m;k=this.Hx.hp;l=k.KH;k=k.TH;if(l < this.XHb[0] && k < this.tJb[0]){m=e.hia;-1 === this.Waa && (this.Waa=d.platform.time.ha());}else (m=l > this.XHb[1] || k > this.tJb[1]?e.B6a:e.Xfb,this.Waa=-1);f.log("network congestion level: ",m,l,k);return m;};h.prototype.HVc=function(k){var l;l=d.platform.time.ha();k === e.hia && l > this.Waa + this.iAc && (this.IC=g.F5);};h.prototype.IVc=function(k,l){this.IC=k === e.Xfb?g.F5:k === e.hia?l?g.F5:g.hJ:g.C3;};h.prototype.JVc=function(k,l){var m;m=d.platform.time.ha();k === e.hia && !l && m > this.Waa + this.jAc?this.IC=g.hJ:k === e.B6a && (this.IC=g.C3);};h.prototype.KOc=function(k,l,m,p){var r,q,u,v,w;(0,c.assert)(k === n.u.U);r=m;q=this.yub(l,m.Sa);u=q === l.length - 1;v=l[q];w=this.wmc(v.channels,m.ce);this.GVc(u,p);switch(this.IC){case g.F5:r={Sa:l[q].Sa,ce:l[q].channels[0].ce,wG:l[q]};break;case g.C3:0 < q && --q;m=this.WLb(k,l);m=this.yub(l,m.Sa);q=Math.min(q,m);p && (q=0);r={Sa:l[q].Sa,ce:l[q].channels[0].ce,wG:l[q]};break;case g.hJ:w < v.channels.length - 1?r={Sa:m.Sa,ce:v.channels[w + 1].ce,wG:v}:((0,c.assert)(!u),r={Sa:l[q + 1].Sa,ce:l[q + 1].channels[0].ce,wG:l[q + 1]});break;default:f.error("Invalid channel selection state: ",this.IC);}f.log(("ELLA Channel selection result for ").concat(k,": ").concat(r.ce," (").concat(r.wG.bitrate,"kbps)"));return r;};h.prototype.gl=function(k){var l;l=this.Hx.gl();l=k === n.u.X?this.anb / 100 * l:(100 - this.anb) / 100 * l;return l * (1 - this.ZTc);};h.prototype.yub=function(k,l){var m;for(m=0;m < k.length && k[m].Sa !== l;m++);(0,c.assert)(m < k.length);return m;};h.prototype.wmc=function(k,l){var m;for(m=0;m < k.length && k[m].ce !== l;m++);(0,c.assert)(m < k.length);return m;};return h;})();b.zgb=t;},56949:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Agb=b.Y_b=void 0;d=a(22970);n=a(66164);c=a(65161);f=(function(){function g(e,h,k,l,m){this.Ud=e;this.Ima=h;this.Hca=[];this.loa=k;this.Yra=l;this.Xra=m;this.Hca.push(n.platform.time.ha());}g.prototype.d6b=function(e){var h;this.Ima+=e;e=n.platform.time.ha();h=e - this.loa;this.Hca=this.Hca.filter(function(k){return k > h;});this.Hca.push(e);if(this.Ima >= this.Xra || this.Hca.length >= this.Yra)this.Ud=!0;};return g;})();b.Y_b=f;t=(function(){function g(e,h,k){this.console=e;this.XLc=h;this.XH=new Map();this.loa=Number(k.wjc);this.Yra=Number(k.yjc);this.Xra=Number(k.xjc);}g.prototype.VRa=function(e){var h,k,p,r;k=null;e=this.XLc[e];try{for(var l=d.__values(e),m=l.next();!m.done;m=l.next()){p=m.value;r=this.XH.get(p);if(void 0 === r || !r.Ud){k=p;break;}}}catch(u){var q;q={error:u};}finally{try{m && !m.done && (h=l.return) && h.call(l);}finally{if(q)throw q.error;}}return k;};g.prototype.n_a=function(e,h,k){var l,m;this.console.log("reportMissingSegment: ",e,h);l=!1;if(this.XH.has(e)){m=this.XH.get(e);l=m.Ud;m.d6b(k);}else (m=new f(!1,k,this.loa,this.Yra,this.Xra),this.XH.set(e,m));this.console.log("reportMissingSegment: ",e,h,m);return !l && m.Ud?!0:!1;};g.prototype.xMc=function(e,h){var k;this.console.log("reportJoinFailure: ",e,h);if(this.XH.has(e)){k=this.XH.get(e);k.Ud=!0;}else (k=new f(!0,1,this.loa,this.Yra,this.Xra),this.XH.set(e,k));this.console.log("reportJoinFailure: ",e,h,k,this.VRa(c.u.U));};g.prototype.BMc=function(e,h){this.console.log("reportSegmentReceived: ",e,h);this.XH.has(e) && (e=this.XH.get(e),e.Ima=0);};return g;})();b.Agb=t;},94810:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Zzc=function(g){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){if("js" === g.NOa)return [2,(0,n.ICb)({sLa:g.LOa,Rta:"ella-object",version:c.Eja})];if("wasm" === g.NOa)return [2,(0,n.ICb)({sLa:g.LOa,Rta:"ella-object-wasm",version:f.Eja})];throw Error(("Unknown ella implementation '").concat(g.NOa,"'. Must be 'js' or 'wasm'."));});});};d=a(22970);n=a(15410);c=a(21479);f=a(16634);},14282:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(6198);b["default"]={tZc:{iC:0,f3c:1,name:["STARTUP","STEADY"]},Vp:{X:t.u.X,U:t.u.U,Ca:t.u.Ca,name:["AUDIO","VIDEO","TEXT"]},e1c:{X:t.u.X,U:t.u.U,Ca:t.u.Ca,name:["AUDIO","VIDEO","TEXT"]},gk:{URL:0,CO:1,LOCATION:2,bJ:3,name:["URL","SERVER","LOCATION","NETWORK"]},sr:{HAVE_NOTHING:0,sV:1,rV:2,W3:3,name:["HAVE_NOTHING","HAVE_SOMETHING","HAVE_MINIMUM","HAVE_ENOUGH"]},uz:{ZYc:0,o0c:1,t2c:2,K1c:3,l2c:4,S3c:5,t0c:6,c1c:7,iC:8,Tp:9,uEa:10,n_b:11,kza:12,yXb:13,xXb:14,m0b:15,l0b:16,dbb:17,H0b:18,name:("maxweightedbw fastselection reuseprevious nextdomain onlychoice tolowgrade fromlowgrade mcqueen startup error probeswitchback probeswitchaway bitrate locswitchback locswitchaway serverswitchback serverswitchaway manifestadded switchlivedvr").split(" ")},U_c:{bJ:0,XZc:1,name:["NETWORK","DECODE"]},Z2c:{a_c:"delayedSeamless",D0c:"hideLongTransition"},mV:{$V:0,fa:1,hJ:2,name:["RETRY","FAIL","PROBE"]}};},48170:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.l=!1;},83744:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;Object.defineProperties(b,{__esModule:{value:!0}});b.G8a=void 0;d=a(22970);n=a(90745);c=d.__importStar(a(17267));f=a(66164);g=a(91176);e=new f.platform.Console("ASEJS_ERROR_DIRECTOR","asejs");h=d.__importDefault(a(14282));k=a(86429);l=a(94646);m=a(16131);p=f.platform.Al;t=(function(){function r(q,u,v,w,x,y){var U_v;U_v=2;for(;U_v !== 20;){switch(U_v){case 2:this.Vi=u;this.config=v;this.KSa=w;U_v=4;break;case 4:var g8t="1S";g8t+="I";g8t+="YbZ";g8t+="rNJCp";g8t+="9";this.XK=x;this.M1=y;this.events=new n.EventEmitter();this.Qj=new n.gf();g8t;U_v=6;break;case 6:var U55="i";U55+="ssueS";U55+="erverProbeRequest";var U2Y="n";U2Y+="etworkFail";U2Y+="ed";this.Xob=new g.A5();this.AG=q?new m.xab(v):new l.nV(v);this.Qj.addListener(this.Vi,U2Y,this.Ntc.bind(this));this.Qj.addListener(this.Vi,U55,this.Vtc.bind(this));this.cVa=f.platform.time.ha();this.qM=new k.kfb(u,x,v);U_v=20;break;}}}var W5f;W5f=2;for(;W5f !== 6;){switch(W5f){case 2:r.prototype.Ka=function(){var H56;H56=2;for(;H56 !== 5;){switch(H56){case 2:this.Qj.clear();this.qM.reset();H56=5;break;}}};r.prototype.YH=function(q,u,v,w,x){var k5L,C,D,x9R,F,H,N14,y0I,Z9M,y,A,z,B;k5L=2;for(;k5L !== 12;){switch(k5L){case 4:C=this.AG.XQa(w) || l.nV.jg;k5L=3;break;case 7:u=function(G){var b19,J,L,K,d6X,M,P;b19=2;for(;b19 !== 7;){switch(b19){case 2:(J=G.urls,L=G.url,K=G.dd);b19=1;break;case 1:d6X=D.AG.BM(w,K);b19=d6X === h.default.mV.fa?5:9;break;case 4:J.some(function(I){var M2w;M2w=2;for(;M2w !== 5;){switch(M2w){case 2:B.YH(M,P,I.url);return M === h.default.gk.CO;break;}}});b19=3;break;case 3:var J51="er";J51+="r";J51+="o";J51+="r";!D.M1 || 0 !== v && void 0 !== v || D.M1(J51,L);b19=7;break;case 9:b19=d6X === h.default.mV.hJ?8:3;break;case 8:D.qM.KJc(G,{fmb:K,Efa:C,wk:v,bh:w,dub:z,Qg:x});b19=3;break;case 5:(M=C[0],P=C[1]);b19=4;break;}}};D=this;try{x9R=2;for(;x9R !== 3;){switch(x9R){case 14:H=F.next();x9R=9;break;case 5:u(H.value);x9R=4;break;case 4:H=F.next();x9R=1;break;case 1:x9R=!H.done?5:3;break;case 2:(F=d.__values(q),H=F.next());x9R=1;break;}}}catch(G){var E;E={error:G};}finally{N14=2;for(;N14 !== 1;){switch(N14){case 2:try{y0I=2;for(;y0I !== 1;){switch(y0I){case 2:H && !H.done && (y=F.return) && y.call(F);y0I=1;break;}}}finally{Z9M=2;for(;Z9M !== 5;){switch(Z9M){case 2:Z9M=E?1:5;break;case 3:Z9M=E?8:7;break;case 1:throw E.error;Z9M=5;break;}}}N14=1;break;}}}k5L=12;break;case 2:var Q2Y=" ";Q2Y+="on";Q2Y+=" ";var y8n=" ";y8n+="w";y8n+="i";y8n+="th";y8n+=" ";var v56=" ";v56+="o";v56+="n";v56+=" ";var x$j="Fail";x$j+="u";x$j+="r";x$j+="e ";(A=p.RE.name,z=w?A[w]:void 0,B=this.Vi);e.warn(x$j.concat(z,v56).concat(null === q || void 0 === q?void 0:q.url,y8n).concat(v,Q2Y).concat(JSON.stringify(q?q:u)));k5L=5;break;case 9:var U4g="crit";U4g+="ica";U4g+="lN";U4g+="etworkErr";U4g+="or";var B26="cr";B26+="iticalNetwo";B26+="rkErro";B26+="r";var I85="requ";I85+="estErro";I85+="r";var G0L="re";G0L+="que";G0L+="stError";k5L=(this.yL={wk:v,bh:w,dub:z,Qg:x},this.events.emit(G0L,{type:I85,wk:v,errorCode:w,Qg:x}),w && this.AG.zwc(w) && this.events.emit(B26,{type:U4g,bh:w}),q=this.sDb(q,u),void 0 === q)?8:7;break;case 5:k5L=w && c.isArray(this.AG.XQa(w))?4:13;break;case 13:var E7Y="Unmapped failure code";E7Y+=" ";E7Y+="in JSASE error director ";E7Y+=": ";e.error(E7Y.concat(w));k5L=12;break;case 3:k5L=C !== l.nV.eqa?9:12;break;case 8:var k_C="Invalid";k_C+=" affected for netwo";k_C+="rk f";k_C+="ailu";k_C+="re";e.error(k_C);k5L=12;break;}}};r.prototype.Ntc=function(q){var d$s,u,v,w,x,y,A,z;d$s=2;for(;d$s !== 8;){switch(d$s){case 3:var L_9="temporaryNetworkErr";L_9+="o";L_9+="r";var F1M="tempor";F1M+="ar";F1M+="yNetwor";F1M+="kError";v || this.events.emit(F1M,{type:L_9,errorCode:y,wk:A,Qg:z});v?(this.v1 && (clearTimeout(this.v1),this.v1=void 0),this.qM.reset(),this.KSa({Sqa:v,iGc:y,kGc:A,lGc:z,Ab:q.dd})):this.v1 || (this.v1=setTimeout(function(){var f1Y;f1Y=2;for(;f1Y !== 5;){switch(f1Y){case 2:u.v1=void 0;u.t1();f1Y=5;break;}}},x.Lsa));d$s=8;break;case 2:var f5j=" ms";f5j+=" ";f5j+="a";f5j+="go";var H2U=" l";H2U+="ast succe";H2U+="ss was ";var o0w="t";o0w+="emporari";o0w+="l";o0w+="y";var g0r="pe";g0r+="r";g0r+="manent";g0r+="ly";var f55="Netw";f55+="ork ha";f55+="s f";f55+="ailed ";(u=this,v=q.Sqa,w=f.platform.time.ha() - this.cVa,x=this.config);e.warn(f55.concat(v?g0r:o0w,H2U).concat(w,f5j));d$s=5;break;case 4:(y=this.yL.bh,A=this.yL.wk,z=this.yL.Qg);d$s=3;break;case 5:d$s=this.yL?4:3;break;}}};r.prototype.Vtc=function(q){var O11,u,v,w,x;O11=2;for(;O11 !== 9;){switch(O11){case 1:O11=q.url?5:9;break;case 2:(v=q.Ab,w=q.stream);O11=1;break;case 5:x=q.url.url;q={url:x,dd:v.id,Ab:v,stream:w,urls:v.urls,L:this.Gyc,QIb:!0};(w=null === (u=w.u7) || void 0 === u?void 0:u.JZ(q.L,x)) && this.qM.wNa(w,q,v.id);O11=9;break;case 6:O11=q.url?0:4;break;}}};r.prototype.t1=function(){var g1z,q;g1z=2;for(;g1z !== 5;){switch(g1z){case 2:q=this;this.Xob.pla || this.Xob.wSb(function(){var I3X;I3X=2;for(;I3X !== 1;){switch(I3X){case 2:q.v1 || (q.Vi.t1(),q.AG.t1(),q.XK());I3X=1;break;}}});g1z=5;break;}}};r.prototype.uN=function(q){var P2Y,u,v;P2Y=2;for(;P2Y !== 9;){switch(P2Y){case 2:(u=this,v=this.config);this.cVa=Math.max(q.mj || f.platform.time.ha(),this.cVa);v.RH && this.qM.uN(q);(q=this.sDb(q)) && 0 < q.length && q.forEach(function(w){var n3H;n3H=2;for(;n3H !== 5;){switch(n3H){case 2:u.AG.uN(w.dd);u.Vi.uN(w.dd);n3H=5;break;}}});P2Y=3;break;case 3:var m$u="updatingLastSucc";m$u+="ess";m$u+="E";m$u+="vent";var c_A="updatingL";c_A+="ast";c_A+="Succes";c_A+="sE";c_A+="vent";this.events.emit(c_A,{type:m$u});P2Y=9;break;}}};r.prototype.sDb=function(q,u){var F54,w,x,v;F54=2;for(;F54 !== 7;){switch(F54){case 5:w=v.dRa(q.stream);this.Gyc=q.bi;F54=3;break;case 3:x=v.ypa(q.stream).map(function(y){var m_9;m_9=2;for(;m_9 !== 1;){switch(m_9){case 2:return {url:q.url,dd:y.id,Ab:y,stream:w,urls:y.urls,L:q.bi};break;}}});F54=9;break;case 2:v=this.Vi;F54=1;break;case 8:u && (x=v.fPc(u.host,u.port).map(function(y){var j86;j86=2;for(;j86 !== 1;){switch(j86){case 2:return {url:v.JZ(y.url.url,y.url.stream.u7),dd:y.Ab.id,Ab:y.Ab,stream:y.url.stream,urls:y.Ab.urls};break;}}}).filter(function(y){var C$5;C$5=2;for(;C$5 !== 1;){switch(C$5){case 2:return "" !== y.url;break;}}}));F54=9;break;case 9:return x;break;case 1:F54=q?5:8;break;}}};W5f=7;break;case 7:return r;break;}}})();b.G8a=t;},94646:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.nV=void 0;t=a(22970);d=a(66164);n=t.__importDefault(a(14282));c=d.platform.Al.RE;new d.platform.Console("ASEJS_ERROR_MAP","asejs");a=(function(){function f(g){var e,h;this.config=g;this.AG=(e={},e[c.HYc]=f.jg,e[c.UNKNOWN_ERROR]=f.jg,e[c.N1c]=f.jg,e[c.fVb]=f.jg,e[c.r7a]=f.jg,e[c.rVb]=f.jg,e[c.jVb]=f.iI,e[c.uUb]=f.iI,e[c.E6a]=f.Ts,e[c.C6a]=f.Ts,e[c.vUb]=f.eqa,e[c.wUb]=f.Ts,e[c.xUb]=f.Ts,e[c.rUb]=f.jg,e[c.tUb]=f.jg,e[c.D6a]=f.cFb,e[c.sUb]=f.jg,e[c.qUb]=f.Ts,e[c.HZc]=f.iI,e[c.yWb]=f.Ts,e[c.I9a]=f.Ts,e[c.H9a]=f.Ts,e[c.wWb]=this.config.Ouc?f.iI:f.Ts,e[c.DBa]=f.Ts,e[c.xWb]=f.x3a,e[c.EBa]=f.iI,e[c.zha]=f.x3a,e[c.FBa]=f.bFb,e[c.L9a]=f.bFb,e[c.H4]=f.iI,e[c.AWb]=f.x3a,e[c.Aha]=f.Ts,e[c.J9a]=f.iI,e[c.zWb]=f.iI,e[c.mVb]=f.iI,e[c.gVb]=f.jg,e[c.v0b]=f.jg,e[c.XUb]=f.jg,e[c.YUb]=f.jg,e[c.ZUb]=f.jg,e[c.$Ub]=f.jg,e[c.aVb]=f.jg,e[c.bVb]=f.jg,e[c.cVb]=f.jg,e[c.dVb]=f.jg,e[c.eVb]=f.jg,e[c.hVb]=f.jg,e[c.iVb]=f.jg,e[c.kVb]=f.jg,e[c.lVb]=f.jg,e[c.nVb]=f.jg,e[c.oVb]=f.jg,e[c.pVb]=f.jg,e[c.qVb]=f.jg,e[c.sVb]=f.jg,e[c.tVb]=f.jg,e[c.u0b]=f.Ts,e[c.TIMEOUT]=f.cFb,e);this.xgc=(h={},h[c.E6a]=!0,h[c.I9a]=!0,h[c.H9a]=!0,h[c.DBa]=!0,h[c.r7a]=!0,h);this.jxa={};this.x0a={};}f.prototype.XQa=function(g){return this.AG[g];};f.prototype.zwc=function(g){return !!this.xgc[g];};f.prototype.BM=function(g,e){var h,k;h=this.config;k=this.XQa(g) || f.jg;this.x0a[e]=k;return h.RH && g !== c.H4?k === f.jg || k === f.Ts?n.default.mV.hJ:n.default.mV.fa:k !== f.Ts || this.CMc(e)?n.default.mV.fa:n.default.mV.$V;};f.prototype.uN=function(g){delete this.jxa[g];delete this.x0a[g];};f.prototype.t1=function(){this.jxa={};this.x0a={};};f.prototype.CMc=function(g){var e,h,k;e=d.platform.time.ha();h=this.config;k=this.jxa[g];if(k){if(!(k.Md >= e - h.jfa || k.ZH || (k.Md=e,++k.count,k.count < h.Kba)))return k.ZH=!0;}else this.jxa[g]={Md:e,count:1};};f.cFb=[n.default.gk.bJ,!1];f.bFb=[n.default.gk.bJ,!0];f.jg=[n.default.gk.CO,!1];f.iI=[n.default.gk.CO,!0];f.x3a=[n.default.gk.URL,!0];f.eqa=[-1,!1];f.Ts=[n.default.gk.CO,!1];return f;})();b.nV=a;},16131:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.xab=void 0;d=a(22970);t=a(66164);n=a(94646);c=t.platform.Al.RE;a=(function(f){function g(e){var h;h=f.call(this,e) || this;h.config=e;h.AG[c.H4]=n.nV.Ts;return h;}d.__extends(g,f);return g;})(n.nV);b.xab=a;},72681:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.p5a=void 0;d=a(22970);t=a(66164);n=a(90745);c=t.platform.vm;a=(function(f){function g(e){var h;h=f.call(this) || this;h.qM=e;h.bka=e.groupId;h.Qj=new n.gf();h.Qj.on(h,c.pm.r5,h.LD);h.Qj.on(h,c.pm.gJ,h.xca);return h;}d.__extends(g,f);g.prototype.aGc=function(e,h,k){c.prototype.open.call(this,e,h,k);};g.prototype.GPc=function(e){this.bka=e;};Object.defineProperties(g.prototype,{groupId:{get:function(){return this.bka;},enumerable:!1,configurable:!0}});g.prototype.Qe=function(){this.Qj && this.Qj.clear();c.prototype.Qe.call(this);};g.prototype.LD=function(e){this.qM.LJc(e.probed,e.affected);this.Qe();};g.prototype.xca=function(e){this.qM.IJc(e.probed,e.affected);this.Qe();};return g;})(c);b.p5a=a;},86429:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.dob=b.kfb=void 0;d=a(66164);n=a(52571);c=a(59458);f=a(72681);new d.platform.Console("ASEJS_PROBE_MANAGER","asejs");t=(function(){function g(e,h,k){this.Vi=e;this.XK=h;this.config=k;this.Fn=new Set();this.iA={};this.rM={};this.VT=!0;this.groupId=1;}g.prototype.KJc=function(e,h){var k,l,m,p,r,q,u,v,w,x;k=this;l=this.config;m=e.dd;p=e.stream;r=e.Ab.location;(0,n.assert)(p,"Failing url should have an associated stream");(0,n.assert)(r,"Failing url should have an associated location");q=[];u=p.Sj[0];v=!1;w=this.iA[m];x=d.platform.time.ha();if(!w)w=this.yQc(m,x,h,e);else if(w.Md >= x - l.jfa)return;w.ZH || (u && r.id === u.id && (e.isPrimary=!0),w.Md=x,w.ZH=!1,w.error=h,++w.count,p && p.urls && 0 !== p.urls.length && (p.urls.forEach(function(y){var A,z,B,C,D;B=y.Ab.id;C=B + "-" + m;D=k.rM[C];if(void 0 === D || void 0 === D.dda)(D && D.ar && clearTimeout(D.ar),y=null === (z=null === (A=e.stream) || void 0 === A?void 0:A.u7) || void 0 === z?void 0:z.JZ(e.L,y.url),(0,n.assert)(y,("Unexpected probeUrl: ").concat(y)),A=k.wNa(y,e,B),k.rM[C]={success:!1,count:0,dda:A.Ei()},q.push(A.Ei()),v=!0);-1 === w.z0a.indexOf(B) && w.z0a.push(B);}),0 < q.length && (l={ts:d.platform.time.ha(),es:h.fmb,fc:h.bh,fn:h.dub,nc:h.Qg,pb:q,gid:this.groupId},h.wk && (l.hc=h.wk),this.YR(l,"errpb")),v && this.groupId++));};g.prototype.wNa=function(e,h,k){var l,m;l=new f.p5a(this);m="random=" + parseInt(("").concat(1E7 * Math.random()));l.aGc(e + (-1 !== e.indexOf("?")?"&":"?") + m,h,k);return l;};g.prototype.yQc=function(e,h,k,l){var m;m=this.iA[e];l=l.Ab.location;m || (m=this.iA[e]={count:0,Md:h,ZH:!1,error:k,z0a:[],pZa:{},location:l,L:k.L,C7c:k});return m;};g.prototype.getState=function(e){return this.iA[e];};g.prototype.Hbc=function(e){this.iA[e]=void 0;};g.prototype.YR=function(e,h){var k;if(this.VT){k={type:"logdata",target:"endplay",fields:{}};k.fields[h]={type:"array",value:e,adjust:["ts"]};this.Vi.dXa(k);}};g.prototype.LJc=function(e,h){var k,l,m,p,r,q,u,v,w,x,y,A,z;k=this;p=this.Vi;r=this.config;q=h.dd;if(h.QIb)p.D_a(e.dd,!1);else {u=this.iA[q];if(u){v=e.url;w=this.rM[e.dd + "-" + q];if(w){x=u.error;w && w.ar && clearTimeout(w.ar);w.success=!0;w.count=0;w.dda=void 0;u.pZa[e.dd]=!0;w=this.iA[e.dd];if((null === w || void 0 === w?0:w.ZH) && r.xP){p.D_a(e.dd,w.error.Efa[1]);if(this.VT){y={ts:d.platform.time.ha(),id:e.requestId,servid:h.dd,gid:e.groupId?e.groupId:-1};this.YR(y,"errst");}this.iA[e.dd]=void 0;this.XK();}if(v !== h.url){A=this.rM[q + "-" + q];if(!A || !A.success){q=null === w || void 0 === w?void 0:w.location;r=Math.min((null === (m=null === (l=null === q || void 0 === q?void 0:q.yb) || void 0 === l?void 0:l.jn) || void 0 === m?void 0:m.Fa) || Math.random() * r.H_,r.H_);z=setTimeout(function(){var B;k.Fn.delete(z);if(!(!1 !== u.ZH || A && A.success) && (u.ZH=!0,p.YH(x.Efa[0],x.Efa[1],h.stream.u7.url,x),k.VT)){B={ts:d.platform.time.ha(),id:e.requestId,servid:h.dd,gid:e.groupId?e.groupId:-1};k.YR(B,"erep");}},r);this.Fn.add(z);}}this.VT && (y={ts:d.platform.time.ha(),id:e.requestId,result:1,servid:e.dd,gid:e.groupId?e.groupId:-1},this.YR(y,"pbres"));}}}};g.prototype.IJc=function(e,h){var k,l,m,p,r,q,u,v,w,x,y,A,z;k=this;if(!h.QIb){p=this.Vi;r=this.config;q=h.dd;u=this.iA[q];v=e.dd;w=this.rM[v + "-" + q];if(w)if(u){x=0;w.success=!1;w.dda=void 0;u.pZa[v]=!1;y=u.z0a;if(r.xP && v === q && h.isPrimary){A=u.location;A=(null === (m=null === (l=null === A || void 0 === A?void 0:A.yb) || void 0 === l?void 0:l.jn) || void 0 === m?void 0:m.Fa) || 300 * Math.random();l=(0,b.dob)({O8b:A,HJc:w.count,sCc:r.Zba});w.ar=setTimeout(function(){var B;w.ar=void 0;B=k.wNa(e.url,h,v);B.GPc(e.groupId);w.dda=B.Ei();},l);}++w.count;if(v === q && (x=0,y.forEach(function(B){!1 === u.pZa[B] && x++;}),y.length === x && u.count >= r.Kba)){z=u.error;u.ZH=!0;r=h.stream;(0,n.assert)(r,"Probe failed url should have an associated stream");r.urls.forEach(function(B){p.YH(z.Efa[0],z.Efa[1],B.url,z);k.VT && (B={ts:d.platform.time.ha(),id:-1,servid:B.Ab.id},k.YR(B,"erep"));});}this.VT && (r={ts:d.platform.time.ha(),id:e.requestId,result:0,servid:e.dd,gid:e.groupId?e.groupId:-1},this.YR(r,"pbres"));}else w && (w.success=!1,w.dda=void 0);}};g.prototype.uN=function(e){var h,k,l;if(e.url){k=this.Vi;l=k.w0a(e.url);l || (l=null === (h=this.Vi.ypa(e.stream)[0]) || void 0 === h?void 0:h.id);l && (e=this.iA[l]) && e.ZH && this.config.xP && (k.D_a(e.error.fmb,!1),this.VT && (k={ts:d.platform.time.ha(),id:-1,servid:l},this.YR(k,"errst")),this.Hbc(l),(l=this.rM[l + "-" + l]) && l.ar && clearTimeout(l.ar));}};g.prototype.reset=function(){var e,h,k;e=this.rM;for(k in e)e.hasOwnProperty(k) && (h=e[k + "-" + k]) && h.ar && clearTimeout(h.ar);this.Fn.forEach(function(l){return clearTimeout(l);});this.Fn.clear();this.rM={};this.iA={};};return g;})();b.kfb=t;b.dob=function(g){var e,h;e=g.ead;h=g.h$c;h=void 0 === h?.1:h;g=Math.min(Math.max(g.sCc,g.O8b * Math.pow(2,g.HJc)),void 0 === e?12E4:e);e=(0,c.vJb)(0,g * h);return g + e;};},52045:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Zrc=function(c,f){if((c=c.oa.K.Dy) && 0 !== c.length)return (0,d.cc)(c,function(g){return g.qa.G <= f && f < g.ta.G;});};b.Owc=function(c,f){return f.index === c.Ec.index?!0:(c=c.oa.K.Dy) && 0 !== c.length?c.some(function(g){g=g.qa;return f.qa.ln(g) && g.lessThan(f.ta);}):!1;};b.O9c=function(c,f){return f.index === c.Ic.index?!0:(c=c.oa.K.Dy) && 0 !== c.length?c.some(function(g){g=g.ta;return f.qa.lessThan(g) && g.ln(f.ta);}):!1;};b.fjc=function(c,f,g,e){var h,k,l,m,p,r,q,u,v,w;n && c.trace("editFragmentForRegion, region:",g,"fragment:",f,"params:",e);q=null === (h=f.pa) || void 0 === h?void 0:h.start;h=null === (k=f.pa) || void 0 === k?void 0:k.end;v=k=!1;if((null === e || void 0 === e?0:e.exc) || (null === e || void 0 === e || !e.Mwc) && f.qa.lessThan(g.qa)){if(u=f.NPa(g.qa.G)){w=(null !== (m=null === (l=f.pa) || void 0 === l?void 0:l.start) && void 0 !== m?m:0) + u.ql;n && c.trace("editFragmentForRegion found sap at start:",u,"adjusted sampleIndex:",w);q=Math.max(null !== q && void 0 !== q?q:0,w);}u=g.qa.G;k=!0;}if((null === e || void 0 === e || !e.Ywc) && f.ta.greaterThan(g.ta)){if(u=f.NPa(g.ta.G))(w=(null !== (r=null === (p=f.pa) || void 0 === p?void 0:p.start) && void 0 !== r?r:0) + u.ql,n && c.trace("editFragmentForRegion found sap at end:",u,"adjusted sampleIndex:",w),h=Math.min(null !== h && void 0 !== h?h:Infinity,w),f.e0=f.index,n && c.trace("editFragmentForRegion editing end of region, reusing index:",f.index));u=g.ta.G;v=!0;}if(void 0 !== q || void 0 !== h)(f.xh({start:q,end:h}),n && c.trace("getFragmentForRequest setting edit window:",{start:q,end:h}));void 0 !== u && (!f.Ju || u > f.Ju) && (f.Q1(u),n && c.trace("getFragmentForRequest setting splice pts:",u));f.cQc(g.region,k,v);};d=a(91176);n=!1;},47317:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.tga=void 0;d=a(22970);n=a(77399);t=(function(){function c(f,g){this.vo=f;this.filter=g;this.CDb=Math.max(f.max_n || 10,0);this.reset();}c.prototype.reset=function(){this.rda=[];this.offset=0;this.xE=this.dN=null;this.filter.reset();this.qfa=null;};c.prototype.add=function(f,g,e){var h;h=this.xE;null !== h && e > h && (this.offset+=Math.max(g - h,0),this.xE=null);for((0,n.Tvc)(this.rda,[g - this.offset,e - this.offset,f]);this.rda && this.rda.length > this.CDb;)(f=d.__read(this.rda.shift(),3),this.filter.add(f[2],f[0],f[1]));this.qfa=null;};c.prototype.get=function(f,g){var e,l;if(!this.qfa){this.qfa=this.filter.St();try{for(var h=d.__values(this.rda),k=h.next();!k.done;k=h.next()){l=d.__read(k.value,3);this.qfa.add(l[2],l[0],l[1]);}}catch(p){var m;m={error:p};}finally{try{k && !k.done && (e=h.return) && e.call(h);}finally{if(m)throw m.error;}}}m=this.xE;return this.qfa.get((null === m?f:m) - this.offset,g);};c.prototype.St=function(){var f;f=new c(this.vo,this.filter.St());f.xE=this.xE;f.offset=this.offset;return f;};c.prototype.start=function(f){var g;g=this.xE;null !== g && f > g && (this.offset+=f - g,this.xE=null);this.filter.start(f - this.offset);};c.prototype.stop=function(f){this.xE=null === this.xE?f:Math.min(this.xE,f);this.filter.stop(f - this.offset);};c.prototype.flush=function(){this.filter.flush();};c.prototype.toString=function(){return "AggregatingFilter(" + this.CDb + ", " + this.filter.toString() + ")";};return c;})();b.tga=t;},43276:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.LN=void 0;t=(function(){var Z59;Z59=2;for(;Z59 !== 9;){switch(Z59){case 3:return a;break;case 2:a.prototype.start=function(d){var H9p;H9p=2;for(;H9p !== 5;){switch(H9p){case 2:this.active=!0;this.hY?d < this.hY?(this.nT+=this.hY - d,this.hY=d):this.nK && d > this.nK && (this.nK=this.hY=d):this.nK=this.hY=d;H9p=5;break;}}};a.prototype.stop=function(d){var n6o;n6o=2;for(;n6o !== 1;){switch(n6o){case 2:this.active && (this.active=!1,this.nK && d > this.nK && (this.nT+=d - this.nK,this.nK=d));n6o=1;break;}}};a.prototype.add=function(d,n,c){var U$w;U$w=2;for(;U$w !== 4;){switch(U$w){case 2:this.start(n);this.stop(c);this.ma+=d;U$w=4;break;}}};a.prototype.get=function(){var b3h;b3h=2;for(;b3h !== 1;){switch(b3h){case 2:return {Fa:this.nT?Math.floor(8 * this.ma / this.nT):null,wOa:this.nT || 0};break;}}};Z59=3;break;case 12:return a;break;}}function a(){var T88;T88=2;for(;T88 !== 3;){switch(T88){case 2:var f0y="1SI";f0y+="Yb";f0y+="Zr";f0y+="NJ";f0y+="Cp9";this.active=!1;this.nT=this.ma=0;this.nK=this.hY=void 0;f0y;T88=3;break;}}}})();b.LN=t;},78416:function(t,b,a){var n,c;function d(f){this.Bb={Hba:f.maxc || 25,NMa:f.c || .5,TB:f.w || 15E3,gj:f.b || 5E3};n.call(this,this.Bb.TB,this.Bb.gj);this.J6();}n=a(72697).O3;c=a(15913).TDigest;d.prototype=Object.create(n.prototype);d.prototype.shift=function(){var f;f=this.Hs(0);n.prototype.shift.call(this);null !== f && (this.Gg.push(f,1),this.GJ=!0);return f;};d.prototype.flush=function(){var f;f=this.get();this.Gg.push(f,1);this.GJ=!0;n.prototype.reset.call(this);return f;};d.prototype.get=function(){return this.ayb();};d.prototype.CZ=function(){var f;f=this.ayb();return {min:f.min,p10:f.bYa,p25:f.ow,p50:f.Es,p75:f.pw,p90:f.cYa,max:f.max,centroidSize:f.yac,sampleSize:f.sampleSize,centroids:f.Rm};};d.prototype.ayb=function(){var f;if(0 === this.Gg.size())return null;f=this.Gg.Ek([0,.1,.25,.5,.75,.9,1]);if(f[2] === f[4])return null;if(this.GJ || !this.ae)(this.GJ=!1,this.ae={min:f[0],bYa:f[1],ow:f[2],Es:f[3],pw:f[4],cYa:f[5],max:f[6],Ek:this.Gg.Ek.bind(this.Gg),yac:this.Gg.size(),sampleSize:this.Gg.n,Rm:this.Soc(),CZ:this.CZ.bind(this)});return this.ae;};d.prototype.Soc=function(){var f;if(0 === this.Gg.size())return null;if(!this.GJ && this.ae)return this.ae.centroids;f=this.Gg.Ek([.25,.75]);if(f[0] === f[1])return null;this.Gg.size() > this.Bb.Hba && this.Gg.Zo();f=this.Gg.wj(!1).map(function(g){return {mean:g.Eh,n:g.n};});return JSON.stringify(f);};d.prototype.kSa=function(){return this.Gg.summary();};d.prototype.size=function(){return this.Gg.size();};d.prototype.toString=function(){return "btdtput(" + this.V4b + "," + this.O1b + "," + this.U4b + "): " + this.Gg.summary();};d.prototype.J6=function(){this.Gg=new c(this.Bb.NMa,this.Bb.Hba);};t.exports={dUb:d};},20596:function(t,b,a){var n,c;function d(f,g,e,h){n.call(this,e,h);this.rC=new c(f);this.w3b=g;}n=a(72697).O3;c=a(16514);d.prototype=Object.create(n.prototype);d.prototype.shift=function(){var f;f=this.Hs(0);n.prototype.shift.call(this);null !== f && this.rC.Yka(f);return f;};d.prototype.flush=function(){var f;f=this.get();this.rC.Yka(f);n.prototype.reset.call(this);return f;};d.prototype.get=function(){var f;f=this.B$();return {sampleSize:this.J$(),xYa:f,Usa:f.Es?(f.pw - f.ow) / f.Es:void 0};};d.prototype.J$=function(){return this.rC.J$();};d.prototype.B$=function(){return this.rC.J$() < this.w3b?{ow:void 0,Es:void 0,pw:void 0,sampleSize:void 0,Ek:void 0}:{ow:this.rC.X7(25),Es:this.rC.X7(50),pw:this.rC.X7(75),sampleSize:this.rC.J$(),Ek:this.rC.X7.bind(this.rC)};};d.prototype.toString=function(){return "biqr(" + this.V4b + "," + this.O1b + "," + this.U4b + ")";};t.exports={cUb:d};},56089:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.K6a=void 0;d=a(22970);n=a(43276);t=(function(){var b8N;b8N=2;for(;b8N !== 8;){switch(b8N){case 2:c.prototype.add=function(f,g,e,h,k){var P6$,l;P6$=2;for(;P6$ !== 9;){switch(P6$){case 4:void 0 === l[h][k] && (l[h][k]=new n.LN());l[h][k].add(f,g,e);P6$=9;break;case 2:l=this.h1;k=k || c.Vsa;void 0 === l[h] && (l[h]={});P6$=4;break;}}};c.prototype.start=function(f,g,e){var R8k,h;R8k=2;for(;R8k !== 9;){switch(R8k){case 2:h=this.h1;e=e || c.Vsa;void 0 === h[g] && (h[g]={});void 0 === h[g][e] && (h[g][e]=new n.LN());h[g][e].start(f);R8k=9;break;}}};c.prototype.stop=function(f,g,e){var t$k,h;t$k=2;for(;t$k !== 4;){switch(t$k){case 1:e=e || c.Vsa;void 0 !== h[g] && void 0 !== h[g][e] && h[g][e].stop(f);t$k=4;break;case 9:h=this.h1;t$k=9;break;case 2:h=this.h1;t$k=1;break;}}};c.prototype.get=function(){var I0$,g,e,h,k,l,J$x,m,p,Z6Q,M97,e92;I0$=2;function f(q){var X7C;X7C=2;for(;X7C !== 1;){switch(X7C){case 2:Object.keys(l.h1[q]).forEach(function(u){var V9p,v;V9p=2;for(;V9p !== 5;){switch(V9p){case 2:v=e.h1[q][u].get();v && k.push({cdnid:q,pbcid:u === c.Vsa?null:u,avtp:v.Fa,tm:v.wOa});V9p=5;break;}}});X7C=1;break;}}}for(;I0$ !== 4;){switch(I0$){case 2:(e=this,h=Object.keys(this.h1).map(function(q){var o0u;o0u=2;for(;o0u !== 1;){switch(o0u){case 2:return parseInt(q);break;}}}),k=[],l=this);try{J$x=2;for(;J$x !== 3;){switch(J$x){case 5:f(p.value);J$x=4;break;case 7:J$x=-p.done?1:4;break;case 1:J$x=!p.done?5:3;break;case 6:f(p.value);J$x=2;break;case 2:(m=d.__values(h),p=m.next());J$x=1;break;case 4:p=m.next();J$x=1;break;}}}catch(q){var r;r={error:q};}finally{Z6Q=2;for(;Z6Q !== 1;){switch(Z6Q){case 2:try{M97=2;for(;M97 !== 1;){switch(M97){case 2:p && !p.done && (g=m.return) && g.call(m);M97=1;break;}}}finally{e92=2;for(;e92 !== 5;){switch(e92){case 2:e92=r?1:5;break;case 1:throw r.error;e92=5;break;case 9:throw r.error;e92=9;break;}}}Z6Q=1;break;}}}return k;break;}}};b8N=3;break;case 3:var h3o="no-pbcid";h3o+="-";h3o+="ke";h3o+="y";c.Vsa=h3o;return c;break;}}function c(){var k6F;k6F=2;for(;k6F !== 5;){switch(k6F){case 2:var s6M="1SIYbZrNJC";s6M+="p";s6M+="9";this.h1={};s6M;k6F=5;break;}}}})();b.K6a=t;},71409:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.X6a=void 0;d=a(22970);t=a(66164);n=a(15913);new t.platform.Console("ASEJS_TDIGEST_FILTER","media|asejs");a=(function(){function c(f){this.config=f;this.PMa=f.c;this.fWa=f.pad;this.oba=f.oba;this.$$=f.$$;this.sqa=f.sqa;this.NQc=f.A6c;this.uA=f.uA;this.BDb=f.BDb;this.reset();}c.prototype.reset=function(){this.ul=new n.TDigest(this.PMa,this.fWa);this.time=null;};c.prototype.add=function(f,g,e){var h,k,l,r;e=Math.max(e - g,1);f=8 * f / e;if(this.NQc){null === this.time && (this.time=g);k=Math.pow(2,(g - this.time) / this.uA);l=e * k;if(k >= this.BDb){l=new n.TDigest(this.PMa,this.fWa);try{for(var m=d.__values(this.ul.wj()),p=m.next();!p.done;p=m.next()){r=p.value;l.push(r.Eh,r.n / k);}}catch(u){var q;q={error:u};}finally{try{p && !p.done && (h=m.return) && h.call(m);}finally{if(q)throw q.error;}}this.ul=l;l=e;this.time=g;}this.ul.push(f,l);}else this.ul.push(f,e);};c.prototype.get=function(){var f;f=this.ul.Ek([this.oba,this.$$,this.sqa]);return {low:f[0] || 0,high:f[1] || 0,initial:f[2] || 0};};c.prototype.St=function(){var f,g,e,l;g=new c(this.config);e=new n.TDigest(this.PMa,this.fWa);try{for(var h=d.__values(this.ul.wj()),k=h.next();!k.done;k=h.next()){l=k.value;e.push(l.Eh,l.n);}}catch(p){var m;m={error:p};}finally{try{k && !k.done && (f=h.return) && f.call(h);}finally{if(m)throw m.error;}}g.ul=e;return g;};c.prototype.flush=function(){};c.prototype.start=function(){};c.prototype.stop=function(){};return c;})();b.X6a=a;},8239:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.G7a=b.AVb=b.F7a=b.bWb=b.BVb=void 0;d=a(22970);n=a(51117);a=(function(){return function(){};})();b.BVb=a;c=(function(){function f(g,e,h,k,l){this.alpha=g;this.Fa=e;this.weight=k;this.HGa=h * this.weight;this.rfa=l;}f.prototype.St=function(){return new f(this.alpha,this.Fa,this.ng,this.weight,this.rfa);};Object.defineProperties(f.prototype,{ng:{get:function(){return this.weight?this.HGa / this.weight:0;},enumerable:!1,configurable:!0}});f.prototype.update=function(g,e,h){var k,l,m,p;k=this.alpha;l=this.weight;m=this.rfa;p=k * (g - m);5 < p && (this.weight/=Math.exp(p),this.rfa=m=g);g=Math.exp(k * (e - m)) - Math.exp(k * (g - m));e=this.weight+=g;k=this.Fa;this.Fa=m=k + g * (h - k) / e;this.HGa=l?this.HGa * (e - g) / l + g * (h - m) * (h - k):0;};return f;})();b.bWb=c;t=(function(){var s2h;s2h=2;function f(g){var n_N,e,h;n_N=2;for(;n_N !== 7;){switch(n_N){case 9:this.wCc=h;this.reset();n_N=7;break;case 2:var N6S="1S";N6S+="IYbZ";N6S+="rNJCp9";this.vo=g;N6S;(e=g.min_b,h=g.min_iv);this.uA=g.hl;this.qEb=e;n_N=9;break;}}}for(;s2h !== 14;){switch(s2h){case 7:f.prototype.flush=function(){};return f;break;case 3:f.prototype.get=function(g,e){var y2H=X8rQy;var j9y,q,u,v,h,k,l,m,p,r;j9y=2;for(;j9y !== 16;){switch(j9y){case 6:l=Math.max(l,m);j9y=14;break;case 20:g=p.weight;e=r.weight;return {Fa:g?p.Fa:null,ng:g?p.ng:null,sX:e?r.Fa:null,P2:e?r.ng:null};break;case 13:y2H.r4q(0);r.update(y2H.M4Q(k,h),y2H.M4Q(g,h),0);j9y=20;break;case 5:j9y=(p=new c(p.alpha,p.Fa,p.ng,p.weight,p.rfa),r=new c(r.alpha,r.Fa,r.ng,r.weight,r.rfa),0 < p.weight && 0 !== e)?4:20;break;case 7:j9y=0 === q?6:12;break;case 4:void 0 === e && (e=this.qEb);l >= m && (e=Math.min(e,this.qEb));m=e * p.Fa;y2H.T2D(1);var M8l=y2H.M4Q(0,2);q=Math.pow(e,M8l) * p.ng;j9y=7;break;case 1:j9y=0 < l?5:17;break;case 10:l=1E-11 < u?Math.max(v / u,l):l + 2 * q / m;j9y=14;break;case 12:(u=new n.Jha(m,q).rac(l),v=m - u[1]);y2H.T2D(2);var z7M=y2H.I83(5,8,10,15,55);u=z7M - u[0];j9y=10;break;case 2:(h=this.Uy || 0,k=this.dN || 0,l=g - k,m=this.wCc,p=this.bU,r=this.cU);j9y=1;break;case 17:(p=this.bU,r=this.cU);j9y=20;break;case 14:y2H.r4q(0);p.update(y2H.M4Q(k,h),y2H.M4Q(g,h,y2H.r4q(0)),y2H.M4Q(e,l,y2H.r4q(3)));j9y=13;break;}}};f.prototype.toString=function(){var F$i;F$i=2;for(;F$i !== 1;){switch(F$i){case 2:var Q3d="Deliv";Q3d+="er";Q3d+="yDist(";return Q3d.concat(this.uA,")");break;}}};f.prototype.stop=function(){};s2h=7;break;case 2:f.prototype.St=function(g){var j2q;j2q=2;for(;j2q !== 8;){switch(j2q){case 2:g || (g=new f(this.vo));g.Uy=this.Uy;g.dN=this.dN;g.bU=this.bU.St();g.cU=this.cU.St();return g;break;}}};f.prototype.reset=function(){var j7k,g;j7k=2;for(;j7k !== 3;){switch(j7k){case 2:g=-Math.log(.5) / this.uA;this.bU=new c(g,0,0,0,0);this.cU=new c(g,0,0,0,0);this.Uy=this.dN=null;j7k=3;break;}}};f.prototype.start=function(g){var T8M;T8M=2;for(;T8M !== 1;){switch(T8M){case 2:null === this.Uy && (this.Uy=g);T8M=1;break;}}};f.prototype.add=function(g,e,h){var Z3Q=X8rQy;var J9r,k;J9r=2;for(;J9r !== 7;){switch(J9r){case 2:k=this.Uy;this.Uy=null === k?e:Math.min(k,e);k=this.dN;this.dN=null === k?h:Math.max(k,h);Z3Q.r4q(0);k=Math.max(Z3Q.I83(h,e),1);Z3Q.T2D(3);this.bU.update(e,h,Z3Q.M4Q(g,k));Z3Q.r4q(4);this.cU.update(e,h,Z3Q.I83(k,8,g));J9r=7;break;}}};s2h=3;break;}}})();b.F7a=t;a=(function(f){function g(){return null !== f && f.apply(this,arguments) || this;}d.__extends(g,f);return g;})(a);b.AVb=a;t=(function(f){function g(e){var h;h=f.call(this,e) || this;h.vo=e;return h;}d.__extends(g,f);g.prototype.get=function(){var e,h,k;if(0 === this.bU.weight || 0 === this.cU.weight)return {low:null,high:null,initial:null};switch(this.vo.S_){case "deliverytime":e=this.bU;e=new n.Jha(e.Fa,e.ng);(h=this.vo.accuracy,k=this.vo.pBc);return {low:8 / e.ZS(this.vo.$$,h,k),high:8 / e.ZS(this.vo.oba,h,k),initial:8 / e.ZS(this.vo.sqa,h,k)};default:return (e=this.cU,e=new n.Jha(e.Fa,e.ng),h=this.vo.accuracy,k=this.vo.pBc,{low:e.ZS(this.vo.oba,h,k),high:e.ZS(this.vo.$$,h,k),initial:e.ZS(this.vo.sqa,h,k)});}};g.prototype.St=function(){var e;e=new g(this.vo);f.prototype.St.call(this,e);return e;};g.prototype.toString=function(){return ("DeliveryDistCI([").concat((this.vo.oba,this.vo.$$),"])");};return g;})(t);b.G7a=t;},28855:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.rAa=b.JUb=b.O7a=void 0;d=a(22970).__importDefault(a(17267));t=(function(){function c(f,g){void 0 === g && (g=0);this.initial=g;this.reset();this.XPc(f);}c.prototype.XPc=function(f){this.alpha=Math.pow(.5,1 / f);this.uA=f;};c.prototype.reset=function(f){f && void 0 !== f.Fa && d.default.pc(f.Fa)?(this.count=this.initial,this.Fa=f.Fa,f.ng && d.default.pc(f.ng)?this.cK=f.ng + f.Fa * f.Fa:this.cK=f.Fa * f.Fa):this.cK=this.Fa=this.count=0;};c.prototype.add=function(f){var g;if(d.default.pc(f)){this.count++;g=this.alpha;this.Fa=g * this.Fa + (1 - g) * f;this.cK=g * this.cK + (1 - g) * f * f;}};c.prototype.URa=function(){var f,g;if(0 === this.count)return {Fa:0,ng:0};f=1 - Math.pow(this.alpha,this.count);g=this.Fa / f;return {Fa:g,ng:Math.max(this.cK / f - g * g,0)};};c.prototype.get=function(){var f;f=this.URa();return {Fa:Math.floor(f.Fa),ng:Math.floor(f.ng)};};c.prototype.getState=function(){return 0 === this.count?null:{a:Number(this.Fa.toPrecision(6)),s:Number(this.cK.toPrecision(6)),n:this.count};};c.prototype.$i=function(f){if(d.default.rd(f) || !d.default.has(f,"a") || !d.default.has(f,"s") || !d.default.isFinite(f.a) || !d.default.isFinite(f.s))return (this.cK=this.Fa=this.count=0,!1);this.Fa=f.a;this.cK=f.s;d.default.has(f,"n") && d.default.pc(f.n)?this.count=f.n:this.count=16 * this.uA;return !0;};return c;})();b.O7a=t;n=(function(){function c(f){this.setInterval(f);this.reset();}c.prototype.setInterval=function(f){this.uA=f;this.alpha=-Math.log(.5) / f;};c.prototype.reset=function(f){this.uD=this.startTime=null;this.Fa=f && d.default.isFinite(f.Fa)?f.Fa:0;};c.prototype.start=function(f){d.default.rd(this.startTime) && (this.startTime=f);d.default.rd(this.uD) && (this.uD=f);};c.prototype.add=function(f,g,e){var h,k,l;d.default.rd(this.startTime) && (this.startTime=g);d.default.rd(this.uD) && (this.uD=g);this.startTime=Math.min(this.startTime,g);g=Math.max(e - g,1);h=this.alpha;k=Math.max(e,this.uD);l=k - this.uD;e=k - e;this.Fa=this.Fa * (0 < l?Math.exp(-h * l):1) + 8 * f / g * (1 - Math.exp(-h * g)) * (0 < e?Math.exp(-h * e):1);this.uD=k;};c.prototype.get=function(f){var g,e;g=d.default.rd(this.uD)?0:this.uD;e=d.default.rd(this.startTime)?0:this.startTime;f=Math.max(f,g);g=this.Fa * Math.exp(-this.alpha * (f - g));f=1 - Math.exp(-this.alpha * (f - e));0 < f && (g/=f);return {Fa:Math.floor(g),ng:0};};c.prototype.toString=function(){return "ewma(" + this.uA + ")";};Object.defineProperties(c.prototype,{time:{get:function(){return this.uD;},enumerable:!1,configurable:!0}});return c;})();b.JUb=n;t=(function(){function c(f){this.FQ=new n(f);this.offset=0;this.dt=null;}c.prototype.setInterval=function(f){this.FQ.setInterval(f);};c.prototype.reset=function(f){this.FQ.reset(f);this.offset=0;this.dt=null;};c.prototype.start=function(f){!d.default.rd(this.dt) && f > this.dt && (this.offset+=f - this.dt,this.dt=null);this.FQ.start(f - this.offset);};c.prototype.add=function(f,g,e){!d.default.rd(this.dt) && e > this.dt && (this.offset+=g > this.dt?g - this.dt:0,this.dt=null);this.FQ.add(f,g - this.offset,e - this.offset);};c.prototype.stop=function(f){var g;g=this.FQ.time;this.dt=Math.max(d.default.rd(g)?0:g + this.offset,d.default.rd(this.dt)?f:Math.min(this.dt,f));};c.prototype.get=function(f){return this.FQ.get((this.dt?this.dt:f) - this.offset);};c.prototype.toString=function(){return this.FQ.toString();};return c;})();b.rAa=t;},97315:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;function d(x,y){switch(x.type){case "slidingwindow":return new u.yO(y,new h.N7a(x.mw));case "discontiguous-ewma":return new u.yO(y,new e.rAa(x.mw));case "initial-discontiguous-ewma":return new r.Ceb(new e.rAa(x.mw),x.playerStates);case "wssl":return new h.Hib(x.mw,x.max_n);case "iqr":return new l.cUb(x.mx,x.mn,x.bw,x.iv);case "tdigest":return new m.dUb(x);case "ci":return new u.yO(y,new q.tga(x,new v.X6a(x)));case "discrete-ewma":return new e.O7a(x.hl);case "tdigest-history":return new c.mhb(x);case "iqr-history":return new f.default();case "avtp":return new w.LN();case "entropy":return new p.zcb(x);case "deliverytime":return new u.yO(y,new q.tga(x,new k.F7a(x)));case "deliverytime-ci":return new u.yO(y,new q.tga(x,new k.G7a(x)));}}Object.defineProperties(b,{__esModule:{value:!0}});b.hBa=void 0;n=a(22970);c=a(88318);f=n.__importDefault(a(21506));g=a(54520);e=a(28855);h=a(34391);k=a(8239);l=a(20596);m=a(78416);p=a(72869);r=a(82583);q=a(47317);u=a(66917);v=a(71409);w=a(43276);t=(function(){function x(y){this.config=y;this.m2b=y.ijb;}x.prototype.create=function(y,A){A=A[y];A=n.__assign(n.__assign({},this.m2b[y]),A);y=A.type;if(!y)return {type:"none"};A=d(A,this.config);return (0,g.nta)(A,{type:y});};return x;})();b.hBa=t;},96965:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.ycb=void 0;t=a(66164);d=a(65161);new t.platform.Console("ASEJS_NETWORK_CONFIDENCE","media|asejs");a=(function(){function n(c,f){this.config=c;this.yta=f;this.Kw=this.oK=this.ma=0;this.reset();}Object.defineProperties(n.prototype,{duration:{get:function(){return this.oK + this.Kw;},enumerable:!1,configurable:!0}});n.prototype.reset=function(){this.confidence=d.wO.HAVE_NOTHING;this.ma=0;this.startTime=void 0;this.Kw=this.oK=0;};n.prototype.St=function(){var c;c=new n(this.config,this.yta);c.confidence=this.confidence;c.ma=this.ma;c.startTime=this.startTime;c.oK=this.oK;c.Kw=this.Kw;return c;};n.prototype.add=function(c,f,g){void 0 === this.startTime && (this.startTime=f);this.ma+=c;this.oK=Math.max(g - this.startTime,this.oK);this.confidence=Math.max(this.confidence,d.wO.sV);this.confidence < d.wO.rV && (this.duration > this.config.ysa || this.ma > this.config.xsa) && (this.confidence=d.wO.rV);this.confidence < d.wO.W3 && (this.duration > this.config.Sua || this.ma > this.config.Rua) && (this.confidence=d.wO.W3,this.yta());};n.prototype.get=function(){return this.confidence;};n.prototype.start=function(){};n.prototype.stop=function(){this.config.sSc && (this.Kw+=this.oK,this.oK=0,this.startTime=void 0);};n.prototype.flush=function(){};return n;})();b.ycb=a;},72869:function(t,b,a){var n,c,f,g,e,h;function d(k){k=k.length + 1;for(var l=Array(k),m=0;m < k;m++){l[m]=Array(k);for(var p=0;p < k;p++)l[m][p]=0;}return l;}Object.defineProperties(b,{__esModule:{value:!0}});b.zcb=void 0;n=a(22970);t=a(66164);c=a(72697);f=a(94451);g=a(51044);e=a(48170);h=new t.platform.Console("ASEJS_NETWORK_ENTROPY","media|asejs");a=(function(k){function l(m){var p;p=k.call(this,m.sw,m.mw) || this;p.TB=m.sw;p.gj=m.mw;p.O7={uhd:(0,g.writable)(m.uhdl),hd:(0,g.writable)(m.hdl)};p.window=Math.max(Math.ceil(1 * p.TB / p.gj),1);p.xCc=m.mins || 1;p.reset();return p;}n.__extends(l,k);l.prototype.flush=function(){var m;m=this;this.Xg.map(function(p,r){m.Slb(p,m.xQa(r));});};l.prototype.n$b=function(){var m,p,r,q,u,v,w,z;m=this.O7;for(p in m){e.l && h.trace(("Calculating Network Entropy based on ").concat(p," bitrate ladder (").concat(JSON.stringify(m[p]),")"));r=m[p];q=this.bQb[p];u=this.$Pb[p];if(q.first){v=q.first;w=q.Cy;void 0 !== w && (u[v][w]+=1);q.first=void 0;}e.l && h.trace(("Transition Matrix: ").concat(this.Yic(u)));q=[];v=r=r.length + 1;for(var x=w=0;x < v;x++){for(var y=0,A=0;A < r;A++)y+=u[A][x];w+=y;q.push(y);}e.l && h.trace(("steadyStateVector: ").concat(JSON.stringify(q)));y=-1;if(w > this.xCc){for(x=y=0;x < v;x++)if(0 < q[x])for(A=0;A < r;A++){z=u[A][x];0 < z && (y-=z * Math.log(1 * z / q[x]));}y/=w * Math.log(2);}e.l && h.trace(("entropy: ").concat(y));this.wtb[p]=y;}return this.wtb;};l.prototype.Slb=function(m,p){var u,v,w;for(var r=this.window,q=this.O7;this.yna.length >= r;)this.yna.shift();for(;this.zna.length >= r;)this.zna.shift();this.yna.push(m);this.zna.push(p);m=(0,f.Z1a)(this.yna);p=(0,f.Z1a)(this.zna);if(0 < p)for(p in (m=8 * m / p,e.l && h.trace(("Adding sliding window throughput into Transition Matrix: ").concat(m)),p=void 0,q)){r=this.bQb[p];u=this.$Pb[p];v=this.DKc(m,q[p]);w=r.Cy;void 0 !== w?u[v][w]+=1:r.first=v;r.Cy=v;}};l.prototype.DKc=function(m,p){for(var r=0;r < p.length && m > p[r];)r+=1;return r;};l.prototype.shift=function(){this.Slb(this.Xg[0],this.xQa(0));k.prototype.shift.call(this);};l.prototype.reset=function(){this.yna=[];this.zna=[];void 0 !== this.O7 && (this.wtb={hd:0,uhd:0},this.bQb={hd:{first:void 0,Cy:void 0},uhd:{first:void 0,Cy:void 0}},this.$Pb={hd:d(this.O7.hd),uhd:d(this.O7.uhd)},k.prototype.reset.call(this));};l.prototype.Yic=function(m){for(var p="",r=m.length,q=0;q < r;q++){for(var u=0;u < r;u++)p+=" " + m[q][u];p+="\n";}return p;};return l;})(c.O3);b.zcb=a;},66917:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});b.yO=void 0;new (a(66164).platform.Console)("ASEJS_PACING_FILTER","media|asejs");t=(function(){function d(n,c){this.config=n;this.filter=c;}d.prototype.St=function(){return new d(this.config,this.filter);};d.prototype.TQc=function(n,c,f,g){var e,h,k;k=g.DM;if(!k || !k.Qqa())return !0;switch(this.config.hvc){case "requested":return !1;case "requested-low":return (k=k.V_a(this.config.JOa),k.wEb() > ((null === (e=g.Ky) || void 0 === e?void 0:e.nM) || 0));case "inferred":k=k.V_a(this.config.JOa);n=k.bWa(n,c,f,this.config.Eca);if(!n)break;return k.wEb() > ((null === (h=g.Ky) || void 0 === h?void 0:h.nM) || 0);case "inferred-strict":if((k=k.V_a(this.config.JOa),k.bWa(n,c,f,this.config.Eca)))return !1;}return !0;};d.prototype.add=function(n,c,f,g){this.TQc(n,c,f,g) && this.filter.add(n,c,f,g);};d.prototype.get=function(n){if(this.filter.get)return this.filter.get(n);};d.prototype.start=function(n){this.filter.start && this.filter.start(n);};d.prototype.stop=function(n){this.filter.stop && this.filter.stop(n);};d.prototype.flush=function(){this.filter.flush && this.filter.flush();};d.prototype.reset=function(n){this.filter.reset && this.filter.reset(n);};return d;})();b.yO=t;},82583:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Ceb=void 0;t=(function(){function a(d,n){this.Hm=0;this.filter=d;this.wua=n;this.Hm=0;}a.prototype.Cba=function(d){return 0 < this.wua.filter(function(n){var c;return n === (null === (c=d.Ky) || void 0 === c?void 0:c.wh);}).length;};a.prototype.add=function(d,n,c,f){this.Cba(f) && this.filter.add(d,n,c,f);};a.prototype.start=function(d,n){this.filter.start && this.Cba(n) && this.filter.start(d);};a.prototype.stop=function(d,n){this.filter.stop && this.Cba(n) && this.filter.stop(d);};a.prototype.get=function(d){if(this.filter.get)return this.filter.get(d);};a.prototype.flush=function(){this.filter.flush && this.filter.flush();};a.prototype.reset=function(){this.Hm=0;this.filter.reset && this.filter.reset();};a.prototype.jE=function(d,n){this.Cba(n) && (this.Hm+=1,this.filter.jE && this.filter.jE(d,n));};a.prototype.kE=function(d,n,c){this.Cba(c) && (this.Hm=Math.max(this.Hm - 1,0),0 === this.Hm && this.stop(d,c),this.filter.kE && this.filter.kE(d,c));};return a;})();b.Ceb=t;},34391:function(t,b){var a;Object.defineProperties(b,{__esModule:{value:!0}});b.Hib=b.N7a=b.IUb=void 0;a=(function(){function d(n){this.TB=n;this.reset();}d.prototype.nkb=function(n,c){this.X$() && (this.Np+=n,this.ah+=n,this.ma+=c,this.gg.push({ma:c,ah:n}));};d.prototype.B6=function(){var n;for(;this.ah > this.TB;){n=this.gg.shift();this.ma-=n.ma;this.ah-=n.ah;}};d.prototype.X$=function(){return !isNaN(this.Np);};d.prototype.reset=function(){this.gg=[];this.Np=NaN;this.ah=this.ma=0;};d.prototype.setInterval=function(n){this.TB=n;this.B6();};d.prototype.start=function(n){this.X$() || (this.Np=n);};d.prototype.add=function(n,c,f){this.X$() || (this.Np=c);c > this.Np && this.nkb(c - this.Np,0);this.nkb(f > this.Np?f - this.Np:0,n);this.B6();};d.prototype.get=function(){return {Fa:Math.floor(8 * this.ma / this.ah),ng:0};};return d;})();b.IUb=a;t=(function(){function d(n){this.aM=0;this.FB=NaN;this.window=new a(n);}d.prototype.reset=function(){this.window.reset();this.aM=0;this.FB=NaN;};d.prototype.add=function(n,c,f){this.BIa() && f > this.FB && (c > this.FB && (this.aM+=c - this.FB),this.FB=NaN);this.window.add(n,c - this.aM,f - this.aM);};d.prototype.start=function(n){this.BIa() && n > this.FB && (this.aM+=n - this.FB,this.FB=NaN);this.window.start(n - this.aM);};d.prototype.stop=function(n){this.FB=this.BIa()?Math.min(n,this.FB):n;};d.prototype.get=function(){return this.window.get();};d.prototype.setInterval=function(n){this.window.setInterval(n);};d.prototype.BIa=function(){return !isNaN(this.FB);};return d;})();b.N7a=t;t=(function(){function d(n,c){this.TB=n;this.PDb=c;this.reset();}d.prototype.reset=function(){this.gg=[];this.ma=this.ah=0;};d.prototype.add=function(n,c,f,g){g && (c=f - c,this.ah+=c,this.ma+=n,this.gg.push({ah:c,ma:n}),this.B6());};d.prototype.start=function(){};d.prototype.stop=function(){};d.prototype.get=function(){return {Fa:Math.floor(8 * this.ma / this.ah),ng:0};};d.prototype.setInterval=function(n,c){this.TB=n;this.PDb=c;this.B6();};d.prototype.B6=function(){var n;for(;this.ah > this.TB || this.gg.length > this.PDb;){n=this.gg.shift();this.ma-=n.ma;this.ah-=n.ah;}};return d;})();b.Hib=t;},8934:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.Jcb=b.iWb=void 0;d=a(22970);n=a(66164);c=a(6198);f=a(48170);g=a(52045);e=a(69575);t=(function(){return function(h,k,l,m){this.config=k;this.Ve=m;m="[" + h + "]";this.console=(0,e.Df)(n.platform,l,m);this.tEb=h === c.u.U?k.usa:k.qsa;l=n.platform.DZ()[h];this.Gba=h === c.u.U?k.FBc:k.iBc;this.Gba=Math.min(k.tBc * l,this.Gba);f.l && this.console.trace("This pipeline's buffer size ",l,this.Gba);this.tsa=(h === c.u.U?k.CD:k.ZA) || k.tsa;this.bsa=(h === c.u.U?k.EBc:k.hBc) || k.bsa;this.HKa=k.HKa;};})();b.iWb=t;t=(function(h){function k(l,m,p,r){return h.call(this,l,m,p,r) || this;}d.__extends(k,h);k.prototype.twb=function(l,m,p,r){var q,u,v,w,x,y,A,z,B;void 0 === p && (p=!1);void 0 === r && (r=!1);v=this.Ve;w=l.M.VTa();x=v.Ec.index;y=v.Ic.index;A=m === x;z=m === y;if(!z || A && v.Ec.pa){if(A){B=l.nwb(v.Ec);B.Q1(v.Ec.Ju);z && (v.Ec.pa || v.Ic.pa) && B.xh({start:null === (q=B.pa) || void 0 === q?void 0:q.start,end:null === (u=v.Ic.pa) || void 0 === u?void 0:u.end});}else B=l.bu(m);}else (B=l.nwb(v.Ic),B.Q1(v.Ic.Ju));B.e0=m + 1;if(q=(0,g.Zrc)(v,v.Lk))(f.l && v.trace("getFragmentForRequest pts:",v.Lk,"in region:",q,"previous region:",v.VUa),u=void 0 === v.VUa || v.VUa !== q.region,(0,g.fjc)(v.console,B,q,{Mwc:A,Ywc:z,exc:u}));z && (B.YVa(),B.pwa(v.oa.K));A && B.ZAc();if(B.e0 !== m && !w && (this.HKa || !B.pa) && (!p || m > x + 1) && (!r || m < y - 2))for((p=r?y - 1:y,++m);m < l.Qa.length && m < p && (B.ma < this.tEb || B.Wb.G < this.tsa) && (1 === B.stream.Pj.length || this.$$b(l,m));++m){r=l.bu(m);if((0,g.Owc)(v,r))break;if(B.Wb.add(r.Wb).G > this.bsa)break;if(B.ma + r.ma > this.Gba)break;B.DKa(r);B.e0=m + 1;f.l && v.trace("getFragmentForRequest: extended fragment startPts:",B.qa.G,"to duration:",B.Wb.G,"size:",B.ma,"min request size:",this.tEb,"max request size:",this.Gba,"min request duration:",this.tsa,"max request duration:",this.bsa,"edit:",B.pa);}f.l && v.trace("getFragmentForRequest(" + m + ") returning:",B,"stream:",B.stream,"firstRequestInRegion:",B.XPa,"lastRequestInRegion:",B.OA,"nextIndex:",B.e0);return B;};k.prototype.$$b=function(l,m){return !l.Pj.some(function(p){return m === p.Te;});};return k;})(t);b.Jcb=t;},65077:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.qtb=b.GK=b.Mx=b.fpa=void 0;d=a(91176);n=a(50468);c=a(65161);f=a(52571);g=a(8171);e=a(8149);b.fpa=function(h,k){return h.JG(k,void 0,!0);};b.Mx=function(h,k,l,m,p,r){var q,u,v,w;g.Xw.eD(h);if((0,e.yk)(l)){q=l.O;u=l.track.Bo;v=l.track.Zk.Kc(q);k=void 0;v=u + Math.floor(m.nf(v));r || h !== c.u.X || (v=Math.max(u,v - 1));w=l.track.Tv(v);u=w.qa;w=w.ta;r && h === c.u.X && p && p.M === l.M && p.index === v && w === p.ta && (++v,p=l.track.Tv(v),u=p.qa,w=p.ta);r && (h === c.u.X || h === c.u.U) && u.lessThan(m) && (h=Math.floor(m.add(d.I.xy).ea(u).nf(l.Ea)),0 < h && (k={start:h}));(0,f.assert)(u.O === q,"Expected fragment start timestamp to be in stream timescale");(0,f.assert)(w.O === q,"Expected fragment end timestamps to be in stream timescale");l=new n.Ho(l,void 0,{index:v,ub:u.$,Lb:w.$,O:q,offset:0,ma:0});k && l.xh(k);return l;}(0,f.assert)(l.Qa,"findFirstFragment called without stream fragments");q=l.Qa;h === c.u.X && !r && l.Sh && !k.VJ && l.ze && (m=m.add(l.ze));m=d.I.max(l.Qa.ib,m);v=(0,b.fpa)(q,m.G);u=l.bu(v);if(u.ta.lessThan(m))return u;(w=u.Lmc(m.G))?(0 < w.ql && u.xh({start:w.ql}),h !== c.u.X || k.Sba || (0 > w.od && u.xh({start:w.ql}),w.od < (l.Sh && !k.VJ && l.ze?Math.floor(l.ze.G):0) && u.EOa())):m.G >= u.ta.G && v < q.length - 1 && (u=l.bu(v + 1));h === c.u.U && p && u.ta.equal(p.ta) && v < q.length - 1 && (u=l.bu(v + 1));h === c.u.X && !u.pa && (k.Uzb || k.ejc) && r && u.xh({});u.Q1(m.G);return u;};b.GK=function(h,k,l,m,p,r){var q,u;g.Xw.eD(h);if((0,e.yk)(l)){u=r=q=Infinity;k=void 0;p=l.O;if(void 0 !== m && m.isFinite()){q=l.track.Bo;r=l.track.Zk.Kc(p);q+=Math.floor(m.FCc().nf(r));u=l.track.Tv(q);r=u.qa;u=u.ta;if(h === c.u.U?r.add(l.Ea).Tf(m.add(d.I.xy)):r.Tf(m))(--q,u=l.track.Tv(q),r=u.qa,u=u.ta);(0,f.assert)(r.lessThan(m),"Last fragment expected to start before end point");h === c.u.X && (0,f.assert)(u.Tf(m),"Last audio fragment expected to end at or after end point");h === c.u.U && (0,f.assert)(u.greaterThan(m.ea(l.Ea)),"Last video fragment expected to end later than one frame before end point");h !== c.u.X && h !== c.u.U || !u.greaterThan(m) || (m=m.add(d.I.xy).ea(r).nf(l.Ea),h=h === c.u.U?Math.floor(m):Math.ceil(m),h < u.ea(r).nf(l.Ea) && (k={start:0,end:h}));r=r.$;u=u.$;}l=new n.Ho(l,void 0,{index:q,ub:r,Lb:u,O:p,offset:0,ma:0});k && l.xh(k);return l;}q=l.Qa;m || (m=q.Yb);if(p && (p=p.Amc(l,m.G,h,k,r)))return p;p=q.Ea;r=d.I.min(m.add((0,b.qtb)(h,p,k.BT,k.G1)),q.Yb);q=q.JG(r.G,void 0,!0);p=l.bu(q);0 === q || !p.qa.equal(m) || h !== c.u.U && k.BT || (--q,p=l.bu(q));r=h === c.u.U?r:m;r.G < p.ta.G && ((u=p.NPa(r.G)) && 0 !== u.ql?p.xh({end:u.ql}):h === c.u.X && (u || r.lessThan(p.qa)) && 0 !== q?p=l.bu(q - 1):h !== c.u.U || l.swc && !u || 0 === q || (p=l.bu(q - 1)));h === c.u.X && !p.pa && k.Uzb && p.xh();p.Q1(m.G);return p;};b.qtb=function(h,k,l,m){return h === c.u.U || m?d.I.ia:l?k || d.I.ia:k?k.eh(-1):d.I.ia;};},97757:function(t,b,a){var n,c,f,g,e,h;function d(k,l){return k - l;}Object.defineProperties(b,{__esModule:{value:!0}});b.oWb=void 0;b.rZ=function(k,l){var m;if(!g)return k;m=new h(k.name,l);return (function(p){function r(){for(var q=[],u=0;u < arguments.length;u++)q[u]=arguments[u];q=p.apply(this,n.__spreadArray([],n.__read(q),!1)) || this;q.zvb=m.gfc(q);return q;}n.__extends(r,p);return r;})(k);};n=a(22970);c=a(66164);f=a(48170);g="gctag" === ({NODE_ENV:"production",PLATFORM:"cadmium",ASEBUILD:"release",OBFUSCATE:"obfuscate"}).kWb;h=(function(){function k(l,m){this.name=l;this.QMa=m;this.hL=[];this.Zvc=0;}Object.defineProperties(k,{console:{get:function(){e || (e=new c.platform.Console("GCTAGGER"));return e;},enumerable:!1,configurable:!0}});k.prototype.gfc=function(l){var m,p;if(g){m=this.QMa;m || (m=k.console);if(!l.zvb && "undefined" !== typeof nrdp){l={type:this.name,id:this.Zvc++};this.hL.push(l.id);p=JSON.stringify(l);p=nrdp.zvb(p,(function(r,q,u,v){r.hL.splice(r.hL.indexOf(q),1);r.hL=r.hL.sort(d);for(var w=[],x=0;x < r.hL.length && 5 > x;x++)w.push(r.hL[x]);null === v || void 0 === v?void 0:v.error(("Removing instance for ").concat(u,"/").concat(q,". ") + ("").concat(r.hL.length," remaining, earliest: ").concat(w,"}"));}).bind(null,this,l.id,l.type,m));f.l && m && m.info("Creating tagged instance",l);return p;}}};return k;})();b.oWb=h;},79183:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m){return l.filter(function(p){return p.groupId === m.groupId;}).reduce((0,c.vCc)(function(p){return p.yu;}),m).yu;}Object.defineProperties(b,{__esModule:{value:!0}});b.g9a=void 0;n=a(22970);c=a(91176);f=a(66164);g=a(57141);e=a(65161);h=a(61996);k=a(62629);t=(function(){function l(m,p){this.console=m;this.config=p;this.ZBb=0;this.pe=new h.zm({xg:10,qj:this,source:"GraphStreamingProcess"});}l.prototype.tmc=function(m){var p,r,q,w,x;r={nnb:[],sQb:0,BY:-Infinity,reason:"available"};q=[];try{for(var u=n.__values(m),v=u.next();!v.done;v=u.next()){w=v.value;if(w.kw <= f.platform.time.ha())q.push(w);else if((r.sQb++,!x || w.kw < x.kw))x=w;}}catch(A){var y;y={error:A};}finally{try{v && !v.done && (p=u.return) && p.call(u);}finally{if(y)throw y.error;}}x && (r.BY=x.kw,0 === q.length && ((0,c.assert)("available" !== x.Sz,"next available streamable cannot be available"),r.reason=x.Sz));r.nnb=q;return r;};l.prototype.uGb=function(m,p){var r,q,u,v,w,x,y,A,z,D,F,H,E;u={Bf:!1,reason:"noEligibleStreamables"};v=[];if(0 < p.length){w=this.FRc(p);x=w.some(function(J){return 1 === (0,k.X$b)(J) && (0,e.rs)(J.ie);});y=w.slice();A=[!1,!1,!1,!1];z=void 0;try{for(var B=n.__values(w),C=B.next();!C.done;C=B.next()){D=C.value;if(D.cy && (!z || D.groupId === z))if(D.Ak)z=D.groupId;else if("global" !== A[D.mediaType]){F=D.dG(m,null !== (q=D.sA) && void 0 !== q?q:1);H=(0,g.ZKc)(F.reason);H && (A[D.mediaType]=H,(0,c.WKa)(y,D));if(F.NS){E=d(y,D);if(this.abc(D,x,E)){u=D.tL();this.FVa(v,D,u.reason);u.Bf && (this.ZBb=f.platform.time.ha());if(u.Bf){u.reason="success";break;}if("globalVideoMemoryLimit" === u.reason || "globalAudioMemoryLimit" === u.reason){this.console.trace("GSP.onRequestOpportunity stopping at memory limit:",u.reason);break;}"pipelineTryIssueHeaderRequest" === u.reason && (z=D.groupId,this.console.trace("GSP.onRequestOpportunity stopping due to blocking header"));}else if((this.FVa(v,D,"concurrencyCheck"),!H))break;}else this.FVa(v,D,F.reason);}}}catch(J){var G;G={error:J};}finally{try{C && !C.done && (r=B.return) && r.call(B);}finally{if(G)throw G.error;}}}this.pe.ug({streamableCount:p.length,streamableReasons:v,lastSuccessfulIssueRequestMs:this.ZBb});return u;};l.prototype.FRc=function(m){return this.FJc(m).sort(function(p,r){return p.priority - r.priority;}).map(function(p){return p.HSc;});};l.prototype.FJc=function(m){var p;p=this;return m.map(function(r){return {priority:-(0,k.T$b)(p.config,r,p.console),HSc:r};});};l.prototype.FVa=function(m,p,r){this.pe.enabled && m.push(this.Ksc(r,p));};l.prototype.Ksc=function(m,p){return {mediaType:p.mediaType,reason:m,bufferingState:p.ie,currentPlayerMs:p.fp,pathCompletePlayerMs:p.yu,streamingPlayerMs:p.Do};};l.prototype.abc=function(m,p,r){return this.config.HP && (p || (0,e.rs)(m.ie))?this.bbc(m,r):this.cbc(m,r);};l.prototype.dbc=function(m){return m.Do <= m.yu;};l.prototype.cbc=function(m,p){return m.Do - (m.fp > p?m.fp:p) <= Math.max(this.config.bca,Math.min((m.yu - m.fp) * this.config.Rea,this.config.ABc));};l.prototype.bbc=function(m,p){var r,q;if(void 0 === this.config.HP)return !0;r=this.config.HP;q=m.fp + r;return m.Do <= q?!0:this.dbc(m) && p >= q && m.Do - p < r;};n.__decorate([(0,h.gb)({methodName:"onRequestOpportunity",Re:!0})],l.prototype,"uGb",null);return l;})();b.g9a=t;},62629:function(t,b,a){var m,p,r;function d(q){return q.Do - q.fp;}function n(q,u){return Math.exp(-(Math.log(2) / q) * u);}function c(q,u){q=Math.log(2) * u / q;return (1 - Math.exp(-q)) / q;}function f(q,u){var v,w,x,y,A;v=u.hT;w=u.gT;x=u.PH;if(0 === u.hh.length)return {gla:!1};y=u.hh[0];u=y.ef;A=y.$K;y=y.duration;if(!A || 1 === x)return {gla:!1};(0,p.assert)(y,"duration should be defined when immediate probability is included in probabilities array");(0,p.assert)(0 < x,"presenting segment seamless probability cannot be zero");w-=y;if(v < w)return {gla:!1};w=v - w;v=x + w / y * (1 - x);y-=w;A=A * (1 - v) / (1 - x);q=u * v / x * n(q,y) + A * c(q,y);(0,p.assert)(1 >= q);return {gla:!0,B6b:q};}function g(q){var u,v,w,x,y;u=q.ah;v=q.e2;w=q.Fw;x=q.Do;y=q.fp;q=q.jZ;(0,p.assert)(void 0 !== v);(0,p.assert)(void 0 !== u);w=1 - w;x-=y;q?(y=v - q - x,u-=q,0 >= y?q=Math.max(0,(v - q) / u):(v=u - y,q=0 < v?x / v:0,w*=0 < v?v / u:1)):(y=v - x,0 >= y?q=v / u:(v=u - y,q=0 < v?x / v:0,w*=0 < v?v / u:1));(0,p.assert)(0 <= q);(0,p.assert)(1 >= q);(0,p.assert)(0 <= w);(0,p.assert)(1 >= w);return 1 - q * w;}function e(q,u){q=Math.log(2) / q.KJb;return h(u) * Math.exp(-q * d(u));}function h(q){var u;return (null !== (u=q.sA) && void 0 !== u?u:1) * q.hh.reduce(function(v,w){var x;x=w.$K;return v * (w.ef + (void 0 === x?0:x));},1);}function k(q){var u,v,w,x;if(0 === q.hh.length)return 0;v=0;if(1 > q.PH){v=q.hT;w=q.gT;x=null !== (u=q.hh[0].duration) && void 0 !== u?u:0;v=Math.max(0,Math.min(x,v - (w - x)));}return q.hh.reduce(function(y,A){A=A.duration;return y + (void 0 === A?0:A);},0) - v;}function l(q){return q.hh.filter(function(u){return !u.$K;}).reduce(function(u,v){return u * v.ef;},1);}Object.defineProperties(b,{__esModule:{value:!0}});b.J5c=d;b.T$b=function(q,u,v){var w,x,y,A,z,B,C,D;if(!q.JY || (0,m.rs)(u.ie))return e(q,u);x=q.KJb;q=d(u);y=k(u);A=l(u);z=f(x,u);B=z.gla;z=z.B6b;z=void 0 === z?1:z;C=1 > u.Fw?g(u):1;D=(null !== (w=u.sA) && void 0 !== w?w:1) * A * n(x,q - y) * z * C * u.hh.filter(function(F,H){return F.$K && (0 < H || !B);}).reduce(function(F,H){var E,G;E=H.$K;G=H.duration;G=void 0 === G?0:G;E=void 0 === E?0:E;H=H.ef * n(x,G) + E * c(x,G);return F * H;},1);r.l && (null === v || void 0 === v?void 0:v.log(("{").concat(u.groupId,"} [").concat(u.mediaType,"] calculateStreamablePriority: ") + ("sp: ").concat(u.Fw,", ") + ("pssp: ").concat(u.PH,", ") + ("streamingDuration: ").concat(u.e2,", ") + ("duration: ").concat(u.ah,", ") + ("seamlessProbability: ").concat(A,", ") + ("distance: ").concat(q,", immediateDistance: ").concat(y,", ") + ("risk:").concat(n(x,q - y),", ") + ("adjustedFirstTerm: ").concat(z,", streamingAdjustment: ").concat(C,", ") + ("probabilities: ").concat(JSON.stringify(u.hh)," => ").concat(D)));return D;};b.H5c=e;b.X$b=h;b.fob=l;m=a(65161);p=a(52571);r=a(48170);},45247:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u;Object.defineProperties(b,{__esModule:{value:!0}});b.Wa=b.UCc=b.eg=b.ilc=b.UG=b.spa=b.z$=b.UTa=b.zqa=b.AH=b.msa=b.Ub=b.u=b.Yw=b.Rd=b.Sf=b.pW=b.Vg=b.Vr=b.S5=b.Td=b.Lc=b.zia=b.f5=b.vz=b.W5=b.vt=b.I=void 0;b.P$c=function(v){n.platform.oTa(v);};d=a(22970);n=a(66164);d.__exportStar(a(66164),b);c=a(91176);Object.defineProperties(b,{I:{enumerable:!0,get:function(){return c.I;}}});Object.defineProperties(b,{vt:{enumerable:!0,get:function(){return c.vt;}}});d.__exportStar(a(49502),b);f=a(63576);Object.defineProperties(b,{W5:{enumerable:!0,get:function(){return f.W5;}}});Object.defineProperties(b,{vz:{enumerable:!0,get:function(){return f.vz;}}});Object.defineProperties(b,{f5:{enumerable:!0,get:function(){return f.f5;}}});d.__exportStar(a(85858),b);d.__exportStar(a(25218),b);d.__exportStar(a(40666),b);d.__exportStar(a(95407),b);d.__exportStar(a(51308),b);g=a(79048);Object.defineProperties(b,{zia:{enumerable:!0,get:function(){return g.zia;}}});e=a(91967);Object.defineProperties(b,{Lc:{enumerable:!0,get:function(){return e.Lc;}}});Object.defineProperties(b,{Td:{enumerable:!0,get:function(){return e.Td;}}});h=a(11862);Object.defineProperties(b,{S5:{enumerable:!0,get:function(){return h.S5;}}});k=a(6783);Object.defineProperties(b,{Vr:{enumerable:!0,get:function(){return k.Vr;}}});l=a(69575);Object.defineProperties(b,{Vg:{enumerable:!0,get:function(){return l.Vg;}}});m=a(52629);Object.defineProperties(b,{pW:{enumerable:!0,get:function(){return m.pW;}}});d.__exportStar(a(56820),b);p=a(28871);Object.defineProperties(b,{Sf:{enumerable:!0,get:function(){return p.Sf;}}});r=a(65161);Object.defineProperties(b,{Rd:{enumerable:!0,get:function(){return r.Rd;}}});Object.defineProperties(b,{Yw:{enumerable:!0,get:function(){return r.Yw;}}});Object.defineProperties(b,{u:{enumerable:!0,get:function(){return r.u;}}});Object.defineProperties(b,{Ub:{enumerable:!0,get:function(){return r.Ub;}}});Object.defineProperties(b,{msa:{enumerable:!0,get:function(){return r.msa;}}});Object.defineProperties(b,{AH:{enumerable:!0,get:function(){return r.AH;}}});Object.defineProperties(b,{zqa:{enumerable:!0,get:function(){return r.zqa;}}});Object.defineProperties(b,{UTa:{enumerable:!0,get:function(){return r.UTa;}}});b.z$=function(v){n.platform.oTa(v);return Promise.resolve().then(function(){return d.__importStar(a(60069));}).then(function(w){return w.z$();});};b.spa=function(v,w){n.platform.oTa(v);return Promise.resolve().then(function(){return d.__importStar(a(23102));}).then(function(x){return x.spa(w);});};b.UG=function(){return a(32838)["default"];};t=d.__importDefault(a(14282));b.ilc=t.default;t=a(36948);b.eg=t.eg;q=a(37268);b.UCc=function(){return {um:q.um};};u=a(68539);Object.defineProperties(b,{Wa:{enumerable:!0,get:function(){return u.Wa;}}});},79857:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p){var r;r=p.indexOf("?");return -1 !== r?p.slice(0,r):p;}Object.defineProperties(b,{__esModule:{value:!0}});b.Aab=void 0;n=a(22970);c=a(66164);f=a(91176);g=a(75539);e=a(61996);h=a(91967);k=a(54366);l=a(52571);m=a(48912);t=(function(){function p(r,q,u,v){var w;this.console=r;this.config=q;this.M=u;this.yA=v;this.Eda=!1;this.dVa={};this.PX=!1;this.pe=new e.zm({xg:10,qj:this,source:"LiveOCSideChannel",console:this.console});(0,l.assert)(null === (w=this.M.S.Xz) || void 0 === w?void 0:w.Jf,"Missing pbcid for OC side channel message decryption.");this.tma=new m.Dja(this.M.S.Xz.Jf);}p.prototype.Sc=function(r){this.Eda || (r.Sc(new k.On(this.pe)),this.Eda=!0);};p.prototype.Qe=function(){this.zM && (clearTimeout(this.zM),this.zM=void 0);this.uMa();this.PX=!0;};p.prototype.decode=function(r,q,u){var v,w,x,y,A,z,B,C,D,F;void 0 === u && (u=!0);if(q && (q=null === (v=(0,f.cc)(q.split(";"),function(H){return 0 === H.indexOf("sc=");})) || void 0 === v?void 0:v.slice(3)) && (!u || this.PQc(r))){r=this.tma.decrypt(q,!0);try{w=JSON.parse(r);}catch(H){this.console.error("Failed to parse decrypted OC side channel message. " + ("decryptedMessage: ").concat(r));return;}r=Number(w.time || void 0);isNaN(r) && (this.console.error(("Invalid live server time in OC side channel message. time: ").concat(w.time)),r=void 0);u=w["live-msg-start"];v=w["live-msg-end"];q=u?new Date(u).getTime():void 0;x=v?new Date(v).getTime():void 0;void 0 !== q && isNaN(q) || void 0 !== x && isNaN(x)?this.console.error("Invalid live event times in OC side channel message. " + ("live-msg-start: ").concat(u,", live-msg-end: ").concat(v)):y={startTime:u,Ua:q,endTime:v,fb:x};u=w["encoder-tag"];v=w["encoder-region"];u && v || this.console.error("Invalid encoder info in OC side channel message. " + ("encoder-tag: ").concat(u,", encoder-region: ").concat(v));q=(x=w.maxBitrate)?Number(x || void 0):0;void 0 !== q && isNaN(q) && (this.console.error(("Invalid maxBitrate in OC side channel message: ").concat(x)),q=void 0);x=w["live-msg-prefetch-start"];A=w["live-msg-prefetch-dur"];z=x?new Date(x).getTime():void 0;B=A?Number(A):void 0;if(void 0 !== z && isNaN(z) || void 0 !== B && isNaN(B))(this.console.error("Invalid postplay prefetch info in OC side channel message. " + ("live-msg-prefetch-start: ").concat(x,", live-msg-prefetch-dur: ").concat(A)),B=z=void 0);C=w["live-msg-pp-start"];w=w["live-msg-pp-dur"];D=C?new Date(C).getTime():void 0;F=w?Number(w):void 0;if(void 0 !== D && isNaN(D) || void 0 !== F && isNaN(F))(this.console.error("Invalid postplay transition info in OC side channel message. " + ("live-msg-pp-start: ").concat(C,", live-msg-pp-dur: ").concat(w)),F=D=void 0);return {bo:u,ao:v,maxBitrate:q,Wf:r,nj:y,gZa:z,cT:x,fZa:B,aT:A,aZa:D,YS:C,$Ya:F,XS:w};}};p.prototype.PQc=function(r){var q;q=c.platform.time.ha();if(void 0 !== this.dVa[r] && q - this.dVa[r] < (void 0 === this.M.nj.endTime?this.config.rY:Math.max(this.config.rY,this.config.dna)))return !1;this.dVa[r]=q;return !0;};p.prototype.YIb=function(r,q,u,v,w,x,y){var A,z,B;A=this;w=this.decode(v,w);void 0 !== w && (void 0 === w.Wf || isNaN(w.Wf) || void 0 === x || isNaN(x) || this.M.Kfa(w.Wf,x),void 0 !== w.nj && this.M.Cxa(w.nj.startTime,w.nj.endTime),this.M.TQb(v,{bo:w.bo,ao:w.ao,bwa:y,ob:r.Sa}),w.maxBitrate && !isNaN(w.maxBitrate) && (r.track.RR=w.maxBitrate,r.track.tea(h.oW.ANb,w.maxBitrate)),void 0 === w.cT || void 0 === w.gZa || isNaN(w.gZa) || void 0 === w.aT || void 0 === w.fZa || isNaN(w.fZa) || this.M.F2("prefetch",w.cT,w.aT),void 0 === w.YS || void 0 === w.aZa || isNaN(w.aZa) || void 0 === w.XS || void 0 === w.$Ya || isNaN(w.$Ya) || this.M.F2("execute",w.YS,w.XS),this.pe.j7("processMessage",{parsed:!0,url:d(u),pbcid:null === (z=this.M.S.Xz) || void 0 === z?void 0:z.Jf,time:c.platform.time.now(),encoderTag:w.bo,encoderRegion:w.ao,maxBitrate:w.maxBitrate,serverTimeMs:w.Wf,liveEventTimes:w.nj,prefetchStartMs:w.gZa,prefetchDurationMs:w.fZa,postplayStartMs:w.aZa,postplayDurationMs:w.$Ya}),this.zM && (clearTimeout(this.zM),this.zM=void 0),this.config.LY && (this.YBb=r,this.hVa=u,this.tyc=y,this.aVa=q,void 0 === (null === (B=w.nj) || void 0 === B?void 0:B.endTime) && (this.zM=setTimeout(function(){A.iva();},this.config.x_))));};p.prototype.iva=function(){var r,q,u;r=this;q=!1;u=this.YBb;u && !this.PX && ((0,l.assert)(this.aVa),(0,l.assert)(this.hVa),this.uMa(),this.jva=new g.$Da(u,this.hVa,this.yA.zd.track,"refreshOC",{responseType:0},{offset:0,ma:8},this,this.aVa,this.config,this.console),this.jva.open()?q=!0:(this.uMa(),q=!1));this.pe.ug({time:c.platform.time.now(),issued:q});this.config.LY && (this.zM=setTimeout(function(){r.iva();},this.config.x_));};p.prototype.uMa=function(){this.jva && (this.jva.Qe(),this.jva=void 0);};p.prototype.cM=function(r){var q,u;u=r.getResponseHeader("X-TCP-Info",!1);null === (q=r.stream.M.FL) || void 0 === q?void 0:q.YIb(this.YBb,this.aVa,this.hVa,r.mediaType,u,void 0,this.tyc);r.abort();};p.prototype.yy=function(r){var q;q=this;r.abort();this.config.LY && (this.zM=setTimeout(function(){q.iva();},this.config.x_));};p.prototype.Kta=function(){};p.prototype.BS=function(){};p.prototype.ND=function(){};p.prototype.uo=function(){};p.prototype.z0=function(){};p.prototype.CS=function(){};p.prototype.Jta=function(){};p.prototype.Lta=function(){};n.__decorate([(0,e.gb)({methodName:"refreshOCSideChannel",Re:!1})],p.prototype,"iva",null);return p;})();b.Aab=t;},18905:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Y4=void 0;a(22970).__exportStar(a(36670),b);d=a(92517);Object.defineProperties(b,{Y4:{enumerable:!0,get:function(){return d.Y4;}}});},36670:function(t,b){var a,d;Object.defineProperties(b,{__esModule:{value:!0}});b.QFa=b.Me=void 0;(function(n){n[n.Xp=0]="OK";n[n.TEMPORARY=1]="TEMPORARY";n[n.Yp=2]="PERMANENT";})(a || (b.Me=a={}));(function(n){n[n.iC=0]="STARTUP";n[n.R_b=1]="REBUFFER";})(d || (b.QFa=d={}));},92517:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;Object.defineProperties(b,{__esModule:{value:!0}});b.Y4=void 0;d=a(22970);n=d.__importStar(a(17267));t=a(90745);c=a(66164);a(97685);f=a(91176);g=a(8149);e=d.__importDefault(a(14282));h=a(52571);k=a(36670);l=a(54962);m=new c.platform.Console("ASEJS_LOCATION_SELECTOR","media|asejs");a=(function(p){var l_P;l_P=2;for(;l_P !== 34;){switch(l_P){case 8:r.prototype.JZ=function(q,u){var D1y,v,w;D1y=2;for(;D1y !== 5;){switch(D1y){case 2:return u && q && (!(0,g.yk)(u) || (0,g.yk)(u) && (null === (v=u.track) || void 0 === v?0:v.Jzb))?null !== (w=u.JZ(void 0,q)) && void 0 !== w?w:"":"";break;}}};r.prototype.RJ=function(q,u,v){var S0u;S0u=2;for(;S0u !== 14;){switch(S0u){case 2:void 0 === v && (v=e.default.uz.dbb);this.vh.RJ(q,u,v);this.ska=c.platform.time.ha();u=q.Yf;q=q.Ji;(0,h.assert)(this.za && (0,f.GA)(u) && !!q || !this.za && !(0,f.GA)(u) && !q);this.za && (this.Rzc=q.zEc);S0u=7;break;case 7:this.QM=null;this.L1=v;S0u=14;break;}}};l_P=6;break;case 21:r.prototype.HHc=function(){var c7T,q;c7T=2;for(;c7T !== 5;){switch(c7T){case 2:q=this;c7T=1;break;case 1:this.Jsa || this.vh.EZ().forEach(function(u){var Q4t;Q4t=2;for(;Q4t !== 1;){switch(Q4t){case 2:u.Og === k.Me.TEMPORARY && q.Xl.fail(u.id,c.platform.time.ha());Q4t=1;break;}}});c7T=5;break;case 3:q=this;c7T=3;break;}}};return r;break;case 4:r.prototype.YG=function(q){var f7t;f7t=2;for(;f7t !== 1;){switch(f7t){case 4:return this.vh.YG(q);break;case 2:return this.vh.YG(q);break;}}};r.prototype.ypa=function(q){var z0D;z0D=2;for(;z0D !== 1;){switch(z0D){case 2:return this.vh.ypa(q);break;case 4:return this.vh.ypa(q);break;}}};r.prototype.dRa=function(q){var K5M;K5M=2;for(;K5M !== 1;){switch(K5M){case 2:return this.vh.dRa(q);break;}}};l_P=8;break;case 2:d.__extends(r,p);r.prototype.EZ=function(){var U5z;U5z=2;for(;U5z !== 1;){switch(U5z){case 2:return this.vh.EZ();break;case 4:return this.vh.EZ();break;}}};r.prototype.w0a=function(q){var g5n;g5n=2;for(;g5n !== 1;){switch(g5n){case 4:return this.vh.w0a(q);break;case 2:return this.vh.w0a(q);break;}}};l_P=4;break;case 6:r.prototype.Gxa=function(q,u,v,w){var d78,x,y,A,z,B,C;d78=2;for(;d78 !== 10;){switch(d78){case 2:(x=this,y=this.config,A=this.TVc(v,y));c.platform.PC && c.platform.PC(q);d78=5;break;case 5:d78=this.vh.Ud()?4:3;break;case 8:d78=!this.QM?7:6;break;case 4:return !1;break;case 3:(z=0,B=this.UVc(y));n.rd(this.QM) && (this.QM=this.VVc());d78=8;break;case 6:C=this.QM;d78=14;break;case 13:return (this.YH(e.default.gk.bJ,!1),!1);break;case 12:var m7S="(empt";m7S+="y";m7S+=" st";m7S+="ream list)";var O6w="Did not ";O6w+="find a URL for ANY s";O6w+="tream...";var B1E="n";B1E+="etwor";B1E+="kFailed";var i5D="Network has ";i5D+="failed, not updating st";i5D+="ream selection";u.forEach(function(D,F){var s_e,H,E;s_e=2;for(;s_e !== 5;){switch(s_e){case 2:var o4L=" K";o4L+="bp";o4L+="s)";var r54=" ";r54+="(";var s46="]";s46+=" ";var z5w="Failin";z5w+="g";z5w+=" str";z5w+="eam [";E=D.id;x.vmc(C,D,y,A,v,B)?(D.ko=!1,D.Og=void 0,D.np && ++z):D.Og && D.Og === k.Me.TEMPORARY?x.vh.jca=k.Me.TEMPORARY:D.ko || (m.warn(z5w.concat(F,s46).concat(E,r54).concat(D.bitrate,o4L)),D.Jbc(),D.ko=!0,w && D.Sa === w.Sa && (x.vh.jca=null !== (H=D.Og) && void 0 !== H?H:k.Me.Xp));s_e=5;break;}}});return this.vh.Ud()?(m.warn(i5D),this.Jsa=!0,this.emit(B1E,{Sqa:this.vh.jca === k.Me.Yp}),!1):0 === z?(m.warn(O6w.concat(u.length?"":m7S)),this.YH(e.default.gk.bJ,!0),!1):!0;break;case 14:d78=!C.length?13:12;break;case 7:return (this.YH(e.default.gk.bJ,!1),!1);break;}}};r.prototype.vmc=function(q,u,v,w,x,y){var u27,A,z,B;u27=2;for(;u27 !== 5;){switch(u27){case 2:(A=this,z=u.id,B=this.bd.get());return q.some(function(C){var b1m,F,D;b1m=2;for(;b1m !== 8;){switch(b1m){case 1:b1m=!D?5:4;break;case 4:F=D.Sj[0];void 0 === u.Nua && (u.Nua=F.id,u.nZa=D.J2[F.id][0].Ab.id);return D.J2[C.id].some(function(H){var Q3F,E;Q3F=2;for(;Q3F !== 8;){switch(Q3F){case 2:E=A.ebc(H,u,v.RH,w,x);Q3F=1;break;case 5:return E;break;case 1:Q3F=!E?5:4;break;case 4:A.iWc(H,C,q,u,D,v.RH,w,x);A.jWc(v,B,C,u,y);return !0;break;}}});break;case 5:return !1;break;case 2:D=C.streams[z];b1m=1;break;}}});break;}}};r.prototype.UVc=function(q){var T3O,u,v;T3O=2;for(;T3O !== 3;){switch(T3O){case 5:this.bd.location && u.confidence >= v && (q=this.vh.Sj[this.bd.location]) && (q.yb=u);return v;break;case 2:(u=this.bd.get(),v=e.default.sr.sV);q.Gsa && (v=e.default.sr.rV);T3O=5;break;}}};r.prototype.TVc=function(q,u){var X0Q,v;X0Q=2;for(;X0Q !== 3;){switch(X0Q){case 2:v=!1;this.za && void 0 !== q && q !== this.Hjb && (void 0 === this.Ijb || c.platform.time.ha() - this.Ijb > u.mzc) && (this.Hjb=q,this.Ijb=c.platform.time.ha(),v=!0);v && (this.QM=null);X0Q=4;break;case 4:return v;break;}}};l_P=11;break;case 11:r.prototype.ebc=function(q,u,v,w,x){var f6S;f6S=2;for(;f6S !== 1;){switch(f6S){case 2:return this.vh.ko(q.Ab)?(u.Og=q.Ab.Og,v && u.Ab === q.Ab.id && q.Ab.WD && (u.WD=q.Ab.WD),!1):this.vh.ko(q)?(u.Og=q.Og,!1):w && q.y_ && !q.y_.some(function(y){var F8p=X8rQy;var e7y;e7y=2;for(;e7y !== 1;){switch(e7y){case 4:F8p.r4q(5);return F8p.M4Q(x,y);break;case 2:F8p.T2D(6);return F8p.M4Q(y,x);break;}}})?!1:!0;break;}}};r.prototype.iWc=function(q,u,v,w,x,y,A,z){var t40,B,C;t40=2;for(;t40 !== 6;){switch(t40){case 2:var v1Y="u";v1Y+="n";v1Y+="kn";v1Y+="ow";v1Y+="n";(B=v1Y,C=x.Sj[0]);t40=1;break;case 1:var w85="locati";w85+="o";w85+="nfailov";w85+="er";var r3Q="serverf";r3Q+="a";r3Q+="i";r3Q+="lover";var I3z="p";I3z+="erfo";I3z+="rma";I3z+="nc";I3z+="e";C.id !== u.id && this.Uac(x);w.location !== u.id && (y?w.HUa=u.id === C.id:B=u !== v[0] && A && x.sVa !== z?"" + e.default.uz.H0b:u !== v[0]?"" + e.default.uz.kza:void 0 === w.location?"" + e.default.uz.iC:n.ey(w.QBb) || w.QBb === u.id?n.ey(w.VBb) || w.VBb === q.Ab.id?I3z:r3Q:w85,w.location=u.id,w.zVa=u.level,w.Gu=B);w.url=q.url;w.Ab=q.Ab.id;w.oea=q.Ab.name;w.Gw=q.Ab.type;A && (x.sVa=z);t40=6;break;}}};r.prototype.jWc=function(q,u,v,w,x){var v0e;v0e=2;for(;v0e !== 5;){switch(v0e){case 2:w.yb=q.Ula?v.yb.confidence >= e.default.sr.rV || u.confidence < x?v.yb:u:u.confidence === e.default.sr.HAVE_NOTHING || v.yb.confidence >= e.default.sr.rV?v.yb:u;q.KY && !w.yb.Wx && (w.yb.Wx=v.yb.Wx);v0e=5;break;}}};r.prototype.Uac=function(q){var B9k,u,v,w,x,y;B9k=2;for(;B9k !== 5;){switch(B9k){case 2:var D$X="issueServe";D$X+="rProbeReque";D$X+="st";(u=c.platform.time.ha(),v=this.config,w=q.urls[0].Ab,x=w.id,y=this.afa[x]);this.vh.ko(w) && (y?v.cda && u > y.kFb && (v=Math.min(2 * y.fLb,v.Fba),this.afa[x]={aub:y.aub,fLb:v,kFb:u + v},this.emit(D$X,{Ab:w,url:this.vh.gtc(q,x),stream:q})):this.afa[x]={aub:u,fLb:v.U_,kFb:u + v.U_});B9k=5;break;}}};r.prototype.fPc=function(q,u){var W$U,v,w;W$U=2;for(;W$U !== 4;){switch(W$U){case 2:(v=[],w=/^http(s?):\/\/([^\/:]+):?([0-9]*)/);n.forEach(this.vh.urls,function(x,y){var s$u,A,C,z,B;s$u=2;for(;s$u !== 13;){switch(s$u){case 5:s$u=A && 4 === A.length?4:13;break;case 2:x=x.Ab;A=y.match(w);s$u=5;break;case 8:s$u=n.Fi(B) && n.Fi(A) && B === q && A == u?7:13;break;case 7:x.urls.some(function(D){var v2A;v2A=2;for(;v2A !== 5;){switch(v2A){case 2:v2A=D.url === y?1:5;break;case 9:return (C=D,~5);break;case 1:return (C=D,!0);break;case 3:v2A=D.url !== y?5:3;break;}}});C && v.push({url:C,Ab:x});s$u=13;break;case 4:var S1i="8";S1i+="0";var Z4l="4";Z4l+="4";Z4l+="3";(z="s" === A[1],B=A[2]);A=A[3];A.length || (A=z?Z4l:S1i);s$u=8;break;}}});return v;break;}}};r.prototype.YH=function(q,u,v,w){var c7B,H55,x,y,A;c7B=2;for(;c7B !== 33;){switch(c7B){case 6:x.Og=A;l.fJ.cJb(x);this.Jsa=this.Jsa || this.vh.Ud();c7B=12;break;case 25:w && (this.L1=e.default.uz.n_b,x.WD=w);this.vh.dump();c7B=33;break;case 18:var r90=" ";r90+="ser";r90+="v";r90+="erId = ";var F37="Emitting netw";F37+="or";F37+="kFail";F37+="ed, permanent =";F37+=" ";y=y?y.id:void 0;q=q === k.Me.Yp;m.warn(F37.concat(q,r90).concat(y));c7B=15;break;case 23:c7B=H55 === k.Me.TEMPORARY?6:22;break;case 20:c7B=y && y.vq !== e.default.gk.CO?19:18;break;case 4:c7B=x?3:34;break;case 5:x=x.parent;c7B=1;break;case 10:y=x;c7B=20;break;case 21:c7B=35;break;case 34:var W3M="Unable to find failure en";W3M+="tity ";W3M+="for URL ";m.warn(W3M.concat(v));c7B=33;break;case 27:this.QM=null;this.L1=e.default.uz.Tp;c7B=25;break;case 12:q=this.vh.jca;c7B=11;break;case 19:y=y.parent;c7B=20;break;case 9:var t9F=" ";t9F+=": ";t9F+="w";t9F+="as";t9F+=" ";var u32=" ";u32+="a";u32+="t";u32+=" ";var Y3A=" failure rep";Y3A+="orted for";Y3A+=" ";var D9X="T";D9X+="E";D9X+="M";D9X+="P";var B0Z="P";B0Z+="E";B0Z+="R";B0Z+="M";var D9w="re";D9w+="por";D9w+="t";D9w+="Fa";D9w+="ilure: ";m.warn(D9w.concat(u?B0Z:D9X,Y3A).concat(e.default.gk.name[q],u32).concat(l.fJ.IDc(x),t9F).concat(l.fJ.Vlc(x)));c7B=8;break;case 15:var a9I="ne";a9I+="two";a9I+="r";a9I+="kFai";a9I+="led";this.emit(a9I,{Sqa:q,dd:y});c7B=27;break;case 22:c7B=H55 === k.Me.Xp?6:21;break;case 8:H55=x.Og;c7B=H55 === k.Me.Yp?7:23;break;case 35:var H3m="I";H3m+="nvalid";H3m+=" failure sta";H3m+="te";throw Error(H3m);c7B=6;break;case 11:c7B=q > y?10:27;break;case 7:return;break;case 1:c7B=x && x.parent && x.vq !== q?5:4;break;case 2:(x=q !== e.default.gk.bJ && v?this.vh.urls[v]:this.vh.GD,y=this.vh.jca,A=u?k.Me.Yp:k.Me.TEMPORARY);c7B=1;break;case 3:c7B=A !== x.Og?9:33;break;}}};r.prototype.D_a=function(q,u){var Q8X;Q8X=2;for(;Q8X !== 3;){switch(Q8X){case 2:Q8X=(q=this.vh.Hk[q])?1:5;break;case 1:(l.fJ.reset(q,u),l.fJ.dJb(q));Q8X=5;break;case 5:this.QM=null;this.L1=e.default.uz.uEa;Q8X=3;break;}}};l_P=15;break;case 15:r.prototype.t1=function(){var P3j;P3j=2;for(;P3j !== 5;){switch(P3j){case 2:l.fJ.reset(this.vh.GD,!1);this.afa={};P3j=5;break;}}};r.prototype.dXa=function(q){var l4i;l4i=2;for(;l4i !== 1;){switch(l4i){case 2:this.F3b(q);l4i=1;break;}}};r.prototype.ml=function(){var D6Q;D6Q=2;for(;D6Q !== 1;){switch(D6Q){case 2:this.HMc(k.QFa.R_b);D6Q=1;break;}}};l_P=25;break;case 25:r.prototype.Ka=function(){var S87;S87=2;for(;S87 !== 1;){switch(S87){case 2:this.config.hAc && this.HHc();S87=1;break;}}};r.prototype.uN=function(q){var E0q;E0q=2;for(;E0q !== 1;){switch(E0q){case 2:delete this.afa[q];E0q=1;break;}}};r.prototype.VVc=function(){var x5A,w,q,u,v;x5A=2;for(;x5A !== 6;){switch(x5A){case 8:v.sort(function(x,y){var J7Q;J7Q=2;for(;J7Q !== 1;){switch(J7Q){case 2:return x.level - y.level || x.Ac - y.Ac;break;}}});return v;break;case 4:w=c.platform.time.ha();x5A=3;break;case 5:return null;break;case 3:x5A=null === this.ska || this.ska + u.lba < w?9:8;break;case 1:x5A=0 === v.length?5:4;break;case 2:(q=this,u=this.config,v=this.vh.EZ().filter(function(x){var Z7Q;Z7Q=2;for(;Z7Q !== 1;){switch(Z7Q){case 2:return !q.vh.ko(x) && 0 !== x.level;break;}}}));x5A=1;break;case 9:(v.forEach(function(x){var x8x;x8x=2;for(;x8x !== 1;){switch(x8x){case 2:x.id !== q.bd.location && (x.yb=q.Xl.get(x.id));x8x=1;break;}}}),this.ska=w);x5A=8;break;}}};r.prototype.HMc=function(q){var y$R,u;y$R=2;for(;y$R !== 4;){switch(y$R){case 2:u=this.bd.location;this.OJc=q;this.vh.EZ().forEach(function(v){var o6_;o6_=2;for(;o6_ !== 1;){switch(o6_){case 2:v.id !== u && v.yb && v.yb.confidence > e.default.sr.sV && (v.yb.confidence=e.default.sr.sV);o6_=1;break;}}});y$R=4;break;}}};l_P=21;break;}}function r(q,u,v,w,x,y){var O9P,A;O9P=2;for(;O9P !== 17;){switch(O9P){case 11:A.RJ(q,u,e.default.uz.iC);A.Jsa=!1;O9P=20;break;case 2:A=p.call(this) || this;A.bd=v;A.Xl=w;A.config=x;O9P=3;break;case 20:var m36="1S";m36+="I";m36+="Yb";m36+="ZrN";m36+="JCp9";A.afa={};m36;return A;break;case 3:var p2V="L";p2V+="I";p2V+="V";p2V+="E";A.F3b=y;A.Hjb=p2V;A.OJc=k.QFa.iC;O9P=7;break;case 7:A.ska=null;A.QM=null;A.L1=e.default.uz.iC;A.za=(0,f.GA)(q.Yf);A.vh=new l.fJ(w,A.za);O9P=11;break;}}}})(t.EventEmitter);b.Y4=a;},54962:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.fJ=void 0;d=a(22970);n=d.__importStar(a(17267));t=a(66164);c=a(65161);f=d.__importDefault(a(14282));g=a(36670);e=new t.platform.Console("ASEJS_OC_NETWORK","media|asejs");a=(function(){function h(k,l){this.Xl=k;this.za=l;this.Sj={};this.Hk={};this.streams={};this.urls={};this.kca=[];this.GD={id:"network",vq:f.default.gk.bJ,Og:g.Me.Xp,WD:void 0,parent:void 0,children:this.kca};}h.cJb=function(k){var l,m,p;k=k.parent;l=!1;if(k && k.children){m={};m[g.Me.Xp]=[];m[g.Me.Yp]=[];m[g.Me.TEMPORARY]=[];p=k.children;p.forEach(function(r){r && m[r.Og].push(r);});0 < m[g.Me.Xp].length || (m[g.Me.Yp].length === p.length?k.Og !== g.Me.Yp && (k.Og=g.Me.Yp,e.error("PERM failing :",f.default.gk.name[k.vq] + " " + k.id),l=!0):k.Og === g.Me.Xp && (k.Og=g.Me.TEMPORARY,e.error("TEMP failing :",f.default.gk.name[k.vq] + " " + k.id),l=!0),l && h.cJb(k));}};h.IDc=function(k){var m;for(var l=[];k;k=k.parent)switch(k.vq){case f.default.gk.CO:m=k;l.unshift(m.id + "(" + m.name + ")");break;case f.default.gk.LOCATION:l.unshift(k.id);break;case f.default.gk.URL:l.unshift("");}return l.length?"/" + l.join("/"):"";};h.dJb=function(k){var l;if((k=k.parent) && 0 < k.children.length && k.Og !== g.Me.Xp){l={};l[g.Me.Xp]=[];l[g.Me.Yp]=[];l[g.Me.TEMPORARY]=[];k.children.forEach(function(m){m && l[m.Og].push(m);});0 < l[g.Me.Xp].length && (k.Og=g.Me.Xp,h.dJb(k));}};h.Vlc=function(k){switch(k.Og){case g.Me.Xp:return "OK";case g.Me.Yp:return "FAILED PERMANENTLY";case g.Me.TEMPORARY:return "FAILED TEMPORARILY";default:return "INVALID";}};h.reset=function(k,l){if(k.Og === g.Me.TEMPORARY || k.Og === g.Me.Yp && l)k.Og=g.Me.Xp;k.children && k.children.forEach(function(m){m && h.reset(m,l);});};h.prototype.EZ=function(){return this.kca;};h.prototype.gtc=function(k,l){for(var m=0;m < k.urls.length;m++)if(k.urls[m].Ab.id === l)return k.urls[m];};h.prototype.Ud=function(){return this.ko(this.GD);};Object.defineProperties(h.prototype,{jca:{get:function(){return this.GD.Og;},set:function(k){this.GD.Og=k;},enumerable:!1,configurable:!0}});h.prototype.w0a=function(k){if((k=this.urls[k]) && k.parent)return k.parent.id;};h.prototype.YG=function(k){return this.Hk[k];};h.prototype.ypa=function(k){var l,m,q;m=[];try{for(var p=d.__values(Object.keys(this.urls)),r=p.next();!r.done;r=p.next()){q=this.urls[r.value];q.url === k.url && m.push(q.Ab);}}catch(v){var u;u={error:v};}finally{try{r && !r.done && (l=p.return) && l.call(p);}finally{if(u)throw u.error;}}return m;};h.prototype.dRa=function(k){for(var l in this.streams)if(this.streams[l].u7 === k)return this.streams[l];};h.prototype.RJ=function(k,l,m){var p,r,q,u;p=this;void 0 === m && (m=f.default.uz.dbb);k.locations.forEach(function(v){var w,x,y,A;w=v.key;if(p.Sj[w])(p.Sj[w].Ac=v.rank,p.Sj[w].level=v.level,p.Sj[w].weight=v.weight);else {x=[];y=p.Xl.get(w);A=p.GD;v={id:w,vq:f.default.gk.LOCATION,Og:g.Me.Xp,Ac:v.rank,level:v.level,weight:v.weight,WD:void 0,parent:A,children:x,Hk:x,streams:{},yb:y};p.Sj[v.id]=v;A.children.push(v);}});this.kca.sort(function(v,w){return v.level - w.level || v.Ac - w.Ac;});k.servers.forEach(function(v){var w,x,y;w=v.id;if(p.Hk[w])p.Hk[w].Ac=v.rank;else {x=p.Sj[v.key];if(x){y=[];v={id:w,vq:f.default.gk.CO,Og:g.Me.Xp,WD:void 0,parent:x,children:y,urls:y,name:v.name,type:v.type,Ac:v.rank,location:x};p.Hk[v.id]=v;x.children.push(v);}}});u=!0;l && (u=!1,this.cKc(l));k.audio_tracks.forEach(function(v){p.tZa(c.u.X,v,u);});k.video_tracks.forEach(function(v){p.tZa(c.u.U,v,u);});null === (r=k.timedtexttracks) || void 0 === r?void 0:r.forEach(function(v){p.UJc(v,u);});null === (q=k.mediaEventTracks) || void 0 === q?void 0:q.forEach(function(v){p.tZa(c.u.sm,v,u);});k=this.kca.filter(function(v){var w;w=v.Hk.every(function(x){return 0 === x.urls.length;});w && (v.Hk.forEach(function(x){p.Hk[x.id]=void 0;}),p.Sj[v.id]=void 0,v.parent=void 0,v.children.length=0,v.streams={});return !w;});k.forEach(function(v){v.Hk.sort(function(w,x){return w.Ac - x.Ac;});});this.kca=k;this.GD.children=k;this.dump();};h.prototype.ko=function(k){return k.Og !== g.Me.Xp;};h.prototype.cKc=function(k){var m,p,r;function l(w){Object.keys(w).forEach(function(x){var y,A;y=w[x];r.add(x);if(y){A=p.streams[x];p.streams[x]=A?d.__assign(d.__assign({},A),y):{id:x,bitrate:y.bitrate,Pb:null,type:y.mediaType,clear:y.xk?!1:!0,np:!0,urls:[],J2:{},Sj:[],u7:y,sVa:p.za?"LIVE":void 0};}});}p=this;r=new Set();try{for(var q=d.__values(k),u=q.next();!u.done;u=q.next())l(u.value);}catch(w){var v;v={error:w};}finally{try{u && !u.done && (m=q.return) && m.call(q);}finally{if(v)throw v.error;}}Object.keys(this.streams).forEach(function(w){r.has(w) || delete p.streams[w];});};h.prototype.tZa=function(k,l,m){var p;p=this;l.streams.forEach(function(r){p.WIb(k,r.downloadable_id.toString(),r,m);});};h.prototype.UJc=function(k,l){var m;if("none" !== k.id){m=k.downloadableIds["imsc1.1"];(k=k.ttDownloadables["imsc1.1"]) && m && this.WIb(c.u.Ca,m,k,l);}};h.prototype.WIb=function(k,l,m,p){var r,q;r=this.streams[l];if(n.ey(r) && p){p="";r=0;q=null;if(k === c.u.U || k === c.u.X)(p=m.content_profile,r=m.bitrate,k === c.u.U && (q=m.vmaf));r={id:l,bitrate:r,Pb:q,type:k,profile:p,clear:0 === p.indexOf("none-"),np:!0,urls:[],J2:{},Sj:[],sVa:this.za?"LIVE":void 0};this.streams[r.id]=r;}else if(!r && !p)return;this.VJc(r,m.urls);n.g9(r.J2,function(u){u.sort(function(v,w){return v.Ab.Ac - w.Ab.Ac;});});r.Sj=r.Sj.sort(function(u,v){return u.level - v.level || u.Ac - v.Ac;});};h.prototype.VJc=function(k,l){var m;m=this;l.forEach(function(p){var r,q,u,v,w;r=p.url;q=m.urls[r];u=m.Hk[p.cdn_id];m.za && (v=p.liveOcaCapabilities);if(u){n.ey(q) && (q={id:r,vq:f.default.gk.URL,Og:g.Me.Xp,WD:void 0,parent:u,children:[],url:r,Ab:u,stream:k,y_:v},m.urls[r]=q,u.children.push(q));w=u.location;k.urls.push(q);0 === k.Sj.filter(function(x){return x.id === w.id;}).length && k.Sj.push(w);w.streams[k.id]=k;(p=k.J2[w.id])?p.push(q):k.J2[w.id]=[q];}});};h.prototype.dump=function(){};return h;})();b.fJ=a;},62614:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Lqc=function(a){var d;a=a.Ji;if(!a)return 0;d=a.LT;return 1E3 * Object.keys(d).reduce(function(n,c){c=d[c];return Math.max(n,c.duration / c.O);},0);};},82924:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.E5a=void 0;d=a(91176);n=a(7559);t=(function(){function c(f,g,e){this.config=f;this.vg=g;this.console=e;}c.prototype.Us=function(f){this.Ea=f.Ea;};c.prototype.append=function(f,g){var e,h,k,l,m,p,r,q,u,v,w,x,y;if(f.rh)return f;e=!1;h=(0,n.bxb)(this.config,this.vg);k=f.La;l=f.offset;m=f.ef;p=f.Dh;r=k.Ob;q=k.Sb;u=k.OA;u=k.Gi || u;if(!f.La.pa || !u || m)return f;v=k.ta.ea(k.qa);u=Math.floor(v.nf(this.Ea));w=g.JWa || r.ea(this.Ea.eh(2));x=w.ea(q);r=u;y=!1;g.JWa && (g=this.eob(v,x,x),r=g.rl,y=g.pFb);h=w.ea(d.I.Ba(h));q=d.I.max(h.ea(q),d.I.ia);y || (q=this.eob(v,q,x),r=q.rl,q.pFb && (--r,this.Ea.eh(r)));r < (this.config.CCc || 1)?e=!0:0 < u - r && f.La.Dna(u - r);return {La:k,offset:l,ef:m,rh:e,Dh:p};};c.prototype.eob=function(f,g,e){var h;f=d.I.min(f,g);f=Math.floor(f.nf(this.Ea));g=this.Ea.eh(f);e=e.ea(g);h=0 < f && e.lessThan(d.I.xy);return {rl:f,zcd:g,p8c:e,pFb:h};};return c;})();b.E5a=t;},44237:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.hza=void 0;d=a(91176);n=a(48170);t=(function(){function c(f){this.console=f;this.tM=d.I.ia;}c.prototype.Us=function(f){f=f.Sh?f.ze || d.I.ia:d.I.ia;this.ze && (this.tM=f.ea(this.ze),n.l && this.console.log("AudioDiscontinuity: profile timestamp offset change: " + this.tM.ca()));this.ze=f;};c.prototype.append=function(f){var g,e,h,k,l,m;if(f.rh)return f;g=f.La;e=f.offset;h=f.Dh;k=g.qa;l=g.ta;m=k.add(e);e=l.add(e);if(!this.zL)return (this.zL=e,f);l=this.zL.add(this.tM);m=m.ea(l);this.zL=e;this.tM=d.I.ia;if(m.equal(d.I.ia))return f;f.Dh=h || [];g={stream:g.Sa,pts:k.G,gap:m.G};f.Dh.push({type:"logdata",target:"endplay",fields:{audiodisc:{type:"array",value:g}}});n.l && this.console.log(("AudioDiscontinuity: ").concat(JSON.stringify(g)));return f;};return c;})();b.hza=t;},75811:function(t,b,a){var c,f,g,e,h,k,l;function d(m,p,r,q,u,v,w){var x,y,A,z,B,C;if(void 0 !== m.ywa || void 0 !== m.o1a || m.gs || m.wq){p=(null !== (x=m.end) && void 0 !== x?x:p) - m.start;x=Array(p);y=m.gs;A=m.Ytb?m.Ytb - 1:0;z=m.Ztb?m.Ztb - 1:0;B=Math.min(p,Math.max(m.ywa || 0,w && y && !A?1:0));m=Math.min(p - B,Math.max(m.o1a || 0,w && r && !z?1:0));w=Math.floor(u.nf(q));q=Math.max(0,Math.min(p - B - m,y?Math.max(0,w - A):0));C=Math.max(0,Math.min(p - B - m - q,r?Math.max(0,w - z):0));q=B + q;u=p - m - C;z=z?0:Math.max(0,w + 1 - C);w=(1 - v) / (w + 1);for(C=0;C < p;++C)x[C]=C < B?-Infinity:C >= p - m?-Infinity:y && C < q?n(v + (C - B + A) * w):r && C >= u?n(1 - (C - u + z + 1) * w):0;return x;}}function n(m){return 20 * Math.log(m) / Math.log(10);}Object.defineProperties(b,{__esModule:{value:!0}});b.F5a=void 0;c=a(22970);f=a(91562);g=a(91176);e=a(69575);h=a(52571);k=a(65161);l=a(47267);t=(function(m){var J4e;J4e=2;for(;J4e !== 8;){switch(J4e){case 2:c.__extends(p,m);p.prototype.pa=function(r,q){var N9x,C,D,F,H,E,B,y,A,z,G,u,v,w,x;N9x=2;for(;N9x !== 39;){switch(N9x){case 11:return {success:!1};break;case 8:var K20="AudioMe";K20+="diaFragmentE";K20+="ditor: fragment has missing r";K20+="esponses";(0,h.assert)(r.oR,K20);N9x=7;break;case 32:N9x=!D?31:30;break;case 9:return {success:!0};break;case 25:E && y.push.apply(y,c.__spreadArray([],c.__read(E),!1));N9x=24;break;case 31:return {success:D};break;case 18:(C=this.hjc(r,z,q,B),D=C.success,F=C.ys,H=C.data,E=C.FK);N9x=17;break;case 10:B=!1 === r.Fna && !y.every(function(J){var B40=X8rQy;var k2r;k2r=2;for(;k2r !== 1;){switch(k2r){case 2:B40.T2D(7);return B40.M4Q(ArrayBuffer,J);break;case 4:B40.r4q(7);return B40.M4Q(ArrayBuffer,J);break;}}});y=[];N9x=19;break;case 14:(y=r.Cu,A=this.Wtb(y),z=A.GWa);A=A.rT;N9x=12;break;case 30:F && x.push(F);D=H?[(0,e.Zz)(H)]:void 0;N9x=28;break;case 3:N9x=!r.pa?9:8;break;case 23:C=D?(0,e.Zz)(D):z;q=this.ijc(r,C,F,q,B);D=q.success;F=q.ys;H=q.data;E=q.FK;N9x=32;break;case 17:N9x=!D?16:15;break;case 44:G=z.byteLength - C.byteLength + y.reduce(function(J,L){var C2Z;C2Z=2;for(;C2Z !== 1;){switch(C2Z){case 2:return J + L.remove;break;}}},0);E.forEach(function(J){var y1F;y1F=2;for(;y1F !== 1;){switch(y1F){case 2:J.offset+=G;y1F=1;break;}}});N9x=42;break;case 2:var K8_="AudioM";K8_+="ediaFragme";K8_+="ntEditor [${fragment.mediaType}]: Attempt to edit ap";K8_+="pended fragment";void 0 === q && (q=!0);x=[];(0,h.assert)(!r.AC,K8_);N9x=3;break;case 7:N9x=0 >= r.Wb.$?6:14;break;case 42:y.push.apply(y,c.__spreadArray([],c.__read(E),!1));N9x=41;break;case 19:N9x=0 < r.pa.start || r.pa.ywa || r.pa.gs?18:24;break;case 28:N9x=E?44:41;break;case 16:return {success:D};break;case 12:N9x=!z?11:10;break;case 41:D=(D || [z]).concat(this.r7b(A,null !== (v=null === (u=r.B0) || void 0 === u?void 0:u.offset) && void 0 !== v?v:z.byteLength,null === (w=r.B0) || void 0 === w?void 0:w.ma,y));return {success:!0,Dh:x,Cu:D};break;case 15:F && x.push(F);D=H?[(0,e.Zz)(H)]:void 0;F=r.pa.start;N9x=25;break;case 6:return {success:!1};break;case 24:N9x=null !== r.pa.end && r.pa.end !== r.rf || r.pa.o1a || r.pa.wq?23:41;break;}}};p.prototype.hjc=function(r,q,u,v){var A7X,w;A7X=2;for(;A7X !== 14;){switch(A7X){case 2:void 0 === u && (u=!0);void 0 === v && (v=!1);(0,h.assert)(r.pa);A7X=4;break;case 4:w=r.pa.ywa;u=!(!r.pa.wq || !u);A7X=9;break;case 8:return {success:!0};break;case 7:var D7D=" ed";D7D+="it";D7D+=" fai";D7D+="led";var n6j="]";n6j+=":";n6j+=" ";var k7F="Au";k7F+="d";k7F+="ioMediaFragme";k7F+="nt";k7F+="Editor [";u=d(r.pa,r.rf,u,r.Ea,this.Zva,this.J_,this.config.Tzb);return (q=new f.nz(this.WL,r.stream,q).fKb({ql:r.pa.start,O:r.Yl,WF:u,F_a:!1,ET:this.config.z1,cS:n(this.J_),vna:v}))?{success:!0,ys:r.xKb(w),data:q.La,FK:q.FK}:(this.console.error(k7F.concat(r.mediaType,n6j).concat(r.toString(),D7D)),{success:!1});break;case 9:A7X=!(r.pa.start || w || r.pa.gs || u)?8:7;break;}}};p.prototype.ijc=function(r,q,u,v,w){var t87,x,y;t87=2;for(;t87 !== 12;){switch(t87){case 14:var m3v=" e";m3v+="dit ";m3v+="faile";m3v+="d";var v_e="]";v_e+=":";v_e+=" ";var z1n="AudioMe";z1n+="diaFrag";z1n+="mentEditor ";z1n+="[";v=d(r.pa,r.rf,v,r.Ea,this.$va,this.J_,this.config.Tzb);return (q=new f.nz(this.WL,r.stream,q).pKb({ql:(null !== (x=r.pa.end) && void 0 !== x?x:r.rf) - u,O:r.Yl,WF:v,F_a:!1,ET:this.config.z1,cS:n(this.J_),vna:w}))?{success:!0,ys:r.xKb(y),data:q.La,FK:q.FK}:(this.console.error(z1n.concat(r.mediaType,v_e).concat(r.toString(),m3v)),{success:!1});break;case 7:t87=!(null !== r.pa.end && r.pa.end !== r.rf || y || r.pa.gs || v)?6:14;break;case 2:void 0 === u && (u=0);void 0 === v && (v=!0);t87=4;break;case 4:void 0 === w && (w=!1);(0,h.assert)(r.pa);y=r.pa.o1a;t87=8;break;case 8:v=!(!r.pa.wq || !v);t87=7;break;case 6:return {success:!0};break;}}};p.prototype.r7b=function(r,q,u,v){var F6j,x,y,e6t,A,z,B,C,D,y53,z8O,Y$K,w;F6j=2;for(;F6j !== 10;){switch(F6j){case 4:F6j=0 === r.length?3:9;break;case 5:return r;break;case 9:var L9H="Request bytes m";L9H+="isma";L9H+="tch";var w$9="Must ";w$9+="have array buffers to edit optimized response beyond origina";w$9+="l";w$9+=" request";(0,h.assert)((0,l.mwc)(r),w$9);r=1 < r.length?(0,e.Zz)(r):r[0];(0,h.assert)(void 0 === u || u === r.byteLength,L9H);F6j=6;break;case 6:v.sort(function(H,E){var h55;h55=2;for(;h55 !== 1;){switch(h55){case 2:return H.offset - E.offset;break;}}});(x=q,y=[]);try{e6t=2;for(;e6t !== 8;){switch(e6t){case 9:z=A.next();e6t=1;break;case 2:(A=c.__values(v),z=A.next());e6t=1;break;case 1:e6t=!z.done?5:8;break;case 5:(B=z.value,C=B.offset,D=B.remove);C >= x && y.push(r.slice(x - q,C - q));X8rQy.T2D(1);x=Math.max(x,X8rQy.I83(C,D));e6t=9;break;}}}catch(H){var F;F={error:H};}finally{y53=2;for(;y53 !== 1;){switch(y53){case 2:try{z8O=2;for(;z8O !== 1;){switch(z8O){case 2:z && !z.done && (w=A.return) && w.call(A);z8O=1;break;}}}finally{Y$K=2;for(;Y$K !== 5;){switch(Y$K){case 2:Y$K=F?1:5;break;case 1:throw F.error;Y$K=5;break;case 9:throw F.error;Y$K=4;break;}}}y53=1;break;}}}x < q + r.byteLength && y.push(r.slice(x - q));F6j=11;break;case 11:return y;break;case 3:var R86="Expected edit offset to match request offset when e";R86+="ntir";R86+="e edited frag";R86+="ment is in initial response";var q33="Expected only one edit w";q33+="hen entire ";q33+="edited fragment is in initial response";return ((0,h.assert)(1 === v.length,q33),(0,h.assert)(v[0].offset === q,R86),[]);break;case 1:F6j=0 === v.length || v.every(function(H){var f4j,E;f4j=2;for(;f4j !== 5;){switch(f4j){case 2:E=H.offset;return E + H.remove <= q || void 0 !== u && E >= q + u;break;}}})?5:4;break;case 2:F6j=1;break;}}};return p;break;}}function p(r,q,u){var s5t,v;s5t=2;for(;s5t !== 6;){switch(s5t){case 7:return v;break;case 4:v.config=q;v.Zva=g.I.Ba(0 <= q.Zva?q.Zva:q.gI);v.$va=g.I.Ba(0 <= q.$va?q.$va:q.gI);v.J_=Math.pow(10,(q.J_[u] || -44) / 20);s5t=7;break;case 2:var r0L="1SI";r0L+="YbZrN";r0L+="J";r0L+="Cp9";r0L;v=m.call(this,r,k.u.X) || this;v.console=r;s5t=4;break;}}}})(l.vDa);b.F5a=t;},5753:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.G5a=void 0;d=a(48170);t=(function(){function n(c){this.console=c;}n.prototype.Us=function(){};n.prototype.append=function(c,f){var g,e,h,k,l,m,p;if(c.rh)return c;g=!1;e=c.La;h=c.offset;k=c.ef;c=c.Dh;f=f.P_;l=e.Ob;if(this.Pq && l.lessThan(this.Pq.Ob)){m=this.Pq.P_.ea(e.Sb);p=e.Ob.ea(this.Pq.P_);p.lessThan(m) && (d.l && this.console.trace(("AudioOverlapGuard: skipping append of ").concat(e) + (", current error: ").concat(m.ca()) + (", discard error: ").concat(p.ca())),g=!0);}this.Pq=(e.Gi || e.OA) && f?{P_:f,Ob:l}:void 0;return {La:e,offset:h,ef:k,rh:g,Dh:c};};return n;})();b.G5a=t;},99125:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.J$a=void 0;t=(function(){function a(d){this.Lda=!1;this.iRc=d.Uvc;}a.prototype.Us=function(){};a.prototype.append=function(d){d.La.pa && (d.La.gQc(this.Lda?0:this.iRc),this.Lda=!0);return d;};return a;})();b.J$a=t;},6500:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.K$a=void 0;d=a(91176);n=a(52571);t=(function(){function c(f){this.console=f;}c.prototype.Us=function(){this.Bba=this.a_=void 0;};c.prototype.Hxc=function(){return !(!this.Bba || !this.a_ || this.Bba.equal(this.a_));};c.prototype.FUa=function(f){return Math.abs(f.$) > Math.pow(2,31);};c.prototype.append=function(f){var g,e,h,k,l,m;g=f.La;e=f.offset;h=f.ef;k=f.rh;f=f.Dh;if(this.a_ && this.Bba && e.equal(this.a_))return {La:g,offset:this.Bba,ef:h,rh:k,Dh:f};l=e;if(this.FUa(l)){m=(0,d.MK)(l.$,l.O);l=l.Kc(l.O / m);this.console.info(("IntOffsetOverflowProtector: performing gcd on the offset to reduce the timescale. From ").concat(e.ca()," to ").concat(l.ca()));}void 0 === this.a_?this.FUa(l) && (l=e.Kc(1),this.console.info(("IntOffsetOverflowProtector: offset ticks too large, needs timescale reduction. From ").concat(e.ca()," to ").concat(l.ca()))):(0,n.assert)(!this.FUa(l) && !this.Hxc(),("IntOffsetOverflowProtector: splicing is not supported with large offsets ").concat(l.ca()));this.a_=e;this.Bba=l;return {La:g,offset:l,ef:h,rh:k,Dh:f};};return c;})();b.K$a=t;},22074:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Iab=void 0;d=a(91176);n=a(8149);t=(function(){function c(){}c.prototype.Us=function(f){this.Fk=(0,n.yk)(f)?f.Fk:d.I.ia;this.O=f.O;};c.prototype.append=function(f){var g,e,h,k;g=f.La;e=f.ef;h=f.rh;k=f.Dh;f=f.offset.ea(this.Fk.Kc(this.O));return {La:g,offset:f,ef:e,rh:h,Dh:k};};return c;})();b.Iab=t;},47267:function(t,b,a){var n,c,f,g;function d(e){var h;return null === (h=e.every) || void 0 === h?void 0:h.call(e,function(k){return k instanceof ArrayBuffer;});}Object.defineProperties(b,{__esModule:{value:!0}});b.vDa=void 0;b.mwc=d;n=a(66164);c=a(91562);f=a(91176);g=a(69575);t=(function(){function e(h,k){this.console=h;this.mediaType=k;this.WL=new n.platform.Console("MP4","media|asejs");}e.prototype.cac=function(h){return h.stream.sAb;};e.prototype.Wtb=function(h,k){var l,m,u;void 0 === k && (k=!1);l=h[0];if(!(l instanceof ArrayBuffer))return (this.WL.warn(("MediaFragmentEditor [").concat(this.mediaType,"]: response is not ArrayBuffer")),{rT:h});m=c.$I.path(new DataView(l),["moof"]).end;if(!m)return (this.WL.warn(("MediaFragmentEditor [").concat(this.mediaType,"]: start of moof not found in first response")),{rT:h});for(var p=m + (k?8:0),r=l.byteLength,q=1;r < p && q < h.length;){u=h[q];u instanceof ArrayBuffer && (r+=u.byteLength);++q;}if(r < p)return (this.WL.warn(("MediaFragmentEditor [").concat(this.mediaType,"]: moof not found in responses")),{rT:h});if(1 !== q){l=h.slice(0,q);if(!d(l))return (this.WL.warn(("MediaFragmentEditor [").concat(this.mediaType,"]: moof responses are not ArrayBuffer")),{rT:h});l=(0,g.Zz)(l);}h=h.slice(q);return k?(k=new DataView(l),q=k.getUint32(m),(0,f.assert)("mdat" === (0,c.pJ)(k.getUint32(m + 4)),"Expected mdat after moof"),{GWa:l,KBc:m,LBc:q,rT:h}):{GWa:l,rT:h};};return e;})();b.vDa=t;},98321:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y;Object.defineProperties(b,{__esModule:{value:!0}});b.Vbb=void 0;d=a(91176);n=a(66164);c=a(65161);f=a(52571);g=a(15341);e=a(31330);h=a(5483);k=a(81600);l=a(41329);m=a(99125);p=a(82924);r=a(5753);q=a(75811);u=a(44237);v=a(15625);w=a(44646);x=a(6500);y=a(22074);t=(function(){function A(z,B,C,D){this.config=z;this.mediaType=B;this.vg=C;this.console=D;}A.prototype.append=function(z,B){var C,D,F,H,E,G;void 0 === this.track?this.uqa(z.stream):this.track !== z.stream.track && ((0,f.assert)(void 0 !== this.Sm),(0,f.assert)(this.mediaType !== c.u.X || this.track.Ea),(0,f.assert)(this.mediaType !== c.u.X || z.stream.track.Ea),this.track=z.stream.track,this.Sm.forEach(function(J){return J.Us(z.stream);}));(0,f.assert)(void 0 !== this.Sm);F=this.Sm.reduce(function(J,L){return L.append(J,B);},{La:z,offset:z.Yua || d.I.ia,ef:this.config.G1,rh:!1});H=F.La;E=F.offset;G=F.rh;F=F.Dh;F=void 0 === F?[]:F;H.pa && ((0,f.assert)(z.pa,"Fragments must be marked for edit at request time"),z.xh(H.pa));if(G || null === (C=this.lWa) || void 0 === C || !C.cac(z))return {offset:E,rh:G};C=this.lWa.pa(z,!(null === (D=z.K) || void 0 === D || !D.wq));D=C.success;H=C.Dh;C=C.Cu;Array.prototype.push.apply(F,void 0 === H?[]:H);return {offset:E,rh:!D,Dh:F,Cu:C};};A.prototype.reset=function(){this.Sm=this.track=void 0;};A.prototype.uqa=function(z){var B,C,D;this.track=z.track;this.mediaType === c.u.X?this.lWa=new q.F5a(this.console,this.config,z.profile):this.mediaType === c.u.U && (this.lWa=new v.iib(this.console,this.config));this.Sm=[];this.mediaType === c.u.X && (this.Sm.push(new g.lfb(this.config,this.vg,this.console)),this.config.G1 && this.Sm.push(new h.hgb(this.config,this.console)),this.Sm.push(new w.Xgb(this.console)),z.Sh && z.ze && this.PTa(z.M.J) && this.Sm.push(new m.J$a(this.config)),this.config.Sba || (this.console.log(("MediaSplicer: NegativePtsGuard: ").concat(null === (B=z.ze) || void 0 === B?void 0:B.ca())),this.Sm.push(new k.ucb(this.config,this.console))),this.GAb()?(this.config.Cn || this.Sm.push(new p.E5a(this.config,this.vg,this.console)),this.config.G1 && this.Sm.push(new u.hza(this.console)),!1 !== (null === (C=n.platform.MediaSource.vg) || void 0 === C?void 0:C.lcd) && this.Sm.push(new e.Kcb(this.console)),this.config.TUc && ((0,f.assert)(z.Ea),this.Sm.push(new l.Lhb(z.Ea,this.console)))):(this.Sm.push(new r.G5a(this.console)),this.config.G1 && this.Sm.push(new u.hza(this.console))));if(z.M.Eb || (null === (D=z.M.Wj) || void 0 === D?0:D.Eb))(this.Sm.push(new y.Iab()),this.GAb() && this.Sm.push(new x.K$a(this.console)));this.Sm.forEach(function(F){return F.Us(z);});};A.prototype.PTa=function(z){return this.config.PTa || this.config.Vzb && -1 !== this.config.Vzb.indexOf(z);};A.prototype.GAb=function(){return !this.config.BT;};return A;})();b.Vbb=t;},81600:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.ucb=void 0;d=a(91176);n=a(52571);c=a(48170);t=(function(){function f(g,e){this.console=e;this.Lda=!1;this.Sh=g.Sh;}f.prototype.Us=function(g){(0,n.assert)(g.Ea,"NegativePtsGuard: stream.frameDuration must exist.");this.Ea=g.Ea;this.Sh=g.Sh;this.ze=g.ze || d.I.ia;};f.prototype.append=function(g){var e,h,k,l,m;if(this.Lda || g.rh)return g;e=g.La;h=g.offset;k=g.ef;g=g.Dh;if(e.pa){l=e.qa.ea(this.Sh?this.ze:d.I.ia).add(h);if(l.lessThan(d.I.ia)){m=Math.ceil(l.eh(-1).nf(this.Ea));c.l && this.console.trace(("NegativePtsGuard: dropping ").concat(m," frames on first fragment to avoid nagative pts, ") + ("profile offset ").concat(this.ze.ca(),", ") + ("request content start ").concat(e.qa.ca(),", ") + ("current timestamp offset ").concat(h.ca()," => ") + ("firstPlatformTimestamp ").concat(l.ca(),"."));e.EOa(m);}}this.Lda=!0;return {La:e,offset:h,ef:k,rh:!1,Dh:g};};return f;})();b.ucb=t;},31330:function(t,b,a){var n,c,f,g,e;function d(h){return ("").concat(h.ca()," (nrdp: ").concat(h.GT,"ms)");}Object.defineProperties(b,{__esModule:{value:!0}});b.Kcb=void 0;n=a(91176);c=a(78647);f=a(48170);g=a(52571);e=a(8149);t=(function(){function h(k){this.console=k;this.offset=this.Fk=this.tM=n.I.ia;}h.prototype.Us=function(k){var l;(0,g.assert)(k.Ea,"NrdpRounding: stream.frameDuration must exist.");this.Ea=k.Ea;l=k.Sh?k.ze || n.I.ia:n.I.ia;this.ze && (this.tM=l.ea(this.ze));this.ze=l;this.Fk=(0,e.yk)(k)?k.Fk || n.I.ia:n.I.ia;f.l && this.console.trace(("NrdpRounding::setStream: live ").concat((0,e.yk)(k)?"true":"false",", ") + ("profile offset: ").concat(this.ze.ca(),", ") + ("presentation offset: ").concat(this.Fk.ca()));};h.prototype.append=function(k){var l,m,p,r,q;(0,g.assert)(this.ze,"NrdpRounding: profileTimestampOffset must exist.");(0,g.assert)(this.Ea,"NrdpRounding: frameDuration must exist.");if(k.rh)return k;l=k.La;m=k.offset;p=k.ef;r=k.Dh;if(void 0 !== this.NBb){(0,g.assert)(void 0 !== this.UUa);q=this.NBb.add(this.tM);l.qa.add(k.offset).equal(q)?(k=this.I$b(l,m.add(this.offset)).G - this.UUa,0 > k?this.offset=this.offset.add(n.I.xy):0 === k?this.offset.lessThan(n.I.ia) && (this.offset=this.offset.add(n.I.xy)):1 === k?this.offset.greaterThan(n.I.ia) && (this.offset=this.offset.ea(n.I.xy)):this.offset=this.offset.ea(n.I.xy)):(f.l && this.console.trace("NrdpRounding: non-seamless: reverting to zero offset"),this.offset=n.I.ia);}this.UUa=this.H$b(l,m.add(this.offset)).G;this.NBb=l.ta.add(m);this.tM=n.I.ia;return {La:l,offset:m.add(this.offset),ef:p,rh:!1,Dh:r};};h.prototype.I$b=function(k,l){var m,p;k=this.$lb(k.qa);l=l.ea(this.Fk);m=(0,c.FD)(k).add((0,c.FD)(l));p=k.add(l).ea(m);f.l && this.console.trace("NrdpRounding: content start " + d(k) + ", adjusted offset: " + d(l) + ", start rounding error: " + (0,c.FD)(k).toString() + ", adjusted offset rounding error: " + (0,c.FD)(l).toString() + ", total error: " + m.toString() + ", expected nrdp value:" + p.ca() + ", (" + k.GT + l.GT + "ms), last fragment end nrdp: " + this.UUa);return p;};h.prototype.H$b=function(k,l){var m,p,r;m=this.Ea;k=this.$lb(k.ta);l=l.ea(this.Fk);p=(0,c.FD)(k.ea(m)).add((0,c.FD)(m)).add((0,c.FD)(l));r=k.add(l).ea(p);f.l && this.console.trace("NrdpRounding: content end: start of last frame:" + d(k.ea(m)) + ", frame duration: " + d(m) + ", adjusted offset: " + d(l) + ", timestamp rounding error: " + (0,c.FD)(k.ea(m)).toString() + ", frame duration rouding error: " + (0,c.FD)(m).toString() + ", adjusted offset rounding error: " + (0,c.FD)(l).toString() + ", total rounding error: " + p.toString() + ", expected nrdp value: " + r.ca() + ", (" + k.ea(m).GT + m.GT + l.GT + "ms)");return r;};h.prototype.$lb=function(k){return k.add(this.Fk).ea(this.ze);};return h;})();b.Kcb=t;},15341:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.lfb=void 0;d=a(91176);t=(function(){function n(c,f,g){var e;this.config=c;this.vg=f;this.console=g;this.XD=d.I.ia;this.console.debug("ProfileTimestampOffset initialized with config:",{L8:this.config.L8,VJ:this.config.VJ,y3a:this.config.y3a,mOa:null === (e=this.vg) || void 0 === e?void 0:e.mOa});}n.prototype.Us=function(c){this.XD=this.M$b(c);this.console.debug(("ProfileTimestampOffset for ").concat(c.track.hLa,": ") + this.XD.ca());};n.prototype.append=function(c){var f,g,e,h;f=c.La;g=c.offset;e=c.ef;h=c.rh;c=c.Dh;this.console.debug("ProfileTimestampOffset.append applying adjustment:",{pbd:g.ca(),Wbd:this.XD.ca(),qcd:g.add(this.XD).ca()});return {La:f,offset:g.add(this.XD),ef:e,rh:h,Dh:c};};n.prototype.M$b=function(c){var f,g,e;f=c.track.hLa;if(void 0 === f)return (this.console.debug("ProfileTimestampOffset.calculateProfileTimestampOffset: No codec name, returning zero offset"),d.I.ia);c=c.ze;g=this.lOa(f);e=c.ea(g);this.console.debug("ProfileTimestampOffset.calculateProfileTimestampAdjustment:",{f8:f,odd:c.ca(),lOa:g.ca(),result:e.ca()});return e;};n.prototype.lOa=function(c){var f,g,e;g=d.I.ia;if("AAC" === c){e=null === (f=this.vg) || void 0 === f?void 0:f.mOa;this.config.y3a && void 0 !== e && 0 <= e?(g=new d.I(-e,48E3),this.console.debug("ProfileTimestampOffset using device assumed AAC encoder delay:",{mOa:e,cbd:g.ca()})):this.config.VJ || (g=new d.I(this.config.L8.ticks,this.config.L8.timescale));}this.console.debug("ProfileTimestampOffset.deviceAppliedTimestampOffset final result:",{f8:c,lOa:g.ca()});return g;};return n;})();b.lfb=t;},5483:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.hgb=void 0;d=a(91176);n=a(52571);c=a(48170);t=(function(){function f(g,e){this.config=g;this.console=e;this.Mt=d.I.ia;}f.prototype.Us=function(g){(0,n.assert)(g.Ea,"SeamlessAudio: stream.frameDuration must exist.");this.Ea=g.Ea;g=g.profile;this.wsa=this.Sqc(g,this.Ea);this.gsa=this.Oqc(g,this.Ea);this.SZ=-1 !== this.config.$mb.indexOf(g);};f.prototype.append=function(g,e){var h,k,l,m,p;if(g.rh)return g;h=g.La;k=g.offset;l=g.Dh;l=void 0 === l?[]:l;g=g.ef;m=e.P_;e=e.JWa;p=this.IHb || (this.zL?m:void 0);p && (p=this.ICc(h,p),h.pa && !this.SZ && this.nLa(p)?(c.l && this.console.trace("SeamlessAudio: dropping first frame"),h.EOa(1),this.Mt=p):(this.Mt=p.add(this.Ea),this.lnb(this.Mt) || (c.l && this.console.trace("SeamlessAudio: cannot maintain seamlessness at " + h.Sb.ca() + " error would be " + this.Mt.ca() + " (editing " + (h.pa?"":"not ") + "allowed)"),l.push({type:"logdata",target:"endplay",fields:{avsyncreset:{type:"array",value:{id:h.Sa,pts:h.qa.G}}}}),this.Mt=d.I.ia,g=!1)),this.IHb=void 0);if(h.Gi || h.OA)((0,n.assert)(m,"SeamlessAudio.append(): mediaSplicePlayerTimestamp is undefined"),!h.pa || !e && h.OA || (p=this.JCc(h,m,e),e && this.SZ && p.Tf(this.Ea)?(c.l && this.console.trace("SeamlessAudio: dropping last two frames"),h.Dna(2)):p.Tf(d.I.ia) && (c.l && this.console.trace("SeamlessAudio: dropping last frame"),h.Dna(1))),this.IHb=m);(0,n.assert)(this.lnb(this.Mt));this.zL=h.Ob;c.l && this.console.trace("SeamlessAudio: splice: " + (null === m || void 0 === m?void 0:m.ca()) + " c: " + h.qa.ca() + " - " + h.ta.ca() + " av sync offset: " + this.Mt.ca() + " pts offset: " + k.add(this.Mt).ca() + " p: " + h.qa.add(k).add(this.Mt).ca() + " - " + h.ta.add(k).add(this.Mt).ca());return {La:h,offset:k.add(this.Mt),ef:g,rh:0 === h.dI,Dh:l.length?l:void 0};};f.prototype.JCc=function(g,e,h){var k;if(h)k=this.Mt.add(g.Ob.ea(h)).ea(this.Ea);else (k=g.Ob.ea(e),k=this.Mt.add(k).ea(this.Ea));c.l && this.console.trace("SeamlessAudio: fragment end: " + g.Ob.ca() + ", splice " + e.ca() + ", next start " + (null === h || void 0 === h?void 0:h.ca()) + ", error " + k.add(this.Ea).ca() + ", error with frame drop " + k.ca() + ", is" + (this.nLa(k)?"":" not") + " within bounds of [" + this.wsa.ca() + " and " + this.gsa.ca() + ")");return k;};f.prototype.ICc=function(g,e){var h;(0,n.assert)(this.zL);h=this.Mt.add(this.zL.ea(g.Sb)).ea(this.Ea);c.l && this.console.trace("SeamlessAudio: fragment start: " + g.Sb.ca() + ", splice " + e.ca() + ", last fragment end: " + this.zL.ca() + ", error " + h.add(this.Ea).ca() + ", error with frame drop " + h.ca() + ", is" + (this.nLa(h)?"":" not") + " within bounds of [" + this.wsa.ca() + " and " + this.gsa.ca() + ")");return h;};f.prototype.nLa=function(g){return g.ln(this.gsa) && g.Tf(this.wsa);};f.prototype.lnb=function(g){return g.lessThan(this.gsa.add(d.I.xy)) && g.Tf(this.wsa.ea(d.I.xy));};f.prototype.Oqc=function(g,e){return "object" === typeof this.config.e0a && void 0 !== this.config.e0a[g]?(g=new d.I(this.config.e0a[g],1E3).Kc(e.O).add(new d.I(1,e.O)),d.I.min(e,g)):e;};f.prototype.Sqc=function(g,e){var h;if("object" === typeof this.config.f0a && void 0 !== this.config.f0a[g]){h=e.nf(-2);g=new d.I(this.config.f0a[g],1E3).Kc(e.O).ea(new d.I(1,e.O));return d.I.max(h,g);}return new d.I(-12,1E3);};return f;})();b.hgb=t;},44646:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Xgb=void 0;d=a(91176);n=a(48170);t=(function(){function c(f){this.console=f;this.Ota=d.I.ia;this.jsb=!1;this.XD=d.I.ia;}c.prototype.Us=function(f){var g;g=f.Sh?f.ze:d.I.ia;this.jsb || (this.Ota=g,this.jsb=!0);this.XD=g.ea(this.Ota);n.l && this.console.debug("StreamingProfileTimestampOffset initialized with profile timestamp offset:",{Ota:this.Ota.ca(),c5c:g.ca(),XD:this.XD.ca(),Sa:f.Sa});};c.prototype.append=function(f){var g,e,h;if(f.rh)return f;g=f.ef;e=f.rh;h=f.Dh;return {La:f.La,offset:f.offset.add(this.XD),ef:g,rh:e,Dh:h};};return c;})();b.Xgb=t;},41329:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Lhb=void 0;d=a(91176);n=a(48170);t=(function(){function c(f,g){this.Ea=f;this.console=g;this.ze=d.I.ia;}c.prototype.Us=function(f){this.ze=f.Sh?f.ze:d.I.ia;n.l && this.console.debug("TruncateEndOfStreamAudio initialized with profile timestamp offset:",{ze:this.ze.ca(),Sa:f.Sa});};c.prototype.append=function(f,g){var e,h,k,l,m,p;e=f.La;h=f.offset;k=f.ef;l=f.Dh;f=f.rh;if(!f){m=g.endOfStream;g=g.P_;if(m && g){m=e.qa.ea(this.ze).add(h);p=e.ta.ea(this.ze).add(h);g=g.ea(d.I.xy);n.l && this.console.trace("TruncateEndOfStreamAudio: last fragment has adjusted times " + m.ca() + "-" + p.ca() + " vs media splice point at " + g.ca());m.add(this.Ea).Tf(g)?(n.l && this.console.trace("TruncateEndOfStreamAudio: dropping whole fragment"),f=!0):p.Tf(g) && (g=Math.ceil(p.ea(g).nf(this.Ea)),e.pa?(n.l && this.console.trace(("TruncateEndOfStreamAudio: drop ").concat(g," frames")),e.Dna(g)):(n.l && this.console.trace("TruncateEndOfStreamAudio: fragment.edit is false, dropping whole fragment"),f=!0));}else m && n.l && this.console.trace("TruncateEndOfStreamAudio: last fragment has no media splice point");}return {La:e,offset:h,ef:k,rh:f,Dh:l};};return c;})();b.Lhb=t;},15625:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.iib=void 0;d=a(22970);n=a(91562);c=a(52571);f=a(69575);g=a(45247);t=(function(e){function h(k,l){var m;m=e.call(this,k,g.u.U) || this;m.console=k;m.config=l;return m;}d.__extends(h,e);h.prototype.pa=function(k){var l,m,p,r,q,u,v,w,x,y;(0,c.assert)(!k.AC,"AudioMediaFragmentEditor [${fragment.mediaType}]: Attempt to edit appended fragment");if(!k.pa)return {success:!0};m=0 < k.pa.start;p=null !== k.pa.end && k.pa.end < k.rf;if(!m && !p)return {success:!0};(0,c.assert)(k.oR,"AudioMediaFragmentEditor: fragment has missing responses");if(0 >= k.Wb.$)return {success:!1};r=k.Cu;q=this.Wtb(r,!0);u=q.GWa;v=q.KBc;w=q.LBc;q=q.rT;if(!u || !v || !w)return {success:!1};v=u.slice(0,v);r=!1 === k.Fna && !r.every(function(A){return A instanceof ArrayBuffer;});if(m){m=new n.nz(this.WL,k.stream,u);x=m.fKb({ql:k.pa.start,O:k.O,vna:r});}if(p && !1 !== x){m=new n.nz(this.WL,k.stream,x?(0,f.Zz)(x.La):u);y=m.pKb({ql:(null !== (l=k.pa.end) && void 0 !== l?l:k.rf) - k.pa.start,O:k.O,vna:r});}k=(k=p?y:x)?[(0,f.Zz)(k.La)]:[v];k.push.apply(k,d.__spreadArray([],d.__read(q),!1));return {success:!0,Cu:k};};return h;})(a(47267).vDa);b.iib=t;},32412:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.LV=void 0;d=a(91176);n=a(52571);c=a(65161);t=(function(){function f(g){var e;void 0 === g && (g=[]);e=this;this.items=g;g.forEach(function(h){return e.i3a(h);});}Object.defineProperties(f.prototype,{length:{get:function(){return this.items.length;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{zu:{get:function(){var g;return null !== (g=this.video) && void 0 !== g?g:this.audio;},enumerable:!1,configurable:!0}});f.prototype.get=function(g){switch(g){case c.u.U:return this.video;case c.u.X:return this.audio;case c.u.Ca:return this.text;}};f.prototype.Pyb=function(g){return -1 !== this.items.indexOf(g);};f.prototype.every=function(g){return this.items.every(g);};f.prototype.some=function(g){return this.items.some(g);};f.prototype.forEach=function(g){this.items.forEach(g);};f.prototype.find=function(g){return (0,d.cc)(this.items,g);};f.prototype.reduce=function(g,e){return this.items.reduce(g,e);};f.prototype.filter=function(g){return new f(this.items.filter(g));};f.prototype.map=function(g){return this.items.map(g);};f.prototype.replace=function(g,e){var h;h=this.items.indexOf(g);(0,n.assert)(-1 < h);(0,n.assert)(g.mediaType === e.mediaType);this.items[h]=e;this.i3a(e);};f.prototype.add=function(g){this.items.push(g);this.i3a(g);};f.prototype.remove=function(g){var e;e=this.items.indexOf(g);if(-1 === e)return !1;this.items.splice(e,1);this.Fbc(g.mediaType);return !0;};f.prototype.clear=function(){this.items=[];this.text=this.audio=this.video=void 0;};f.prototype.i3a=function(g){switch(g.mediaType){case c.u.U:this.video=g;break;case c.u.X:this.audio=g;break;case c.u.Ca:this.text=g;}};f.prototype.Fbc=function(g){switch(g){case c.u.U:this.video=void 0;break;case c.u.X:this.audio=void 0;break;case c.u.Ca:this.text=void 0;}};return f;})();b.LV=t;},27255:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.d9a=void 0;d=a(52571);n=a(16146);t=(function(){function c(){this.global=new n.j5();this.WS={};}c.prototype.add=function(f,g){(0,d.assert)(void 0 === this.WS[f],"Cannot add new memory object for playgraph");this.WS[f]=g;this.global.add(g.Ev);this.global.add(g.a9);};return c;})();b.d9a=t;},16146:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.j5=void 0;d=a(65161);t=(function(){function n(){this[d.u.X]=0;this[d.u.U]=0;this[d.u.Ca]=0;this[d.u.sm]=0;}Object.defineProperties(n.prototype,{total:{get:function(){return this[d.u.X] + this[d.u.U] + this[d.u.Ca];},enumerable:!1,configurable:!0}});n.prototype.add=function(c){this[d.u.X]+=Math.max(c[d.u.X] || 0,0);this[d.u.U]+=Math.max(c[d.u.U] || 0,0);this[d.u.Ca]+=Math.max(c[d.u.Ca] || 0,0);};n.prototype.rKa=function(c,f){this[c]+=Math.max(f || 0,0);};return n;})();b.j5=t;d.u.X;d.u.U;d.u.Ca;d.u.sm;},59839:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Keb=void 0;d=a(16146);t=(function(){function n(){this.Ev=new d.j5();this.a9=new d.j5();}Object.defineProperties(n.prototype,{total:{get:function(){var c;c=new d.j5();c.add(this.Ev);c.add(this.a9);return c;},enumerable:!1,configurable:!0}});n.prototype.add=function(c){this.Ev.add(c.Ev);this.a9.add(c.a9);};n.prototype.rKa=function(c,f,g){(g?this.a9:this.Ev).rKa(c,f);};return n;})();b.Keb=t;},3033:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperties(b,{__esModule:{value:!0}});b.TN=void 0;t=a(22970);d=a(66164);n=a(45550);c=t.__importDefault(a(32838));f=t.__importDefault(a(95880));g=t.__importDefault(a(40497));e=a(52571);h=a(27977);k=t.__importDefault(a(66058));a=(function(){function m(p,r,q){var u;u=this;this.Xl=new c.default(p,q);this.YL=new f.default(p);this.QT=new k.default(p);this.bd=new g.default(this.YL,this.Xl,this.QT,p);this.Pea=new h.Pgb(d.platform.$ma,r);n.PN.Ccc(p);p.Nca && (this.azb=setInterval(function(){u.Xl.save();u.YL.save();},p.Nca));}m.rpa=function(p,r,q){void 0 === l?(m.config=p,m.u2a=q,l=new m(p,r,q)):((0,e.assert)(m.config === p),(0,e.assert)(m.u2a === q));return l;};m.instance=function(){(0,e.assert)(l,"CommonGlobals accessed too early");return l;};m.reset=function(){m.config=void 0;m.u2a=void 0;null === l || void 0 === l?void 0:l.reset();l=void 0;};m.prototype.reset=function(){this.bd.reset();this.azb && clearInterval(this.azb);};return m;})();b.TN=a;},29340:function(t,b){function a(d,n){var c;d.__proto__ && d.__proto__ !== Object.prototype && a(d.__proto__,n);Object.getOwnPropertyNames(d).forEach(function(f){c=Object.getOwnPropertyDescriptor(d,f);void 0 !== c && Object.defineProperty(n,f,c);});}Object.defineProperties(b,{__esModule:{value:!0}});b["default"]=a;},10561:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(58982),b);t.__exportStar(a(6152),b);t.__exportStar(a(85886),b);t.__exportStar(a(33421),b);t.__exportStar(a(76829),b);t.__exportStar(a(11528),b);t.__exportStar(a(65427),b);t.__exportStar(a(41535),b);t.__exportStar(a(41756),b);t.__exportStar(a(13520),b);t.__exportStar(a(67592),b);t.__exportStar(a(32984),b);t.__exportStar(a(57141),b);t.__exportStar(a(23612),b);t.__exportStar(a(90206),b);t.__exportStar(a(6198),b);t.__exportStar(a(56368),b);t.__exportStar(a(87959),b);t.__exportStar(a(84819),b);t.__exportStar(a(17479),b);t.__exportStar(a(38702),b);t.__exportStar(a(15065),b);t.__exportStar(a(80426),b);t.__exportStar(a(52741),b);t.__exportStar(a(2023),b);t.__exportStar(a(48244),b);t.__exportStar(a(9612),b);t.__exportStar(a(30030),b);t.__exportStar(a(60223),b);t.__exportStar(a(23530),b);t.__exportStar(a(77856),b);t.__exportStar(a(55025),b);t.__exportStar(a(49961),b);t.__exportStar(a(78909),b);t.__exportStar(a(34439),b);t.__exportStar(a(43102),b);t.__exportStar(a(53894),b);t.__exportStar(a(9273),b);t.__exportStar(a(66581),b);t.__exportStar(a(15869),b);t.__exportStar(a(44972),b);t.__exportStar(a(24109),b);t.__exportStar(a(6401),b);t.__exportStar(a(94480),b);},6152:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},85886:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},33421:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},76829:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},58982:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},11528:function(t,b){var a;Object.defineProperties(b,{__esModule:{value:!0}});b.Rd=void 0;b.rs=function(d){return d === a.Pf || d === a.wm || d === a.nja;};(function(d){d[d.yt=0]="STOPPED";d[d.Pf=1]="BUFFERING";d[d.wm=2]="REBUFFERING";d[d.$p=3]="STREAMING";d[d.nja=4]="TRACK_SWITCH";})(a || (b.Rd=a={}));},65427:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},41535:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},78909:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Yw=void 0;d=a(91176);Object.defineProperties(b,{Yw:{enumerable:!0,get:function(){return d.Yw;}}});},41756:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},13520:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},32984:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},24940:function(t,b){var a;Object.defineProperties(b,{__esModule:{value:!0}});b.Via=void 0;b.Q9c=function(d){return d && d.r1 === a.Ke;};b.aUa=function(d){return d && d.r1 === a.Ke;};b.oxc=function(d){return d && d.r1 === a.Ke;};b.owc=function(d){return d && d.r1 === a.Ke;};(function(d){d[d.Ke=0]="http";d[d.jjc=1]="ella";})(a || (b.Via=a={}));},24109:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},15869:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},65161:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});a(22970).__exportStar(a(10561),b);},57141:function(t,b){function a(d){return "globalAudioMemoryLimit" === d || "globalVideoMemoryLimit" === d?"global":"staticAudioMemoryLimit" === d || "staticVideoMemoryLimit" === d?"static":!1;}Object.defineProperties(b,{__esModule:{value:!0}});b.HJb=function(d){return "globalMemoryLimit" === d?"global":"staticMemoryLimit" === d?"static":a(d);};b.ZKc=a;b.pdd=function(d){return ("IStreamable: ").concat(d.identifier," [").concat(d.mediaType,"] ").concat(d.groupId," ") + ("p:").concat(JSON.stringify(d.hh)," sp:").concat(d.Fw," ") + ("pssp:").concat(d.PH," ") + ("state:").concat(d.ie," path-complete:").concat(d.yu," ") + ("streaming:").concat(d.Do," current:").concat(d.fp);};},23612:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},90206:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},56368:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},6198:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.msa=b.i5=b.sga=b.u=void 0;b.AH=function(n){var c;return null !== (c=d.hS[n]) && void 0 !== c?c:"unknown";};d=a(26388);Object.defineProperties(b,{u:{enumerable:!0,get:function(){return d.u;}}});Object.defineProperties(b,{sga:{enumerable:!0,get:function(){return d.sga;}}});b.i5=[d.u.X,d.u.U,d.u.Ca];b.msa=function(n,c,f){n=n || c?c?[d.u.U]:[d.u.X]:[d.u.X,d.u.U];f && n.push(d.u.Ca);return n;};},87959:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});a(6198);},84819:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});a(6198);},17479:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});t=b.wO={};t[t.HAVE_NOTHING=0]="HAVE_NOTHING";t[t.sV=1]="HAVE_SOMETHING";t[t.rV=2]="HAVE_MINIMUM";t[t.W3=3]="HAVE_ENOUGH";},38702:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},15065:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},80426:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Ub=void 0;b.PYa=function(c){return c === d.Rd.Pf?n.Pf:c === d.Rd.wm?n.wm:c === d.Rd.nja?n.Pf:c === d.Rd.$p?n.rg:n.Bl;};d=a(11528);(function(c){c[c.Bl=0]="STARTING";c[c.Pf=1]="BUFFERING";c[c.wm=2]="REBUFFERING";c[c.rg=3]="PLAYING";c[c.aja=4]="STOPPING";c[c.yt=5]="STOPPED";c[c.Oi=6]="PAUSED";})(n || (b.Ub=n={}));},34439:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(58457),b);t.__exportStar(a(27066),b);t.__exportStar(a(92251),b);t.__exportStar(a(80094),b);t.__exportStar(a(87519),b);t.__exportStar(a(81451),b);t.__exportStar(a(60248),b);t.__exportStar(a(59638),b);},58457:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},60248:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},81451:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},27066:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},87519:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},92251:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},59638:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},80094:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},52741:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},2023:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},9612:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},48244:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},94480:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},30030:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},60223:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},67592:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},23530:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},77856:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},6401:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},44972:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},55025:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},49961:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},9273:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});t=b.fx={};t[t.SZb=0]="PLAYGRAPH_CHANGED";t[t.TZb=1]="PLAYGRAPH_UNCHANGED";t[t.QYb=2]="NO_MATCHING_SEGMENT_FOUND";t[t.i0b=3]="SEGMENT_ALREADY_APPENDED_REMOVAL_NOT_SUPPORTED";t[t.ZVb=4]="EXISTING_SEGMENT_VIEWABLE_ID_MISMATCHED";t[t.YVb=5]="EXISTING_BRANCH_UPDATE_ERROR";t[t.j0b=6]="SEGMENT_EXTENSION_NOT_SUPPORTED";t[t.RSb=7]="APPENDED_PAST_TRUNCATION_POINT";t[t.AXb=8]="LOSS_OF_POSITION";},43102:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(85892),b);t.__exportStar(a(61555),b);},61555:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.zqa=function(a){return void 0 !== a.kQb;};b.UTa=function(a){return void 0 !== a.xml && void 0 !== a.images;};},85892:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},66581:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},53894:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},37268:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.nz=b.mz=b.um=b.E_=b.gja=void 0;d=a(22970);n=a(66164);c=a(91562);Object.defineProperties(b,{mz:{enumerable:!0,get:function(){return c.mz;}}});Object.defineProperties(b,{nz:{enumerable:!0,get:function(){return c.nz;}}});Object.defineProperties(b,{E_:{enumerable:!0,get:function(){return c.E_;}}});Object.defineProperties(b,{gja:{enumerable:!0,get:function(){return c.gja;}}});t=(function(f){function g(e,h,k,l,m){return f.call(this,g.console,e,h,k,l,m) || this;}d.__extends(g,f);Object.defineProperties(g,{console:{get:function(){return this.sb || (this.sb=new n.platform.Console("MP4","media|asejs"));},enumerable:!1,configurable:!0}});return g;})(c.um);b.um=t;},64772:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.SAa=void 0;t=a(66164);d=a(56089);n=a(65161);new t.platform.Console("ASEJS_ENDPOINT_ACTIVITY","media|asejs");a=(function(){var z$y;z$y=2;function c(f){var C1f;C1f=2;for(;C1f !== 4;){switch(C1f){case 2:var a5e="1";a5e+="SIYbZ";a5e+="r";a5e+="NJCp9";this.xTa=f;this.yG={};a5e;C1f=4;break;}}}for(;z$y !== 7;){switch(z$y){case 3:c.prototype.gl=function(){var E5u;E5u=2;for(;E5u !== 1;){switch(E5u){case 2:return this.eN.get();break;}}};c.prototype.GQb=function(f){var o_r,g,e;o_r=2;for(;o_r !== 5;){switch(o_r){case 2:(g=Object.keys(this.yG).map(function(h){var Y7u;Y7u=2;for(;Y7u !== 1;){switch(Y7u){case 2:return parseInt(h);break;case 4:return parseInt(h);break;}}}),e=this.yG[g[0]]);1 === g.length && !1 === e.roa?(this.eN.start(f,e.Sl,e.Jf),this.X6=e.Sl):1 < g.length && this.X6 && (g=this.yG[this.X6],this.eN.stop(f,this.X6,g.Jf),g.roa=!1,this.X6=void 0);o_r=5;break;}}};return c;break;case 2:c.prototype.reset=function(){var X_k;X_k=2;for(;X_k !== 1;){switch(X_k){case 2:this.eN=new d.K6a();X_k=1;break;}}};c.prototype.jE=function(f,g){var a6f;a6f=2;for(;a6f !== 1;){switch(a6f){case 2:g.Sl && (this.xTa?this.eN.start(f,g.Sl,g.Jf):g.type === n.u.U && (this.yG[g.Sl]?this.yG[g.Sl].$fa+=1:this.yG[g.Sl]={Sl:g.Sl,Jf:g.Jf,$fa:1,roa:!1},this.GQb(f)));a6f=1;break;}}};c.prototype.kE=function(f,g){var p_8,e;p_8=2;for(;p_8 !== 9;){switch(p_8){case 4:e=this.yG[g.Sl];g.type === n.u.U && e && (--e.$fa,0 === e.$fa && (e.roa && this.eN.stop(f,g.Sl,g.Jf),e.roa=!1,delete this.yG[g.Sl]),this.GQb(f));p_8=9;break;case 2:p_8=g.Sl?1:9;break;case 7:p_8=g.Sl?9:7;break;case 5:this.eN.stop(f,g.Sl,g.Jf);p_8=9;break;case 1:p_8=this.xTa?5:4;break;}}};c.prototype.YW=function(f,g,e,h){var W05;W05=2;for(;W05 !== 1;){switch(W05){case 2:h.Sl && (this.xTa?this.eN.add(f,g,e,h.Sl,h.Jf):this.X6 === h.Sl && this.eN.add(f,g,e,h.Sl,h.Jf));W05=1;break;}}};z$y=3;break;}}})();b.SAa=a;},21506:function(t,b,a){var n;function d(){this.Ir=void 0;this.zJ=0;}n=a(17267);d.prototype.start=function(){};d.prototype.stop=function(){};d.prototype.add=function(){};d.prototype.getState=function(){return 0 !== this.zJ && this.Ir?{p25:this.Ir.ow,p50:this.Ir.Es,p75:this.Ir.pw,c:this.zJ}:null;};d.prototype.$i=function(c){if(!(!n.rd(c) && n.has(c,"p25") && n.has(c,"p50") && n.has(c,"p75") && n.has(c,"c") && n.isFinite(c.p25) && n.isFinite(c.p50) && n.isFinite(c.p75) && n.isFinite(c.c)))return (this.Ir=void 0,this.zJ=0,!1);this.Ir={ow:c.p25,Es:c.p50,pw:c.p75};this.zJ=c.c;};d.prototype.get=function(){return {xYa:this.Ir,rl:this.zJ,Usa:void 0};};d.prototype.set=function(c,f){this.Ir=c;this.zJ=f;};d.prototype.reset=function(){this.Ir=void 0;this.zJ=0;};d.prototype.toString=function(){return "IQRHist(" + this.Ir + "," + this.zJ + ")";};t.exports=d;},32838:function(t,b,a){var n,c,f,g,e,h,k,l;function d(m,p,r){return c.has(m,p)?m[p]:m[p]=r;}Object.defineProperties(b,{__esModule:{value:!0}});n=a(22970);c=n.__importStar(a(17267));f=a(66164);g=n.__importDefault(a(14282));e=a(97315);h=a(28600);new f.platform.Console("ASEJS_LOCATION_HISTORY","media|asejs");k={confidence:g.default.sr.HAVE_NOTHING,kb:{Fa:0},Wx:{Fa:0},default:{Fa:0},Ih:{Fa:0},jn:{Fa:0},time:0};l=(function(){function m(p){var r;this.config=p;r=p.rIa;this.confidence=g.default.sr.HAVE_NOTHING;this.YNa=p.ijb;p=new e.hBa(p);this.kb=p.create("throughput-location-history",r);this.Wx=p.create("throughput-location-history",r);this.lxa=p.create("throughput-location-history",r);this.mxa=p.create("throughput-location-history",r);this.kxa=p.create("throughput-location-history",r);this.Ih=p.create("respconn-location-history",r);this.jn=p.create("respconn-location-history",r);this.hxa=p.create("throughput-tdigest-history",r);this.yqa=p.create("throughput-iqr-history",r);this.jna=p.create("throughput-location-history",r);this.lna=p.create("throughput-location-history",r);this.kna=p.create("throughput-location-history",r);this.mna=p.create("throughput-location-history",r);this.time=null;}m.prototype.$ka=function(p,r){this.confidence=r;this.kb.add(p);this.hxa.add(p);this.time=f.platform.time.ha();this.bI();};m.prototype.Wka=function(p){this.Wx.add(p);this.bI();};m.prototype.ala=function(p){this.lxa.add(p.initial);this.mxa.add(p.low);this.kxa.add(p.high);this.bI();};m.prototype.Bxa=function(p,r){this.yqa.set(p,r);this.bI();};m.prototype.$W=function(p){this.Ih.add(p);this.bI();};m.prototype.ZW=function(p){this.jn.add(p);this.bI();};m.prototype.Uka=function(p){this.jna.add(p.Fa);this.lna.add(p.ng);this.kna.add(p.sX);this.mna.add(p.P2);this.bI();};m.prototype.getState=function(){var p;p={c:this.confidence,t:c.rd(this.time)?null:f.platform.time.Bsa(this.time),tp:this.kb.getState(),itp:this.Wx.getState(),tcii:this.lxa.getState(),tcil:this.mxa.getState(),tcih:this.kxa.getState(),rt:this.Ih.getState(),hrt:this.jn.getState(),iqr:this.yqa.getState(),td:this.hxa.getState(),dta:this.jna.getState(),dtv:this.lna.getState(),dtta:this.kna.getState(),dttv:this.mna.getState()};return c.rd(p.tp) && c.rd(p.rt) && c.rd(p.hrt)?null:p;};m.prototype.$i=function(p){var r;r=f.platform.time.now();if(!p || c.rd(p.c) || c.rd(p.t) || c.rd(p.tp) || !c.isFinite(p.c) || !c.isFinite(p.t) || c.rd(p.t) || 0 > p.c || p.c > g.default.sr.W3 || p.t > r || !this.kb.$i(p.tp))return (this.confidence=g.default.sr.HAVE_NOTHING,this.time=null,this.bI(),this.kb.$i(null),this.Ih.$i(null),this.jn.$i(null),!1);this.confidence=p.c;this.time=f.platform.time.lta(p.t);this.Ih.$i(p.rt);this.jn.$i(p.hrt);this.Wx.$i(p.itp);this.lxa.$i(p.tcii);this.mxa.$i(p.tcil);this.kxa.$i(p.tcih);this.jna.$i(p.dta);this.lna.$i(p.dtv);this.kna.$i(p.dtta);this.mna.$i(p.dttv);c.rd(p.iqr) || this.yqa.$i(p.iqr);c.rd(p.td) || this.hxa.$i(p.td);return !0;};m.prototype.get=function(){var p,r,q,u,v,w,x,y,A,z,B;if(!c.ey(this.cZ)){if((f.platform.time.ha() - this.cZ) / 1E3 < this.config.A2b)return n.__assign(n.__assign({},k),{Ud:!0});this.bI();}p=this.config;if(c.rd(this.time))return k;r=(f.platform.time.ha() - this.time) / 1E3;r > p.R2b?this.confidence=g.default.sr.HAVE_NOTHING:r > p.B2b && (this.confidence=Math.min(this.confidence,g.default.sr.sV));q=this.kb.get();u=this.Wx.get();p=this.lxa.get().Fa;v=this.mxa.get().Fa;w=this.kxa.get().Fa;x=this.Ih.get();y=this.jn.get();A=this.yqa.get();z=this.hxa.get();B={Fa:this.jna.URa().Fa,ng:this.lna.URa().Fa,sX:this.kna.get().Fa,P2:this.mna.get().Fa};r={dX:r,confidence:this.confidence,kb:q,Wx:u,default:q,Ih:x,jn:y,lL:A,ul:z,Zr:B,time:0,Ud:!1};r["throughput-ci"]={initial:p,low:v,high:w};return r;};m.prototype.Cqc=function(){return {f:c.ey(this.cZ)?void 0:f.platform.time.Bsa(this.cZ),g:this.getState(),h:[null,null,null,null]};};m.prototype.QPc=function(p){this.cZ=c.ey(p.f)?void 0:f.platform.time.lta(p.f);return this.$i(p.g);};m.prototype.fail=function(p){this.cZ=p;};m.prototype.debug=function(){this.get();c.rd(this.time) || f.platform.time.ha();};m.prototype.bI=function(){this.cZ=void 0;};return m;})();t=(function(){function m(p,r){var q;this.config=p;this.u2a=r;this.llc();this.hD=new l(this.config);this.load();if(p=p.Zma){q=n.__assign(n.__assign({},k),{confidence:g.default.sr.W3,kb:{Fa:p,ng:0}});this.get=function(){return q;};}}m.prototype.gpa=function(p,r){var q;q=this.config;p=d(this.history,null !== p && void 0 !== p?p:"",{});return d(p,r?r:"",new l(q));};m.prototype.load=function(){var p,r;p=(0,h.tLb)("lh",this.QWc.bind(this));r=(0,h.tLb)("gh",this.KRb.bind(this));p && this.$i(p);r && this.FPc(r);};m.prototype.KRb=function(p){if(p && "object" === typeof p)return p;};m.prototype.QWc=function(p){var q,u;if(p && "object" === typeof p){for(var r in p){q=p[r];for(u in q)q[u].g=this.KRb(q[u].g) || null;}return p;}};m.prototype.getState=function(){var p,r,q,u,v;p={};for(r in this.history){q=this.history[r];for(u in q){v=q[u];d(p,r,{})[u]=v.Cqc();}}return p;};m.prototype.FPc=function(p){this.hD.$i(p);};m.prototype.$i=function(p){var r,q,u,v,w,x,y;r=!0;q=this.config;for(u in p){v=p[u];for(w in v){x=v[w];y=new l(q);y.QPc(x)?d(this.history,u,{})[w]=y:r=!1;}}return r;};m.prototype.save=function(){var p;p=this.getState();f.platform.storage.set("lh",p);f.platform.storage.set("gh",this.hD.getState());};m.prototype.llc=function(){this.history={};this.Vma=this.krb="";this.Xl=null;};m.prototype.mwa=function(p){this.krb=p;this.Xl=null;};m.prototype.yMb=function(p){this.Vma=p;this.Xl=null;};m.prototype.UG=function(){c.rd(this.Xl) && (this.Xl=this.gpa(this.krb,this.Vma));return this.Xl;};m.prototype.$ka=function(p,r){this.UG().$ka(p,r);this.hD.$ka(p,r);};m.prototype.Wka=function(p){this.UG().Wka(p);this.hD.Wka(p);};m.prototype.ala=function(p){this.UG().ala(p);this.hD.ala(p);};m.prototype.Bxa=function(p,r){p && p.ow && p.Es && p.pw && (this.UG().Bxa(p,r),this.hD.Bxa(p,r));};m.prototype.$W=function(p){this.UG().$W(p);this.hD.$W(p);};m.prototype.ZW=function(p){this.UG().ZW(p);this.hD.ZW(p);};m.prototype.Uka=function(p){this.UG().Uka(p);this.hD.Uka(p);};m.prototype.fail=function(p,r){this.gpa(p,this.Vma).fail(r);};m.prototype.get=function(p){if(p=(p=this.history[p])?p[this.Vma]:null)if((p=p.get(),p.confidence > g.default.sr.HAVE_NOTHING))return p;return this.hD.get();};m.prototype.debug=function(){var r,q;for(var p in this.history){r=this.history[p];for(q in r)r[q].debug(p);}};return m;})();b["default"]=t;},95880:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970).__importStar(a(17267));n=a(66164);new n.platform.Console("ASEJS_LOCATION_HISTORY","media|asejs");t=(function(){function c(f){this.config=f;this.load();}c.prototype.save=function(){var f;f=this.getState();n.platform.storage.set("nh",f);};c.prototype.cOb=function(){this.Qy || (this.Qy=!0,this.UH=n.platform.time.ha());};c.prototype.Owa=function(){var f;if(this.Qy){f=n.platform.time.ha();this.oI+=f - this.UH;this.UH=f;this.Qy=!1;this.Vaa=-1;}};c.prototype.bAb=function(f,g){this.Qy && (g > this.UH && (this.oI+=g - this.UH,this.UH=g),-1 === this.Vaa || f > this.Vaa) && (f=g - f,this.b_.push([this.oI - f,f]),this.trim(),this.Vaa=g);};c.prototype.trim=function(){var f;f=this.oI - this.config.jDc;this.b_=this.b_.filter(function(g){return g[0] > f;});};c.prototype.load=function(){var f;f=n.platform.storage.get("nh");this.$i(f) || (this.UH=n.platform.time.ha(),this.oI=0,this.Qy=!1,this.Vaa=-1,this.b_=[]);};c.prototype.$i=function(f){if(!(f && d.has(f,"t") && d.has(f,"s") && d.has(f,"i") && d.pc(f.t) && d.pc(f.s) && d.isArray(f.i)))return !1;this.UH=n.platform.time.lta(1E3 * f.t);this.oI=1E3 * f.s;this.Qy=!1;this.b_=f.i.map(function(g){return [1E3 * g[0],g[1]];});this.Vaa=-1;return !0;};c.prototype.getState=function(){return this.Qy?{t:n.platform.time.now() / 1E3 | 0,s:(this.oI + (n.platform.time.ha() - this.UH)) / 1E3 | 0,i:this.b_.map(function(f){return [f[0] / 1E3 | 0,f[1]];})}:{t:n.platform.time.Bsa(this.UH) / 1E3 | 0,s:this.oI / 1E3 | 0,i:this.b_.map(function(f){return [f[0] / 1E3 | 0,f[1]];})};};return c;})();b["default"]=t;},40497:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=d.__importStar(a(17267));t=a(90745);c=a(66164);f=a(91176);g=a(72697);e=a(97315);h=a(96965);k=a(66917);l=a(64772);m=a(75640);p=new c.platform.Console("ASEJS_NETWORK_MONITOR","media|asejs");a=(function(q){function u(v,w,x,y){var A;A=q.call(this) || this;A.ft={};A.qda=0;A.hM=0;A.Y5=[];A.buffer=0;A.Zj=!1;A.TBb=-Infinity;A.xrb=null;A.config=y;A.pub=new e.hBa(y);A.q9=new l.SAa(!0);A.W6=new l.SAa(!1);y.vkc && (A.F0=new m.ydb(A.config));A.reset();A.YL=v;A.Hz=w;A.QT=x;A.Zzb=c.platform.GD.name();A.Hz.yMb(A.Zzb);c.platform.events.on("networkchange",A.rFc.bind(A));return r=A;}d.__extends(u,q);u.instance=function(){return r;};u.reset=function(){r && r.reset();};Object.defineProperties(u.prototype,{lxc:{get:function(){return c.platform.time.now() - this.TBb < this.config.Gda;},enumerable:!1,configurable:!0}});u.prototype.rFc=function(v){this.Zzb=v;this.Hz.yMb(v);};Object.defineProperties(u.prototype,{Xl:{get:function(){return this.Hz;},enumerable:!1,configurable:!0}});u.prototype.QQb=function(){var v;if(!this.h3a){v=this.byb();this.Hz.$ka(v.default.Fa,this.confidence);v["initial-throughput-ewma"] && v["initial-throughput-ewma"].Fa && this.Hz.Wka(v["initial-throughput-ewma"].Fa);v["throughput-ci"] && this.Hz.ala(v["throughput-ci"]);v.deliverytime && this.Hz.Uka(v.deliverytime);this.Hz.Bxa(v.lL?v.lL.xYa:void 0,v.lL?v.lL.WNc:void 0);n.rd(this.Lr) || (this.h3a=!0);}};Object.defineProperties(u.prototype,{startTime:{get:function(){return this.Mz;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{confidence:{get:function(){return this.ft.confidence.get(0);},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{Hm:{get:function(){return this.hx;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{n5b:{get:function(){return this.Y5;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{JBb:{get:function(){return this.Gjb;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{location:{get:function(){return this.YO;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{aFb:{get:function(){return this.Zjb;},enumerable:!1,configurable:!0}});u.prototype.f2b=function(){var v,w,x,y;v=this.config;w=v.q2b.concat(v.y2b).filter(Boolean);x=v.rIa;y=this.pub;w=w.reduce(function(A,z){A[z]=y.create(z,x);return A;},{});w.confidence=new k.yO(v,new h.ycb(v,this.yta.bind(this)));return w;};u.prototype.reset=function(){var v,w,x,y;v=this.config.rIa;w=this.pub;x=this.config;this.YO=null;this.Zjb=void 0;this.ft=this.f2b();if(this.config.jtb){y=this.config.mPb;this.ft.aUc=new g.O3(y.numB * y.bSizeMs,y.bSizeMs);}this.q9.reset();this.W6.reset();this.Ih=w.create("respconn-ewma",v);this.jn=w.create("respconn-ewma",v);this.F0 && this.F0.reset();this.PVc=this.QQb.bind(this);n.ey(this.E2) || (clearInterval(this.E2),this.E2=void 0);this.Md=this.Lr=this.Mz=null;this.sxa=0;x.LKb && (this.hM=this.qda=this.hx=0,this.Y5=[]);};u.prototype.mwa=function(v){var w;w=this.ft;if(v !== this.YO){n.ey(this.E2) || (clearInterval(this.E2),this.E2=void 0);n.rd(this.YO) && (this.sxa=0,this.Mz=null);if(!n.rd(v)){for(var x in w)w[x] && w[x].reset && w[x].reset();this.Ih.reset();this.jn.reset();}n.rd(this.Mz) || (this.sxa+=(n.rd(this.Lr)?c.platform.time.ha():this.Lr) - this.Mz);this.Lr=this.Mz=null;this.YO=v;this.Hz.mwa(v);}};u.prototype.YW=function(v,w,x,y){var A,z,B;this.Gjb=Math.max(this.Gjb || 0,x);this.hM-=v;z=this.config;B=this.ft;if(!0 === y.V2)(y=B["throughput-wssl"]) && y.add(v,w,x,!0);else if(n.ey(w))p.warn("addDataReceived called with undefined start time");else if((this.F0 && this.F0.YW(v,w,x,y),!z.hqa || !(x - w < z.mNb || y.ma <= z.lNb))){z.x2b && x - w < z.DEb?w=x - z.DEb:0 === x - w && (w=x - 1);this.q9.YW(v,w,x,y);this.W6.YW(v,w,x,y);for(var C in B)B[C] && B[C].add && B[C].add(v,w,x,y);n.rd(this.Mz) && (this.Mz=w,this.Lr=null,this.h3a=!1);n.rd(this.Lr) || (w > this.Lr && (this.Mz+=w - this.Lr),this.Lr=null,this.h3a=!1);n.rd(this.Md) || (w - this.Md > z.$jb?this.YL.bAb(this.Md,w):x - w > z.$jb && this.YL.bAb(w,x));this.Md=this.Md?Math.max(x,this.Md):x;null === (A=this.xrb) || void 0 === A?void 0:A.resolve();}};u.prototype.$W=function(v){isNaN(v) || n.rd(v) || (this.Ih.add(v),this.Hz.$W(v));};u.prototype.ZW=function(v){isNaN(v) || n.rd(v) || (this.jn.add(v),this.Hz.ZW(v));};u.prototype.start=function(v,w){var x;n.rd(this.Md) && !n.rd(this.Lr) && (this.Md=v);x=this.ft;if(this.config.Hwa)for(var y in x)x[y] && x[y].start && x[y].start(v,w);};u.prototype.stop=function(v,w){var x,y;x=this.ft;for(y in x)x[y] && x[y].stop && x[y].stop(v,w);this.Lr=n.rd(this.Lr)?v:Math.min(this.Lr,v);this.Md=null;};u.prototype.flush=function(){var v,w;v=this.ft;for(w in v)v[w] && v[w].flush && v[w].flush();this.w$b();this.dOc();};u.prototype.dOc=function(){var v,w;v=this.aFb;w=0;v && ("uhd" in v) && (w=v.uhd);(v=this.get()) && v.avtp && v.avtp.Fa && (this.QT.R5b(v.avtp.Fa,w,v.avtp.wOa),this.QT.save());};u.prototype.w$b=function(){var v;v=this.ft.entropy;v && (this.Zjb=v.n$b(),v.reset());};u.prototype.byb=function(){var v,w,x,y,A,z,B,C;v=c.platform.time.ha();w=this.ft;x=this.config;y=x.hjb;A=x.l2b;z=x.Bkb;B={};for(C in w)w[C] && w[C].get && (B[C]=w[C].get(v,this.hM),"iqr" === w[C].type && (B.lL=B[C]),"tdigest" === w[C].type && (B.ul=B[C]),"wssl" === w[C].type && (B.V2=B[C]));B.cdnavtp=this.q9.gl();B.activecdnavtp=this.W6.gl();B.default=y && B[y] && A && void 0 !== B[y][A]?{Fa:B[y][A]}:y && B[y]?B[y]:B["throughput-ewma"];"none" !== x.Wva && "none" !== z && (B.LLb=z && B[z]?B[z]:B["throughput-sw"]);return B;};u.prototype.IRa=function(){return this.F0?this.F0.IRa():void 0;};u.prototype.get=function(){var v,w,x,y,A,z;v=this.byb();w=v.default;x=this.Ih.get();y=this.jn.get();A=this.config;if(v.LLb){z=v.LLb;w=n.pc(w.Fa) && n.pc(z.Fa) && w.Fa > z.Fa && 0 < z.Fa?z:w;}v.kb=w;v.Wx=v["initial-throughput-ewma"];!A.Hkc || !w || n.rd(w.Fa) || isNaN(w.Fa) || !v.V2 || n.rd(v.V2.Fa) || isNaN(v.V2.Fa) || ("max" === A.ESb?v.kb.Fa=Math.max(v.V2.Fa,w.Fa):"sum" === A.ESb && (v.kb.Fa+=v.V2.Fa));v.Ih=x;v.jn=y;this.config.jtb && (w=this.config.mPb,v.Udd=this.ft.aUc.get(w.fillS,w.fillHl));w=this.sxa + (n.rd(this.Mz)?0:(n.rd(this.Lr)?c.platform.time.ha():this.Lr) - this.Mz);v.time=w;return v;};u.prototype.Usc=function(){var v,w,x;v={};w=this.get();if(w.confidence && w["throughput-ewma"]){v.aseavtp=Number(w["throughput-ewma"].Fa).toFixed(2);v.asevartp=Number(w["throughput-ewma"].ng).toFixed(2);if(w.lL){x=w.lL.xYa;!x || void 0 === x.pw || void 0 === x.ow || void 0 === x.Es || isNaN(x.pw || 0) || isNaN(x.ow) || isNaN(x.Es) || (v.aseniqr=0 < x.Es?Number((x.pw - x.ow) / x.Es).toFixed(2):-1,v.aseiqr=Number(x.pw - x.ow).toFixed(2),v.asemedtp=Number(x.Es).toFixed(2));v.iqrsamples=w.lL.WNc;}w.ul && w.ul.CZ && (v.tdigest=w.ul.CZ());}return v;};u.prototype.bSa=function(){return this.QT.bSa();};u.prototype.jE=function(v,w){var x,y,A;x=w.requestId;1 === ++this.hx && this.emit("active",v);if(this.config.IY){y=this.ft;for(A in y)y[A] && y[A].jE && y[A].jE(v,w);}this.config.Nwa && this.start(v,w);x && (this.config.Nwa || this.start(v,w),this.Y5.push(x));this.hM+=w.ma || 0;this.q9.jE(v,w);this.W6.jE(v,w);};u.prototype.TMc=function(){++this.qda;};u.prototype.kE=function(v,w,x){var y,A,z;y=x.requestId;w && --this.qda;--this.hx;this.hM=Math.max((this.hM || 0) - ((x.ma || 0) - (x.bytesReceived || 0)),0);this.config.LKb && (this.hx=Math.max(this.hx,0),this.qda=Math.max(this.qda,0));if(this.config.IY){A=this.ft;for(z in A)A[z] && A[z].kE && A[z].kE(v,w,x);}this.config.Nwa && this.stop(v,x);0 === this.hx && (this.config.Nwa || this.stop(v,x),this.emit("inactive",v));y && (w=this.Y5.indexOf(y),0 <= w && this.Y5.splice(w,1));this.q9.kE(v,x);this.W6.kE(v,x);};u.prototype.yta=function(){this.QQb();this.E2=setInterval(this.PVc,this.config.l3b);};u.prototype.gNc=function(){return d.__awaiter(this,void 0,void 0,function(){var v,w,x,y,A,z,B,C,D,F,H;return d.__generator(this,function(E){switch(E.label){case 0:v=this.get();w=v.kb.Fa;x=v.Ih.Fa;if(this.lxc)return [2,{gFb:w,HEc:w,VKb:x}];this.TBb=c.platform.time.now();y=this.config;A=y.hjb;z=y.Bkb;return A.match(/ewma/)?[4,this.xrb=new f.Jo()]:[2,null];case 1:return (E.T(),B=this.get(),C=(null === (H=B["throughput-sw-fast"]) || void 0 === H?void 0:H.Fa) || 0,D=this.ft[A],F="none" !== z?this.ft[z]:null,null === D || void 0 === D?void 0:D.reset(),null === F || void 0 === F?void 0:F.reset(),[2,{gFb:C,HEc:w,VKb:x}]);}});});};return u;})(t.EventEmitter);b["default"]=a;},75539:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.$Da=b.kh=void 0;t=a(22970);d=a(90745);n=a(66164);a(97685);c=a(52571);f=a(45550);g=a(65161);e=t.__importDefault(a(40497));(function(k){k[k.UB=0]="CREATED";k[k.OPENED=1]="OPENED";k[k.EN=2]="ACTIVE";k[k.xm=3]="RECEIVING";k[k.Kn=4]="COMPLETE";k[k.Nw=5]="ABORTED";})(h || (b.kh=h={}));a=(function(){function k(l,m,p,r,q,u,v,w,x,y){this.stream=l;this.Hg=m;this.properties=q;this.listener=v;this.K=w;this.config=x;this.console=y;this.Eka=this.NO=0;this.$a=h.UB;this.Ud=!1;this.request=new n.platform.Al(p,r,this.dsc(q,w));this.offset=u.offset;this.$e=u.ma;this.id=this.dqc();this.zNb=q.BB;this.DM=q.DM;this.Ky=q.Ky;this.responseType=void 0 === q.responseType?n.platform.Al.vg && !n.platform.Al.vg.I_a.tGa?0:1:q.responseType;this.Qj=this.Q7b();this.mediaType === g.u.Ca || !x.Vka && q.df || (this.bd=e.default.instance());}Object.defineProperties(k.prototype,{url:{get:function(){return this.Hg;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{ma:{get:function(){return this.$e;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{mediaType:{get:function(){return this.stream.mediaType;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{bytesReceived:{get:function(){return this.NO;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{status:{get:function(){return this.request.status;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{mj:{get:function(){return this.request.mj;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{response:{get:function(){return this.request.response;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{bh:{get:function(){return this.request.bh;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{YC:{get:function(){return this.request.YC;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Qg:{get:function(){return this.request.Qg;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{uK:{get:function(){return this.request.track;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{cI:{get:function(){return this.request.cI;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{nw:{get:function(){return this.$a >= h.OPENED && this.$a < h.Kn;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{active:{get:function(){return this.$a >= h.EN && this.$a < h.Kn;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{UZa:{get:function(){return this.$a === h.xm;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{complete:{get:function(){return this.$a === h.Kn;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{aborted:{get:function(){return this.$a === h.Nw;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{state:{get:function(){return this.$a;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{endOffset:{get:function(){return this.offset + this.$e - 1;},enumerable:!1,configurable:!0}});k.prototype.open=function(){if(this.$a !== h.UB || !this.request.open(this.Hg,{start:this.offset,end:this.endOffset},this.responseType,{},void 0,void 0,this.zNb,this.stream.Gw,this.stream.za?this.stream.M.Iq.CK:void 0))return !1;this.$a=h.OPENED;return !0;};k.prototype.m2=function(l){if(this.state < h.OPENED || this.state >= h.Kn)return (this.Hg=l,!0);if(this.Hg === l){if(this.Ud || this.state === h.EN && n.platform.time.ha() - this.mj > this.config.GCc)return this.lOc();}else return (this.AMa(),this.Eka=0,this.Hg=l,this.Ud=!1,this.request.m2(l));return !0;};k.prototype.lOc=function(){var l,m;l=this;if(void 0 === this.Wda){m=this.request.mj?n.platform.time.ha() - this.request.mj:0;m=Math.max(0,this.config.Osa - m);m+=Math.random() * Math.min(this.config.lDc * Math.pow(2,this.Eka),this.config.kDc);this.Eka+=1;this.Wda=setTimeout(function(){l.Wda=void 0;l.state < h.Kn && (l.Ud || l.state === h.EN) && (l.Ud=!1,l.request.m2(l.Hg) || l.listener.yy(l));},m);}return !0;};k.prototype.abort=function(){var l;if(this.aborted)return !0;this.active && (null === (l=this.bd) || void 0 === l?void 0:l.kE(n.platform.time.ha(),this.UZa,this.KZ()));this.$a=h.Nw;this.AMa();this.request.abort();return !0;};k.prototype.Qe=function(){var l,m,p;if(7 !== this.request.readyState && 5 !== this.request.readyState){m=this.nw;p=this.active;this.abort();this.listener.z0(this,p,m);}this.AMa();null === (l=this.Qj) || void 0 === l?void 0:l.clear();this.request.Qe();};k.prototype.getResponseHeader=function(l,m){return this.request.getResponseHeader(l,m);};k.prototype.getAllResponseHeaders=function(l){return this.request.getAllResponseHeaders(l);};k.prototype.bwb=function(){var l,m;l=this.getResponseHeader("content-range",!1);if(l){m=l.indexOf("/");(0,c.assert)(-1 !== m,"unable to parse content-range: " + l);m=l.slice(m + 1);m=parseInt(m);(0,c.assert)(0 < m,"unable to parse content-range: " + l);return m;}};k.prototype.j1=function(){this.request.j1();};k.prototype.Ei=function(){return this.request.Ei();};k.prototype.q0=function(){var l,m;if(this.$a === h.OPENED){this.$a=h.EN;m=this.request.mj || this.request.loadTime;f.PN.instance().push(n.platform.time.ha() - m);!this.config.xDb && (null === (l=this.bd) || void 0 === l?void 0:l.jE(m,this.KZ()));this.listener.BS(this);this.timestamp=m;}};k.prototype.zta=function(){var l,m,p,r;if(!(this.$a >= h.xm)){this.$a=h.xm;r=this.request.mj || this.request.RPa;f.PN.instance().push(n.platform.time.ha() - r);this.config.xDb && (null === (l=this.bd) || void 0 === l?void 0:l.jE(r,this.KZ()));null === (m=this.bd) || void 0 === m?void 0:m.TMc();l=this.request.cI;this.request.connect && l.length && (null === (p=this.bd) || void 0 === p?void 0:p.$W(l[0]));this.timestamp=r;this.listener.cM(this);0 === this.$e && this.gWc(this.request.Lu);this.request.getAllResponseHeaders(!0);}};k.prototype.AS=function(){var l;if(!(this.$a > h.xm)){this.$a=h.xm;l=this.request.mj;f.PN.instance().push(n.platform.time.ha() - l);l=this.oXa(!0);this.listener.ND(this,l);}};k.prototype.LD=function(){var l,m,p;if(!this.aborted){m=this.request.mj;f.PN.instance().push(n.platform.time.ha() - m);p=this.oXa(!0);null === (l=this.bd) || void 0 === l?void 0:l.kE(m,this.UZa,this.KZ());this.$a=h.Kn;this.listener.uo(this,p);this.Qe();}};k.prototype.VEc=function(){this.listener.Jta(this);};k.prototype.xca=function(){var l;if(!this.complete && !this.aborted && "number" === typeof this.request.bh){this.Ud=!0;l=this.request.mj;f.PN.instance().push(n.platform.time.ha() - l);this.oXa(this.config.tva && void 0 === this.request.status);this.listener.yy(this);}};k.prototype.oXa=function(l){var m,p,r,q;m=this;r=this.request.mj;q=this.request.bytesReceived - this.NO;l && this.bd && (void 0 !== this.timestamp && 0 < q && this.bd.YW(q,this.timestamp,r,this.KZ()),null === (p=this.request.cI) || void 0 === p?void 0:p.forEach(function(u){return m.bd.ZW(u);}));this.timestamp=r;this.NO=this.request.bytesReceived;return q;};k.prototype.gWc=function(l){var m;m=this.$e;this.$e=l;this.listener.CS(this,this.$e,m);};k.prototype.KZ=function(){var l;return {requestId:this.id,Sl:this.stream.Ab,Jf:null === (l=this.stream.M.S.Xz) || void 0 === l?void 0:l.Jf,type:this.mediaType,DM:this.DM,ma:this.$e,bytesReceived:this.request.bytesReceived,Ky:this.Ky};};k.prototype.dqc=function(){var l;l=(l=this.stream)?l.toString():this.url;this.$e && (l+=",range " + this.offset + "-" + (this.offset + this.$e - 1));return l;};k.prototype.Q7b=function(){var l,m,p;l=this;m=new d.gf();p=n.platform.Al.pm;m.on(this.request,p.Pcb,function(){return l.q0();});m.on(this.request,p.Ocb,function(){return l.zta();});m.on(this.request,p.Qcb,function(){return l.AS();});m.on(this.request,p.r5,function(){return l.LD();});m.on(this.request,p.k2c,function(){return l.VEc();});m.on(this.request,p.gJ,function(){return l.xca();});return m;};k.prototype.dsc=function(l,m){return {mediaType:this.mediaType,Sa:this.stream.Sa,bitrate:this.stream.bitrate,dd:this.stream.Ab,HA:!l.df,L:m.id,config:this.config,fQa:l.fQa};};k.prototype.AMa=function(){void 0 !== this.Wda && (clearTimeout(this.Wda),this.Wda=void 0);};k.prototype.toString=function(){return "ID: " + this.request.Ei() + " " + this.id;};k.prototype.toJSON=function(){return {requestId:this.request.Ei(),id:this.id};};return k;})();b.$Da=a;},75640:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.ydb=void 0;d=a(65161);n=a(43276);t=(function(){function c(f){var x$8;x$8=2;for(;x$8 !== 7;){switch(x$8){case 2:this.Mda=[0,0];this.Lu=[0,0];x$8=5;break;case 5:var l_B="1SIYb";l_B+="ZrNJCp";l_B+="9";this.Dca=[0,0];l_B;this.Eca=f.Eca;x$8=9;break;case 9:this.dYa=[new n.LN(),new n.LN()];this.XGb=new n.LN();x$8=7;break;}}}var j_d;j_d=2;for(;j_d !== 3;){switch(j_d){case 2:c.prototype.reset=function(){var O0N;O0N=2;for(;O0N !== 4;){switch(O0N){case 2:this.Mda=[0,0];this.Lu=[0,0];this.Dca=[0,0];O0N=4;break;}}};c.prototype.YW=function(f,g,e,h){var L32,k,l;L32=2;for(;L32 !== 8;){switch(L32){case 2:this.Lu[h.type]+=f;L32=5;break;case 3:L32=(null === (l=h.DM) || void 0 === l?0:l.bWa(f,g,e,this.Eca))?9:8;break;case 9:this.Dca[h.type]+=f;L32=8;break;case 5:L32=(null === (k=h.DM) || void 0 === k?0:k.Qqa())?4:3;break;case 4:(this.Mda[h.type]+=f,this.XGb.add(f,g,e),this.dYa[h.type].add(f,g,e));L32=3;break;}}};c.prototype.IRa=function(){var o_$;o_$=2;for(;o_$ !== 1;){switch(o_$){case 2:return {bytesRequestedPacingVideo:this.Mda[d.u.U],bytesRequestedPacingAudio:this.Mda[d.u.X],estimatedBytesPacedVideo:this.Dca[d.u.U],estimatedBytesPacedAudio:this.Dca[d.u.X],bytestotalVideo:this.Lu[d.u.U],bytestotalAudio:this.Lu[d.u.X],pacedAvtpVideo:this.dYa[d.u.U].get().Fa,pacedAvtpAudio:this.dYa[d.u.X].get().Fa,pacedAvtp:this.XGb.get().Fa};break;}}};return c;break;}}})();b.ydb=t;},66058:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(66164);n=new d.platform.Console("ASEJS_SESSION_HISTORY","media|asejs");t=(function(){function c(f){this.config=f;this.SC={avtp:0,neuhd:0,d:0,t:0};this.load();}c.prototype.load=function(){var f;f=this;(this.Wq=d.platform.storage.get("sth"))?(this.Wq=this.Wq.filter(function(g){return g.d >= f.config.aca && 0 <= g.neuhd && 0 < g.avtp;}),this.Wq.sort(function(g,e){return g.t - e.t;}),n.log("session history list: ",this.Wq)):this.Wq=[];};c.prototype.save=function(){this.SC.d >= this.config.aca && 0 <= this.SC.neuhd && 0 < this.SC.avtp && (this.Wq.push(this.SC),this.Wq.length > this.config.Iba && (this.Wq=this.Wq.slice(this.Wq.length - this.config.Iba)),this.Wq.length && (n.log("saving state: ",JSON.stringify(this.Wq)),d.platform.storage.set("sth",this.Wq)));this.SC={avtp:0,neuhd:0,d:0,t:0};};c.prototype.reset=function(){this.Wq=[];this.SC={avtp:0,neuhd:0,d:0,t:0};};c.prototype.bSa=function(){return this.Wq;};c.prototype.R5b=function(f,g,e){this.SC.avtp=f;this.SC.neuhd=g;this.SC.d=e;this.SC.t=d.platform.time.ha();};return c;})();b["default"]=t;},88318:function(t,b,a){var n,c;function d(f){this.Bb={Hba:f.maxc || 25,NMa:f.c || .5,jLc:f.rc || "none",uA:f.hl || 7200};this.J6();this.l4b=this.Bb.jLc;this.M2b=this.Bb.uA;this.VHa=Math.exp(Math.log(2) / this.M2b);this.VHa=Math.max(this.VHa,1);this.Oja=1;}n=a(17267);c=a(15913).TDigest;new (a(66164).platform.Console)("ASEJS_NETWORK_HISTORY","media|asejs");d.prototype.getState=function(){var f;if(0 === this.Gg.size())return null;f=this.Gg.Ek([.25,.75]);if(f[0] === f[1])return null;this.Gg.size() > this.Bb.Hba && this.Gg.Zo();f=this.Gg.wj(!1).reduce((function(g,e){n.pc(e.Eh) && n.pc(e.n) && g.push({mean:e.Eh,n:e.n / this.Oja});return g;}).bind(this),[]);return {tdigest:JSON.stringify(f)};};d.prototype.$i=function(f){var g;if(n.rd(f) || !n.has(f,"tdigest") || !n.Fi(f.tdigest))return !1;try{g=JSON.parse(f.tdigest);}catch(e){return !1;}g.forEach(function(e){n.isFinite(e.n) || (e.n=1);});f=g.map(function(e){return {Eh:e.mean,n:e.n};});this.Oja=1;this.Gg.HZa(f);void 0 === this.Gg.Ek(0) && this.J6();};d.prototype.get=function(){var f,g;f=this.Gg;g=f.Ek([0,.1,.25,.5,.75,.9,1]);return {min:g[0],bYa:g[1],ow:g[2],Es:g[3],pw:g[4],cYa:g[5],max:g[6],Rm:f.wj(!1)};};d.yrc=function(f){var g;g=new d({});n.rd(f) || n.ey(f) || !n.isArray(f.Rm) || (g.Gg.HZa(f.Rm),void 0 === g.Gg.Ek(0) && g.J6());f=g.Gg.Ek([.25,.75]);return f[0] === f[1]?null:function(e){return g.Gg.Ek(e);};};d.prototype.add=function(f){var g;g=1;"ewma" === this.l4b && (this.Oja=g=this.Oja * this.VHa);this.Gg.push(f,g);};d.prototype.toString=function(){return "TDigestHist(" + this.Gg.summary() + ")";};d.prototype.J6=function(){this.Gg=new c(this.Bb.NMa,this.Bb.Hba);};t.exports={mhb:d};},36974:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Y8a=void 0;d=a(95316);n=a(91176);t=(function(){function c(){}c.prototype.cMb=function(f){var g,e,h,k;e=f.profile;h=f.frameRate;f=null !== (g=(0,n.cc)(d.GI,function(l){return d.Yfa[l].test(e);})) && void 0 !== g?g:"h264hpl";g=d.yN[f].some(function(l){return (0,d.pQa)(h,d.U9[l]);})?h:null;if(!g){k={$:h.$ / 2,O:h.O};g=d.yN[f].some(function(l){return (0,d.pQa)(k,d.U9[l]);})?k:null;}g || (g=d.U9[d.yN[f][0]]);return {profile:f,frameRate:g};};return c;})();b.Y8a=t;},27259:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Bdb=void 0;d=a(52571);n=a(36974);c=a(603);t=(function(){function f(g){this.config=g;}f.prototype.create=function(){switch(this.config.HS){case "strict":return new c.Ygb();case "flexible":return new n.Y8a();default:(0,d.assert)(!1,("Invalid padding codec selector: ").concat(this.config.HS));}};return f;})();b.Bdb=t;},27977:function(t,b,a){var n,c,f,g,e,h,k,l,m,p;function d(r){return function(){return ("[").concat(r,":padding]");};}Object.defineProperties(b,{__esModule:{value:!0}});b.Pgb=void 0;b.Yvb=function(r){return -1 !== r.indexOf("xheaac")?"xheaac":-1 !== r.indexOf("heaac")?"heaac":"ddp";};n=a(95316);c=a(91176);f=a(26388);g=a(52571);e=a(48170);h=a(26279);k=a(79459);l=a(444);m=a(52629);t=(function(){function r(q,u){p=new n.Ogb(q,u);}r.NLa=function(){(0,g.assert)(p,"expected StaticMediaCache to exist");return p;};r.prototype.fJb=function(q,u,v,w,x,y,A,z,B,C){var D,F,H,E,G,J,L,K,M;D=[];w=r.NLa().Asc(v,w,x);F=new c.I(w.duration);H=new c.I(w.Ea);E=H.O;G=w.profile;J={gAb:!0,mediaType:f.u.X,sAb:!0,Uc:G,profile:G,O:E,Pj:[{Te:0,data:w.Tb}],sh:!0,Ea:H,ze:u,Sh:B.Sh,M:q,bitrate:w.bitrate,Sa:"-1",track:{trackId:"1",mediaType:f.u.X,lp:!1,Ea:H,M:q,channels:w.channels,sampleRate:48E3,profile:G,hLa:"heaac" === v?"AAC":"DDP",Ed:[],vu:x,toString:d(f.u.X)},toJSON:function(){return {mediaType:J.mediaType,Sa:J.Sa,bitrate:J.bitrate};}};J.ks=J.track.ks=h.n3.prototype.ks.bind(J.track);J.track.Ed.push(J);q=new c.I(w.Ea);v=B.Sh?u:c.I.ia;x=v.add(F);e.l && C.trace(("StaticMedia: audio target duration is ").concat(y.ca()));G=c.I.ia;u=B.Sh?-Math.ceil(u.nf(H)):0;B=v;for(H=!0;B.lessThan(y);){B=B.add(F);B.greaterThan(y) && (L=F.nf(q) - Math.floor(B.ea(y).nf(q)));K=B.Tf(y);M=H?0:K?y.ea(G).G:void 0;H=new k.aza(w.Tb,w.La,J,E,v.Kc(E).$,x.Kc(E).$,q,C,A,z.bind(void 0,E,G),M,H,K);H.xh({start:u,end:L});e.l && C.log(("PaddingBranch: enqueing request ").concat(H,", edit: ").concat(JSON.stringify({start:u,end:L}),", ") + ("offset ").concat(G.ca()));D.push(H);G=G.add(F);u=void 0;H=!1;}return D;};r.prototype.gJb=function(q,u,v,w,x,y,A,z,B,C){var D,F,H,E,G,J,L,K,M;D=[];u=r.NLa().Csc(u,v,w,x,y);v=new c.I(u.duration);F=u.profile;H=u.bitrate;E=u.width;G=u.height;J=u.gYa;L=u.hYa;w=u.Ea.O;x=new c.I(u.Ea);K=new l.pF(w,u.Ea.$);M={gAb:!0,mediaType:f.u.U,Uc:F,profile:F,O:w,Pj:[{Te:0,data:u.Tb}],sh:!0,Sa:"-1",Ea:x,M:q,bitrate:H,track:{trackId:"1",mediaType:f.u.U,lp:!1,Ea:x,frameRate:K,$ra:K,yo:new m.pW({w:E,Rx:G},{w:J,Rx:L}),M:q,profile:F,Ed:[],vu:y,toString:d(f.u.U)},toJSON:function(){return {mediaType:M.mediaType,Sa:M.Sa,bitrate:M.bitrate};}};M.ks=M.track.ks=h.n3.prototype.ks.bind(M.track);e.l && C.trace(("StaticMedia {").concat(z.id,"}: video queue"),M);M.track.Ed.push(M);F=Math.ceil(A.nf(v));A=v.eh(F);q=c.I.ia.Kc(w);y=q.add(A).Kc(w);e.l && C.trace(("PaddingBranch: ").concat(F," fragments of ").concat(v.ca(),", ") + ("duration ").concat(A.ca(),", ") + ("c: ").concat(q.ca(),"-").concat(y.ca(),", "));for(H=c.I.ia;H.lessThan(A);)(F=H.add(v),H=new k.aza(u.Tb,u.La,M,w,0,v.Kc(w).$,x,C,z,B.bind(void 0,w,H),void 0,H.equal(c.I.ia),F.Tf(A)),e.l && C.trace(("PaddingBranch: appended ").concat(H)),D.push(H),H=F);return {qa:q,ta:y,duration:A,Qa:D};};r.prototype.rKc=function(){return r.NLa().Bsc();};return r;})();b.Pgb=t;},603:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Ygb=void 0;t=(function(){function a(){}a.prototype.cMb=function(d){return d;};return a;})();b.Ygb=t;},73861:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperties(b,{__esModule:{value:!0}});b.beb=void 0;t=a(22970);d=a(91176);n=a(66164);c=a(26388);f=t.__importDefault(a(14282));g=f.default.Vp;e=f.default.uz;h=a(65161);k=a(69575);l=t.__importDefault(a(40497));a=(function(){function m(p,r,q,u,v){this.Ve=p;this.cs=r;this.config=q;this.console=u;this.mediaType=v;}m.prototype.enabled=function(){return !this.Ve.oa.Zc;};m.prototype.aEc=function(p){var r;if(this.enabled()){r=p.K;p={type:"updateStreamingPts",mediaType:p.mediaType,position:{L:r.id,offset:d.I.Ba(this.Ve.LMa).ea(r.ib)},completePlayerStreamingTimestamp:d.I.Ba(this.Ve.m8),trackIndex:p.stream.track.KJ,bufferLevelMs:this.Ve.oa.en(p.mediaType)};(0,k.oq)(this.cs,p.type,p);}};m.prototype.EFb=function(p,r,q){var u,v,w;if(this.enabled()){v=this.mediaType;w=this.Ve.Lp.uk(v);w.ST(p);p.mediaType !== h.u.X && p.mediaType !== h.u.U || !this.config.$da || (void 0 === w.bVa?w.WMb(n.platform.time.ha()):n.platform.time.ha() - w.bVa > this.config.$da && (p.bitrate !== w.XBb && (p.mediaType === h.u.U?(n.platform.storage.set("vb",p.bitrate),w.VMb(p.bitrate)):p.mediaType === h.u.X && (n.platform.storage.set("ab",p.bitrate),w.VMb(p.bitrate))),w.WMb(n.platform.time.ha())));w.nra && w.nra === p || (this.Ve.Lp.yOb(r,w.nra,p),w.TPc(p),r=0,p.yb && p.yb.confidence && p.yb.kb && (r=p.yb.kb.Fa),q={L:this.Ve.oa.K.id,offset:d.I.Ba(q).ea(this.Ve.oa.K.ib)},p={type:"streamSelected",nativetime:n.platform.time.ha(),mediaType:v,streamId:p.id,trackIndex:p.track.KJ,streamIndex:p.Iw,bandwidth:r,longtermBw:r,rebuffer:0,position:q,stream:p,manifest:null === (u=p.M) || void 0 === u?void 0:u.S},(0,k.oq)(this.cs,p.type,p));}};m.prototype.ZWa=function(p,r,q,u,v){this.enabled() && (p={type:"ellaChannelSwitch",moffms:q || 0,channel:r,vdlid:p,bw:u || 0,networkstat:v || ({fE:0,DD:0,KH:0,TH:0})},(0,k.oq)(this.cs,p.type,p));};m.prototype.aXa=function(p,r,q,u){this.enabled() && (p={type:"ellaRelaySwitch",moffms:q || 0,relayNode:p,channelName:r,reason:u || "unknown"},(0,k.oq)(this.cs,p.type,p));};m.prototype.ZL=function(p,r,q,u){this.enabled() && (p={type:"ellaRelayFailure",moffms:q || 0,relayNode:p,channelName:r,reason:u || "unknown"},(0,k.oq)(this.cs,p.type,p));};m.prototype.$Wa=function(p,r){this.enabled() && (p={type:"ellaFailure",mediaType:p,reason:r},(0,k.oq)(this.cs,p.type,p));};m.prototype.bXa=function(p,r,q,u,v){this.enabled() && (p={type:"ellaSuccess",mediaType:p,receivedsegmentcnt:r,relayNode:q,channelName:u,networkstat:v},(0,k.oq)(this.cs,p.type,p));};m.prototype.XDc=function(p,r,q){var u,v,w,x,y;if(this.enabled()){u=r.M;v=u.Vi;w=this.Ve.Lp.uk(r.mediaType);x=u.Mxc(r);y=x.HUa;x=x.Nxc;q && r.Ab && !w.BL?(x=e.iC,r.Gu=e.name[x],this.DFb(p,r.Ab,r.Gu,r.location,r.bitrate),w.BL=r.Ab):!q && r.Ab && r.Ab !== w.BL && (x=x?void 0 === w.BL?e.iC:v.L1 === e.uEa?e.m0b:e.kza:e.l0b,r.Gu=e.name[x],this.DFb(p,r.Ab,r.Gu,r.location,r.bitrate),w.BL=r.Ab);!w.s_ && r.location && (x={type:"logdata",target:"startplay",fields:{}},this.mediaType === g.X?x.fields.alocid=r.location:this.mediaType === g.U && (x.fields.locid=r.location),(0,k.oq)(this.cs,x.type,x));q && r.location && !w.s_?(x=e.iC,r.Gu=e.name[x],this.AFb(p,r.location,r.zVa,r.Ab,r.oea,r.Gu,r.WD,u.S),w.s_=r.location):!q && r.location && r.location !== w.s_ && (x=y?void 0 === w.s_?e.iC:v.L1 === e.uEa?e.yXb:e.kza:e.xXb,r.Gu=e.name[x],this.AFb(p,r.location,r.zVa,r.Ab,r.oea,r.Gu,r.WD,u.S),r.WD=void 0,w.s_=r.location);this.config.RH || (r.QBb=r.location,r.VBb=r.Ab);}};m.prototype.jta=function(p){p={type:"requestsPruned",requests:p};(0,k.oq)(this.cs,p.type,p);};m.prototype.DFb=function(p,r,q,u,v){var w,x;if(this.enabled())if(this.mediaType === g.Ca)this.console.warn("notifyServerSwitch ignored for MediaType.TEXT");else {w=c.hS[this.mediaType];x=l.default.instance().get();p={type:"serverSwitch",segmentId:p,mediatype:w,server:r,reason:q,location:u,bitrate:v,confidence:x.confidence};x.confidence && (p.throughput=x.kb.Fa);x=this.Ve.Lp.uk(this.mediaType).BL;void 0 !== x && (p.oldserver=x);(0,k.oq)(this.cs,p.type,p);}};m.prototype.AFb=function(p,r,q,u,v,w,x,y){this.enabled() && (this.mediaType === g.Ca?this.console.warn("notifyLocationSelected ignored for MediaType.TEXT"):(p={type:"locationSelected",segmentId:p,mediatype:c.hS[this.mediaType],location:r,locationlv:q,serverid:u,servername:v,selreason:w,seldetail:x,manifest:y},(0,k.oq)(this.cs,"locationSelected",p)));};m.prototype.E3b=function(p,r){this.enabled() && (p={type:"lastSegmentPts",segmentId:p.id,pts:Math.floor(r)},(0,k.oq)(this.cs,p.type,p));};m.prototype.iQa=function(p){(0,k.oq)(this.cs,"transportReport",p);};m.prototype.vnc=function(p){this.enabled() && (0,k.oq)(this.cs,"mediaRequestComplete",p);};return m;})();b.beb=a;},7611:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.t8a=void 0;d=a(66164);n=a(91176);c=new d.platform.Console("ASEJS_ELLA_MANAGER","media|asejs");a(97685);f=a(63292);g=a(37468);t=(function(){function e(h,k,l,m,p,r,q){this.config=h;this.Ve=k;this.track=l;this.zh=p;this.hNa=q;this.up=null;this.Sq=!1;this.VIa=void 0;this.akb=0;this.xW=!1;this.It={Kw:0,yfa:0,xfa:0,wfa:0,N7:new Map()};this.kY=void 0;this.DY=new f.r8a(h,l,this,this,p,r);this.ee=m;this.Sq=!0;this.config.xD?this.eSc():this.VNb();c.trace("EllaFragmentManager constructor: ",this.config.TR);}Object.defineProperties(e.prototype,{uS:{get:function(){d.platform.time.ha() - this.akb > this.track.Zk.G * this.config.tzc && (this.uS=void 0);if(void 0 !== this.VIa)return this.VIa;try{return this.track.M.fl(!0) - this.config.rzc;}catch(h){}},set:function(h){this.VIa=h;this.akb=d.platform.time.ha();},enumerable:!1,configurable:!0}});e.prototype.eSc=function(){var h;h=this;this.Wua || (this.Wua=setInterval(function(){h.Vac();},this.config.szc));};e.prototype.tSc=function(){this.Wua && (clearInterval(this.Wua),this.Wua=void 0);};e.prototype.Vac=function(){var h;if(this.config.xD){h={ep:this.Ve.Lk,Ql:this.uS};this.xW?this.hNa.ZQc(h).dg && this.lOb():this.hNa.XQc(h).dg && this.VNb();}};e.prototype.VNb=function(){if(!this.xW && !this.DY.Ud)try{this.DY.cOb();this.xW=!0;this.bFc();}catch(h){throw (c.error("Failed to start ELLA streaming",h),h);}};e.prototype.lOb=function(){if(this.xW){try{this.DY.Owa();}catch(h){c.error("Failed to stop ELLA streaming",h);}this.xW=!1;this.rXa();this.uS=void 0;}};e.prototype.close=function(){this.xW && (this.DY.Owa(),this.rXa());this.uS=void 0;};e.prototype.qXa=function(h,k){this.Sq && (this.up=this.ffc(h,k)) && (this.uS=this.up.ta.G,this.aFc(this.up),this.hNa.EQc(this.up,{ep:this.Ve.Lk,Ql:this.uS}).dg && (this.ee.ux(this.up),this.ee.ND(this.up,h.data.length),this.ee.uo(this.up,0),this.Ve.nQa(this.up),this.Ve.My(this.up.ta.G,this.up.index + 1),c.trace("ELLA fragment added to request manager",this.up)));};e.prototype.pXa=function(){};e.prototype.fGb=function(h){var k,l,m;if(this.Sq){m=(0,n.cc)(this.track.Ed,function(p){return p.Sa === h;});m?(c.trace("EllaFragmentManager: found stream matching streamId",h),this.Ve.RDc(m,null === (k=this.up) || void 0 === k?void 0:k.Ob.G,null === (l=this.up) || void 0 === l?void 0:l.ta.G)):c.trace("EllaFragmentManager: no stream found matching streamId",h);}};e.prototype.Jg=function(){this.Sq=!1;this.tSc();this.DY.Owa();this.rXa();};e.prototype.ffc=function(h,k){var l,m,p,r,q,u,v,w,x,y;(0,n.assert)(!0 === h.complete,"received an incomplete object from ella");if(!this.Ve.oa)return null;try{l=this.Ve.oa.M;}catch(A){return null;}m=h.zc.Ap;c.trace("ella object: ",JSON.stringify(h.zc),k);p=(function(A,z){var B,C,D,F;C=(0,n.cc)(A,function(H){var E,G;return null !== (G=null === (E=H.su.Hna) || void 0 === E?void 0:E.some(function(J){return J.ce === z;})) && void 0 !== G?G:!1;});if(C)return C;if(-1 !== z.indexOf("/")){D=z.split("/");F=null === (B=D[D.length - 1]) || void 0 === B?void 0:B.split("?")[0];F && (C=(0,n.cc)(A,function(H){return H.Sa === F;}));}return C;})(this.track.Ed,k);if(!p)return (c.error("ELLA object received but no stream found matching channel name",{Ap:h.zc.Ap,ce:k,Ed:this.track.Ed}),null);r=this.Ve.bob(p,m);k=r.bi;m=r.qa;q=r.ta;u=r.LG;v=r.LK;w=r.bn;x=r.Gi;y=r.pa;r=r.Ju;if(l.Ot && !l.Ot.pma(this.Ve.mediaType,0))return null;h=g.u8a.WP(p,h,this.Ve.oa.K,{bi:k,index:k,ub:m.$,Lb:q.$,LG:u,LK:v,O:p.O,offset:0,ma:0,bn:w,Gi:x,Ju:r,pa:y},!0);p.PB(this.Ve.oa.K);return h;};e.prototype.bFc=function(){this.kY=d.platform.time.ha();};e.prototype.rXa=function(){var h;if(void 0 !== this.kY){h=d.platform.time.ha() - this.kY;this.It.Kw+=h;this.kY=void 0;}};e.prototype.aFc=function(h){var k,l,m;this.It.yfa++;k=h.ta.G - h.qa.G;if(h=h.stream){l=("").concat(h.Sa,"_").concat(h.bitrate);m=this.It.N7.get(l);m || (m={Sa:h.Sa,bitrate:h.bitrate,duration:0},this.It.N7.set(l,m));m.duration+=k;}};e.prototype.o0=function(h){this.It.xfa+=h;};e.prototype.eGb=function(h){this.It.wfa+=h;};e.prototype.xta=function(h,k,l){var m,p,r;if(this.Sq){r=null === (m=this.up) || void 0 === m?void 0:m.ta.G;m=(null === (p=this.zh) || void 0 === p?void 0:p.Hx.gl()) || 0;this.Ve.ZWa(h,k,r,m,l);}};e.prototype.dGb=function(h,k,l){var m,p;if(this.Sq){p=null === (m=this.up) || void 0 === m?void 0:m.ta.G;this.Ve.aXa(h,k,p,l);}};e.prototype.rGb=function(h,k,l){var m,p;if(this.Sq){p=null === (m=this.up) || void 0 === m?void 0:m.ta.G;this.Ve.ZL(h,k,p,l);}};e.prototype.n0=function(h){this.Sq && (c.error(this.Ve.mediaType,"ELLA: All relay servers have failed. Client is in failed state. Fallback to HTTP required."),this.lOb(),this.Ve.$Wa(h));};e.prototype.gGb=function(h,k,l,m){this.Sq && this.Ve.bXa(h,k,l,m);};e.prototype.poc=function(){return {Kw:this.It.Kw + (this.kY?d.platform.time.ha() - this.kY:0),yfa:this.It.yfa,xfa:this.It.xfa,wfa:this.It.wfa,N7:Array.from(this.It.N7.values())};};e.prototype.TQa=function(){return this.DY;};return e;})();b.t8a=t;},98561:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Cab=void 0;d=a(22970);n=a(91176);c=a(48170);t=a(2415);f=a(99548);a=(function(g){function e(h){return g.call(this,h) || this;}d.__extends(e,g);e.prototype.wNb=function(){return this.splice?!0:this.K?0 !== this.K.Ua:!1;};e.prototype.AM=function(h,k){c.l && this.console.trace("LivePipelineNormalizer.renormalize:",this.ta);(0,n.assert)(this.eL,"expected to be called init() before renormalize");k=(0,f.Zda)(this.console,this.config,this.M,k) || k;return g.prototype.AM.call(this,h,k);};e.prototype.XWa=function(){var h,k,l,m,p,r,q,w,x;c.l && this.console.trace(("LivePipelineNormalizer.normalizePipelines ").concat(this.qa.ca()," ") + ("- ").concat(null === (k=this.ta) || void 0 === k?void 0:k.ca()));this.config.YT && void 0 !== this.M.nj.endTime && (k=null === (l=this.me.zu) || void 0 === l?void 0:l.oa,(null === k || void 0 === k?0:k.parent) || this.M.S0a(this.qa.G));l=this.wNb()?n.I.dh:this.M.fo();this.qa=(0,f.Rva)(this.console,l,this.M,this.qa);this.ta=(0,f.Zda)(this.console,this.config,this.M,this.ta);if((l=this.me.zu) && l.track.EA){l=l.track.EA;k=l.track.Bo;r=l.track.Zk.Kc(l.O);k+=Math.floor(this.qa.nf(r));k=l.track.Tv(k);l=k.qa;k=k.ta;q=[];null === (m=this.M.di) || void 0 === m?void 0:m.model.uM.forEach(function(A){A.YD && q.push(A.YD.Pa);A.jT && q.push(A.jT.Pa);});null === (p=this.M.di) || void 0 === p?void 0:p.model.lb.forEach(function(A){var z;z=A.Pa;A=A.duration;q.push(z);q.push(z.add(A));});q.sort(function(A,z){return A.Ml(z);});m=n.I.dh;p=void 0;try{for(var u=d.__values(q),v=u.next();!v.done;v=u.next()){w=v.value;if(w.equal(this.qa)){p=w;break;}if(w.Tf(k))break;if(w.Tf(l)){x=n.I.abs(w.ea(this.qa));x.lessThan(m) && (m=x,p=w);}}}catch(A){var y;y={error:A};}finally{try{v && !v.done && (h=u.return) && h.call(u);}finally{if(y)throw y.error;}}p?(c.l && this.console.trace("LivePipelineNormalizer.normalizePipelines normalize contentStartTimestamp to SCTE marker, " + ("original: ").concat(this.qa.ca(),", ") + ("SCTE marker: ").concat(p.ca())),this.qa=p):(c.l && this.console.trace("LivePipelineNormalizer.normalizePipelines normalize contentStartTimestamp to segmentContentStartTimestamp (no SCTE marker in the segment), " + ("original: ").concat(this.qa.ca(),", ") + ("segmentContentStartTimestamp: ").concat(l.ca())),this.qa=l);}return g.prototype.XWa.call(this);};e.prototype.YWa=function(){var h,k,l;c.l && this.console.trace("LivePipelineNormalizer.normalizeSegment");(0,n.assert)(this.K,"missing segment");k=this.wNb()?n.I.dh:this.M.fo();l=(0,f.Rva)(this.console,k,this.M,this.K.ib);c.l && this.console.trace("normalizeSegment, " + ("segment.startTimestamp: ").concat(null === (h=this.K) || void 0 === h?void 0:h.ib.ca(),", ") + ("liveEdgeConstraint: ").concat(k,", ") + ("segmentStartTimestamp: ").concat(l.ca()));return this.wsb(l);};return e;})(t.eFa);b.Cab=a;},95324:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;Object.defineProperties(b,{__esModule:{value:!0}});b.Rha=void 0;d=a(22970);a(66164);n=a(91176);c=a(90745);f=a(65161);g=a(52571);e=a(48170);t=a(85254);h=a(71808);k=a(97757);l=a(85858);m=a(8149);p=a(45691);r=a(42431);q=a(27265);u=a(46512);v=a(71077);w=a(7611);x=a(25915);a=(function(y){var z;function A(B,C,D,F,H,E,G,J,L){var K;K=y.call(this,B,C,D,F,H,E,G,J,L) || this;K.parent=B;K.config=C;K.events=new c.EventEmitter();K.pka=-1;K.Oib=!1;K.tIa=!1;K.DWa=new Set();K.JNa=0;K.fq=new q.Mab(K,C,K.console,K.nl,K.av,K.mediaType,K.wJ,function(){return K.Hp;});K.Cwc() && K.config.TR && (K.w_a=new x.Nab(K.config,K.console),B=K.config.ZXa?d.__spreadArray([],d.__read(K.config.QGb),!1):K.track.Tj.qT || [],K.EY=new w.t8a(K.config,K,K.track,K.fq,K.oa.zh,B,K.w_a));K.AOc=new v.DCa(K.oa.M,C);return K;}d.__extends(A,y);z=A;Object.defineProperties(A.prototype,{track:{get:function(){return this.Et;},enumerable:!1,configurable:!0}});Object.defineProperties(A.prototype,{y0a:{get:function(){return this.track.M.Iq.y0a;},enumerable:!1,configurable:!0}});Object.defineProperties(A.prototype,{CCb:{get:function(){return this.k3b;},enumerable:!1,configurable:!0}});Object.defineProperties(A.prototype,{dCb:{get:function(){return this.tIa?this.pka:-1;},enumerable:!1,configurable:!0}});Object.defineProperties(A.prototype,{Vmc:{get:function(){return !!this.Ec && this.pka >= this.Ec.index;},enumerable:!1,configurable:!0}});A.prototype.Cwc=function(){var B;return null !== (B=this.oa.zh) && void 0 !== B && B.KOa?this.mediaType === f.u.X || this.mediaType === f.u.U:(e.l && this.trace("LivePipeline: not compatible with Ella due to incomplete information from manifest"),!1);};A.prototype.mwb=function(){var B,C;C=null === (B=this.EY) || void 0 === B?void 0:B.poc();C && this.console.error("ELLA summary: ",C);return C;};Object.defineProperties(A.prototype,{I3a:{get:function(){return void 0 !== this.EY && this.config.TR;},enumerable:!1,configurable:!0}});A.prototype.TQa=function(){var B;return null === (B=this.EY) || void 0 === B?void 0:B.TQa();};A.prototype.Jg=function(B){var C;e.l && this.trace("pipeline.cancelStreaming");this.tF=!0;this.EY && this.EY.Jg();this.fq.Jg(B);null === (C=this.Lp) || void 0 === C?void 0:C.uk(this.mediaType).Ka();this.zd && (this.oa.M.RW(this.mediaType,this.zd),r.QI.instance.W8(this.zd),this.zd.removeAllListeners(),this.zd=void 0);};A.prototype.X2a=function(B,C,D){var F,H;if(this.w_a){H={ep:this.EJ,Ql:null === (F=this.EY) || void 0 === F?void 0:F.uS};F=this.w_a.FQc(B,H);e.l && this.console.trace("LivePipeline.tryIssueRequest: HTTP vs Ella request decision",F);if(!F.dg)return {Bf:!1,reason:"ellaRequestsOnlyAllowed"};}if(F=this.PB(B))return F;(0,g.assert)(B.za,"LivePipeline.tryIssueRequest: stream must be live");B=this.ZUc(B,this.zd,D,C);this.Eob();return B;};A.prototype.dpc=function(){var B;B=Array.from(this.DWa).reduce(function(C,D){return void 0 !== D.bi && (void 0 === (null === C || void 0 === C?void 0:C.bi) || C.bi < D.bi)?D:C;},void 0);if(B && void 0 !== B.bi)return ((0,g.assert)((0,m.yk)(B.stream),"LivePipeline: stream must be live"),B.stream.track.Tv(B.bi + 1).qa);};A.prototype.Ilb=function(B,C){e.l && this.trace("Marking missing request: ",B.toString(),C);B.bn && (this.tIa=!0);C && (B.YVa(),B.pwa(this.oa.K));this.DWa.add(B);this.JNa+=1;this.k3b=this.DWa.size;this.ee.RMc(B);this.events.emit("liveMissingSegment",{type:"liveMissingSegment",L:B.index,mediaType:this.mediaType,oa:this.oa});this.config.rQ && this.pj === B.index && this.My(B.ta.G,this.pj + 1);};A.prototype.UQb=function(B,C){var D,F,H,E,G;D=this;if(C && this.config.Ira && B.Dac()){F=this.Ed.indexOf(B.stream);if(-1 === F)this.error("reissueLiveRequest: stream not found in stream list, falling back to first stream");else {H=0 < F?Math.max(F - 1,0):Math.min(1,this.Ed.length - 1);E=this.Ed[H];B.Cac(E);if(!E.sh){G=this.pk.G;this.oa.M.AMb(E,this.oa.K,function(){return {hh:D.hh,ie:f.Rd.$p,yu:G,Do:G,fp:D.wJ.Ma.currentTime.G};});}e.l && this.trace("reIssueLiveRequest: ",B.toString()," switchStream: ",C," from ",F," to ",H);}}else (e.l && this.trace("reIssueLiveRequest, request: ",B.toString()),this.nt());};A.prototype.uo=function(B,C){this.JNa=0;y.prototype.uo.call(this,B,C);};A.prototype.yy=function(B){var C,D;if(B.df)this.Coa(B);else {C=B.Sb.ea(this.wJ.Ma.currentTime);C=this.AOc.yy(B,C,0 < this.Ed.indexOf(B.stream));switch(C){case v.Ar.$V:this.warn("onrequesterror: 4xx error for live request, retrying the same url",B.toString());this.UQb(B,!1);break;case v.Ar.egb:this.warn("onrequesterror: switching stream for 410 or 4xx after retries",B.toString());this.UQb(B,!0);break;case v.Ar.Zia:case v.Ar.qGa:this.warn("onrequesterror: declaring missing segment ",B.toString());this.Ilb(B,!1);break;case v.Ar.U8a:this.Coa(B);break;case v.Ar.G5:this.warn("onrequesterror: stopping live event ",B.toString());C=this.oa.M.nj;D=this.oa.M.Oc.bNa(B.ta);void 0 === C.startTime && (C.startTime=new Date(this.oa.M.Oc.u$(!1).G).toISOString());void 0 === C.endTime && (C.endTime=new Date(D.G).toISOString());this.oa.M.Cxa(C.startTime,C.endTime,!1,D.G);this.Oib || (this.Ilb(B,!0),this.Oib=!0);break;case v.Ar.XFa:this.warn("onrequesterror: requesting seek to edge",B.toString());this.oa.events.emit("requestSeekToLiveEdge",{type:"requestSeekToLiveEdge"});break;default:(0,l.FG)(C);}}};A.prototype.x6b=function(B){var C,D;(0,g.assert)(this.Ec,"LivePipeline.adjustStartTime: firstFragment must be set");(0,g.assert)(this.track.Ea,"LivePipeline.adjustStartTime: frameDuration must be set");D=this.track.Ea;B=B.ea(this.Ec.Rv).Kc(D.O);D=Math.max(0,Math.floor(B.$ / D.$));D !== ((null === (C=this.Ec.pa) || void 0 === C?void 0:C.start) || 0) && ((0,g.assert)(this.pj === this.Ec.index,"LivePipeline.adjustStartTime: nextFragmentIndex must be equal to firstFragment.index"),this.Ec.xh({start:D}));};A.prototype.w6b=function(B){var C,D,F,H;C=this;(0,g.assert)(this.Ic,"LivePipeline.adjustEndTime: lastFragment must be set");(0,g.assert)(this.track.Ea,"LivePipeline.adjustEndTime: frameDuration must be set");H=this.track.Ea;B=B.ea(this.Ic.Rv).Kc(H.O);H=Math.min(this.Ic.rf,Math.ceil(B.$ / H.$));H !== (null !== (F=null === (D=this.Ic.pa) || void 0 === D?void 0:D.end) && void 0 !== F?F:this.Ic.rf) && ((0,g.assert)(this.pj <= this.Ic.index,"LivePipeline.adjustEndTime: nextFragmentIndex must be less than or equal to lastFragment.index"),this.Ic.xh({end:H}),this.Ak && (this.ee.D0a(),this.ee.hMa(),Promise.resolve().then(function(){C.events.emit("lastRequestIssued",{type:"lastRequestIssued",mediaType:C.mediaType});})));};A.prototype.DU=function(){var B,C,D,F;(0,g.assert)(this.Ec,"LivePipeline.updateFragmentTimes: firstFragment must be set");B=this.Ec;C=this.Ic;D=this.track.Tv(this.Ec.index);F=D.qa;D=D.ta;e.l && this.console.trace("LivePipeline: updateFragmentTimes: firstFragment " + ("c:").concat(B.Rv.G,"-").concat(B.oZ.G) + (" -> s:").concat(F.G,"-").concat(D.G));B.Ifa(F,D,!1);C && isFinite(C.index) && (B=this.track.Tv(C.index),F=B.qa,D=B.ta,e.l && this.console.trace("LivePipeline: updateFragmentTimes: lastFragment " + ("c:").concat(C.Rv.G,"-").concat(C.oZ.G) + (" -> s:").concat(F.G,"-").concat(D.G)),C.Ifa(F,D,!1));this.fq.DU();};A.prototype.kac=function(B){return !this.Ec || !this.Vmc && this.Ec.Rv.G <= B;};A.prototype.aWc=function(B){var C;null === (C=this.Ec) || void 0 === C?void 0:C.xh(B.pa);this.parent.MHc(this);};A.prototype.$Vc=function(B){var C;null === (C=this.Ic) || void 0 === C?void 0:C.xh(B.pa);this.parent.LHc(this);};A.prototype.nQa=function(B){B.bn && (this.tIa=!0,this.parent.Sub(this));this.pka=Math.max(this.pka,B.index);};A.prototype.bob=function(B,C){var D,F,H,E,G,J,L,K,M,P,I,O,Q,T;K=C === (null === (D=this.Ic) || void 0 === D?void 0:D.index);D=C === (null === (F=this.Ec) || void 0 === F?void 0:F.index);F=B.track.Tv(C);B=F.qa;M=F.ta;if(D && this.Ec && K && this.Ic){F=this.Ec.qa;P=this.Ic.ta;}else D && this.Ec?(F=this.Ec.qa,P=this.Ec.ta):K && this.Ic?(F=this.Ic.qa,P=this.Ic.ta):(F=B,P=M);if(this.mediaType !== f.u.Ca)if(D && K)I=d.__assign(d.__assign({},(null === (H=this.Ic) || void 0 === H?void 0:H.pa) || ({})),{start:null === (G=null === (E=this.Ec) || void 0 === E?void 0:E.pa) || void 0 === G?void 0:G.start});else D?I=(null === (J=this.Ec) || void 0 === J?void 0:J.pa) || ({}):K && (I=(null === (L=this.Ic) || void 0 === L?void 0:L.pa) || ({}));if(!B.equal(F) || !M.equal(P))(O=B.$,Q=M.$);if(this.mediaType === f.u.X && (D || K) && (H=this.oa.je(f.u.U),H instanceof z && H.dCb >= C))if(H.Ic && K){T=H.Ic.ta.G;e.l && this.trace("last segment: " + C + ", targetSplicePts: " + T);}else H.Ec && D && (T=H.Ec.qa.G,e.l && this.trace("first segment: " + C + ", targetSplicePts: " + T));return {bi:C,index:C,qa:F,ta:P,LG:O,LK:Q,bn:D,Gi:K,pa:I,Ju:T};};A.prototype.RDc=function(B,C,D){this.nl.EFb(B,C,D);};A.prototype.ZWa=function(B,C,D,F,H){this.nl.ZWa(B,C,D,F,H);};A.prototype.aXa=function(B,C,D,F){void 0 === F && (F="unknown");this.nl.aXa(B,C,D,F);};A.prototype.ZL=function(B,C,D,F){void 0 === F && (F="unknown");this.nl.ZL(B,C,D,F);};A.prototype.$Wa=function(B){this.nl.$Wa(this.mediaType,B);};A.prototype.bXa=function(B,C,D,F){this.nl.bXa(this.mediaType,B,C,D,F);};A.prototype.My=function(B,C){y.prototype.My.call(this,B,C);};A.prototype.ZUc=function(B,C,D,F){var H,E,G,J,L,K,M,P,I,O,Q,T,U;E=this.av;G=E.M;J=this.pj;L=this.bob(B,J);K=L.qa;M=L.ta;P=L.LG;I=L.LK;O=L.bn;Q=L.Gi;T=L.pa;L=L.Ju;U=this.track.M.fl(!0);e.l && this.trace("checkLiveDuration, stream:",B.bitrate,"contentEndPts:",M.G,"cushionedLiveEdgeMs:",U,"serverTimeMs:",G.Wf);if(M.G > U)return {Bf:!1,reason:"exceedsLiveEdge"};if(this.config.qQ && G.di && this.mediaType !== f.u.Ca && (U=this.track.Ea || n.I.Ba(50),U=M.ea(U),!G.di.Hyb(U)))return (e.l && this.trace("Waiting for media events",{kcd:U,ta:M,xyc:G.di.iw}),{Bf:!1,reason:"waitingOnMediaEvents"});if(G.Ot && !G.Ot.pma(this.mediaType,0))return (e.l && this.trace("existing buffer size limits already exceeded"),{Bf:!1,reason:this.mediaType === f.u.U?"globalVideoMemoryLimit":"globalAudioMemoryLimit"});if(this.mediaType === f.u.X && (O || Q) && (U=this.oa.je(f.u.U),U instanceof z && U.dCb < J))return (e.l && this.trace("waiting for video fragment timing to be confirmed"),{Bf:!1,reason:"waitingOnVideoFragmentTiming"});D={bi:J,index:J,ub:K.$,Lb:M.$,LG:P,LK:I,O:B.O,offset:0,ma:0,Ky:D,bn:O,Gi:Q,Ju:L,responseType:this.mediaType === f.u.Ca || this.mediaType === f.u.X && T?0:void 0,pa:T};this.pwa(D,E.K);this.rwa(D,{stream:B,rn:F,p1:M.ea(K)});B=this.ee.WP(D,C,B);e.l && this.trace("making mediaRequest (LIVE):",B.toString(),"fragmentIndex:",J,"contentStartTicks:",K.$,"contentEndTicks:",M.$,"timescale:",K.O,"firstRequestInSequence:",D.bn,"lastRequestInSequence:",D.Gi,"isTerminal",null === (H=D.Iy) || void 0 === H?void 0:H.iH,"edit",T);if(!B.open()){this.warn("MediaRequest.open error: " + B.bh + " native: " + B.Qg);if(B.aborted)return (e.l && this.trace("makeRequest aborted"),{Bf:!1,reason:"requestAborted"});this.warn("makeRequest caught:",B.bh);G.Vf({Ti:"MediaRequest open failed (3)",XC:"NFErr_MC_StreamingFailure"});return {Bf:!1,reason:"openAseMediaRequest"};}this.My(M.G,this.pj + 1);!O || B instanceof p.zga || this.parent.Sub(this);return {Bf:!0,reason:"success"};};A.prototype.Axa=function(){var B,C;B=this.track.Tv(this.pj).ta;C=this.oa.M.sRa().G;B=this.fxb(B.G,C);C=B.Sz;this.GW=B.kw;this.tW=C;};A.prototype.rwa=function(B,C){this.config.Rna?y.prototype.rwa.call(this,B,C):"OPEN_CONNECT_APPLIANCE" === C.stream.Gw && (C=this.av.M.S1) && (B.BB=C.Tt({}));};A.prototype.pwa=function(B,C){B.Iy={Yd:C.gwb(),get iH() {return C.p2 && isFinite(C.fb);}};};return A=z=d.__decorate([k.rZ],A);})(u.dFa);b.Rha=a;(0,t.vl)(h.fz,a);},27265:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.Mab=void 0;d=a(22970);n=a(26388);c=a(91176);f=a(48170);g=a(11758);e=a(8149);h=a(45691);t=(function(k){function l(m,p,r,q,u,v,w,x){p=k.call(this,m,p,r,q,u,v,w,x) || this;p.Ve=m;return p;}d.__extends(l,k);l.prototype.WP=function(m,p,r){var q;q=this.config;f.l && this.console.trace("LiveRequestManager: createRequest, params:",m);(0,c.assert)(!m.header);if(r.mediaType === n.u.Ca)return (m=new g.Zya(r,this.oa.sI.track,m,this.Qa,this.oa.K,q,this.console,this.qpa),f.l && this.console.trace("created AseLiveTextRequest object:",m && m.toJSON(),"downloadTrack:",p.toString(),"movieId:",m.R,"streamId:",m.Sa,"offset:",m.offset,"bytes:",m.ma,"contentStartTicks:",m.ub,"contentEndTicks:",m.Lb,"ptsOffsetTicks:",m.Hp,"liveSegmentId:",m.bi),this.ux(m),m);p=k.prototype.WP.call(this,m,p,r);p instanceof h.zga || this.Ve.nQa(p);return p;};l.prototype.QXa=function(m,p,r,q){(0,c.assert)((0,e.yk)(m.stream),"LiveRequestManager: onfragmenttimes: stream is not live");m.bn && m.stream.track.tXa(this.oa,m.index,p) && m.rf !== p.dI && (this.console.warn("LiveRequestManager: onfragmenttimes: predicted fragment sample count incorrect",("current = ").concat(m.rf,", actual = ").concat(p.dI)),m.g3a(p.dI),r=!0);q && ((0,c.assert)(this.mediaType === n.u.U,"LiveRequestManager: onfragmenttimes: fragmentEditChanged only expected for video"),(0,c.assert)(m.bn || m.Gi,"LiveRequestManager: onfragmenttimes: fragmentEditChanged only expected for first or last request"),m.bn?this.Ve.aWc(m):m.Gi && this.Ve.$Vc(m));r && (p=this.Qa.indexOf(m),p + 1 < this.Qa.length && (p=this.Qa.get(p + 1)) && p.OQb(m.oZ),this.Qa.update());this.Ve.nQa(m);};l.prototype.DU=function(){var m,p;m=this;f.l && this.console.trace(("LiveRequestManager: updateFragmentTimes ").concat(this.Qa.length," fragments"));if(this.Qa.length){p=this.Qa.get(0).stream.track;(0,c.assert)((0,e.oo)(p),"LiveRequestManager: updateFragmentTimes: stream is not live");this.Qa.forEach(function(r){var q,u;q=p.Tv(r.index);u=q.qa;q=q.ta;f.l && m.console.trace("LiveRequestManager: update timestamps:",r,("updating start ").concat(r.qa.ca()," to ").concat(u.ca()),("updating end ").concat(r.ta.ca()," to ").concat(q.ca()));r.Ifa(u,q,!1);});this.Qa.update();}};return l;})(a(99021).gGa);b.Mab=t;},25915:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Nab=void 0;d=a(52571);t=(function(){function n(c,f){this.config=c;this.console=f;(0,d.assert)(this.config.TR,"Ella must be enabled to use the coordinator");}n.prototype.FQc=function(c,f){var g;if(!c.sh)return {dg:!0,reason:"headerNotReceived"};if(!this.config.xD)return {dg:!1,reason:"ellaNonMixingMode"};c=f.Ql;if(void 0 === c)return {dg:!0,reason:"noEllaPositionDefined"};g=c - f.ep;return f.ep < c?{dg:!0,reason:"httpCatchingUp",context:{RS:f.ep,Ql:c,Iv:g}}:{dg:!1,reason:"ellaCaughtUp",context:{RS:f.ep,Ql:c,Iv:g}};};n.prototype.EQc=function(c,f){var g,e,h,k,l,m;g=c.qa.G;e=c.ta.G;if(!this.config.xD)return {dg:!0,reason:"ellaNonMixingMode",context:{EWa:this.config.xD,Te:c.index,mQa:e}};h=f.Ql;if(void 0 === h)return {dg:!0,reason:"establishingEllaPosition",context:{EWa:this.config.xD,Te:c.index,mQa:e}};k=h - f.ep;l=f.ep < g;m=f.ep > g;return l || m?{dg:!1,reason:l?"pipelineBehindElla":"pipelineAheadOfElla",context:{EWa:this.config.xD,Ql:h,Te:c.index,e8c:g,mQa:e,RS:f.ep,Iv:k}}:{dg:!0,reason:"pipelineCaughtUpToElla",context:{EWa:this.config.xD,Ql:h,Te:c.index,mQa:e,RS:f.ep,Iv:k}};};n.prototype.XQc=function(c){var f,g;(0,d.assert)(this.config.xD,"coordinator should be consulted to start streaming only when mixing is enabled");if(void 0 === c.Ql)return {dg:!1,reason:"noEllaPosition"};f=c.Ql - c.ep;g=this.config.xCb;return f <= g?{dg:!0,reason:"proximityThresholdReached",context:{tq:f,threshold:g,RS:c.ep,Ql:c.Ql}}:{dg:!1,reason:"tooFarFromElla",context:{tq:f,threshold:g,RS:c.ep,Ql:c.Ql}};};n.prototype.ZQc=function(c){var f,g;(0,d.assert)(this.config.xD,"coordinator should be consulted to stop streaming only when mixing is enabled");if(void 0 === c.Ql)return {dg:!1,reason:"noEllaPosition"};f=c.Ql - c.ep;g=2 * this.config.xCb;return f > g?{dg:!0,reason:"tooFarBehindElla",context:{tq:f,threshold:g,RS:c.ep,Ql:c.Ql}}:{dg:!1,reason:"withinStopThreshold",context:{tq:f,threshold:g,RS:c.ep,Ql:c.Ql}};};return n;})();b.Nab=t;},71077:function(t,b){var d;function a(n,c){var f;f=!1;400 <= n && 499 >= n && 420 !== n && 452 !== n?f=!0:c && 504 === n && (f=!0);return f;}Object.defineProperties(b,{__esModule:{value:!0}});b.DCa=b.Ar=void 0;b.T9c=a;(function(n){n[n.$V=0]="RETRY";n[n.egb=1]="SWITCH_STREAM";n[n.qGa=2]="SKIP";n[n.U8a=3]="FORWARD";n[n.G5=4]="STOP";n[n.XFa=5]="REQUEST_SEEK_TO_EDGE";n[n.Zia=6]="SKIP_OR_FORWARD";})(d || (b.Ar=d={}));t=(function(){function n(c,f){this.M=c;this.config=f;}n.prototype.yy=function(c,f,g){var e,h,k;e=c.status;h=c.qa;c=c.ta;if(!a(e,this.config.Ona))return d.U8a;if(410 === e && this.M.hH && c.lessThan(this.M.Y9()))return d.XFa;this.M.Iq.aLb();k=this.M.Oc.coa;if(k && 410 === e && h.Tf(k) || 454 === e)return d.G5;if(f.G <= this.config.cca)return d.qGa;f=this.M.fl() - this.config.nzc;return 410 !== e && c.G > f?d.$V:g?d.egb:d.Zia;};return n;})();b.DCa=t;},72117:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Zcb=void 0;d=a(22970);t=(function(n){function c(f){return n.call(this,f) || this;}d.__extends(c,n);return c;})(a(2415).eFa);b.Zcb=t;},95052:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q;Object.defineProperties(b,{__esModule:{value:!0}});b.Ycb=void 0;d=a(22970);n=a(66164);c=a(90745);f=a(65161);g=a(52571);e=a(48170);t=a(71808);h=a(85254);k=a(97757);l=a(42431);m=a(99021);p=a(46512);r=a(15908);q=a(75100);a=(function(u){function v(w,x,y,A,z,B,C,D,F){var H;H=u.call(this,w,x,y,A,z,B,C,D,F) || this;H.events=new c.EventEmitter();H.fq=new m.gGa(H,x,H.console,H.nl,H.av,H.mediaType,H.wJ,function(){return H.Hp;});return H;}d.__extends(v,u);v.prototype.Jg=function(w){var x;e.l && this.trace("pipeline.cancelStreaming");this.tF=!0;this.fq.Jg(w);null === (x=this.Lp) || void 0 === x?void 0:x.uk(this.mediaType).Ka();this.zd && (this.oa.M.RW(this.mediaType,this.zd),l.QI.instance.W8(this.zd),this.zd.removeAllListeners(),this.zd=void 0);};v.prototype.X2a=function(w,x,y){var A;A=this.PB(w);if(A)return A;(0,g.assert)(!w.za,"OnDemandPipeline.tryIssueRequest: stream must not be live");A=w.aqc();(0,g.assert)(A,("initialHeaderReceived and headerFragments mismatch - initialHeaderReceived:").concat(w.sh,", headerFragments:").concat(A));w=this.$Uc(w,A,this.zd,x,y);this.Eob();return w;};v.prototype.$Uc=function(w,x,y,A,z){var B,C,D,F,H,E,G,J,L,K,M,P;E=this.av;G=E.M;J=this.mediaType;e.l && this.trace("makeRequest on streamId:",w.Sa,"profile:",w.profile,"location:",w.location,"url:",w.url,"bufferLevelMs:",this.SX.G,"(ms)","nextFragmentIndex:",this.pj,"firstFragment:",JSON.stringify(this.Ec),"lastFragment:",JSON.stringify(this.Ic),"fragments:",x.length,"stream.frameDuration:",w.Ea);L=this.pj;if(L >= x.length)return (this.warn("makeRequest nextFragmentIndex:",L,"past fragments length:",x.length),{Bf:!1,reason:"insufficientFragments"});if(!this.Ec || !this.Ic)return (this.warn("makeRequest delayed, first or last fragment not set","first:",!!this.Ec,"last:",!!this.Ic),{Bf:!1,reason:"noFirstOrLastFragment"});K=J === f.u.X && !!this.config.gI && this.oa.K.gs && this.Ec.Wb.G < this.config.gI && void 0 !== this.Ec.pa;M=J === f.u.X && !!this.config.gI && this.oa.K.wq && this.Ic.Wb.G < this.config.gI && void 0 !== this.Ic.pa;L=this.MG.twb(w,L,K,M);if(J === f.u.X && this.config.gI){if(this.oa.K.gs)if(L.bn)(e.l && this.trace("makeRequest marking fragment for fade in"),L.FMb());else if(L.index === this.Ec.index + 1 && this.Ec.Wb.G < this.config.gI && void 0 !== this.Ec.pa){e.l && this.trace("makeRequest marking second fragment for fade in");P=null !== (B=this.Ec.pa.end) && void 0 !== B?B:this.Ec.rf;L.FMb(P - this.Ec.pa.start);}this.oa.K.wq && (L.Gi?(e.l && this.trace(("makeRequest marking last fragment ").concat(L.index," for fade out")),L.GMb()):L.index === this.Ic.index - 1 && (this.Ic.Wb.G < this.config.gI && void 0 !== this.Ic.pa?(e.l && this.trace(("makeRequest marking fragment ").concat(L.index," for fade out")),P=null !== (C=this.Ic.pa.end) && void 0 !== C?C:this.Ic.rf,L.GMb(P - this.Ic.pa.start)):e.l && this.trace(("makeRequest marking fragment ").concat(L.index," not for fade out ") + (", ").concat(this.Ic.Wb.G,", ").concat(JSON.stringify(this.Ic.pa)))));}if(G.Ot && !G.Ot.pma(this.mediaType,L.ma))return (e.l && this.trace("makeRequest would go over buffer limits:",L.ma),{Bf:!1,reason:this.mediaType === f.u.U?"globalVideoMemoryLimit":"globalAudioMemoryLimit"});this.VUa=L.region;L.Ky=z;null === (D=this.Cn) || void 0 === D?void 0:D.yvc(L,w);L.Gi && J === f.u.U && this.nl.E3b(E.K,L.Ob.G);e.l && L.Gi && this.trace("marking last request in sequence, ptsEnd:",L.Ob.G,"branch.contentEndPts:",E.Ob.G,"fragments.endPts:",x.Lg,"fragmentIndex:",this.pj,"lastFragmentIndex:",x.length - 1);this.config.PL && (e.l && this.trace("request.bytes:",L.ma,"max request size:",this.config.PL),L.PL=this.config.PL);L.location=w.location;L.dd=w.Ab;L.Tcd=w.Gu;this.rwa(L,{stream:w,rn:A,p1:L.Wb});x=n.platform.time.ha();e.l && this.trace("calling createRequest with fragment " + JSON.stringify(L) + ", " + L.constructor && L.constructor.name + ", " + JSON.stringify(w));y=this.ee.WP(L,y,w);e.l && this.trace("making mediaRequest:",y.toString(),"branchOffset:",E.Kd.G,"offset:",L.offset,"bytes:",L.ma,"lastRequestInSequence:",L.Gi,"viewableId:",G.J,"frag:",L.qa.G + "-" + L.ta.G,"frag index:",L.index,"stream.frameDuration:",w.Ea,"fragment.movieDataOffset:",L.Csa,"fragment.profile:",L.profile,"frameCount:",null === (F=this.Cn) || void 0 === F?void 0:F.mA(L,w),"edit:",JSON.stringify(y.pa),"editSecondFragment:",K,"editLastButOneFragment:",M,"this.lastFragment.durationMs:",this.Ic.Wb.G);if(!y.open()){this.warn("MediaRequest.open error: " + y.bh + " native: " + y.Qg);if(y.aborted)return (e.l && this.trace("makeRequest aborted"),{Bf:!1,reason:"requestAborted"});this.warn("makeRequest caught:",y.bh);G.Vf({Ti:"MediaRequest open failed (1)",XC:"NFErr_MC_StreamingFailure"});return {Bf:!1,reason:"openAseMediaRequest"};}null === (H=this.Cn) || void 0 === H?void 0:H.alc(y,L,w);e.l && this.trace("mediaRequest created in",n.platform.time.ha() - x,"ms," + y.toString(),"offset:",L.offset,"bytes:",L.ma);this.My(y.ta.G,L.e0);e.l && this.trace("makeRequest done, mediaRequest:",y.toString(),"relative:",this.Lk,"branchOffset:",E.Kd.G,"nextFragmentIndex:",this.pj);return {Bf:!0,reason:"success"};};v.prototype.My=function(w,x){var y;e.l && this.trace("pipeline.setNextStreamingPts:",this.EJ + "->" + w,this.pj + "->" + x);y=w - this.EJ;this.EJ=w;this.pj=x;this.Axa(y);};v.prototype.Axa=function(w){var x,y;this.GW=-Infinity;this.tW="available";y=null === (x=this.il) || void 0 === x?void 0:x.Qa;if(!(void 0 === y || this.pj >= y.length))if(this.oa.naa && this.config.kkc){if((w=this.oa.M.hba,y=(0,q.z$b)({oa:this.oa,Izc:w.sRa(),Qa:y,pj:this.pj,config:this.config})))(y=this.fxb(y.Jic,y.wnc),w=y.Sz,this.GW=y.kw,this.tW=w);}else this.config.p9 && (y={k0a:null !== w && void 0 !== w?w:y.fg(this.pj),FNa:this.oa.en(this.mediaType),xWa:this.config.W_,g2a:this.config.wH},this.GW=this.config.Dkc?(0,r.CRa)(r.Uia.sCa,d.__assign(d.__assign({},y),{orb:this.config.wTc,rrb:this.config.xTc})):(0,r.CRa)(r.Uia.LINEAR,d.__assign(d.__assign({},y),{E9b:this.config.k2})),this.tW="waitingOnPacedRequest");};return v=d.__decorate([k.rZ],v);})(p.dFa);b.Ycb=a;(0,h.vl)(t.fz,a);},99548:function(t,b,a){var c,f,g,e,h;function d(k,l){var C,D;for(var m=[],p=0,r=k[p],q=null === r || void 0 === r?void 0:r[0],u=null === r || void 0 === r?void 0:r[1],v=l.Ic.index,w=l.track.dk,x=0,y=l.Ec.qa,A=l.Ec.ta.G > r[0],z=A,B=l.Ec.index;B <= v;++B){C=!1;if(r){D=w.get(B);A && (D.qa.G >= u?(A=!1,++p >= k.length?u=q=r=void 0:(r=k[p],q=null === r || void 0 === r?void 0:r[0],u=null === r || void 0 === r?void 0:r[1])):z?z=!1:(m.push(new f.Qia(x,y,D.qa)),y=D.qa,C=!0));!A && r && D.ta.G > q && (A=!0,C=D.qa,(D=l.track.EA.bu(B).Kub(q)) && 0 !== D.ql && (C=c.I.Ba(D.od)),m.push(new f.Qia(x,y,C)),y=C,C=!0);}C && ++x;}m.push(new f.Qia(x,y,l.Ic.ta));return m;}function n(k,l,m){var p,r,q,u;(0,e.assert)(k.S && k.nj,"Unexpected sanitizeLiveEndTimestamp.");r=k.S.Ji;q=null === r || void 0 === r?void 0:r.CQ;r="none";if(null === (p=k.Oc) || void 0 === p?0:p.CQ)if(q){h && m.trace("PipelineNormalizer.sanitizeLiveEndTimestamp setting end timestamp:","manifestEndTime:",q);r="manifest";u=new Date(q).getTime();}else (p=k.nj.endTime,(k=k.nj.BK)?(r="oc",u=k,h && m.trace("PipelineNormalizer.sanitizeLiveEndTimestamp,","eventEndTime:",p,"encoderShutdownTime: ",k,"endTimeMs:",u)):p && (r="oc",h && m.trace("PipelineNormalizer.sanitizeLiveEndTimestamp setting end timestamp:","eventEndTime:",p),u=new Date(p).getTime() + l.yCb,h && m.trace("PipelineNormalizer.sanitizeLiveEndTimestamp,","eventEndTime:",p,"endTimeMs:",u)));u || (u=Infinity);return {fb:u,source:r};}Object.defineProperties(b,{__esModule:{value:!0}});b.uKb=function(k,l,m){var p,r;p=l.get(g.u.X);r=l.get(g.u.U);l=l.get(g.u.Ca);r=null === r || void 0 === r?void 0:r.track.GK(k,m,r.Cn);p=null === p || void 0 === p?void 0:p.track.GK(k,(null === r || void 0 === r?void 0:r.ta) || m,p.Cn);k=null === l || void 0 === l?void 0:l.track.GK(k,(null === r || void 0 === r?void 0:r.ta) || (null === p || void 0 === p?void 0:p.ta) || m,l.Cn);return [p,r,k];};b.NDc=function(k,l){(0,e.assert)(l,"missing pipeline");return l.qa;};b.cBc=function(k,l,m){var p;if(!l.Ul || 0 === l.Ul.length)return (h && k.trace("markExitZones, no exit zones"),[]);p=l.Ul.map(function(r){return [l.Ua + r[0],l.Ua + r[1]];});m=d(p,m.zu);h && k.trace("markExitZones found regions:",m);return m;};b.aad=d;b.Rva=function(k,l,m,p){var r;r=p;p=m.pL?r:c.I.min(r,l);h && k.trace("PipelineNormalizer.sanitizeLiveStartTimestamp capping start timestamp to live:",r.ca(),"->",p.ca());return p;};b.K8c=n;b.Zda=function(k,l,m,p){var r,q,u,v;(0,e.assert)(m.S && m.nj,"Unexpected sanitizeLiveEndTimestamp.");(0,e.assert)(m.Oc,"Expected live viewable with live position service");r=m.S.Ji;q=n(m,l,k);u=q.fb;q=q.source;if(isFinite(u) && ("oc" === q || null === p || void 0 === p || !p.isFinite())){q=m.Oc.Wwa.G;v=u - q;0 > v && k.error("PipelineNormalizer.sanitizeLiveEndTimestamp negative pts. ","liveMetadata:",JSON.stringify(r),"eventEndTime:",m.nj.endTime);(0,e.assert)(0 <= v,"endPts is negative");p=(null === p || void 0 === p?0:p.isFinite())?c.I.min(p,c.I.Ba(v)):c.I.Ba(v);h && k.trace("PipelineNormalizer.sanitizeLiveEndTimestamp. ","new contentEndTimestamp:",p.G,"startTimeMs:",q,"endTimeMs:",u);}return l.YT && (l=m.Oc.fl(!0),l=c.I.Ba(l + 1E4),null === p || void 0 === p?0:p.greaterThan(l))?(k.trace("PipelineNormalizer.sanitizeLiveEndTimestamp. ","performing simulated override:",p.G,"startTimeMs:",l,"endTimeMs:",u),c.I.dh):p;};c=a(91176);f=a(79048);g=a(65161);e=a(52571);h=!1;},2415:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.eFa=void 0;d=a(22970);n=a(65161);c=a(52571);f=a(99548);t=(function(){function g(e){var h,k,l,m,p,r,q;h=e.console;k=e.config;l=e.M;m=e.me;p=e.K;r=e.qa;q=e.ta;e=e.splice;this.eL=this.PX=!1;this.console=h;this.config=k;this.me=m;this.M=l;this.K=p;this.qa=r;this.ta=q;this.splice=e;this.console.trace("PipelineNormalizer ctor:",this.me.map(function(u){return u.mediaType;}));}g.prototype.normalize=function(){var e,h;if(this.PX)throw Error("Cannot call normalize() after cleanup");if(this.eL)throw Error("Cannot call init() / normalize() twice");this.eL=!0;(0,c.assert)(this.N6b());e=this.XWa();h=!1;this.K && !this.K.Dy && (h=this.YWa());this.Qe();return {una:e,eQ:h};};g.prototype.AM=function(e,h){(0,c.assert)(this.eL,"expected to be called init() before renormalize");this.K=e;this.ta=h;e=(0,f.uKb)(this.config,this.me,this.ta);this.YWa();return e;};g.prototype.Qe=function(){this.PX || (this.PX=!0);};g.prototype.N6b=function(){return this.me.every(function(e){return e.track.sh;});};g.prototype.XWa=function(){var e,h,k,l,m,p,r,q,u,v,w,x;e=this.me.get(n.u.X);h=this.me.get(n.u.U);k=this.me.get(n.u.Ca);l=d.__read(h?this.WWa(h,this.qa,this.ta,this.splice):[!1],3);m=l[0];p=l[1];l=l[2];r=d.__read(e?this.WWa(e,m && void 0 !== (null === p || void 0 === p?void 0:p.qa)?p.qa:this.qa,void 0 !== (null === l || void 0 === l?void 0:l.ta)?l.ta:this.ta,this.splice):[!1],3);q=r[0];u=r[1];r=r[2];v=d.__read(k?this.WWa(k,this.qa,this.ta,this.splice):[!1],3);w=v[0];x=v[1];v=v[2];q && (null === e || void 0 === e?void 0:e.raa(u,r));m && (null === h || void 0 === h?void 0:h.raa(p,l));w && (null === k || void 0 === k?void 0:k.raa(x,v));return m || void 0 === this.me.get(n.u.U) && q;};g.prototype.WWa=function(e,h,k,l){var m,p;p=null === (m=e.oa.parent) || void 0 === m?void 0:m.je(e.mediaType);h=e.Ec || e.track.Mx(this.config,h,null === p || void 0 === p?void 0:p.Ic,l);k=e.Ic || e.track.GK(this.config,k,e.Cn);return [!e.Uf(),h,k];};g.prototype.YWa=function(){(0,c.assert)(this.K,"missing segment");return this.wsb(this.K.ib);};g.prototype.wsb=function(e){var h;(0,c.assert)(this.K,"missing segment");h=this.me.zu;if(void 0 === (0,f.NDc)(this.config,h,e) || void 0 === h.ta)return !1;e=this.config.Pfa && "lazy" === this.K.Yd?(0,f.cBc)(this.console,this.K,this.me):[];this.K.UMb(e);return !0;};return g;})();b.eFa=t;},46512:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u;Object.defineProperties(b,{__esModule:{value:!0}});b.dFa=void 0;d=a(22970);n=a(66164);c=a(91176);t=a(81392);f=a(8934);g=a(65161);e=a(65161);h=a(14242);k=a(69575);l=a(52571);m=a(78541);p=a(96652);r=a(73861);q=a(64141);u=a(15908);a=(function(v){function w(x,y,A,z,B,C,D,F,H){var E;E=v.call(this,x) || this;E.config=y;E.av=B;E.Et=C;E.T2b=D;E.wJ=F;E.connected=!1;E.NSa=!1;E.GW=-Infinity;E.tW="available";E.tF=!1;E.gJa=!1;E.DBb=-Infinity;E.MG=new f.Jcb(E.mediaType,y,A,E);x="[" + E.mediaType + "]";E.console=(0,k.Df)(n.platform,A,x);E.error=E.console.error.bind(E.console);E.warn=E.console.warn.bind(E.console);E.trace=E.console.trace.bind(E.console);E.EJ=D.G;y.Cn && (E.Cn=new h.Lgb(y.Cn,E.console));E.nl=new r.beb(E,z,E.config,E.console,E.mediaType);E.zd=H || (0,m.QC)(E.mediaType,E.track.M,E.config,E.console,E.track.Eb,E.nl.iQa.bind(E.nl),E.nl.vnc.bind(E.nl),function(){});E.zd.on("created",function(){return E.events.emit("requestQueueCreated");});return E;}d.__extends(w,v);Object.defineProperties(w.prototype,{mediaType:{get:function(){return this.Et.mediaType;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{track:{get:function(){return this.Et;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{oa:{get:function(){return this.av;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{L:{get:function(){return this.av.K.id;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{zYa:{get:function(){return ("").concat(this.L,"-").concat((0,g.AH)(this.mediaType));},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{ee:{get:function(){return this.fq;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Ed:{get:function(){return this.Et.Ed;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{SX:{get:function(){return this.fq.SX;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{zva:{get:function(){return this.fq.zva;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Lk:{get:function(){return this.EJ;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Jwa:{get:function(){return this.Sb || this.fH;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{pk:{get:function(){return this.ee.pk || this.Jwa;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{m8:{get:function(){return this.ee.m8;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{LMa:{get:function(){return this.ee.LMa;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{FBb:{get:function(){var x;x=this.ee.GBb;return null === x || void 0 === x?void 0:x.ta;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{qOa:{get:function(){return this.ee.qOa;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{YPa:{get:function(){return !!this.Ec && this.pj > this.Ec.index;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Ak:{get:function(){return !!this.Ic && (this.pj > this.Ic.index || this.EJ >= this.Ic.ta.G);},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Q6b:{get:function(){return this.Ak && 0 === this.ee.sN;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{lk:{get:function(){return this.Ak && 0 === this.fq.uHc;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{qYa:{get:function(){var x;if(this.gJa)return !0;if(!this.lk)return !1;x=this.FZ();return this.gJa || (this.gJa=void 0 === x || x.qYa);},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{X6b:{get:function(){return !!this.ee.GBb;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{SJ:{get:function(){return this.ee.SJ;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Xy:{get:function(){return this.Ob?c.I.max(this.Ob.ea(this.pI),c.I.ia):void 0;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{iZ:{get:function(){return this.oa.iZ;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Co:{get:function(){return this.Lp.uk(this.mediaType);},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{I3a:{get:function(){return !1;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Agc:{get:function(){return this.ee.Qa.Wb;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{il:{get:function(){return this.Co.il;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{kw:{get:function(){return this.GW;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Sz:{get:function(){return this.tW;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{O:{get:function(){var x,y;return null !== (y=null === (x=this.Ec) || void 0 === x?void 0:x.O) && void 0 !== y?y:1;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{ub:{get:function(){var x;return null === (x=this.Ec) || void 0 === x?void 0:x.ub;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Lb:{get:function(){var x;return null === (x=this.Ic) || void 0 === x?void 0:x.Lb;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Hp:{get:function(){return this.oa.Kd.Kc(this.O).$;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{QSa:{get:function(){return this.ee.QSa;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Py:{get:function(){return this.ee.Py;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{C1a:{get:function(){return this.ee.C1a;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{fH:{get:function(){return this.T2b.add(this.oa.Kd);},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{hwc:{get:function(){return n.platform.time.now() - this.DBb < this.config.Gda;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Lp:{get:function(){return this.oa.N$(this.mediaType);},enumerable:!1,configurable:!0}});w.prototype.BU=function(){this.ee.BU();};w.prototype.SW=function(){var x;x=this;this.fq.SW(function(y){var A,z;z=y[0];y=null === (A=z.qa) || void 0 === A?void 0:A.G;A=z.index;A < x.pj && x.My(y,A);});};w.prototype.reset=function(){this.ee.reset();this.Ec && this.My(this.Ec.qa.G,this.Ec.index);this.zd && this.oa.M.RW(this.mediaType,this.zd);};w.prototype.toJSON=function(){return {started:this.Py,startOfSequence:this.C1a,segmentId:this.L,requestedBufferLevel:this.zva,viewableId:this.av.M.J,hasFragments:this.QSa};};w.prototype.nt=function(){return this.ee.nt();};w.prototype.My=function(x,y){this.EJ=x;this.pj=y;this.Axa();};w.prototype.SK=function(){return this.ee.SK();};w.prototype.FZ=function(){return this.oa.kxb(this.mediaType);};w.prototype.UX=function(x){return (x=this.ee.Kmc(x.G))?x.complete:!1;};Object.defineProperties(w.prototype,{hh:{get:function(){return this.av.hh;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{pI:{get:function(){var x,y;return this.ee.pI || (null === (y=null === (x=this.Ec) || void 0 === x?void 0:x.qa) || void 0 === y?void 0:y.add(this.oa.Kd)) || this.fH;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Xwa:{get:function(){return c.I.Ba(this.EJ);},enumerable:!1,configurable:!0}});w.prototype.mwb=function(){};w.prototype.PB=function(x){(0,l.assert)(!this.tF,"pipeline.tryIssueRequest on disabled pipeline");(0,l.assert)(!this.op(),"pipeline.tryIssueRequest on done pipeline");(0,l.assert)(!this.Ak);if(!x.sh)return (x=x.PB(this.oa.K,this.zd))?{Bf:x,reason:"success"}:{Bf:x,reason:"pipelineTryIssueHeaderRequest"};};w.prototype.rwa=function(x,y){var A,z,B,C,D,F;A=y.rn;z=y.p1;B=this.av;C=this.mediaType;if("OPEN_CONNECT_APPLIANCE" === y.stream.Gw)if(this.config.Rna && B.M.AB){y=B.M.AB;C=this.config.m9 || C === e.u.X && this.config.j9 || C === e.u.U && this.config.xG;D=this.config.itb && this.mediaType === e.u.U && this.config.Lq;B=(0,p.EKc)(B.en(this.mediaType),this.config.RV);F=C && A?(0,p.Qlc)(A):void 0;z=d.__assign({G9b:B,Mbc:n.platform.time.ha(),YHc:z.G},F);D && (z.b$b={start:x.offset,size:x.ma});x.DM=C?A:void 0;x.jcd=z;x.BB=y.Tqb(z);}else if(y=B.M.S1)(C=this.config.m9 || C === e.u.X && this.config.j9 || C === e.u.U && this.config.xG,D=this.config.itb && this.mediaType === e.u.U && this.config.Lq,x.DM=C?A:void 0,x.BB=y.Tt({GP:B.en(this.mediaType),pca:this.config.htb?this.config.pca:void 0,E2a:String(n.platform.time.ha()),WGb:A,yLa:D?{start:x.offset,size:x.ma}:void 0,aIb:z.G}));};w.prototype.raa=function(x,y){x && (this.Ec=x);y && (this.Ic=y);(0,l.assert)(this.Ec);(0,l.assert)(this.Ic);(0,l.assert)(void 0 === this.pj);this.My(this.Ec.qa.G,this.Ec.index);};w.prototype.truncate=function(x){var y,A;y=this;(0,l.assert)(this.Ec,"expected first fragment to exist on updateStreaming");if(this.op() && (null === (A=this.Ic) || void 0 === A?0:A.AC) || this.Ic && x.index > this.Ic.index)return !1;this.Ic=x;if(!this.Ak)return !0;x=this.fq.c5b(x);if(!x)return !1;this.My(x[0],x[1]);this.Ak && (this.ee.D0a(),this.ee.hMa(),Promise.resolve().then(function(){y.events.emit("lastRequestIssued",{type:"lastRequestIssued",mediaType:y.mediaType});}));return !0;};w.prototype.cy=function(){return this.op()?!1:this.Uf()?!0:this.track.hca;};w.prototype.Uf=function(){return void 0 !== this.Ec && void 0 !== this.Ic;};w.prototype.op=function(){return this.tF || this.Q6b;};w.prototype.oUa=function(){var x,y,A;A=this.config.Lq;if(null === (x=this.zd) || void 0 === x?0:x.track)A=null === (y=this.zd) || void 0 === y?void 0:y.track.Lq;return A;};Object.defineProperties(w.prototype,{hZa:{get:function(){var x;x=!0;this.config.Oda && (x=this.connected);this.config.Nda && (x=x && this.NSa);return x;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{PGb:{get:function(){return void 0 !== this.Cn;},enumerable:!1,configurable:!0}});Object.defineProperties(w.prototype,{Qta:{get:function(){var x;return (null === (x=this.Cn) || void 0 === x?0:x.Yz())?{complete:!0,reason:"stall"}:{complete:!1,reason:"stall"};},enumerable:!1,configurable:!0}});w.prototype.uo=function(x,y){this.nl.aEc(x);"oncomplete" === this.config.zzb && (this.NSa=!0);this.MQ(x,y);};w.prototype.BS=function(x){var y,A;x.df || this.nl.EFb(x.stream,null === (y=x.Sb) || void 0 === y?void 0:y.G,null === (A=x.qa) || void 0 === A?void 0:A.G);this.nl.XDc(this.L,x.stream,x.df);this.Doa(x);};w.prototype.cM=function(x){this.connected=!0;"onfirstbyte" === this.config.zzb && (this.NSa=!0);this.R9(x);};w.prototype.uwb=function(x){var y,A;y=this.ee.Qa;if(0 === y.length)return {Qa:[],eua:0,qw:0,k1:0};A=y.F9(x.G);0 > A && (A=void 0 === y.Sb || x.G <= y.Sb.G?0:y.length);return {Qa:y.LOc(A),eua:Math.max(0,y.Gpb - A),qw:y.qw,k1:y.k1};};w.prototype.a5b=function(x,y,A){var z,B,C,D,E,G,J,L,K;if(!this.hwc){C=this.ee.rrc();Array.prototype.sort.call(C,function(P,I){return P.index - I.index;});(0,g.AH)(this.mediaType);D=y / C.length;y=[];try{for(var F=d.__values(C),H=F.next();!H.done;H=F.next()){E=H.value;G=E.bitrate;J=E.Wb;L=E.AC;K=8 * ((E.ma || J.G * G / 8) - E.bytesReceived);if(void 0 !== E.La.qa)if(0 < y.length)y.push(E);else if(Math.ceil(K / D) + (E.active?0:A) > x){if(L)return;y.push(E);}}}catch(P){var M;M={error:P};}finally{try{H && !H.done && (z=F.return) && z.call(F);}finally{if(M)throw M.error;}}0 !== y.length && (x=d.__read(y,1)[0],this.ee.b5b(y),this.My(null === (B=x.La.qa) || void 0 === B?void 0:B.G,x.index),this.DBb=n.platform.time.now());}};w.prototype.Eob=function(){this.Ak && (this.ee.D0a(),this.events.emit("lastRequestIssued",{type:"lastRequestIssued",mediaType:this.mediaType}));};w.prototype.Axa=function(){this.GW=-Infinity;this.tW="available";};w.prototype.fxb=function(x,y){var A,z,B,C,D,F;C=this.track.M.hba;(0,l.assert)(void 0 !== C,"Trying to get a live availability time without a live playback");D=C.Oc;C=C.Wf;F=D.fl(!0);D=D.tRa(!0);return x <= F?this.config.MY?(x=this.oa.Cpa(),D=null !== (A=this.config.ll) && void 0 !== A?A:0,A=this.oa.en(this.mediaType),y=(0,u.CRa)(u.Uia.sCa,{g2a:x,xWa:D,FNa:A,k0a:y,orb:null !== (z=this.config.B_) && void 0 !== z?z:0,rrb:null !== (B=this.config.C_) && void 0 !== B?B:1}),{kw:y,Sz:"waitingOnPacedRequest"}):{kw:-Infinity,Sz:"available"}:(y=(0,q.y$b)({Wf:C,CDc:x,vAc:D.G}),{kw:y,Sz:"waitingOnLiveAvailability"});};return w;})(t.KN);b.dFa=a;},99021:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q;Object.defineProperties(b,{__esModule:{value:!0}});b.gGa=void 0;d=a(22970);n=d.__importStar(a(17267));c=a(91176);f=a(47743);g=a(21306);t=a(81392);e=a(65161);h=a(52571);k=a(89645);l=a(40666);m=a(97757);p=a(27977);r=a(3033);q=a(58418);a=(function(u){function v(w,x,y,A,z,B,C,D){var F;F=u.call(this,w) || this;F.config=x;F.console=y;F.nl=A;F.av=z;F.mediaType=B;F.qpa=D;F.zd=new k.KI(F.console);F.error=F.console.error.bind(F.console);F.warn=F.console.warn.bind(F.console);F.trace=F.console.trace.bind(F.console);F.RKb();F.bm=null === C || void 0 === C?void 0:C.Xr(function(){return F.SMc();},"pruner");return F;}d.__extends(v,u);Object.defineProperties(v.prototype,{oa:{get:function(){return this.av;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{Py:{get:function(){return 0 < this.r_a;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{C1a:{get:function(){return !this.L9;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{r_a:{get:function(){return this.rb.length;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{sN:{get:function(){return this.rb.sN;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{gX:{get:function(){return this.zd.gH;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{pk:{get:function(){return this.rb.complete.Ob;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{m8:{get:function(){return this.rb.Dpb;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{LMa:{get:function(){return this.rb.lcc;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{pI:{get:function(){return this.rb.Ob;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{zva:{get:function(){return void 0 === this.rb.Sb?0:this.rb.Ob.G - this.rb.Sb.G;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{SX:{get:function(){return {ma:this.rb.Dma,G:this.rb.empty?0:Math.max(this.rb.Dpb - this.rb.Sb.G,0)};},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{Dma:{get:function(){return this.rb.Dma;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{SJ:{get:function(){return this.rb.ma;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{uHc:{get:function(){return this.xrc();},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{QSa:{get:function(){return this.rb.length > this.rb.sN;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{Hm:{get:function(){return this.rb.Hm;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{GBb:{get:function(){return this.LIa;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{qOa:{get:function(){return void 0 !== this.LIa;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{Qa:{get:function(){return this.rb;},enumerable:!1,configurable:!0}});v.prototype.Jg=function(w){var y,A,z;function x(){var B;B=z.map(function(C){return C;});0 < B.length && y.nl.jta(B);z.forEach(function(C){C.abort();C.Qe();});}y=this;z=this.rb;w?setTimeout(x,1):x();this.RKb();this.zd.wQ();null === (A=this.bm) || void 0 === A?void 0:A.Ka();};v.prototype.reset=function(){this.Jg();this.zd.PKb();};v.prototype.close=function(){this.zd.wQ();};v.prototype.D0a=function(){this.hmb=!0;};v.prototype.Exb=function(){return {endMarked:void 0 !== this.zd.count,queueCount:this.zd.count,isComplete:this.zd.gH,itemCount:this.zd.Epb,continuousEndPts:this.zd.wj().reduce(function(w,x){return x && !x.done && (x=x.value,100 > Math.abs(x.Rv.G - w) || -1 === w)?x.oZ.G:w;},-1),sentinelItemCount:this.zd.wj().filter(function(w){return w && w.done;}).length,processedCount:this.zd.Nhc,rc:this.r_a};};v.prototype.$oc=function(){return {completedRequests:this.rb.apc()};};v.prototype.WP=function(w,x,y){var A;A=this.config;(0,h.assert)(!w.header);w=f.Wya.create(y,A,x.track,w,this.rb,this.oa.K,this.console,this.qpa);this.rb.length && this.rb.ta && !w.qa.equal(this.rb.ta) && w.OQb(this.rb.ta);this.ux(w);return w;};v.prototype.ux=function(w){var x,y;this.rb.ku(w);(null === (x=this.bm) || void 0 === x?void 0:x.state) === l.ym.complete && (null === (y=this.bm) || void 0 === y?void 0:y.cd());this.Nac();w.Gi && (this.L9=!1);};v.prototype.SK=function(){return this.zd.Poa();};v.prototype.hMa=function(){this.HD === this.rb.length && this.hmb && this.zd.wQ();};v.prototype.BU=function(){var w,x,y,A;w=this;A=Promise.resolve();if(!this.av.UP(this.mediaType) || this.HD === this.rb.length)return A;for(var z=this.config.wBc,B=0,C=[];this.HD < this.rb.length;){if(y=this.rb.get(this.HD)){if(y.ED){if(this.config.rQ)C.push.apply(C,this.mKc(y));else break;}else {if(this.rb.Zub && this.rb.Zub.ub < y.ub)break;if(!y.Xx())break;C.push(y);}++B;n.pc(this.NYa) || (this.NYa=null === (x=y.Sb) || void 0 === x?void 0:x.G);}++this.HD;if(!n.ey(z) && B >= z)break;}C.length && (void 0 !== this.zd.count && (this.error("tryToAtach() but requestQueue has sentinel:",this.zd.count),this.zd.PKb()),A=Promise.all(C.map(function(D){return w.zd.enqueue(D).then(function(){return w.ztc(D);});})),this.hMa());return A;};v.prototype.ztc=function(w){this.LIa=w;};v.prototype.SW=function(w){var x,y,A;x=this;y=[];if(0 !== this.rb.sN){A=this.rb.xHb;this.rb.CQb.x1a(function(z){var B;if(z.Gi || A > (null === (B=z.Sb) || void 0 === B?void 0:B.G))return !0;z.bn && (x.L9=!1);if(!x.sP(z))return (x.warn("request abort failed:",z.toString()),!0);y.unshift(z);});this.jda();y.length && "function" === typeof w && w(y);}};v.prototype.RMc=function(w){w.ED=!0;w.abort();this.rb.XFc();this.BU();};v.prototype.SMc=function(){var w,x,y,A,z,B;return d.__generator(this,function(C){switch(C.label){case 0:C.label=1;case 1:if(!this.rb.length)return [3,3];w=this.rb.get(0);x=c.I.Ba(null !== (B=null === (z=this.config.DB) || void 0 === z?void 0:z.G) && void 0 !== B?B:0);y=x.add(w.Ob);return [4,l.$d.lm(y)];case 2:C.T();if(1 >= this.rb.complete.length && !w.Gi)return [3,3];(0,h.assert)(w === this.rb.get(0));w.AC || this.sP(w);A=this.rb.splice(0,1);0 < this.HD && this.HD--;this.nl.jta(A);A=void 0;return [3,1];case 3:return [2];}});};v.prototype.Kmc=function(w){if(this.rb.length && (w=this.rb.zub(w)))return w;};v.prototype.c5b=function(w){var x,y,A,z,B,C,D;C=w.ta;w=this.rb.KPa(w.qa.G);if(!(0 > w)){D=this.rb.get(w);(0,h.assert)(D && void 0 !== (null === (x=D.qa) || void 0 === x?void 0:x.G) && void 0 !== (null === (y=D.ta) || void 0 === y?void 0:y.G) && void 0 !== D.index,"expected existing request to be defined with properties");if(null === (A=D.ta) || void 0 === A?0:A.equal(C))return (this.clb(w),[null === (z=D.ta) || void 0 === z?void 0:z.G,D.index + 1]);this.clb(w - 1);return [null === (B=D.qa) || void 0 === B?void 0:B.G,D.index];}};v.prototype.nt=function(){var w,x;w=this;x=[];this.rb.forEach(function(y){var A,z;z=null === (A=y.p3a) || void 0 === A?void 0:A.call(y);1 === z?x.push(y):2 === z && w.oa.M.Vf({Ti:"swapUrl failure"});});return x;};v.prototype.cM=function(w){w.HA && w.Xx() && !this.config.tQ && this.BU();this.R9(w);};v.prototype.ND=function(w,x){var y,A;if(this.config.tQ && w.Xx() && !w.AC){y=w.stream;A=y.track;y=y.bitrate;A=(0,q.Uxb)({f$b:w.ma,yAc:A.Ed[0].bitrate,Bgc:y,qCc:this.config.Uwa,NMc:w.Wb.Zi,za:this.oa.M.Eb});w.bytesReceived >= A && this.BU();}this.nZ(w,x);};v.prototype.uo=function(w,x){var y,A;w.HA && !w.AC && this.BU();(null === (y=this.bm) || void 0 === y?void 0:y.state) === l.ym.complete && (null === (A=this.bm) || void 0 === A?void 0:A.cd());this.MQ(w,x);};v.prototype.rrc=function(){return this.rb.active.concat(this.rb.CQb);};v.prototype.b5b=function(w){var x,y,A;x=this;y=!1;A=-1;w.map(function(z){(0,h.assert)(-1 === A || z.index === A + 1,"requests to abort must be contiguous");A=z.index;if(!x.sP(z))return !1;y=!0;x.zd.remove(z);z.Qe();return !0;});y && this.jda();};v.prototype.xrc=function(){return this.rb.Hm + this.rb.sN;};v.prototype.RKb=function(){var w,x,y;x=void 0 !== this.rb && 0 < this.rb.length;y=this.rb;this.rb=new g.j5a(this.console,this);this.HD=0;this.zd.clear();this.LIa=void 0;this.NYa=null;null === (w=this.bm) || void 0 === w?void 0:w.cd();this.hmb=this.L9=!1;x && (w=y.map(function(A){return A;}),this.nl.jta(w));};v.prototype.Nac=function(){this.L9 || (this.L9=!0);};v.prototype.clb=function(w){var x;for(w+=1;w < this.r_a;w++){x=this.rb.get(w);(0,h.assert)(x,"expected request to exist");this.zd.remove(x);x.aborted || (this.sP(x),x.Qe());}this.jda();};v.prototype.sP=function(w){return w.abort()?!0:!1;};v.prototype.jda=function(){var w,x,y,A;w=this;if(0 !== this.rb.length){y=[];A=0;this.rb.jda(function(z,B){B < w.HD && ++A;y.push(z);});this.HD-=A;null === (x=this.bm) || void 0 === x?void 0:x.cd();this.nl.jta(y);}};v.prototype.mKc=function(w){var x,y;y=[];switch(this.mediaType){case e.u.X:y=this.nKc(w);break;case e.u.U:y=this.pKc(w);break;case e.u.Ca:y=this.oKc(w);break;case e.u.sm:this.console.error("providePaddingFragments not implemented for MEDIA_EVENTS");}if(null === (x=w.Iy) || void 0 === x?0:x.iH)y[y.length - 1].Iy={iH:!0};return y;};v.prototype.nKc=function(w){return r.TN.instance().Pea.fJb(this.oa.M,w.stream.ze,(0,p.Yvb)(w.stream.profile),w.stream.bitrate,w.stream.track.vu,w.Wb,this.oa.K,function(x,y){return w.Sb.add(y).Kc(x).$;},this.config,this.console);};v.prototype.pKc=function(w){var x,y,A;A=null === (x=w.stream.track.Ea) || void 0 === x?void 0:x.VZa();(0,h.assert)(A,"Video streams must have a frame rate");return r.TN.instance().Pea.gJb(this.oa.M,"padding",w.stream.profile,A,null === (y=w.stream.track.yo) || void 0 === y?void 0:y.BC,w.stream.track.vu,w.Wb,this.oa.K,function(z,B){return w.Sb.add(B).Kc(z).$;},this.console).Qa;};v.prototype.oKc=function(w){w.$ua(r.TN.instance().Pea.rKc(),!0);return [w];};return v=d.__decorate([m.rZ],v);})(t.KN);b.gGa=a;},64141:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.y$b=function(n){var c,f,g;c=n.Wf;f=n.CDc;g=n.vAc;n=n.Qad;n=void 0 === n?d.platform.time.ha():n;return f + g - (c - n);};d=a(66164);},75100:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.z$b=function(a){var d,n,c,f,g;d=a.oa;n=a.Izc;c=a.Qa;f=a.pj;a=a.config;if(void 0 !== d.EL){g=c.$s(f) - d.qa.G;c=c.fg(f);return {Jic:d.Sb.G + (g + Math.min(c,n.G)) / a.yzc - d.EL.G,wnc:c};}};},99614:function(t,b){var a,d;Object.defineProperties(b,{__esModule:{value:!0}});b.O$b=function(n){var c,f,g;c=n.k0a;f=n.FNa;g=n.rrb;return f < n.xWa?Infinity:f >= n.g2a?1E3 / c:1E3 * (d / Math.pow(f / (n.orb / (Math.pow(2,1 / g) - a)) + a,g) + 1) / c;};b.N$b=function(n){var c,f;c=n.k0a;f=n.FNa;return f < n.xWa?Infinity:f > n.g2a?1E3 / c:1E3 * (n.E9b + 1) / c;};a=.001;d=9;},15908:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Uia=void 0;b.CRa=function(g,e,h){void 0 === h && (h=n.platform.time.ha());g=1E3 / (0,f[g])(e);return h + g;};n=a(66164);t=a(99614);(function(g){g[g.sCa=0]="LOGARITHMIC";g[g.LINEAR=1]="LINEAR";})(c || (b.Uia=c={}));f=(d={},d[c.sCa]=t.O$b,d[c.LINEAR]=t.N$b,d);},58418:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Uxb=void 0;b.Uxb=function(a){var d,n,c,f,g;d=a.NMc;n=a.f$b;c=a.yAc;f=a.J7c;g=c / a.Bgc;return Math.min(n * a.qCc,n - (a.za?d * c * 1E3 / 8:n * g)) - (void 0 === f?150:f) / 1E3 * (n / d);};},95407:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.gC=void 0;d=a(22970);n=a(91176);t=(function(c){function f(g,e){g=c.call(this,g) || this;g.fA=e;g.name="PlaybackError";return g;}d.__extends(f,c);f.Zsc=function(g){var e,h,k;if(f.pUa(g))return null !== (h=null === (e=g.fA.context) || void 0 === e?void 0:e.type) && void 0 !== h?h:null === (k=g.fA.context) || void 0 === k?void 0:k.type;};f.n$=function(g){var e,h,k,l,m;if(f.pUa(g))return (g=null !== (h=null === (e=g.fA.context) || void 0 === e?void 0:e.error) && void 0 !== h?h:null === (k=g.fA.context) || void 0 === k?void 0:k.error,null !== (m=null !== (l=null === g || void 0 === g?void 0:g.edgeCode) && void 0 !== l?l:null === g || void 0 === g?void 0:g.code) && void 0 !== m?m:null === g || void 0 === g?void 0:g.code);};f.pUa=function(g){return g && g.message && g.stack && g.fA?"PlaybackError" === (null === g || void 0 === g?void 0:g.name):!1;};f.prototype.JK=function(){return {name:this.name,message:this.message,stack:this.stack,errorInformation:{category:this.fA.ud,subCategory:this.fA.Zwa,errorCode:this.fA.errorCode,context:n.oV.JK(this.fA.context)}};};return f;})(Error);b.gC=t;},34434:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y;Object.defineProperties(b,{__esModule:{value:!0}});b.bza=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(91176);a(97685);a(26388);g=a(69575);e=a(52571);h=a(65161);k=a(40666);t=a(75393);l=a(26012);m=a(97757);p=d.__importDefault(a(40497));d.__importDefault(a(40497));r=a(62234);q=a(74371);u=a(74504);v=a(82867);w=a(90111);x=a(85030);y=t.RD.WNa;a=(function(A){function z(B,C,D){var F;F=A.call(this) || this;F.player=B;F.Tjb=C;F.x6=D;F.e9=[];F.Pbc=void 0;F.bf=void 0;F.y9=new n.gf();F.Yaa=void 0;F.mM=void 0;F.VLc=null;F.y9.on(F.player,"underflow",F.ml.bind(F));F.b6=new w.xeb(B);F.y9.on(F.player,"skipped",F.JXa.bind(F));F.y9.on(F.player,"playbackEnding",F.DXa.bind(F));F.y9.on(F.player,"paused",F.vFc.bind(F));F.wJ=new k.mJ(F.b6,F.sb,"player");F.X3a=new g.Vg();B.Qt && B.cd && (F.xB=new x.igb(F,B,F.sb));F.fT=new r.bfb({Ida:function(H){return "function" === typeof B.Ida?B.Ida(H):{dg:"APPROVED"};},Bqc:function(){var H,E;return null !== (E=null === (H=F.bf) || void 0 === H?void 0:H.la.id) && void 0 !== E?E:-1;},mc:F.gd},F.x6);F.x6.ZOa && F.gd.Oma(function(){return F.DFc();},c.I.Ba(500));F.PS=(0,q.Eqb)({xAc:Math.min(D.nua,D.ll - 2500),ygc:D.mua,$C:function(){return F.Ld;},zrc:function(){var H,E,G,J,L,P,Q;L=(null === (J=F.bf) || void 0 === J?void 0:J.dn()) || [];J=[];try{for(var K=d.__values(L),M=K.next();!M.done;M=K.next()){P=M.value;try{for(var I=(E=void 0,d.__values([h.u.X,h.u.U,h.u.Ca])),O=I.next();!O.done;O=I.next()){Q=P.je(O.value);Q && J.push(Q);}}catch(U){E={error:U};}finally{try{O && !O.done && (G=I.return) && G.call(I);}finally{if(E)throw E.error;}}}}catch(U){var T;T={error:U};}finally{try{M && !M.done && (H=K.return) && H.call(K);}finally{if(T)throw T.error;}}return J;},mc:F.gd,console:F.sb,OCc:500});F.r0=F.r0.bind(F);F.Cta=F.Cta.bind(F);F.PS.addListener("healthChange",F.Cta);F.player.addListener("playing",F.r0);return F;}d.__extends(z,A);Object.defineProperties(z.prototype,{Ik:{get:function(){return this.player.Ik;},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{Gh:{get:function(){return this.Tjb;},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{sourceBuffers:{get:function(){var B;return (null === (B=this.bf) || void 0 === B?void 0:B.Fj) || [];},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{Rp:{get:function(){var B;return null === (B=this.bf) || void 0 === B?void 0:B.Rp;},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{ww:{get:function(){var B;return (null === (B=this.bf) || void 0 === B?void 0:B.ww) || new Map();},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{Ya:{get:function(){var B;return (null === (B=this.bf) || void 0 === B?void 0:B.dn()) || [];},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{la:{get:function(){var B;return null === (B=this.bf) || void 0 === B?void 0:B.la;},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{Ma:{get:function(){return this.b6;},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{Amb:{get:function(){var B,C;return !!((null === (B=this.bf) || void 0 === B?0:B.XT) && (null === (C=this.zk) || void 0 === C?0:C.lk));},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{XT:{get:function(){var B,C;return null !== (C=null === (B=this.bf) || void 0 === B?void 0:B.XT) && void 0 !== C?C:!1;},enumerable:!1,configurable:!0}});Object.defineProperties(z.prototype,{t_:{get:function(){return this.DW;},enumerable:!1,configurable:!0}});z.prototype.DXa=function(B){var C;if(this.Vd){B=this.tn(B.od || this.player.Cd,!0);(0,e.assert)(B,"Playback ending at position outside playgraph");C=this.tA(B);(0,e.assert)(C,"Playback ending at clamped position outside playgraph");this.events.emit("playbackEnding",{type:"playbackEnding",playerTimestamp:C,position:B});}else this.console.warn(("Unexpected playback ending event at ").concat(B.od));};z.prototype.DMb=function(B){-1 === this.e9.indexOf(B) && this.e9.push(B);this.bf && this.bf.m0(B);this.events.emit("drmReady",{viewableId:B});};z.prototype.CMb=function(B){B=this.e9.indexOf(B);-1 !== B && this.e9.splice(B,1);};z.prototype.Baa=function(B){var C;return -1 !== this.e9.indexOf(B) || !(null === (C=(0,f.cc)(this.Ya,function(D){return D.Wl && D.M.J === B;})) || void 0 === C || !C.M.KC);};z.prototype.VM=function(B){var C;null === (C=this.bf) || void 0 === C?void 0:C.VM(B);};z.prototype.Jfa=function(B){var C;null === (C=this.bf) || void 0 === C?void 0:C.Jfa(B);this.Tjb=B;};z.prototype.reset=function(){var B,C;this.X3a=new g.Vg();A.prototype.reset.call(this);this.mM=void 0;null === (B=this.bf) || void 0 === B?void 0:B.reset();null === (C=this.xB) || void 0 === C?void 0:C.reset();};z.prototype.C_a=function(B){this.u1([B]);};z.prototype.u1=function(B){var C,D;C=this;B.forEach(function(F){var H;A.prototype.C_a.call(C,F);null === (H=C.xB) || void 0 === H?void 0:H.hNc(F);});null === (D=this.bf) || void 0 === D?void 0:D.u1(B);};z.prototype.hK=function(){var B;null === (B=this.bf) || void 0 === B?void 0:B.hK();};z.prototype.pause=function(B){this.dU(B);A.prototype.pause.call(this,B || this.Gh);};z.prototype.resume=function(B){var C;null === (C=this.bf) || void 0 === C?void 0:C.resume(B);A.prototype.resume.call(this,B || this.Gh);};z.prototype.Ka=function(){var B;this.PS.removeListener("healthChange",this.Cta);this.player.removeListener("playing",this.r0);this.Yaa=this.Upa()?this.eu():void 0;this.bf && this.jOa(this.bf.la);this.b6.Ka();this.wJ.Ka();this.y9.clear();null === (B=this.xB) || void 0 === B?void 0:B.Ka();A.prototype.Ka.call(this);this.PS.stop();clearInterval(this.VLc);};z.prototype.$C=function(){var B,C;if(null === (B=this.bf) || void 0 === B?0:B.BJc){B=this.player.Cd;if(this.Ma.lj){if(this.mM){if(this.mM.greaterThan(B))return (B=this.mM.ea(B),this.X3a.push(B.G),this.mM);if(this.Ya.length){C=this.bf.Fyc;if(C && C.lessThan(B))return (this.events.emit("logdata",{type:"logdata",target:"endplay",Nc:{clockdrift:{type:"count"}}}),this.mM);}}this.mM=B;}return B;}return A.prototype.$C.call(this);};z.prototype.GZ=function(){var B;B=this.player.playbackRate;void 0 === B && (B=A.prototype.GZ.call(this));return B;};z.prototype.Upa=function(){return !!this.Yaa || A.prototype.Upa.call(this);};z.prototype.eu=function(){return this.Yaa?this.Yaa:A.prototype.eu.call(this);};z.prototype.PK=function(){var B,C,D,F;F=null === (B=this.bf) || void 0 === B?void 0:B.SBb;if(null === (C=this.bf) || void 0 === C || !C.la || F && (null === (D=this.la) || void 0 === D?0:D.Z.ba[F.K.id]))return F;};z.prototype.jOa=function(B){var C,D;(0,e.assert)(B === this.la);null === (C=this.bf) || void 0 === C?void 0:C.Ka();this.bf=void 0;null === (D=this.la) || void 0 === D?void 0:D.events.removeListener("seeking",this.PS.Fta);this.fT.reset();};z.prototype.Ela=function(B,C){var D,F,H,E;this.Yaa=void 0;H=A.prototype.Ela.call(this,B,C);if(H){E=new u.D5a(B,this,this.sb,B.config,this.x6,this.events,this.Gh,this.wJ,this.xB,this.aP,this.WO,this.bjb,null === C || void 0 === C?void 0:C.Rp,null === C || void 0 === C?void 0:C.ww);null === C || void 0 === C?void 0:C.y0();this.bf=E;this.dU(this.K0);this.xB && (C=B.Xe.bsc(l.xGa),C || (C=new l.xGa(),B.Sc(C)),this.xB.RLc(C));null === (F=null === (D=this.la) || void 0 === D?void 0:D.events) || void 0 === F?void 0:F.addListener("seeking",this.PS.Fta);}return H;};z.prototype.y0=function(){var B,C;null === (B=this.bf) || void 0 === B?void 0:B.y0();null === (C=this.Pbc) || void 0 === C?void 0:C.Ka();};z.prototype.UY=function(){var D;for(var B=[],C=0;C < arguments.length;C++)B[C]=arguments[C];D=this.bf;(0,e.assert)(D);B.forEach(function(F){return D.Ykc(F);});A.prototype.UY.apply(this,d.__spreadArray([],d.__read(B),!1));};z.prototype.Bea=function(){var B;null === (B=this.bf) || void 0 === B?void 0:B.Bea();};z.prototype.aSc=function(B,C,D){var F;null === (F=this.la) || void 0 === F?void 0:F.L2a(B.to,B.from,C,D,!0);};z.prototype.$k=function(B){var C,D,F,H;if(!this.bf)return !1;F=this.a$(B);if(!F)return !1;H=c.I.ia;F === this.zk && !F.K.p2 && (1 < F.K.rE || null !== (D=null === (C=F.K.Ul) || void 0 === C?void 0:C.length) && void 0 !== D && D) && (H=c.I.Ba(this.x6.dca));return F.Ob.ea(H).lessThan(B) || !F.UX(B)?!1:this.bf.$k(B);};z.prototype.vea=function(B){this.fT.vea(B);};z.prototype.OQa=function(){var B,C;return null !== (C=null === (B=this.la) || void 0 === B?void 0:B.Owb()) && void 0 !== C?C:Infinity;};z.prototype.ml=function(){var B,C,D;if(null === (B=this.la) || void 0 === B?0:B.no)this.console.error("AsePlayer: received underflow in buffering state - ignoring");else {D=this.Ld;(0,e.assert)(this.la);B=this.tn(D,!0);(0,e.assert)(B);null === (C=this.bf) || void 0 === C?void 0:C.ml(B);C=this.a$(D);null === C || void 0 === C?void 0:C.M.ml();this.la.ml(B);this.fT.o_a();}};z.prototype.JXa=function(B){this.mM=void 0;this.mob(B);};z.prototype.vFc=function(B){this.fT.lwa(!1);this.mob(B);};z.prototype.mob=function(B){var C,D;C=this;if(this.Ya.length && null !== B && void 0 !== B && B.od){B=B.OIb || B.od;D=this.DW={xo:B,position:this.tn(B,!0)};this.gd.Ut(k.$d.bz(c.I.Ba(1E3)),function(){C.DW === D && (C.DW=void 0);},"cleanupLastPositionPriorToSkip");}};z.prototype.CQa=function(){var B;return null === (B=this.bf) || void 0 === B?void 0:B.CQa();};z.prototype.Mca=function(B){this.bf?this.bf.Mca(B):A.prototype.Mca.call(this,B);};z.prototype.dU=function(B){var C;null === (C=this.bf) || void 0 === C?void 0:C.dU(B);};z.prototype.N2a=function(B){(0,e.assert)(this.la && this.bf);return A.prototype.N2a.call(this,B);};z.prototype.v_a=function(){var B,C;null === (C=(B=this.player).v_a) || void 0 === C?void 0:C.call(B);};z.prototype.r0=function(){this.x6.tQ && !this.PS.mo && this.PS.start();this.fT.owa(this.OQa());this.fT.lwa(!0);};z.prototype.DFc=function(){var B,C;B=this.la;(0,e.assert)(B,"expected playgraph while time updating");C=this.OQa();B.Pwb();this.fT.owa(C);};z.prototype.Cta=function(B){var C;C=B.gic;B.Cuc === q.aeb.W4 && C && this.lFc(B);};z.prototype.lFc=function(B){d.__awaiter(this,arguments,void 0,function(C){var D,F,H,E,G,J;G=C.bLc;J=C.Ve;return d.__generator(this,function(L){switch(L.label){case 0:return [4,p.default.instance().gNc()];case 1:D=L.T();if(!D)return [2];F=D.gFb;H=D.VKb;E=Math.max(0,G - 500);J.a5b(E,F,H);return [2];}});});};d.__decorate([y.return.ALa(),y.return.Zq],z.prototype,"eu",null);d.__decorate([y.return.ALa(),y.return.JD],z.prototype,"PK",null);return z=d.__decorate([m.rZ],z);})(v.xFa);b.bza=a;},74504:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y;Object.defineProperties(b,{__esModule:{value:!0}});b.D5a=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(91176);g=a(66164);e=a(79048);h=a(74418);k=a(62614);l=a(89645);m=a(65161);p=a(78647);r=a(69575);q=a(40666);u=a(52571);v=a(67181);w=a(95324);x=a(16290);y=a(89527);t=(function(){function A(z,B,C,D,F,H,E,G,J,L,K,M,P,I){var O;O=this;this.la=z;this.player=B;this.console=C;this.config=D;this.uw=F;this.events=H;this.Gh=E;this.gd=G;this.xB=J;this.xp=L;this.JR=K;this.pk=M;this.z6=I;this.Z0=[];this.Xla=!1;this.Tub=new r.ygb();this.YIa=this.mXa.bind(this);this.aJa=this.HFc.bind(this);this.$Ia=this.iFc.bind(this);this.bJa=this.JFc.bind(this);this.$F=new l.KI(this.console);this.R6=P || new x.jHa(this.console,z);this.WIa=E.some(function(Q){return !(null === I || void 0 === I || !I.get(Q));});this.Qfc();this.Fj && (this.AJc=this.Ooa(this.Nrc()),this.djb());this.bm=G.Xr(function(){return O.u9b();},"branchPruner");this.Kj=new n.gf();this.Kj.on(this.events,"segmentPresenting",function(){return d.__awaiter(O,void 0,void 0,function(){var Q;return d.__generator(this,function(T){switch(T.label){case 0:return (this.g3b=this.player.eu(),null !== (Q=this.config.Nmb) && void 0 !== Q && Q.segmentPresenting?[4,Promise.resolve()]:[3,2]);case 1:(T.T(),this.events.emit("requestGarbageCollection",{time:g.platform.time.ha(),type:"requestGarbageCollection"}),T.label=2);case 2:return [2];}});});});}Object.defineProperties(A.prototype,{Rp:{get:function(){return this.R6;},enumerable:!1,configurable:!0}});Object.defineProperties(A.prototype,{ww:{get:function(){var z;z=new Map();this.Fj.forEach(function(B){z.set(B.mediaType,B.TD);});return z;},enumerable:!1,configurable:!0}});Object.defineProperties(A.prototype,{SBb:{get:function(){return this.g3b;},enumerable:!1,configurable:!0}});Object.defineProperties(A.prototype,{XT:{get:function(){return this.Fj.every(function(z){return z.XT;});},enumerable:!1,configurable:!0}});A.prototype.u9b=function(){var z,B,C,D,F,H;return d.__generator(this,function(E){switch(E.label){case 0:if(!this.$F.Epb && !this.Z0.length)return [3,2];z=d.__read(this.dn(),1);B=z[0];C=B.K.type === e.Gd.content && (null === (H=this.uw.DB) || void 0 === H?void 0:H.G) || 0;D=B.qra || B.Ob;F=D.add(c.I.Ba(C + 1E3));return [4,q.$d.lm(F)];case 1:return (E.T(),this.tKc(B),[3,0]);case 2:return [2];}});};Object.defineProperties(A.prototype,{BJc:{get:function(){var z;return !(null === (z=this.AJc) || void 0 === z || !z.xp.value);},enumerable:!1,configurable:!0}});Object.defineProperties(A.prototype,{Fyc:{get:function(){return this.Xla?c.I.max.apply(c.I,d.__spreadArray([],d.__read(this.Fj.map(function(z){var B;return null === (B=z.i8b) || void 0 === B?void 0:B.RBb;}).filter(f.xFb)),!1)):void 0;},enumerable:!1,configurable:!0}});A.prototype.VM=function(z){this.Fj.forEach(function(B){B.VM(z);});};A.prototype.mXa=function(){var z;this.bm.cd();z=this.Fj.filter(function(B){return B.fAb;}).map(function(B){return B.mediaType;});this.dU(z);this.resume(z);};A.prototype.HFc=function(z){this.Znb(z.oa);};A.prototype.iFc=function(z){this.Znb(z.oa);};A.prototype.JFc=function(){this.player.v_a();};A.prototype.Znb=function(z){var B,C,D;B=this.dn();C=B.indexOf(z);if(-1 !== C && !B.slice(0,C).some(function(F){return !F.lk;})){D=z.pk;D && D.greaterThan(this.pk.value) && (z.lk && C < B.length - 1 && (D=c.I.max(D,B[C + 1].pk || c.I.BWa)),this.pk.set(D));}};A.prototype.Ykc=function(z){(0,u.assert)(-1 === this.dn().indexOf(z),("Branch ").concat(z.K.id," is already in the collection, cannot re-queue"));z.events.on("branchEdited",this.YIa);z.events.on("requestComplete",this.aJa);z.events.on("liveMissingSegment",this.$Ia);z.events.on("requestSeekToLiveEdge",this.bJa);z.pk && this.dn().every(function(B){return B.lk;}) && this.pk.set(z.pk);z.gX?((0,u.assert)(0 === this.$F.G2a().length,"Cannot append a completed branch after initial branches, "),this.Z0.push(z)):(this.$F.enqueue(z),!z.K.p2 || z.M.Eb && !isFinite(z.K.fb) || this.$F.wQ(),this.Xla || this.Tmc(z));this.bm.state === q.ym.complete && this.bm.cd();};A.prototype.m0=function(z){this.Fj.forEach(function(B){B.m0(z);});};A.prototype.Jfa=function(z){var B,C,D,F;B=this;C=!1;D=this.Fj.map(function(H){return H.mediaType;});this.la.Qx().some(function(H){return H.Eb;}) || (D=D.filter(function(H){return H !== m.u.Ca;}));F=(0,f.Yo)(D,z);F.forEach(function(H){var E;E=B.ei.sourceBuffers;E=(0,f.cc)(E,function(G){return G.mediaType === H;});(0,u.assert)(E);B.ei.removeSourceBuffer(E);E=B.Ooa(H);(0,u.assert)(E);E.reset();E.Ka();(0,f.WKa)(B.Fj,E);(0,f.WKa)(F,H);C=!0;});z=(0,f.Yo)(z,D);if(!this.i7(this.ei,z))throw (this.hP({Ti:"error creating source buffers",XC:"NFErr_MC_StreamingInitFailure"}),this.ei.error);z.forEach(function(H){var E;E=B.ei.sourceBuffers;E=(0,f.cc)(E,function(G){return G.mediaType === H;});(0,u.assert)(E);E=B.Hqb(B.ei,E);B.Fj.push(E);C=!0;});C && this.djb();};A.prototype.reset=function(){this.Fj.forEach(function(z){z.reset();});this.WIa=this.Xla=!1;this.Tub.removeAllListeners();this.hK();};A.prototype.C_a=function(z){this.u1([z]);};A.prototype.u1=function(z){var B;B=this;z.forEach(function(C){C=B.Ooa(C);null === C || void 0 === C?void 0:C.reset(!1,z);});};A.prototype.hK=function(){var z;z=this;this.dn().forEach(function(B){B.events.$l("branchEdited",z.YIa);B.events.$l("requestComplete",z.aJa);B.events.$l("liveMissingSegment",z.$Ia);B.events.$l("requestSeekToLiveEdge",z.bJa);});this.Z0=[];this.$F.clear();this.bm.cd();};A.prototype.resume=function(z){this.Fj.forEach(function(B){void 0 !== z && -1 === z.indexOf(B.mediaType) || B.resume();});};A.prototype.Mca=function(z){var B;B=this.Fj.filter(function(C){return C.fAb;});B.forEach(function(C){return C.stop();});z();B.forEach(function(C){return C.resume();});};A.prototype.dU=function(z){this.Fj.forEach(function(B){return (void 0 === z || -1 !== z.indexOf(B.mediaType)) && B.stop();});};A.prototype.Bea=function(){this.Fj.forEach(function(z){return z.Bea();});};A.prototype.ml=function(z){var B,C,D;this.console.trace("attached-player: onUnderflow");B=this.SBb;if(B.Wl && B.M.Eb){C=B.pA();if(!this.config.rQ && C && 0 < C.length && C.every(function(F){return F instanceof w.Rha;}) && (C=C.map(function(F){return F.dpc();}).filter(c.$c),C.length)){C=c.I.max.apply(c.I,d.__spreadArray([],d.__read(C),!1));D=(0,k.Lqc)(B.M.S);C=C.add(c.I.Ba(D));z=this.la.ns(z);(0,u.assert)(z.Pa.G <= C.G);B=this.la.Vr({J:B.M.J,Pa:C});(0,u.assert)(B);B={type:"fragmentsMissing",nextAvailableGraphPosition:B,nextAvailableContentTimestamp:C};this.events.emit(B.type,B);}}};A.prototype.qsc=function(){return this.$F.getIterator();};A.prototype.dn=function(){return d.__spreadArray(d.__spreadArray([],d.__read(this.Z0),!1),d.__read(this.$F.G2a()),!1);};A.prototype.i7=function(z,B){var C,D;C=!0;D=z.sourceBuffers;B.forEach(function(F){(0,f.cc)(D,function(H){return H.mediaType === F;}) || z.addSourceBuffer(F) || (C=!1);});C || this.console.warn("Error adding sourceBuffer:",z.error);return C;};A.prototype.Qfc=function(){var z,B;z=this;this.HW("createMediaSourceStart");if(this.uw.yRa)B=this.uw.yRa();else (B=new g.platform.MediaSource(this.player.player),B.vg || (B.vg=g.platform.MediaSource.vg));if(1 !== B.readyState)this.hP({Ti:"exception in init",XC:"NFErr_MC_StreamingInitFailure"});else {this.HW("createMediaSourceEnd");this.ei=B;if(!this.i7(B,this.Gh))throw (this.hP({Ti:"error creating source buffers",XC:"NFErr_MC_StreamingInitFailure"}),B.error);this.qob={};this.la.Sc(new v.L6a(this.la,this.qob,this.config));this.Fj=B.sourceBuffers.filter(function(C){return 0 <= z.Gh.indexOf(C.mediaType);}).map(function(C){return z.Hqb(B,C);});}};A.prototype.Hqb=function(z,B){var C,D,F,H;C=this;z=new p.l6a(B.mediaType,z,B,this.config,this.player,this.gd);z.addListener("error",function(E){return C.hP({Ti:E.errorstr});});z.addListener("logdata",function(E){return C.events.emit("logdata",E);});z.addListener("managerdebugevent",function(E){C.events.emit("managerdebugevent",E);});H=null === (D=this.z6) || void 0 === D?void 0:D.get(B.mediaType);D=new h.n5a(z,B.mediaType,this,this.config,this.console,this.player,this.uw,this.gd,this.Rp,this.xB,H);if(B.mediaType === m.u.U)D.on("drmNeeded",function(E){return C.events.emit("drmNeeded",E);});H || (null === (F=D.TD) || void 0 === F?void 0:F.k6b(new y.gV(this.qob[B.mediaType]={},this.console,this.player,z,this.player.events,this.uw,this.gd)));return D;};A.prototype.tKc=function(z){var B;(0,u.assert)(z.gX,"Attempted to prune branch that has not been fully appended");this.Z0=this.Z0.filter(function(C){return C !== z;});this.$F.remove(z);z.events.removeListener("branchEdited",this.YIa);z.events.removeListener("requestComplete",this.aJa);z.events.removeListener("liveMissingSegment",this.$Ia);z.events.removeListener("requestSeekToLiveEdge",this.bJa);z.Jg("pruned");(null === (B=this.config.Nmb) || void 0 === B?0:B.branchPruned) && this.events.emit("requestGarbageCollection",{time:g.platform.time.ha(),type:"requestGarbageCollection"});};A.prototype.Ka=function(){this.jWa.clear();this.DLa.clear();this.Fj.forEach(function(z){return z.Ka();});this.uw.yRa || this.ei.Xt();this.hK();this.bm.Ka();this.Kj.clear();};A.prototype.$k=function(z){return this.Fj.every(function(B){return B.$k(z);});};A.prototype.y0=function(){this.Fj.forEach(function(z){return z.zqb();});this.R6=new x.jHa(this.console,this.la);};A.prototype.CQa=function(){return {IKc:this.dn(),dIc:this.Fj};};A.prototype.Tmc=function(z){var B;B=this;this.Xla=!0;z.ka.forEach(function(C){var D;D=B.Ooa(C.mediaType);if(void 0 !== D)B.Tub.once(C.VPa,function(F){return D.Xmc(F);});});if(z.qa)this.Wsb();else z.events.once("branchNormalized",function(){return B.Wsb();});};A.prototype.Wsb=function(){var z;z=this.$F.G2a()[0];z && ((0,u.assert)(z.Sb),this.events.emit("ptsChanged",{initialTimestamp:z.Sb,inNonSeamlessTransition:this.WIa}),this.WIa=!1);};A.prototype.Ooa=function(z){return (0,f.cc)(this.Fj,function(B){return B.mediaType === z;});};A.prototype.Nrc=function(){return -1 !== this.Gh.indexOf(m.u.U)?m.u.U:m.u.X;};A.prototype.HW=function(z){z={type:"startEvent",event:z,time:g.platform.time.ha()};this.events.emit(z.type,z);};A.prototype.hP=function(z){this.la.Vf(z);};A.prototype.djb=function(){var z;z=this;this.jWa && this.jWa.clear();this.jWa=c.vt.kSb(this.Fj.map(function(B){return B.xp;}),function(B){return B.every(function(C){return C;});},function(B){return z.xp.set(B);});this.DLa && this.DLa.clear();this.DLa=new c.jEa(this.Fj.map(function(B){return B.JR;}),function(B){return c.I.min.apply(c.I,d.__spreadArray([],d.__read(B),!1));},function(B){z.JR.set(B);},c.I.Ba(-Infinity));};return A;})();b.D5a=t;},89527:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.gV=void 0;d=a(22970);n=a(90745);c=a(52571);f=a(48170);g=0;t=(function(e){function h(k,l,m,p,r,q,u,v){l=e.call(this,("cdnList").concat(g++),l,m,p,r,q,u,"cdnList",v) || this;l.Uh=k;l.Tb();return l;}d.__extends(h,e);h.prototype.Tb=function(){var k;k=this;this.Vca=new n.gf();this.Vca.on(this.Fb.player,"skipped",function(l){k.UD && ((null === l || void 0 === l?0:l.OIb) && k.j8(l.OIb),k.UD=void 0);});this.Vca.on(this.Fb.player,"paused",function(){k.UD && k.Fb.Vd && k.j8(k.Fb.Ld);});this.Vca.on(this.Fb.player,"underflow",function(){k.UD && k.Fb.Vd && k.j8(k.Fb.Ld);});};h.prototype.Rz=function(k,l,m){this.Vca.clear();e.prototype.Rz.call(this,k,l,m);this.Tb();};h.prototype.close=function(){f.l && this.console.trace("close");e.prototype.close.call(this);this.Vca.clear();};h.prototype.ARc=function(k,l){var m;m=this;this.UD && this.j8(k);return this.Cub(l).map(function(p){return m.Uh[p];});};h.prototype.bKb=function(k){var l;l=this;this.Cub(k).forEach(function(m){delete l.Uh[m];});};h.prototype.Cub=function(k){var l;l=this;return Object.keys(this.Uh).filter(function(m){return l.Uh[m].R === ("").concat(k);});};h.prototype.xp=function(k){var l,m,p;l=k.stream;m=k.dd;p=k.Sb;k=k.Ob;(0,c.assert)(void 0 !== p);(0,c.assert)(void 0 !== k);f.l && this.console.trace(("Media appended ").concat(p.ca(),"-").concat(k.ca()));this.sKa({stream:l,dd:m},p,k);};h.prototype.Yqa=function(k,l){return k.stream === l.stream && k.dd === l.dd;};h.prototype.Xpc=function(k){var l,m;m=k.kt;k=m.dd;m=null === (l=m.stream.M.S.Xz) || void 0 === l?void 0:l.Jf;return ("").concat(k,"::").concat(m);};h.prototype.ROa=function(k,l){f.l && this.console.trace(("Presenting event for ( ").concat(k.kt.stream.id,", ").concat(k.kt.dd," )") + (" at ").concat(l.ca()));this.UD?this.j8(l):this.k8=l;this.UD=k;};h.prototype.j8=function(k){var l,m,p,r,q,u,v,w,x;(0,c.assert)(this.UD);if(null === (l=this.KNa) || void 0 === l?0:l.lessThan(k))k=this.KNa;q=this.UD;l=this.Uh;u=q.kt;v=u.stream;u=u.dd;w=null === (m=v.bS) || void 0 === m?void 0:m.$g;m=k.ea(this.k8 || q.timestamp).G;if(void 0 !== u && void 0 !== w){x=null === (p=v.M.S.Xz) || void 0 === p?void 0:p.Jf;p=v.track.R;q=this.Xpc(q);l=(r=(l[q] || (l[q]={Th:u,Jf:x,R:p,$n:{}})).$n)[w] || (r[w]={bitrate:v.bitrate,ob:w,mediaType:v.mediaType,totalTime:0,Pb:v.Pb});l.totalTime=Math.max(l.totalTime + m,0);}this.k8=k;};h.prototype.clone=function(k,l){l=void 0 === l?{}:l;k=new (l.qdd || h)(k,this.fGc,this.Fb,this.rla,this.events,this.uw,this.mc,l.priority);this.Rbc(k);k.UD=this.UD;k.k8=this.k8;f.l && k.console.trace("Cloning",{T4c:k.Uj.length});return k;};h.prototype.reset=function(){e.prototype.reset.call(this);this.k8=void 0;};h.prototype.uL=function(k){return ("(").concat(k.stream.Sa,", ").concat(k.dd,")");};return h;})(a(546).Cia);b.gV=t;},63002:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.L8a=void 0;d=a(22970);n=a(48170);c=a(40666);t=(function(){function f(g,e,h){this.mc=g;this.pCc=e;this.sb=h;}Object.defineProperties(f.prototype,{name:{get:function(){return "ExitZone";},enumerable:!1,configurable:!0}});f.prototype.waitUntil=function(g){var e;g=(0,c.R2)(this.mc,g,!0);e=g.promise;this.U3a=g.Ee;return e;};f.prototype.process=function(g){return d.__awaiter(this,void 0,void 0,function(){var e,h;return d.__generator(this,function(k){switch(k.label){case 0:if(g.done)return [3,2];e=g.value.value;if(!e.XPa)return [3,2];h=e.Sb.ea(this.pCc);n.l && this.sb.trace(("[").concat(e.mediaType,"] JIT: waiting until playertime >= ").concat(h.G),("to append next request ").concat(e.toString()));return [4,this.waitUntil(h)];case 1:(k.T(),n.l && this.sb.trace(("[").concat(e.mediaType,"] JIT: now appending request ").concat(e.toString())),k.label=2);case 2:return [2,g];}});});};f.prototype.reset=function(){var g;null === (g=this.U3a) || void 0 === g?void 0:g.Ka();};return f;})();b.L8a=t;},54540:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Lab=void 0;d=a(22970);n=a(91562);c=a(91176);f=a(8149);t=(function(){function g(e){this.console=e;}Object.defineProperties(g.prototype,{name:{get:function(){return "LiveRequestLogger";},enumerable:!1,configurable:!0}});g.prototype.process=function(e){return d.__awaiter(this,void 0,void 0,function(){var h,k,l,m,p,r,q,u,v,w,x,y,A,z;return d.__generator(this,function(){e.done || (h=e.value.value,(0,f.yk)(h.stream) && (k=h.I$(0),k instanceof ArrayBuffer && (l=new n.um(this.console,h.stream,k,["moof"],!0,{nYa:!0}),m=l.parse(),m.dB && (p=l.$m("moof"),r=p.$m("traf"),q=r.$m("trun"),u=r.$m("tfdt"),v=h.stream.Fk,w=q.Nd,x=u.YF,y=m.Qa.O,A=new c.I(x,y),z=this.Ls?A.ea(this.Ls.$8b):void 0,this.console.trace(("Live Request Logger: processing request [").concat(h.mediaType,"]"),{baseMediaDecodeTime:x,timescale:y,baseMediaDecodeMs:A.G,ptsOffsetMs:v.G,mediaTimestampMs:A.ea(v).G,offsetFromPriorMs:null === z || void 0 === z?void 0:z.G,sampleCount:w,url:h.url}),this.Ls={$8b:A}))));return [2,e];});});};g.prototype.reset=function(){this.Ls=void 0;};return g;})();b.Lab=t;},85030:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperties(b,{__esModule:{value:!0}});b.igb=void 0;d=a(22970);n=a(91176);c=a(90745);f=a(66164);g=a(48170);e=a(65161);h=a(69575);k=a(52571);t=(function(){function l(m,p,r){var q;q=this;this.Fb=m;this.player=p;this.pending=new Map();this.listeners=new c.gf();this.UWa=!1;this.Rtc=function(u){q.XKb(!0,function(){g.l && q.console.debug("cancelling playback ending");u.cancel();});};this.listeners.addListener(p,"playbackEnding",this.Rtc);this.console=(0,h.Df)(f.platform,r,"SEAMLESSMANAGER");g.l && this.console.debug("construct");}l.prototype.Ka=function(){g.l && this.console.debug("destruct");this.pending.clear();this.listeners.clear();};l.prototype.RLc=function(m){this.HLb=m;};l.prototype.hSb=function(m){var p,r;0 === this.pending.size && ((0,k.assert)(void 0 === this.Ym,"SeamlessManager: No pending transitions, but a wait is deferred"),this.Ym=new n.Jo());(0,k.assert)(this.Ym,"SeamlessManager: deferred is undefined");if(this.pending.has(m.mediaType)){r=this.pending.get(m.mediaType);if(r.mediaType === m.mediaType && r.I9 === m.I9 && r.from.L === m.from.L && r.to.L === m.to.L && r.timestamp.equal(m.timestamp) && r.bda.equal(m.bda) && r.to.stream === m.to.stream && r.from.stream === m.from.stream)return (g.l && this.console.trace(("duplicate waitTillAllowed request for media [").concat(m.mediaType,"]")),this.Ym.promise);}(0,k.assert)(!this.pending.has(m.mediaType),"SeamlessManager: There is already a pending transition for mediaType " + m.mediaType);this.pending.set(m.mediaType,m);g.l && this.console.trace(("got new transition [").concat(m.mediaType,"] --\x3e ").concat(null === (p=m.to.stream) || void 0 === p?void 0:p.id));p=this.Fb.Gh;g.l && this.console.debug("checking pending",{size:this.pending.size,o7c:p});if(this.pending.size === p.length && !this.UWa){p=this.vxc();if(p.ZYa)return (g.l && this.console.trace(("seamless transition possible at ").concat(m.timestamp.ca())),this.Ym.resolve(),this.reset(),Promise.resolve());g.l && this.console.trace(("starting non-seamless transition at ").concat(m.timestamp.ca()));this.ZRc(p.info);}return this.Ym.promise;};l.prototype.hNc=function(m){g.l && this.console.trace(("reset media [").concat(m,"]"));this.pending.delete(m);0 === this.pending.size && this.reset();};l.prototype.reset=function(){g.l && this.console.debug("resetting");this.UWa=!1;this.Ym=void 0;this.pending.clear();};l.prototype.vxc=function(){var m,p,r,q,w,x,y,A,z,B,C,D,F,H,E;q={ZYa:!0};try{for(var u=d.__values(this.pending.entries()),v=u.next();!v.done;v=u.next()){w=d.__read(v.value,2);x=w[0];y=w[1];if(y.from){A=y.from.stream;z=y.to.stream;if((null === A || void 0 === A?void 0:A.track) === (null === z || void 0 === z?void 0:z.track))g.l && this.console.debug("Seamless deemed possible due to same track",{mediaType:x});else {B=null === A || void 0 === A?void 0:A.ks();C=null === z || void 0 === z?void 0:z.ks();D=void 0;F=this.Fb.tn(y.timestamp);D=y.from.L && 0 > this.Fb.JR.value.G?{L:y.from.L,offset:n.I.Ba(0)}:this.Fb.tn(y.bda);H=void 0;H=x !== e.u.Ca?this.player.Qt({mediaType:x,I9:y.I9,from:B,to:C,V9:D,sfa:F}):{Qt:!0,reason:"Text"};if(H.Qt)g.l && this.console.debug("Seamless deemed possible",{mediaType:x,from:B,to:C,V9:D,sfa:F});else {g.l && this.console.debug("Non-seamless transition; details:",{reason:H.reason,mediaType:x,from:B,to:C});E=q.ZYa?[]:q.info.IJb;H.reason && (y.reason="string" !== typeof H.reason?H.reason:void 0,E.push(H.reason));q={ZYa:!1,info:{Yhc:null !== (p=y.to.L) && void 0 !== p?p:"unk",HRc:null !== (r=y.from.L) && void 0 !== r?r:"unk",RYa:y.timestamp,IJb:E}};}}}}}catch(J){var G;G={error:J};}finally{try{v && !v.done && (m=u.return) && m.call(u);}finally{if(G)throw G.error;}}return q;};l.prototype.ZRc=function(m){var p;null === (p=this.HLb) || void 0 === p?void 0:p.a6b(m);this.UWa=!0;this.Fb.xp.value?(g.l && this.console.trace("Signaling EOS for upcoming restart"),this.Fb.Bea()):(m=this.Fb,g.l && this.console.trace("Signaling immediate restart",{append:this.Fb.xp.value,U4c:m.sourceBuffers.map(function(r){return r.xp.value;})}),this.XKb(!1));};l.prototype.XKb=function(m,p){var r,q,u,v,w,x,y,B,C,D;u=this;if(this.pending.size){g.l && this.console.trace("playback ending, restarting player");w={};x=(r={},r[e.u.X]=void 0,r[e.u.U]=void 0,r[e.u.Ca]=void 0,r[e.u.sm]=void 0,r);r=void 0;y=[];try{for(var A=d.__values(this.pending.entries()),z=A.next();!z.done;z=A.next()){B=d.__read(z.value,2);C=B[0];D=B[1];w[C]=null === (v=D.to.stream) || void 0 === v?void 0:v.ks();r={to:{L:D.to.L,offset:D.timestamp}};D.reason && y.push(D.reason);D.from.L && (x[C]=D.from.L,r.from={L:D.from.L,offset:D.bda});}}catch(H){var F;F={error:H};}finally{try{z && !z.done && (q=A.return) && q.call(A);}finally{if(F)throw F.error;}}null === p || void 0 === p?void 0:p();this.Fb.aSc(r,m,y);g.l && this.console.debug("Restarting player",w);this.player.cd(w,x,r).then(function(){var H,E;null === (H=u.Ym) || void 0 === H?void 0:H.resolve();g.l && u.console.debug("Restart completed");null === (E=u.HLb) || void 0 === E?void 0:E.b6b();u.reset();});}};return l;})();b.igb=t;},33604:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.jgb=void 0;d=a(22970);n=a(79048);c=a(48170);f=a(58049);t=(function(){function g(e,h,k){this.xB=e;this.mediaType=h;this.console=k;this.dac=this.Gaa=!0;}Object.defineProperties(g.prototype,{name:{get:function(){return "Transition";},enumerable:!1,configurable:!0}});g.prototype.process=function(e){return d.__awaiter(this,void 0,void 0,function(){var h,k,l;return d.__generator(this,function(m){switch(m.label){case 0:if(e.done)return [3,6];h=e.value.value;if(!(0,f.iUa)(h))return [3,3];if(!this.Ls || h.oa.M === this.Ls.M || h.oa.M.J === n.vr)return [3,2];c.l && this.console.trace("Seamless Throttler: waiting for other transitions to be ready",{request:h});return [4,this.xB.hSb({mediaType:this.mediaType,I9:this.Gaa,to:{stream:void 0,L:h.K.id},from:{stream:void 0,L:this.Ls.L},timestamp:h.oa.Sb,bda:null === (k=this.Ls) || void 0 === k?void 0:k.Sb})];case 1:(m.T(),m.label=2);case 2:return (this.Ls={QMc:0,stream:void 0,M:h.oa.M,Sb:h.oa.Sb,L:h.K.id},[3,6]);case 3:if(!this.Ls || !h.bn || h.stream.M === this.Ls.M || h.stream.M.J === n.vr)return [3,5];c.l && this.console.trace(("Seamless Throttler: Waiting on request [").concat(h.mediaType,"]"),h.index,"in",h.K.id);return [4,this.xB.hSb({mediaType:h.mediaType,I9:this.Gaa,to:{stream:h.stream,L:h.K.id},from:{stream:this.Ls.stream,L:this.Ls.L},timestamp:h.Sb,bda:null === (l=this.Ls) || void 0 === l?void 0:l.Sb})];case 4:(m.T(),m.label=5);case 5:(this.Gaa=!1,this.Ls={QMc:h.index,stream:h.stream,Sb:h.Sb,L:h.K.id,M:h.stream.M},m.label=6);case 6:return [2,e];}});});};g.prototype.yXa=function(e,h){void 0 === e && (e=[]);void 0 === h && (h=[]);c.l && this.console.trace(("Seamless Throttler: onMediaSourceReset() ").concat(h));this.Gaa || (this.Gaa=-1 !== h.indexOf(this.mediaType));(null === e || void 0 === e?0:e.length) && e.length !== h.length && (this.Ls=void 0);};g.prototype.reset=function(){};return g;})();b.jgb=t;},53693:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.zdb=void 0;d=a(22970);n=a(48170);c=a(52571);f=a(40666);t=(function(){function g(e,h,k,l){var m;m=this;this.mc=e;this.FGc=h;this.eYa=k;this.console=l;e.Ma.on("stopStart",function(){return m.Qbc();});n.l && this.console.trace(("PacingThrottler: pacingFactory=").concat(h,", pacingThreshold=").concat(k.ca()));}Object.defineProperties(g.prototype,{name:{get:function(){return "Pacing";},enumerable:!1,configurable:!0}});g.prototype.Qbc=function(){var e,h;h=this.mc.Ma;this.QX=h.lj?h.currentTime:void 0;this.r7=this.J9=void 0;n.l && this.console.trace(("PacingThrottler: clock reset ").concat(null === (e=this.QX) || void 0 === e?void 0:e.G));};g.prototype.waitUntil=function(e){var h;e=(0,f.R2)(this.mc,e,!0);h=e.promise;this.U3a=e.Ee;return h;};g.prototype.process=function(e){return d.__awaiter(this,void 0,void 0,function(){var h,k,l,m;return d.__generator(this,function(p){switch(p.label){case 0:if(e.done)return [3,11];h=e.value.value;(0,c.assert)(h.Sb);k=this.mc.Ma;if(!this.J9 || !this.r7)return [3,10];if(!this.r7.greaterThan(this.eYa))return [3,8];if(!this.QX)return [3,5];l=h.Sb.ea(this.QX).ea(this.eYa);m=this.QX.add(l.nf(this.FGc));if(!m.lessThan(h.Sb))return [3,3];if(!m.greaterThan(k.currentTime))return [3,2];n.l && this.console.trace(("PacingThrottler: waiting until ").concat(m.ca()," for mediaRequest @") + ("").concat(h.Sb.ca(),", ") + ("current time ").concat(k.currentTime.ca(),", ") + ("clock start time ").concat(this.QX.ca(),", ") + ("distance ").concat(l.ca()));return [4,this.waitUntil(m)];case 1:(p.T(),p.label=2);case 2:return [3,4];case 3:(n.l && this.console.warn("PacingThrottler: invalid schedule time " + ("").concat(m.ca()," for mediaRequest ") + ("@").concat(h.Sb.ca(),", ") + ("current time ").concat(k.currentTime.ca(),", ") + ("clock start time ").concat(this.QX.ca(),", ") + ("distance ").concat(l.ca())),p.label=4);case 4:return [3,7];case 5:l=h.Sb.ea(this.J9);if(!l.greaterThan(this.eYa))return [3,7];n.l && this.console.trace(("PacingThrottler: (buffering) waiting until ").concat(this.J9.G,"ms") + (" for mediaRequest @").concat(h.Sb.G,"ms, ") + ("current time ").concat(k.currentTime.G));return [4,this.waitUntil(this.J9)];case 6:(p.T(),p.label=7);case 7:return [3,9];case 8:(this.r7=this.r7.add(h.Wb),p.label=9);case 9:return [3,11];case 10:(this.J9=h.Sb,this.r7=h.Wb,p.label=11);case 11:return [2,e];}});});};g.prototype.reset=function(){var e;null === (e=this.U3a) || void 0 === e?void 0:e.Ka();};return g;})();b.zdb=t;},74371:function(t,b,a){var n,c,f,g,e,h;function d(k,l){return k > l.xAc?e.y9a:k > l.ygc?e.W4:0 < k?e.EUb:e.EMPTY;}Object.defineProperties(b,{__esModule:{value:!0}});b.Eqb=b.aeb=void 0;n=a(22970);c=a(91176);f=a(90745);g=a(54520);(function(k){k[k.EMPTY=0]="EMPTY";k[k.EUb=1]="CRITICAL";k[k.W4=2]="LOW";k[k.y9a=3]="HEALTHY";})(e || (b.aeb=e={}));h=(function(){function k(){this.eM=this.buffer=e.EMPTY;}Object.defineProperties(k.prototype,{PP:{get:function(){return Math.min(this.buffer,this.eM);},enumerable:!1,configurable:!0}});return k;})();b.Eqb=function(k){var m,p,r,q,u;function l(){var v,w,A,z,B,C,D,F,H;w=k.zrc();try{for(var x=n.__values(w),y=x.next();!y.done;y=x.next()){A=y.value;if(!A.lk){w=A;z=p[w.zYa] || new h();B=(0,g.nta)(new h(),p[w.zYa]);C=k.$C();D=w.pk.ea(C).G;B.eM=d(D,k);F=w.SX.G;H=d(F,k);B.buffer=H;q && B.PP < e.y9a || (q && (q=!1),B.PP !== z.PP && (p[w.zYa]=B,m.emit("healthChange",{Cuc:B.PP,gic:B.PP < z.PP,Ve:w,bLc:Math.min(F,D)})));}}}catch(G){var E;E={error:G};}finally{try{y && !y.done && (v=x.return) && v.call(x);}finally{if(E)throw E.error;}}}m=new f.EventEmitter();p={};r=null;q=!1;u={get mo() {return !(null === r || void 0 === r || !r.mo);},start:function(){return n.__awaiter(void 0,void 0,void 0,function(){return n.__generator(this,function(){if(u.mo)return [2];r=k.mc.Oma(l,c.I.Ba(k.OCc));return [2];});});},stop:function(){return null === r || void 0 === r?void 0:r.Ka();},Fta:function(){q=!0;},addListener:m.addListener.bind(m),removeListener:m.removeListener.bind(m)};return u;};},61651:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.xia=void 0;d=a(22970);n=a(91176);c=a(52571);f=a(48170);g=a(17122);t=(function(e){function h(k){var l;l=e.call(this) || this;l.la=k;l.z6=new Map();l.Ya=[];l.Ik=Number.MAX_SAFE_INTEGER;l.b6=new g.hja({lj:!1,currentTime:function(){return l.Vd?l.Ld:n.I.dh;},speed:1});return l;}d.__extends(h,e);Object.defineProperties(h.prototype,{Ma:{get:function(){return this.b6;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{gd:{get:function(){throw Error("Can't get scheduler on placeholder player");},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{Rp:{get:function(){return this.R6;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{ww:{get:function(){return this.z6;},enumerable:!1,configurable:!0}});h.prototype.Ela=function(k,l){var m;m=!this.la;m && (this.la=k,this.hIa=(null === l || void 0 === l?0:l.Vd)?l.Ld:void 0,this.R6=null === l || void 0 === l?void 0:l.Rp,this.z6=l?l.ww:new Map(),null === l || void 0 === l?void 0:l.y0());return m;};h.prototype.y0=function(){this.z6=this.R6=void 0;};h.prototype.hK=function(){this.Ya=[];this.hIa=void 0;};h.prototype.jOa=function(k){f.l && (0,c.assert)(this.la === k);this.la=void 0;this.hK();};h.prototype.UY=function(){for(var k,l=[],m=0;m < arguments.length;m++)l[m]=arguments[m];(k=this.Ya).push.apply(k,d.__spreadArray([],d.__read(l),!1));e.prototype.UY.apply(this,d.__spreadArray([],d.__read(l),!1));};h.prototype.$C=function(){return this.hIa?this.hIa:e.prototype.$C.call(this);};h.prototype.Baa=function(){return !1;};h.prototype.VM=function(){};h.prototype.OQa=function(){return Infinity;};h.prototype.vea=function(){};h.prototype.dU=function(){};h.prototype.Ka=function(){e.prototype.Ka.call(this);this.ww.forEach(function(k){return k.close();});};return h;})(a(82867).xFa);b.xia=t;},82867:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperties(b,{__esModule:{value:!0}});b.xFa=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(66164);g=a(52571);e=a(65161);t=a(75393);h=a(48170);k=a(69575);l=t.RD.WNa;a=(function(){function m(){this.K0=[];this.aP=new c.vt(!1);this.WO=new c.vt(c.I.Ba(-Infinity));this.bjb=new c.vt(c.I.Ba(-Infinity));this.DW=void 0;this.events=new n.EventEmitter();this.sb=new f.platform.Console("ASEJS","media|asejs");}Object.defineProperties(m.prototype,{t_:{get:function(){return this.DW;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{console:{get:function(){return this.sb;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{gd:{get:function(){return this.wJ;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Rp:{get:function(){},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{ww:{get:function(){return new Map();},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{playbackRate:{get:function(){return this.GZ();},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Amb:{get:function(){return !1;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{xp:{get:function(){return this.aP;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{JR:{get:function(){return this.WO;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{pk:{get:function(){return this.bjb;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Vd:{get:function(){return this.Xv;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Ld:{get:function(){return this.$C();},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Yg:{get:function(){var p,r;p=this.Ld;r=this.tn(p,!1);h.l && (0,g.assert)(r,("Could not find current branch for ").concat(p.G));return r;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Lvc:{get:function(){return this.Ya[0];},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{zk:{get:function(){return this.Xv?this.Ya[this.Ya.length - 1]:void 0;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{nB:{get:function(){var p,r;p=this.Ld;r=this.a$(p);(0,g.assert)(r,("Could not find presenting branch for ").concat(p.G));return r;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Xv:{get:function(){return 0 < this.Ya.length;},enumerable:!1,configurable:!0}});m.prototype.DMb=function(){};m.prototype.CMb=function(){};m.prototype.$k=function(){return !1;};m.prototype.Upa=function(){return 0 < this.Ya.length;};m.prototype.eu=function(){(0,g.assert)(0 < this.Ya.length,"Could not find presenting branch. Player has no branches.");return this.nB;};m.prototype.yyb=function(p){return -1 !== this.Ya.indexOf(p);};m.prototype.Ela=function(){return void 0 !== this.la?!1:!0;};m.prototype.y0=function(){};m.prototype.Ka=function(){};m.prototype.tA=function(p){var r,q,u;r=this.Ya.filter(function(v){return v.K.id === p.L;});if(0 !== r.length){q=this.$C();u=new c.I(Infinity,1);r.forEach(function(v){v=v.vw.add(p.offset);q.Iv(v).lessThan(q.Iv(u)) && (u=v);});return u;}};m.prototype.U$=function(p){var r,q,u,v,w,x,y,A,z,B;return d.__generator(this,function(C){switch(C.label){case 0:r=this.Ya.filter(function(D){return D.K.id === p.L;});if(0 === r.length)return [2,void 0];q=this.$C();C.label=1;case 1:(C.tc.push([1,6,7,8]),u=d.__values(r),v=u.next(),C.label=2);case 2:if(v.done)return [3,5];w=v.value;x=w.vw.add(p.offset);y=q.Iv(x);return [4,{xo:x,Iv:y}];case 3:(C.T(),C.label=4);case 4:return (v=u.next(),[3,2]);case 5:return [3,8];case 6:return (A=C.T(),z={error:A},[3,8]);case 7:try{v && !v.done && (B=u.return) && B.call(u);}finally{if(z)throw z.error;}return [7];case 8:return [2];}});};m.prototype.tn=function(p,r){var q,u,v;void 0 === r && (r=!1);q=this.a$(p,r);if(q){u=q.K;r=u.id;v=u.Wb;p=c.I.min(p.ea(u.ib.add(q.Kd)),v);return {L:r,offset:p};}};m.prototype.wtc=function(p){var r,q,u,v;r=this.Ya.filter(function(w){return w.K.id === p.L;});if(0 !== r.length){q=this.$C();u=new c.I(Infinity,1);r.forEach(function(w){var x;x=w.vw.add(p.offset);q.Iv(x).lessThan(q.Iv(u)) && (u=x,v=w);});return v;}};m.prototype.Jfa=function(){};m.prototype.reset=function(){this.hK();};m.prototype.C_a=function(){};m.prototype.u1=function(){};Object.defineProperties(m.prototype,{XT:{get:function(){return !1;},enumerable:!1,configurable:!0}});m.prototype.Mca=function(p){p();};m.prototype.pause=function(p){void 0 === p && (p=e.i5);this.K0=null === p || void 0 === p?void 0:p.reduce(function(r,q){-1 === r.indexOf(q) && r.push(q);return r;},this.K0);};m.prototype.resume=function(p){var r;r=this;void 0 === p && (p=e.i5);p.forEach(function(q){q=r.K0.indexOf(q);-1 !== q && r.K0.splice(q,1);});};m.prototype.N2a=function(p){var r;(0,g.assert)(this.la);(0,g.assert)(p !== this);this.dU();r=p.Ela(this.la,this);r && (p.pause(this.K0),p.UY.apply(p,d.__spreadArray([],d.__read(this.Ya),!1)),this.jOa(this.la));return r;};m.prototype.UY=function(){for(var p,r,q=[],u=0;u < arguments.length;u++)q[u]=arguments[u];try{for(var v=d.__values(q),w=v.next();!w.done;w=v.next())this.events.emit("segmentAppended",{type:"segmentAppended",L:w.value.K.id});}catch(x){p={error:x};}finally{try{w && !w.done && (r=v.return) && r.call(v);}finally{if(p)throw p.error;}}};m.prototype.$C=function(){return this.Awb();};m.prototype.Awb=function(){var p;h.l && (0,g.assert)(this.Xv,"Attempted to get initial time before any branches were queued");p=d.__read(this.Ya,1)[0];h.l && (0,g.assert)(p);return p.Sb || p.fH;};m.prototype.GZ=function(){return 1;};m.prototype.PK=function(){};m.prototype.a$=function(p,r){var q;void 0 === r && (r=!1);if(this.Xv){q=this.Awb();return p.lessThan(q)?this.Ya[0]:(0,k.Lub)(this.Ya,p) || (r?this.zk:void 0);}};m.prototype.epc=function(){var p,r,v,w,x,y,A,z;r={};try{for(var q=d.__values(this.Ya),u=q.next();!u.done;u=q.next()){v=u.value;w=void 0;x=void 0;y=v.WQ();for(w in y){A=w;z=y[A];z && (r[A]=(null !== (x=r[A]) && void 0 !== x?x:0) + z);}if(!v.lk)break;}}catch(C){var B;B={error:C};}finally{try{u && !u.done && (p=q.return) && p.call(q);}finally{if(B)throw B.error;}}return r;};d.__decorate([l.return.Vd(),l.return.JD],m.prototype,"t_",null);d.__decorate([l.return.$h()],m.prototype,"Yg",null);d.__decorate([l.return.ALa(),l.return.Zq],m.prototype,"eu",null);d.__decorate([d.__param(0,l.$h())],m.prototype,"tA",null);d.__decorate([d.__param(0,l.$h())],m.prototype,"U$",null);d.__decorate([l.return.$h(),l.return.JD],m.prototype,"tn",null);return m;})();b.xFa=a;},90111:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.xeb=void 0;d=a(90745);n=a(91176);t=a(66164);c=a(65161);a=a(85254);f=new t.platform.Console("PLAYERCLOCK");t=(function(){function g(e){this.player=e;this.HIa=!1;this.WEb=new d.gf();this.OLc();}g.prototype.OLc=function(){var e,h;e=this;h=this.WEb;h.on(this.player,"paused",function(){return e.Gta();});h.on(this.player,"playing",function(){return e.Gta(!0);});h.on(this.player,"underflow",function(){return e.Gta();});h.on(this.player,"skipped",function(){return e.JXa();});h.on(this.player,"clockAdjusted",function(){return e.wca();});h.on(this.player,"playbackRateChanged",function(){return e.yFc();});};Object.defineProperties(g.prototype,{currentTime:{get:function(){return this.pOb || this.player.Cd || n.I.ia;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{lj:{get:function(){return this.HIa;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{speed:{get:function(){var e;return null !== (e=this.player.playbackRate) && void 0 !== e?e:1;},enumerable:!1,configurable:!0}});g.prototype.Gta=function(e){void 0 === e && (e=!1);e !== this.HIa && (this.pOb=(this.HIa=e)?void 0:this.player.Cd,e?f.log("PlayerClock: Player is running",this.player.Cd):f.log("PlayerClock: Player is stopping",this.player.Cd));this.emit("stopStart",{type:"stopStart"});};g.prototype.JXa=function(){this.pOb=void 0;this.wca(c.Yw.YM);};g.prototype.wca=function(e){void 0 === e && (e=c.Yw.SF);f.log("PlayerClock: clock adjusted",{ir:this.lj,time:this.player.Cd,reason:c.Yw[e]});this.emit("clockAdjusted",{type:"clockAdjusted",reason:e});};g.prototype.yFc=function(){this.emit("speedChanged",{type:"speedChanged"});};g.prototype.Ka=function(){this.Gta();this.WEb.clear();};return g;})();b.xeb=t;(0,a.vl)(d.EventEmitter,t);},546:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperties(b,{__esModule:{value:!0}});b.Cia=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(66164);g=a(69575);e=a(48170);h=a(40666);k=c.I.Ba(1E3);t=(function(){function l(m,p,r,q,u,v,w,x,y,A){var z,B;this.sQa=m;this.fGc=p;this.rla=q;this.events=u;this.uw=v;this.SPb=x;this.priority=y;this.Uj=[];this.console=(0,g.Df)(f.platform,p,("PresentationTracker [").concat(this.sQa,"] [").concat(this.SPb,"]"));this.Ica=k.add(c.I.Ba(null !== (B=null === (z=v.DB) || void 0 === z?void 0:z.G) && void 0 !== B?B:0));e.l && this.console.debug("Constructed",{Ica:this.Ica.ca(),tTa:A});this.listeners=new n.gf();this.MYa=new n.gf();this.lI=!0;this.Dda=!A;this.fgc(w);this.NMb(r,w,q);}l.prototype.NMb=function(m,p,r){var q;q=this;this.rla=r;this.listeners.clear();this.MYa.clear();this.Fb=m;this.mc=p;this.MYa.on(m.player,"skipped",this.BFc.bind(this));this.listeners.on(r,"requestAppended",function(u){return q.xp(u.request);});this.events=m.events;this.mQ.wob(p);this.bm.wob(p);};l.prototype.fgc=function(m){var p;p=this;this.mQ=m.Xr(function(){return p.Jjc();},("Presentation Emit [").concat(this.sQa,"]"),this.priority);this.bm=m.Xr(function(){return p.uKc();},("Presentation Prune [").concat(this.sQa,"]"));};l.prototype.BFc=function(){this.trace(("skipped, scheduler clock ").concat(this.mc.Ma.currentTime.ca()));this.Dda=this.lI=!0;this.mQ.cd();};l.prototype.Jjc=function(){var m,p,r;return d.__generator(this,function(q){switch(q.label){case 0:(e.l && this.console.trace("Starting emit job",this.lI),this.oB=this.BDc(this.lI),m=this.jFb(),q.label=1);case 1:if(!m)return [3,3];this.trace(("queuing task for ").concat(this.uL(m.kt)) + (" at player time ").concat(m.timestamp.ca()) + (" scheduler clock is ").concat(this.mc.Ma.currentTime.ca()));return [4,h.$d.lm(m.timestamp)];case 2:q.T();this.trace(("executing task for ").concat(this.uL(m.kt)) + (" for player time ").concat(m.timestamp.ca()) + (", scheduler clock: ").concat(this.mc.Ma.currentTime.ca()) + (", actual player time: ").concat(this.Fb.Ld) + (", first item: ").concat(this.lI),{TBc:this.Uj.length,oB:this.oB});p=this.Dda?this.Fb.Ld:m.timestamp;r=this.lI && !this.VWa;this.VWa=this.Dda=this.lI=!1;this.mrb=m;this.oB++;this.KNa=(m=this.jFb())?m.timestamp:this.KR;try{this.ROa(this.mrb,p,r);}catch(u){this.console.error(("Error in ").concat(this.SPb," emit, continuing"),u);}p=null === m || void 0 === m?void 0:m.timestamp;return [3,1];case 3:return (e.l && this.console.trace("Ending emit job"),[2]);}});};l.prototype.MXa=function(){};l.prototype.O2a=function(){e.l && this.console.trace("Marking transfered from");this.VWa=this.lI=!0;};l.prototype.jFb=function(){if(void 0 !== this.oB)return this.Uj[this.oB];};l.prototype.BDc=function(m){var p,r,u;void 0 === m && (m=!1);for(var q=m?0:null !== (p=this.oB) && void 0 !== p?p:0;q < this.Uj.length;q++){p=this.Uj[q];u=c.I.Ba(null !== (r=this.uw.kIc) && void 0 !== r?r:0);if(p.timestamp.greaterThan(this.Fb.Ld.add(u)))return m && 0 < q?q - 1:q;}return Math.max(this.Uj.length - 1,0);};l.prototype.uKc=function(){var m,p;return d.__generator(this,function(r){switch(r.label){case 0:if(!(1 < this.Uj.length))return [3,2];m=d.__read(this.Uj,2);p=m[1];this.trace(("queuing pruning task for ").concat(this.uL(p.kt)) + (" at player time ").concat(this.Ica.add(p.timestamp).ca()) + (" scheduler clock is ").concat(this.mc.Ma.currentTime.ca()));return [4,h.$d.lm(this.Ica.add(p.timestamp))];case 1:return (r.T(),this.trace(("executing pruning task for ").concat(this.uL(p.kt)) + (" at player time ").concat(this.Ica.add(p.timestamp).ca()) + (" scheduler clock is ").concat(this.mc.Ma.currentTime.ca()),{TBc:this.Uj.length,oB:this.oB}),this.Uj.shift(),this.oB && this.oB--,[3,0]);case 2:return [2];}});};l.prototype.Rz=function(m,p,r){this.NMb(m,p,r);};l.prototype.reset=function(){this.Uj=[];e.l && this.trace("reset");this.lI=!0;this.VWa=!1;this.Dda=!0;this.KR=void 0;this.oB=0;this.bm.cd();this.mQ.cd();};l.prototype.close=function(){e.l && this.trace("close()");this.Dda=this.lI=!0;this.MYa.clear();this.mQ.Ka();this.bm.Ka();this.listeners.clear();this.Uj=[];};l.prototype.$k=function(m){var p;e.l && this.trace(("canSkip() ").concat(m));if(0 === this.Uj.length)return (e.l && this.trace("canSkip false, no media sequence"),!1);p=this.Uj[0];return p.timestamp.greaterThan(m)?(e.l && this.trace(("canSkip false, before earliest item at ").concat(p.timestamp)),!1):void 0 === this.KR || this.KR.lessThan(m)?(e.l && this.trace(("canSkip false, later than last appended at ").concat(this.KR)),!1):!0;};l.prototype.trace=function(m){for(var p,r=[],q=1;q < arguments.length;q++)r[q - 1]=arguments[q];e.l && (p=this.console).trace.apply(p,d.__spreadArray([m],d.__read(r),!1));};l.prototype.sKa=function(m,p,r){var q,u;q=this;r && (this.KR=r);u=this.Uj.length?this.Uj[this.Uj.length - 1]:void 0;if(void 0 === u || !this.Yqa(u.kt,m))return (this.Uj.push({kt:m,timestamp:p}),e.l && this.console.log(("Added ").concat(this.uL(m)," to media sequence at"),{tad:this.Uj.length,Sdd:this.Uj.slice(0,3).map(function(v){return q.uL(v.kt);}),n7c:this.mQ.state,Zbd:this.bm.state}),this.mQ.state === h.ym.complete && this.mQ.cd(),this.bm.state === h.ym.complete && this.bm.cd(),!0);u === this.mrb && (this.KNa=r);return !1;};l.prototype.Yqa=function(m,p){return m === p;};l.prototype.Rbc=function(m){this.trace("Item cloned");m.Uj=d.__spreadArray([],d.__read(this.Uj),!1);m.KR=this.KR;};l.prototype.F$=function(){var m,p,r,v;if(this.Fb.Vd){p=this.Fb.Ld;r=void 0;try{for(var q=d.__values(this.Uj),u=q.next();!u.done;u=q.next()){v=u.value;if(v.timestamp.ln(p))r=v;else break;}}catch(x){var w;w={error:x};}finally{try{u && !u.done && (m=q.return) && m.call(q);}finally{if(w)throw w.error;}}return null === r || void 0 === r?void 0:r.kt;}};return l;})();b.Cia=t;},55024:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.dfb=void 0;d=a(22970);n=a(91176);c=a(65161);f=a(6832);g=a(36640);t=(function(){function e(h,k,l,m,p,r,q,u){this.mediaType=h;this.console=k;this.Fb=l;this.rla=m;this.Zt=p;this.uw=r;this.mc=q;this.FJ=[];this.mediaType === c.u.U && this.FJ.push(new g.qgb(h,k,l,m,p,r,q,u,2));this.FJ.push(new f.lja(h,k,l,m,p,r,q,1,null === u || void 0 === u?void 0:u.tTa()));}e.prototype.Rz=function(h,k,l){this.Fb=h;this.mc=k;this.rla=l;this.vE.forEach(function(m){return m.Rz(h,k,l);});};e.prototype.k6b=function(h){this.FJ.push(h);};e.prototype.gZ=function(h){return (0,n.cc)(this.FJ,function(k){return k instanceof h;});};e.prototype.reset=function(){this.FJ.forEach(function(h){return h.reset();});};e.prototype.close=function(){this.FJ.forEach(function(h){return h.close();});};e.prototype.$k=function(h){return d.__read(this.FJ,1)[0].$k(h);};Object.defineProperties(e.prototype,{vE:{get:function(){return this.FJ;},enumerable:!1,configurable:!0}});e.prototype.MXa=function(){this.vE.forEach(function(h){return h.MXa();});};e.prototype.O2a=function(h){this.vE.forEach(function(k,l){var m;l=null === h || void 0 === h?void 0:h.vE[l];null === (m=k.O2a) || void 0 === m?void 0:m.call(k,l);});};return e;})();b.dfb=t;},36640:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.qgb=void 0;d=a(22970);n=a(91176);c=a(48170);f=a(52571);g=0;t=(function(e){function h(k,l,m,p,r,q,u,v,w){k=e.call(this,("segment").concat(g++,"-").concat(k),l,m,p,r,q,u,"segment",w,null === v || void 0 === v?void 0:v.tTa()) || this;k.Rp=v;return k;}d.__extends(h,e);h.prototype.xp=function(k){var l,m,p,r,q,u,v,w,x,y,A,z,B;v=k.Sb;w=k.Ob;x=k.qa;y=k.ta;A=k.bitrate;z=k.Pb;(0,f.assert)(void 0 !== v);B=null === (l=this.Fb.tn(v)) || void 0 === l?void 0:l.L;(0,f.assert)(B,"missing segment id");k={L:B,Uub:k.bn,qa:x,ta:y,LRb:A,KU:k.stream.Sa,Pb:z,xJc:null === (m=this.u_) || void 0 === m?void 0:m.LRb,zJc:null === (p=this.u_) || void 0 === p?void 0:p.Pb,yJc:null === (r=this.u_) || void 0 === r?void 0:r.KU,tJc:null === (q=this.u_) || void 0 === q?void 0:q.ta,Xd:null === (u=k.stream.M.S) || void 0 === u?void 0:u.Xd};c.l && this.console.log("segmentTracker: mediaAppended",{item:k});this.u_=k;this.sKa(k,v,w) && c.l && this.trace(("segment ").concat(B," @ ").concat(v.G,"ms"),k);};h.prototype.Yqa=function(k,l){return k.L === l.L && !l.Uub;};h.prototype.ROa=function(k,l,m){var p,r,q,u,v,w,x,y,A,z,B;p=k.kt;r=p.L;q=p.LRb;u=p.xJc;v=p.Pb;w=p.zJc;x=p.yJc;y=p.KU;A=p.qa;p=p.tJc;z=this.Fb.tn(l);B=z?this.Fb.wtc(z):void 0;(0,f.assert)(void 0 !== z,"segmentTracker::emitPresentingEvent: position should be defined");c.l && this.trace(("emitSegmentPresentingEvent @ ").concat(k.timestamp.G,"ms for segment ").concat(r));z.L !== r && (c.l && this.console.warn("player position:",z,"not equal to trackedElement:",r),z={L:r,offset:n.I.ia});k={type:"segmentPresenting",playerTimestamp:l,position:z,seek:m,playbackContextId:k.kt.Xd,branchId:null === B || void 0 === B?void 0:B.tX};if(this.Rp){if(r=this.Rp.ARa(r))(r.destvbitrate=q,r.destvmaf=v,r.destVdlid=y,r.srcvbitrate=u,r.srcvmaf=w,r.srcVdlid=x,r.srcMoffms=null === p || void 0 === p?void 0:p.G,r.destMoffms=A.G);k.metrics=r;}c.l && this.trace(("segmentPresenting: ").concat(JSON.stringify(k)));this.events.emit(k.type,k);};h.prototype.reset=function(){e.prototype.reset.call(this);this.u_=void 0;};h.prototype.close=function(){e.prototype.close.call(this);this.u_=void 0;};h.prototype.uL=function(k){return ("").concat(k.L," seqFirst:").concat(k.Uub);};return h;})(a(546).Cia);b.qgb=t;},6832:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.lja=void 0;d=a(22970);n=a(97685);c=a(26388);f=a(48170);g=a(52571);e=0;t=(function(h){function k(l,m,p,r,q,u,v,w,x){return h.call(this,("stream").concat(e++,"-").concat(l),m,p,r,q,u,v,"stream",w,x) || this;}d.__extends(k,h);k.prototype.xp=function(l){var m,p,r;m=l.stream;p=l.Sb;r=l.Ob;l=l.qa;(0,g.assert)(void 0 !== p,"playerStartTimestamp undefined at media append");(0,g.assert)(void 0 !== l,"contentStartTimestamp undefined at media append");this.sKa({stream:m,qa:l},p,r) && f.l && this.trace(("stream ").concat(m.id,", ").concat(m.bitrate,"kbit/s @ ").concat(p.G,"ms"));};k.prototype.Yqa=function(l,m){return l.stream === m.stream;};k.prototype.ROa=function(l,m){var p,r,q,u,v,w,x,y;u=l.kt.stream;v=this.Fb.tn(m);(0,g.assert)(void 0 !== v);f.l && this.trace(("emitStreamPresentingEvent @ ").concat(l.timestamp.G,"ms for ").concat(null === u || void 0 === u?void 0:u.id,", ") + ("").concat(null === u || void 0 === u?void 0:u.bitrate,"kbit/s"));this.events.emit("streamPresenting",{type:"streamPresenting",mediaType:u.mediaType,playerTimestamp:m,position:v,trackIndex:null === (p=null === u || void 0 === u?void 0:u.track) || void 0 === p?void 0:p.KJ,streamIndex:null === u || void 0 === u?void 0:u.Iw,stream:u,manifest:null === (r=u.M) || void 0 === r?void 0:r.S,contentStartTimestamp:l.kt.qa});if(f.l && u)if((l=u.un,u.mediaType === c.u.U)){m=u.track;p=u.Ab;r=u.Uc;w=u.CT;x=u.G_a;y=u.Pb;v=u.location;u=u.bitrate;n.IR.log({un:l,type:"STREAM_RENDER",mediaType:"VIDEO",bitrate:(0,n.vL)(u),Th:null !== (q=null === p || void 0 === p?void 0:p.toString()) && void 0 !== q?q:n.yh,Xc:r,framerate:m.frameRate?m.frameRate.ty / m.frameRate.Hv:-1,height:null !== w && void 0 !== w?w:-1,width:null !== x && void 0 !== x?x:-1,WR:null !== v && void 0 !== v?v:n.yh,Pb:null !== y && void 0 !== y?y:-1});}else u.mediaType === c.u.X && (m=u.track,p=u.Ab,r=u.Uc,v=u.location,u=u.bitrate,n.IR.log({un:l,type:"STREAM_RENDER",mediaType:"AUDIO",bitrate:(0,n.vL)(u),Th:null !== (w=null === p || void 0 === p?void 0:p.toString()) && void 0 !== w?w:n.yh,Xc:r,WR:null !== v && void 0 !== v?v:n.yh,channels:null !== (x=m.channels) && void 0 !== x?x:n.yh,language:n.yh}));};k.prototype.uL=function(l){return ("").concat(l.stream.Sa,"@").concat(l.qa.ca());};return k;})(a(546).Cia);b.lja=t;},16290:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.jHa=void 0;d=a(79048);n=a(91176);c=a(66164);f=a(65161);t=(function(){function g(e,h){this.console=e;this.Z=h;}g.prototype.Kwa=function(e,h,k,l,m,p,r){var q,u;void 0 === m && (m=!1);void 0 === p && (p=void 0);void 0 === r && (r=!1);q=e.K;u=this.Uoc(q);this.transition={startTime:c.platform.time.ha(),LRc:e,KRc:k.G,Ena:h,Yd:this.xqc(l,h,r),JUc:this.Xsc(l,m),YKc:p,Bhc:m,ef:l,ibc:u,vDc:this.brc(q,k)};};g.prototype.tTa=function(){return !!this.transition;};Object.defineProperties(g.prototype,{Ena:{get:function(){var e;return null === (e=this.transition) || void 0 === e?void 0:e.Ena;},enumerable:!1,configurable:!0}});g.prototype.ARa=function(e){var h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J;if(this.transition && e === this.transition.Ena){v=this.transition;w=v.ibc;x=v.vDc;y=v.Bhc;A=v.ef;z=v.LRc;B=v.KRc;C=v.startTime;D=v.Yd;F=v.JUc;v=v.YKc;this.transition=void 0;H=this.IQa(e).ELa;E=this.soc(z.K.id,e,w);H=this.eDb(E.weight,H);G={};for(J in w)J !== e && (G[J]=w[J].details);w=c.platform.time.ha() - C;C=A?0:w;J={offset:this.wsc(z,B,A,y),L:z.K.id};B={offset:n.I.Ba(B),L:z.K.id};x={segment:e,destPosition:{L:e,offset:n.I.ia},srcsegment:z.K.id,srcTransitionPosition:J,srcStartPosition:B,srcsegmentduration:z.Bfa.G,srcoffset:J.offset.G,seamlessRequested:this.AUa(A,y),atRequest:E,atTransition:H,discard:G,transitionType:D,transitionTypeAtRequest:F,delayToTransition:this.lpc(w,A,y),durationOfTransition:C,nextExitPositionAtRequest:x};v && (x.reasonCodes=v);y=null !== (k=null === (h=this.Z.Z.ba[e]) || void 0 === h?void 0:h.type) && void 0 !== k?k:d.Gd.content;h=null !== (m=null === (l=this.Z.Z.ba[z.K.id]) || void 0 === l?void 0:l.type) && void 0 !== m?m:d.Gd.content;e=null !== (r=null === (p=this.Z.Z.ba[e]) || void 0 === p?void 0:p.J) && void 0 !== r?r:void 0;p=null !== (u=null === (q=this.Z.Z.ba[z.K.id]) || void 0 === q?void 0:q.J) && void 0 !== u?u:void 0;e && p && (e !== p || -1 < [y,h].indexOf("adBreak") || -1 < [y,h].indexOf("ad")) && (x.auxMidType=y,x.auxSrcmidType=h,x.auxMid=e,x.auxSrcmid=p);return x;}};g.prototype.soc=function(e,h,k){var l,m,p,r;p={};k=k[h];r=this.Z.Z.ba[e];if(k)p=k.details;else {(0,n.assert)(this.Z);if(!r)return p;p.weight=null === (m=null === (l=this.Z.Z.ba[e].next) || void 0 === l?void 0:l[h]) || void 0 === m?void 0:m.weight;}return p;};g.prototype.lpc=function(e,h,k){var l;k || (l=h?e:0);return l;};g.prototype.brc=function(e,h){var k,l,m;l=e.ib.add(h);null === (k=e.Dy) || void 0 === k?void 0:k.some(function(p){l.lessThan(p.qa) && (m=p.qa.G);});return m;};g.prototype.wsc=function(e,h,k,l){return this.AUa(k,l)?e.Bfa:n.I.Ba(h);};g.prototype.xqc=function(e,h,k){return e?"perfect":k?"long":this.IQa(h).zyb?"reset":"long";};g.prototype.AUa=function(e,h){return e || h;};g.prototype.Xsc=function(e,h){return this.AUa(e,h)?"lazy":"immediate";};g.prototype.Uoc=function(e){var h,k;h=this;k={};e.aB.forEach(function(l){var m,p;m=e.EDc[l];p=h.IQa(l).ELa;k[l]={details:h.eDb(m,p)};});return k;};g.prototype.IQa=function(e){var h,k;e=this.Z.tZ(e);h=0 < e.length?e[0]:void 0;e=null === h || void 0 === h?void 0:h.WQ();if(!h || !e)return {zyb:!1,ELa:{JU:0,uP:0,xN:0,LJ:0}};k=h.Spa(f.u.X) && !e.uP;h=h.Spa(f.u.U) && !e.JU;return {zyb:!k && !h,ELa:e};};g.prototype.eDb=function(e,h){return {weight:e,vbuflmsec:h.JU,abuflmsec:h.uP,vbuflbytes:h.xN,abuflbytes:h.LJ};};return g;})();b.jHa=t;},62819:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha,S,N,V,ba,fa,ia,ka,pa,oa;function d(la){var R;R={};la.forEach(function(ea){ea.mediaType !== r.u.Ca && (R[ea.mediaType]=ea.ks());});if(!(1 > Object.keys(R).length))return R;}Object.defineProperties(b,{__esModule:{value:!0}});b.cza=void 0;n=a(22970);c=a(90745);f=a(79048);g=a(91176);e=a(91176);h=a(66164);k=a(79048);l=a(91176);a(97685);m=a(16816);p=a(20271);r=a(65161);q=a(26286);u=a(70842);v=a(31485);w=a(52571);x=a(61651);y=a(40666);A=a(63576);z=a(91967);B=a(5653);C=a(17122);D=a(54366);F=a(63172);H=a(13580);E=a(61996);G=n.__importDefault(a(40497));J=a(46759);L=a(60028);K=a(73036);M=a(69575);P=a(6783);I=a(99548);O=a(8149);Q=a(29739);T=a(66412);U=a(94328);X=a(28696);Y=a(19455);W=a(25317);Z=a(86451);aa=a(88874);ca=a(25510);da=a(78538);ha=a(36472);S=a(54775);N=a(4489);V=a(35879);ba=a(56879);fa=a(86048);ia=a(70494);ka=a(31509);t=a(75393);pa=a(46262);oa=t.RD.WNa;a=(function(){function la(R,ea,ja,sa,ta,qa,Aa,Ga,na,va){this.Ykb=ea;this.config=ja;this.id=sa;this.nv=qa;this.al=Aa;this.ubc=Ga;this.Ur=va;this.mIa=!1;this.sF=void 0;this.oPa=[];this.tC=void 0;this.yHb=!1;this.Vh=this.Da=void 0;this.$6b="2.0";this.Fzb=this.yJa=this.ov=void 0;this.$a=p.qt.CLOSED;this.vIa=!0;this.t7=!1;this.JB=this.jr=this.Kt=void 0;this.Inb=new c.gf();this.$Ua={};this.xK=0;this.Ywa=!1;this.Fvc();this.console=new h.platform.Console("ASEJS_PLAYGRAPH","asejs",("").concat(this.id));this.pe=new E.zm({xg:10,qj:this,source:"AsePlaygraph",console:this.console});this.events=new c.EventEmitter();this.Pr=f.rF.create(R);this.PMb(this.Pr);this.Ya=new aa.Feb();this.Wh=new ia.Geb(this.console);this.Kyc=new X.f9a(this.config,g.I.Ba(this.config.xH),{parent:function(xa){return xa.FZ();},next:this.gxb.bind(this)},this.events,this.console);this.$xc=new Y.e9a(this.config,g.I.Ba(this.config.xH),{parent:function(xa){return xa.FZ();},next:this.gxb.bind(this)},this.events,this.console);this.Q1a=new v.Wgb(this.console,this.events);this.R7={bH:ja.eS || Infinity};this.player=new x.xia(this);this.gd=new y.mJ(this.player.Ma,this.console,"playgraph",1);this.Kvc();this.bg=new ca.n6a(this.console,ja,ta,this.events,this.uta.bind(this),this.id,this.Aj);this.EC=new S.e6a(this.gd,this.Aj,this.config,this.Bn.bind(this),this.ie,this.console,this);this.vta=this.bg.vta.bind(this.bg);this.w0=this.bg.w0.bind(this.bg);this.Hta=this.bg.Hta.bind(this.bg);this.kta=this.kta.bind(this);this.ata=this.ata.bind(this);this.gta=this.gta.bind(this);this.hta=this.hta.bind(this);this.ita=this.ita.bind(this);this.PM=this.PM.bind(this);this.Xe=new z.Ria(ja,this.console);this.Cvc();this.Xe.Sc(new D.On(this.bg.pe));this.Xe.Sc(new F.ceb(this.nxb.bind(this)));this.Xe.Sc(new H.x8a(this.nxb.bind(this)));this.Xe.Sc(new D.On(this.pe));this.Xe.Sc(new J.Eeb(this.Ya,this));this.Xe.Sc(new K.lhb(this.gd));this.Yxa=new Q.eGa("viewables");this.Xe.Sc(this.Yxa);this.BOb=new fa.Vgb(this,this.console,na);this.z_=new L.Zab(this.Aj,this.console,this.events);this.nq=new ka.Heb(this.YZa.bind(this));this.T0a((0,A.z8)(),(0,A.A8)(this.console,this.config));}Object.defineProperties(la.prototype,{parent:{get:function(){return this.tC;},set:function(R){this.tC=R;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{state:{get:function(){return this.$a;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{lo:{get:function(){return !(this.player instanceof x.xia);},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{Cc:{get:function(){return this.sF;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{Wi:{get:function(){var R;return null === (R=this.sF) || void 0 === R?void 0:R.Wi;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{Jb:{get:function(){return this.Pr;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{wR:{get:function(){return this;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{Z:{get:function(){return this.Pr.Z;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{weight:{get:function(){return this.Ykb;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{gm:{get:function(){(0,w.assert)(this.Sx,"AsePlaygraph.seekPosition accessed before seekStreaming");return this.ov.position;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{uOc:{get:function(){(0,w.assert)(this.Sx,"AsePlaygraph.seekTimestamp accessed before seekStreaming");return this.ns(this.gm).Pa;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{ie:{get:function(){return this.bg.state;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{no:{get:function(){return this.bg.no;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{Sx:{get:function(){return void 0 !== this.ov;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{Yg:{get:function(){return this.player.Vd?this.player.Yg:this.gm;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{Ld:{get:function(){return this.player.Vd?this.player.Ld:this.uOc;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{x8b:{get:function(){return this.K1b;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{Wxa:{get:function(){return this.Q4b;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{aI:{get:function(){return this.nv;},enumerable:!1,configurable:!0}});Object.defineProperties(la.prototype,{HSa:{get:function(){return this.wea()?this.$xc:this.Kyc;},enumerable:!1,configurable:!0}});la.prototype.Kvc=function(){this.Aj=new y.mJ(new C.hja({lj:!0,currentTime:function(){return g.I.Ba(h.platform.time.ha());},speed:1}),this.console,"wallclock");};la.prototype.Cvc=function(){var R;R=this;(0,ba.Jec)({bg:this.bg,Aj:this.Aj},y.$d.bz(g.I.Ba(this.config.U0)),function(){R.player.Vd && R.player.nB && (R.bg.state.value === r.Rd.wm || R.bg.state.value === r.Rd.Pf) && R.ekb(R.player.nB);},"buffering");};la.prototype.Fvc=function(){var R;R=this;this.cB=function(ea){var ja,sa,ta,qa;sa=R.Jb.get(ea.position.L);(0,w.assert)(sa,"segment must exsts in workingPlaygraph");ta=R.ERa(sa);if(ta && R.player.Vd){qa=(0,M.Lub)(R.player.Ya.filter(function(Aa){return Aa.K.id === ea.position.L;}),ea.playerTimestamp,{Bpb:!0});qa && (null === (ja=R.player.Rp) || void 0 === ja?void 0:ja.Kwa({K:sa,get Bfa() {return qa.ta.ea(sa.ib);}},ta,R.Yg.offset,!0,!1,void 0));}R.nq.start();};this.m0=function(){R.al("onDrmReady");};this.oGb=function(ea){ea=ea.newValue;R.mIa || (R.mIa=ea);};this.qFc=function(){R.al("mediaEventsProgress");};};la.prototype.open=function(){this.vIa=!0;this.events.emit("opening",{type:"opening"});this.events.emit("openComplete",{type:"openComplete"});if(this.$a !== p.qt.CLOSED)return !1;this.$a=p.qt.OPEN;return !0;};la.prototype.Ka=function(){var R;this.Aj.Ka();this.gd.Ka();this.$a !== p.qt.CLOSED && (this.Jg(m.RN.rna),this.nq.Ka(),this.$a=p.qt.CLOSED,this.lo || this.player.Ka(),this.z_.Ka(),null === (R=this.Cc) || void 0 === R?void 0:R.Ka());};la.prototype.Jac=function(R,ea,ja){R=(0,da.Ctb)(this.Ya,this.PM.bind(this),R,ea,ja).xob;return this.job(R);};la.prototype.Ny=function(R,ea,ja){var sa,ta,qa,Aa,Ga,na,va;sa=this;ta=this.Kt;qa=this.jr;Aa=this.JB;this.Kt=R;this.jr=ea;this.JB=ja;ea=(0,da.Ctb)(this.Ya,this.PM.bind(this));Ga=ea.xob;R=ea.v9b;ea=ea.P6b;if(0 === Ga.length)return !0;if(!this.job(Ga))return (this.Kt=ta,this.jr=qa,this.JB=Aa,!1);na=this.Yg;this.player.u1(Ga);this.player.Jfa(ea);va=this.ns(na).Pa;R.forEach(function(xa){var ra,ya,Ca;ra=xa.oa;ya=xa.ka;Ca=na.L === ra.K.id?va:void 0;xa=sa.Ya.tpa(ra);ra.Ny(ya,Ca,void 0 !== xa,Ga);ra.Wl && (ya=ra.M,ra.K.type === f.Gd.padding && (ya={ML:[0,0]}),sa.nq.state === ka.YI.BO && sa.XIa(ra,ya,!xa,ra.M.S));});this.bg.UFc(na,R[0].ka);return !0;};la.prototype.z8=function(R){return (0,A.z8)(this.config,R);};la.prototype.A8=function(R){return (0,A.A8)(this.console,this.config,R);};la.prototype.y$=function(R,ea){var ja,sa,ta;ja=this.Jb.get(R);sa=this.Jb.get(ea);(0,w.assert)(ja,"currentSement must exist in workingPlaygraph");(0,w.assert)(sa,"currentSement must exist in workingPlaygraph");ta=this.ERa(ja);return {KWc:ja.luc(ea),S7:ea !== R && this.Ya.has(ea) && this.Ya.dn(ea)[0].Uf,Kma:sa.ib.G,PWa:ta};};la.prototype.Bn=function(R,ea,ja,sa){var ta,qa,Aa,Ga,na,va,xa;ta=this;void 0 === sa && (sa=!0);if(!ea)throw Error("AsePlaygraph.setNextSegment - nextSegmentId undefined - not implemented");if(sa && this.Wh.get(R))ja || this.Wh.set(R,ea);else {na=this.tZ(R)[0];va=this.Jb.get(R);(0,w.assert)(va,"currentSegment must exist in workingPlaygraph");xa=1 === va.rE && 0 === (null !== (Aa=null === (qa=va.Ul) || void 0 === qa?void 0:qa.length) && void 0 !== Aa?Aa:0) && va.aB[0] === ea;this.Yg.L !== R || !na || xa && ja || (null === (Ga=this.player.Rp) || void 0 === Ga?void 0:Ga.Kwa({K:na.K,get Bfa() {return na.ta.ea(na.K.ib);}},ea,this.Yg.offset,sa,ja,void 0));sa || (R={offset:g.I.ia,L:ea},this.ov={position:R,Uf:!0,BQb:R});ja?this.Wh.yPc(va.id,ea):this.Wh.set(va.id,ea);this.nq.start();sa && va.Dy && 0 < va.Dy.length && ((0,w.assert)(na),na.xxa(va.Dy) && this.tZ(ea).forEach(function(ra){return ta.Mw(na,ra);}));sa || this.bg.t0(this.gm);}};la.prototype.job=function(R){var ea,ja;if(0 === R.length)return !0;if(this.player.XT && this.player.JR.value.ea(this.player.Ld).lessThan(g.I.Ba(5E3)))return !1;R=this.player.Ya;if(!R.length)return !0;ja=null === (ea=R[0]) || void 0 === ea?void 0:ea.M.J;return !R.some(function(sa){return sa.M.J !== ja;});};la.prototype.Mw=function(R,ea){R=R.Ob.ea(ea.K.ib);ea.Mw(R,"from playgraph");this.KQb(ea);};la.prototype.KQb=function(R){var ea;ea=this;this.Ya.Voc(R).forEach(function(ja){return ea.Mw(R,ja);});};la.prototype.wl=function(R){var ea;ea=this;Object.keys(R).forEach(function(ja){return ea.Jb.wl(ja,R[ja]);});this.nq.start();};la.prototype.T0a=function(R,ea){this.K1b=R;this.Q4b=ea;this.state === p.qt.$p && this.al("setStreamFilters");};la.prototype.D5b=function(R){(0,w.assert)(-1 === this.oPa.indexOf(R),"Attempted to add the same evaluation hook twice");this.oPa.push(R);};la.prototype.eQc=function(R){return this.nv.qMc(R);};la.prototype.LM=function(R){this.Yva(R);};la.prototype.Yva=function(R,ea){var ja,sa,ta,qa,Aa,Ga,na,va;ta=this.Z;qa=(0,U.OWc)(ta,R);if(qa.m_){Aa=(0,U.yLb)(ta,R);if(void 0 === Aa){Ga=("Invalid seekPosition after sanitization to ").concat(R.L) + ("(").concat(R.offset.G,"ms)") + (", reason: ").concat(qa.reason);this.Vf({Ti:Ga,J:null === (ja=ta.ba[R.L]) || void 0 === ja?void 0:ja.J});}else if(void 0 === this.Kt || void 0 === this.jr)this.Vf({Ti:"No track selectors available"});else if((ja=!(this.lo && this.player.Xv) && (0,U.FSa)(null === (sa=this.ov) || void 0 === sa?void 0:sa.BQb,Aa),this.events.emit("seeking",{type:"seeking",position:R,duplicate:ja}),!ja)){this.yJa=ea;this.Sx?(this.L2a(Aa),this.$ob(R)):this.Ya.empty && ea && (ea=this.player.PK()) && (this.L2a(Aa,{L:ea.K.id,offset:ea.Kd}),this.$ob(R));ea=this.qRa();try{na=ta.ba[Aa.L].J;va=this.Qx().filter(function(xa){return xa.J === na;})[0];this.Jg(m.RN.nBb);this.zbc();this.ov={position:Aa,BQb:Aa,Uf:!1};this.Fzb=g.I.ia;this.bg.t0();null === (Ga=this.Cc) || void 0 === Ga?void 0:Ga.Wi.t0(va,Aa);this.$a=p.qt.$p;this.nq.start();}finally{this.events.emit("seeked",{type:"seeked",position:R});ea.release();}}}else (Ga=("Invalid seekPosition to ").concat(null === R || void 0 === R?void 0:R.L) + ("(").concat(R.offset.G,"ms)") + (", reason: ").concat(qa.reason),this.Vf({Ti:Ga,J:null === (Aa=ta.ba[R.L]) || void 0 === Aa?void 0:Aa.J}));};la.prototype.L2a=function(R,ea,ja,sa,ta){var qa,Aa;void 0 === ja && (ja=!1);void 0 === ta && (ta=!1);Aa=this.Jb.get((null === ea || void 0 === ea?void 0:ea.L) || this.Yg.L);(0,w.assert)(Aa,"currentSegment must exist in workingPlaygraph");null === (qa=this.player.Rp) || void 0 === qa?void 0:qa.Kwa({K:Aa,Bfa:Aa.Wb},R.L,ea?ea.offset:this.Yg.offset,!1,ja,sa,ta);};la.prototype.$ob=function(R){var ea,ja;if((null === (ea=this.player.PK()) || void 0 === ea?void 0:ea.K.id) === R.L){if((this.Wh.Cbc(R.L),!this.Wh.get(R.L) && this.player.Xv)){R=this.player.Ya;ja=this.player.PK();ja && (R=(0,e.cc)(R,function(sa){return sa.parent === ja;})) && this.Wh.set(ja.K.id,null === R || void 0 === R?void 0:R.K.id);}}else this.Wh.vMa();};la.prototype.qRa=function(){var R,ea;R=this;ea=this.Ya.filter(function(ja){return ja.K.J !== f.vr && !ja.Ryb;}).map(function(ja){var sa;if(R.nv.Wpa(ja.K.J)){sa=R.i$(ja.K.id,ja.K.J);return R.nv.Ps(ja.K.J,sa).jl;}}).filter(g.$c);return new l.DV({name:"playgraphLeases",yca:function(){ea.forEach(function(ja){return ja.release();});},console:this.console}).Oz();};la.prototype.Jg=function(R){var ea,ja,sa;void 0 === R && (R=m.RN.rna);this.events.emit("cancelingStreaming",{type:"cancelingStreaming",reason:R});this.bg.stop();sa=this.Qx();this.Ya.reset();if(R === m.RN.rna && (this.Wh.vMa(),sa.length))try{for(var ta=n.__values(sa),qa=ta.next();!qa.done;qa=ta.next())qa.value.$Jb();}catch(Ga){var Aa;Aa={error:Ga};}finally{try{qa && !qa.done && (ea=ta.return) && ea.call(ta);}finally{if(Aa)throw Aa.error;}}this.gd.cd();this.player.reset();this.ov=void 0;this.EC.reset();null === (ja=this.Inb) || void 0 === ja?void 0:ja.clear();this.$a === p.qt.$p && (this.$a=p.qt.OPEN);this.events.emit("cancelStreaming",{type:"cancelStreaming",reason:R});};la.prototype.tZ=function(R){return this.Ya.dn(R);};la.prototype.ml=function(R){this.bg.ml(R);(0,w.assert)(this.player.zk,"Must have an appended branch on underflow");this.player.Amb && this.bg.no && (this.console.trace("End of stream flagged implying branch completion, declaring buffering complete"),R=this.en(this.Ld),this.bg.Pm("complete",R.y2,R.z2));this.EC.xU(this.player.zk,this.Ld,!0);this.al("onUnderflow");this.events.emit("underflow");};la.prototype.Sc=function(R){this.Xe.Sc(R);};la.prototype.jPc=function(R){(0,w.assert)(!this.Cc,"AdManager already set");this.sF=R;this.sF.Wi.events.addListener("mediaEventsProgress",this.qFc);};la.prototype.Rz=function(R){this.Sc(new B.Ffb(R));this.bg.AFc();return this.Ymb(R);};la.prototype.Ymb=function(R){var ea;ea=this.player;if(!this.player.N2a(R))return (this.Vf({Ti:"player in use"}),!1);this.player=R;this.gd.Ala(this.player.Ma);this.player.events.on("segmentPresenting",this.cB);this.player.events.on("drmReady",this.m0);this.player.xp.addListener(this.oGb);R=this.esc();0 < R.length && this.player.Jfa(R);this.events.emit("playerChanged",{type:"playerChanged",old:ea,"new":this.player});return !0;};la.prototype.$hc=function(){this.lo && (this.player.events.$l("segmentPresenting",this.cB),this.player.events.$l("drmReady",this.m0),this.player.xp.removeListener(this.oGb),this.Ymb(new x.xia(void 0)));};la.prototype.ns=function(R){var ea,ja;ea=R.offset;ja=this.Jb.get(R.L);(0,w.assert)(ja,"segment must exist in workingPlaygraph");R=ja.J;ea=ja.ib.add(ea);return {J:R,Pa:ea};};la.prototype.tn=function(R,ea){var ja;ja=this.player.tn(R);if(void 0 !== ja)return ja;ja=this.player.zk;return (0,U.tn)(R,{la:this,Mvc:ja && ({id:ja.K.id,EOc:ja.vw})},ea);};la.prototype.tA=function(R,ea){void 0 === ea && (ea=!1);R=this.U$(R,ea).next();if(!R.done)return (R=R.value,null === R || void 0 === R?void 0:R.xo);};la.prototype.U$=function(R,ea){var ja,sa,ta,qa,Aa,Ga,na,va,xa,ra,ya,Ca,Ja,Ka;void 0 === ea && (ea=!1);return n.__generator(this,function(La){switch(La.label){case 0:(ja=this.player.U$(R),sa=ja.next(),La.label=1);case 1:return sa.done?[3,3]:[4,sa.value];case 2:return (La.T(),sa=ja.next(),[3,1]);case 3:if(!ea)return [2];ta={};qa=this.Yg;this.lo && this.player.Vd && (na=this.player.zk) && (Ga=this.Jb.get(na.K.id)) && (qa={offset:g.I.ia,L:na.K.id},Aa=na.Ob.ea(this.player.Ld));Aa || (Ga=this.Jb.get(qa.L),(0,w.assert)(Ga,("currentSegment ").concat(qa.toString()," must exist in workingPlaygraph")),Aa=Ga.ib.add(qa.offset).ea(Ga.Yb));(0,w.assert)(Ga,"Current segment should be defined by here");va=this.Ld;if(Ga.Gc && Ga.id !== R.L)return [3,6];if(Ga.id !== R.L)return [3,5];xa=R.offset.ea(qa.offset);return [4,{Iv:xa,xo:va.add(xa)}];case 4:(La.T(),La.label=5);case 5:return [2];case 6:(ra=this.Jb.get(Ga.Gc),(0,w.assert)(ra,("currentSegment.defaultNext must exist in workingPlaygraph ").concat(Ga.Gc," from ").concat(R.L)),ya=this.Jb,Ca=this.Jb.jBb(function(Oa,Na){Oa=ya.get(Na);(0,w.assert)(Oa,"nextSegment must exist in workingPlaygraph");return Oa.Gc;},ra.id),Ja=Ca.next(),La.label=7);case 7:if(Ja.done)return [3,11];Ka=Ja.value;if(ta[Ka.id])return [3,11];ta[Ka.id]=!0;if(Ka.id !== R.L)return [3,9];xa=R.offset.add(Aa);return [4,{Iv:xa,xo:va.add(xa)}];case 8:return (La.T(),[2]);case 9:(Aa=Aa.add(Ka.Wb),La.label=10);case 10:return (Ja=Ca.next(),[3,7]);case 11:return [2];}});};la.prototype.BLb=function(R){return (0,U.yLb)(this.Z,R);};la.prototype.Vr=function(R){return (0,P.Vr)(this.Z,R.J,R.Pa);};la.prototype.Dub=function(R){var ea,ja,sa,ta;ea=this.Yg;if(this.Z.ba[ea.L].J === R)return ea;if(this.player.Vd){ja=this.player.Ya;sa=ja.indexOf(this.player.nB);if(-1 !== sa)for(;sa < ja.length;sa++){ta=ja[sa];if(ta.K.J === R)return {L:ta.K.id,offset:ta.qa};}}for(ea=this.player.zk?{L:this.player.zk.K.id,offset:this.player.zk.qa}:ea;;){ja=this.Z.ba[ea.L];if(ja.J === R)return ea;if(ja.Gc)ea={L:ja.Gc,offset:g.I.ia};else break;}};la.prototype.Mx=function(R,ea){var ja,sa,ta,qa;void 0 === ea && (ea={imb:!1});if(R.J !== f.vr){ta=this.Vr(R);ta=this.i$(null === ta || void 0 === ta?void 0:ta.L,R.J);ta=this.nv.Ps(R.J,ta);try{qa=R.Pa;(null === (ja=ta.M) || void 0 === ja?0:ja.Eb) && !ea.imb && (qa=(0,I.Rva)(this.console,ta.M.fo(),ta.M,qa));if(void 0 === this.jr)this.Vf({Ti:"No track selectors available"});else return null === (sa=ta.M) || void 0 === sa?void 0:sa.Mx(this.config,qa,this.jr);}catch(Aa){this.console.error(Aa,Aa.stack);}finally{ta.jl.release();}}};la.prototype.Jub=function(R){var ea;ea=this.Mx(R);if(ea)return n.__assign(n.__assign({},R),{Pa:ea.qa});};la.prototype.opa=function(){return (0,N.Ovb)(this.Ya,this.Fqa.bind(this));};la.prototype.Fqa=function(R){R=this.Ya.tpa(R);return void 0 === R || R.lk && this.Fqa(R);};la.prototype.npa=function(){return this.R7.bH;};la.prototype.xpc=function(R){return (0,V.Vxb)(this.Ya,R);};la.prototype.en=function(R){var ja,sa,ta,qa;function ea(Aa){return Aa?Math.max(Aa - R.G,0):0;}ja=this;this.Ya.HK(function(Aa){var Ga,na,va;Ga=Aa.wZ(r.u.X);na=Aa.wZ(r.u.U);va=Aa.wZ(r.u.Ca);if(Aa.K.p2 || !ja.Ya.Npa(Aa) || !Aa.lk){if(!sa || Ga < sa)sa=Ga;if(!ta || na < ta)ta=na;if(!qa || va < qa)qa=va;}return Aa.lk;});return {y2:ea(sa),z2:ea(ta),IPb:ea(qa)};};la.prototype.wSa=function(R){return (R=this.Pr.LL(R))?this.Pr.JH.get(R):void 0;};la.prototype.VQ=function(){var R,ea,ja,sa;ja=this.Sx?this.en(this.Ld):{y2:0,z2:0,IPb:0};sa=G.default.instance().get();return {totalabuflmsecs:ja.y2,totalvbuflmsecs:ja.z2,totaltbuflmsecs:ja.IPb,abuflbytes:0,vbuflbytes:0,tbuflbytes:0,currentBandwidth:null !== (ea=Number(0 < sa.confidence) && (null === (R=sa.kb) || void 0 === R?void 0:R.Fa)) && void 0 !== ea?ea:0};};la.prototype.PZ=function(){var R,ea,ja,sa,ta,qa,Aa,Ga;R=this;if(this.dy())return (this.pe.ug({isStreamingFailureReported:!0}),[]);ja=this.Ya.size;this.pe.ug({branchCount:ja});if(!this.Sx || 0 === ja)return [];sa=this.Ld;ta=this.Yg;qa=[];ja=this.Jb.get(this.Yg.L);(0,w.assert)(ja,"presentingSegment must exist in workingPlaygraph");Aa=ja.Wb;Ga=this.Wh.get(ja.id)?1:null !== (ea=ja.Fw) && void 0 !== ea?ea:1;ea=this.Ya.reduce(function(na,va,xa){var ra,ya,Ca,La,Oa,Na,Qa;Ca=va.mpa();try{for(var Ja=n.__values(Ca),Ka=Ja.next();!Ka.done;Ka=Ja.next()){La=Ka.value;if(!La.op()){Oa=("p").concat(R.id,"-").concat(xa,"-").concat(null === (ya=va.Sb) || void 0 === ya?void 0:ya.G);Na=R.Isc(La);Qa=new pa.Peb(R,La,Oa,Ga,Aa.G,Na.G,sa.G,ta);na.push(Qa);}!La.cy() && R.pe.enabled && qa.push({segmentId:La.L,isDoneStreaming:La.op(),isNormalized:La.Uf(),needsHeaderRequest:La.track.hca});}}catch(Sa){var Va;Va={error:Sa};}finally{try{Ka && !Ka.done && (ra=Ja.return) && ra.call(Ja);}finally{if(Va)throw Va.error;}}return na;},[]);this.pe.ug({nonStreamables:qa});return ea;};la.prototype.Isc=function(R){var ea;ea=R.FZ();if(this.config.JY && ea && (0,k.dUa)(ea.oa.K.Fpa(R.L)))return R.pk;for(;ea && !ea.qYa;)(R=ea,ea=ea.FZ());return R.pk;};la.prototype.gxb=function(R){var ea;if(!R.oa.Zc){ea=R.oa.K.Gc;if(ea)return (ea=n.__read(this.Ya.dn(ea),1)[0],null === ea || void 0 === ea?void 0:ea.VG(R.mediaType));}};la.prototype.uta=function(R,ea,ja){var sa,ta,qa;if(!this.Q1a.dy()){sa=void 0;try{ta=this.Yg;if(ta){qa=this.Jb.get(ta.L);(0,w.assert)(qa,"currentPosition segment must exist in workingPlaygraph");sa=qa.J;}}catch(Aa){this.console.error("Error getting viewableId for buffering timeout",Aa,"state:",this.bg.state.value,"hasPlayer:",this.lo,"hasPosition:",this.player.Vd,"branches:",JSON.stringify(this.player.Ya));}this.Vf({Ti:R,J:sa,XC:ea,GH:null === ja || void 0 === ja?void 0:ja.bh,wk:null === ja || void 0 === ja?void 0:ja.wk,Qg:null === ja || void 0 === ja?void 0:ja.Qg});}};la.prototype.Vf=function(R){this.Q1a.Vf(R);return !0;};la.prototype.V2a=function(R,ea){ea=this.lpa(ea,R);this.events.emit("logdata",{type:"logdata",target:R,fields:ea});};la.prototype.lpa=function(R,ea){void 0 !== R && this.z_.Tyc(R);ea=this.Xe.Bh(R,ea);R === z.Lc.Jj && (R=this.VQ(),ea.vbuflmsec=R.totalvbuflmsecs,ea.abuflmsec=R.totalabuflmsecs,ea.vbuflbytes=R.vbuflbytes,ea.abuflbytes=R.abuflbytes,ea.audioSwitchability=this.ptc());return ea;};la.prototype.ptc=function(){var R;R=this;this.Qx().forEach(function(ea){var ja;ja=ea.J;-1 !== ja && void 0 !== ea.oX && (R.$Ua[ja]=ea.oX);});return this.$Ua;};la.prototype.KRa=function(){return this.Xe.wQa();};la.prototype.JQb=function(R){this.R7=R;this.al("updateBudget");};la.prototype.dy=function(){return this.Q1a.dy();};la.prototype.r3a=function(R){R !== this.weight && (this.Ykb=R,this.events.emit("weightUpdated"));};la.prototype.EU=function(R){var ea,ja,sa;ea=this;ja=this.jac(R.Z);if(ja.success){this.player.Mca(function(){ea.PMb(R.m7(ea.Pr));});sa=this.player.zk;sa && (this.Wh.apb(sa.K.id),this.EC.xU(sa,this.Ld,!0));this.nq.start();}else this.pe.ug({current:this.Jb.Z,target:R.Z,result:ja});return ja;};la.prototype.vN=function(R){R=f.rF.update(this.Pr,R);return this.EU(R);};la.prototype.jac=function(R){var ea,ja,sa,ta,qa,Aa,Ga,na,va,ya,Ca,Ja,Ka,La,Oa,Na,Qa,Va;Aa=(0,Z.L$b)(this.Z,R);Ga=Aa.Fy;na=Aa.qq;va=Aa.jVc;if([Aa.bX,Ga,na].every(function(Xa){return !Xa.length;}))return {success:!0,reason:r.fx.TZb};if(0 === na.length && 0 === va.length && this.lo && this.player.Vd)return {success:!1,reason:r.fx.QYb,L:null === (ta=this.Yg) || void 0 === ta?void 0:ta.L};ta=this.player.Ya.filter(function(Xa){return -1 < Ga.indexOf(Xa.K.id);});if(0 < ta.length)return {success:!1,reason:r.fx.i0b,L:ta[0].K.id};if(this.Sx && !this.player.Vd && -1 < Ga.indexOf(this.gm.L))return {success:!1,reason:r.fx.AXb,L:this.gm.L};if(this.Sx)try{for(var xa=n.__values(na),ra=xa.next();!ra.done;ra=xa.next()){ya=ra.value;Ca=this.Z.ba[ya];Ja=R.ba[ya];Ka=Ca.fb;La=Ca.J;Oa=Ja.fb;Na=Ja.Ua;Qa=Ja.J;if(this.Yg.L === ya && Oa !== Ka){if(!Oa)return {success:!1,reason:r.fx.j0b,L:ya};Va=g.I.Ba(Oa - Na + 1);if(null === (qa=this.Yg.offset) || void 0 === qa?0:qa.greaterThan(Va))return {success:!1,reason:r.fx.RSb,L:ya};}if(La !== Qa)return {success:!1,reason:r.fx.ZVb,L:ya};try{for(var Sa=(ja=void 0,n.__values(this.Ya.dn(ya))),Ta=Sa.next();!Ta.done;Ta=Sa.next())if(!Ta.value.HX(Ja))return {success:!1,reason:r.fx.YVb,L:ya};}catch(Xa){ja={error:Xa};}finally{try{Ta && !Ta.done && (sa=Sa.return) && sa.call(Sa);}finally{if(ja)throw ja.error;}}}}catch(Xa){var bb;bb={error:Xa};}finally{try{ra && !ra.done && (ea=xa.return) && ea.call(xa);}finally{if(bb)throw bb.error;}}return {success:!0,reason:r.fx.SZb};};la.prototype.fo=function(R){var ea;ea=n.__read(this.Qx().filter(function(ja){return ja.J === R;}),1)[0];if(ea)return ea.fo();};la.prototype.Owb=function(){var R,ea;ea=Infinity;try{for(var ja=n.__values(this.Ya),sa=ja.next();!sa.done;sa=ja.next())ea=Math.min(ea,sa.value.Bxb());}catch(qa){var ta;ta={error:qa};}finally{try{sa && !sa.done && (R=ja.return) && R.call(ja);}finally{if(ta)throw ta.error;}}return ea;};la.prototype.Pwb=function(){var R,ea;ea=Infinity;try{for(var ja=n.__values(this.Ya),sa=ja.next();!sa.done;sa=ja.next())ea=Math.min(ea,sa.value.Cpa());}catch(qa){var ta;ta={error:qa};}finally{try{sa && !sa.done && (R=ja.return) && R.call(ja);}finally{if(ta)throw ta.error;}}return ea;};la.prototype.PMb=function(R){var ea;ea={type:"playgraphUpdating",qta:this.Jb.Z,Psa:R.Z};this.Pr=R;this.nWc();this.events.emit("playgraphUpdating",ea);};la.prototype.nWc=function(){var R,ea,ja,sa,ta;ja=this.player && this.lo && this.player.Vd?this.Yg:void 0;if(ja){sa=this.Jb.get(ja.L);(0,w.assert)(sa,"currentPosition segment must exist in workingPlaygraph");ja=null === (R=this.player.Rp) || void 0 === R?void 0:R.Ena;if((R=this.ERa(sa)) && R !== ja && this.player.Xv){ta=this.player.nB;null === (ea=this.player.Rp) || void 0 === ea?void 0:ea.Kwa({K:ta.K,get Bfa() {return ta.ta.ea(ta.K.ib);}},R,this.Yg.offset,!0,!1,void 0);}}};la.prototype.IH=function(R,ea){var ja;this.qKb(R);R.BQ.addListener("criticalNetworkError",this.vta);R.BQ.addListener("temporaryNetworkError",this.w0);R.BQ.addListener("requestError",this.w0);R.BQ.addListener("updatingLastSuccessEvent",this.Hta);ja=1 >= this.Qx().filter(function(sa){return sa === R;}).length;R.events.addListener("logdata",this.kta);R.events.addListener("asereportconfigoverrides",this.ata);R.events.addListener("liveEventTimesUpdated",this.gta);R.events.addListener("liveLoggingInfoUpdated",this.hta);R.events.addListener("livePostplayUpdated",this.ita);R.Eb && ja && (R.VIb(),R.FL && R.FL.Sc(this.Xe),this.Yxa.qvc(R.Xe,R.R));ja=this.Ur.uRa(R);ja.vv === this.config.vv && ja.Qz === this.config.Qz && ja.WJ === this.config.WJ || this.events.emit("asereportconfigoverrides",{type:"asereportconfigoverrides",vv:ja.vv,Qz:ja.Qz,WJ:ja.WJ});this.$a === p.qt.$p && ea && this.bea();};la.prototype.NXa=function(R){var ea;ea=0 === this.Ya.filter(function(ja){return ja.Wl && ja.M === R;}).length;this.$Ua[R.J]=R.oX;ea && (this.qKb(R),this.Yxa.lKb(R.Xe));};la.prototype.qKb=function(R){R.BQ.removeListener("criticalNetworkError",this.vta);R.BQ.removeListener("temporaryNetworkError",this.w0);R.BQ.removeListener("updatingLastSuccessEvent",this.Hta);R.events.removeListener("logdata",this.kta);R.events.removeListener("asereportconfigoverrides",this.ata);R.events.removeListener("liveEventTimesUpdated",this.gta);R.events.removeListener("liveLoggingInfoUpdated",this.hta);R.events.removeListener("livePostplayUpdated",this.ita);this.Yxa.lKb(R.Xe);};la.prototype.xlb=function(R){var ea;(0,w.assert)(R.Uf,"expected branch to be normalized on addBranchToPlayer");this.player.Xv || (null === (ea=this.ov) || void 0 === ea?0:ea.Uf) || this.Smc(R);this.bg.Mfa(R.ka);this.player.Xv && (ea=this.player.zk) && this.Wh.clear(ea.K.id);this.player.UY(R);this.events.emit("branchEnqueued",{oa:R,type:"branchEnqueued"});this.EC.xU(R,this.Ld);};la.prototype.Smc=function(R){var ea,ja;(0,w.assert)(R.qa,"Normalized branch should have a defined content start timestamp");(0,w.assert)(this.ov,"AsePlaygraph should have a seek position on first branch normalization");(0,w.assert)(!this.ov.Uf,"Seek position should not already be normalized on first branch normalization");ea=R.M;ja=this.Jb.get(R.K.id);(0,w.assert)(ja,"WorkingSegment for a normalized branch must exist");if(!ja.pn)if(ea.Eb)this.Wsa(R);else {if(void 0 === this.Kt || void 0 === this.jr){this.Vf({Ti:"No track selectors available"});return;}this.Jb.normalize(ea.J,ea.Xsa.bind(ea,[this.Kt,this.jr,this.JB]));}this.ov=n.__assign(n.__assign({},this.ov),{position:{L:ja.id,offset:R.qa.ea(ja.ib)},Uf:!0});this.bg.oPc(this.ov.position,R.ka.filter(function(sa){return sa.mediaType === r.u.X;})[0]);};la.prototype.Wsa=function(R){var ea,ja;ea=n.__read(R.ka,1)[0];(0,w.assert)((0,O.oo)(ea),"Expected primary track to be live");(0,w.assert)(R.M.Oc,"Expected live viewable with position service");ea=(0,I.Zda)(this.console,this.config,R.M,R.K.Yb) || g.I.dh;ja=R.parent || R.K.ib.rca(g.I.ia)?g.I.dh:R.M.Oc.fo(!1);ja=(0,I.Rva)(this.console,ja,R.M,g.I.Ba(R.K.Ua));this.Jb.Wsa(R.K.id,ja,ea);this.bea();};la.prototype.zbc=function(){var R;this.EC.reset();this.player.hK();this.ov=void 0;null === (R=this.Inb) || void 0 === R?void 0:R.clear();};la.prototype.Qxc=function(R,ea,ja){ea=this.BOb.dG(ea,R.kl.mediaType,1 > ja || !R.kl.oa.Zc && !this.Fqa(R.kl.oa));1 === ja && "global" === (0,r.HJb)(ea.reason) && this.bg.fFc(R.kl.mediaType,this.en(this.Ld));return ea;};la.prototype.tL=function(R){var ea,ja,sa,ta,qa,Aa,Ga,na,va,xa,ra,ya;R=R.kl;ta=R.mediaType;qa=this.HSa.YLb(this.ie.value,this.Ld,R.pI,R.Xwa,this.player.playbackRate,R,this.bg.eY,this.x8b,this.Wxa,this.t7);Aa=qa.stream;Ga=qa.pE;na=qa.ZZ;va=qa.Ky;xa=qa.rn;ra=qa.reason;ya=qa.rub;qa=qa.aMb;if(!Aa)return {Bf:!1,reason:ra || "selectLocationsAndStream"};if(void 0 === this.jr)return (this.Vf({Ti:"No track selectors available"}),{Bf:!1,reason:"noTrackSelectors"});if(R.op())return {Bf:!1,reason:"pipelineDoneStreaming"};if(this.ie.value === r.Rd.$p && R.oa && R.oa.M.lp && !R.oa.M.BAb(this.jr) && !this.player.Baa(R.oa.M.J)){ra=R.pI.G - this.Ld.G;if(!R.oa.M.Pv && ra > this.config.ADb)return {Bf:!1,reason:"maxBufferingCompleteBufferInMs"};if(!Aa.xk && Aa.mediaType === r.u.U && ra >= this.config.Zra)return {Bf:!1,reason:"maxFastPlayBufferInMs"};}ra=r.u.U;if(null === (ea=R.oa) || void 0 === ea?0:ea.ka.every(function(Ca){return Ca.mediaType === r.u.X;}))ra=r.u.X;this.bg.no && ta === ra && this.bg.IPc(R.Lp.dwa,Aa.bitrate,na);if(this.config.nCb && R.oa.M.hH && R.Xwa.lessThan(R.oa.M.Y9()))return (R.oa.events.emit("requestSeekToLiveEdge",{type:"requestSeekToLiveEdge"}),{Bf:!1,reason:"behindSegmentAvailabilityWindow"});this.zPc(R.oa.K,Ga);ea=null === (ja=R.oa.Xy) || void 0 === ja?void 0:ja.G;ja=R.X2a(Aa,xa,va);ja.Bf?(this.vIa && (this.HW("firstDriveStreaming"),this.vIa=!1),0 < this.xK && (Aa=null === (sa=R.oa.Xy) || void 0 === sa?void 0:sa.G,ea && Aa && (this.xK-=ea - Aa,0 >= this.xK && this.bea())),this.events.emit("requestIssued",{type:"requestIssued",nativetime:h.platform.time.ha(),mediaType:ta,result:qa,streamList:ya,segmentId:R.oa.K.id})):"waitingOnMediaEvents" === ja.reason && ((0,w.assert)(this.Cc,"waitingOnMediaEvents requires adManager"),this.Cc.Wi.eDc(R.oa.M.J,R.pI,R.Xwa));return ja;};la.prototype.WPc=function(R){this.config.enableCprVideo=R;};la.prototype.zPc=function(R,ea){var ja;ja=this;ea.forEach(function(sa){sa.M.AMb(sa,R,function(){var ta,qa;(0,w.assert)(ja.Sx,"Speculative header callback after streaming is cancelled");ta=ja.Ld.G;qa=ta + ja.config.T_;return {hh:[],ie:ja.bg.state.value,yu:qa,Do:qa,fp:ta};});});};la.prototype.bea=function(){var R;R=this;return new Promise(function(ea){R.nq.fga(ka.YI.SE,function(){R.nq.start();R.nq.fga(ka.YI.BO,ea);});});};la.prototype.YZa=function(){var R,ea,ja,sa,ta;R=this;if(this.$a === p.qt.$p){ea=this.Yg;ja=this.player.Ya;sa=this.Ya.dtc();ta=n.__read(ja,1)[0];ea=ta?this.Jb.get(ta.K.id):this.Jb.get(ea.L);(0,w.assert)(ea,"startSegment must exist in workingPlaygraph");ja=ja.map(function(qa){return {id:qa.K.id,duration:qa.Ob.ea(qa.Sb).G};});sa=(0,W.YZa)(this.console,this.Jb.nyb,ea,sa,this.Wh,ja,g.I.Ba(this.config.s9b),this.config.zWa,g.I.Ba(this.config.zLa));ja=sa.lE;this.xK=sa.xK || 0;sa=this.oPa.reduce(function(qa,Aa){var Ga;Ga=Aa(qa.lE);Aa=Ga.FU;Ga=Ga.lE;qa.FU || (qa.FU=Aa);qa.lE=Ga;return qa;},{FU:!1,lE:ja});this.yHb=sa.FU;this.Ya.CVc(sa.lE,function(qa,Aa){var Ga,na;na=R.Jb.get(qa);(0,w.assert)(na,"segment must exist in workingPlaygraph");qa=qa === R.gm.L?R.gm.offset:qa === (null === (Ga=R.yJa) || void 0 === Ga?void 0:Ga.L)?R.yJa.offset:g.I.ia;Ga=na.ib.add(qa);return R.VUc(na,Ga,Aa);},this.console).Fy.forEach(function(qa){qa.Jg("aborted");});this.ZZa();sa.FU || this.Gob();this.nq.fga(ka.YI.SE,function(){var qa;(null === (qa=R.Ya.root()) || void 0 === qa?0:qa.Wl) && R.al("reevaluateBranches");R.nq.Wba(ka.YI.BO);});this.events.emit("branchesReevaluated",{type:"branchesReevaluated"});}};la.prototype.Qx=function(){var R,ea,ta;ea=[];try{for(var ja=n.__values(this.Ya),sa=ja.next();!sa.done;sa=ja.next()){ta=sa.value;ta.Wl && (ea.push(ta.M),ta.M.Wj && ea.push(ta.M.Wj));}}catch(Aa){var qa;qa={error:Aa};}finally{try{sa && !sa.done && (R=ja.return) && R.call(ja);}finally{if(qa)throw qa.error;}}return (0,e.TKa)(ea);};la.prototype.toString=function(){return ("AsePlaygraph(state: ").concat(this.$a,", branches: ").concat(this.Ya.size,")");};la.prototype.toJSON=function(){return {state:this.$a,Ya:this.Ya.size};};la.prototype.ZZa=function(){var R,ea;R=this;if(this.$a === p.qt.$p){if(!this.player.zk){ea=n.__read(this.Ya.dn(this.gm.L),1)[0];(null === ea || void 0 === ea?0:ea.Uf) && this.xlb(ea);}if(this.player.zk){for(;;){ea=this.vwb(this.player.zk.K);if(!ea)break;ea=n.__read(this.Ya.dn(ea).filter(function(ja){return ja.parent === R.player.zk;}),1)[0];if(!ea)break;if(null === ea || void 0 === ea || !ea.Uf)break;else if(ea.M.Eb && !ea.UP())break;else if(this.player.yyb(ea))break;this.xlb(ea);}this.EC.xU(this.player.zk,this.Ld);}}};la.prototype.Z8=function(){return this.mIa;};la.prototype.ERa=function(R){var ea,ja,sa,ta;if(this.player.Xv){ea=this.player.nB;ja=!1;sa=this.player.Ya.filter(function(qa){ja || (ja=qa === ea);return ja;});ta=(0,e.Lm)(sa,function(qa){return qa.K.id === R.id;});if(sa=sa[ta + 1])return sa.K.id;}return this.vwb(R,!1);};la.prototype.vwb=function(R,ea){var ja;void 0 === ea && (ea=!0);ja=this.Wh.get(R.id);if(ja)return ja;if(!ea && 1 === R.rE)return R.aB[0];};la.prototype.Gob=function(){var R;R=this.Ya.empty || 0 !== this.foc();R || this.Ywa?R && this.Ywa && (this.Ywa=!1):(this.bg.no && (R=this.en(this.Ld),this.bg.Pm("complete",R.y2,R.z2)),this.H3b(),this.Ywa=!0);};la.prototype.foc=function(){return this.Ya.filter(function(R){return !R.lk;}).length;};la.prototype.ekb=function(R){this.Fqa(R) && this.bg.nMa(this.Ld,this.player.playbackRate,R,{qma:this.HSa.qma.bind(this.HSa,this.BOb)});};la.prototype.QEc=function(R,ea){var ja,sa,ta;ja=this;if(ea.didNormalizeSegment){ea=R.M;sa=this.Jb.get(R.K.id);(0,w.assert)(sa,"WorkingSegment for a normalized branch must exist");if(ea.Eb)this.Wsa(R);else {if(void 0 === this.Kt || void 0 === this.jr){this.Vf({Ti:"No track selectors available"});return;}this.Jb.normalize(ea.J,ea.Xsa.bind(ea,[this.Kt,this.jr,this.JB]));}ta=ha.ngb.rtc(R,this.console,this.config);(0,w.assert)(ta,"Segment should be normalized");Promise.resolve().then(function(){return ja.events.emit("segmentNormalized",{type:"segmentNormalized",segmentId:sa.id,normalizedStart:sa.ib,normalizedEnd:sa.Yb,viewableContentEnd:ta.YRb,viewableEarliestContentEnd:ta.ZRb,media:d(R.ka)});});}Promise.resolve().then(function(){ja.ZZa();});this.al("branchNormalized");};la.prototype.REc=function(){this.yHb || this.Gob();};la.prototype.PEc=function(){this.nq.start();};la.prototype.mXa=function(R){this.KQb(R);};la.prototype.tta=function(R,ea){var ja,sa,ta,qa;ta=ea.mGc;ea=ea.hGc;qa=R.M;ta.equal(R.K.ib) || (null === (ja=qa.di) || void 0 === ja?void 0:ja.qGb(ta,R.K.ib));ea.equal(R.K.Yb) || (null === (sa=qa.di) || void 0 === sa?void 0:sa.qGb(ea,R.K.Yb));};la.prototype.qgc=function(R,ea){var ja;ja=this;return new q.h6a(R.J,this.nv,function(sa,ta,qa,Aa,Ga){ja.state !== p.qt.CLOSED && (ja.events.emit("branchViewableReceived",{type:"branchViewableReceived",K:R,M:ta,dw:qa,x_a:Aa,f8b:Ga}),ja.IH(ta,Ga),ja.nq.fga(ka.YI.BO,function(){sa.Zc || ja.XIa(sa,ta,ea,ta.S);}));},function(sa,ta,qa,Aa){var Ga,na;ja.state !== p.qt.CLOSED && (sa=(null === (Ga=sa.parent) || void 0 === Ga?void 0:Ga.M.Wj) || (null === (na=sa.parent) || void 0 === na?void 0:na.M),ja.events.emit("branchViewableFailed",{type:"branchViewableFailed",K:R,Wj:sa,J:R.J,dw:qa,x_a:Aa,error:ta}));},this.NXa.bind(this),this.i$.bind(this,R.id,R.J));};la.prototype.VUc=function(R,ea,ja){var sa,ta,qa;if(this.ubc(R,ea))throw Error("Not implemented");ta=this.qgc(R,!ja);qa=ja?ja.Ob.ea(ea):this.Fzb || g.I.ia;R=(0,u.Hcc)({config:this.config,console:this.console,K:R,events:this.events,PM:this.PM,Eq:ea,Kd:qa,yq:this.Cgc.bind(this),ie:this.ie,gd:this.gd,SB:ta,SYa:this.Ya,Aj:this.Aj});R.Wl && (null === (sa=R.M) || void 0 === sa?void 0:sa.J) === f.vr && this.XIa(R,(null === ja || void 0 === ja?0:ja.Wl)?ja.M:{ML:[0,0]},!ja);this.WSc(R,!!ja);return R;};la.prototype.Cgc=function(){return this.Ld.G;};la.prototype.WSc=function(R,ea){var ja,sa;ja=this;R.CN.then(function(){var ta,qa;if(!R.Zc){ta=R.M;qa=ja.Jb.get(R.K.id);qa && !qa.pn && qa.type === f.Gd.padding && (void 0 === ja.Kt || void 0 === ja.jr?ja.Vf({Ti:"No track selectors available"}):ja.Jb.normalize(ta.J,ta.Xsa.bind(ta,[ja.Kt,ja.jr,ja.JB])));}});sa=new c.gf();sa.addListener(R.events,"needsRequest",function(){var ta;ta=ja.Ya.root();ta && !ta.Wl || ja.al("branchNeedsHeader");});sa.addListener(R.events,"branchNormalized",this.QEc.bind(this,R));sa.addListener(R.events,"lastRequestIssued",this.PEc.bind(this,R));sa.addListener(R.events,"contentStartFinalized",function(){ja.ZZa();});sa.addListener(R.events,"branchStreamingComplete",this.REc.bind(this,R));sa.addListener(R.events,"checkBufferingProgress",this.ekb.bind(this,R));sa.addListener(R.events,"branchEdited",this.mXa.bind(this,R));sa.addListener(R.events,"branchOffsetUpdated",function(ta){var qa;R.Wl && R.M.Eb && R.M.di && (null === (qa=ja.Cc) || void 0 === qa?void 0:qa.Wi.qnc(R.M,ta.Kd));});sa.addListener(R.events,"branchTimestampsChanged",this.tta.bind(this,R));sa.addListener(R.events,"branchDestroyed",function(ta){var qa;sa.clear();ja.Ya.contains(R) && (ja.Ya.bMc(R),ja.nq.start());qa=ja.player.yyb(R);ja.nq.fga(ka.YI.SE,function(){"aborted" !== ta.reason || qa || ja.G3b(R.K.id);ja.D3b(R,ta.reason);});ta.M && ta.M.kn && ja.Jb.iKb(ta.M.J);});sa.addListener(R.events,"liveMissingSegment",function(ta){ja.events.emit("liveMissingSegment",ta);});sa.addListener(R.events,"requestSeekToLiveEdge",function(ta){ja.events.emit("requestSeekToLiveEdge",ta);});ea || (this.HW("createDlTracksStart"),R.events.once("requestQueuesCreated",function(){ja.HW("createDlTracksEnd");}));};la.prototype.nxb=function(R){if(this.player.Vd)return this.player.nB.je(R);};la.prototype.PM=function(R,ea,ja,sa){ea=[[r.u.X,ea || this.Kt,"audio_tracks"],[r.u.U,ja || this.jr,"video_tracks"]].map(function(ta){var qa,Aa;qa=n.__read(ta,3);Aa=qa[0];ta=qa[1];qa=qa[2];if(R.S && ((0,w.assert)(ta,("Expected mediaType ").concat(Aa," track selector to be defined")),Aa=R.S[qa],ta=ta.OT(R.S,Aa),void 0 !== ta && 0 <= ta && ta < Aa.length))return R.getTrackById(Aa[ta].jt);}).filter(e.xFb);ja=sa || this.JB;R.S && ja && (sa=R.S.timedtexttracks,ja=ja.OT(R.S,sa),void 0 !== ja && 0 <= ja && ja < sa.length && (sa=R.getTrackById(sa[ja].id)) && ea.push(sa));return ea;};la.prototype.esc=function(){var R,ea;R=this;ea=new Set();this.Qx().forEach(function(ja){R.PM(ja,R.Kt,R.jr,R.JB).forEach(function(sa){return ea.add(sa.mediaType);});});return Array.from(ea).sort();};la.prototype.wea=function(){return this.config.Taa && this.Qx().every(function(R){return !R.Eb;});};la.prototype.kta=function(R){this.events.emit("logdata",R);};la.prototype.ata=function(R){this.events.emit("asereportconfigoverrides",R);};la.prototype.gta=function(R){var ea,ja,sa,ta;ea=this;ja=R.M;sa=R.startTime;ta=R.endTime;this.Ya.filter(function(qa){return qa.Wl && qa.M === ja;}).forEach(function(qa){qa={type:"liveEventTimesUpdated",L:qa.K.id,startTime:sa,endTime:ta};ea.events.emit(qa.type,qa);});};la.prototype.hta=function(R){var ea,ja,sa,ta;ea=this;ja=R.M;sa=R.mediaType;ta=R.info;this.Ya.filter(function(qa){return qa.Wl && qa.M === ja;}).forEach(function(qa){qa={type:"liveLoggingInfoUpdated",L:qa.K.id,mediaType:sa,info:ta};ea.events.emit(qa.type,qa);});};la.prototype.ita=function(R){R={type:"livePostplayUpdated",J:R.M.J,Yca:R.Yca,action:R.action};this.events.emit(R.type,R);};la.prototype.XIa=function(R,ea,ja,sa){var ta,qa;ta=R.ka.filter(function(Aa){return Aa.mediaType === r.u.X;});if(ta.length)qa=ta[0].trackId;R={type:"segmentStarting",segmentId:R.K.id,contentOffset:R.Kd.G,contentStartPts:R.qa.G,maxBitrates:{audio:ea.ML[r.u.X],video:ea.ML[r.u.U]},media:d(R.ka),initial:ja,manifest:sa,audioTrackId:qa,branchId:R.tX};(0,T.s7b)(R,["manifest"]);this.events.emit(R.type,R);};la.prototype.G3b=function(R){R={type:"segmentAborted",segmentId:R};this.events.emit(R.type,R);};la.prototype.D3b=function(R,ea){R={type:"branchDestroyed",branchId:R.tX,segmentId:R.K.id,allMediaAppended:R.gX,reason:ea};this.events.emit(R.type,R);};la.prototype.H3b=function(){var R;R={type:"streamerEnd",time:h.platform.time.ha()};this.events.emit(R.type,R);};la.prototype.HW=function(R){R={type:"startEvent",event:R,time:h.platform.time.ha()};this.events.emit(R.type,R);};la.prototype.i$=function(R,ea){if(R && (R=this.wR.Jb.LL(R)))return (R=this.wR.Jb.JH.get(R),(R=null === R || void 0 === R?void 0:R.J) && String(R) !== String(ea)?{Rf:{fd:R}}:void 0);};n.__decorate([oa.return.$h()],la.prototype,"gm",null);n.__decorate([oa.return.$h()],la.prototype,"Yg",null);n.__decorate([(0,E.gb)({methodName:"checkCanSetTracks",return:!0})],la.prototype,"Jac",null);n.__decorate([(0,E.gb)({methodName:"setTracks",return:!0})],la.prototype,"Ny",null);n.__decorate([(0,E.gb)({methodName:"setNextSegment",Km:!0})],la.prototype,"Bn",null);n.__decorate([(0,E.gb)({methodName:"seekStreaming"}),n.__param(0,oa.$h())],la.prototype,"LM",null);n.__decorate([(0,E.gb)({methodName:"seekStreamingWithEntryPoint"}),n.__param(0,oa.$h()),n.__param(1,oa.$h()),n.__param(1,oa.JD)],la.prototype,"Yva",null);n.__decorate([oa.L()],la.prototype,"tZ",null);n.__decorate([oa.return.u8(),n.__param(0,oa.$h())],la.prototype,"ns",null);n.__decorate([oa.return.$h(),oa.return.JD],la.prototype,"tn",null);n.__decorate([n.__param(0,oa.$h())],la.prototype,"tA",null);n.__decorate([n.__param(0,oa.$h())],la.prototype,"U$",null);n.__decorate([oa.return.$h(),oa.return.JD,n.__param(0,oa.$h())],la.prototype,"BLb",null);n.__decorate([oa.return.$h(),oa.return.JD,n.__param(0,oa.u8())],la.prototype,"Vr",null);n.__decorate([oa.return.$h(),oa.return.JD],la.prototype,"Dub",null);n.__decorate([n.__param(0,oa.u8())],la.prototype,"Mx",null);n.__decorate([oa.return.u8(),oa.return.JD,n.__param(0,oa.u8())],la.prototype,"Jub",null);n.__decorate([(0,E.gb)({methodName:"getStreamables",Re:!0})],la.prototype,"PZ",null);n.__decorate([(0,E.gb)({methodName:"updateWorkingPlaygraph",return:!0})],la.prototype,"EU",null);n.__decorate([(0,E.gb)({methodName:"updatePlaygraphMap",return:!0})],la.prototype,"vN",null);return la;})();b.cza=a;},14430:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.v4a=void 0;d=a(57966);b.v4a=(function(){return function(n,c,f,g,e,h,k){this.config=n;this.console=c;this.Da=f;this.Bd=g;this.Tn=e;this.Rh=h;this.ilb=new d.y4a(this.config,this.console,this.Da,this.Bd,this.Tn,this.Rh,k);this.Da.D5b(this.ilb.tlc.bind(this.ilb));};})();},14314:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.w4a=void 0;d=a(91176);t=(function(){function n(c,f){this.console=c;this.config=f;}n.prototype.r9=function(c,f){var g,e;g=this;if(!c.Eb || null === (e=c.Hd) || void 0 === e || !e.Hj)return f;f.lb=f.lb.map(function(h,k){var l,m,p,r,q;if(!h.Kb)return h;p=null === (l=h.Gk) || void 0 === l?void 0:l.add(d.I.Ba(g.config.C6b));l=0 < h.Kb.length?h.Kb.reduce(function(u,v){return u.add(d.I.Ba(v.fb - v.Ua));},d.I.ia):h.duration;if(p && p.lessThan(l)){h.m2a=!0;r=p.G;q=!1;null === (m=h.Kb) || void 0 === m?void 0:m.forEach(function(u){var v,w,x;w=u.Un;if(q)u.Un=!0;else {x=u.fb - u.Ua;r >= x?r-=x:q=u.Un=!0;}w !== u.Un && g.console.log("Ad skipped due to early termination",{slb:u.id,Xb:k,eb:h.eb,Gk:null === (v=h.Gk) || void 0 === v?void 0:v.ca()});});}return h;});return f;};return n;})();b.w4a=t;},57966:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.y4a=void 0;d=a(79048);n=a(66164);c=a(91176);f=a(48170);g=a(52571);t=(function(){function e(h,k,l,m,p,r,q){this.config=h;this.console=k;this.Da=l;this.Bd=m;this.Tn=p;this.Rh=r;this.pXc=q;this.console=(0,c.Df)(n.platform,this.console,"ADBREAKHYDRATIONPOLICY");}e.prototype.tlc=function(h){var k,l,m,p,r,q,u,v;k=this;l=!1;if(!this.Bd.Wv())return {FU:l,lE:h};m=!0;p=[];r=[];u=this.Da.wR.Jb;h.HK(function(w,x){var y,A,z,B,C,D;if(!(x || !w.K.bxc || k.wxc() && k.Bd.nNb(k.Da.gm)))return (k.console.trace("Hydration: Not checking root segment"),!0);A=u.get(w.K.id);(0,g.assert)(A,"Hydration: Segment must be present in innermost playgraph");z=A.J;B=!1;if(A.type && -1 < [d.Gd.Rc,d.Gd.padding].indexOf(A.type))B=!0;else {C=u.uH(A.id);C && (C=k.Da.Jb.get(C)) && C.J !== A.J && (k.console.trace("Hydration: segment evaluated is a content playgraph modification, get viewableId from equivalent segment. " + ("auxiliary viewableId: ").concat(A.J,", ") + ("main content viewableId: ").concat(C.J)),z=C.J);}if(B){if((B=k.wSa(A),C=k.Da.Jb.WVa({offset:c.I.ia,L:A.id}),f.l && k.console.log("Checking Parent location for adBreak",{L:A.id,startTime:A.Ua,yed:null === B || void 0 === B?void 0:B.id,led:null === C || void 0 === C?void 0:C.offset.ca()}),B && C)){z=B.J;D=k.Rh.Koa(z,C.offset.add(B.ib));}}else (f.l && k.console.log("Checking current location for adbreak",{L:A.id,startTime:A.Ua}),D=k.Rh.Koa(z,A.ib));D && f.l && k.console.log("Found adbreak at location",{startTime:A.Ua,L:A.id,Qm:D.Qm,cf:D.cf,ai:D.ai});if(D && !D.ai){f.l && k.console.log("Found adbreak at location",{startTime:A.Ua,L:A.id,Qm:D.Qm,cf:D.cf});B=k.bqc(D,A);C=B.VL;f.l && k.console.log("Got hydration context",{L:A.id,context:B});if(B.Qm)if(D.T1)k.console.trace("Hydration: Ignore skippable unhydrated ad break");else if((A=null === (y=null === x || void 0 === x?void 0:x.oa) || void 0 === y?void 0:y.duration,k.Bd.zyc && A && 5E3 > A))(k.console.trace("Hydration: Skipping unhydrated ad break too close to previous"),C=!0);else {if(m && 0 === r.length || q === x)(r.push({J:z,Ra:D,xaa:B.xaa}),q=x);if(B.xaa)return (p.push(w),!1);}C && (f.l && k.console.log("marking MissedOpportunity"),D.VL=!0);f.l && k.console.log("Not Blocking branch progression");m=!1;if(B.xaa)return (f.l && k.console.log("Hydration: Blocking further branches"),!1);}else f.l && k.console.log("Could not find adbreak for segment",{startTime:A.Ua,L:A.id});return !0;});l || (l=0 < p.length);p.forEach(function(w){return h.remove(w);});this.Tn.X_a(r);if(this.config.WLc && h.root){v=u.get(h.root.K.id);(0,g.assert)(v,"root segment must exist in innermost playgraph");(v=this.Rh.Koa(v.J,v.ib)) && v.T1 && (v.T1=!1);}return {FU:l,lE:h};};e.prototype.wSa=function(h){h=this.Da.Jb.LL(h.id);return this.Da.Jb.JH.get(h);};e.prototype.bqc=function(h,k){var l,m,p,r,q,u;p=this.Da.no;r=h.pNb;q=h.pNb;u=!1;(k=this.wSa(k)) && r && (k=this.pXc.get(k.J),(0,g.assert)(k,"AdBreakHydrationPolicy::getHydratableContext: main aseViewable should exist"),k.Eb && (null === (m=null === (l=k.S) || void 0 === l?void 0:l.Hd) || void 0 === m?0:m.Hj) && (q && (q=p),this.config.eac || q || (m=k.Oc,l=c.I.Ba(m.fl(!0)),m=m.bNa(l),p=l.G - h.Pa.G,p < this.config.wzc && (q=r=!1,u=!0,f.l && this.console.log("Hydration: Too close to live edge",{KVa:new Date(m.G),A$c:p,I$c:l.ca(),Ra:h.Pa.ca()})))));return {Qm:r,xaa:q,VL:u};};e.prototype.wxc=function(){return !this.Da.player.Xv && this.Da.no;};return e;})();b.y4a=t;},31300:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;Object.defineProperties(b,{__esModule:{value:!0}});b.z4a=b.jlb=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(91176);g=a(91176);e=a(66164);h=a(91176);a(51308);k=a(65161);l=a(95407);m=a(6783);p=a(40666);r=a(48170);q=a(69575);u=a(61996);v=a(54366);b.jlb=["AD_BREAK_UNAVAILABLE"];w=(function(){function x(y,A){this.J=y;this.Ra=A;this.wva=this.Hda=!1;this.Vq=-1;this.Qh=new c.AbortController();this.gkb=new c.Jo();}x.isEqual=function(y,A){return A.J === y.J && A.Ra === y.Ra;};x.prototype.eBc=function(){this.gkb.resolve();};return x;})();t=(function(){function x(y,A,z,B,C){var D;this.nv=y;this.la=A;this.PU=z;this.config=B;this.console=C;this.items=[];this.aH=new Map();this.YJa=1;this.aac=!1;this.events=new n.EventEmitter();D=this;this.la.gd.Xr(function(){return d.__generator(this,function(F){switch(F.label){case 0:return [4,p.$d.eya];case 1:return (F.T(),D.aac=!0,[2]);}});},"playerStartedHydrator");this.console=(0,q.Df)(e.platform,C,"ADBREAKHYDRATOR");this.ck=new u.zm({qj:this,source:"AdBreakHydrator",console:this.console});this.la.Xe.Sc(new v.On(this.ck));this.fUc=this.PU.Ma.currentTime;}x.prototype.Loa=function(y,A){var z,B;return void 0 !== (null === y || void 0 === y?void 0:y.au)?("").concat(y.Xb,":").concat(null !== (z=y.au()) && void 0 !== z?z:""):("").concat(A,":").concat(null !== (B=y.eb) && void 0 !== B?B:"");};x.prototype.uea=function(y,A){y=this.Loa(y);this.ck.ug({id:y,H7c:A.type});r.l && this.console.log("Setting hydration event",{id:y,event:d.__assign(d.__assign({},A),{Nm:void 0})});this.aH.set(y,A);};x.prototype.Ebc=function(){var y;y=this;this.ck.ug({y9c:Array.from(this.aH.values()).map(function(A){return y.Loa(A.rN);})});this.console.log("Clearing adBreak hydrator events on seek");this.aH.clear();};x.prototype.ZLa=function(y){var A;A=this;this.items=this.items.filter(function(z){var B;return y.length && z.Ra.au() === y && !z.wva?(r.l && A.console.log("Cancelling adBreak hydrations for",{J:z.J,Xb:z.Ra.Xb,eb:y}),null === (B=z.Qh) || void 0 === B?void 0:B.abort(),A.uea(z.Ra,{type:"tooLate",M:void 0,Vq:-1,rN:z.Ra}),!1):!0;});};x.prototype.r9=function(y){var A;A=this;if(!this.aH.size)return y;y.lb=y.lb.map(function(z,B){var C,D,F,H,E,G,J,L,K,M,P;if((B=A.Loa(z,B)) && A.aH.has(B)){B=A.aH.get(B);if("tooLate" === (null === B || void 0 === B?void 0:B.type))return d.__assign(d.__assign({},z),{Qm:!1,VL:!0});if("dehydration" === (null === B || void 0 === B?void 0:B.type))return d.__assign(d.__assign({},z),{Kb:B.WLa?void 0:[],NJ:{},Zx:!B.WLa,Ux:null === B || void 0 === B?void 0:B.Vq,Qm:B.WLa,ai:B.ai,source:"hydration"});F=B.Nm;F=F.Eb && !(null === (C=F.S.Hd) || void 0 === C || !C.Hj);if("adBreakHydrated" === B.type){C=B.b7;F=B.Xk;H=B.eb;E=z.fw;G=z.xj;J=z.location;L=z.Pa;K=z.Gk;M=z.duration;P=z.Xb;return d.__assign(d.__assign({},C),{xj:G,fw:E,location:J,duration:C.FY?K || M:(null === (D=C.Kb) || void 0 === D?0:D.length)?C.Kb.reduce(function(I,O){return I.add(f.I.Ba(O.fb - O.Ua));},f.I.ia):f.I.ia,Gk:void 0 !== K?K:"embedded" !== z.type || C.FY?void 0:M,Pa:L,Xk:F,eb:H,Xb:P,Zx:!0,Qm:!1,Ux:null === B || void 0 === B?void 0:B.Vq,j_:!1,source:"hydration",type:C.FY?"embedded":"dynamic"});}if(F)return d.__assign(d.__assign({},z),{Zx:!0,Ux:null === B || void 0 === B?void 0:B.Vq});if("adBreakHydrationSkipped" === B.type)return d.__assign(d.__assign({},z),{Zx:!1,Qm:!1,j_:!0,Ux:null === B || void 0 === B?void 0:B.Vq});}return z;});return y;};x.prototype.Qrb=function(y,A){var z;z=this;y=y.map(function(B){return [z.Chc(B,A),{index:B.Xb,ced:B.eb}];}).filter(function(B){return (0,c.$c)(B[0]);});this.ck.ug({dehydrated:y});};x.prototype.Chc=function(y,A){var z,B,C,D,F;if(y.cf){B=this.Loa(y);this.aH.has(B) && (C=null === (z=this.aH.get(B)) || void 0 === z?void 0:z.type);if(y.au() || y.Moa()){D=y.Moa();F=y.au();this.aH.set(B,{type:"dehydration",M:void 0,Vq:this.YJa++,WLa:A || !y.ai,ai:A?!1:y.ai,rN:{Xb:y.Xb,Moa:function(){return D;},au:function(){return F;},ai:y.ai,cf:y.cf,xj:y.xj}});return "dehydration" !== C?C:void 0;}}};x.prototype.X_a=function(y){d.__awaiter(this,void 0,void 0,function(){var A,z,B,C,D,F;F=this;return d.__generator(this,function(H){switch(H.label){case 0:A=y.map(function(E){return [new w(E.J,E.Ra),E.xaa];});z=A.map(function(E){return d.__read(E,1)[0];});B=(0,g.dcc)(this.items,z,w.isEqual);this.items=B.result;B.vda.forEach(function(E){var G;E.wva || (null === (G=E.Qh) || void 0 === G?void 0:G.abort());});A.filter(function(E){return d.__read(E,2)[1];}).forEach(function(E){var G;G=d.__read(E,1)[0];E=(0,c.cc)(F.items,function(J){return w.isEqual(J,G);});null === E || void 0 === E?void 0:E.eBc();});r.l && this.console.log("Evaluated schedule",{v6b:B.Zlb.length,vda:B.vda.length,Kua:B.Kua.length,pDc:B.result.length});this.ck.ug({v6b:B.Zlb.length,vda:B.vda.length,Kua:B.Kua.length,pDc:B.result.length});C=this.items.filter(function(E){return !E.Hda;}).map(function(E){return F.ig(E);});if(!(0,k.rs)(this.la.ie.value))return [3,5];D=this.items.map(function(E){return F.nv.Ps(E.J).jl;});H.label=1;case 1:return (H.tc.push([1,,3,4]),[4,Promise.race(C)]);case 2:return (H.T(),[3,4]);case 3:return (D.forEach(function(E){return E.release();}),[7]);case 4:return [3,7];case 5:return [4,Promise.all(C)];case 6:(H.T(),H.label=7);case 7:return [2];}});});};x.prototype.ig=function(y){return d.__awaiter(this,void 0,void 0,function(){var A,z,B,C,D,F,H,E,G;H=this;return d.__generator(this,function(J){switch(J.label){case 0:(r.l && this.console.log("Start scheduling for adbreak",{zed:y.J,w5c:y.Ra.Xb}),A=("").concat(y.Ra.Xb,":").concat(null !== (E=y.Ra.au()) && void 0 !== E?E:""),this.ck.ug({id:A}),null === (G=y.Qh) || void 0 === G?void 0:G.abort(),z=new c.AbortController(),y.Qh=z,B=(0,m.Vr)(this.la.Z,y.J,y.Ra.Pa),C=(0,c.ula)(z.signal),J.label=1);case 1:return (J.tc.push([1,,5,6]),[4,Promise.race([(function(){return d.__awaiter(H,void 0,void 0,function(){return d.__generator(this,function(L){switch(L.label){case 0:return [4,this.FXa(z.signal)];case 1:return (L.T(),r.l && this.console.log("Rebuffering detected, expediting hydration"),[2,"rebuffer"]);}});});})(),Promise.all([this.xXc(C),this.BXc(B,C)]).then(function(){return "gatesPassed";}),C.then(function(){return "cleanup";})])]);case 2:D=J.T();r.l && this.console.log("Schedule completed for reason",D);if(z.aborted)return [3,4];r.l && this.console.log("Making Item Fetch",{x5c:y.Ra.Xb,fw:y.Ra.location.G});y.Hda=!0;return [4,this.pJb(y,D,z.signal)];case 3:(J.T(),J.label=4);case 4:return [3,6];case 5:return (y.Qh === z && (F=this.items.indexOf(y),-1 !== F && (r.l && this.console.log(("Removing item ").concat(F,", ").concat(this.items.length - 1," left")),this.items.splice(F,1))),[7]);case 6:return [2];}});});};x.prototype.FXa=function(y){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){return (0,k.rs)(this.la.ie.value)?(r.l && this.console.log("Buffering detected, expediting hydration"),[2]):[2,f.vt.EXc([this.la.ie],function(A){A=d.__read(A,1)[0];return (0,k.rs)(A);},y)];});});};x.prototype.xXc=function(y){var A;A=this;return new Promise(function(z){var B,C;B=A.fUc.add(f.I.Ba(A.config.Yuc));C=A.PU.Ut(p.$d.lm(B),z,"hydratorWaitTask");y.then(function(){return C.Ka();});});};x.prototype.BXc=function(y,A){return d.__awaiter(this,void 0,void 0,function(){var z,B,C;C=this;return d.__generator(this,function(D){switch(D.label){case 0:if(!this.config.LDb)return [2,Promise.resolve()];z=f.I.Ba(this.config.LDb);D.label=1;case 1:return (D.tc.push([1,3,,4]),[4,new Promise(function(F){var H,E;H=C.la.tA(y,!0);E=C.la.gd.Ut(p.$d.lm(H.ea(z)),F,"waitJitHydrateAdBreak");A.then(function(){return E.Ka();});})]);case 2:return (D.T(),[3,4]);case 3:return (B=D.T(),r.l && this.console.warn("waitJitHydrateAdBreak failed",c.oV.JK(B)),[3,4]);case 4:return [2];}});});};x.prototype.x$b=function(y,A){var z,B,C,D,F,H;if(y.qp && this.config.BGc){C=y.Oc.fo(!0);D=f.I.max(f.I.ia,C.ea(A.Ra.Pa));F=D.ln(f.I.Ba(this.config.vzc));H=null !== (B=null === (z=y.S.Hd) || void 0 === z?void 0:z.Lrb) && void 0 !== B?B:this.config.uzc;z=Math.floor(Math.random() * H);r.l && this.console.log("Checking schedule for live jitter and adbreak hydration",{vxa:A.Ra.au(),dcd:z,L6c:H,vCb:C.ca(),tq:D.ca(),N9c:F});if(F)return (C=this.la.ns(this.la.Yg).Pa,{psb:D.G,qsb:A.Ra.Pa.ea(C).G,iga:H,o2:z,HB:y.Wf + z,tE:y.Wf});}};x.prototype.Q8b=function(y,A,z){return d.__awaiter(this,void 0,void 0,function(){var B;B=this;return d.__generator(this,function(C){switch(C.label){case 0:return [4,new Promise(function(D,F){var H;H=B.PU.Ut(p.$d.bz(f.I.Ba(y.o2)),D,"hydrationLiveJitterTask");z.addEventListener("abort",function(){H.Ka();F();});})];case 1:return (C.T(),r.l && this.console.log("Live jitter completed",{vxa:A.Ra.au()}),[2]);}});});};x.prototype.pJb=function(y,A,z){return d.__awaiter(this,void 0,void 0,function(){var B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha,S,N,V;return d.__generator(this,function(ba){switch(ba.label){case 0:(B=y.Ra,C=y.J,D=("").concat(B.Xb,":").concat(null !== (S=B.au()) && void 0 !== S?S:""),this.ck.ug({id:D,reason:A}),F=B.Moa(),H=B.au(),E=null !== H && void 0 !== H?H:F,(0,c.assert)(E,"adBreakToken or adBreakTriggerId must exist if adBreak hydration was queued"),G=this.YJa++,y.Vq=G,J=this.nv.Ps(C),L=J.jl,K=!1,P=d.__read((0,h.KEb)(this.nv.xT.bind(this.nv)),2),I=P[0],O=P[1],ba.label=1);case 1:return (ba.tc.push([1,6,9,12]),[4,J.kr]);case 2:return (Q=ba.T(),Q.qp?(M=this.x$b(Q,y))?[4,Promise.race([this.Q8b(M,y,z),y.gkb.promise])]:[3,4]:[3,4]);case 3:(ba.T(),ba.label=4);case 4:return (null === (N=y.Qh) || void 0 === N?0:N.signal.aborted)?[2]:[4,I({Xk:F,eb:H,J:C})];case 5:return (T=ba.T(),y.wva=!0,z.aborted || (U=T.b7,X=T.Nm,r.l && this.console.log("Hydrated response " + ("with ").concat(null === (V=T.b7.Kb) || void 0 === V?void 0:V.length," ads")),r.l && this.console.debug("Hydrated complete response ",{response:U}),Y={type:"adBreakHydrated",Xk:F,eb:H,b7:U,Nm:X,rN:y.Ra,Vq:G,uI:{tB:O.start,vB:O.end},dw:M},this.uea(y.Ra,d.__assign({},Y)),this.events.emit("adBreakHydrated",Y),K=!0),[3,12]);case 6:W=ba.T();if(z.aborted)return [3,8];Z=l.gC.Zsc(W);aa=l.gC.n$(W);return [4,J.kr];case 7:ca=ba.T();(0,c.assert)(ca,"parentAseViewable must exist");if("adBreakHydration" === Z && aa && -1 !== b.jlb.indexOf(aa))return (r.l && this.console.log("AdBreak hydration failed with recoverable error, playback can continue. Hydration will be attempted again if user revisits the adBreak location. " + ("errorCode: ").concat(aa,", ") + ("parentViewableId: ").concat(C,", ") + ("adBreakToken: ").concat(F)),da={type:"adBreakHydrationSkipped",Xk:F,eb:H,error:W,errorCode:aa,Nm:ca,rN:y.Ra,Vq:this.YJa++,uI:{tB:O.start,vB:O.end},dw:M},this.uea(y.Ra,da),B.T1=!0,this.events.emit("adBreakHydrationSkipped",da),K=!0,[2]);ha={type:"adBreakHydrationFailed",Xk:F,eb:H,error:W,errorCode:aa,Nm:ca,rN:y.Ra,Vq:G,uI:{tB:O.start,vB:O.end},dw:M};this.uea(y.Ra,ha);this.events.emit("adBreakHydrationFailed",ha);K=!0;ba.label=8;case 8:return [3,12];case 9:return K?[3,11]:[4,J.kr];case 10:(ca=ba.T(),(0,c.assert)(ca,"parentAseViewable must exist"),this.events.emit("adBreakHydrationSkipped",{type:"adBreakHydrationSkipped",Xk:F,eb:H,Nm:ca,rN:y.Ra,Vq:G,uI:{tB:O.start,vB:O.end},dw:M}),ba.label=11);case 11:return (y.wva=!0,L.release(),this.la.bea(),[7]);case 12:return [2];}});});};d.__decorate([(0,u.gb)({methodName:"setHydration"})],x.prototype,"uea",null);d.__decorate([(0,u.gb)({methodName:"clearHydrations"})],x.prototype,"Ebc",null);d.__decorate([(0,u.gb)({methodName:"cancelAndSkipHydration",Km:!0,Re:!0})],x.prototype,"ZLa",null);d.__decorate([(0,u.gb)({methodName:"dehydrateAdBreaks",Re:!0})],x.prototype,"Qrb",null);d.__decorate([(0,u.gb)({methodName:"scheduleHydration",Re:!0})],x.prototype,"X_a",null);d.__decorate([(0,u.gb)({methodName:"schedule",return:!0})],x.prototype,"ig",null);d.__decorate([(0,u.gb)({methodName:"queueAdBreakHydration"})],x.prototype,"pJb",null);return x;})();b.z4a=t;},71398:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.A4a=void 0;d=a(22970);n=a(91176);c=a(66164);f=a(31413);t=(function(){function g(e,h,k,l,m,p,r,q,u){this.M=e;this.la=h;this.gd=k;this.events=l;this.Ra=m;this.dDc=p;this.sj=r;this.wrb=q;this.console=u;this.xC=0;m.qX && c.platform.ping && c.platform.ping(m.qX);!1;}Object.defineProperties(g.prototype,{AI:{get:function(){return this.xC;},enumerable:!1,configurable:!0}});g.prototype.lXa=function(e,h,k,l,m){this.qv && (this.qv.Ka(),this.qv=void 0);this.qv=new f.Dgb(this.la,this.gd,this.events,this.Ra,e,h,k,l,m,this.Zm,this.W7.bind(this),this.console);};Object.defineProperties(g.prototype,{Gt:{get:function(){return void 0 !== this.moa?"embedded":this.Ra.type;},enumerable:!1,configurable:!0}});g.prototype.koc=function(){var e;e=this.M;(0,n.assert)(e.Oc,"livePositionService must be defined");return e.Oc.bNa(this.Ra.Pa).G;};g.prototype.MQa=function(e){var h,k;k=this.koc();return {$h:e,pv:null !== (h=this.moa) && void 0 !== h?h:this.Ra.xj,Xb:this.Ra.Xb,eb:this.Ra.au(),$Ja:k,ZJa:this.oyc,IRb:this.M.J};};g.prototype.rta=function(e){var h,k,l,m;this.qv && (this.qv.Ka(),this.qv=void 0);!1;try{h=this.W7(e);k={$h:e,pv:this.Ra.xj,Xb:this.Ra.Xb,Gt:this.Gt,DG:h};if(this.M.Eb || "embedded" === this.Gt){if(this.la.config.oQ){l=this.MQa(e);m=d.__assign(d.__assign(d.__assign(d.__assign({type:"adBreakEvent"},this.Ra.NJ.complete || ({event:"adBreakComplete"})),k),l),{Rca:this.Ra.duration.G,Zm:this.Zm});!1;this.events.emit(m.type,m);}}else (m=d.__assign(d.__assign(d.__assign({type:"adBreakEvent"},this.Ra.NJ.complete || ({event:"adBreakComplete"})),k),{IRb:this.M.J}),!1,this.events.emit(m.type,m));this.Ra.TZ=!0;}catch(p){this.console.error("Impression error event",p);this.xC++;}};g.prototype.$Fb=function(e,h){var k,l,m;!1;this.oyc=e.offset.G;this.EBb=h;if((this.M.Eb || "embedded" === this.Gt) && this.la.config.oQ)try{k=this.Ra.NJ.start || ({event:"adBreakStart"});l=this.MQa(e);this.Zm=this.bic();m=d.__assign(d.__assign(d.__assign({type:"adBreakEvent"},k),l),{Rca:e.offset.G,Gt:this.Gt,DG:l.pv,Zm:this.Zm});!1;this.events.emit(m.type,m);this.p_=l.pv;}catch(p){this.console.error("Impression error event",p);this.xC++;}};g.prototype.aGb=function(e,h){var k,l,m,p,r,q;!1;if((this.M.Eb || "embedded" === this.Gt) && this.la.config.oQ)try{l=h || this.la.player.Ld;m=this.EBb?l.ea(this.EBb).G:0;p=this.Ra.NJ.stop || ({event:"adBreakStop"});r=this.p_?this.p_ + m:this.W7(e);q=d.__assign(d.__assign(d.__assign({type:"adBreakEvent"},p),this.MQa(e)),{Rca:m,Gt:this.Gt,DG:r,Zm:this.Zm});null === (k=this.qv) || void 0 === k?void 0:k.Ka();!1;this.events.emit(q.type,q);}catch(u){this.console.error("Impression error event",u);this.xC++;}return r;};g.prototype.jXa=function(e,h){var k;!1;void 0 !== this.moa?!1:(this.p_=this.moa=null !== (k=this.aGb(e)) && void 0 !== k?k:0,this.$Fb(e,h));};g.prototype.Ka=function(){var e;null === (e=this.qv) || void 0 === e?void 0:e.Ka();};g.prototype.xq=function(){var e;return {ad:null === (e=this.qv) || void 0 === e?void 0:e.xq(),errors:this.xC};};g.prototype.W7=function(e){var h,k,l,r;k=this.sj.gD(e);if(!k){!1;if(this.p_){e=this.dDc || this.Ra;if(void 0 !== this.moa){l=e.Kb[e.Kb.length - 1];return this.p_ + ((null === l || void 0 === l?void 0:l.duration) || n.I.ia).G;}k=e.duration;try{for(var m=d.__values(e.Kb.reverse()),p=m.next();!p.done;p=m.next()){r=p.value;if(r.ai)break;else k=k.ea(r.duration);}}catch(q){l={error:q};}finally{try{p && !p.done && (h=m.return) && h.call(m);}finally{if(l)throw l.error;}}!1;return this.p_ + k.G;}l=this.la.ns(e).Pa.ea(this.Ra.Pa);l=this.Ra.location.add(l);!1;return l.G;}return this.Ra.location.add(k.progress.llb).G;};g.prototype.bic=function(){var e,h;if("embedded" === this.Gt)return null !== (h=null === (e=this.M.S) || void 0 === e?void 0:e.Hd) && void 0 !== h && h.Hj?this.wrb && this.wrb.Tac(this.Ra.Xb)?"Failed":this.Ra.VL?"MissedOpportunity":"daiPrefetch" === this.Ra.source || "hydration" === this.Ra.source?"ServerRespondedWithEmbedded":"Failed":"DAINotSupported";};return g;})();b.A4a=t;},40345:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u,v,w;function d(x,y,A){return x && x.Jnc === y && x.to.L === A.L && x.to.offset.G === A.offset.G;}function n(x){return null === x || void 0 === x?void 0:x.lb.map(function(y){var A,z;z=(y.Kb || []).map(function(B){return ("").concat(B.id);}).join(",");return ("[").concat(null !== (A=y.eb) && void 0 !== A?A:"",":").concat(y.source,":[").concat(z,"]");}).join(",");}Object.defineProperties(b,{__esModule:{value:!0}});b.B4a=void 0;c=a(22970);f=a(90745);g=a(79048);e=a(91176);h=a(66164);k=a(48170);l=a(52571);m=a(61996);p=a(54366);r=a(94328);q=a(45991);u=a(8707);v=a(14314);w=a(14103);t=(function(){function x(y,A,z,B,C,D,F){var H;H=this;this.config=y;this.console=A;this.Da=z;this.de=B;this.Wi=C;this.NAb=D;this.az=F;this.rv={};this.jla=this.oka=!1;this.mjb=new WeakMap();this.events=new f.EventEmitter();this.console=(0,e.Df)(h.platform,this.console,"ADCOMPOSER");C.events.on("adsUpdated",function(E){return H.RBc(E.M);});this.ck=new m.zm({qj:this,source:"ad-composer",xg:10,console:A});this.p5b=new v.w4a(this.console,this.config);this.Da.Xe.Sc(new p.On(this.ck));this.Da.EC.events.on("onDeciding",function(E){k.l && H.console.trace("Handling branch decision event",{id:E.ga.id});(E=c.__read(H.Da.Ya.dn(E.ga.id).filter(function(G){return G.Wl;}),1)[0]) && H.WH(E.M);});this.Da.events.on("branchEnqueued",function(E){var G,J,L;k.l && H.console.trace("Handling branch enqueued event",{id:E.oa.K.id});G=H.sj.RQ(E.oa.K.id);if(null === G || void 0 === G?0:G.eb)(H.Tn.ZLa(G.eb),H.WH(E.oa.M));else if(void 0 !== (null === G || void 0 === G?void 0:G.Xb) && E.oa.M.Eb){J=void 0;L=H.Rh.sx[E.oa.M.J];L && (J=L[G.Xb],J.eb && (H.Tn.ZLa(J.eb),H.WH(E.oa.M)));k.l && H.console.log("Handled branch enqueued event for embedded ad break",{index:G.Xb,vxa:null === J || void 0 === J?void 0:J.eb});}});this.Da.EC.j6b(function(E,G){var J;J=E.oa;if(H.Da.Ya.Npa(J))return G(E);k.l && H.console.trace("Disallowing tracking due to no children",{K:J.K.id});return {result:!1};});this.Da.events.on("segmentNormalized",function(E){var G;G=H.Da.Jb.vDb(E.segmentId);k.l && H.console.trace("Handling segment normalized event",{id:E.segmentId},("mapped to ").concat(G));G && H.LFc(G,E);});}Object.defineProperties(x.prototype,{zyc:{get:function(){return this.oka;},enumerable:!1,configurable:!0}});x.prototype.RBc=function(y){k.l && this.console.trace("Media events updated for viewable");this.WH(y);};x.prototype.WH=function(y,A){void 0 === A && (A=!1);(this.E6(y) || A) && this.events.emit("adsUpdated",{type:"adsUpdated"});};x.prototype.E6=function(y){var A,z,B,C,D;z=this.fNc(y);B=z.Ktb;C=z.rv;D=(0,u.cX)(B,C);z=D.qq;D=D.reason;if(z){if((k.l && this.console.trace("Updating metadata",{M:y.R,reason:D,tlb:n(C)}),this.ck.ug({c:z,ab:null === C || void 0 === C?void 0:C.lb.length}),null === C || void 0 === C?0:C.lb))(this.Rh.C0a(y.R,C.lb),this.XW.RMb(),k.l && this.console.trace("Received ad metadata for",{M:y.R,tlb:n(C)}));}else if(C && B && (D=null === (A=this.mjb.get(B)) || void 0 === A?void 0:A.map(function(F){return F.Fx || F.Gx;}),y=this.$nb(y.J,C,y).map(function(F){return F.Fx || F.Gx;}),void 0 !== D && (A=(0,e.Imb)(D,y,function(F,H){var E,G;E=Array.isArray(F);G=Array.isArray(H);return E && G?0 === (0,e.Imb)(F,H).length:E || G?!1:F === H;}),k.l && this.console.trace("Dropped ads diff",{mDc:y,jbd:D,Iv:A}),0 !== A.length)))return (k.l && this.console.trace("Dropped ads changed",{Ktb:B,mDc:y}),!0);return z;};x.prototype.fNc=function(y){var A,z;A=this.loc(y);z=this.rv[y.R];this.rv[y.R]=A;return {Ktb:z,rv:A};};Object.defineProperties(x.prototype,{wqa:{get:function(){return this.Da.Z;},enumerable:!1,configurable:!0}});Object.defineProperties(x.prototype,{lb:{get:function(){return this.Rh.sx;},enumerable:!1,configurable:!0}});x.prototype.Tb=function(y,A,z){var B;B=this;this.Rh=y;this.sj=A;this.Tn=z;this.XW=new q.M4a(this.Rh,this.console,this.Da,this.config,this.az,this.Rka);this.Tn.events.on("adBreakHydrationSkipped",function(C){return B.WH(C.Nm);});this.Tn.events.on("adBreakHydrationFailed",function(C){B.WH(C.Nm);});this.Tn.events.on("adBreakHydrated",function(C){return B.E6(C.Nm);});this.Da.events.on("branchDestroyed",function(C){return B.OEc(C);});};x.prototype.OEc=function(y){var A,z,B,C,D,F,H,E,L,M;z=this;C=y.segmentId;if("pruned" === y.reason){y=this.sj.SQ(C);if(!y){D=this.Da.Z.ba[C];if(D){F=this.lb[D.J];H=(0,w.NQa)(C);H && F && H.WX >= F.length && (y=F[H.WX - 1],k.l && this.console.log("Inferring empty adbreak information for segment",{L:C}),y={Af:y,fd:D.J});}else k.l && this.console.log("Could not find segment in inner playgraph",{L:C});}if(y){k.l && this.console.log("cleaning up ad metadata for adinfo",{index:null === y || void 0 === y?void 0:y.Af.Xb,vxa:null === y || void 0 === y?void 0:y.Af.eb});F=y.fd;C=y.Af;D=this.Rh.sx[F];E=new Set();try{for(var G=c.__values(D),J=G.next();!J.done;J=G.next()){L=J.value;if(L.Xb < C.Xb)L.cf && E.add(L);else break;}}catch(P){var K;K={error:P};}finally{try{J && !J.done && (A=G.return) && A.call(G);}finally{if(K)throw K.error;}}K=this.az.get(F);0 < E.size && (A=Array.from(E),G=this.Wi.YQ(K),null === G || void 0 === G?void 0:G.xbc(A));if(!K.qp && y){A=Array.from(this.Da.Ya.values());G=Array.from(this.Da.player.Ya);A=(0,e.jX)(A,G);M=(0,e.TKa)(A.map(function(P){var I;return null === (I=z.sj.SQ(P.K.id)) || void 0 === I?void 0:I.Af;}).filter(e.$c));D.filter(function(P){return -1 === M.indexOf(P);}).forEach(function(P){P.Zx && E.add(P);});}0 < E.size && (C.ai || E.delete(y.Af),A=Array.from(E),y=K.qp && (null === (B=K.Hd) || void 0 === B?void 0:B.Hj),this.Tn.Qrb(A,!!y),this.WH(K));}}};x.prototype.Wv=function(){var y;y=this;return !!(0,e.cc)(Object.keys(this.lb),function(A){return 0 < y.lb[A].length;});};x.prototype.t0=function(y,A){var z,B,C,D,F;z=this.de.vk;(0,l.assert)(z,"Could not get graph location service");B=this.de.Z.ba[y.L].J;C=this.Da.Qx().filter(function(H){return H.J === B;})[0];if(null === C || void 0 === C?0:C.Eb){D=this.zLb(C,y);!(0,r.FSa)(y,D) && A && (A=this.de.ns(D),(0,l.assert)(A,"Could not get initial content position from seek position"),(0,l.assert)(A.J === C.J,"Initial content position should be in the same viewable"),A=A.Pa);y=D;}if(0 < this.Rh.s3a || (null === C || void 0 === C?0:C.Eb)){F=this.mK(this.de.Jb);z=z.IU(F);this.Rh.reset();}C=null === F || void 0 === F?void 0:F.Z;D=this.XW.Bmb(y,z,F);z=D.gm;y=D.eA;this.UBb=D.VYa;k.l && this.console.trace(("ads::seekStreaming: returning ").concat(JSON.stringify(z)));C=(C || this.Da.Z).ba[z.L];this.oka=!!C.type && -1 < [g.Gd.Rc,g.Gd.padding].indexOf(C.type);return {gm:z,xo:A,eA:y,Qsa:F};};x.prototype.IH=function(y,A,z){var B,C,D;B=!1;D=z;if(!A)return {cX:!1,XYa:!1,Nfa:D};this.Wi.IH(y);y.Eb && D && (D=this.zLb(y,D),(B=!(0,r.FSa)(D,z)) && (C=D));if((A=this.E6(y)) && D && this.Myb(D)){if(this.nNb(D,y))return c.__assign({cX:A,XYa:B,eA:C},this.VQb(D,"viewableReceived"));k.l && this.console.trace(("ads::onViewableReceived: should NOT consider preroll on seek:\n seekPosition (unchanged): ").concat(D,",\n didAppendData: ").concat(this.Da.Z8(),",\n enablePrerollForInitialSeek ").concat(this.Da.config.PY));}return {cX:A,XYa:B,eA:C,Nfa:D};};x.prototype.zLb=function(y,A){var z,B,C,D;z=this.de.Jb.get(A.L);if((null === z || void 0 === z?void 0:z.J) === y.J){B=y.fo();C=B.ea(z.ib);(0,l.assert)(0 <= C.G,"Seek segment should not begin after live edge");y=y.Oc.coa;z=(null === y || void 0 === y?void 0:y.ea(z.ib)) || e.I.dh;D=e.I.min(A.offset,C,z);k.l && this.console.trace(("ads::sanitizeLiveSeekPosition: ").concat(JSON.stringify(A),", ") + ("live edge target ").concat(B.ca(),", ") + ("live edge offset: ").concat(C.ca(),", ") + ("event end ").concat(null === y || void 0 === y?void 0:y.ca(),", event end offset: ").concat(z.ca()) + (" -> adjusted offset ").concat(D.ca()));return {L:A.L,offset:D};}return A;};x.prototype.sta=function(y,A){var z,B;this.E6(y);z=this.rv[y.R];(0,l.assert)(z,("adMetadata for viewable ").concat(y.J," should exist if an adBreak hydration was requested"));k.l && this.console.trace("ads::onAdBreakHydrated: Resetting branch decisions");B=this.Da.player;B.zk && this.Da.lo && this.Da.EC.xU(B.zk,B.Ld,!0);this.XW.RMb();k.l && this.console.trace("ads::onAdBreakHydrated: Received new ad metadata after adBreakHydration for",{M:y.R,tlb:n(z)});if(A)return this.VQb(A,"adBreakHydration");};x.prototype.VQb=function(y,A){var z,B,C,D,F;k.l && this.console.trace(("ads::updatePendingSeekPosition: ").concat(JSON.stringify(y)));z=this.de.vk;(0,l.assert)(z,"Could not get graph location service");B=this.mK(this.de.Jb);z=z.IU(B);C=B.Z;D=this.XW.Bmb(y,z,B);F=D.gm;D=D.eA;this.oka=!1;(C=C.ba[F.L]) || (C=this.Da.Z.ba[F.L]);this.oka=!!C.type && -1 < [g.Gd.Rc,g.Gd.padding].indexOf(C.type);z=null === z || void 0 === z?void 0:z.CI(F);k.l && this.console.trace("ads::updatePendingSeekPosition: should consider preroll on seek",{qbd:y,Nfa:z,eA:D,Z8:this.Da.Z8(),PY:this.Da.config.PY,reason:A});return {Nfa:z,eA:D,Qsa:B};};x.prototype.$nb=function(y,A,z){var B,C;B=this;C=A.lb.map(function(D,F){return B.XW.QG(B.lb[y][F],F,Number(y),B.NAb(),z);});k.l && this.console.debug("Calculated dropped ads",{context:{seeking:this.NAb()},result:C});this.mjb.set(A,C);return C;};x.prototype.mK=function(y){var A,z,B,C;A=this;z=y;B=y.Z;C=Object.keys(B.ba).map(function(D){return ("").concat(B.ba[D].J);});Object.keys(this.rv).forEach(function(D){var F,H,E;if(-1 !== C.indexOf(D)){F=parseInt(D);H=A.rv[D];if(H){E=A.az.get(F);(0,l.assert)(E,"AdComposer::createInnerWorkingPlaygraph: viewable should exist");E=A.$nb(F,H,E);A.ck.ug({droppedAds:E.map(function(G,J){return {Sfa:G,jTa:J};}).slice(-5),viewableId:D});D=E.map(function(G){return G.Fx || G.Gx;});H.lb.forEach(function(G){var J;if("dynamic" === G.type){J=A.Rh.Koa(F,G.Pa);G.fbd=(null === J || void 0 === J?void 0:J.duration) || e.I.ia;}});E=new Set();H=(0,g.Cec)(F,H.lb,E,D,A.config.Tta,!1);D=g.rF.create(H);D=g.rF.qo(y,D);k.l && A.console.trace("Creating new ads playgraph",{N4c:H,Sad:D.Tba.Z});z=D.Tba;}}});z.m7(this.Da.Jb);return z;};x.prototype.Myb=function(y){return !!this.rv[this.de.Z.ba[y.L].J];};x.prototype.loc=function(y){var A,z,B,C;A=this;z=this.Wi.OG(y);if(y.Hd){C=y.Hd;C.lb.length && (B=z?this.bCc(C,z,y):{lb:c.__spreadArray([],c.__read(C.lb),!1)});}!B && z && (B={lb:z});B && (B=this.Tn.r9(B),B=this.Rka.r9(y,B),B.lb.forEach(function(D){var F,H;"dynamic" === D.type && y.qp && D.Kb && (null === (F=D.Gk) || void 0 === F?0:F.ea(D.duration).greaterThan(e.I.Ba(A.config.sBc))) && (F=D.Pa.add(D.duration),F=(null === (H=A.Da.wR.Mx({Pa:F,J:y.J},{imb:!0})) || void 0 === H?void 0:H.qa) || F,D.Kb.push({id:y.J,Ua:F.G,fb:D.Pa.add(D.Gk).G,c_:!1,Un:!0}),D.duration=D.Gk,k.l && A.console.trace("ads::getAdMetadata: adding additional embedded ad",{eb:D.eb,J:y.J,Kb:D.Kb.length}));}),B=this.p5b.r9(y,B));return B;};x.prototype.bCc=function(y,A,z){var B,C,D,F,H,E,G;if(y.dLb)return {lb:A};F={};y.lb.forEach(function(J){F[J.location.G]=J;});H={};A.forEach(function(J){H[J.location.G]=J;});k.l && this.console.trace("ads::mergeReplacedAds viewableRecords",{Fed:y.lb.map(function(J){return J.location.G;}),sad:A.map(function(J){return J.location.G;}),Ccd:null === (D=null === (C=null === (B=z.di.model.AL) || void 0 === B?void 0:B.YD) || void 0 === C?void 0:C.Pa) || void 0 === D?void 0:D.ca()});E=(0,e.VKa)(Object.keys(F),Object.keys(H));G=[];F["0"] && -1 === E.indexOf("0") && G.push(F["0"]);E.forEach(function(J){var L;L=H[J];J=c.__assign(c.__assign({},F[J]),{Gk:L.duration,location:L.location,Pa:L.Pa,fw:L.fw,xj:L.xj,eb:L.eb,Qm:!0});G.push(J);});this.jla || (y=Object.keys(F).filter(function(J){return 0 !== Number(J) && -1 === E.indexOf(J);}).map(function(J){return Number(J);}),A=Object.keys(H).filter(function(J){return -1 === E.indexOf(J);}).map(function(J){return Number(J);}),(y.length || A.length) && this.zMc(y,A),this.jla=!0);return {lb:G};};x.prototype.DOa=function(y){var A,z,B,C;A=this;k.l && this.console.log("ads::dropErroredAd",{slb:y});z=Array.from(this.az.keys()).filter(function(D){var F;return null === (F=A.Rh.sx[D]) || void 0 === F?void 0:F.some(function(H){var E;return null === (E=H.Kb) || void 0 === E?void 0:E.some(function(G){return G.id === y;});});});this.Rh.DOa(y);B=this.Da.player;B.zk && this.Da.lo && this.Da.EC.xU(B.zk,B.Ld,!0);z.length && this.events.emit("adSegmentDropped",{type:"adSegmentDropped",adId:y});z.map(function(D){D=A.az.get(Number(D));C || (C=D);D && A.WH(D);});C && this.WH(C,!0);k.l && this.console.log("ads::dropErroredAd",{slb:y,D9c:z,c9c:!!C});};x.prototype.zMc=function(y,A){this.jla || (this.events.emit("advertsMismatch",{type:"advertsMismatch",manifestUnmatchedAdBreakLocations:y,mediaEventsUnmatchedAdBreakLocations:A,sev:y.length?"warn":"info"}),this.jla=!0);};x.prototype.e1a=function(y,A,z){var B;return this.XW.e1a(y,A,z,null === (B=this.wqa) || void 0 === B?void 0:B.sf);};x.prototype.nNb=function(y,A){var z,B,C,D,F,H;C=this.Da.config.PY;D=y.L;F=this.Da.Z.ba[D] || this.de.Z.ba[D];H=e.I.ia;F?(A=A || this.Da.Qx().filter(function(E){return E.J === F.J;})[0],H=(null === A || void 0 === A?0:A.Eb) && (null === (z=A.nj) || void 0 === z?0:z.startTime)?A.Oc.aqb(e.I.ia):e.I.ia,k.l && this.console.warn(("ads::shouldConsiderPrerollOnSeek Inferring offset ").concat(H.G," as origin"))):k.l && this.console.warn("ads::shouldConsiderPrerollOnSeek: segment not found",{L:D});z=y.offset.G === H.G;A=this.Da.Z8();return z || (A?d(this.UBb,null === (B=this.Da.player.PK()) || void 0 === B?void 0:B.K.id,y)?this.UBb.$tc:!0:C);};x.prototype.yQa=function(y,A){var z,D;(0,l.assert)(void 0 !== A.Xb || void 0 !== A.eb,"adInfo must have adBreakIndex or adBreakTriggerId");y=this.Rh.sx[y];k.l && this.console.trace("Searching adBreak by index",{Xb:A.Xb});if(void 0 !== A.Xb && y)return y[A.Xb];k.l && this.console.trace("Searching adBreak by triggerId",{eb:A.eb,lb:null === y || void 0 === y?void 0:y.map(function(H){return H.eb;})});if(void 0 !== A.eb && y)try{for(var B=c.__values(y),C=B.next();!C.done;C=B.next()){D=C.value;if(D.eb === A.eb)return D;}}catch(H){var F;F={error:H};}finally{try{C && !C.done && (z=B.return) && z.call(B);}finally{if(F)throw F.error;}}k.l && this.console.trace("Could not find ad-break");};x.prototype.LFc=function(y,A){var z,B,C;B=this.sj.Hvb({L:y,offset:e.I.ia});if(B && B.Rc){y=B.Ra;C=B.Rc;B=B.OJ;this.console.trace(("ads::onSegmentNormalized ").concat(A.segmentId,": ").concat(A.normalizedStart.ca()," - ").concat(A.normalizedEnd.ca()));C.normalize(A.normalizedStart,A.normalizedEnd);B === (null === (z=y.Kb) || void 0 === z?NaN:z.length) - 1 && this.events.emit("adBreakNormalized",{type:"adBreakNormalized",Ra:y});}};c.__decorate([(0,m.gb)({methodName:"_refreshAds",Re:!0})],x.prototype,"E6",null);c.__decorate([(0,m.gb)({methodName:"onAdBreakHydrated"})],x.prototype,"sta",null);c.__decorate([(0,m.gb)({methodName:"createInnerWorkingPlaygraph"})],x.prototype,"mK",null);return x;})();b.B4a=t;},13303:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.C4a=void 0;d=a(22970);n=a(91176);c=a(48170);t=(function(){function f(g,e,h,k,l){this.Im=g;this.Bd=e;this.Wi=h;this.az=k;this.console=l;this.gva=[];this.Bd.Rka=this;}f.prototype.quc=function(g){return this.gva.some(function(e){return e.iKa === g;});};f.prototype.KSa=function(g){var e,h,k,l,m,q,u,v,w,A;if(this.Im.player.Ya.some(function(B){return B.K.J === g && B.OKa;}))return !1;if(this.gva.some(function(B){return B.iKa === g;}))return !0;try{for(var p=d.__values(Object.keys(this.Bd.rv)),r=p.next();!r.done;r=p.next()){q=r.value;u=this.Bd.rv[q];u && (m=u.lb.some(function(B){var C;return null === (C=B.Kb) || void 0 === C?void 0:C.some(function(D){return D.id === g;});}));if(!m){v=this.az.get(Number(q));if(v){w=this.Wi.YQ(v);if(w)try{for(var x=(h=void 0,d.__values(w.IRc)),y=x.next();!y.done;y=x.next()){A=y.value[0];if(m=null === (l=null === A || void 0 === A?void 0:A.Kb) || void 0 === l?void 0:l.some(function(B){return B.id === g;}))break;}}catch(B){h={error:B};}finally{try{y && !y.done && (k=x.return) && k.call(x);}finally{if(h)throw h.error;}}}}if(m)break;}}catch(B){var z;z={error:B};}finally{try{r && !r.done && (e=p.return) && e.call(p);}finally{if(z)throw z.error;}}return m?(this.gva.push({iKa:g}),this.Im.Ya.filter(function(B){return !B.Uf && B.K.J !== g;}).forEach(function(B){return B.Ryb=!0;}),this.Bd.DOa(g),!0):!1;};f.prototype.r9=function(g,e){var h;h=this;if(!g.Eb)return e;e.lb=e.lb.map(function(k,l){var m,p,r,q,u;if(!k.Kb)return k;p=g.Eb && (null === (m=g.Hd) || void 0 === m?void 0:m.Hj);r=!1;q=[];u=0;k.Kb.forEach(function(v){p && r || h.gva.some(function(w){return w.iKa === v.id;})?(r=!0,u++):q.push(v);});if(r)c.l && h.console.log("Dropping ads due to error",{Xb:l,I4c:k.eb,g7c:u});else return k;l=q.reduce(function(v,w){return v.add(n.I.Ba(w.fb - w.Ua));},n.I.ia);return d.__assign(d.__assign({},k),{Kb:q,l1:void 0,duration:l});});return e;};return f;})();b.C4a=t;},53787:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.D4a=void 0;d=a(90745);n=a(91967);t=(function(){function c(f,g,e){var h;h=this;this.Bd=g;this.Kj=new d.gf();this.Zl="adHydratorAudit";this.dc="adHydratorAuditor";this.enabled=!0;this.Kj.on(f.events,"adBreakPresenting",function(k){h.state.plb.push(k.presentingInfo.Ra.Af.Vq);});this.Kj.on(e.events,"adBreakHydrated",function(){h.state.nlb++;});this.Kj.on(e.events,"adBreakHydrationFailed",function(){h.state.mlb++;});this.Kj.on(e.events,"adBreakHydrationSkipped",function(){h.state.qlb++;});this.state={nlb:0,mlb:0,qlb:0,plb:[]};}c.prototype.Bh=function(f){f=f.Ii;if(this.Bd.Wv() && f === n.Lc.Jj)return {adBreaksPresentedSequence:this.state.plb,adBreaksHydratedCount:this.state.nlb,adBreaksFailedHydratedCount:this.state.mlb,adBreaksSkippedCount:this.state.qlb};};c.prototype.Ka=function(){this.Kj.clear();};return c;})();b.D4a=t;},60575:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.E4a=void 0;d=a(90745);n=a(91967);t=(function(){function c(f,g,e){var k;function h(l){var m,p;(m=k.state.dKa)[p=l.event] || (m[p]=0);k.state.dKa[l.event]++;}k=this;this.Bd=g;this.sR=e;this.Kj=new d.gf();this.Zl="adImpressionAudit";this.dc="adImpressionAuditor";this.enabled=!0;this.Kj.on(f.events,"adPresenting",function(){k.state.emb++;});this.Kj.on(f.events,"adBreakPresenting",function(l){var m,p,r,q;k.state.olb++;l=l.presentingInfo;l.Ra.Af.empty || k.state.rlb++;l.Ra.h_ || k.state.kCc++;(m=k.state.bKa)[p=l.Ra.type] || (m[p]=0);k.state.bKa[l.Ra.type]++;(r=k.state.aKa)[q=l.Ra.Af.source] || (r[q]=0);k.state.aKa[l.Ra.Af.source]++;});this.Kj.on(e.events,"adEvent",h);this.Kj.on(e.events,"adBreakEvent",h);this.state={olb:0,rlb:0,kCc:0,dKa:{},emb:0,bKa:{},aKa:{}};}c.prototype.Bh=function(f){f=f.Ii;if(this.Bd.Wv() && f === n.Lc.Jj)return {presented:{breaks:this.state.olb,breaksWithAds:this.state.rlb,ads:this.state.emb,adBreaksPresentedByType:this.state.bKa,adBreaksPresentedBySource:this.state.aKa},events:this.state.dKa,logger:this.sR.xq()};};c.prototype.Ka=function(){this.Kj.clear();};return c;})();b.E4a=t;},28143:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.G4a=void 0;d=a(90745);n=a(66164);c=a(69575);f=a(52571);g=a(48170);e=a(67288);h=a(71398);t=(function(){function k(l,m,p,r,q,u,v){this.wf=l;this.Js=m;this.sj=p;this.Wi=r;this.Da=q;this.gd=u;this.AI=0;this.events=new d.EventEmitter();this.console=(0,c.Df)(n.platform,v,"IMPRESSION");m.events.addListener("adBreakPresenting",this.ZFb.bind(this));m.events.addListener("adBreakComplete",this.rta.bind(this));m.events.addListener("adBreakFallback",this.jXa.bind(this));m.events.addListener("adPresenting",this.lXa.bind(this));this.Da.events.addListener("seeking",this.Fta.bind(this));this.Da.events.addListener("cancelingStreaming",this.hGb.bind(this));}Object.defineProperties(k.prototype,{maa:{get:function(){return !!this.Si;},enumerable:!1,configurable:!0}});k.prototype.aob=function(){var l,m;l=this.Da.player.t_;if(!l && this.Da.lo && this.Da.player.Vd){m=this.Da.player;l || (l={xo:m.Ld,position:m.Yg});}return l;};k.prototype.hGb=function(){var l;if(this.Si){l=this.aob();l && this.Si.aGb(l.position,l.xo);this.Si=void 0;}};k.prototype.ZFb=function(l){var m,p,r,q,u,v;g.l && this.console.trace("onAdBreakPresenting:",l);p="adBreakPresenting" === l.type || (0,e.Faa)(l)?l.presentingInfo.Ra.Af:l.Kna;(0,f.assert)(p,"Ad break must be defined for ad break presenting");r="adBreakPresenting" === l.type || (0,e.Faa)(l)?l.presentingInfo.position:l.position;this.Si && (this.Si.rta(r),"dynamic" === this.Si.Ra.type && (g.l && this.console.warn("Unexpected back-to-back dynamic ad breaks"),this.AI+=this.Si.AI,this.Si=void 0));q=this.Js.sj.xSa(r);(0,f.assert)(q,"uxViewableId must be defined for ad break presenting");q=this.wf.get(q);(0,f.assert)(q,"uxViewable must be defined for ad break presenting");u=this.Wi.YQ(q);v="adBreakPresenting" === l.type?null === (m=l.eventInfo) || void 0 === m?void 0:m.Ra:void 0;this.Si=new h.A4a(q,this.Da,this.gd,this.events,p,v,this.sj,u,this.console);this.Si.$Fb(r,l.xo);};k.prototype.rta=function(l){var m,p;p=(0,e.Faa)(l)?l.presentingInfo.Ra.Af:(0,e.tAb)(l)?l.Kna:null === (m=this.Si) || void 0 === m?void 0:m.Ra;g.l && this.console.trace(("adBreakComplete event, ").concat(this.Si?"have":"no"," impression logger, ") + (p?("ad break ").concat(p.Xb," is ") + ("").concat(p.Kb.length?"not ":"","empty, ") + ("has ").concat(p.ai?"":"not ","played"):"no ad break"));if(((0,e.Faa)(l) || (0,e.tAb)(l)) && 0 === p.Kb.length)((0,f.assert)(!this.Si,"Received ad break complete for empty ad break during ad break"),p.$Pc(),this.ZFb(l));else if(!this.Si)return;l=(0,e.Faa)(l)?l.presentingInfo.position:l.position;this.Si.rta(l);this.AI+=this.Si.AI;this.Si=void 0;};k.prototype.jXa=function(l){var m;if(this.Si){m=this.aob();m?this.Si.jXa(m.position,l.xo):g.l && this.console.warn("Recevied ad break fallback but unable to calculate lastPosition",l);}};k.prototype.lXa=function(l){var m,p,r,q,u;(0,f.assert)(this.Si,"Expect to be in ad break when ad presenting is received");(0,f.assert)(this.Si.Ra.Xb === (null === (m=l.presentingInfo) || void 0 === m?void 0:m.Ra.Af.Xb),"Expect to be in correct ad break when ad presenting is received");m=l.presentingInfo.position;r=this.Da.tZ(m.L)[0];q=l.xo;u=q.ea(m.offset);this.Si.lXa(null === (p=l.presentingInfo.PJ) || void 0 === p?void 0:p.Rc,null === r || void 0 === r?void 0:r.M,m,q,u);};k.prototype.Fta=function(l){!l.duplicate && this.Si && "embedded" === this.Si.Ra.type && this.hGb();};k.prototype.xq=function(){var l;return {"break":null === (l=this.Si) || void 0 === l?void 0:l.xq(),errors:this.AI};};return k;})();b.G4a=t;},13060:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y;Object.defineProperties(b,{__esModule:{value:!0}});b.H4a=void 0;d=a(90745);n=a(91176);c=a(66164);f=a(41456);g=a(54366);e=a(75462);h=a(10940);k=a(63026);l=a(40345);m=a(14103);p=a(67288);r=a(28143);q=a(13303);u=a(60575);v=a(31300);w=a(53787);x=a(14430);y=a(54953);t=(function(){function A(z,B,C,D,F,H,E){this.console=z;this.Ska=H;this.wf=new Map();this.lD=new WeakMap();z=(0,n.Df)(c.platform,z,"ADS");this.Wi=new f.Hbb(D,this.wf,B,z);this.Bd=new l.B4a(B,z,C,D,this.Wi,E,this.wf);this.sj=new m.N4a(z,C,D,this.Bd);this.Js=new p.web(this,C,z,this.wf);this.sR=new r.G4a(this.wf,this.Js,this.sj,this.Wi,C,C.gd,z);this.Tn=new v.z4a(F,D,D.Aj,B,z,this.sR.events);C.Xe.Sc(new u.E4a(this.Js,this.Bd,this.sR));C.Xe.Sc(new w.D4a(this.Js,this.Bd,this.Tn));C.Xe.Sc(new g.On(this.Wi.ck));C.Xe.Sc(new k.xcb(this.Wi.ica));this.Rh=new y.O4a(B,this.sR.events);new x.v4a(B,z,C,this.Bd,this.Tn,this.Rh,this.wf);C.z_.Sc(new e.sab(C,this.wf,this.sR.events,this.Rh,this.sj,z));C.z_.Sc(new h.tab(C,this.Tn.events,this.Wi.events));this.Rka=new q.C4a(C,this.Bd,this.Wi,this.wf,this.console);this.Bd.Tb(this.Rh,this.sj,this.Tn);}A.prototype.IH=function(z){var B,C;B=this;if(this.wf.get(z.J) === z || z.kn)return !1;this.gOa(z.J);C=new d.gf();this.lD.set(z,C);this.wf.set(z.J,z);C.addListener(z.events,"destructed",function(){!1;B.wf.get(z.J) === z && B.gOa(z.J);});return !0;};A.prototype.gOa=function(z){var B,C;B=this.wf.get(z);if(B){!1;C=this.lD.get(B);null === C || void 0 === C?void 0:C.clear();this.lD.delete(B);this.wf.delete(z);}};A.prototype.Ka=function(){var z;z=this;this.Wi.Ka();this.wf.forEach(function(B){z.gOa(B.J);});this.wf.clear();};A.prototype.$k=function(z){return this.Js.$k(z);};return A;})();b.H4a=t;},86681:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.s8=void 0;d=a(22970);n=a(40981);c=a(17774);f=a(75393);g=a(23855);b.s8=function(e,h,k){var l,m,p,r;e=d.__assign({rBa:n.qBa},e).rBa;l=h.Wca[5];m=(0,c.vGb)(function(){return r;});l.oKa(m.Ps);p={vk:void 0,de:void 0,Da:void 0,eCb:"ads"};p.vk=new e(function(){return p.de.Jb;},function(){return p.Da;},h.Wca[2],"Ads:");r=new g.K4a(p,m.KOb,f.RD.P_a.B1,l);e=h.MKa;h.MKa=d.__spreadArray(d.__spreadArray([],d.__read(e),!1),[r],!1);p.Da=k(h);p.de=f.RD.yZa(p.Da,r,function(){return p;},e);r.Tb();return p.de;};},23855:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperties(b,{__esModule:{value:!0}});b.K4a=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(48170);g=a(35331);e=a(61996);h=a(52571);t=a(14739);k=a(40666);l=a(13060);a=(function(m){function p(r,q,u,v){var w;w=m.call(this,r,q,u,"AdsPlaygraphHost") || this;w.nv=v;w.sF=void 0;w.PCb=new c.A5();w.Ska=new n.EventEmitter();v.oKa(function(x,y){return w.$kc(x,y);});return w;}d.__extends(p,m);Object.defineProperties(p.prototype,{de:{get:function(){return this.Qq.de;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Im:{get:function(){if(this.Z !== this.Da.Z)return this.Da.Z;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Cc:{get:function(){return this.sF;},enumerable:!1,configurable:!0}});p.prototype.$kc=function(r,q){var u,v,w,x,y,A,z;A=r.J;z=null === (v=null === (u=null === r || void 0 === r?void 0:r.dm) || void 0 === u?void 0:u.Rf) || void 0 === v?void 0:v.fd;u=this.Cc.Bd.lb[z];u=null !== (y=null !== (x=null === (w=r.dm) || void 0 === w?void 0:w.qs) && void 0 !== x?x:null === u || void 0 === u?void 0:u.some(function(B){return B.Kb.some(function(C){return C.id === A;});})) && void 0 !== y?y:!1;r=d.__assign(d.__assign({},r),{dm:d.__assign(d.__assign({},r.dm),{qs:u})});return q(r);};p.prototype.Tb=function(){var r;r=this;m.prototype.Tb.call(this);this.Qq.Da.Sc(new g.L4a(this.Qq));this.sF=new l.H4a(this.sb,this.Bb,this.Da,this.de,this.nv,this.Ska,function(){return !!r.tR;});this.Qq.Da.jPc(this.sF);this.Cc.Tn.events.on("adBreakHydrated",function(q){return r.RIb(q);});this.Cc.Tn.events.on("adBreakHydrationFailed",function(q){var u,v,w;(null === (u=q.Nm) || void 0 === u?0:u.Eb) && (null === (w=null === (v=q.Nm) || void 0 === v?void 0:v.Hd) || void 0 === w?0:w.Hj) || r.Vf({Ti:q.error.message,FYa:q.error});});this.sF.Bd.events.on("adsUpdated",function(){f.l && r.sb.log("AdPlaygraphHost::adsUpdated");r.hva();});this.Da.events.on("seeked",function(){r.tR && r.de.gd.Ut(k.$d.eya,function(){r.tR=void 0;},"clear in progress seek request");});};p.prototype.sM=function(r){var q,u,v,w,x;q=m.prototype.sM.call(this,r);if(q){(0,h.assert)(this.Cc,"missing manager");u=this.Cc.IH(r);r=this.Cc.Bd.IH(r,u,this.tR);u=r.XYa;v=r.Nfa;w=r.eA;x=r.Qsa;(r.cX || u) && this.Uua(x,v,w);}return q;};p.prototype.RIb=function(r){r=r.Nm;f.l && this.sb.log("AdPlaygraphHost::processAdBreakHydrationResponse");(0,h.assert)(this.Cc,"missing manager");(r=this.Cc.Bd.sta(r,this.tR))?this.Uua(r.Qsa,r.Nfa,r.eA):this.Uua();};p.prototype.Vf=function(r){var q,u;q=!1;u=!1;r.J && !r.k2a && (q=this.Cc.Rka.KSa(r.J));q?f.l && this.sb.log("AdPlaygraphHost::reportStreamingFailure streaming failure is recoverable"):u=this.Qq.Da.Vf(r);return u;};p.prototype.LM=function(r){var q,u,v,w;q=this;f.l && this.sb.log("Top level seek streaming call to ",r);this.Q0a(r);this.de.gd.Ut(k.$d.eya,function(){q.tR=void 0;},"clear in progress seek request");if(this.Cc.Bd.Myb(r)){f.l && this.sb.trace(("ads::seekStreaming: ").concat(JSON.stringify(r)));u=this.Cc.Bd.t0(r);v=u.gm;w=u.eA;if(u=u.Qsa)(f.l && this.sb.trace("ads::seekStreaming: ads playgraph was updated"),this.Uua(u,r));f.l && this.sb.trace(("ads::seekStreaming: forwarding seek to ").concat(JSON.stringify(v),", ") + ("entryPoint: ").concat(JSON.stringify(w)));this.Da.Yva(v,w);}else this.Da.LM(r);};p.prototype.Uua=function(r,q,u){var v;v=this;this.PCb.pla || this.PCb.wSb(function(){v.hva(r,v.de.Jb,q,u);v.Ska.emit("adPlaygraphUpdated",{type:"adPlaygraphUpdated"});});};p.prototype.mK=function(r){return this.Cc.Bd.mK(r);};p.prototype.Jg=function(r){m.prototype.Jg.call(this,r);this.tR=void 0;};p.prototype.Q0a=function(r){this.tR=r;};d.__decorate([(0,e.gb)({methodName:"ads::processViewableResponse"})],p.prototype,"sM",null);d.__decorate([(0,e.gb)({methodName:"ads::processAdBreakHydrationResponse"})],p.prototype,"RIb",null);d.__decorate([(0,e.gb)({methodName:"ads::reportStreamingFailure"})],p.prototype,"Vf",null);d.__decorate([(0,e.gb)({methodName:"ads::seekStreaming"})],p.prototype,"LM",null);d.__decorate([(0,e.gb)({methodName:"ads::cancelStreaming"})],p.prototype,"Jg",null);return p;})(t.DFa);b.K4a=a;},45991:function(t,b,a){var n,c,f,g,e,h,k,l,m,p,r,q;function d(u,v){var w;w=v && u.ba[v];if(w)return w.type !== c.Gd.content?d(u,w.Gc):v;}Object.defineProperties(b,{__esModule:{value:!0}});b.M4a=void 0;n=a(91176);c=a(79048);f=a(48170);g=a(52571);e=a(14103);h=a(3758);k=a(88700);l=a(15905);m=a(73803);p=a(70778);r=a(45496);q=a(77184);t=(function(){function u(v,w,x,y,A,z){this.Rh=v;this.console=w;this.Da=x;this.config=y;this.az=A;this.Ric=[new q.ffb(w),new h.efb(w),new r.gfb(),new k.wab(y,w),new l.W7a(),new m.V7a(z),new p.Lcb()].filter(n.$c);}u.prototype.RMb=function(){this.Aka=void 0;};u.prototype.QG=function(v,w,x,y,A){var z,B,C;B=(null === A || void 0 === A?void 0:A.J) === x?A:this.Da.Qx().filter(function(D){return D.J === x;})[0];A=Array.from(this.Da.player.Ya).map(function(D){return D.K;});C=null === (z=this.Da.Cc) || void 0 === z?void 0:z.sj;z=this.Da.player.PK();v={aDb:B,Ra:v,$ic:y,Xb:w,TJ:A.map(function(D){return null === C || void 0 === C?void 0:C.SQ(D.id);}).filter(n.$c),vyc:z && (null === C || void 0 === C?void 0:C.SQ(z.K.id))};y=this.Ric.map(function(D){return D.QG.bind(D);});v=n.OE.kL(v,y);f.l && this.console.info("Evaluated ad-break drop",{Xb:w,V4c:A.map(function(D){return D.id;}),result:v});return v;};u.prototype.xxc=function(v,w){var x;return v.offset.equal(n.I.ia)?!0:w.Eb && (null === (x=w.nj) || void 0 === x?0:x.startTime)?(w=w.Oc.aqb(n.I.ia),this.console.trace(("Checking ").concat(v.offset.G," against ").concat(w.G," for live seek")),v.offset.G === w.G):!1;};u.prototype.Bmb=function(v,w,x){var y,A,z,B,C,D,F,H,E,G,J,L;void 0 === x && (x=this.Da.Jb);B=x.Z;C=null === (y=x.JH.get(v.L)) || void 0 === y?void 0:y.J;(0,g.assert)(void 0 !== C,"AdPolicies::applyAdPoliciesToSeekPosition: viewableId must exist in outermost playgraph");D=this.Rh.sx[C];F=y=w.tG(v);H=B.ba[y.L];f.l && this.console.debug("AdPolicies::applyAdPoliciesToSeekPosition",{gm:v,xOa:y});C=this.az.get(C);(0,g.assert)(C,"AdPolicies::applyAdPoliciesToSeekPosition: viewable must exist");if(this.xxc(y,C))E=this.SRa(B,D,y);else {H.type === c.Gd.padding && (y={L:H.Gc,offset:n.I.ia});G=null === (A=this.Da.player.PK()) || void 0 === A?void 0:A.K.id;if(G)J=G;else (A=d(B,B.sf),this.Da.lo && this.Da.player.Xv || this.Da.Z8() || A !== y.L || !this.config.PY?J=A:E=this.SRa(B,D,w.tG({L:v.L,offset:n.I.ia})));!E && J && (f.l && this.console.trace(("ads::seekStreaming: seek from segment ").concat(J)),E=this.Lrc(J,y,x));}v=!(null === (z=C.Hd) || void 0 === z || !z.Hj);if(E && !v)if(E.L){F={L:E.L,offset:n.I.ia};f.l && this.console.debug("AdPolicies::applyAdPoliciesToSeekPosition adjusting entrypoint",{xOa:y});H.type === c.Gd.Rc && (y={L:y.L,offset:n.I.ia},f.l && this.console.debug("AdPolicies::applyAdPoliciesToSeekPosition snapping entrypoint to beginning of ad",{xOa:y}));L=y;}else H.type !== c.Gd.Rc && (this.Aka=E.Ra);z={$tc:v?H.type === c.Gd.Rc:!!E,Jnc:J,to:y};L || H.type !== c.Gd.Rc || v || (f.l && this.console.debug("AdPolicies::applyAdPoliciesToSeekPosition seeking to an ad, defaulting entryPoint",{eA:L,xOa:y}),y.offset.greaterThan(n.I.ia) && (f.l && this.console.debug("AdPolicies::resetting seek position to beginning of ad"),y={L:y.L,offset:n.I.ia}),F=L=y);f.l && this.console.debug("AdPolicies::applyAdPoliciesToSeekPosition returning: ",("{ seekPosition: ").concat(F,", entryPoint: ").concat(L,", policy: ").concat(z));return {gm:F,eA:L,VYa:z};};u.prototype.e1a=function(v,w,x,y){if(this.Aka)return (w=this.Aka,this.Aka=void 0,w);if((v=this.Rh.sx[v]) && v.length)if(x && w.L === y && w.offset.equal(n.I.ia)){if((w=v[0],0 === w.location.G && w.empty && !w.ai && !w.TZ))return w;}else if(!x)return this.UQa(w.L,v);};u.prototype.Lrc=function(v,w,x){var y,A,z,B,C,D,F;f.l && this.console.trace("AdPoliciesManager: getPrerollAdOnSeek: " + ("from ").concat(v," to ").concat(JSON.stringify(w)));if(x){A=x.LL(w.L);(0,g.assert)(A,"inner WorkingPlaygraph segmentId should map correctly to outermost");z=this.Rh.sx[x.JH.Z.ba[A].J];B=x.Z.ba;C=null === (y=B[v]) || void 0 === y?void 0:y.Gc;B[v] || (C=this.Da.Z.ba[v].Gc);D=void 0;F=void 0;v=function(){var E,G,J;E=B[C];if(!E)return (H.console.warn(("AdPoliciesManager: getPrerollOnSeek: segment ").concat(C," not found")),"break");if(E.type === c.Gd.content && (D === c.Gd.content || void 0 === D) && z){G=H.UQa(C,z);G && (F={Ra:G});}if(C === w.L)return (G=(E=F && !F.L) || D && D !== c.Gd.content?F:void 0,f.l && H.console.trace("AdPoliciesManager: getPrerollOnSeek: returning",{result:G,t$c:F,c8c:E}),{value:G});if(E.type === c.Gd.Rc && D !== c.Gd.Rc){f.l && H.console.trace(("AdPoliciesManager: getPrerollOnSeek: found start of ad break: ").concat(C));J=(0,e.RQ)(C);(0,g.assert)(J,"AdPoliciesManager: getPrerollOnSeek: Unable to find ad from ad segmentId");(G=void 0 !== J.Xb?z[J.Xb]:(0,n.cc)(z,function(L){return L.eb === J.eb;})) && (F={L:C,Ra:G});}D=E.type;C=E.Gc;};for(var H=this;C;){x=v();if("object" === typeof x)return x.value;if("break" === x)break;}}f.l && this.console.trace("AdPoliciesManager: getPrerollOnSeek: returning undefined");};u.prototype.SRa=function(v,w,x){var y,A,z;y=v.ba;x=x.L;A=y[x];if(A){A=A.type;if(A === c.Gd.padding)return this.SRa(v,w,{L:y[x].Gc,offset:n.I.ia});f.l && this.console.trace("AdPoliciesManager: getPrerollAdBreakForPlaygraph",x);if(A === c.Gd.Rc){z=(0,e.RQ)(x);(0,g.assert)(z,"getPrerollAdBreakForPlaygraph: getPrerollSegmentId: Unable to find ad from ad segmentId");w=void 0 !== z.Xb?w[z.Xb]:(0,n.cc)(w,function(B){return B.eb === z.eb;});(0,g.assert)(w,"getPrerollAdBreakForPlaygraph: Unable to find ad break");return {L:x,Ra:w};}if(A === c.Gd.content){if(v=this.UQa(x,w))return {Ra:v};w=this.frc(x,w);if("dynamic" === (null === w || void 0 === w?void 0:w.type))return {L:x,Ra:w};}else f.l && (0,g.assert)(!0,"Can't get preroll; initial segment was padding and it had no default next segment");}else f.l && this.console.warn(("AdPoliciesManager: getPrerollAdBreakForPlaygraph: segment ").concat(x," not found"));};u.prototype.UQa=function(v,w){v=(0,e.NQa)(v);(0,g.assert)(v,"Should have contentInfo from segment name");if(0 < v.WX)if((w=w[v.WX - 1],f.l && this.console.trace("getEmptyAdForSegment",{b9c:!!w,Ra:w && ({index:w.Xb,empty:w.empty,ai:w.ai,TZ:w.TZ,source:w.source})}),!w))f.l && this.console.warn("AdPoliciesManager: getNonEmptyAdForSegment: adBreak not found");else if(w.empty && !w.ai && !w.TZ)return w;};u.prototype.frc=function(v,w){v=(0,e.NQa)(v);(0,g.assert)(v,"Should have contentInfo from segment name");if(0 < v.WX)if((w=w[v.WX - 1],!w))f.l && this.console.warn("AdPoliciesManager: getNonEmptyAdForSegment: adBreak not found");else if(!w.empty && !w.ai && !w.TZ)return w;};return u;})();b.M4a=t;},14103:function(t,b,a){var n,c,f,g,e,h,k;function d(l){var m;m=(/^.+:ad\-(\d+)\-(\d+)(-F)?$/).exec(l);if(m)return {OJ:parseInt(m[2]),Xb:parseInt(m[1]),qL:!1};if(m=(/^.+:q\-\[(.+)\]\-(\d+)(-F)?$/).exec(l))return {OJ:parseInt(m[2]),eb:m[1],qL:!1};if(l=(/^.+:pad((end)|(start))-(\d+)(-F)?$/).exec(l))return {Xb:parseInt(l[4]),qL:!0,G0:l[1]};}Object.defineProperties(b,{__esModule:{value:!0}});b.N4a=void 0;b.RQ=d;b.NQa=function(l){if(l=(/^.+-(\d+)(-F)?$/).exec(l))return {WX:parseInt(l[1])};};n=a(22970);c=a(66164);f=a(91176);g=a(79048);e=a(48170);h=a(51308);k=a(81749);t=(function(){function l(m,p,r,q){this.console=m;this.Im=p;this.de=r;this.Bd=q;this.console=(0,f.Df)(c.platform,this.console,"ADPOSITIONSERVICE");}l.prototype.moc=function(m){var p,r,q,u,v,w,x,y,A,z;q=d(null === m || void 0 === m?void 0:m.L);u=this.Im.Jb;u.get(m.L);x=u.uH(m.L);y=[m.L];if(x){A=u.kH.KK(m.L);for(w=A.next();!w.done;){w=w.value;z=u.uH(w.id);if(!w || z !== x || w.type === g.Gd.content)break;y.push(w.id);w=A.next();}}u=null !== (v=y.pop()) && void 0 !== v?v:m.L;v=d(u);m=this.Im.Z.ba[m.L];u=this.Im.Z.ba[u];m=(null !== (p=m.fb) && void 0 !== p?p:Infinity) - m.Ua;p=(null !== (r=u.fb) && void 0 !== r?r:Infinity) - u.Ua;return {start:(null === q || void 0 === q?0:q.qL)?new k.$ya(h.Aga.start,m):void 0,end:(null === v || void 0 === v?0:v.qL)?new k.$ya(h.Aga.end,p):void 0};};Object.defineProperties(l.prototype,{pM:{get:function(){if(this.Im.player.Vd)return this.gD(this.Im.player.Yg);},enumerable:!1,configurable:!0}});l.prototype.gD=function(m){var p,r,q,u,v,w,x,y,A,z,B,C,D;p=this.Hvb(m);e.l && this.console.debug("getPresentingAdBreak",m,p);if(p){r=p.Ra;q=p.Xb;u=p.Rc;v=p.OJ;w=p.G0;if(r){(0,f.assert)(void 0 !== q,"adBreakIndex should be defined");x=this.moc(m);x=new k.f5a(r,x.start,x.end);y=this.Im.Jb;y.get(m.L);z=-m.offset.G;B=y.uH(m.L);if(B){C=y.kH.KK(m.L);for(A=C.next();!A.done;){A=A.value;D=y.uH(A.id);if(!A || D !== B || A.type === g.Gd.content)break;z+=A.fb - A.Ua;A=C.next();}}y=f.I.Ba(z);z=y.ea(x.SY.duration);"end" === p.G0?z=f.I.ia:"start" === p.G0 && (B=x.Kea.duration.ea(m.offset),z=z.ea(B));r={Ra:x,progress:{llb:r.duration.ea(z),t5b:1 - Math.max(0,z.G) / r.duration.G,u5b:x.duration.ea(y),v5b:1 - Math.max(0,y.G) / x.duration.G},position:m,index:q};q=this.Im.Z.ba[m.L];q=q.fb - q.Ua;m=m.offset.G / q;w?r.fYa={IGc:m,Vta:p.G0,Sta:f.I.Ba(q)}:u && ((0,f.assert)(void 0 !== v,"adIndex should be defined"),r.PJ={Rc:u,ulb:m,index:v});return r;}this.console.error("getPresentingAdBreak unable to find adBreak,","position:",m,"adInfo:",p);}else e.l && this.console.debug("getPresentingAdBreak could not find ad data for position",m);};l.prototype.Hvb=function(m){var p,r,q;r=m.L;e.l && this.console.debug("getAdDataForSegment",r,m);m=this.xSa(m);if(void 0 === m)e.l && this.console.debug("getAdDataForSegment could not find viewable for position");else {if(r=d(r)){m=this.Bd.yQa(m,r);(0,f.assert)(m,"adBreak should be defined");if(r.qL)return {Ra:m,Xb:r.Xb,G0:r.G0};q=r.OJ;r=null !== (p=r.Xb) && void 0 !== p?p:m.Xb;return {Ra:m,Xb:r,Rc:m.Kb[q],OJ:q};}e.l && this.console.debug("Could not get ad info for segment name");}};l.prototype.Cpc=function(m,p){var r;r=this.xSa(m);if(void 0 !== r)return this.Bd.e1a(r,m,p);};l.prototype.RQ=function(m){return d(m);};l.prototype.SQ=function(m){var p,r,q,u;p=d(m);if(p){r=void 0;r=this.Im.Z.ba[m]?this.Im.Jb.uH(m):this.Im.wR.Jb.LL(m);q=m=void 0;if(r)if((q=this.de.Z.ba[r].J,r=this.Bd.lb[q],(0,f.assert)(r,"viewableAds should be defined"),void 0 !== p.Xb))m=r[p.Xb];else if(p.eb){u=p.eb;m=r.filter(function(v){return v.eb === u;})[0];}(0,f.assert)(m,"adBreakInfo should be defined");p=n.__rest(p,["adBreakIndex","adBreakTriggerId"]);return {Af:m,YYa:p,fd:q};}};l.prototype.xSa=function(m){var p,r;r=this.de;if(m=null === (p=r.vk) || void 0 === p?void 0:p.CI(m))if(p=r.Z.ba[m.L])return p.J;};return l;})();b.N4a=t;},54953:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.O4a=void 0;d=a(91176);n=a(52571);c=a(59034);t=(function(){function f(g,e){var h;h=this;this.config=g;this.s3a=0;this.qW={};e.on("adEvent",function(k){return h.kXa(k);});}Object.defineProperties(f.prototype,{sx:{get:function(){var g,e;g=this;e={};Object.keys(this.qW).forEach(function(h){e[h]=g.qW[h].state;});return e;},enumerable:!1,configurable:!0}});f.prototype.C0a=function(g,e){var h;h=this.qW[g];h || (h=new c.qib(this.config),this.qW[g]=h);h.C0a(e);};f.prototype.reset=function(){this.s3a=0;};f.prototype.kXa=function(g){var e;e=this;"adComplete" === g.event && Object.keys(this.qW).some(function(h){var k,l,m;h=null !== (k=(m=e.sx)[h]) && void 0 !== k?k:m[h]=[];(0,n.assert)(void 0 !== g.Xb,"complete event should have an adBreakIndex");return null === (l=h[g.Xb].Kb) || void 0 === l?void 0:l.some(function(p){return p.id == g.S.R?(p.ai=!0,e.s3a++,!0):!1;});});};f.prototype.DOa=function(g){var e;e=this;Object.keys(this.qW).forEach(function(h){e.sx[h].forEach(function(k){k.Kb.forEach(function(l){l.id == g && (l.nL=!0);});});});};f.prototype.Koa=function(g,e){return (g=this.sx[g]) && (0,d.cc)(g,function(h){return new d.lW(h.Pa,h.Pa.add(h.Gk || d.I.ia)).VX(e,"ms");});};f.prototype.ioc=function(g,e){return (g=this.sx[g]) && (0,d.cc)(g,function(h){return h.xj === e;});};return f;})();b.O4a=t;},14847:function(t,b,a){var f,g,e,h,k;function d(l){switch(l){case "AD_BREAK":case "AD_BREAK_ENUMERATED_ADS":return 52;case "NON_AD_BREAK":return 34;case "NO_INDICATION":return 60;default:return 60;}}function n(l){switch(l){case "ENABLED_AS_NORMAL":return {fI:!0,NH:!0,lH:!0};case "DISABLED_EXCEPT_FOR_PAUSE_EXIT":return {fI:!1,NH:!0,lH:!0};case "DISABLED_EXCEPT_FOR_PAUSE_EXIT_LIVE_EDGE":return {fI:!1,NH:!0,lH:!0};default:return {fI:void 0,NH:void 0,lH:void 0};}}function c(l,m,p){var r;if(3 <= (null === l || void 0 === l?void 0:l.length)){r=0;l=l.toLowerCase().substring(0,3).split("").map(function(q){return "t" === q?!0:"f" === q?!1:"*" === q?0 === (1 << r++ & p):void 0;});m.fI=l[0];m.NH=l[1];m.lH=l[2];}else (m.fI=void 0,m.NH=void 0,m.lH=void 0);}Object.defineProperties(b,{__esModule:{value:!0}});b.f5a=b.$ya=b.g5a=void 0;f=a(91176);g=a(35963);e=a(8707);h=a(88E3);t=(function(){function l(m,p,r,q){void 0 === q && (q=NaN);this.config=m;this.Bg=p;this.SHa=r;this.L6=q;this.MSa=this.Ajb=this.AIa=!1;this.hJa={fI:void 0,NH:void 0,lH:void 0};this.h_=this.T1=!1;this.JO=[];this.HQb(p,r);}Object.defineProperties(l.prototype,{Un:{get:function(){return this.Bg.Un;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Xb:{get:function(){return this.SHa;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Zx:{get:function(){return !!this.Bg.Zx;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{VL:{get:function(){return !!this.Bg.VL;},set:function(m){this.Bg.VL=m;},enumerable:!1,configurable:!0}});l.prototype.IQb=function(m){var p;p=this;void 0 === m && (m=[]);this.JO=m.map(function(r,q){q=p.JO[q];return (null === q || void 0 === q?void 0:q.id) === r.id?q:new h.e5a(r);});};l.prototype.HQb=function(m,p){var r,q,u,v;v=this.Bg;this.Bg=m;v=m.Ux !== v.Ux;if(this.JO.length !== (null === (r=m.Kb) || void 0 === r?void 0:r.length) || v)(this.IQb(m.Kb),"hydration" === m.source && void 0 !== m.ai && (this.AIa=m.ai));this.SHa=p;c(this.config.dfa,this.hJa,p);r=this.config.dfa;4 < (null === r || void 0 === r?void 0:r.length) && (r=r.substring(4),p%=r.length / 2,m.zo=parseInt(r.substring(2 * p,2 * p + 2),16));m.N2 && (m.N2.HRb && (this.Bg.zo=d(m.N2.HRb)),m.N2.Nxa && (this.hJa=n(m.N2.Nxa)));this.Bg.Zx && "viewable" !== this.Bg.source && (this.Vuc(m,null !== (q=m.Ux) && void 0 !== q?q:-1),this.T1=this.Bg.j_ || !1);this.L6=null !== (u=m.Ux) && void 0 !== u?u:-1;};Object.defineProperties(l.prototype,{location:{get:function(){return this.Bg.location;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Pa:{get:function(){return this.Bg.Pa;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{xj:{get:function(){return this.Bg.xj;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{qX:{get:function(){return this.Bg.qX;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{zo:{get:function(){var m;return null === (m=this.Bg) || void 0 === m?void 0:m.zo;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Vq:{get:function(){return this.L6;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{fIc:{get:function(){return this.hJa;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{NJ:{get:function(){return this.Bg.NJ;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Kb:{get:function(){return this.JO;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{empty:{get:function(){return this.duration.equal(f.I.ia);},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{source:{get:function(){return this.Bg.source;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{duration:{get:function(){return (0,e.Iqa)(this.Bg)?this.Bg.duration:this.Kb.reduce(function(m,p){return m.add(p.endTime.ea(p.startTime));},f.I.ia);},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{type:{get:function(){return this.Bg.type;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{eb:{get:function(){return this.Bg.eb;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{xAb:{get:function(){return this.ai || !this.Qm && !this.MSa?this.JO.every(function(m){return m.ai;}):!1;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{ai:{get:function(){return this.AIa?!0:this.JO.length?this.JO.every(function(m){return m.ai;}):!1;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Qm:{get:function(){return !!this.Bg.Qm;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{pNb:{get:function(){var m;m="viewable" === this.Bg.source && this.cf;return !!this.Bg.Qm && !this.cf && !m;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{cf:{get:function(){return !!this.Bg.Zx;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Gk:{get:function(){var m;return null === (m=this.Bg) || void 0 === m?void 0:m.Gk;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{TZ:{get:function(){return this.Ajb;},set:function(m){m && (this.Ajb=!0);},enumerable:!1,configurable:!0}});l.prototype.Moa=function(){return this.Bg.Xk;};l.prototype.au=function(){return this.Bg.eb;};Object.defineProperties(l.prototype,{m2a:{get:function(){var m;return null !== (m=this.Bg.m2a) && void 0 !== m?m:!1;},enumerable:!1,configurable:!0}});l.prototype.$Pc=function(){this.Kb.length || (this.AIa=!0);};l.prototype.aBc=function(){this.h_=!0;};l.prototype.Vuc=function(m,p){this.MSa && p === this.L6 || (this.Bg=m,this.IQb(m.Kb),this.MSa=!0,this.L6=p,this.T1=m.j_);};l.prototype.clone=function(){return new l(this.config,this.Bg,this.SHa,this.L6);};return l;})();b.g5a=t;k=(function(){function l(m,p){this.Vta=m;this.p2b=p;}Object.defineProperties(l.prototype,{duration:{get:function(){return f.I.Ba(this.p2b);},enumerable:!1,configurable:!0}});Object.defineProperties(l,{gXa:{get:function(){return this.J3b || (this.J3b=new l(g.Aga.start,0));},enumerable:!1,configurable:!0}});Object.defineProperties(l,{gEc:{get:function(){return this.I3b || (this.I3b=new l(g.Aga.end,0));},enumerable:!1,configurable:!0}});return l;})();b.$ya=k;t=(function(){function l(m,p,r){this.Af=m;this.Ikb=p || k.gXa;this.t2b=r || k.gXa;}Object.defineProperties(l.prototype,{Kea:{get:function(){return this.Ikb;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{SY:{get:function(){return this.t2b;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{muc:{get:function(){return this.Ikb !== k.gXa || this.SY !== k.gEc;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{duration:{get:function(){return this.Af.duration.add(this.Kea.duration).add(this.SY.duration);},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{Sta:{get:function(){return this.Kea.duration.add(this.SY.duration);},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{type:{get:function(){return this.Af.type;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{zo:{get:function(){return this.Af.zo;},enumerable:!1,configurable:!0}});Object.defineProperties(l.prototype,{h_:{get:function(){return this.Af.h_;},enumerable:!1,configurable:!0}});l.prototype.clone=function(){return new l(this.Af.clone(),this.Kea,this.SY);};return l;})();b.f5a=t;},88E3:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.e5a=void 0;d=a(91176);t=(function(){function n(c){this.Rc=c;this.bkb=this.nL=this.ai=!1;this.ib=d.I.Ba(this.Rc.Ua);this.Yb=d.I.Ba(this.Rc.fb);}Object.defineProperties(n.prototype,{id:{get:function(){return this.Rc.id;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{pn:{get:function(){return this.bkb;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{startTime:{get:function(){return this.ib;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{endTime:{get:function(){return this.Yb;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{duration:{get:function(){return this.Yb.ea(this.ib);},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{QF:{get:function(){return this.Rc.QF;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{nxa:{get:function(){return this.Rc.nxa;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{Un:{get:function(){return this.Rc.Un;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{c_:{get:function(){return this.Rc.c_;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{q2:{get:function(){return this.Rc.q2;},enumerable:!1,configurable:!0}});n.prototype.normalize=function(c,f){this.ib=c;this.Yb=f;this.bkb=!0;};Object.defineProperties(n.prototype,{$2a:{get:function(){return this.Rc.$2a;},enumerable:!1,configurable:!0}});return n;})();b.e5a=t;},81749:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(88E3),b);t.__exportStar(a(14847),b);t.__exportStar(a(46062),b);},67288:function(t,b,a){var n,c,f,g,e,h,k,l,m;function d(p,r){return n.__assign(n.__assign({},{xo:r || g.I.ia,position:p.position,Ra:p.Ra.Af}),{Ra:p.Ra.Af});}Object.defineProperties(b,{__esModule:{value:!0}});b.web=void 0;b.tAb=function(p){return !!p.Kna;};b.Faa=function(p){return !!p.presentingInfo;};b.K9c=function(p){return !p.Kna && !p.presentingInfo;};n=a(22970);c=a(90745);f=a(79048);g=a(91176);e=a(91176);h=a(66164);k=a(48170);l=a(69575);m=a(52571);t=(function(){function p(r,q,u,v){var w;w=this;this.Cc=r;this.Da=q;this.az=v;this.EQ=new c.gf();this.RLb=this.cnb=!1;this.console=(0,l.Df)(h.platform,u,"PLAYERADMANAGER");this.events=new c.EventEmitter();this.Da.events.on("playerChanged",this.hIb.bind(this));this.hIb();this.Da.events.on("cancelingStreaming",function(){var x;k.l && w.console.trace("PlayerAdManager received cancelStreaming");if(w.XP){x=w.Da.player.t_;x?w.XJa(x.position):(k.l && w.console.error("Missing last position for cancel streaming call"),w.XP=void 0);}});this.Cc.Ska.on("adPlaygraphUpdated",function(x){return w.events.emit("adPlaygraphUpdated",x);});this.Bd.events.on("adSegmentDropped",function(x){w.KEc(x);});this.Bd.events.on("advertsMismatch",function(x){return w.events.emit("advertsMismatch",x);});}Object.defineProperties(p.prototype,{maa:{get:function(){return !!this.XP;},enumerable:!1,configurable:!0}});p.prototype.$k=function(r){var q;if(!this.Da.lo)return (k.l && this.console.trace("PlayerAdManager.canSkip(): no player"),!1);q=this.Da.player;if(!q.a$(r))return (k.l && this.console.trace("PlayerAdManager.canSkip() false, no branch spanning playerTimestamp:",r),!1);k.l && this.console.trace(("PlayerAdManager.canSkip(): ").concat(q.Ld.ca()," -> ").concat(r.ca()));r=r.greaterThan(q.Ld)?(0,l.vub)(q.Ya,q.Ld,r):(0,l.vub)(q.Ya,r,q.Ld);q=!r.some(function(u){return u.K.type !== f.Gd.content;});k.l && this.console.trace(("PlayerAdManager.canSkip(): ").concat(q,"; ").concat(r.map(function(u){return ("").concat(u.K.id," ").concat(u.K.type," ").concat(u.Sb.G,"..").concat(u.Sb.G);})));return q;};p.prototype.D$=function(){var r;return (null === (r=this.XP) || void 0 === r?void 0:r.fIc) || ({fI:void 0,NH:void 0,lH:void 0});};Object.defineProperties(p.prototype,{Bd:{get:function(){return this.Cc.Bd;},enumerable:!1,configurable:!0}});p.prototype.hIb=function(){var r,q;r=this;this.console.trace("Player changed",this.Da.lo);this.EQ.clear();if(this.Da.lo){q=this.Da.player;this.EQ.addListener(q.events,"segmentPresenting",function(u){return r.cB(u);});this.EQ.addListener(q.events,"playbackEnding",function(u){return r.DXa(u);});}};p.prototype.cB=function(r){var q,u,v,w,x,y,A,z,B,C,D;k.l && this.console.trace("Got Segment presenting",{K:r.position.L,position:r.position.offset.ca(),seek:r.seek});z=r.$Z?r.$Z.position.L:r.position.L;B=this.Da.tZ(z)[0];C=(B=(null === (C=null === B || void 0 === B?void 0:B.M) || void 0 === C?void 0:C.Wj) || (null === B || void 0 === B?void 0:B.M))?null === (u=null === (q=B.S) || void 0 === q?void 0:q.Hd) || void 0 === u?void 0:u.qX:void 0;!this.cnb && C && h.platform.ping && (h.platform.ping(C),this.cnb=!0);q=this.sj.gD(r.position);k.l && this.console.trace("Checked segment presenting",{Xb:null === q || void 0 === q?void 0:q.index,Tbd:q});if(u=(null === q || void 0 === q?void 0:q.Ra.Af) || this.sj.Cpc(r.position,!!r.seek))if((C=null === (v=null === q || void 0 === q?void 0:q.PJ) || void 0 === v?void 0:v.Rc,this.RLb || (null === B || void 0 === B?0:B.gUa) || u.aBc(),k.l && this.console.trace(("Got segment presenting event: adBreak: ").concat(u.Xb),{Rc:C,L:z,M:B.J}),(0,m.assert)(q || u.empty,"Should have presenting info for event corresponding to ad break, or ad break should be empty"),q)){D=!1;this.az.forEach(function(F){var H;F.Eb && (null === (H=F.S.Hd) || void 0 === H?0:H.Hj) && (D=!0);});if(!this.maa || "embedded" === (null === (w=this.XP) || void 0 === w?void 0:w.type) || D && r.seek)u.empty?u.cf || C?(k.l && this.console.trace("We are no longer in an adbreak or past an embedded ad (1)"),this.Elc(q,r.playerTimestamp)):k.l && this.console.trace("Passed an unhydrated ad break; assume it was skipped intentionally"):this.s5b(q,r.playerTimestamp);C && (C.id === B.J && "dynamic" === (null === (x=this.XP) || void 0 === x?void 0:x.type) && (k.l && this.console.trace("Detected fallback from dynamic to embedded ad, forcing new ad break"),this.r5b(q,r.playerTimestamp)),(0,m.assert)((null === (y=q.PJ) || void 0 === y?void 0:y.Rc) === C,"Presenting Info should point to same ad as adInfo"),this.Xo(q,r.playerTimestamp));}else (k.l && this.console.trace("We are no longer in an adbreak or past an embedded ad (2)"),u.cf && this.Kjc(u,r.position,r.playerTimestamp));!this.maa || q && "end" !== (null === (A=q.fYa) || void 0 === A?void 0:A.Vta) || (k.l && this.console.trace("We are in end padding / next segment"),this.qmb(r.position));this.maa && !q && (k.l && this.console.trace("onSegmentPresenting calling adBreakEnding"),this.XJa(r.position));this.RLb=!0;};p.prototype.DXa=function(r){this.maa && this.Ewc(r.position) && (this.qmb(r.position),k.l && this.console.trace("onPlaybackEnding calling adBreakEnding"),this.XJa(r.position));};p.prototype.v1a=function(r){r.Ra=r.Ra.clone();return r;};p.prototype.s5b=function(r,q){(0,m.assert)(r,"Should have presenting info for event corresponding to ad break");k.l && this.console.trace("Emitting adBreakPresenting:",r);this.XP=r.Ra.Af;this.events.emit("adBreakPresenting",{type:"adBreakPresenting",eventInfo:d(r,q),presentingInfo:this.v1a(r),playerControlState:this.D$(),xo:q});};p.prototype.Xo=function(r,q){var u,v,w;k.l && this.console.trace("Emitting adPresenting:",r);u=this.events;v=u.emit;w=this.v1a(r);r=n.__assign(n.__assign({},d(r,q)),{Rc:r.PJ.Rc});v.call(u,"adPresenting",{type:"adPresenting",presentingInfo:w,D7c:r,xo:q});};p.prototype.r5b=function(r,q){r={type:"adBreakFallback",presentingInfo:this.v1a(r),xo:q};k.l && this.console.trace("Emitting adBreakFallback:",r);this.events.emit(r.type,r);};p.prototype.Elc=function(r,q){k.l && this.console.trace("Emitting explicit adBreakComplete");this.events.emit("adBreakComplete",{type:"adBreakComplete",presentingInfo:r,xo:q});};p.prototype.Kjc=function(r,q,u){k.l && this.console.trace("Emitting empty adBreakComplete");this.events.emit("adBreakComplete",{type:"adBreakComplete",Kna:r,position:q,xo:u});};p.prototype.qmb=function(r){k.l && this.console.trace("Emitting anonymous adBreakComplete");this.events.emit("adBreakComplete",{type:"adBreakComplete",position:r});};p.prototype.XJa=function(r){this.XP=void 0;k.l && this.console.trace("Emitting adBreakEnded");this.events.emit("adBreakEnded",{type:"adBreakEnded",eventInfo:{position:r},playerControlState:this.D$()});};p.prototype.Wv=function(r){var q,u,v;q=this;u={QKa:[],result:{}};v=Object.keys(this.Bd.lb).filter(function(w){return q.Bd.rv[w];});if(null === r || void 0 === r?0:r.$y)v=v.filter(function(w){var x;return -1 !== (null === (x=r.$y) || void 0 === x?void 0:x.indexOf(w));});u.QKa=v;v.forEach(function(w){var x;u.result[w]=0 < (null === (x=q.Bd.lb[w]) || void 0 === x?void 0:x.length);});return u;};p.prototype.OG=function(r){var q,u,v,w;q=this;u={QKa:[],result:{}};v=this.Bd.rv;w=Object.keys(v).filter(function(x){return v[x];});if(null === r || void 0 === r?0:r.$y)w=w.filter(function(x){var y;return -1 !== (null === (y=r.$y) || void 0 === y?void 0:y.indexOf(x));});u.QKa=w;w.forEach(function(x){var y,A,z,B,C;z=null === (y=v[x]) || void 0 === y?void 0:y.lb;if(z){y=q.az.get(Number(x));B=!(null === y || void 0 === y || !y.Eb) && !(null === (A=null === y || void 0 === y?void 0:y.S.Hd) || void 0 === A || !A.Hj);A=q.nmc(x,z);C=q.Bd.lb[x];u.result[("").concat(x)]=A.map(function(D,F){return n.__assign(n.__assign({},D),{hasCompletedPlayback:C[F].xAb || B,isHiddenFromUser:C[F].xAb || B,unnormalizedLocationMs:D.xj,locationMs:D.fw,location:D.location,adBreakToken:D.Xk,contentTimestamp:D.Pa,type:D.type});});}});return u;};Object.defineProperties(p.prototype,{sj:{get:function(){return this.Cc.sj;},enumerable:!1,configurable:!0}});p.prototype.nmc=function(r,q){var u,v;u=[];v=[];this.Bd.lb[r].forEach(function(w){return w.Kb.forEach(function(x){x.nL && -1 === v.indexOf(x.id) && v.push(x.id);});});q.forEach(function(w){var x,y;w=n.__assign({},w);y=null === (x=w.ads) || void 0 === x?void 0:x.filter(function(A){return -1 === v.indexOf(A.id);});w.ads=y;u.push(w);});return u;};p.prototype.KEc=function(r){var q,u,v,w;q=this;u=r.adId;v=this.Bd.rv;r=Object.keys(v).filter(function(x){return v[x];});w=this.Da.Z.ba;r.forEach(function(x){var y,A;null === (A=null === (y=v[x]) || void 0 === y?void 0:y.lb) || void 0 === A?void 0:A.forEach(function(z,B){var C;null === (C=z.Kb) || void 0 === C?void 0:C.forEach(function(D,F){D.id === u && (D=(0,e.cc)(Object.keys(w),function(H){H=q.sj.RQ(H);return !H || H.qL?!1:F === H.OJ && B === H.Xb;})) && q.events.emit("segmentDropped",{type:"segmentDropped",auxMid:u,auxMidType:f.Gd.Rc,adBreakLocationMs:z.xj,reason:"network_error",sev:"error",segmentId:D});});});});};p.prototype.Ewc=function(r){r=this.Da.Jb.get(r.L);return !(!r || 0 < r.rE);};return p;})();b.web=t;},73803:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.V7a=void 0;t=(function(){function a(d){this.lPa=d;}a.prototype.QG=function(d,n){var c,f,g;c=this;f=d.Ra;g=n(d);g.Fx || f.Kb.forEach(function(e,h){if(e.nL || c.lPa.quc(e.id))(g.Gx.push(h),g.reason="error");});return g;};return a;})();b.V7a=t;},15905:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.W7a=void 0;t=(function(){function a(){}a.prototype.QG=function(d,n){var c,f;f=d.Ra;return (null === (c=d.aDb) || void 0 === c?0:c.qp) || !f.ai?n(d):{Fx:!0,Gx:[],reason:"played"};};return a;})();b.W7a=t;},88700:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.wab=void 0;d=a(22970);n=a(91176);t=(function(){function c(f,g){this.config=f;this.console=g;}c.prototype.QG=function(f,g){var e,h,k,l,m,p,r,q,w,x,y,A,z;if(this.config.o7)return g(f);k=f.aDb;l=null === k || void 0 === k?void 0:k.Hd;m=l && l.dLb;if((null === k || void 0 === k?0:k.Eb) && l){l=k.fo(!0);p=null === (h=k.di) || void 0 === h?void 0:h.iw;h=f.Ra;r=f.Ra.Pa.add(h.Gk || h.duration);k=this.config.pQ?!m && h.Un:!m && ((null === k || void 0 === k?void 0:k.qp) || h.Un);if(l && r.lessThan(l) && k)return (!1,{Fx:!0,Gx:[],reason:"live-drop"});if(l && h.Kb){g=g(f);if(g.Fx)return g;q=n.I.ia;k=h.Kb.map(function(C,D){q=q.add(C.duration);return {Rc:C,index:D,Zic:q};}).reverse();g=g.Gx || [];try{for(var u=d.__values(k),v=u.next();!v.done;v=u.next()){w=v.value;x=w.index;if(-1 === g.indexOf(x)){if(!w.Rc.Un)break;y=f.Ra.Pa.add(w.Zic);A=f.Ra.Pa.add(f.Ra.Gk || f.Ra.duration);z=(p || l).add(n.I.Ba(this.config.kzc));if(y.lessThan(l) || A.lessThan(z))(!1,g.push(x));else break;}}}catch(C){var B;B={error:C};}finally{try{v && !v.done && (e=u.return) && e.call(u);}finally{if(B)throw B.error;}}return {Fx:!1,Gx:g,reason:"live-drop"};}}return g(f);};return c;})();b.wab=t;},70778:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Lcb=void 0;t=(function(){function a(){}a.prototype.QG=function(){return {Gx:[],Fx:!1,reason:"none"};};return a;})();b.Lcb=t;},3758:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.efb=void 0;t=(function(){function a(d){this.console=d;}a.prototype.QG=function(d,n){n=n(d);if(n.Fx && !d.$ic && d.TJ.filter(function(c){return c.Af.Xb === d.Xb;}).length)return (n.Fx=!1,n.reason="in buffer",this.console.log("PreserveAppendedAdsPolicy: preserving ad break",{Xb:d.Xb,eb:d.Ra.eb,TJ:d.TJ}),n);this.console.log("PreserveAppendedAdsPolicy: not preserving ad break",{Xb:d.Xb,eb:d.Ra.eb,TJ:d.TJ});return n;};return a;})();b.efb=t;},77184:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.ffb=void 0;t=(function(){function a(d){this.console=d;}a.prototype.QG=function(d,n){var c,f;n=n(d);c=d.TJ.reduce(function(g,e){e.YYa.qL || g.add(e.YYa.OJ);return g;},new Set());f=n.Gx.filter(function(g){return !c.has(g);});n.Gx.length !== f.length && (n.Gx=f,n.reason="ad in buffer",this.console.log("PreserveIndividualAppendedAdsPolicy: preserving ads inad break",{Xb:d.Xb,eb:d.Ra.eb,TJ:d.TJ,abd:n.Gx}));return n;};return a;})();b.ffb=t;},45496:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.gfb=void 0;t=(function(){function a(){}a.prototype.QG=function(d,n){var c;n=n(d);c=d.vyc;n.Fx && c && c.Af.Xb === d.Xb && (n.Fx=!1,n.reason="last appended");return n;};return a;})();b.gfb=t;},31413:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperties(b,{__esModule:{value:!0}});b.Dgb=void 0;d=a(22970);n=a(91176);c=a(91176);f=a(66164);g=a(65161);e=a(48170);h=a(89527);k=a(52571);l=a(40666);t=(function(){function m(p,r,q,u,v,w,x,y,A,z,B,C){var D;D=this;this.la=p;this.gd=r;this.events=q;this.Ra=u;this.Rc=v;this.hKa=w;this.Hea=x;this.PRc=y;this.e7=A;this.Zm=z;this.W7=B;this.console=C;this.Ik=f.platform.time.now();this.vE=new Map();this.xC=0;(0,k.assert)(w.S,"Presenting ad should have a manifest");this.vlb=r.Xr(function(){return D.DUc();},"impressionLogging");this.la.player.ww.forEach(function(F,H){(F=F.gZ(h.gV)) && D.vE.set(H,F);});}Object.defineProperties(m.prototype,{AI:{get:function(){return this.xC;},enumerable:!1,configurable:!0}});m.prototype.Ka=function(){this.vlb.Ka();};m.prototype.DUc=function(){var p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E;return d.__generator(this,function(G){switch(G.label){case 0:e.l && this.console.trace("AdImpressionLogger: starting at",this.e7.ca());p=this.Rc;this.cpb();if(!p.QF)return (this.console.error(("AdImpressionLogger: no actionAdEvents for ad ").concat(p.id)),[2]);r=this.Hea.offset.G;q=this.e7;u=this.e7.add(p.duration);v=this.PRc;G.label=1;case 1:(G.tc.push([1,12,13,14]),(0,k.assert)(null === (F=p.QF) || void 0 === F?void 0:F.start,"Start event info should be defined"),this.emit(p.QF.start,r,v,!1,r),(0,k.assert)(p.nxa,"Timed event info should be defined"),G.label=2);case 2:(G.tc.push([2,7,8,9]),w=d.__values(p.nxa),x=w.next(),G.label=3);case 3:if(x.done)return [3,6];y=x.value;q=this.e7.add(n.I.Ba(y.Np));if(q.lessThan(v))return [3,5];e.l && this.console.trace(("AdImpressionLogger[").concat(this.Hea.L,"]: waiting for ").concat(y.Np,"ms timed event") + (" at ").concat(q.ca()));return [4,l.$d.lm(q)];case 4:(G.T(),v=q,this.emit(y,y.Np,q,!1,r),G.label=5);case 5:return (x=w.next(),[3,3]);case 6:return [3,9];case 7:return (A=G.T(),C={error:A},[3,9]);case 8:try{x && !x.done && (D=w.return) && D.call(w);}finally{if(C)throw C.error;}return [7];case 9:if(!u.greaterThan(q))return [3,11];q=u;e.l && this.console.trace(("AdImpressionLogger[").concat(this.Hea.L,"]: waiting for end of ad at ").concat(q.ca()));return [4,l.$d.lm(q)];case 10:(G.T(),v=q,G.label=11);case 11:return [3,14];case 12:return (z=G.T(),this.console.error("AdImpressionLogger: error",z),this.xC++,[3,14]);case 13:v=this.la.player.t_?this.la.player.t_.xo:this.la.player.Vd?this.la.player.Ld:v;if(v.Tf(u))((0,k.assert)(null === (H=p.QF) || void 0 === H?void 0:H.complete,"Complete event should be defined"),this.emit(p.QF.complete,p.endTime.G,u,!0,r));else if(null === (E=p.QF) || void 0 === E?0:E.stop)(B=v.ea(this.e7).G,this.emit(p.QF.stop,B,v,!0,r));this.cpb();return [7];case 14:return [2];}});};m.prototype.emit=function(p,r,q,u,v){var w,x,y;e.l && this.console.trace(("AdImpressionLogger[").concat(this.Hea.L,"]: emitting ").concat(p.event," event at ").concat(r,"ms") + (" for player time ").concat(q.ca()));r={L:this.Hea.L,offset:n.I.Ba(r)};w=this.MRa(q);try{x=this.W7(r);y=d.__assign(d.__assign({type:"adEvent"},p),{$h:r,hB:w,S:this.hKa.S,Ik:this.Ik,Ucd:u?f.platform.time.now():-1,pv:this.Ra.xj,Xb:this.Ra.Xb,q2:this.Rc.q2,c_:this.Rc.c_,Gt:this.Ra.type,eb:this.Ra.au(),gKa:v,DG:x,RYa:q});this.Zm && (y.Zm=this.Zm);this.events.emit("adEvent",y);}catch(A){this.console.error("Impression error event",A);this.xC++;}};m.prototype.MRa=function(p){var r,q,u;r=this.hKa.S.R;q=d.__read(this.txb(p,this.vE.get(g.u.X),r),2);u=q[0];q=q[1];p=d.__read(this.txb(p,this.vE.get(g.u.U),r),2);return {audio:u,video:p[0],text:[],total:Math.max(q,p[1])};};m.prototype.txb=function(p,r,q){p=(null === r || void 0 === r?void 0:r.ARc(p,q)) || [];p=(0,c.flatten)(p.map(function(u){return Object.keys(u.$n).map(function(v){v=u.$n[v];return {ob:v.ob,duration:v.totalTime,Th:u.Th};});}));r=p.reduce(function(u,v){return u + v.duration;},0);e.l && this.console.trace("Getting playtime journal",{R:q,Fbd:p.length,totalTime:r});return [p,r];};m.prototype.cpb=function(){var p,r,q;q=this.hKa.S.R;null === (p=this.vE.get(g.u.X)) || void 0 === p?void 0:p.bKb(q);null === (r=this.vE.get(g.u.U)) || void 0 === r?void 0:r.bKb(q);};m.prototype.xq=function(){return {ad:this.vlb.xq(),errors:this.xC};};return m;})();b.Dgb=t;},8707:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Iqa=b.cX=void 0;b.cX=function(a,d){var n,c,e;if(!(a && d || a === d))return {qq:!0,reason:"one of the ads is undefined"};if(a && d){if(a.lb.length !== d.lb.length)return {qq:!0,reason:"ad break count mismatch"};for(var f=function(h){var k,l;k=a.lb[h];l=d.lb[h];if(!k.Pa.equal(l.Pa))return {value:{qq:!0,reason:"ad break content timestamp mismatch"}};if(k.source !== l.source)return {value:{qq:!0,reason:"ad break source mismatch"}};if((0,b.Iqa)(k) && (0,b.Iqa)(l) && !k.duration.equal(l.duration))return {value:{qq:!0,reason:"ad break duration mismatch"}};if(void 0 !== k.Gk && void 0 !== l.Gk && !k.Gk.equal(l.Gk))return {value:{qq:!0,reason:"ad break replaced duration mismatch"}};if((null === (n=k.Kb) || void 0 === n?void 0:n.length) !== (null === (c=l.Kb) || void 0 === c?void 0:c.length))return {value:{qq:!0,reason:"ad break ads length mismatch"}};if(k.Kb && l.Kb && k.Kb.some(function(m,p){if(m.id !== l.Kb[p].id)return !0;}))return {value:{qq:!0,reason:"ad break ads mismatch"}};if((k.Ux || l.Ux) && k.Ux !== l.Ux)return {value:{qq:!0,reason:"ad break hydration sequence id mismatch"}};if(k.Zx !== l.Zx)return {value:{qq:!0,reason:"is hydrated state mismatch"}};if(k.Qm !== l.Qm)return {value:{qq:!0,reason:"can hydrate state mismatch"}};},g=0;g < a.lb.length;g++){e=f(g);if("object" === typeof e)return e.value;}}return {qq:!1,reason:""};};b.Iqa=function(a){return "embedded" === a.type;};},59034:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.qib=void 0;d=a(81749);t=(function(){function n(c){this.config=c;this.cKa=[];}Object.defineProperties(n.prototype,{state:{get:function(){return this.cKa;},enumerable:!1,configurable:!0}});n.prototype.C0a=function(c){var f,g;f=this;g=[];c.forEach(function(e,h){var k;k=f.cKa[h];k?(g.push(k),k.HQb(e,h)):(e=f.Mfc(e,h),g.push(e));});this.cKa=g;};n.prototype.Mfc=function(c,f){return new d.g5a(this.config,c,f,c.Ux);};return n;})();b.qib=t;},25750:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.s8=void 0;d=a(22970);n=a(40981);c=a(75393);f=a(17774);b.s8=function(g,e,h){var k,l,m,p,r;k=e.Wca;l=e.MKa;g=d.__assign({rBa:n.qBa},g).rBa;m=k[5];k=(0,f.vGb)(function(){return r;});m.oKa(k.Ps);h=h(e);p={vk:void 0,de:void 0,Da:h,eCb:"content"};p.vk=new g(function(){return p.de.Jb;},function(){return p.Da;},e.Wca[2],"content:");r=new f.e7a(p,k.KOb,c.RD.P_a.B1);p.de=c.RD.yZa(h,r,function(){return p;},l);r.Tb();return p.de;};},17774:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.e7a=void 0;b.vGb=function(g){var e;e=[];return {Ps:function(h,k){var l,m,p,r,q,u;m=h.J;p=h.dm;r=g();q=null === (l=null === p || void 0 === p?void 0:p.Rf) || void 0 === l?void 0:l.fd;q && q !== m && (p={Rf:{Hb:r.Aoc(q),fd:q},qs:null === p || void 0 === p?void 0:p.qs});r.Da.console.trace("In wrapped request viewable",m,p);u=k(d.__assign(d.__assign({},h),{dm:p}));e.forEach(function(v){return v({J:m,kr:u.kr});});return u;},KOb:function(h){e.push(h);}};};d=a(22970);n=a(79048);c=a(5479);f=a(61996);t=(function(g){function e(h,k,l,m){void 0 === m && (m="CphAsePlaygraph");k=g.call(this,h,k,l,m) || this;k.Qq=h;k.pLb=l;h.Da.Sc(new c.f7a(k));return k;}d.__extends(e,g);e.prototype.sM=function(h){var k,l;k=g.prototype.sM.call(this,h);if(k){l=h.S.OC;l && !this.Jja && (this.kNa.ug({applyingContentPlaygraph:!0}),this.Jja=l,this.O2b=this.Occ(h.S),this.hva());}return k;};Object.defineProperties(e.prototype,{Jyb:{get:function(){return this.O2b;},enumerable:!1,configurable:!0}});e.prototype.mK=function(h){if(this.Jja)return (h=n.rF.qo(h,n.rF.create(this.Jja.Z)).Tba,h.m7(this.Da.Jb),h);};e.prototype.Occ=function(h){var k,l;k=h.lq;l=h.YK;return !(!k || !k.some(function(m){return m.YK !== l;}));};Object.defineProperties(e.prototype,{OC:{get:function(){var h;return null === (h=this.Jja) || void 0 === h?void 0:h.Z;},enumerable:!1,configurable:!0}});d.__decorate([(0,f.gb)({methodName:"processViewableResponse"})],e.prototype,"sM",null);return e;})(a(14739).DFa);b.e7a=t;},79:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.ZMa=void 0;d=a(75393);n=a(4515);b.ZMa=function(c,f){var g;c=f(c);g=new n.Aeb(c,d.RD.P_a.B1);return d.RD.yZa(c,g,function(){return g.Qq;});};},64281:function(t,b,a){var n,c,f,g;function d(e,h){return h && !Array.isArray(h) && -1 === h.Ftb.indexOf(e)?h.rules:[];}Object.defineProperties(b,{__esModule:{value:!0}});b.oNa=void 0;n=a(22970);t=a(90745);c=a(49165);f=a(87561);g=(function(e){function h(k,l){var m;m=e.call(this) || this;m.PAc=k;m.Qzb=l;m.pIa={};return m;}n.__extends(h,e);h.prototype.emit=function(k){for(var l=[],m=1;m < arguments.length;m++)l[m - 1]=arguments[m];return e.prototype.emit.call(this,k,this.PAc(k,l[0]));};h.prototype.subscribe=function(k){var l,m;l=this;if(!this.listeners(k).length){m=function(){for(var p=[],r=0;r < arguments.length;r++)p[r]=arguments[r];return l.emit.apply(l,n.__spreadArray([k],n.__read(p),!1));};this.pIa[k]=m;this.Qzb.addListener(k,m);}};h.prototype.addListener=function(k,l){this.subscribe(k);e.prototype.addListener.call(this,k,l);return this;};h.prototype.removeListener=function(k,l){e.prototype.removeListener.call(this,k,l);l=this.pIa[k];!this.listeners(k).length && l && (this.Qzb.removeListener(k,l),this.pIa[k]=void 0);return this;};h.prototype.on=function(k,l){this.addListener(k,l);return this;};h.prototype.$l=function(k,l){this.removeListener(k,l);return this;};h.prototype.once=function(k,l){var p;function m(){for(var r=[],q=0;q < arguments.length;q++)r[q]=arguments[q];p.removeListener(k,m);l.apply(void 0,n.__spreadArray([],n.__read(r),!1));}p=this;this.addListener(k,m);return this;};h.prototype.Eua=function(k,l){this.subscribe(k);e.prototype.Eua.call(this,k,l);};h.prototype.IIb=function(k,l){var p;function m(){for(var r=[],q=0;q < arguments.length;q++)r[q]=arguments[q];p.removeListener(k,m);l.apply(void 0,n.__spreadArray([],n.__read(r),!1));}p=this;this.Eua(k,m);};return h;})(t.EventEmitter);b.oNa=function(e,h,k,l){return new g(function(m,p){var r;r=d(m,l["*"]);m=l[m] || [];r=r.concat(m).filter(function(q){return "object" === typeof q;});m=n.__read(m.filter(function(q){return "function" === typeof q;}),1)[0];return r.length?(0,f.Jva)(e,p,k,{rules:r,Zq:!1,IKa:!0},c.$E.BI,m):p;},h);};},40981:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.qBa=void 0;d=a(22970);n=a(66164);c=a(61996);f=a(94328);g=a(52571);e=a(48170);h=a(35779);t=(function(){function k(l,m,p,r){var u,v;function q(w,x){return w.L === x.L && w.offset.equal(x.offset);}this.Gca=l;this.Da=m;this.config=p;this.Xlb=r;this.T2=new WeakMap();this.S2=new WeakMap();this.console=new n.platform.Console(("GRAPHLOCATIONSERVICE ").concat(null !== (v=null === (u=this.Xlb) || void 0 === u?void 0:u.replace(":","")) && void 0 !== v?v:""));this.pe=new c.zm({qj:this,source:(r || "") + "GraphLocation",console:this.console});(0,h.$Za)(this,"d",new h.GV(p,q));(0,h.$Za)(this,"u",new h.GV(p,q));}k.prototype.Tb=function(){var l,m,p;l=this;"temp" !== this.Xlb && (null === (m=this.Da().events) || void 0 === m?void 0:m.on("segmentNormalized",function(){(0,h.KQa)(l).forEach(function(r){return r.clear();});l.T2=new WeakMap();l.S2=new WeakMap();}),null === (p=this.Da().events) || void 0 === p?void 0:p.on("playgraphUpdating",function(){(0,h.KQa)(l).forEach(function(r){return r.clear();});l.T2=new WeakMap();l.S2=new WeakMap();}));};k.prototype.IU=function(l){return new k(function(){return l.D0;},function(){return {Jb:l};},this.config,"temp");};k.prototype.tG=function(l){var m,p,r,q,u;e.l && this.console.trace("downConverting",l);if(this.T2.has(l))return this.T2.get(l);try{p=this.Gca().Z;r=this.Da().Jb.Z;if(p === r)return m=l;if(r.ba[l.L])return (p.ba[l.L] || e.l && this.console.warn("Received a down converted position unexpectedly",l,Error().stack),m=l);q=(0,f.Vob)(l,this.Gca());u=this.Gca().UAc({offset:q.Wob,L:l.L});(0,g.assert)(!!u,"mapPositionDown on uxPlaygraph should return a value");m={offset:q.Gv.add(u.offset),L:u.L};e.l && this.console.trace("downConverting ret:",m,this.Gca().identifier);return m;}finally{m && (this.T2.set(l,m),this.S2.set(m,l));}};k.prototype.CI=function(l){var m,p,r,q,u,v;e.l && this.console.trace("upConverting",l);if(this.S2.has(l))return this.S2.get(l);try{m=this.Gca().Z;p=this.Da().Jb.Z;if(m === p)return l;if(m.ba[l.L])return (p.ba[l.L] || e.l && this.console.warn("Received a up converted position unexpectedly",l,Error().stack),l);r=this.Da().Jb;q=(0,f.Vob)(l,r);u=r.WVa({offset:q.Wob,L:l.L});(0,g.assert)(!!u,"mapPositionUp on combinedPlaygraph should return a value");v={offset:q.Gv.add(u.offset),L:u.L};e.l && this.console.trace("upConverting ret:",v,r.identifier);return v;}finally{v && (this.S2.set(l,v),this.T2.set(v,l));}};k.prototype.uqc=function(l){var m;m=this.tG(l);(0,g.assert)(!!m,"mapPositionDown on uxPlaygraph should return a value");for(var p=m.L,r=this.Da().Jb,q=r.kH.KK(p),u=q.next();!u.done;){u=u.value;if(r.uH(u.id) !== l.L && p !== m.L)break;p=u.id;u=q.next();}(0,g.assert)(p,("Could not find any segments in the path of ").concat(l));return p;};d.__decorate([(0,c.gb)({methodName:"downConvertPosition",Re:!0,Km:!0,return:!0}),(0,h.OLa)("d")],k.prototype,"tG",null);d.__decorate([(0,c.gb)({methodName:"upConvertPosition",Re:!0,Km:!0,return:!0}),(0,h.OLa)("u")],k.prototype,"CI",null);return k;})();b.qBa=t;},75393:function(t,b,a){var f,g,e,h,k,l,m,p,r;function d(q,u){var v,w;if(q.de.Z.ba[u] && q.de.Cc){w=q.de.Jb.LL(u);w && (w=q.de.Jb.JH.Z.ba[w].J,(u=(0,m.RQ)(u)) && (v=q.de.Cc.Bd.yQa(w,u)));}return v;}function n(q,u,v,w){var x;return u === k.$E.gQ?(u=g.I.ia,(null === w || void 0 === w?void 0:w.Jcd) === r.end && (u=g.I.Ba(null !== (x=v.de.Z.ba[q].fb) && void 0 !== x?x:0),(0,e.assert)(0 < u.G,"EndTime must be non null")),v.vk.tG({offset:u,L:q}).L):v.vk.CI({offset:g.I.ia,L:q}).L;}function c(q,u,v){return u === k.$E.BI?v.vk.CI(q):v.vk.tG(q);}Object.defineProperties(b,{__esModule:{value:!0}});b.RD=b.hZb=void 0;f=a(22970);g=a(91176);e=a(52571);t=a(42194);h=a(50599);k=a(49165);l=a(6783);m=a(14103);p=a(57722);a=(0,h.oLb)();a=(0,t.Tnb)()({wDb:"combinedPlaygraph",B1:{$h:a()({map:c,eG:p.jxc}),Vd:a()({map:function(q,u,v,w){var x,y;x=(null === w || void 0 === w?0:w.Ss)?(0,p.aRa)(q,w.Ss):q.position;(null === w || void 0 === w?0:w.iob) && u === k.$E.BI && (v.Da.Z.ba[x.L] || (y=null));null !== y && (y=c(x,u,v));q=(0,p.DMa)(q,null === w || void 0 === w?void 0:w.Ss);(null === w || void 0 === w?0:w.Ss)?(0,p.EPc)(q,w.Ss,y):q.position=y;return q;},eG:function(q,u,v){return (null === v || void 0 === v?0:v.Ss)?(0,p.aRa)(q,v.Ss):(0,p.Vd)(q);}}),EE:a()({map:function(q,u,v,w){var x;if(u === k.$E.gQ)return null !== (x=q.inner) && void 0 !== x?x:q;u=(0,p.DMa)(q,null === w || void 0 === w?void 0:w.Ss);null !== w && void 0 !== w && w.Ss || (u.inner=q,"gctag" === ({NODE_ENV:"production",PLATFORM:"cadmium",ASEBUILD:"release",OBFUSCATE:"obfuscate"}).kWb && (u.gctag=void 0));return u;},eG:function(q,u,v){return (null === v || void 0 === v?0:v.Ss)?"object" === typeof (0,p.aRa)(q,v.Ss):"object" === typeof q;}}),L:a()({map:n,eG:p.yxc}),gea:a()({map:function(q,u,v,w){var x,y;y=null !== (x=q.L) && void 0 !== x?x:q.segmentId;u=n(y,u,v,w);return q.L?f.__assign(f.__assign({},q),{L:u}):f.__assign(f.__assign({},q),{segmentId:u});},eG:p.tuc}),u8:a()({map:function(q,u,v){u === k.$E.gQ?(q=(0,l.Vr)(v.de.Z,q.J,q.Pa,{JLb:!0}),(0,e.assert)(void 0 !== q,"Graph position must exist in ux playgraph"),q=v.vk.tG(q),u=q.L,q=q.offset,u=v.Da.Z.ba[u],v=u.J,u=u.Ua,q=g.I.Ba(u).add(q)):(q=(0,l.Vr)(v.Da.Z,q.J,q.Pa,{JLb:!0}),(0,e.assert)(void 0 !== q,"Graph position must exist in combined playgraph"),q=v.vk.CI(q),u=q.L,q=q.offset,u=v.de.Z.ba[u],v=u.J,u=u.Ua,q=g.I.Ba(u).add(q));return {Pa:q,J:v};},eG:p.ywc}),ALa:a()({eG:p.rwc,map:function(q,u,v){var w,x,y,A,z;w=v.Da.Jb;x=v.de.Jb;if(u === k.$E.gQ){y={L:q.K.id,offset:g.I.ia};A=v.vk.tG(y);u=w.get(A.L);(0,e.assert)(u,"workingSegment on inner playgraph must exist");x=x.get(y.L);(0,e.assert)(x,"equivalent workingSegment on outer playgraph must exist");y=u.Wb;v=q.Kd.add(u.ib.ea(x.ib));w=u.ib;u=u.Yb;return {Kd:v,VS:q.vw.add(y),vw:q.vw,K:{id:A.L,ib:w,Yb:u}};}A={L:q.K.id,offset:g.I.ia};y=v.vk.CI(A);u=w.get(A.L);(0,e.assert)(u,"workingSegment on inner playgraph must exist");x=x.get(y.L);(0,e.assert)(x,"equivalent workingSegment on outer playgraph must exist");A=x.Wb;if(!A.isFinite()){z=v.vk.uqc(y);(w=w.get(z)) && w.Wb.isFinite() && (A=v.vk.CI({L:z,offset:w.Wb}).offset);}y=q.vw.ea(y.offset);z=y.add(A);v=q.Kd.add(x.ib.ea(u.ib));w=x.ib;u=A.add(w);return {Kd:v,VS:z,vw:y,K:{id:x.id,ib:w,Yb:u}};}}),E8b:a()({eG:function(q){return "segmentPresenting" === q.type;},map:function(q,u,v){var w,x;q=(0,p.DMa)(q);if((u=q.metrics) && void 0 === u.adBreakLocationMs){w=d(v,u.destPosition.L);void 0 !== w && (u.adBreakLocationMs=w.xj,void 0 !== w.eb && (u.adBreakTriggerId=w.eb));x=u.srcStartPosition;x && v.Da.Z.ba[x.L] && (w=d(v,x.L));void 0 !== w && (u.srcadBreakLocationMs=w.xj,void 0 !== w.eb && (u.srcadBreakTriggerId=w.eb));}return q;}})}});(function(q){q[q.q5c=0]="beginning";q[q.end=1]="end";})(r || (b.hZb=r={}));b.RD=a;},5472:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.iIb=void 0;b.iIb={"*":{Ftb:["logdata"],rules:[{$j:function(a){return a.EE;}}]},segmentPresenting:[{$j:function(a){return a.EE;},config:{Ss:["metrics"]}},{$j:function(a){return a.Vd;}},{$j:function(a){return a.Vd;},config:{Ss:["metrics","srcStartPosition"],iob:!0}},{$j:function(a){return a.Vd;},config:{Ss:["metrics","srcTransitionPosition"],iob:!0}},{$j:function(a){return a.Vd;},config:{Ss:["metrics","destPosition"]}},{$j:function(a){return a.E8b;}}],streamPresenting:[{$j:function(a){return a.Vd;}}],segmentAppended:[{$j:function(a){return a.gea;}}],fragmentsMissing:[{$j:function(a){return a.Vd;},config:{Ss:["nextAvailableGraphPosition"]}}]};},4515:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.Aeb=void 0;d=a(22970);n=a(66164);c=a(61996);f=a(69575);g=a(64281);e=a(5472);t=(function(){function h(k,l){var m;m=this;this.saa=k;this.events=(0,g.oNa)(function(){return m.Qq;},this.saa.events,l,e.iIb);this.Kuc=(0,f.Df)(n.platform,this.saa.console,"PLAYERHOST");new c.zm({xg:10,qj:this,source:"PlayerHost",console:this.Kuc});}h.prototype.zMa=function(){this.Qq=void 0;};h.prototype.M0a=function(k){this.Qq=k;};d.__decorate([(0,c.gb)({methodName:"clearProxyPlaygraphContext"})],h.prototype,"zMa",null);d.__decorate([(0,c.gb)({methodName:"setProxyPlaygraphContext"})],h.prototype,"M0a",null);return h;})();b.Aeb=t;},94152:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.lIb=void 0;b.lIb={"*":{Ftb:["logdata"],rules:[{$j:function(a){return a.EE;}}]},locationSelected:[{$j:function(a){return a.gea;}}],segmentComplete:[{$j:function(a){return a.gea;}}],segmentStarting:[{$j:function(a){return a.gea;}}],serverSwitch:[{$j:function(a){return a.gea;}}],streamSelected:[{$j:function(a){return a.Vd;}}],ellaChannelSwitch:[{$j:function(a){return a.EE;}}],ellaRelaySwitch:[{$j:function(a){return a.EE;}}],seeked:[{$j:function(a){return a.Vd;}}]};},14739:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u;Object.defineProperties(b,{__esModule:{value:!0}});b.DFa=void 0;d=a(22970);n=a(79048);c=a(91176);f=a(66164);g=a(51308);e=a(54366);h=a(61996);k=a(65161);l=a(52571);m=a(48170);p=a(29254);r=a(36414);q=a(64281);u=a(94152);t=(function(){function v(w,x,y,A){var z;void 0 === A && (A="CphAsePlaygraph");z=this;this.Qq=w;this.pLb=y;this.LPb=A;this.xuc=new p.UFa();this.Rkb=new Map();x(function(B){return d.__awaiter(z,[B],void 0,function(C){var D,F;F=C.kr;return d.__generator(this,function(H){switch(H.label){case 0:return [4,F];case 1:return (D=H.T(),this.sM(D),[2]);}});});});}Object.defineProperties(v.prototype,{Da:{get:function(){return this.Qq.Da;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{Vh:{get:function(){return this.Da;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{Z:{get:function(){return this.Pr.Z;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{Jb:{get:function(){return this.Pr;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{parent:{get:function(){return this.tC;},set:function(w){this.tC=w;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{vk:{get:function(){return this.Qq.vk;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{sb:{get:function(){void 0 === this.Lib && (this.Lib=(0,c.Df)(f.platform,this.Da.wR.console,this.LPb));return this.Lib;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{Bb:{get:function(){return this.Da.config;},enumerable:!1,configurable:!0}});Object.defineProperties(v.prototype,{Jyb:{get:function(){return !1;},enumerable:!1,configurable:!0}});v.prototype.Tb=function(){var w,x;w=this.Qq;this.kNa=new h.zm({xg:10,qj:this,source:this.LPb,console:this.sb});this.events=(0,q.oNa)(function(){return w;},w.Da.events,this.pLb,u.lIb);this.Pr=w.Da.Jb;x=w.vk;x.Tb();w.Da.Sc(new e.On(this.kNa));w.Da.Sc(new e.On(w.vk.pe));w.Da.Sc(new r.I6a(("").concat(w.eCb,"::gls"),x));w.Da.parent=w.de;};v.prototype.Rz=function(w){var x,y;x=this.player || this.Da.player;this.player=w;w.M0a && w.M0a(this.Qq);y=this.Qq.Da.Rz(w.saa || w);y?(this.player=w,x !== w && x.zMa && x.zMa()):this.player=x;return y;};v.prototype.hva=function(w,x,y,A){(w=w || this.mK(x || this.Jb)) && this.sFc(w,this.Jyb,y,A);};v.prototype.sFc=function(w,x,y,A){var z,B,C,D,F,H,E,G,J;z=w.Z;B=this.Qq.de;C=B.player;F=B.Z;if(D=y?y:B.lo && C.Vd?C.Yg:B.Sx?B.gm:void 0){H=this.Da.Jb.get(D.L);E=w.get(D.L);H && !E && (D=this.vk.CI(D));}B.config.wXc && x && C.VM(!0);x=B.qRa();m.l && this.sb.log(("onNewInnerPlaygraph: outer: ").concat(JSON.stringify(F)),{xSb:w.identifier});m.l && this.sb.log(("onNewInnerPlaygraph: combined: ").concat(JSON.stringify(z)));this.xuc.set(z,!0);F=this.Da.EU(w);try{if(!F.success || D && !C.Vd && !B.Sx || y && A){C.Ma.lj && (this.sb.error(("Playgraph update failed: ").concat(JSON.stringify(F))),(0,l.assert)(!1,"Update failed but player is not paused:" + k.fx[F.reason]));B.Jg(g.RN.nBb);F=this.Da.EU(w);if(D){G=this.vk.tG(D);J=z.ba[G.L];(null === J || void 0 === J?void 0:J.type) === n.Gd.padding && (G={L:J.Gc,offset:c.I.ia});this.Q0a(D);this.Da.Yva(G,A);C.resume();}m.l && this.sb.log("onNewInnerPlaygraph: result",{oDc:w.identifier,result:k.fx[F.reason],success:F.success,xSb:this.Jb.identifier,o5b:this.Da.Jb.identifier});}else m.l && this.sb.log("onNewInnerPlaygraph: result (in-flight)",{oDc:w.identifier,result:k.fx[F.reason],success:F.success,xSb:this.Jb.identifier,o5b:this.Da.Jb.identifier});}catch(L){this.sb.error(("onNewInnerPlaygraph: error: ").concat(L));}finally{x.release();}};v.prototype.EU=function(w){var y,A;function x(){var z;z=w.m7(y.Pr);m.l && y.sb.trace("updateWorkingPlaygraph:successHandler",{qta:y.Pr.identifier,Psa:z.identifier});y.Pr=z;}y=this;A=this.mK(w) || w;try{return (this.Da.events.IIb("playgraphUpdating",x),m.l && this.sb.trace("updateWorkingPlaygraph:Starting update",{qta:this.Pr.identifier,dbd:w.identifier,Zad:A.identifier}),this.Da.EU(A));}finally{this.Da.events.removeListener("playgraphUpdating",x);}};v.prototype.vN=function(w){w=n.rF.update(this.Jb,w);m.l && this.sb.log("updatePlaygraphMap:Attempt to update playgraph",{Psa:w.identifier});return this.EU(w);};v.prototype.sM=function(w){var x;x=this.Bb.A9 || [];if(w.S.OC && x.some(function(y){return y == w.R;}))return (x=("").concat(w.R," was excluded from content playgraph"),this.kNa.ug(x),m.l && this.sb.trace(x),!1);w.S.Hb && this.Rkb.set(w.J,w.S.Hb);return !0;};v.prototype.Jg=function(w){this.Da.Jg(w);};v.prototype.Aoc=function(w){return this.Rkb.get(w);};v.prototype.Q0a=function(){};d.__decorate([(0,h.gb)({methodName:"attachPlayer"})],v.prototype,"Rz",null);d.__decorate([(0,h.gb)({methodName:"reevaluateInnerPlaygraph"})],v.prototype,"hva",null);d.__decorate([(0,h.gb)({methodName:"processViewableResponse"})],v.prototype,"sM",null);d.__decorate([(0,h.gb)({methodName:"cancelStreaming"})],v.prototype,"Jg",null);return v;})();b.DFa=t;},57722:function(t,b,a){var n;function d(c,f){var g,e;g=n.__assign({},c);e=n.__read(f || [],1)[0];e && c[e] && (c=c[e],"object" === typeof c?(f=f.concat(),f.shift(),g[e]=d(c,f)):g[e]=c);return g;}Object.defineProperties(b,{__esModule:{value:!0}});b.Vd=function(c){return !(null === c || void 0 === c || !c.position);};b.jxc=function(c){return !(null === c || void 0 === c || !c.L) && !(null === c || void 0 === c || !c.offset);};b.tuc=function(c){return !(null === c || void 0 === c || !c.L) || !(null === c || void 0 === c || !c.segmentId);};b.yxc=function(c,f){return "string" === typeof c && !(!f.de.Z.ba[c] && !f.Da.Z.ba[c]);};b.ywc=function(c){return !(null === c || void 0 === c || !c.J) && !(null === c || void 0 === c || !c.Pa);};b.rwc=function(c){return !(null === c || void 0 === c || !c.Kd);};b.aRa=function(c,f){var g;g=c;f.forEach(function(e){g=null === g || void 0 === g?void 0:g[e];});return g;};b.DMa=d;b.EPc=function(c,f,g){for(var e=0;e < f.length - 1 && c;e++)c=c[f[e]];return c?(c[f[f.length - 1]]=g,!0):!1;};n=a(22970);},54775:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperties(b,{__esModule:{value:!0}});b.e6a=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(66164);g=a(69575);e=a(40666);h=a(48170);k=a(65161);l=a(49870);t=(function(){function m(p,r,q,u,v,w,x){var y;y=this;this.mc=p;this.Aj=r;this.config=q;this.NEc=u;this.ie=v;this.console=w;this.qPa=new n.gf();this.events=new n.EventEmitter();this.console=(0,g.Df)(f.platform,w,"BranchDecisionMaker");this.MPb=[function(A,z){var B;B=A.oa;return B.K.p2?(h.l && y.console.trace(("").concat(B.K.id," does not need tracking")),{result:!1}):z(A);},function(){return {result:!0};}];this.Azc=new l.Bab(x,w);}m.Joc=function(p){return p.Ob || p.VS;};m.Spc=function(p){var r,q;r=p.Gc;q=p.g0;return r?r:q.length?q[0]:p.aB[0];};m.prototype.j6b=function(p){this.MPb.unshift(p);};m.prototype.xU=function(p,r,q){var u,v,w;u=this;void 0 === q && (q=!1);v=p.K;q=c.OE.kL({oa:p,Ld:r,force:q},this.MPb);h.l && this.console.trace(("tracking ").concat(p.K.id),{Zcd:q});if(!1 === q.result)this.RPb !== p && this.reset();else {this.reset();this.RPb=p;w=this.q$b(p);q=w.Tva;r=r.lessThan(w.nTa);h.l && this.console.trace(("tracking ").concat(p.K.id),{L:v.id,B6c:r,Acd:null === q || void 0 === q?void 0:q.G});this.hOc(v,r?q:void 0);if(r)this.qPa.on(p.events,"branchEdited",function(){u.xU(p,u.mc.Ma.currentTime,!0);});}};m.prototype.Zob=function(){var p;null === (p=this.Drb) || void 0 === p?void 0:p.Ka();this.Drb=void 0;};m.prototype.reset=function(){this.Zob();this.qPa.clear();this.RPb=void 0;};m.prototype.q$b=function(p){var r,q,u,v,w;v=1 < p.K.aB.length || 0 < (null !== (q=null === (r=p.K.Ul) || void 0 === r?void 0:r.length) && void 0 !== q?q:0);q=m.Joc(p);r=c.I.Ba(v?this.config.dca:this.config.mBb);w=c.I.Ba(this.config.BCc + this.config.cca);r=q.ea(r);q=(0,k.rs)(this.ie.value)?q.ea(w):r;if(p=this.r$b(p,v))if((h.l && this.console.log("Calculated live decision",{reason:p.reason,type:null === (u=p.dg) || void 0 === u?void 0:u.type}),p.dg)){if("immediate" === p.dg.type)return {nTa:c.I.ia};u=p.dg.when;h.l && (0,c.assert)(u.type === e.DO.absolute,"we only support abs times");h.l && this.console.log("Calculated live decision for time",{D4c:u.timestamp});return {nTa:q,Tva:u.timestamp};}return {nTa:q,Tva:r};};m.prototype.r$b=function(p,r){if(this.config.okc)return this.Azc.CAc(p,r);};m.prototype.hOc=function(p,r){var q,u;this.Zob();q=this;u=this.Aj;r && (u=this.mc);this.Drb=u.Xr(function(){return d.__generator(this,function(v){switch(v.label){case 0:return r?[4,e.$d.lm(r)]:[3,2];case 1:(v.T(),v.label=2);case 2:return (q.events.emit("onDeciding",{type:"onDeciding",dg:q.fwb(p),ga:p}),[4,e.$d.eya]);case 3:return (v.T(),q.BAc(p),[2]);}});},"branch decision");};m.prototype.fwb=function(p){return m.Spc(p);};m.prototype.BAc=function(p){var r;this.qPa.clear();r=this.fwb(p);h.l && this.console.trace(("BranchDecisionMaker making decision for ").concat(p.id,", decision is ").concat(r));this.NEc(p.id,r,!0);};return m;})();b.e6a=t;},25510:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.n6a=void 0;d=a(22970);n=a(91176);c=a(66164);a(97685);f=a(65161);g=a(52571);e=a(61996);h=a(40666);t=(function(){function k(l,m,p,r,q,u,v,w){var x;void 0 === w && (w=500);x=this;this.console=l;this.config=m;this.bd=p;this.events=r;this.uta=q;this.un=u;this.mc=v;this.J9b=w;this.lZa=this.OYa=this.GLa=0;this.nsa=[];this.gA={eY:0};this.state=new n.vt(f.Rd.yt);this.pe=new e.zm({xg:10,qj:this,source:"BufferStateTracker",Vlb:function(){return {isBuffering:x.no};}});}Object.defineProperties(k.prototype,{eY:{get:function(){return this.gA.eY;},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{no:{get:function(){return (0,f.rs)(this.state.value);},enumerable:!1,configurable:!0}});k.prototype.Mfa=function(l){var m;m=this;Array.isArray(l) || (l=[l]);l.forEach(function(p){p.mediaType === f.u.X && (m.Nnb=d.__assign(d.__assign({},m.Nnb),{audio:{trackId:p.trackId,trackIndex:p.pN}}));});};k.prototype.AFc=function(){this.OYa=c.platform.time.ha();};k.prototype.t0=function(l){this.set(f.Rd.yt);this.z1a(l,f.Rd.Pf);};k.prototype.vta=function(){this.gA.eY++;};k.prototype.w0=function(l){this.yL={wk:l.wk,bh:l.errorCode,Qg:l.Qg};"temporaryNetworkError" === l.type && this.state.value === f.Rd.Pf && (l=this.bd.JBb || 0,c.platform.time.ha() - l >= this.config.Ksa && this.uta("BufferingStateTracker: Temporary failure while buffering","NFErr_MC_StreamingFailure",this.yL));};k.prototype.Hta=function(){this.yL=void 0;};k.prototype.ml=function(l){this.no || this.z1a(l,f.Rd.wm);};k.prototype.UFc=function(l,m){this.state.value !== f.Rd.Pf && this.z1a(l,f.Rd.nja);this.Mfa(m);};k.prototype.fFc=function(l,m){var p;p=this;this.config.H9b && this.no && (-1 === this.nsa.indexOf(l) && this.nsa.push(l),2 === this.nsa.length && Promise.resolve().then(function(){p.no && void 0 !== p.EB && p.Pm("memoryLimit",m.y2,m.z2);}));};k.prototype.oPc=function(l,m){(0,g.assert)(this.state.value === f.Rd.Pf && void 0 === this.EB);this.EB=l;m && (this.events.emit("initialAudioTrack",{type:"initialAudioTrack",trackId:m.trackId,trackIndex:m.pN}),this.Mfa(m));};k.prototype.IPc=function(l,m,p){(0,g.assert)(this.no);this.KTa=null !== l && void 0 !== l?l:this.KTa;this.qaa=null !== m && void 0 !== m?m:this.qaa;this.ZZ=p || this.ZZ;};k.prototype.Pm=function(l,m,p){var r;(0,g.assert)(this.no && void 0 !== this.EB && void 0 === this.ama && void 0 === this.Oxa && void 0 === this.Mka);this.ama=l;this.Oxa=m;this.Mka=p;this.Cv=100;this.yMa();this.hOa();null === (r=this.oMa) || void 0 === r?void 0:r.Ka();this.state.value === f.Rd.wm && (this.lZa=c.platform.time.ha());this.Djc();this.set(f.Rd.$p);this.Mka=this.Oxa=this.ama=this.ZZ=this.qaa=this.KTa=this.EB=void 0;};k.prototype.stop=function(){var l;this.set(f.Rd.yt);this.yMa();this.hOa();null === (l=this.oMa) || void 0 === l?void 0:l.Ka();};k.prototype.nMa=function(l,m,p,r){var q,u,v,w,x,y,A,z,B,C;q=this;(0,g.assert)(this.no);null === (u=this.oMa) || void 0 === u?void 0:u.Ka();if(this.state.value === f.Rd.wm && c.platform.time.ha() < this.lZa + this.config.BEb){x=this.config.BEb - (c.platform.time.ha() - this.lZa);this.oMa=this.mc.Ut(h.$d.bz(n.I.Ba(x)),function(){q.nMa(l,m,p,r);});}else {u=p.VG(f.u.X);y=p.VG(f.u.U);A=c.platform.time.ha() - Math.max(this.GLa,this.OYa);if(u || y){z=function(D){return D?D.cy() || D.op()?r.qma(q.state.value,l,A >= q.config.U0,m,D,q.eY):{complete:!1,reason:"selecteeNotStreamable"}:{complete:!0,reason:"noSelectee"};};B=z(u);z=z(y);C=function(D){var F;return {reason:D.reason,complete:D.complete,bl:null !== (F=D.Bv) && void 0 !== F?F:0};};this.pe.ug({as:C(B),vs:C(z),bt:A});C=y?z:B;C.bXc=y && z.Bv || 0;C.l8b=u && B.Bv || 0;B.complete && z.complete?(C.complete=!0,this.Pm(null !== (x=C.reason) && void 0 !== x?x:"unknown",null !== (v=C.bXc) && void 0 !== v?v:0,null !== (w=C.l8b) && void 0 !== w?w:0)):(C.complete=!1,this.p$b(C),this.pe.ug({bp:this.Cv}));}}};k.prototype.p$b=function(l){var m,p,r;r=l.progress;l.sba?r=(c.platform.time.ha() - Math.max(this.GLa,this.OYa)) / this.config.U0:r || (r=(null !== (m=l.Bv) && void 0 !== m?m:0) / this.config.zp);l=Math.min(Math.max(Math.round(100 * r),null !== (p=this.Cv) && void 0 !== p?p:0),99);l != this.Cv && (this.Cv=l);};k.prototype.z1a=function(l,m){(0,g.assert)(m === f.Rd.Pf || void 0 !== l);this.EB=l;this.Cv=0;this.Ysa=void 0;this.gA.eY=0;this.nsa=[];l=this.state.value === f.Rd.Pf || this.state.value === f.Rd.wm;this.GLa=c.platform.time.ha();this.set(m);l || this.Fjc();this.no && (this.oQc(),(m === f.Rd.wm || this.config.uMc) && this.iqb());};k.prototype.set=function(l){this.state.set(l);};k.prototype.Fjc=function(){(0,g.assert)(this.events && void 0 !== this.Cv);this.Ysa=this.Cv;this.events.emit("bufferingStarted",{type:"bufferingStarted",time:c.platform.time.ha(),percentage:this.Cv});};k.prototype.oQc=function(){var l;l=this;this.yMa();this.ODc=this.mc.Oma(function(){return l.Ejc();},n.I.Ba(this.J9b),"buffering-notification");};k.prototype.yMa=function(){var l;null === (l=this.ODc) || void 0 === l?void 0:l.Ka();};k.prototype.Ejc=function(){this.no && this.events && void 0 !== this.Cv && this.Cv !== this.Ysa && this.events.emit("buffering",{type:"buffering",time:c.platform.time.ha(),percentage:this.Cv}) && (this.Ysa=this.Cv);};k.prototype.Djc=function(){var l;(0,g.assert)(this.events && this.EB && void 0 !== this.ama && void 0 !== this.Mka && void 0 !== this.Oxa);this.Ysa=this.Cv;l=d.__assign({type:"bufferingComplete",time:c.platform.time.ha(),actualStartPosition:this.EB,reason:this.ama,aBufferLevelMs:this.Mka,vBufferLevelMs:this.Oxa,selector:this.KTa,initBitrate:this.qaa,initSelReason:this.ZZ},this.Nnb);this.events.emit("bufferingComplete",l);};k.prototype.iqb=function(){var l;l=this;!this.bG || this.bG.state !== h.ym.complete && this.bG.state !== h.ym.cQ?void 0 === this.bG && (this.bG=this.mc.Xr(function(){return l.Qnb();},"bufferingTimeoutTask")):this.bG.cd();};k.prototype.hOa=function(){this.bG && (this.bG.state !== h.ym.cQ && this.bG.Ka(),this.bG=void 0);};k.prototype.Qnb=function(){var l,m,p;return d.__generator(this,function(r){switch(r.label){case 0:return (l=this.config.Eba,this.console.trace(("BufferingStateTracker: starting buffering timer: ").concat(l,"ms")),[4,h.$d.bz(n.I.Ba(l))]);case 1:(r.T(),r.label=2);case 2:if(!this.no)return [3,4];m=this.bd.JBb || 0;p=c.platform.time.ha() - m;if(p >= l)return (this.console.trace(("Forcing streaming failure, ").concat(p,"ms since data received")),this.uta("BufferingStateTracker: Temporary failure while buffering","NFErr_MC_StreamingFailure",this.yL),[2]);this.console.trace(("BufferingStateTracker: network activity, wait ").concat(l - p,"ms"));return [4,h.$d.bz(n.I.Ba(l - p))];case 3:return (r.T(),[3,2]);case 4:return [2];}});};d.__decorate([(0,e.gb)({methodName:"onTemporaryNetworkError",Re:!0})],k.prototype,"w0",null);d.__decorate([(0,e.gb)({methodName:"onUnderflow",Re:!0})],k.prototype,"ml",null);d.__decorate([(0,e.gb)({methodName:"bufferingComplete",Re:!0})],k.prototype,"Pm",null);d.__decorate([(0,e.gb)({methodName:"stop",Re:!0})],k.prototype,"stop",null);d.__decorate([(0,e.gb)({methodName:"checkStreamingBufferingComplete",Re:!0})],k.prototype,"nMa",null);d.__decorate([(0,e.gb)({methodName:"createBufferingTimeoutTask",Re:!0})],k.prototype,"iqb",null);d.__decorate([(0,e.gb)({methodName:"destroyBufferingTimeoutTask",Re:!0})],k.prototype,"hOa",null);d.__decorate([(0,e.gb)({methodName:"bufferingTimeoutTaskRunner",Re:!0})],k.prototype,"Qnb",null);return k;})();b.n6a=t;},56879:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Jec=function(c){var h,k;function f(l){(0,n.rs)(l.newValue) && !(0,n.rs)(l.oldValue)?(null === k || void 0 === k?void 0:k.Ka(),k=h.Ut.apply(h,d.__spreadArray([],d.__read(g),!1))):null === k || void 0 === k?void 0:k.Ka();}for(var g=[],e=1;e < arguments.length;e++)g[e - 1]=arguments[e];e=c.bg;h=c.Aj;e.state.addListener(f);f({oldValue:n.Rd.yt,newValue:e.state.value});};d=a(22970);n=a(65161);},78538:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Ctb=function(n,c,f,g,e){var h,k;h=[];k=[];n=n.fr.values.filter(function(l){return l.Wl;}).map(function(l){var m,p;m=c(l.M,f,g,e);p=m.map(function(r){return r.mediaType;});h=(0,d.jX)(h,p);p=(0,d.Yo)(m,l.ka).map(function(r){return r.mediaType;});k=(0,d.jX)(k,p);p=(0,d.Yo)(l.ka,m).map(function(r){return r.mediaType;});k=(0,d.jX)(k,p);return {oa:l,ka:m};});return {xob:k,v9b:n,P6b:h};};d=a(91176);},19455:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperties(b,{__esModule:{value:!0}});b.e9a=void 0;d=a(22970);n=a(45247);c=a(52571);f=a(65161);g=a(44284);e=a(14246);h=a(56841);k=a(8149);t=(function(l){function m(p,r,q,u,v){p=l.call(this,p,r,q,u,v) || this;r=(0,e.RRa)(p.config);p.Bua=r.V0.bind(r);p.qBb=new h.O4();return p;}d.__extends(m,l);m.prototype.YLb=function(p,r,q,u,v,w,x,y,A,z){var B,C,D,F,H,E,G,J,L,K,M,P;C=[];D=w.track;if(!this.kua(D,(0,k.oo)(D)?D.kpa(u):void 0))return {stream:M,pE:C,reason:"locationSelectionFailure"};F=w.Lp;H=w.MG;u=F.ipa();E=w.mediaType;G=E === n.u.X;J=E === n.u.Ca;L=w;if((J || G) && !u){K=w.oa.VG(n.u.U);L=K?K:L;}v=this.Iqb(p,r,v,L,!!z);r=this.lqc(w,r,p,v.state,q,y,A,u);p=r.first;y=(null === y || void 0 === y?void 0:y.lma) || (null === A || void 0 === A?void 0:A.lma);if(0 === p.length && y)return {stream:void 0,pE:C,reason:"allStreamsFiltered"};!u || (null === (B=u.mR(D.mediaType)) || void 0 === B?0:B.equals(w.track)) || (u=this.Hmc(u,p));if((J || G) && u){M=u.Ui(E);C=this.Qxb(p,u);return {stream:M,pE:C};}x=F.K1(v,r,0,this.Bua,L.oUa(),x,H);if(!x)return {stream:M,pE:C,reason:"streamSelectionFailure"};w={wh:x.wh,nM:x.nM};if(x.reason){P=x.reason;this.Hob(E,p,q);}this.Gjc(x,p);u=x.sd || p[0];F.uk(n.u.X).ST(u.Ui(n.u.X));F.uk(n.u.U).ST(u.Ui(n.u.U));C=this.Qxb(p,u);M=u.Ui(E);q=x.rn;u=Array.from(new Set(p.map(function(I){return I.Ui(E);}).filter(function(I){return void 0 !== I;})));F=d.__assign(d.__assign({},x),{sd:M});return {stream:M,pE:C,ZZ:P,Ky:w,rn:q,rub:u,aMb:F};};m.prototype.Qxb=function(p,r){var q;q=this.Rxb(p,r,n.u.X);p=this.Rxb(p,r,n.u.U);return d.__spreadArray(d.__spreadArray([],d.__read(q),!1),d.__read(p),!1);};m.prototype.Rxb=function(p,r,q){var u;p=p.map(function(v){return v.Ui(q);});u=r.Ui(q);return p.filter(function(v){var w;return void 0 !== v && v !== u && v.Jw && !v.za && !(null === (w=v.Qa) || void 0 === w?0:w.length);});};m.prototype.lqc=function(p,r,q,u,v,w,x,y){var A,z,B,C,D,F;A=new g.eCa();z=this.Ah(p.oa.jR(n.u.U),q,v,p.oa.Kd,p.oa.Uf,x);B=this.Ah(p.oa.jR(n.u.X),q,v,p.oa.Kd,p.oa.Uf,w);C=p.oa.jR(n.u.Ca);D=this.Qoa(p,r);z=this.qBb.pqb(this.config,this.Bua,D,u,B,z,C,y);A.wP(z);r=p.oa.Ob.ea(r);r=this.config.esa - r.G;for(z=p;0 < r;){F=this.navigator.next(z);if(null === F || void 0 === F || !F.Uf)break;z=this.Ah(F.oa.jR(n.u.U),q,v,F.oa.Kd,F.oa.Uf,x);B=this.Ah(p.oa.jR(n.u.X),q,v,p.oa.Kd,p.oa.Uf,w);z=this.qBb.pqb(this.config,this.Bua,D,u,B,z,C,y);A.wP(z);r-=F.oa.K.Wb.G;z=F;}return A;};m.prototype.Hmc=function(p,r){var q;q=r[0];r.filter(function(u){return u.Hq;}).every(function(u){return u.wv && u.ot && p.wv && p.ot && u.wv <= p.wv && u.ot <= p.ot?(q=u,!0):!1;});return q;};m.prototype.qma=function(p,r,q,u,v,w,x){var y,A,z;if(!(0,f.rs)(r))return {complete:!0,reason:"playing"};if(!w.hZa)return {complete:!1,reason:"unknown"};if(w.PGb)return ((0,c.assert)(w.Qta),w.Qta);y=w.Lp;A=this.Qoa(w,q);z=y.ipa();q=A.cl - A.Cd;if(q < this.config.zp || void 0 === z)return {complete:!1,Bv:q,reason:"preBuf"};if(w.mediaType === n.u.X)return {complete:!0,Bv:q,reason:"audio"};if(p=p.mMa(w.mediaType))return {complete:!0,Bv:q,reason:p};this.kua(w.track);w=new g.eCa();w.wP([z]);y.Zca(w,(0,f.PYa)(r),A,this.Bua);r=y.Yz(A,r,v,z,x);if(!r.complete && u)return {complete:!0,reason:"prebufferTimeLimit",Bv:q};r.Bv=q;return r;};m.prototype.hsc=function(p,r){var q;return d.__assign(d.__assign({},r),{sd:null === (q=r.sd) || void 0 === q?void 0:q.Ui(p)});};m.prototype.Gsc=function(p,r){return Array.from(new Set(r.map(function(q){return q.Ui(p);}).filter(function(q){return void 0 !== q;})));};m.prototype.Gjc=function(p,r){var q;q=this;r[0].O9(function(u){var v,w;v=q.Gsc(u.mediaType,r);w=q.hsc(u.mediaType,p);q.events.emit("streamSelection",{type:"streamSelection",mediaType:u.mediaType,result:w,streamList:v});});this.events.emit("jointStreamSelection",{type:"jointStreamSelection",result:p,streamList:r});};return m;})(a(54477).sBa);b.e9a=t;},94328:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.OWc=function(g,e){g=g.ba[e.L];if(void 0 === g)return {m_:!1,reason:("Segment ").concat(e.L," was not found")};if(0 > e.offset.G)return {m_:!1,reason:("Offset ").concat(e.offset.G," was negative")};if(void 0 === g.fb || null === g.fb || Infinity === g.fb)return {m_:!0};g=g.fb - g.Ua;return e.offset.G >= g?{m_:!1,reason:("Offset ").concat(e.offset.G," was greater than segment duration ").concat(g)}:{m_:!0};};b.FSa=function(g,e){if(g === e)return !0;if(g && e && g.L === e.L){if(g.offset === e.offset)return !0;g=d.I.abs(g.offset.ea(e.offset));if(f.greaterThan(g))return !0;}return !1;};b.tn=function(g,e,h){var k,l,p;k=e.la;e=e.Mvc;void 0 === h && (h={});k=k.Jb;l=(null === e || void 0 === e?0:e.id)?k.get(null === e || void 0 === e?void 0:e.id):k.initial;(0,n.assert)(l,"initialSegment must be found in workingPlaygraph");e=(null === e || void 0 === e?void 0:e.EOc) || (null === l || void 0 === l?void 0:l.ib);if(e.greaterThan(g))return h.yRc?{offset:g.ea(e),L:l.id}:void 0;l=k.kH.KK(l.id);for(var m=l.next();!m.done;){k=m.value;p=e;e=p.add(k.Wb);if(e.greaterThan(g))return (g=g.ea(p),c.l && (0,n.assert)(g.Tf(d.I.ia) && g.lessThan(k.Wb)),{L:k.id,offset:g});m=l.next();if(m.done && h.zRc)return {L:k.id,offset:g.ea(p)};}};b.Vob=function(g,e){e=e.get(g.L);(0,n.assert)(e,"workingSegment must exist in workingPlaygraph for the position to clamp");e=e.Uob(g.offset);return {Wob:e,Gv:g.offset.ea(e)};};b.yLb=function(g,e){g=g.ba[e.L];if(void 0 !== g)return null === g.fb || void 0 === g.fb?{L:e.L,offset:d.I.max(d.I.ia,e.offset)}:{L:e.L,offset:d.I.max(d.I.ia,d.I.min(e.offset,d.I.Ba(g.fb - g.Ua)))};};d=a(91176);n=a(52571);c=a(48170);f=d.I.Ba(100);},54477:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.sBa=void 0;t=a(22970);d=a(66164);n=a(65161);c=t.__importDefault(a(40497));f=a(8149);a=(function(){function g(e,h,k,l,m){this.config=e;this.pRc=h;this.navigator=k;this.events=l;this.console=m;}g.prototype.Ah=function(e,h,k,l,m,p){return p?p.Ah(e,h,k.ea(l),m):e;};g.prototype.Ijc=function(e,h,k){this.events.emit("streamSelection",{type:"streamSelection",mediaType:e,result:h,streamList:k});};g.prototype.Hjc=function(e,h,k,l){e={type:"maxVideoBitrateChanged",time:d.platform.time.ha(),streaming:l,maxvb_old:e,maxvb:h,reason:k};this.events.emit(e.type,e);};g.prototype.kua=function(e,h){return e.M.Vi.Gxa(e.M.J,e.Ed,h);};g.prototype.Qoa=function(e,h){var A;for(var k,l=h.ea(this.pRc),m=[],p=e,r=h,q,u,v=0,w=0,x=(0,f.oo)(e.track),y=!0;p;){A=p.uwb(l);if(!y && !p.lk && !x)break;0 < A.Qa.length && (r=A.Qa[0].Sb,void 0 === q && (q=A.Qa[A.Qa.length - 1].Ob,u=A.eua >= A.Qa.length?q:A.Qa[A.eua].Sb),m=A.Qa.concat(m),v+=0 < A.qw?A.qw:0,w+=A.k1);p=this.navigator.parent(p);y=!1;}return {Rt:d.platform.DZ()[e.mediaType],Gb:Math.floor(r.G),Cd:h.G,Lk:Math.floor(null !== (k=null === q || void 0 === q?void 0:q.G) && void 0 !== k?k:h.G),cl:Math.floor(u?u.G:h.G),Lu:m.reduce(function(z,B){return z + B.ma;},0),qw:v,k1:w,d8c:m.length,Qa:m};};g.prototype.Iqb=function(e,h,k,l,m){var p,r,q;e=(0,n.PYa)(e);p=this.Qoa(l,h);r=l.mediaType === n.u.U?this.config.Wfa:this.config.x7;q=c.default.instance();h={state:e,by:e === n.Ub.rg,Te:l.pj,playbackRate:k,buffer:p,Cna:r,HY:m,Hm:null === q || void 0 === q?void 0:q.Hm,mediaType:l.mediaType,Cd:h.G,TZa:0};this.bWc(h,void 0 !== l.Lp.Co.il);return h;};g.prototype.Hob=function(e,h,k){var p,r;if(e === n.u.U){e="manifest";for(var l=0,m=h.length - 1;0 <= m;--m){p=h[m];r=p.bitrate;if(p.jH){l=Math.max(l,r);break;}else p.np?p.ko && (e="hf"):e="av";}this.TDb !== l && (this.Hjc(this.TDb,l,e,k),this.TDb=l);}};g.prototype.bWc=function(e,h){switch(e.state){case n.Ub.Pf:case n.Ub.wm:case n.Ub.rg:case n.Ub.Oi:if(h)break;e.state=n.Ub.Bl;case n.Ub.Bl:h && (e.state=n.Ub.Pf);}};return g;})();b.sBa=a;},28696:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.f9a=void 0;d=a(22970);n=a(45247);c=a(65161);f=a(14246);g=a(44284);e=a(52571);h=a(8149);t=(function(k){function l(m,p,r,q,u){m=k.call(this,m,p,r,q,u) || this;p=(0,f.RRa)(m.config);m.kwa=p.kwa.bind(p);m.a1a=p.a1a.bind(p);m.BQa=p.BQa.bind(p);m.ySa=p.ySa.bind(p);m.AIb=[p.zIb.bind(p),p.V0.bind(p)];return m;}d.__extends(l,k);l.prototype.YLb=function(m,p,r,q,u,v,w,x,y,A){var z,B,C,D,F,H;z=[];y=v.mediaType === n.u.X?x:y;B=v.track;if(!this.kua(B,(0,h.oo)(B)?B.kpa(q):void 0))return {stream:C,pE:z,reason:"locationSelectionFailure"};u=this.Iqb(m,p,u,v,!!A);A=v.Lp;q=A.Co;x=v.MG;C=q.il;D=this.Wsc(v,p,m,r,y);m=D.first;if(0 === m.length && (null === y || void 0 === y?0:y.lma))return {stream:void 0,pE:z,reason:"allStreamsFiltered"};C && !C.track.equals(B) && (C=this.Imc(C,m));y=v.mediaType;if((p=y === n.u.X) && C && !this.RQc(q,C))return (this.config.pyb && this.kwa(C.bitrate),{stream:C,pE:z});B=this.AIb[y];F=p?this.ySa():this.BQa();v=A.K1(u,D,F,B,v.oUa(),w,x);if(!v)return {stream:C,pE:z,reason:"streamSelectionFailure"};w={wh:v.wh,nM:v.nM};if(v.reason){H=v.reason;this.Hob(y,m,r);}this.Ijc(y,v,m);C=v.sd || m[0];r=C.bitrate;p?this.config.pyb && this.kwa(r):this.a1a(r);q.ST(C);z=m.filter(function(E){var G;return E !== C && E.Jw && !E.za && !(null === (G=E.Qa) || void 0 === G?0:G.length);});return {stream:C,pE:z,ZZ:H,Ky:w,rn:v.rn,rub:m,aMb:v};};l.prototype.Wsc=function(m,p,r,q,u){var v;v=new g.hHa();v.wP(this.Ah(m.track.Ed,r,q,m.oa.Kd,m.Uf(),u));p=m.oa.Ob.ea(p);for(p=this.config.esa - p.G;0 < p;){m=this.navigator.next(m);if(null === m || void 0 === m || !m.Uf)break;v.wP(this.Ah(m.track.Ed,r,q,m.oa.Kd,m.Uf(),u));p-=m.oa.K.Wb.G;}return v;};l.prototype.RQc=function(m,p){return 0 < this.config.Mp.length?!0:(m=m.s_) && m === p.location?!1:!0;};l.prototype.Imc=function(m,p){var r;r=p[0];p.filter(function(q){return q.Hq;}).every(function(q){return q.bitrate <= m.bitrate?r=q:!1;});return r;};l.prototype.qma=function(m,p,r,q,u,v,w){var x,y,A;if(!(0,c.rs)(p))return {complete:!0,reason:"playing"};if(!v.hZa)return {complete:!1,reason:"unknown"};if(v.PGb)return ((0,e.assert)(v.Qta),v.Qta);x=v.Lp;y=x.Co;r=this.Qoa(v,r);A=y.il;y=r.cl - r.Cd;if(y < this.config.zp || void 0 === A)return {complete:!1,Bv:y,reason:"preBuf"};if(v.mediaType === n.u.X)return {complete:!0,Bv:y,reason:"audio"};if(m=m.mMa(v.mediaType))return {complete:!0,Bv:y,reason:m};this.kua(v.track);m=new g.hHa();m.wP([A]);x.Zca(m,(0,c.PYa)(p),r,this.AIb[v.mediaType]);p=x.Yz(r,p,u,A,w);if(!p.complete && q)return {complete:!0,reason:"prebufferTimeLimit",Bv:y};p.Bv=y;return p;};return l;})(a(54477).sBa);b.f9a=t;},49870:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Bab=void 0;d=a(22970);n=a(91176);c=a(40666);t=(function(){function f(g,e){this.la=g;this.console=e;}f.prototype.jxb=function(g){return g.lessThan(n.I.ia)?{dg:{type:"immediate"},reason:"Invoking Panic"}:{dg:{type:"player",when:c.$d.lm(g)},reason:"Panic"};};f.prototype.CAc=function(g,e){var h,k,l,m;k=g.M;if(!k.Eb || e)return {reason:"not live or multi-choice"};if(!k.di)return {reason:"no media events store",dg:{type:"immediate"}};e=k.Oc.jrb;k=null === (h=this.la.Jb.get(g.K.id)) || void 0 === h?void 0:h.Gc;h=this.la.Jb.get(k);k=n.I.dh;h && (k=h.Yb.ea(g.ta).add(g.Ob));e=k.ea(e.ozc);k=g.K.type;l=this.la.config;m=this.la.Ld.add(e);l=g.Ob.ea(n.I.Ba(l.mBb));!1;return h?g.K.type !== h.type && "adBreak" === k?{dg:{type:"immediate"},reason:"transition from adBreak"}:g.K.type === h.type && "adBreak" !== k?{dg:{type:"immediate"},reason:"transition to like segments"}:h.Wb.isFinite()?e.lessThan(n.I.ia)?{dg:{type:"immediate"},reason:"successor end beyond live edge end"}:l.lessThan(m)?this.jxb(l):{dg:{type:"player",when:c.$d.lm(m)},reason:"waiting till live edge beyond successor end"}:d.__assign(d.__assign({},this.jxb(l)),{reason:"successor not finite"}):{reason:"successor not found"};};return f;})();b.Bab=t;},95650:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;Object.defineProperties(b,{__esModule:{value:!0}});b.w7a=b.Oza=void 0;d=a(22970);n=a(91176);c=a(91176);f=a(66164);g=a(90745);e=a(91176);h=a(95407);k=a(62442);(function(p){p[p.Mo=0]="INITIAL";p[p.jdb=1]="PENDING";p[p.Oh=2]="SUCCESS";p[p.$N=3]="FAILED";})(l || (l={}));(function(p){p[p.Oh=0]="SUCCESS";p[p.kbb=1]="MISSED_OPPORTUNITY";})(m || (b.Oza=m={}));t=(function(){function p(r,q,u,v,w,x,y){var z,B;function A(){z.M.Oc.EG && (z.bT.cd(),z.M.events.$l("liveEventTimesUpdated",A));}z=this;this.M=r;this.events=q;this.Aj=u;this.aI=v;this.Js=w;this.la=x;this.uma=new Map();this.Xaa=l.Mo;this.vF=!0;this.tra=new n.vCa({lva:n.bGa.all});this.Yn={lb:new Map(),c7:[]};this.console=(0,n.Df)(f.platform,y,"DAIPREFETCHER");!1;this.EQ=new g.gf();this.bT=this.Aj.Xr(function(){return z.kOc();},"DaiPrefetcher.schedulePrefetchAds");this.EQ.addListener(w.events,"adBreakComplete",function(){return z.bT.cd();});this.EQ.addListener(w.events,"adBreakPresenting",function(){return z.bT.cd();});this.M.events.on("liveEventTimesUpdated",A);this.CJc(this.M.S);r=(null === (B=this.M.S.L_) || void 0 === B?void 0:B.po.filter(function(C){return "adbreak" === C.type;})) || [];this.XUa=Math.min(this.AEc.length,r.length);0 === this.Yn.lb.size && (!1,this.XUa=0);}Object.defineProperties(p.prototype,{enabled:{get:function(){return this.vF;},set:function(r){!1;this.vF !== r && (this.vF=r,this.bT.cd());},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{uy:{get:function(){var r,q;q=null === (r=this.M.di) || void 0 === r?void 0:r.model;return q?q.lb.map(function(u){return u.eb;}).filter(n.$c):[];},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{AEc:{get:function(){var r,q,u;r=this;u=null === (q=this.M.di) || void 0 === q?void 0:q.model;return u?u.lb.filter(function(v){return v.Pa.add(v.duration).lessThan(r.M.di.iw);}).map(function(v){return v.eb;}).filter(n.$c):[];},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{nyc:{get:function(){var r;r=this.Js.OG().result[this.M.J] || [];return r[r.length - 1];},enumerable:!1,configurable:!0}});p.prototype.Tac=function(r){return this.uy.length === r + 1?this.Xaa === l.$N:!1;};Object.defineProperties(p.prototype,{IRc:{get:function(){var r,q,u,v,y,A,C,D;v=new Set();try{for(var w=d.__values(this.Yn.c7),x=w.next();!x.done;x=w.next()){y=x.value;A=[];try{for(var z=(q=void 0,d.__values(y)),B=z.next();!B.done;B=z.next()){C=B.value;D=this.Yn.lb.get(C);D?A.push(D):this.console.error("DaiPrefetcher::getSpeculativeAdBreakQueues: ad break not found for trigger",{eb:C,lb:Array.from(this.Yn.lb.keys())});}}catch(H){q={error:H};}finally{try{B && !B.done && (u=z.return) && u.call(z);}finally{if(q)throw q.error;}}A.length && v.add(A);}}catch(H){var F;F={error:H};}finally{try{x && !x.done && (r=w.return) && r.call(w);}finally{if(F)throw F.error;}}return v;},enumerable:!1,configurable:!0}});p.prototype.CJc=function(r){var q;if(null === (q=r.Hd) || void 0 === q?0:q.Hj)(r=r.Hd,r.a7 && (!1,this.tyb(r,new c.AbortController())));};p.prototype.X_a=function(){d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){this.bT.mo || this.bT.cd();return [2];});});};p.prototype.xbc=function(r){var q;q=this;r.forEach(function(u){if(u=u.au())(!1,q.uma.delete(u));});};p.prototype.tqb=function(r,q){var u,v,w;if(!q.has(r)){w=null === (v=null === (u=r.Kb) || void 0 === u?void 0:u[0]) || void 0 === v?void 0:v.id;w && (u=this.aI.Ps(w,{Rf:{Hb:this.M.S.Hb,fd:this.M.J},qs:!0}),u.kr.then(function(){!1;}),q.M5b(r,u.jl));}};p.prototype.hmc=function(r){d.__awaiter(this,void 0,void 0,function(){var q,u,v,w,x,y,A,z,B,C,D,F;return d.__generator(this,function(H){switch(H.label){case 0:(null === (D=this.Pka) || void 0 === D?void 0:D.Qh.abort(),q=new c.AbortController(),this.Pka={Qh:q},v=this.uy,w=d.__read((0,e.KEb)(this.aI.yT.bind(this.aI)),2),x=w[0],y=w[1],H.label=1);case 1:return (H.tc.push([1,3,,4]),A=Array.from(this.Yn.lb.keys()).filter(function(E){return -1 === v.indexOf(E);}),[4,x({Rf:{Hb:this.M.S.Hb,fd:this.M.J},uy:v,U7:A},q.signal)]);case 2:return (u=H.T(),z={M:this.M,BIb:u,dw:r,uI:{tB:y.start,vB:y.end}},this.events.emit("daiPrefetchComplete",z),[3,4]);case 3:return (B=H.T(),this.console.error("DaiPrefetcher: error fetching prefetch ads",n.oV.JK(B)),C=h.gC.n$(B),z={M:this.M,dw:r,uI:{tB:y.start,vB:y.end},error:B,errorCode:C},this.events.emit("daiPrefetchFailed",z),this.KMb(q,l.$N),[2]);case 4:if(q.signal.aborted)return ((null === (F=this.Pka) || void 0 === F?void 0:F.Qh) === q && (this.Xaa=l.Mo),[2]);!1;this.tyb(u,q);this.XUa=v.length;this.KMb(q,l.Oh);return [2];}});});};p.prototype.tyb=function(r,q){var u,v,w,A,z;w=new n.vCa({lva:n.bGa.all});this.cCc(r);try{for(var x=d.__values(this.Yn.c7),y=x.next();!y.done;y=x.next()){A=y.value[0];if(A){z=this.Yn.lb.get(A);z?this.tqb(z,w):this.console.error("DaiPrefetcher: ad break not found for trigger",{eb:A,lb:Array.from(this.Yn.lb.keys())});}}}catch(C){var B;B={error:C};}finally{try{y && !y.done && (u=x.return) && u.call(x);}finally{if(B)throw B.error;}}q.signal.addEventListener("abort",function(){!1;w.clear();});null === (v=this.Dgc) || void 0 === v?void 0:v.Qh.abort();this.Dgc={Qh:q};this.tra=w;this.Pka=void 0;};p.prototype.cCc=function(r){var q,u,v,y,A;v=this.uy;try{for(var w=d.__values(Object.keys(r.a7)),x=w.next();!x.done;x=w.next()){y=x.value;A=r.a7[y];"" === y?this.console.error("Empty ad break trigger id in prefetch data"):"REMOVE" === A.action || -1 !== v.indexOf(y)?(!1,this.Yn.lb.delete(y)):"UPSERT" === A.action && (A.Ra.FY || null !== (u=A.Ra.Kb) && void 0 !== u && u.length?(!1,this.Yn.lb.set(y,A.Ra)):this.console.error("Empty dynamic ad break in prefetch data",{vxa:y,Ra:A.Ra}));}}catch(B){var z;z={error:B};}finally{try{x && !x.done && (q=w.return) && q.call(w);}finally{if(z)throw z.error;}}this.Yn.c7=r.cGc.map(function(B){return B.filter(function(C){C=-1 !== v.indexOf(C);!1;return !C;});}).filter(function(B){return B.length;});};p.prototype.OG=function(){return this.uma;};p.prototype.pbc=function(r,q){var u,v,w,x,y,A;v=this;!1;w=this.Yn.lb.has(r);x=this.Yn.c7.some(function(D){return D[0] === r;});if(w && x){y=this.Yn.lb.get(r);this.Aj.Ut(n.$d.bz(n.I.Ba(1E3)),function(){return d.__awaiter(v,void 0,void 0,function(){return d.__generator(this,function(D){switch(D.label){case 0:return [4,this.la.bea()];case 1:return (D.T(),this.tra.delete(y),[2]);}});});},"delayedLeaseCleanup");w=function(D){var F,H,E;F=D.indexOf(r);-1 !== F && D.splice(F,1);H=y.Kb || [];E=q.duration.G;H=H.filter(function(G){G=G.fb - G.Ua;if(E >= G - 1E4)return (E=Math.max(E,0),E-=G,!0);!1;E=-Infinity;return !1;});0 === F && 0 < D.length && ((F=A.Yn.lb.get(D[0]))?A.Hqc(0 < E?q.duration.G - E:q.duration.G,q,F,D):A.console.error("Invalid state detected, did not have adbreak metadata for ad break trigger",{triggerId:D[0]}));A.uma.set(r,{status:m.Oh,Ra:d.__assign(d.__assign({},y),{Kb:H})});A.Yn.lb.delete(r);};A=this;try{for(var z=d.__values(this.Yn.c7),B=z.next();!B.done;B=z.next())w(B.value);}catch(D){var C;C={error:D};}finally{try{B && !B.done && (u=z.return) && u.call(z);}finally{if(C)throw C.error;}}}else (!1,this.Xaa === l.jdb && this.uma.set(r,{status:m.kbb}));};p.prototype.Hqc=function(r,q,u,v){var w,x;w=this;x=this.M.config;r=q.Pa.add(n.I.Ba(r));x=(0,k.cob)(r,this.M.Oc,x).YHb;!1;this.oBb=this.Aj.Ut(n.$d.lm(n.I.Ba(x)),function(){return d.__awaiter(w,void 0,void 0,function(){return d.__generator(this,function(){v[0] === u.eb?this.tqb(u,this.tra):!1;return [2];});});},"liveNextAdBreakManifestWindow");};p.prototype.kOc=function(){var r;return d.__generator(this,function(q){switch(q.label){case 0:r=this.$qc();if(!r.rX)return [3,2];this.Xaa=l.jdb;return [4,n.$d.lm(n.I.Ba(r.QCc))];case 1:(q.T(),this.hmc(r),q.label=2);case 2:return [2];}});};p.prototype.$qc=function(){var q,u,v,w,x,y,A,z;function r(B,C){var D;B=null !== (D=null !== B && void 0 !== B?B:x) && void 0 !== D?D:0;C=null !== C && void 0 !== C?C:w;D=void 0 === C?B:Math.floor(Math.random() * C) + B;!1;return {fya:B,uSb:C,HB:D};}if(!this.enabled)return (!1,{rX:!1});u=this.M.S.Hd;v=this.nyc;if(this.Yn.lb.size && (null === (q=this.M.di) || void 0 === q || !q.fLc) || this.uy.length && this.uy.length === this.XUa || !this.M.Oc.EG)return (!1,{rX:!1});w=u.Lrb;x=u.lhc;q=u.Nvc;y=u.Ovc;if(v){u="lastAdBreak";A=v.Pa.add(v.duration);}else (u="programStart",A=this.M.Oc.EG);if(v){if(!v.VJb && "mediaEvents" !== v.source)return (!1,{rX:!1});v=r(v.SIc,v.RIc);}else v=r(y,q);q=this.M.Oc.Ypb(A);A=this.M.Oc.K8b(q);y=A.ea(q).G;z=A.add(n.I.Ba(v.HB));z=this.M.Oc.gwa(z.G);u=d.__assign(d.__assign({rX:!0},v),{Hua:y,zP:q,pmb:u,tE:this.M.Wf,QCc:z,Nbd:A.G});!1;return u;};p.prototype.Ka=function(){!1;this.tra.Ka();this.bT.Ka();this.EQ.clear();this.oBb && this.oBb.Ka();};p.prototype.KMb=function(r,q){var u;r === (null === (u=this.Pka) || void 0 === u?void 0:u.Qh) && (this.Xaa=q);};return p;})();b.w7a=t;},40385:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.rab=void 0;t=(function(){function a(){}a.prototype.vNb=function(){return !0;};a.prototype.Eaa=function(){return !1;};a.prototype.gob=function(){return !0;};a.prototype.hob=function(){return !0;};return a;})();b.rab=t;},20349:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.zab=void 0;t=(function(){function a(d){this.model=d;}a.prototype.vNb=function(){var d;return void 0 === (null === (d=this.model.AL) || void 0 === d?void 0:d.jT);};a.prototype.Eaa=function(){var d;return !(null === (d=this.model.AL) || void 0 === d || !d.jT);};a.prototype.gob=function(){var d;return void 0 !== (null === (d=this.model.uoa) || void 0 === d?void 0:d.YD);};a.prototype.hob=function(d){var n;return void 0 !== (null === (n=this.model.uoa) || void 0 === n?void 0:n.YD) || "programstart" === d.type;};return a;})();b.zab=t;},41456:function(t,b,a){var d,n,c,f,g,e,h,k,l,m;Object.defineProperties(b,{__esModule:{value:!0}});b.Hbb=void 0;d=a(22970);n=a(90745);c=a(66164);f=a(91176);g=a(91562);e=a(61996);h=a(48170);k=a(40666);l=a(12548);m=a(95650);t=(function(){function p(r,q,u,v){this.la=r;this.wf=q;this.config=u;this.console=v;this.lD=new n.gf();this.PNa=new WeakMap();this.KYa=new n.gf();this.iIa=!0;this.events=new n.EventEmitter();this.console=(0,f.Df)(c.platform,v,"MEDIAEVENTSMANAGER");h.l && this.console.trace("MediaEventsManager ctor");this.ck=new e.zm({qj:this,source:"media-events-manager",xg:10,console:v});this.vua=this.la.gd;this.ica=new l.wcb();}Object.defineProperties(p.prototype,{vrb:{get:function(){return this.iIa;},set:function(r){var q;q=this;h.l && this.console.debug(("Setting daiPrefetchEnabled to ").concat(r));this.iIa=r;this.wf.forEach(function(u){if(u=q.YQ(u))u.enabled=r;});},enumerable:!1,configurable:!0}});p.prototype.M$=function(r){return r.di;};Object.defineProperties(p.prototype,{enabled:{get:function(){return this.config.qQ;},enumerable:!1,configurable:!0}});p.prototype.IH=function(r){var q,u,v,w,x,y;q=this;if(this.enabled && r.Eb){x=this.M$(r);if(x){h.l && this.console.trace("MediaEventsManager","onViewableReceived",r.J);y=function(A){A={id:A.id,Ej:A.Ej,PD:A.PD,payload:A.payload};h.l && q.console.trace("emitting mediaEventReceived:",A);q.events.emit("mediaEventReceived",A);};x.model.$A.forEach(y);this.lD.addListener(x.events,"netflixEventReceived",y);this.lD.addListener(x.events,"netflixEventCancelled",function(A){var z;A={id:A.id,Ej:A.Ej,sWc:A.duration.G,PD:A.PD,payload:A.payload,timestamp:c.platform.time.ha()};h.l && q.console.trace("emitting mediaEventCancelled:",A);q.events.emit("mediaEventCancelled",A);q.ica.Jtc(A);null === (z=q.jsa) || void 0 === z?void 0:z.cd();});this.lD.addListener(x.events,"modelUpdated",function(A){var z;h.l && q.console.trace("modelUpdated",{id:r.J,kRb:Array.from(A.I2.values())});if(A.I2.has("breakstart") || A.I2.has("adbreak") || A.I2.has("breakend"))(q.rbc(r,A.IWa),q.events.emit("adsUpdated",{M:r}));A.I2.has("netflix") && (h.l && q.console.trace("restarting mediaEventsTask - netflix updates"),null === (z=q.jsa) || void 0 === z?void 0:z.cd());});this.lD.addListener(x.events,"progress",function(A){var z;if(q.nI){z={M:r,ta:A.ta};h.l && q.console.trace("emitting mediaEventsProgress:",{J:r.J,ta:A.ta.ca()});q.events.emit("mediaEventsProgress",z);}});r.Eb && (h.l && this.console.trace("Received media events",{J:r.J,y6c:null === (v=null === (u=r.S) || void 0 === u?void 0:u.Hd) || void 0 === v?void 0:v.Hj}),(null === (w=r.Hd) || void 0 === w?0:w.Hj) && !this.PNa.has(r) && (h.l && this.console.trace("Constructing dai prefetcher for viewable",r.J),u=new m.w7a(r,this.events,this.la.Aj,this.la.aI,this.la.Cc.Js,this.la,this.console),u.enabled=this.iIa,this.PNa.set(r,u)));this.lD.on(this.vua,"clockChanged",function(){var A;q.KYa.clear();q.KYa.on(q.vua.Ma,"clockAdjusted",function(z){var B;z.reason === f.Yw.YM && (h.l && q.console.trace("restarting mediaEventsTask - clockAdjusted"),null === (B=q.jsa) || void 0 === B?void 0:B.cd());});h.l && q.console.trace("restarting mediaEventsTask - clockChanged");null === (A=q.jsa) || void 0 === A?void 0:A.cd();});this.jsa=this.vua.Xr(function(){return q.jOc(r);},"media-events-scheduler");}}};p.prototype.rbc=function(r,q){var u,v;u=this;h.l && this.console.debug("Checking claimed ad-breaks",{IWa:q.map(function(w){return w.ca();})});v=this.YQ(r);v && (r=this.M$(r),h.l && this.console.debug("Claiming... Checking dai ads",{Kb:r.model.lb.map(function(w){return {location:w.Pa.ca(),eb:w.eb};})}),r.model.lb.filter(function(w){return q.filter(function(x){return x.equal(w.Pa);}).length;}).forEach(function(w){w.eb?v.pbc(w.eb,w):h.l && u.console.debug("Missing adBreakTriggerId for ad break");}));};p.prototype.YQ=function(r){return this.PNa.get(r);};p.prototype.t0=function(r,q){this.nI && this.qna();this.Vbc(r,q);};p.prototype.OG=function(r){var q,u,v,w;q=this;if(this.enabled){u=this.M$(r);if(u){u=u.model.lb || [];v=this.YQ(r);w=(null === v || void 0 === v?void 0:v.OG()) || new Map();u=u.map(function(x){var y,A,z,B,C,D,F,H,E,G,J;A=x.location;z=x.zo;B=x.eb;C=x.duration;D=A.G;if(B && w.has(B)){F=w.get(B);switch(F.status){case m.Oza.kbb:H=!0;break;case m.Oza.Oh:(E=F.Ra,G=E.Kb?null === (y=E.Kb) || void 0 === y?void 0:y.reduce(function(L,K){return L.add(f.I.Ba(K.fb - K.Ua));},f.I.ia):f.I.ia);return d.__assign(d.__assign({},E),{Pa:x.Pa,location:A,fw:A.G,xj:D,duration:E.FY?C:G,type:E.FY?"embedded":"dynamic",zo:z,Gk:C,eb:B,Zx:!0,Qm:!0,j_:!1,source:"daiPrefetch"});}}y=q.config.pQ && r.qp?z === g.H5.bUb:!0;q.config.pQ && (r.qp?J={Nxa:"ENABLED_AS_NORMAL"}:r.Eb && (J={Nxa:"DISABLED_EXCEPT_FOR_PAUSE_EXIT"}));return {Pa:x.Pa,location:A,fw:D,Un:y,xj:D,Kb:[],NJ:{},duration:C,Gk:C,VJb:!0,type:"embedded",zo:z,eb:B,Qm:!(null === (G=null === (E=r.S) || void 0 === E?void 0:E.Hd) || void 0 === G || !G.Hj),j_:!1,source:"mediaEvents",N2:J,VL:H};});this.ck.ug({ads:u.slice(-5)});return u;}h.l && this.console.debug("No store found for viewable - not returning ads",r.R);}else h.l && this.console.debug("MediaEventsManager disabled - not returning ads");};p.prototype.eDc=function(r,q,u){var v,w;v=this.wf.get(r);if(v){w=q.ea(f.I.Ba(this.config.BCb)).ea(u);if(this.nI){(0,f.assert)(this.t1a,"Skip offset must be set if skip task is set");if(this.t1a.ln(w))return;this.qna();}h.l && this.console.trace("MediaEventsManager: needsMediaEvents starting skip task",r,q,u,w);this.Pqb(v,w);}};p.prototype.qnc=function(r,q){this.nI && this.qna();q=q.ea(f.I.Ba(this.config.BCb));h.l && this.console.trace("MediaEventsManager: forceRestartSkipTask, starting skip task",r.J,q);this.Pqb(r,q);};p.prototype.Pqb=function(r,q){var u;u=this;(0,f.assert)(!this.nI,"Skip task must not be set when creating a new one");this.nI=this.vua.Xr(function(){return u.rRc(r,q);},"media-events-skipper");this.t1a=q;};p.prototype.qna=function(){var r;(0,f.assert)(this.nI,"Skip task must be set when destructing it");null === (r=this.nI) || void 0 === r?void 0:r.Ka();this.t1a=this.nI=void 0;};p.prototype.Ka=function(){var r;r=this;this.nI && this.qna();this.KYa.clear();this.lD.clear();this.wf.forEach(function(q){var u;null === (u=r.YQ(q)) || void 0 === u?void 0:u.Ka();});this.wf.clear();this.ica.reset();};p.prototype.rRc=function(r,q){var u,v,w;return d.__generator(this,function(x){switch(x.label){case 0:(u=this.M$(r),(0,f.assert)(u,"Store must be present"),h.l && this.console.trace(("MediaEventsManager: starting skip task for viewable ").concat(r.J," ") + ("with skip offset ").concat(q.ca())),x.label=1);case 1:if(u.complete)return [3,3];v=u.iw;w=v.add(q);h.l && this.console.trace(("MediaEventsManager: waiting until ").concat(w.ca()," ") + ("to skip media events at ").concat(v.ca()));return [4,k.$d.lm(w)];case 2:return (x.T(),u.Hyb(v) || (h.l && this.console.trace(("MediaEventsManager: skipping at ").concat(v.ca()),{skip:q.ca(),target:v.ca(),trb:u.iw.ca(),vCb:r.fo().ca()}),u.FNb(v)),[3,1]);case 3:return [2];}});};p.prototype.jOc=function(r){var q,u,v,w,x,y,A,z,B,C,D,F,H;return d.__generator(this,function(E){switch(E.label){case 0:(E.tc.push([0,7,8,9]),q=d.__values(this.crc(r)),u=q.next(),E.label=1);case 1:if(u.done)return [3,6];v=u.value;w=v.event;x=v.mo;h.l && this.console.trace("MediaEventsManager - Checking event schedule - ",{wu:this.wu,event:w,mo:x});if((null === (H=this.wu) || void 0 === H?void 0:H.id) === w.id && x)return [3,3];this.wu && (h.l && this.console.trace("MediaEventsManager - Closing this.openedMediaEvent",{wu:this.wu}),this.EMa(r,this.wu));y=this.la.Vr({J:r.J,Pa:w.Pa});if(!y)return [3,3];A=this.la.tA(y);if(!A)return [3,3];h.l && this.console.trace("MediaEventsManager - Waiting for media event to begin:",{event:w});return [4,k.$d.lm(A)];case 2:(E.T(),h.l && this.console.trace("MediaEventsManager - Opening media event:",{event:w}),this.ZFc(r,w),E.label=3);case 3:z=this.la.Vr({J:r.J,Pa:w.Pa.add(w.duration)});if(!z)return [3,5];B=this.la.tA(z);if(!B)return [3,5];h.l && this.console.trace("MediaEventsManager - Waiting for event to elapse:",{event:w});return [4,k.$d.lm(B)];case 4:(E.T(),h.l && this.console.trace("MediaEventsManager - Closing event:",{event:w}),this.EMa(r,w),E.label=5);case 5:return (u=q.next(),[3,1]);case 6:return [3,9];case 7:return (C=E.T(),D={error:C},[3,9]);case 8:try{u && !u.done && (F=q.return) && F.call(q);}finally{if(D)throw D.error;}return [7];case 9:return [2];}});};p.prototype.crc=function(r){var q,u,v,w,x,y,A,z,B,C,D,F,H;return d.__generator(this,function(E){switch(E.label){case 0:q=this.M$(r);(0,f.assert)(q,"Store must be present");u=this.la;v=q.model.$A;w=u.Dub(r.J);if(!w)return [3,8];x=u.ns(w);y=!1;E.label=1;case 1:(E.tc.push([1,6,7,8]),A=d.__values(v),z=A.next(),E.label=2);case 2:if(z.done)return [3,5];B=z.value;C=!1;!y && x.Pa.lessThan(B.Pa.add(B.duration)) && (y=!0,C=x.Pa.Tf(B.Pa));return y?[4,{event:B,mo:C}]:[3,4];case 3:(E.T(),E.label=4);case 4:return (z=A.next(),[3,2]);case 5:return [3,8];case 6:return (D=E.T(),F={error:D},[3,8]);case 7:try{z && !z.done && (H=A.return) && H.call(A);}finally{if(F)throw F.error;}return [7];case 8:return [2];}});};p.prototype.ZFc=function(r,q){var u;this.wu=q;u=q.Pa;r=f.I.Ba(r.fl()).ea(u).G;u=this.la.ns(this.la.Yg).Pa.ea(u);q={id:q.id,Ej:q.Ej,YY:r,duration:q.duration.G,PD:q.PD,payload:q.payload,w2a:u.G,timestamp:c.platform.time.ha()};h.l && this.console.trace("emitting mediaEventTriggered:",q);this.events.emit("mediaEventTriggered",q);this.ica.Ltc(q);};p.prototype.Vbc=function(r,q){var u,v;if(q && this.wu && r){q=this.la.ns(q);u=this.wu.Pa;v=u.add(this.wu.duration);if(q.Pa.lessThan(u) || q.Pa.greaterThan(v))(h.l && this.console.trace("MediaEventsManager - Seek position not in window closing media event - ",{wu:this.wu}),this.EMa(r,this.wu));}};p.prototype.EMa=function(r,q){var u;this.wu=void 0;u=q.Pa.add(q.duration);r=f.I.Ba(r.fl()).ea(u).G;q={id:q.id,Ej:q.Ej,YY:r,timestamp:c.platform.time.ha()};h.l && this.console.trace("emitting mediaEventElapsed:",q);this.events.emit("mediaEventElapsed",q);this.ica.Ktc(q);};d.__decorate([(0,e.gb)({methodName:"getAds",Re:!0})],p.prototype,"OG",null);return p;})();b.Hbb=t;},4786:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Dfc=function(c,f){return c.hH?new n.rab():new d.zab(f);};d=a(20349);n=a(40385);},76452:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q;Object.defineProperties(b,{__esModule:{value:!0}});b.Lbb=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(91562);g=a(66164);e=a(48170);h=a(8149);k=a(61996);l=a(54366);m=a(45173);p=a(89025);r=a(12381);q=a(4786);t=(function(){function u(v,w,x,y){var A,z,B,C,D,F,H,E,G;A=this;this.M=w;this.config=x;this.RL=y;this.model={uM:[],get AL() {return 0 < this.uM.length?this.uM[this.uM.length - 1]:void 0;},get uoa() {return 0 < this.uM.length?this.uM[0]:void 0;},$A:[],lb:[],zUc:function(){return {last5NetflixMediaEvents:this.$A.map(function(J){return {id:J.id,contentTimestamp:new c.lW(J.Pa,J.Pa.add(J.duration)).toString()};}).slice(-5),netflixMediaEventsCount:this.$A.length,last5adBreaks:this.lb.map(function(J){return {id:J.id,contentTimestamp:new c.lW(J.Pa,J.Pa.add(J.duration)).toString()};}).slice(-5),adBreaksCount:this.lb.length,last5Programs:this.uM.map(function(J){var L,K;return {id:J.id,programStart:null === (L=J.YD) || void 0 === L?void 0:L.Pa.toString(),programEnd:null === (K=J.jT) || void 0 === K?void 0:K.Pa.toString()};}).slice(-5)};}};this.pJa=!1;this.$A=new Map();this.lb=new Map();this.Kq=new c.tO([],function(J,L){return J.Rg - L.Rg;});this.BF=c.I.BWa;this.Zn=new r.Ebb();(0,c.assert)(w.Eb,"MediaEventsStore requires live Viewable");this.events=new n.EventEmitter();y=c.I.ia;this.behavior=(0,q.Dfc)(this.M,this.model);this.console=new g.platform.Console("MEDIAEVENTSSTORE","asejs",("[").concat(this.M.R,"]"));e.l && this.console.log(("Creating MediaEventsStore: synthesizeLiveIdrMismatch=").concat(this.config.n2));this.ck=new k.zm({qj:this,source:"media-events-store",xg:10,console:this.console});this.M.Xe.Sc(new l.On(this.ck));H=x.n9;if(this.RL && H){E=this.RL;H=E.Egc;G=E.a9b;(E=E.O) && H >= G && (y=c.I.Ba(H - G).Kc(E));E=c.I.Ba(this.M.fl(!0));this.YEb(y,E) && (e.l && this.console.log("needs events from media event history, adjusting startContentTimestamp","startContentTimestamp",null === y || void 0 === y?void 0:y.ca(),"logicalLiveEdge",null === E || void 0 === E?void 0:E.ca(),"new startContentTimestamp",null === (z=c.I.min(y,E)) || void 0 === z?void 0:z.ca()),y=c.I.min(y,E));this.XIb(y);e.l && this.console.log("processed history: cutoffTimeMs",H,"baseTimeMs",G,"startContentTimestamp",y.ca());}else e.l && this.console.log("no media events history");this.behavior.vNb() && (this.Rs=new m.Fbb(v,w,x,this.Eaa.bind(this),this.Zn),this.Rs.events.on("mediaEventsReceived",function(J){var L;A.Kq.push(J);e.l && A.console.info("Received media events",{Rg:J.Rg,Tdd:A.Kq.wj().slice(0,5).map(function(K){return K.Rg;})});A.process();A.complete && (null === (L=A.Rs) || void 0 === L?void 0:L.Ka());}),this.Rs.events.on("eosReceived",function(){var J;null === (J=A.Rs) || void 0 === J?void 0:J.Ka();}),this.events.on("modelUpdated",function(){A.pJa=!0;}));null !== (B=this.M.Oc.coa) && void 0 !== B && B.isFinite()?void 0 === (null === (C=this.model.AL) || void 0 === C?void 0:C.jT) && (v=this.M.Oc.EG,void 0 !== v && (y=c.I.max(y,v))):y=c.I.max(y,c.I.Ba(this.M.fl(!0) - x.ACb));this.M.events.on("urlsUpdated",function(){var J;null === (J=A.Rs) || void 0 === J?void 0:J.Ofa(A.nn);});this.start(y);e.l && this.Rs && this.console.log(("starting retrieval at segment ").concat(this.nn,", ") + ("startSegmentNumber: ").concat(this.stream.track.Bo,", ") + ("startContentTimestamp: ").concat(y.ca(),", ") + "eventStartContentTimestamp: " + ("").concat(null === (D=this.M.Oc.EG) || void 0 === D?void 0:D.ca(),", ") + "eventEndContentTimestamp: " + ("").concat(null === (F=this.M.Oc.coa) || void 0 === F?void 0:F.ca(),", ") + ("logicalLiveEdge: ").concat(this.M.fl(!0),", ") + ("averageSegmentDuration: ").concat(this.stream.track.Zk.ca()));}Object.defineProperties(u.prototype,{iw:{get:function(){return this.BF;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{fLc:{get:function(){return this.pJa;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{complete:{get:function(){return this.Eaa(this.iw);},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{track:{get:function(){var v;v=this.M.getTracks(f.u.sm)[0];(0,c.assert)((0,h.oo)(v),"MediaEventsStore: track is not live");return v;},enumerable:!1,configurable:!0}});Object.defineProperties(u.prototype,{stream:{get:function(){return this.track.Ed[0];},enumerable:!1,configurable:!0}});u.prototype.pnc=function(){var v;v=c.I.Ba(this.M.fl(!0) - this.config.ACb);this.nn=0;this.Kq.clear();this.pJa=!1;this.BF=v;this.cd(v);};u.prototype.Hyb=function(v){var w;if(this.complete || this.iw.greaterThan(v))return (e.l && this.console.trace("" + ("hasMediaEvents ").concat(v.ca()," returns true")),!0);w=v.ea(c.I.Ba(this.config.zzc));e.l && this.console.trace(("hasMediaEvents ").concat(v.ca()," returns false,") + (" cutoff (").concat(this.iw.ca(),")") + (" catchup (").concat(w.ca(),")"));this.iw.lessThan(w) && (e.l && this.console.trace(("catchup to ").concat(w.ca())),this.cd(w));return !1;};u.prototype.FNb=function(v){!this.complete && this.iw.ln(v) && (v=v.add(this.track.Zk),e.l && this.console.trace(("skip to ").concat(v.ca())),this.cd(v));};u.prototype.qGb=function(v,w){var A;e.l && this.console.trace(("POI changed from ").concat(v.ca()," to ").concat(w.ca()));for(var x=!1,y=0;y < this.model.lb.length;y++){A=this.model.lb[y];if(A.Pa.G === v.G){e.l && this.console.trace(("Updating adBreak ").concat(y,", id:").concat(A.id," location: ").concat(A.Pa.ca()) + (" to location ").concat(w.ca()," ") + ("from ").concat(A.Pa.ca()," and duration from ").concat(A.duration.ca()," ") + ("to ").concat(A.duration.add(A.Pa.ea(w)).ca()));A.duration=A.duration.add(A.Pa.ea(w));A.Pa=w;x=!0;break;}if(A.Pa.add(A.duration).G === v.G){e.l && this.console.trace(("Updating adBreak ").concat(y,", id:").concat(A.id," location: ").concat(A.Pa.ca()) + (" duration to ").concat(w.ea(A.Pa).ca()," ") + ("from ").concat(A.duration.ca()));A.duration=w.ea(A.Pa);x=!0;break;}}e.l && !x && this.console.warn(("POI changed from ").concat(v.ca()," to ").concat(w.ca()," but no adBreak found"));};u.prototype.start=function(v){v=Math.floor(v.nf(this.stream.track.Zk));this.nn=v + this.stream.track.Bo;this.BF=this.stream.track.Zk.eh(v);this.Rs && ((0,c.assert)(!this.Rs.lj,"retrieval service should not be running at start"),this.Rs.start(this.nn));};u.prototype.cd=function(v){var w,x,y;w=Math.floor(v.nf(this.stream.track.Zk));x=this.nn;y=w + this.stream.track.Bo;y > x && (this.nn=y,this.BF=this.stream.track.Zk.eh(w));this.Rs && ((e.l && this.console.trace("Restarting retrieval",{start:v.ca(),e0:y}),this.Rs.X$)?y > x && (this.Kq.clear(),this.Rs.cd(this.nn)):this.Rs.start(this.nn));this.process();};u.prototype.Eaa=function(v){var w,x;if(this.behavior.Eaa())return (e.l && this.console.trace("isEventsModelComplete ending because the model is complete"),!0);w=this.M.Oc.wOb;x=v.Tf(w);x && e.l && this.console.trace("isEventsModelComplete ending at time:",{Pa:v,wOb:w});return x;};u.prototype.process=function(){var v,w,x,y,A,z,B,C,D,F,G,J;D=new Set();F=[];null !== (x=this.nn) && void 0 !== x?x:this.nn=this.stream.track.Bo;x=!1;for(e.l && this.console.log("Starting process loop",{Rg:this.nn,Ymc:null === (y=this.Kq.Hs()) || void 0 === y?void 0:y.Rg,CHc:this.Kq.length,trb:this.BF.toString()});0 < this.Kq.length;)if((y=this.Kq.Hs(),(null === y || void 0 === y?void 0:y.Rg) === this.nn)){y.events.length?e.l && this.console.log("Adding media events",{Rg:this.nn,next:y}):e.l && this.console.debug("Empty media events",{Rg:this.nn,next:y});try{for(var H=(v=void 0,d.__values(null === y || void 0 === y?void 0:y.events)),E=H.next();!E.done;E=H.next()){G=E.value;if(this.RL){J=this.RL.O;G.presentationTime=G.presentationTime.Kc(J);G.CG=G.CG?G.CG.Kc(J):void 0;}this.lKa(G) && (D.add(G.type),F.push(G.presentationTime),e.l && this.console.debug("Adding event updated model",{E7c:G.presentationTime,ta:y.ta}));}}catch(L){v={error:L};}finally{try{E && !E.done && (w=H.return) && w.call(H);}finally{if(v)throw v.error;}}this.BF=c.I.max(this.iw,y.ta);x=!0;this.nn++;this.Kq.pop();}else if((null !== (A=null === y || void 0 === y?void 0:y.Rg) && void 0 !== A?A:0) < this.nn)(e.l && this.console.warn("Dropping old media event",{DDc:this.nn,F7c:null === y || void 0 === y?void 0:y.Rg}),this.Kq.pop(),null === (z=this.Zn) || void 0 === z?void 0:z.dFc(null !== (B=null === y || void 0 === y?void 0:y.Rg) && void 0 !== B?B:0));else {e.l && e.l && this.console.info("First item in queue is later... waiting",{DDc:this.nn,W7c:null === y || void 0 === y?void 0:y.Rg});break;}0 < D.size && this.events.emit("modelUpdated",{type:"modelUpdated",I2:D,IWa:F});x && (e.l && this.console.trace("" + ("progress to ").concat(this.BF.ca())),this.events.emit("progress",{type:"progress",ta:this.BF}));e.l && this.console.log("Exiting process loop",{Rg:this.nn,Ymc:null === (C=this.Kq.Hs()) || void 0 === C?void 0:C.Rg,trb:this.BF.toString(),rad:x,Dbd:this.Kq.wj().map(function(L){return L.Rg;})});};u.prototype.XIb=function(v){var w,x,y,A,z,B;w=this;x=[];if(this.RL){y=this.RL;A=y.po;z=y.O;if(A.length){B=new Set();A.forEach(function(C){var D,F,H,E,G,J;D=new c.I(C.timestamp,z);F=void 0 !== C.duration?new c.I(C.duration,z):void 0;if("netflix" === C.type){E=C.type;G=C.id;C=C.Ej;v.Tf(D.add(F || c.I.ia))?H={type:E,id:G,presentationTime:D,CG:F,Ej:C}:e.l && w.console.trace("skipping in-progress event id:",G);}else {E=C.type;H=C.zo;J=C.eb;G=C.id;H={type:E,id:G,presentationTime:D,CG:F,zo:H,eb:J};}H && (w.lKa(H),x.push(H.presentationTime),B.add(H.type));});B.size && this.events.emit("modelUpdated",{type:"modelUpdated",I2:B,IWa:x});this.ck.ug({store:this.model.zUc()});}}};u.prototype.lKa=function(v){var w,x;x=(0,p.Dqa)(v)?this.Q5b(v):this.c6b(v);this.ck.ug({lb:this.model.lb.length,T6c:x,type:v.type});null === (w=this.Zn) || void 0 === w?void 0:w.LEc(v,x,v.presentationTime);return x;};u.prototype.Q5b=function(v){var w,x,y,A;w=!1;x=v.vwc;y=("").concat(v.id,"-").concat(v.Ej);A=this.$A.get(y);A || x?A && x?(x=v.presentationTime.ea(A.Pa),w=this.O0(v,A,x),v=d.__assign(d.__assign({},A),{duration:x,PD:v.PD,payload:v.payload}),e.l && this.console.trace("emitting netflixEventCancelled:",v),this.events.emit("netflixEventCancelled",v)):e.l && this.console.trace("Duplicate NetflixMediaEvent ignored:",{sPa:y,K7c:A,event:v}):(v={key:y,id:v.id,duration:v.CG || c.I.ia,Pa:v.presentationTime,Ej:v.Ej,PD:v.PD,payload:v.payload},this.$A.set(v.key,v),w=!0,e.l && this.console.trace("emitting netflixEventReceived:",v),this.events.emit("netflixEventReceived",v));w && (this.model.$A=Array.from(this.$A.values()));return w;};u.prototype.c6b=function(v){var w,x,y,A,z,B,C,D,F;B=!1;C=v.rOc;D=(null === C || void 0 === C?void 0:C.jea) || v.zo;if(this.config.n2){F=null === (w=this.M.getTracks(f.u.U)[0].Ea) || void 0 === w?void 0:w.eh(this.config.n2);F && (this.console.log(("Adjusting event timestamp ").concat(v.presentationTime.ca()," by ").concat(F.ca())),v.presentationTime=v.presentationTime.add(F));}w=v.presentationTime.$;this.console.debug("Processing event",{id:w,xyc:this.iw,event:v});if(this.behavior.hob(v))switch(v.type){case "breakstart":case "adbreak":if(v.presentationTime.lessThan(this.iw))break;if((x=this.lb.get(w)) && x.Pa.equal(v.presentationTime) && x.duration.equal(v.CG || c.I.ia) && x.zo === D)break;this.behavior.gob() && (this.wlb(w,v,C),B=!0);break;case "cancel":x=this.model.lb.filter(function(H){return H.GLb === (null === C || void 0 === C?void 0:C.id) && H.zo === D;}).sort(function(H,E){return H.Pa.Ml(E.Pa);});if(0 === x.length)break;x=x[x.length - 1];if(x.Pa.add(x.duration).lessThan(v.presentationTime))break;B=this.O0(v,x,v.presentationTime.ea(x.Pa));break;case "breakend":x=this.model.lb.filter(function(H){var E;E=new c.lW(H.Pa,H.Pa.add(H.duration));return H.GLb === (null === C || void 0 === C?void 0:C.id) && E.VX(v.presentationTime);}).sort(function(H,E){return H.Pa.Ml(E.Pa);});if(0 === x.length)break;x=x[x.length - 1];if(x.Pa.add(x.duration).lessThan(v.presentationTime))break;B=this.ryb(x,v);break;case "programend":null !== (y=null === (x=this.model.AL) || void 0 === x?void 0:x.jT) && void 0 !== y && y.Pa.equal(v.presentationTime) || (this.console.debug("Setting program end",v.presentationTime),this.model.AL.jT={Pa:v.presentationTime},B=!0);break;case "programstart":null !== (z=null === (A=this.model.AL) || void 0 === A?void 0:A.YD) && void 0 !== z && z.Pa.equal(v.presentationTime) || (this.console.debug("Setting program start",v.presentationTime),(0,c.assert)(void 0 !== v.id,"Program start event must have an id"),this.model.uM.push({id:v.id,YD:{Pa:v.presentationTime}}),B=!0);}B && (this.model.lb=Array.from(this.lb.values()));return B;};u.prototype.wlb=function(v,w,x){var y,A,z;z=null === (A=null === (y=this.model.AL) || void 0 === y?void 0:y.YD) || void 0 === A?void 0:A.Pa;y=(null === x || void 0 === x?void 0:x.jea) || w.zo;this.lb.set(v,{id:v,duration:w.CG || c.I.ia,Pa:w.presentationTime,location:z?w.presentationTime.ea(z):c.I.ia,zo:y,eb:w.eb,GLb:null === x || void 0 === x?void 0:x.id});e.l && this.console.debug("Upserting event",{id:v,Ra:this.lb.get(v)});};u.prototype.O0=function(v,w,x){var y;y=!1;x.equal(c.I.ia)?(this.console.debug("Deleting event",w.id),this.ck.ug({deleting:!0}),(0,p.Dqa)(v)?this.$A.delete(w.key):this.lb.delete(w.id),y=!0):x.rca(w.duration) && (this.console.debug("Updating event",{id:w.id,nDc:x}),this.ck.ug({adjusting:x}),(0,p.Dqa)(v)?this.$A.set(w.key,d.__assign(d.__assign({},w),{duration:x})):this.lb.set(w.id,d.__assign(d.__assign({},w),{duration:x})),y=!0);return y;};u.prototype.ryb=function(v,w){var x;x=!1;w=w.presentationTime.ea(v.Pa);w.equal(c.I.ia)?this.console.error("Unexpected zero-length adBreak after breakend media event (early terminated adbreak)",v.eb):w.rca(v.duration) && (this.console.debug("Updating event",{id:v.id,nDc:w}),this.ck.ug({adjusting:w}),this.lb.set(v.id,d.__assign(d.__assign({},v),{duration:w})),x=!0);return x;};u.prototype.YEb=function(v,w){var x,y,A;if(this.RL && this.config.bjc){x=this.RL;y=x.po;A=x.O;if(y.length)return y.some(function(z){var B,C;B=new c.I(z.timestamp,A);C=void 0 !== z.duration?new c.I(z.duration,A):void 0;C=B.add(C || c.I.ia);return "netflix" === z.type && B.lessThan(v) && C.greaterThan(w);});}return !1;};u.prototype.Ka=function(){var v;null === (v=this.Rs) || void 0 === v?void 0:v.Ka();};u.prototype.disable=function(){var v;this.Ka();v=c.I.Ba(72E6);this.FNb(v);};d.__decorate([(0,k.gb)({methodName:"processMediaEventsHistory",Re:!0})],u.prototype,"XIb",null);d.__decorate([(0,k.gb)({methodName:"addEvent",Re:!0})],u.prototype,"lKa",null);d.__decorate([(0,k.gb)({methodName:"addAdBreak",Km:!0})],u.prototype,"wlb",null);d.__decorate([(0,k.gb)({methodName:"performCancel",Re:!0,Km:!0})],u.prototype,"O0",null);d.__decorate([(0,k.gb)({methodName:"handleBreakEnd",Re:!0,Km:!0})],u.prototype,"ryb",null);d.__decorate([(0,k.gb)({methodName:"needsMediaEventsFromHistory"})],u.prototype,"YEb",null);d.__decorate([(0,k.gb)({methodName:"destruct"})],u.prototype,"Ka",null);d.__decorate([(0,k.gb)({methodName:"disable"})],u.prototype,"disable",null);return u;})();b.Lbb=t;},28057:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Jbb=void 0;d=a(91967);t=(function(){function n(c){this.Zn=c;this.dc=this.Zl=n.dc;}Object.defineProperties(n.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});n.prototype.Bh=function(c){c=c.xs;if(c === d.Td.Kp || c === d.Td.pH || c === d.Td.Lv)return this.Zn.asc();};n.dc="media-events";return n;})();b.Jbb=t;},12381:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.Ebb=b.hWb=void 0;d=a(22970);n=a(91176);c=a(35536);f=a(94258);g=a(89025);e=[50,100,150,200,250,300,500,1E3,2E3,1E4];h=(function(){function k(l){this.size=l;this.Pz=[];}k.prototype.push=function(l){for(this.Pz.push(l);this.Pz.length >= this.size;)this.Pz.shift();};k.prototype.wj=function(){return this.Pz;};return k;})();b.hWb=h;t=(function(){function k(){this.state={blb:new n.Vg(),dlb:0,Btb:new n.Vg(),gTa:{},ezb:new f.kF(e),ELb:new n.Vg(),d0a:{},mWa:{},POb:new n.Vg(),xQb:0,Ofa:0,PLb:0,ULb:new h(10),LBb:new h(10)};}k.prototype.oFc=function(l){this.state.POb.push(l);};k.prototype.nFc=function(l){this.state.Btb.push(l);};k.prototype.mFc=function(l){this.state.blb.push(l);};k.prototype.EUc=function(l){d.__awaiter(this,void 0,void 0,function(){var m,p,r,q,u;return d.__generator(this,function(v){switch(v.label){case 0:(m=new c.jJ(),m.start(),v.label=1);case 1:return (v.tc.push([1,3,,4]),[4,l]);case 2:return (p=v.T(),m.stop(),this.state.ezb.push(m.duration),[3,4]);case 3:return (r=v.T(),(0,n.Aqa)(r)?this.state.dlb++:this.state.xQb++,[2]);case 4:return (p.ok || (q=null !== (u=this.state.gTa[p.status]) && void 0 !== u?u:0,this.state.gTa[p.status]=q + 1),[2]);}});});};k.prototype.VFc=function(){this.state.Ofa++;};k.prototype.dFc=function(l){this.state.PLb++;this.state.ULb.push(l);};k.prototype.LEc=function(l,m,p){var r,q;if((0,g.Dqa)(l)){q=null !== (r=this.state.mWa[l.Ej]) && void 0 !== r?r:0;this.state.mWa[l.Ej]=q + 1;}else (r=null !== (q=this.state.d0a[l.type]) && void 0 !== q?q:0,this.state.d0a[l.type]=r + 1);m && this.state.LBb.push({eventType:l.type,presentationTimeS:p.Zi});};k.prototype.pFc=function(l){this.state.ELb.push(l);};k.prototype.asc=function(){return {httpLatencyBuckets:this.state.ezb,unhandledExceptions:this.state.xQb,abortsCount:this.state.dlb,httpErrorCounts:this.state.gTa,successAttemptsCounts:this.state.POb,scheduledDelay:this.state.ELb,errorAttemptsCounts:this.state.Btb,abortAttemptsCounts:this.state.blb,scteEventsReceivedCounts:this.state.d0a,mediaEventsReceivedCounts:this.state.mWa,urlsChanged:this.state.Ofa,segmentDroppedEvents:this.state.PLb,segmentsDropped:this.state.ULb.wj(),lastEventsAdded:this.state.LBb.wj()};};return k;})();b.Ebb=t;},45173:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Fbb=void 0;d=a(22970);a(97685);n=a(65161);c=a(61996);f=a(44053);t=(function(g){function e(h,k,l,m,p){var r;r=g.call(this,h,k,m,p) || this;r.requestId=-1;r.Rba=new f.Kbb(k,l,r.console,fetch,p);r.Rba.events.on("eosReceived",function(q){r.events.emit("eosReceived",q);});r.Rba.events.on("errorReceived",function(q){!1;0 !== q.$tb.status && r.bLb(q.$tb);});r.emc=r.Rba.Jpc();return r;}d.__extends(e,g);e.prototype.bLb=function(h){(h=h.headers.get("X-TCP-Info"))?this.M.AB?this.M.AB.SIb(h,{mediaType:n.u.sm,jn:this.Rba.PBb || 0,ixa:!1}):this.M.FL && (h=this.M.FL.decode(n.u.sm,h,!1)) && (void 0 === h.Wf || isNaN(h.Wf) || this.M.Kfa(h.Wf,this.Rba.PBb || 0)):!1;};e.prototype.Itb=function(h,k){return d.__awaiter(this,void 0,void 0,function(){var l,m,p,r,q,u;return d.__generator(this,function(v){switch(v.label){case 0:l=this.stream;m=this.M.Vi;p=m.Gxa(this.track.M.J,this.track.Ed,this.track.kpa(k.qa));this.BL=this.stream.Ab;if(!p)throw Error("Unable to perform location selection");r=l.MZ(k.df,k.Rg);++this.requestId;return [4,this.emc(k)(r,{signal:h})];case 1:q=v.T();this.bLb(q);if(!q.ok)throw Error(("Failed to fetch media events: ").concat(q.status));return [4,q.arrayBuffer()];case 2:return (u=v.T(),[2,u]);}});});};e.prototype.Ofa=function(h){var k;null === (k=this.Zn) || void 0 === k?void 0:k.VFc();k=this.stream.track.Tv(h).qa;this.M.Vi.Gxa(this.track.M.J,this.track.Ed,this.track.kpa(k));this.stream.Ab !== this.BL && (this.IJa.ug({url:this.stream.Ab,out:this.eM,segmentIndex:this.Rg}),this.cd(h));};d.__decorate([(0,c.gb)({methodName:"urlsChanged",Re:!0})],e.prototype,"Ofa",null);return e;})(a(85981).Gbb);b.Fbb=t;},85981:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;Object.defineProperties(b,{__esModule:{value:!0}});b.Gbb=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(91562);g=a(66164);e=a(91176);h=a(91562);k=a(40666);l=a(8149);m=a(61996);p=a(54366);t=(function(){function r(q,u,v,w){this.PU=q;this.M=u;this.RTc=v;this.Zn=w;this.events=new n.EventEmitter();this.Rg=0;this.ta=c.I.ia;this.ss=!1;this.console=new g.platform.Console("MEDIAEVENTS_FETCHER","asejs",("[").concat(this.M.R,"]"));this.VD=new e.AbortController();this.KB=new c.iBa(this.console,{xg:10,lLa:!0});this.IJa=new m.zm({qj:this,source:"media-events-provider",xg:10,console:this.console});this.M.Xe.Sc(new p.On(this.IJa));}Object.defineProperties(r.prototype,{lj:{get:function(){var q;return !(null === (q=this.fZ) || void 0 === q || !q.mo);},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{X$:{get:function(){return void 0 !== this.fZ;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{track:{get:function(){var q;q=this.M.getTracks(f.u.sm)[0];(0,c.assert)((0,l.oo)(q),"MediaEventsFetchProviderBase: track is not live");return q;},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{stream:{get:function(){return this.track.Ed[0];},enumerable:!1,configurable:!0}});Object.defineProperties(r.prototype,{eM:{get:function(){return this.KB.aE;},enumerable:!1,configurable:!0}});r.prototype.Tpa=function(){return !this.ss && !this.RTc(this.ta);};r.prototype.cmc=function(){var q,u,v,w,x,y,A,z;return d.__generator(this,function(B){switch(B.label){case 0:((0,c.assert)((0,l.yk)(this.stream),"MediaEventsFetchProviderBase: stream is not live"),this.console.log("Fetch task: starting",{e9c:this.Tpa(),sbd:this.eM}),void 0 === this.Vyb && (this.console.log("Fetch task: queuing header request"),this.Vyb=this.Plb(!0).item),q=20,B.label=1);case 1:if(!(this.Tpa() && this.eM < q))return [3,3];u=this.stream.track.Tv(this.Rg);v=u.ta;w=u.qa;x=this.M.fl(!0);y=Math.max(0,v.G - x);this.console.log("Fetch task: waitRelative",{Jed:y,ta:v,KVa:x,eM:this.eM});return [4,k.$d.bz(c.I.Ba(y))];case 2:return (B.T(),A=v.G - x,null === (z=this.Zn) || void 0 === z?void 0:z.pFc(A),this.Plb(!1,this.Rg,w,v),this.ta=v,this.Rg++,[3,1]);case 3:return (this.Tpa() || this.console.log("Fetch task: complete"),this.console.log("Fetch task: exiting"),[2]);}});};r.prototype.Plb=function(q,u,v,w){var x,y,A;x=this;this.console.log("Fetch task: addRequestToQueue",{header:q,Rg:u,qa:v,ta:w});(0,c.assert)(q || void 0 !== u && void 0 !== w && void 0 !== v,"segmentIndex must be defined if not a header request");y=new c.Cja();y.W1a(this.VD.signal);A=y.Qh.signal;return this.KB.add({JJ:A,dAb:function(){return d.__awaiter(x,void 0,void 0,function(){var z,B;return d.__generator(this,function(C){switch(C.label){case 0:return (C.tc.push([0,,5,6]),q?[4,this.fDb(A)]:[3,2]);case 1:return [2,C.T()];case 2:return [4,this.hDb(A,u,v,w)];case 3:return [2,C.T()];case 4:return [3,6];case 5:return (y.Ka(),(!(null === (z=this.fZ) || void 0 === z?0:z.mo) && this.Tpa() && !this.ss || q) && (null === (B=this.fZ) || void 0 === B?void 0:B.cd()),[7]);case 6:return [2];}});});},GXa:function(){y.Ka();},priority:u || 0});};r.prototype.fDb=function(q){return d.__awaiter(this,void 0,void 0,function(){var u,v,w,x;return d.__generator(this,function(y){switch(y.label){case 0:return (this.console.log("Making header request"),[4,this.Itb(q,{Rg:void 0,df:!0,stream:this.stream,qa:c.I.ia,ta:c.I.ia})]);case 1:u=y.T();v=new f.um(this.console,{},u,["moov"],!1,{ndd:!0});w=v.parse();if(!w.dB)throw Error(w.parseError);x=f.um.path(v,["moov","trak","mdia","mdhd"]);(0,c.assert)(void 0 !== x,"mdhd should be defined");this.O=x.O;return [2];}});});};r.prototype.hDb=function(q,u,v,w){return d.__awaiter(this,void 0,void 0,function(){var x,y,A,z,B,C;return d.__generator(this,function(D){switch(D.label){case 0:(x=this.M.Oc.EG || c.I.dh,v.ea(x),this.IJa.ug({si:u,cst:v.ca(),cet:w.ca()}),D.label=1);case 1:return (D.tc.push([1,3,,4]),[4,this.Itb(q,{df:!1,ta:w,qa:v,stream:this.stream,Rg:u})]);case 2:return (y=D.T(),[3,4]);case 3:return (A=D.T(),(0,c.Aqa)(A) || this.events.emit("mediaEventsReceived",{type:"mediaEventsReceived",events:[],ta:w,Rg:u,W9c:!0}),[2]);case 4:return void 0 !== this.O?[3,6]:[4,this.Vyb];case 5:(D.T(),D.label=6);case 6:(0,c.assert)(void 0 !== this.O,"timescale should be defined once header request resolves");z=new f.l5(this.console,{},y);B={events:[]};C=z.parse(B);this.console.debug("Parsed media events: ",C.done);if(C.error)throw Error(C.error);this.console.debug("Received media events",{events:B.events,Nl:w,Rg:u});this.events.emit("mediaEventsReceived",{type:"mediaEventsReceived",events:this.SAc(B.events),ta:w,Rg:u});return [2,B.events];}});});};r.prototype.SAc=function(q){var u;u=this;return (null === q || void 0 === q?void 0:q.reduce(function(v,w){(w=u.aHc(w)) && v.push(w);return v;},[])) || [];};r.prototype.aHc=function(q){var u,v,w,x,y;if(q.BH){u=new c.I(q.OH,this.O).ea(this.track.Fk);v=void 0 !== q.ZY?new c.I(q.ZY,this.O):void 0;if(q.JM === h.QV.JM){w=new h.QV(new DataView(q.BH.buffer,q.BH.byteOffset,q.BH.byteLength),g.platform.pK,this.console);if(w=w.parse()){x=w.header;return {type:"netflix",presentationTime:u,CG:v,id:x.R4c,Ej:q.value,vwc:x.cancel || !1,PD:x.Dad || "application/json",payload:w.body};}}else if(q.JM === h.gW.JM && (w=new h.gW(new DataView(q.BH.buffer,q.BH.byteOffset,q.BH.byteLength),this.console),q=w.parse())){w=q.id;x=q.event;a:{if(12 === q.kea && q.J1 && 4 < q.J1.byteLength){y=g.platform.pK(new Uint8Array(q.J1));if("NFLX" === y.slice(0,4)){y=y.slice(4);break a;}}y=void 0;}return {id:w,type:x,presentationTime:u,CG:v,rOc:q,eb:y};}}};r.prototype.start=function(q){var u;u=this;(0,c.assert)(!this.lj,"MediaEventsFetchProviderBase: start called while running");this.ss?this.console.warn("MediaEventsFetchProviderBase: start called after destruct"):(this.Rg=Math.max(q,this.stream.track.Bo),this.fZ=this.PU.Xr(function(){return u.cmc();},"media-events-fetcher"));};r.prototype.cd=function(q){this.ss?this.console.warn("MediaEventsFetchProviderBase: restart called after destruct"):(this.Ka(),this.ss=!1,this.VD=new e.AbortController(),this.start(q));};r.prototype.Ka=function(){var q;this.ss=!0;null === (q=this.fZ) || void 0 === q?void 0:q.Ka();this.fZ=void 0;this.VD.abort();this.KB.clear();this.ta=c.I.ia;};d.__decorate([(0,m.gb)({methodName:"makeHeaderRequest",Re:!0})],r.prototype,"fDb",null);d.__decorate([(0,m.gb)({methodName:"makeMediaSegmentRequest",Re:!0})],r.prototype,"hDb",null);d.__decorate([(0,m.gb)({methodName:"start",Re:!0})],r.prototype,"start",null);d.__decorate([(0,m.gb)({methodName:"restart",Re:!0})],r.prototype,"cd",null);d.__decorate([(0,m.gb)({methodName:"destruct",Re:!0})],r.prototype,"Ka",null);return r;})();b.Gbb=t;},89025:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Dqa=function(a){return "netflix" === a.type;};},81621:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.nub=void 0;d=a(22970);n=a(91176);b.nub=function(c,f){return function(g,e){return d.__awaiter(void 0,void 0,void 0,function(){var h,k,l,m,p;return d.__generator(this,function(r){switch(r.label){case 0:if(0 >= f)return [2,c(g,e)];k=(h=g instanceof Request)?g.signal:null === e || void 0 === e?void 0:e.signal;l=new n.Cja();k && l.W1a(k);m=setTimeout(function(){l.abort();},f);r.label=1;case 1:return (r.tc.push([1,,6,7]),p=void 0,h?[4,Promise.race([(0,n.ula)(l.signal,!0).then(function(){return Response.error();}),c(g,e)])]:[3,3]);case 2:return (p=r.T(),[3,5]);case 3:return [4,c(g,d.__assign(d.__assign({},e),{signal:l.signal}))];case 4:(p=r.T(),r.label=5);case 5:return [2,p];case 6:return (clearTimeout(m),[7]);case 7:return [2];}});});};};},58487:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.yab=void 0;d=a(91176);n=a(66164);c=a(71077);t=(function(){function f(g,e){this.Jzc=g;this.Osa=e;}f.prototype.rL=function(g,e){var h,k;k=this.Lwb(g);g=e(g);switch(k){case c.Ar.XFa:case c.Ar.qGa:return {BM:!1,Vs:!1};case c.Ar.G5:return {BM:!1,Vs:!1,Gwc:!0};case c.Ar.Zia:case c.Ar.$V:return {BM:!1,Vs:null !== (h=g.Vs) && void 0 !== h?h:!0};default:return g;}};f.prototype.Lwb=function(g){var e;e=g.dm;return this.Jzc.yy({ta:e.ta,qa:e.qa,status:g.response.status},d.I.dh,!1);};f.prototype.FX=function(g,e){var h,k;e=e(g);h=this.Lwb(g);if(h === c.Ar.$V || h === c.Ar.Zia){h=g.response;k=g.pyc;if(404 === h.status || 500 <= h.status)(h=k?n.platform.time.ha() - k:0,e.T8=Math.max(0,this.Osa - h));}h=g.dm.ta;g=g.dm.stream.M.fl(!0);h.G > g && (e.T8=Math.max(e.T8,h.G - g));return e;};return f;})();b.yab=t;},78203:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Bbb=void 0;t=(function(){function a(d){this.I_=d;}a.prototype.rL=function(d,n){var c;c=d.attempt < this.I_;return c?n(d):{Vs:c};};return a;})();b.Bbb=t;},44053:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r;Object.defineProperties(b,{__esModule:{value:!0}});b.Kbb=void 0;d=a(22970);n=a(91176);c=a(66164);f=a(90745);g=a(71077);e=a(53914);h=a(87887);k=a(58487);l=a(79122);m=a(63206);p=a(81621);r=a(78203);t=(function(){function q(u,v,w,x,y){this.M=u;this.console=w;this.kub=x;this.Zn=y;this.events=new f.EventEmitter();this.jJa=[];u=new g.DCa(u,v);this.jJa=[new k.yab(u,v.Osa),new m.Ahb(),new h.Ehb(),new r.Bbb(v.QBc),new e.Ibb()];this.kub=(0,p.nub)(x,v.qhc);}Object.defineProperties(q.prototype,{PBb:{get:function(){return this.f3b;},enumerable:!1,configurable:!0}});q.prototype.Jpc=function(){var u;u=this;return function(v){return function(w,x){return u.bOb(w,x,v,0);};};};q.prototype.bOb=function(u){return d.__awaiter(this,arguments,void 0,function(v,w,x,y){var A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U;void 0 === w && (w={});return d.__generator(this,function(X){switch(X.label){case 0:(A=x.qa,z=x.ta,B=new n.Cja(),w.signal && B.W1a(w.signal),(0,n.oPb)(B.signal),C=new Request(v,d.__assign(d.__assign({},w),{signal:B.signal})),F=c.platform.time.ha(),X.label=1);case 1:return (X.tc.push([1,3,,4]),!1,H=this.kub(C),this.f3b=c.platform.time.ha() - F,null === (O=this.Zn) || void 0 === O?void 0:O.EUc(H),[4,H]);case 2:return (D=X.T(),D.ok?(null === (Q=this.Zn) || void 0 === Q?void 0:Q.oFc(y),[2,D]):[3,4]);case 3:E=X.T();!1;if((0,n.Aqa)(E) && (!1,null === (T=this.Zn) || void 0 === T?void 0:T.mFc(y),B.signal.aborted))throw E;D=Response.error(C.url,{headers:new Headers(),status:0,statusText:"Unhandled error in fetch"});return [3,4];case 4:G={request:C,attempt:y,response:D,dm:x,pyc:F};this.events.emit("errorReceived",{$tb:D,attempt:y});J=this.rL(G);L=J.Vs;K=J.BM;M=J.Gwc;!1;K && this.BM(G);M && this.events.emit("eosReceived",{qa:A,ta:z});if(!L)return [3,7];P=this.FX(G);if(!(0 < P))return [3,6];I=(0,n.ula)(B.signal,!0);!1;return [4,Promise.race([I,new Promise(function(Y){return setTimeout(Y,P);})])];case 5:(X.T(),X.label=6);case 6:return [2,this.bOb(v,w,x,y + 1)];case 7:return (!1,null === (U=this.Zn) || void 0 === U?void 0:U.nFc(y),[2,D]);}});});};q.prototype.BM=function(u){u=new l.Xbb(u);this.M.yy(u);};q.prototype.FX=function(u){var v;v=this.jJa.filter(function(w){return w.FX;}).map(function(w){return w.FX.bind(w);});return n.OE.kL(u,v).T8;};q.prototype.rL=function(u){var v;v=this.jJa.filter(function(w){return w.rL;}).map(function(w){return w.rL.bind(w);});return n.OE.kL(u,v);};return q;})();b.Kbb=t;},79122:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Xbb=void 0;d=a(66164);n=a(26388);c=a(24940);t=(function(){function f(g){this.context=g;this.r1=c.Via.Ke;}Object.defineProperties(f.prototype,{response:{get:function(){return this.context.response;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{bh:{get:function(){var g;g=this.response.status;return 0 === g || 900 === g?d.platform.Al.RE.DBa:500 <= g && 600 > g?d.platform.Al.RE.H4:400 <= g && 500 > g?d.platform.Al.RE.zha:d.platform.Al.RE.yh;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{YC:{get:function(){return this.response.statusText;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{status:{get:function(){return this.response.status;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Qg:{get:function(){return this.status;},enumerable:!1,configurable:!0}});f.prototype.Ei=function(){return ("ME:").concat(this.context.attempt,"::").concat(this.context.dm.Rg);};Object.defineProperties(f.prototype,{url:{get:function(){return this.context.request.url;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{bi:{get:function(){return this.context.dm.Rg;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{stream:{get:function(){return this.context.dm.stream;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{mediaType:{get:function(){return n.u.sm;},enumerable:!1,configurable:!0}});return f;})();b.Xbb=t;},53914:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Ibb=void 0;t=(function(){function a(){}a.prototype.FX=function(){return {T8:0};};a.prototype.rL=function(){return {BM:!0};};return a;})();b.Ibb=t;},63206:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Ahb=void 0;t=(function(){function a(){}a.prototype.rL=function(d,n){var c;n=n(d);this.Uqa(d) && (n.Vs=null !== (c=n.Vs) && void 0 !== c?c:!0);return n;};a.prototype.FX=function(d,n){n=n(d);this.Uqa(d) && (n.T8=0);return n;};a.prototype.Uqa=function(d){d=d.response;if(!d.ok && (0 === d.status || 900 === d.status))return !0;};return a;})();b.Ahb=t;},87887:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Ehb=void 0;d=a(91176);t=(function(){function n(){this.BNc=[400,404,408,409,410];}n.prototype.rL=function(c,f){var g;f=f(c);if(void 0 === f.Vs){g=c.response;g.ok || (600 > g.status && 500 <= g.status && (f.Vs=!0),(0,d.cc)(this.BNc,function(e){return e === g.status;}) && (f.Vs=!0));}return f;};return n;})();b.Ehb=t;},93747:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.Zbb=void 0;d=a(22970);n=a(48170);c=a(62629);f=a(65161);g=a(61996);t=(function(){function e(h,k,l){this.bRa=h;this.Vpc=k;this.console=l;this.pe=new g.zm({qj:this,console:l,source:"MemoryDeadlockProtector",xg:5});}e.prototype.Enc=function(h){var k,l,m,p;m=h.config;p=m.zp + (null !== (l=null === (k=m.DB) || void 0 === k?void 0:k.G) && void 0 !== l?l:0);k=this.euc(p,h);n.l && this.console.debug(("MDP: has prebuf: ").concat(k));return k?{sna:!0}:(l=this.K$b(m),k=l.uGc,l=l.HWc,k && l?(n.l && this.console.debug(("MDP: utilizing ").concat(Math.round(100 * l),"%")),l >= m.XBc?this.NKb(h,k):{sna:!0}):{sna:!1});};e.prototype.NKb=function(h,k){var l,m,p,r,q,v,y,A;this.pe.ug({o:k});r=h.player;h=h.Ya;q=r.Ya;r=r.zk;for(var u=0;u < q.length;u++)if(!q[u].lk){r=q[u];q=q.slice(0,u + 1);break;}u=!1;v=[{mediaType:f.u.X,cG:0},{mediaType:f.u.U,cG:0},{mediaType:f.u.Ca,cG:0}];if(null === r || void 0 === r || !r.lk){h=h.map(function(B){return B;}).filter(function(B){return -1 === q.indexOf(B);}).sort(function(B,C){return (0,c.fob)(B) - (0,c.fob)(C);});try{for(var w=d.__values(h),x=w.next();!x.done;x=w.next()){y=x.value;A=y.WQ();v[f.u.X].cG+=null !== (m=A.LJ) && void 0 !== m?m:0;v[f.u.U].cG+=null !== (p=A.xN) && void 0 !== p?p:0;n.l && this.console.debug(("Resetting discontiguous branch ").concat(y.K.id),A);y.reset();if(u=v.every(function(B){return B.cG >= k[B.mediaType].cG;}))break;}}catch(B){var z;z={error:B};}finally{try{x && !x.done && (l=w.return) && l.call(w);}finally{if(z)throw z.error;}}}return {sna:u,i8c:v};};e.prototype.K$b=function(h){var k,l,m,p,r;k=[f.u.X,f.u.U,f.u.Ca];if(!h.YBc)return {};l=this.Vpc();m=this.bRa().total;p=h.WBc;r=0;h=k.map(function(q){var u;u=l[q] - m[q] * p;r=Math.max(0 < m[q]?l[q] / m[q]:0,r);return {cG:Math.max(0,u),mediaType:q};});return {HWc:r,uGc:h};};e.prototype.euc=function(h,k){var l,m,p;l=this;m=!1;k=k.lo?k.player:void 0;if(null === k || void 0 === k?0:k.Lvc){m=k.nB.pA().map(function(r){return r.mediaType;});p=k.epc();m=m.every(function(r){var q,u;if(r === f.u.X)r=null !== (q=p.uP) && void 0 !== q?q:0;else if(r === f.u.U)r=null !== (u=p.JU) && void 0 !== u?u:0;else return (n.l && l.console.trace("hasEnoughBuffer ignoring mediaType:",r),!0);return r >= h;});}return m;};d.__decorate([(0,g.gb)({methodName:"resetDiscontiguousBranches",return:!0,Re:!0})],e.prototype,"NKb",null);return e;})();b.Zbb=t;},88874:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.Feb=void 0;d=a(22970);n=a(91176);c=a(69575);f=a(52571);g=a(61520);t=(function(){function e(){this.Ya=new c.lcb();this.fr=new g.uja();}Object.defineProperties(e.prototype,{empty:{get:function(){return this.Ya.empty;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{size:{get:function(){return this.Ya.size;},enumerable:!1,configurable:!0}});e.prototype.reset=function(){var h;h=this.Ya.values();this.Ya.clear();this.fr.clear();h.forEach(function(k){return k.Jg();});};e.prototype.dn=function(h,k,l){var m,p;m=this.Ya.get(h);if(k){p=null === m || void 0 === m?void 0:m.filter(function(r){return r.K.Ua === k;});0 === (null === p || void 0 === p?void 0:p.length) && (null === l || void 0 === l?void 0:l.trace(("getBranches ").concat(h," startTimeMs: ").concat(k," no matches, have ").concat(null === m || void 0 === m?void 0:m.map(function(r){return r.K.Ua;}))));return p;}return m;};e.prototype.has=function(h){return this.Ya.has(h);};e.prototype.root=function(){return this.fr.root;};e.prototype.contains=function(h){var k;k=h.K.id;if(this.has(k))return -1 !== this.dn(k).indexOf(h);};e.prototype.HK=function(h){this.fr.HK(h);};e.prototype.tpa=function(h){return this.fr.parent(h);};e.prototype.Voc=function(h){return this.fr.children(h);};e.prototype.Npa=function(h){return this.fr.Npa(h);};e.prototype.bMc=function(h){var k;if(this.Ya.delete(h.K.id,h)){k=this.fr.children(h);this.fr.root === h?0 === k.length?this.fr.clear():((0,f.assert)(1 === k.length,"cannot remove the root branch with multiple successors"),this.fr.rMc(k[0])):((0,f.assert)(0 === k.length,"cannot remove non-root branch with successors"),this.fr.remove(h));}};e.prototype.forEach=function(h){var k;k=this;this.Ya.forEach(function(l,m){return h(l,m,k);});};e.prototype.values=function(){return this.Ya.values();};e.prototype.reduce=function(h,k){var l;l=this;return this.Ya.reduce(function(m,p,r){return h(m,p,r,l);},k);};e.prototype.map=function(h){var k;k=this;return this.Ya.map(function(l,m){return h(l,m,k);});};e.prototype.filter=function(h){var k;k=this;return this.Ya.filter(function(l,m){return h(l,m,k);});};e.prototype.dtc=function(){var h;h={};this.forEach(function(k,l){(k=k.Xy) && (h[l] || (h[l]=[])).push(k.G);});return h;};e.prototype.CVc=function(h,k,l){var m,p;m=this;h=this.Lfc(h,k,l);p=h.ksb(this.fr);k=p.bX;l=p.Fy;p=p.k_a;this.fr.clear();this.fr=h;k.forEach(function(r){return m.Ya.set(r.K.id,r);});k.forEach(function(r){return r.Tb();});l.forEach(function(r){return m.Ya.delete(r.K.id,r);});p.forEach(function(r){r.Dta();});return {Fy:l,k_a:p};};e.prototype[Symbol.iterator]=function(){return d.__generator(this,function(h){switch(h.label){case 0:return [5,d.__values(this.Ya)];case 1:return (h.T(),[2]);}});};e.prototype.Lfc=function(h,k,l){var m,p,r;m=this;p=new Map();r=new g.uja();h.HK(function(q,u){var v,w,x;if(u){v=p.get(u);if(!v)return !0;}w=(0,n.cc)(m.dn(q.K.id,q.K.Ua,l),function(y){return m.fr.parent(y) === v || !u;});null === l || void 0 === l?void 0:l.trace(("createNewBranchTree ").concat(q.K.id," reusableBranch: ").concat(!!w));x=w || k(q.K.id,v);x.hh=q.hh;p.set(q,x);r.add(x,v);w && x.update(q.K);return !0;});return r;};return e;})();b.Feb=t;},70494:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Geb=void 0;t=(function(){function a(d){this.console=d;this.vMa();}a.prototype.get=function(d){return this.sY[d] || this.Wh[d];};a.prototype.set=function(d,n){void 0 === this.Wh[d] && (this.Wh[d]=n);};a.prototype.yPc=function(d,n){void 0 === this.get(d) && (this.sY[d]=n);};a.prototype.clear=function(d){this.apb(d);this.Wh[d]=void 0;};a.prototype.apb=function(d){this.sY[d]=void 0;};a.prototype.Cbc=function(d){var n;this.Wh=(n={},n[d]=this.Wh[d],n);this.sY={};};a.prototype.vMa=function(){this.Wh={};this.sY={};};a.prototype.toJSON=function(){return {Wh:this.Wh,sY:this.sY};};return a;})();b.Geb=t;},86451:function(t,b,a){var c,f;function d(g,e){var h,k;h=Object.keys(g);if(h.some(function(l){var m,p,r,q;return (null === (m=g[l]) || void 0 === m?void 0:m.Yd) !== (null === (p=e[l]) || void 0 === p?void 0:p.Yd) || (null === (r=g[l]) || void 0 === r?void 0:r.weight) !== (null === (q=e[l]) || void 0 === q?void 0:q.weight);}))return !0;k=Object.keys(e);return 0 !== c.__spreadArray(c.__spreadArray([],c.__read((0,f.Yo)(h,k)),!1),c.__read((0,f.Yo)(k,h)),!1).length?!0:!1;}function n(g,e){return g.some(function(h,k){return 0 !== (0,f.Yo)(h,e[k] || []).length;}) || g.length !== e.length?!0:!1;}Object.defineProperties(b,{__esModule:{value:!0}});b.L$b=function(g,e){var h,k,l,m,p,r;h=Object.keys(g.ba);k=Object.keys(e.ba);l=k.filter(function(q){return -1 === h.indexOf(q);});m=h.filter(function(q){return -1 === k.indexOf(q);});p=h.filter(function(q){var u;if(-1 === k.indexOf(q))u=!1;else (u=g.ba[q],q=e.ba[q],u=u.Gc !== q.Gc || u.fb !== q.fb || u.Ua !== q.Ua || u.Yd !== q.Yd || u.J !== q.J || n(u.Ul || [],q.Ul || []) || d(u.next || ({}),q.next || ({}))?!0:!1);return u;});r=(0,f.Yo)(h,c.__spreadArray(c.__spreadArray(c.__spreadArray([],c.__read(p),!1),c.__read(l),!1),c.__read(m),!1));return {bX:l,Fy:m,qq:p,jVc:r};};c=a(22970);f=a(91176);},31509:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Heb=b.YI=void 0;d=a(22970);n=a(52571);(function(f){f[f.UB=0]="CREATED";f[f.fW=1]="STARTED";f[f.BO=2]="REQUEST_ISSUED";f[f.SE=3]="EVALUATED";f[f.o7a=4]="DESTRUCTED";})(c || (b.YI=c={}));t=(function(){function f(g,e,h){this.HM=g;this.console=e;this.name=h;this.$a=c.UB;this.$M={};this.Nea={};}Object.defineProperties(f.prototype,{state:{get:function(){return this.$a;},enumerable:!1,configurable:!0}});f.prototype.start=function(){var g;g=this;this.$a !== c.fW && (this.Wba(c.fW),[c.SE,c.BO].forEach(function(e){var h;h=new Promise(function(k){(0,n.assert)(g.Nea && g.$M,"state promises should be defined");g.Nea[e]=k;g.$M[e]=h;});}),this.HM(),this.Wba(c.SE));};f.prototype.Wba=function(g){this.$a=g;this.Nea && (g=this.Nea[g],null === g || void 0 === g?void 0:g());};f.prototype.Ka=function(){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(g){switch(g.label){case 0:if(this.$a !== c.fW)return [3,2];(0,n.assert)(this.$M,"state resolves should be defined");return [4,this.$M[c.SE]];case 1:(g.T(),g.label=2);case 2:return (this.Nea=this.$M=void 0,this.$a=c.o7a,[2]);}});});};f.prototype.fga=function(g,e){d.__awaiter(this,void 0,void 0,function(){var h;return d.__generator(this,function(k){switch(k.label){case 0:if(this.$a === c.o7a)return [2];if(this.$a === c.SE)return [3,6];(0,n.assert)(this.$M,"state promises should be defined");h=g;switch(h){case c.SE:return [3,1];case c.BO:return [3,3];}return [3,5];case 1:return [4,this.$M[c.SE]];case 2:return (k.T(),[3,6]);case 3:return [4,this.$M[c.BO]];case 4:return (k.T(),[3,6]);case 5:return [3,6];case 6:return (null === e || void 0 === e?void 0:e(),[2]);}});});};return f;})();b.Heb=t;},46262:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Peb=void 0;t=(function(){function a(d,n,c,f,g,e,h,k){var l,m;this.Z=d;this.kl=n;this.groupId=c;this.PH=f;this.gT=g;this.yu=e;this.fp=h;c=null !== (m=null === (l=this.kl.oa.Sb) || void 0 === l?void 0:l.G) && void 0 !== m?m:n.oa.fH.G;this.Fw=d.Wh.get(n.L)?1:this.kl.oa.K.Fw;this.hT=k.offset.G;this.e2=Math.max(this.Do - c,0);}Object.defineProperties(a.prototype,{identifier:{get:function(){return this.kl.L;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{mediaType:{get:function(){return this.kl.mediaType;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{hh:{get:function(){return this.kl.hh;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{ie:{get:function(){return this.Z.ie.value;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{Do:{get:function(){return this.kl.pI.G;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{jZ:{get:function(){return this.kl.iZ.G;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{ah:{get:function(){return this.kl.oa.Wb.G;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{cy:{get:function(){return this.kl.cy();},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{op:{get:function(){return this.kl.op();},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{Ak:{get:function(){return this.kl.Ak;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{kw:{get:function(){return this.kl.kw;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{Sz:{get:function(){return this.kl.Sz;},enumerable:!1,configurable:!0}});a.prototype.dG=function(d,n){var c;c=this.kl.oa.dG(this.mediaType);return c.NS?this.Z.Qxc(this,d,n):c;};a.prototype.tL=function(){return this.Z.tL(this);};a.prototype.toJSON=function(){return {mediaType:this.mediaType,sA:this.sA,hh:this.hh,ie:this.ie,yu:this.yu,Do:this.Do,fp:this.fp,jZ:this.jZ,hT:this.hT,PH:this.PH,gT:this.gT,Fw:this.Fw,ah:this.ah,e2:this.e2,groupId:this.groupId,cy:this.cy,op:this.op,Ak:this.Ak,identifier:this.identifier,Z:"playgraph Object",kl:this.kl};};return a;})();b.Peb=t;},25317:function(t,b,a){var n,c,f;function d(g,e,h,k,l){var m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M;v=g.console;w=g.uVc;x=g.Wh;y=g.dNc;A=g.uic;z=g.zWa;B=g.zLa;g=g.FS;C=l || ({complete:!0,Xy:0});D=C.root;F=C.complete;H=C.m5b;E=C.GKb;E=void 0 === E?0:E;C=C.Xy;G=E < y.length && y[E].id === e.id;J=E < y.length?y[E].id:k && x.get(k.id);L=l && k && J !== e.id?void 0 !== J?{ef:0}:k.E$b(e.id):{ef:1};x=L.ef;L=L.$K;K=void 0 === L?0:L;L=(x + K) * (null !== (m=null === l || void 0 === l?void 0:l.QH) && void 0 !== m?m:1);f && v.trace(("reevaluateBranches: visiting ").concat(e.id,", ") + ("distance: ").concat(h,", ") + ("probability: ").concat(L,", ") + ("predecessor: ").concat(null === k || void 0 === k?void 0:k.id,", ") + ("decision: ").concat(J,", ") + ("predecessorComplete: ").concat(F,", ") + ("isOnRequiredPath: ").concat(G,", ") + ("requiredPathIndex: ").concat(E,", ") + ("activeDistance: ").concat(H,", ") + ("seamless ").concat(x,", ") + ("immediate ").concat(K,", ") + ("predecessor sum of: successor weights=").concat(null === k || void 0 === k?void 0:k.X1a,", ") + ("immediate weights= ").concat(null === k || void 0 === k?void 0:k.axa));m=null !== (r=null === (p=w[e.id]) || void 0 === p?void 0:p.shift()) && void 0 !== r?r:e.Wb.G;p=0 === m;if(!G){if(0 === L)return {OU:!1,mla:!0};if(!F && 0 === K && C > B)return (g.xK=Math.min(g.xK || Infinity,C - B),{OU:!1,mla:!0});if(!p && h >= A && 1 > L || !1 === D && L < z)return {OU:!1,mla:!0};}if(E < y.length){(0,n.assert)(y[E].id === e.id,"");M={duration:y[E].duration};}l=(null === l || void 0 === l?void 0:l.hh) || [];k && 1 > x && (0 === K?l=l.concat([{ef:x}]):(y=(null === (u=null === (q=k.Ul) || void 0 === q?void 0:q[0]) || void 0 === u?void 0:u[0]) || 0,q=Math.max(0,k.Wb.G - y),f && v.trace(("reevaluateBranches: immediate: ").concat(k.Wb.G,",\n ").concat(y,", ").concat(q)),l=l.concat([{ef:x,$K:K,duration:q}])));q=g.lE.Hub(function(P){return P.K === k;});g.lE.add({K:e,hh:l,oa:M},q);h=F?h + e.Wb.G:H;f && v.trace(("reevaluateBranches: added ").concat(e.id,", visiting successors, ") + ("active distance: ").concat(h," ") + ("probabilities: ").concat(JSON.stringify(l)));return {OU:!0,mla:G,state:{root:!k,complete:p,QH:L,hh:l,m5b:h,GKb:E + 1,Xy:C + m}};}Object.defineProperties(b,{__esModule:{value:!0}});b.YZa=function(g,e,h,k,l,m,p,r,q){var u,v,w,x;v={lE:new c.uja()};w=(null === (u=h.Yb) || void 0 === u?void 0:u.ea(h.ib).G) || 0;0 < m.length && (0,n.assert)(h.id === m[0].id,"First segment of required path (if it exists) must equal reevaluateBranches start segment.");f && g.trace(("reevaluateBranches: starting at ").concat(h.id," ") + ("requiredPath: ").concat(JSON.stringify(m)));x={console:g,uVc:k,Wh:l,dNc:m,uic:p.G + w,zWa:r,zLa:q.G,FS:v};e.$Rb(h,function(y,A,z,B){return d(x,y,A,z,B);},{root:!1,complete:!0,GKb:0,Xy:0});return v;};b.Hed=d;b.Vdd=function(g,e,h){var k;k=(0,c.DJc)(e,function(l){return ("").concat(l.K.id);});h(("requiredBranches(").concat(g,")"),k.replace(/\n/g,"<>"));h(("requiredBranches(").concat(g,")"),e.values.map(function(l){var m;return ("").concat(l.K.id,"::").concat(null === (m=e.parent(l)) || void 0 === m?void 0:m.K.id);}).join(", "));};n=a(52571);t=a(48170);c=a(61520);f=t.l && !1;},33143:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Hfb=void 0;d=a(22970);n=a(91176);c=a(91176);t=(function(){function f(g,e,h){this.Ae=e;this.Q2b=h;this.Kda=[];this.Kda.push(g);}f.prototype.Wpa=function(g){return this.Q2b({J:g,dm:void 0},this.Ae);};f.prototype.Ps=function(g,e){return c.OE.kL({J:g,dm:e},this.Kda);};f.prototype.xT=function(g){return d.__awaiter(this,void 0,void 0,function(){var e,h,k,l,m,p,r,q;return d.__generator(this,function(u){switch(u.label){case 0:(e=g.Xk,h=g.eb,k=g.J,l=this.Ps(g.J),u.label=1);case 1:return (u.tc.push([1,,4,5]),[4,l.kr]);case 2:return (m=u.T(),p=m.S.Hb,(0,n.assert)(p,"Manifest must have aux manifest token to request ad break hydration"),r={Xk:e,eb:h,Rf:{Hb:p,fd:k}},[4,this.Ae.xT(e || "",r)]);case 3:return (q=u.T(),[2,{b7:q,Nm:m}]);case 4:return (l.jl.release(),[7]);case 5:return [2];}});});};f.prototype.yT=function(g,e){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){return [2,this.Ae.yT(g,e)];});});};f.prototype.qMc=function(g){var e;e=this.Kda.pop();this.Kda.push(g);return e;};f.prototype.oKa=function(g){this.Kda.unshift(g);};return f;})();b.Hfb=t;},36472:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.ngb=void 0;d=a(22970);n=a(91176);c=a(99548);f=a(52571);g=a(8149);b.ngb=(function(){function e(){}e.rtc=function(h,k,l){var m,p;if(h.Uf){m=d.__read(h.ka,1)[0];if(h.ka.some(function(r){return (0,g.oo)(r);})){(0,f.assert)((0,g.oo)(m),"expected live primary track");(0,f.assert)(h.M.Oc,"Expected live viewable with position service");p=(0,c.Zda)(k,l,h.M,n.I.dh) || n.I.dh;h=(0,c.Zda)(k,l,h.M,n.I.dh) || n.I.dh;return {YRb:p,ZRb:h};}k=null === (p=m.dk) || void 0 === p?void 0:p.Yb;(0,f.assert)(k);h=h.ka.reduce(function(r,q){var u;return (null === (u=q.dk) || void 0 === u?0:u.Yb)?n.I.min(r,q.dk.Yb):r;},k);return {YRb:k,ZRb:h};}};return e;})();},35879:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Vxb=void 0;b.Vxb=function(a,d){return a.reduce(function(n,c){return n + c.Xoa(d).G;},0);};},4489:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Ovb=void 0;d=a(59839);b.Ovb=function(n,c){return n.reduce(function(f,g){var e;e=c(g);g.pA().forEach(function(h){return f.rKa(h.mediaType,h.SJ,!e);});return f;},new d.Keb());};},86048:function(t,b,a){var n,c;function d(f,g){return g === n.u.sm?0:Object.keys(f.WS).map(function(e){return f.WS[e];}).filter(function(e){return void 0 === e.sA || 1 === e.sA;}).reduce(function(e,h){return e + h.Ev[g];},0);}Object.defineProperties(b,{__esModule:{value:!0}});b.Vgb=void 0;n=a(65161);c=a(48170);t=(function(){function f(g,e,h){this.Z=g;this.console=e;this.bRa=h;}f.prototype.dG=function(g,e,h){var k,l,m,p;k=h && this.Z.config.DWc;l=this.Z.config.FI || k;m=this.bRa();if(k){k=g.global;k=(p={},p[n.u.X]=k[n.u.X] - d(g,n.u.X),p[n.u.U]=k[n.u.U] - d(g,n.u.U),p[n.u.Ca]=k[n.u.Ca] - d(g,n.u.Ca),p);}p=k;m=this.mMa(e) || this.Yac(g) || this.Wac(g,m,p) || this.Xac(g,m,p,e);p=(0,n.HJb)(m);if(m && (!p || l))return (c.l && this.console.log(("canIssueRequest ").concat(this.Z.id," [").concat(e,"] static limit: ") + ("").concat(h,", usage: ").concat(JSON.stringify(g),", failed ").concat(m)),{NS:!1,reason:m});c.l && this.console.log(("canIssueRequest ").concat(this.Z.id," [").concat(e,"] static limit: ") + ("").concat(h,", usage: ").concat(JSON.stringify(g),", success ").concat(m));return {NS:!0,reason:m};};f.prototype.mMa=function(g){var e;e=this.Z.config.wH;if(this.Z.xpc(g) >= (e || Infinity))return "mediaDurationLimit";};f.prototype.Yac=function(g){return g.WS[this.Z.id].total.total > (this.Z.npa() || Infinity)?"playgraphMemoryLimit":void 0;};f.prototype.Wac=function(g,e,h){g=g.global;return h?h[n.u.X] + h[n.u.U] > (e.G1a.total || Infinity)?"staticMemoryLimit":void 0:g.total > (e.total.total || Infinity)?"globalMemoryLimit":void 0;};f.prototype.Xac=function(g,e,h,k){var l;l=g.global;if(k !== n.u.sm)return h?(c.l && this.console.log(("checkRequestByMediaTypeMemory [").concat(k,"]:") + (" using static limit ").concat(e.G1a[k],", usage: ").concat(h) + (" (global: ").concat(l[k]," ") + (" - certain contiguous: ").concat(d(g,k),")")),h[k] > (e.G1a[k] || Infinity)?k === n.u.U?"staticVideoMemoryLimit":"staticAudioMemoryLimit":void 0):l[k] > (e.total[k] || Infinity)?k === n.u.U?"globalVideoMemoryLimit":"globalAudioMemoryLimit":void 0;};return f;})();b.Vgb=t;},50612:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.MI=void 0;d=a(65161);n=a(65167);c=a(28847);t=(function(){var i9s;i9s=2;function f(g){var t73,e;t73=2;for(;t73 !== 9;){switch(t73){case 2:var P2F="1SIYbZ";P2F+="rNJC";P2F+="p9";e=this;this.config=g;this.VRb=this.Ila=null;this.zIb=function(h,k,l){var j4D;j4D=2;for(;j4D !== 5;){switch(j4D){case 2:h=e.gl(h,l);return e.config.unb?(k=(0,n.nPa)(e.config.tnb,k.cl - k.Cd,1),{lower:h * (1 - k),upper:void 0}):{lower:h * e.config.nU / 100,upper:void 0};break;}}};P2F;t73=9;break;}}}for(;i9s !== 6;){switch(i9s){case 8:f.prototype.ySa=function(){var y2w;y2w=2;for(;y2w !== 1;){switch(y2w){case 2:return this.VRb;break;case 4:return this.VRb;break;}}};return f;break;case 2:f.prototype.osb=function(g,e){var H9O,h;H9O=2;for(;H9O !== 4;){switch(H9O){case 2:h=null === this.Ila?g * (100 - this.config.nU) / 100:(0,c.Cmb)(g,this.Ila);this.config.wra && e?(g=(0,c.Cmb)(g,e),g=Math.max(g,h)):g=h;return g;break;}}};f.prototype.j1a=function(g){var z90;z90=2;for(;z90 !== 1;){switch(z90){case 2:return this.config.KY && (g === d.Ub.Bl || g === d.Ub.Pf);break;}}};f.prototype.gl=function(g,e){var X3j,h,k,l;X3j=2;for(;X3j !== 5;){switch(X3j){case 1:return this.j1a(e)?(null === (h=g.Wx) || void 0 === h?void 0:h.Fa) || (null === (k=g.kb) || void 0 === k?void 0:k.Fa) || 0:(null === (l=g.kb) || void 0 === l?void 0:l.Fa) || 0;break;case 2:X3j=1;break;}}};f.prototype.kwa=function(g){var Z_Z;Z_Z=2;for(;Z_Z !== 1;){switch(Z_Z){case 4:this.Ila=g;Z_Z=2;break;case 2:this.Ila=g;Z_Z=1;break;}}};f.prototype.BQa=function(){var P4U;P4U=2;for(;P4U !== 1;){switch(P4U){case 2:return this.Ila;break;}}};f.prototype.a1a=function(g){var l9D;l9D=2;for(;l9D !== 1;){switch(l9D){case 2:this.VRb=g;l9D=1;break;case 4:this.VRb=g;l9D=2;break;}}};i9s=8;break;}}})();b.MI=t;},53809:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Y6a=void 0;d=a(22970);n=a(65161);t=a(50612);c=a(93731);a=(function(f){var l7E;l7E=2;function g(e){var K2P,h;K2P=2;for(;K2P !== 9;){switch(K2P){case 4:var v7O="1SIYb";v7O+="ZrNJCp";v7O+="9";v7O;return h;break;case 2:h=f.call(this,e) || this;h.V0=function(k,l,m,p,r){var F5F,h2A;F5F=2;for(;F5F !== 10;){switch(F5F){case 9:p=h.config.w3a * k.kb.Fa;F5F=8;break;case 11:var o2P="through";o2P+="put-c";o2P+="i";l=k[o2P];F5F=9;break;case 4:var Z0w="de";Z0w+="liver";Z0w+="yt";Z0w+="ime";Z0w+="-ci";h2A=h.config.sma;F5F=h2A === Z0w?3:12;break;case 12:F5F=11;break;case 13:F5F=6;break;case 8:F5F=m === n.Ub.Bl?7:14;break;case 14:F5F=m === n.Ub.Pf?7:13;break;case 6:return {lower:(null === l || void 0 === l?void 0:l.low) || k.kb.Fa,upper:(null === l || void 0 === l?void 0:l.high) || p};break;case 2:void 0 === r && (r=!0);F5F=1;break;case 1:F5F=h.j1a(m)?5:4;break;case 5:return h.OAc.V0(k,l,m,p,r);break;case 3:var N9G="deli";N9G+="v";N9G+="ery";N9G+="time-ci";l=k[N9G];F5F=9;break;case 7:return {lower:(null === l || void 0 === l?void 0:l.initial) || k.kb.Fa,upper:(null === l || void 0 === l?void 0:l.high) || p};break;}}};h.OAc=new c.rDa(e);K2P=4;break;}}}for(;l7E !== 5;){switch(l7E){case 2:d.__extends(g,f);return g;break;}}})(t.MI);b.Y6a=a;},14246:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.RRa=b.MI=void 0;d=a(93731);n=a(8367);c=a(93928);f=a(53809);g=a(50612);Object.defineProperties(b,{MI:{enumerable:!0,get:function(){return g.MI;}}});b.RRa=function(e){switch(e.Vra){case "manifold":return new d.rDa(e);case "stddev":return new c.Qgb(e);case "ci":return new f.Y6a(e);default:return new n.Bgb(e);}};},93731:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.rDa=void 0;d=a(22970);t=a(66164);n=d.__importStar(a(65167));a=a(50612);c=n.vma;f=n.vbc;g=n.nPa;e=n.slc;h=n.eOc;new t.platform.Console("ASEJS_PREDICTOR","media|asejs");a=(function(k){var f9f;f9f=2;for(;f9f !== 5;){switch(f9f){case 2:d.__extends(l,k);return l;break;case 3:d.__extends(l,k);return l;break;}}function l(m){var Y2z,p;Y2z=2;for(;Y2z !== 13;){switch(Y2z){case 3:p.T8b=c(m.Tz.gamma || 1,.1,10);p.filter=m.Tz.filter;p.kRc=!!m.Tz.simpleScaling;Y2z=7;break;case 7:var d69="1SIYbZrN";d69+="JC";d69+="p9";m.Tz.niqrfilter && m.Tz.niqrcurve && (p.oFb=m.Tz.niqrfilter,p.HDc=f(m.Tz.niqrcurve,1,0,4));d69;return p;break;case 2:p=k.call(this,m) || this;p.V0=function(r,q,u,v,w){var t0h,x,y,A;t0h=2;for(;t0h !== 11;){switch(t0h){case 13:v=w?p.osb(A,v):A;return {lower:v,upper:v * p.config.w3a};break;case 8:p.kRc?(q=g(p.qrb,u,1),u=g(p.prb,u,1),q=q * x + u * (1 - x)):q=g(h(p.qrb,p.prb,x),u,1);r=p.oFb && (null === (y=r[p.oFb]) || void 0 === y?void 0:y.Usa);void 0 !== r && (y=e(p.HDc,r),q=Math.min(q * y,1));X8rQy.r4q(0);A*=X8rQy.I83(1,q);t0h=13;break;case 4:u=p.j1a(u)?A:(null === (x=r[p.filter]) || void 0 === x?void 0:x.Fa) || A;x=Math.pow(Math.max(1 - u / p.W8b,0),p.T8b);u=q.cl - q.Cd;t0h=8;break;case 2:void 0 === w && (w=!0);A=p.gl(r,u);t0h=4;break;}}};Array.isArray(m.Tz.curves) && (p.qrb=f(m.Tz.curves[0],0,0,1),p.prb=f(m.Tz.curves[1],0,0,1));p.W8b=c(m.Tz.threshold || 6E3,1,1E5);Y2z=3;break;}}}})(a.MI);b.rDa=a;},8367:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Bgb=void 0;d=a(22970);t=a(66164);n=a(50612);c=a(28847);new t.platform.Console("ASEJS_PREDICTOR","media|asejs");a=(function(f){var C7M;C7M=2;function g(e){var Q1J,h;Q1J=2;for(;Q1J !== 3;){switch(Q1J){case 2:var Q$Z="1SIYbZrN";Q$Z+="JC";Q$Z+="p9";h=f.call(this,e) || this;h.V0=function(k,l,m,p,r){var C$P,q;C$P=2;for(;C$P !== 8;){switch(C$P){case 3:p=r?h.osb(l,p):l;return {lower:p,upper:p * h.config.w3a};break;case 2:void 0 === r && (r=!0);q=h.gl(k,m);k=h.aRc(k,m);l=q?q * (100 - h.Coc(l,k)) / 100 | 0:0;C$P=3;break;}}};Q$Z;return h;break;}}}for(;C7M !== 3;){switch(C7M){case 2:d.__extends(g,f);g.prototype.Coc=function(e,h){var V9$,k,l;V9$=2;for(;V9$ !== 3;){switch(V9$){case 4:return l;break;case 2:(k=this.config,l=h?k.o8:k.J7);h=h?k.p8:k.L7;Array.isArray(h) && (l=(0,c.rlc)(h,e.cl - e.Cd,k.K7));V9$=4;break;}}};g.prototype.aRc=function(e,h){var T1e;T1e=2;for(;T1e !== 5;){switch(T1e){case 2:e=this.gl(e,h);return this.config.bfa && e < this.config.q8;break;}}};return g;break;}}})(n.MI);b.Bgb=a;},93928:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Qgb=void 0;d=a(22970);t=a(50612);t=(function(n){var k9j;k9j=2;for(;k9j !== 5;){switch(k9j){case 2:d.__extends(c,n);return c;break;}}function c(f){var m1Z,g;m1Z=2;for(;m1Z !== 3;){switch(m1Z){case 2:g=n.call(this,f) || this;m1Z=1;break;case 1:var x0$="1SIYbZrNJ";x0$+="C";x0$+="p9";g.V0=function(e){var W_R,h,W4m;W_R=2;for(;W_R !== 10;){switch(W_R){case 2:h={lower:e.kb.Fa,upper:void 0};W_R=1;break;case 1:var D1P="d";D1P+="eliverytim";D1P+="e";W4m=g.config.nSc;W_R=W4m === D1P?5:12;break;case 6:return {lower:e.Zr.sX + g.config.H1a * h,upper:e.Zr.sX + g.config.I1a * h};break;case 12:var I6X="aver";I6X+="ag";I6X+="e";I6X+="t";I6X+="p";W_R=W4m === I6X?8:11;break;case 11:var o1I="e";o1I+="w";o1I+="m";o1I+="a";W_R=W4m === o1I?14:4;break;case 5:W_R=!e.Zr || !e.Zr.Fa?4:3;break;case 13:return (h=Math.sqrt(e.Zr.P2 || 0),{lower:e.kb.Fa + g.config.H1a * h,upper:e.kb.Fa + g.config.I1a * h});break;case 14:W_R=e.Zr && e.Zr.P2?13:4;break;case 4:return h;break;case 3:h=Math.sqrt(e.Zr.ng || 0);W_R=9;break;case 9:return {lower:8 / (e.Zr.Fa + g.config.H1a * h),upper:8 / (e.Zr.Fa - g.config.I1a * h)};break;case 8:W_R=!e.Zr || !e.Zr.sX?4:7;break;case 7:h=Math.sqrt(e.Zr.P2 || 0);W_R=6;break;}}};x0$;return g;break;}}}})(t.MI);b.Qgb=t;},28847:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.rlc=function(n,c,f){var g,e,h;g=0;if(f){n.some(function(k){var l;l=k.b;k=k.m;if(c <= l)return (g=h && l !== e?h + (k - h) / (l - e) * (c - e):k,!0);e=l;g=h=k;return !1;});}else n.some(function(k){g=k.m;return c <= k.b;});return g;};b.zIb=function(n,c,f){var g;c=(null === (g=c.kb) || void 0 === g?void 0:g.Fa) || 0;return n.unb?(n=(0,d.nPa)(n.tnb,f.cl - f.Cd,1),c * (1 - n)):c * n.nU / 100;};b.Cmb=function(n,c){return n < 2 * c?n / 2:n - c;};d=a(65167);},43071:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.i7a=b.k7a=void 0;d=a(63576);n=a(47233);c=a(76753);b.k7a=625E3;t=(function(){function f(g,e){this.console=g;this.config=e;}f.prototype.ULa=function(g){var e,h,k,l,m,p;e=this;h=this.config.fna;k=this.config.qad || this.config.ena;l=0 < g.CSa.bH && Infinity !== g.CSa.bH;m=l?k * b.k7a / 1E3:this.config.eS || Infinity;p=l?Math.floor(g.CSa.bH / m):h;return {Fp:g.PXc.sort(function(r,q){return r.priority - q.priority;}).slice(0,h).map(function(r,q){var u;u=r.key.config;return {aBb:{bH:q > p - 1?0:m},Fd:r,zua:1,ol:u,xOb:{audio:[(0,d.z8)(u),new n.SGa(),new c.TBa()],video:[(0,d.A8)(e.console,u),new n.SGa(),new c.TBa()]}};})};};return f;})();b.i7a=t;},76753:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.TBa=void 0;t=(function(){function a(){}a.prototype.Ah=function(d){return d.filter(function(n){return !n.za;});};return a;})();b.TBa=t;},68766:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.C7a=void 0;d=a(22970);n=a(79048);c=a(28871);t=(function(){function f(){}f.prototype.tDb=function(g){return d.__awaiter(this,void 0,void 0,function(){var e,h,k,l,m;return d.__generator(this,function(p){switch(p.label){case 0:e=g.Fd.key;if(!(0,c.IUa)(e) && !(0,c.CUa)(e))return [3,2];h=(0,c.Sf)(e);k=g.Fd.Ae.js(h);return [4,Promise.resolve(k.Pu)];case 1:return (l=p.T(),m=l.S,m.Sr?[2,(0,n.rMa)(m.Sr,{config:l.config})]:[2,(0,n.r1a)(h,"ps0")]);case 2:return [2,e.Z];}});});};return f;})();b.C7a=t;},34297:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Ueb=void 0;d=a(48170);n=a(82475);b.Ueb=(function(){function c(){}c.sMc=function(f,g,e,h){f.events.once("seeking",function(k){var l,m;l=k.position;m=e.length;k.duplicate || (e.wda(function(p){return "segmentNormalized" !== p.Nv;}),d.l && h.log(("Discarding ").concat(m - e.length," events from prefetched playgraph") + (" for original seek postition ").concat((0,n.GSa)(g)) + (" due to seek to ").concat((0,n.GSa)(l))));d.l && h.log(("Replaying ").concat(e.length," events from prefetched playgraph") + ("for seek postition ").concat((0,n.GSa)(l)));e.l_a();e.Ka();});};return c;})();},91961:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z;Object.defineProperties(b,{__esModule:{value:!0}});b.Web=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(66164);g=a(65161);e=a(51308);h=a(69575);k=a(52571);l=a(70764);m=a(48170);p=a(61996);r=a(63576);q=a(30285);u=a(7520);v=a(68766);w=a(81307);x=a(43071);y=a(28871);A=a(34297);z=a(2948);t=(function(){function B(C,D,F,H,E){void 0 === H && (H=new w.D7a());void 0 === E && (E=new v.C7a());this.utb=C;this.config=D;this.SJb=H;this.Fp=[];this.EIb=[];this.Nz=[];this.aJb=new c.A5();this.stats={eBb:0,fBb:0,bBb:0,LLa:0,cBb:0,dBb:0,MLa:0};this.events=new n.EventEmitter();this.console=(0,h.Df)(f.platform,F,"PREFETCH");this.pe=new p.zm({xg:10,qj:this,source:"Prefetcher"});this.xKa(new x.i7a(F,D));this.xKa(new z.ugb(D));this.xMb({bH:D.LIc});this.L0a(E);this.Jvc();}Object.defineProperties(B.prototype,{MIc:{get:function(){return this.Fp.map(function(C){return C.context;});},enumerable:!1,configurable:!0}});Object.defineProperties(B.prototype,{OXc:{get:function(){return this.Nz;},enumerable:!1,configurable:!0}});B.prototype.TMb=function(C){m.l && (0,k.assert)(C,"Reconciliation strategy is undefined");this.SJb=C;return this;};B.prototype.xKa=function(C){this.EIb.unshift(C);return this;};B.prototype.d1a=function(C){var D;m.l && this.console.debug("Wish list changed",{bbd:C.length});D=(0,c.Yo)(this.OXc,C);this.pe.ug({dropped:D.map(function(F){return (0,y.Sf)(F.key);}),wishlist:C.map(function(F){return (0,y.Sf)(F.key);})});D.forEach(function(F){var H;return null === (H=F.Ka) || void 0 === H?void 0:H.call(F);});this.Nz=C;this.Vua();};B.prototype.reset=function(C){var D;D=this;void 0 === C && (C=this.config);C.XIc?this.Fp.forEach(function(F){return D.ykb(F);}):this.d1a([]);};B.prototype.ykb=function(C,D){var F,H,E;F=C.Z;H=C.Uaa;E=C.context;void 0 === D && (D=!1);F && (C=void 0,D && (C=F.qRa()),F.Jg(D?e.RN.NIc:e.RN.rna),H.wda(function(G){return "segmentNormalized" !== G.Nv;}),D=(0,y.xpa)(E.Fd,F.Z),F.LM(D),null === C || void 0 === C?void 0:C.release());};B.prototype.xMb=function(C){m.l && this.console.debug("Budget changed",{qta:this.R7,Psa:C});this.R7=C;this.Vua();};B.prototype.tbc=function(C,D){var F,H,E,G;m.l && this.console.debug("Looking for playgraph to claim");if(C=this.SJb.Gub(this.Fp,{Z:C,ol:D})){H=this.Nz.indexOf(C.context.Fd);m.l && this.console.debug(("Claiming item: ").concat((0,y.Sf)(C.context.Fd.key)),{dX:f.platform.time.ha() - C.v2a,buffer:null === (F=C.Z) || void 0 === F?void 0:F.en(c.I.ia)});this.vK(C.context,{dra:!!C.Z,Tob:!!C.Z});C.za && this.ykb(C,!0);if(C.Z){F=C.Z;E=C.wT;G=F.gm;A.Ueb.sMc(F,G,C.Uaa,this.console);F.Wi && (F.Wi.vrb=!0);E.cOc(F.tA(G) || c.I.ia,H);F.JQb({bH:this.config.eS || Infinity});this.events.emit("itemClaimed",{type:"itemClaimed",wishListItem:C.context.Fd,videoBytesBuffered:C.Z.VQ().xN,audioBytesBuffered:C.Z.VQ().LJ});}}D.R6b || this.reset(D);return null === C || void 0 === C?void 0:C.Z;};B.prototype.qbc=function(){};B.prototype.getStats=function(){var C;C=f.platform.time.ha();return {wishListLength:this.Nz.length,prefetchList:this.MIc.length,contents:this.Fp.map(function(D){var F,H,E,G,J;if(D.Z){J=(0,y.xpa)(D.context.Fd,D.Z.Z);J=D.Z.tA(J);J=D.Z.en(J || c.I.ia);}return {id:(0,y.Sf)(D.context.Fd.key),buffer:J,pId:null === (F=D.Z) || void 0 === F?void 0:F.id,budget:{inMemoryBytes:D.context.aBb.bH},weight:D.context.zua,age:C - D.v2a,timeOpened:C - (null !== (H=D.gUc) && void 0 !== H?H:0),state:g.Rd[null !== (G=null === (E=D.Z) || void 0 === E?void 0:E.ie.value) && void 0 !== G?G:g.Rd.yt]};}),aggregated:{itemsRequested:this.stats.eBb,itemsStarted:this.stats.fBb,itemsClaimed:this.stats.bBb,bytesClaimed:this.stats.LLa,itemsCompleted:this.stats.cBb,itemsDiscarded:this.stats.dBb,bytesDiscarded:this.stats.MLa}};};B.prototype.vK=function(C){d.__awaiter(this,arguments,void 0,function(D,F){var H,E,G,J,L,K,M,P,I,O;void 0 === F && (F={});return d.__generator(this,function(Q){switch(Q.label){case 0:H=d.__assign({dra:!1,tBb:!1,Tob:!1},F);E=H.dra;G=H.tBb;J=H.Tob;L=(0,c.cc)(this.Fp,function(T){return T.context === D;});G || J || (null === (I=(P=D.Fd).Ka) || void 0 === I?void 0:I.call(P));if(!L)return [3,3];this.pe.ug({prefetchItem:(0,y.Sf)(D.Fd.key)});this.Fp.splice(this.Fp.indexOf(L),1);G || (K=this.Nz.length,this.Nz=this.Nz.filter(function(T){return T !== D.Fd;}),m.l && this.console.info("Dropping items from wishlist",K - this.Nz.length),this.Nz.length >= K && m.l && this.console.warn("Unable to filter out wishlist item",this.Nz.map(function(T){return T.key;}),D.Fd.key));m.l && this.console.debug("Dropping playgraph",{dX:f.platform.time.ha() - L.v2a,buffer:null === (O=L.Z) || void 0 === O?void 0:O.en(c.I.ia),J:(0,y.Sf)(D.Fd.key),fcd:!E,I7c:!G});L.Kj.clear();if(E)return [3,2];M=this.hE(L);return L.Z?[4,M]:[3,2];case 1:(Q.T(),Q.label=2);case 2:(this.Vua(),Q.label=3);case 3:return [2];}});});};B.prototype.L0a=function(C){(0,k.assert)(C,"Playgraph resolver is undefined");this.TYa=C;return this;};B.prototype.Jvc=function(){var C;C=this;this.events.on("prefetchComplete",function(){return C.stats.cBb++;});this.events.on("prefetchStarted",function(){return C.stats.fBb++;});this.events.on("itemQueued",function(){return C.stats.eBb++;});this.events.on("itemClaimed",function(D){var F,H;C.stats.bBb++;C.stats.LLa+=(null !== (F=D.cXc) && void 0 !== F?F:0) + (null !== (H=D.m8b) && void 0 !== H?H:0);});this.events.on("itemDropped",function(D){var F,H;C.stats.dBb++;C.stats.MLa+=(null !== (F=D.cXc) && void 0 !== F?F:0) + (null !== (H=D.m8b) && void 0 !== H?H:0);});};B.prototype.Vua=function(){var C;C=this;this.aJb.pla?Promise.resolve():this.aJb.UXc(function(){var D,F,H,E,G;D=c.OE.kL({PXc:C.Nz,CSa:C.R7},C.EIb.map(function(J){return J.ULa.bind(J);})).Fp;F=(0,c.Yo)(D,C.Fp,function(J,L){return (0,y.isEqual)(J.Fd.key,L.context.Fd.key);});H=(0,c.Yo)(C.Fp,D,function(J,L){return (0,y.isEqual)(J.context.Fd.key,L.Fd.key);});E=(0,c.Yo)(C.Fp,H);m.l && C.console.debug(("Re-evaluated prefetch items. new:").concat(F.length,", evict: ").concat(H.length,", update: ").concat(F.length));C.pe.ug({toKeep:E.map(function(J){return (0,y.Sf)(J.context.Fd.key);}),toEvict:H.map(function(J){return (0,y.Sf)(J.context.Fd.key);}),newContexts:F.map(function(J){return (0,y.Sf)(J.Fd.key);})});H=H.map(function(J){return d.__awaiter(C,void 0,void 0,function(){var L,K,M;return d.__generator(this,function(P){switch(P.label){case 0:(L=J.context.Fd.key,m.l && this.console.debug("Releasing playgraph",(0,y.Sf)(L)),P.label=1);case 1:return (P.tc.push([1,,3,4]),[4,this.hE(J)]);case 2:return (P.T(),[3,4]);case 3:return (this.events.emit("itemEvicted",{type:"itemEvicted",wishListItem:J.context.Fd}),null === (M=(K=J.context.Fd.Ae).Ka) || void 0 === M?void 0:M.call(K),[7]);case 4:return [2];}});});});G=E.map(function(J){return d.__awaiter(C,void 0,void 0,function(){var L,K;return d.__generator(this,function(M){switch(M.label){case 0:(L=(0,c.cc)(D,function(P){return (0,y.isEqual)(P.Fd.key,J.context.Fd.key);}),(0,k.assert)(L,"Couldn't find the requested item context"),J.context=L,M.label=1);case 1:return (M.tc.push([1,3,,4]),[4,J.xua]);case 2:return (K=M.T(),[3,4]);case 3:return (M.T(),[2]);case 4:return ((0,c.cc)(this.Fp,function(P){return P === J;}) && (this.Gmb(J.context,K),this.events.emit("itemReevaluated",{type:"itemReevaluated",wishListItem:J.context.Fd})),[2]);}});});});F=F.map(function(J){var L;L=C.Sfc(J);C.events.emit("itemQueued",{type:"itemQueued",wishListItem:J.Fd});return L;});C.Fp=d.__spreadArray(d.__spreadArray([],d.__read(E),!1),d.__read(F),!1);E=F.map(function(J){return J.xua.catch(function(){});});E=H.concat(G).concat(E);return Promise.all(E);});};B.prototype.hE=function(C){return d.__awaiter(this,void 0,void 0,function(){var D,F,H;return d.__generator(this,function(E){switch(E.label){case 0:return (E.tc.push([0,3,,4]),[4,C.xua]);case 1:return (D=E.T(),m.l && this.console.debug("Removing prefetch playgraph",{size:D.en(c.I.ia)}),C.Kj.clear(),[4,this.utb()]);case 2:return (F=E.T(),F.hE(D),this.events.emit("itemDropped",{type:"itemDropped",wishListItem:C.context.Fd,videoBytesBuffered:D.VQ().xN,audioBytesBuffered:D.VQ().LJ}),[3,4]);case 3:return (H=E.T(),m.l && this.console.trace("Non fatal error in removing playgraph",H),[3,4]);case 4:return [2];}});});};B.prototype.vNa=function(C){return d.__awaiter(this,void 0,void 0,function(){var D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U;Q=this;return d.__generator(this,function(X){switch(X.label){case 0:return (D=C.context,F=(0,y.Sf)(D.Fd.key),m.l && this.console.debug("Creating playgraph",F),[4,this.TYa.tDb(D)]);case 1:return (H=X.T(),[4,D.Fd.Ae.js(F).Pu]);case 2:E=X.T();G=E.S;if(G.OC)return (this.vK(D,{dra:!0}),[2,Promise.reject(("contentPlaygraph viewable:").concat(F) + " is not supported with prefetching")]);if((0,c.GA)(G.Yf))if((J=this.config.Fra,L=!(null === (U=null === (T=G.qE) || void 0 === T?void 0:T.aN) || void 0 === U || !U.JA),J || (J=L && this.config.Gra),J))C.za=!0;else return (this.vK(D,{dra:!0}),[2,Promise.reject(("live title encountered viewable:").concat(F) + " disabling header fetch / normalization")]);K=D.ol;M=K.WC && (G.Sr?K.Ojc:!0);P=Object.create(K,{WC:{value:M}});return [4,this.utb()];case 3:return (I=X.T(),O=I.g7(H,D.zua,P,D.Fd.Ae,!1),C.Kj.addListener(O.events,"error",function(Y){m.l && Q.console.debug("Prefetch playgraph resulted in error",Y.Ti);Q.vK(D);}),[2,O]);}});});};B.prototype.$Fc=function(C,D){return d.__awaiter(this,void 0,void 0,function(){var F,H,E,G;return d.__generator(this,function(J){switch(J.label){case 0:return (F=C.context,H=(0,y.Sf)(F.Fd.key),E=F.Fd.Ae.js(H),[4,E.Pu]);case 1:return (G=J.T(),this.Gmb(F,D),this.t7b(F,D,!!G.Pv),D.Wi && (D.Wi.vrb=!1),D.open(),D.Ny({OT:function(L,K){var M,P;M=L.recommendedMedia;P=M?(0,c.Lm)(K,function(I){return I.new_track_id === M.yv;}):(0,c.Lm)(K,function(I){return I.track_id === L.defaultTrackOrderList[0].audioTrackId;});return 0 <= P && P < K.length?P:void 0;}},{OT:function(L,K){var M,P;M=L.recommendedMedia;P=M?(0,c.Lm)(K,function(I){return I.new_track_id === M.Sp;}):(0,c.Lm)(K,function(I){return I.track_id === L.defaultTrackOrderList[0].videoTrackId;});return 0 <= P && P < K.length?P:void 0;}}),m.l && this.console.trace("Open Playgraph/seekstreaming",{J:(0,y.Sf)(C.context.Fd.key)}),D.LM((0,y.xpa)(F.Fd,D.Z)),this.SLc(C,E),E.Kx && (m.l && this.console.warn("Viewable churn encountered during prefetcher (expired on initialization)",H),this.vK(C.context)),[2]);}});});};B.prototype.SLc=function(C,D){var H;function F(E){m.l && H.console.debug(("Viewable ").concat(E?"superseded":"expired"),(0,y.Sf)(C.context.Fd.key));C.W$c=!0;H.vK(C.context,{tBb:!E && H.config.fyc});}H=this;D.events && (C.Kj.addListener(D.events,"viewableEvicted",function(){F(!0);}),C.Kj.addListener(D.events,"viewableExpired",function(){F(!1);}));this.events.emit("prefetchStarted",{type:"prefetchStarted",wishListItem:C.context.Fd});};B.prototype.Gmb=function(C,D){D.r3a(C.zua);D.JQb(C.aBb);};B.prototype.t7b=function(C,D,F){var H;H=C.xOb;C=H.audio;H=H.video;F && H.push(new u.f5(this.console,D.config));D.T0a(new r.vz(C,!0),new r.vz(H,!0));};B.prototype.Sfc=function(C){var D,F,H;D=this;F=new l.Veb();H={context:C,v2a:f.platform.time.ha(),Kj:new n.gf(),wT:F};H.xua=this.vNa(H).then(function(E){return d.__awaiter(D,void 0,void 0,function(){var G,J;J=this;return d.__generator(this,function(L){switch(L.label){case 0:for(G=E;G.Da;)G=G.Da;E.Sc(F);F.h8b(E);H.Uaa=new q.K8a(G.events,{UQc:function(K){var M,P;M=K.Nv;switch(M){case "buffering":return !1;case "segmentStarting":P=K.Km[0];H.Uaa.wda(function(I){if("segmentStarting" === I.Nv)return I.Km[0].L === P.L;if(P.initial && "initialAudioTrack" === I.Nv)return !0;});return !0;case "bufferingStarted":H.Uaa.wda(function(I){return "bufferingComplete" === I.Nv || "updateStreamingPts" === I.Nv;});case "openComplete":case "updateStreamingPts":case "bufferingComplete":H.Uaa.wda(function(I){return I.Nv === M;});default:return !0;}}});G.events.on("bufferingComplete",function(){J.events.emit("prefetchComplete",{type:"prefetchComplete",wishListItem:C.Fd});});return [4,this.$Fc(H,E)];case 1:return (L.T(),H.gUc=f.platform.time.ha(),H.Z=E,[2,E]);}});});});H.xua.catch(function(E){var G;G=(0,y.Sf)(H.context.Fd.key);m.l && D.console.error(("Exception occurred creating playgraph ").concat(G),E);D.vK(H.context);});return H;};d.__decorate([(0,p.gb)({methodName:"setWishList",Re:!0})],B.prototype,"d1a",null);d.__decorate([(0,p.gb)({methodName:"reset",Re:!0})],B.prototype,"reset",null);d.__decorate([(0,p.gb)({methodName:"dropPrefetchItem",Re:!0})],B.prototype,"vK",null);d.__decorate([(0,p.gb)({methodName:"processWishList",Re:!0})],B.prototype,"Vua",null);return B;})();b.Web=t;},81307:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.D7a=void 0;d=a(22970);n=a(52571);c=a(28871);t=(function(){function f(){}f.Sf=function(g){var e,h;e=g.ba;g=g.sf;h=e[g].J;Object.keys(e).forEach(function(k){return (0,n.assert)(e[k].J === h);});return e[g].J;};f.prototype.Gub=function(g,e){var h;h=Object.keys(e.Z.ba).length;return d.__read(g.filter(function(k){var l;return f.Sf(e.Z) === (0,c.Sf)(k.context.Fd.key) && (1 === h || h === Object.keys((null === (l=k.Z) || void 0 === l?void 0:l.Z.ba) || ({})).length);}),1)[0];};return f;})();b.D7a=t;},2948:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.ugb=void 0;t=(function(){function a(d){this.config=d;}a.prototype.ULa=function(d,n){var c,f;c=this;d=n(d);f=d.Fp.map(function(g){return g.Fd.priority;}).sort();d.Fp.forEach(function(g){g.zua=c.config.PIc / (2 << f.lastIndexOf(g.Fd.priority));});return d;};return a;})();b.ugb=t;},47233:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.SGa=void 0;d=a(65161);t=(function(){function n(){}n.prototype.Ah=function(c,f){return f === d.Rd.$p?[]:c;};return n;})();b.SGa=t;},28871:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.xpa=b.Sf=b.isEqual=b.sUa=b.CUa=b.IUa=void 0;d=a(91176);n=a(6783);b.IUa=function(c){return !!c.J;};b.CUa=function(c){return !!c.v7;};b.sUa=function(c){return !!c.Z;};b.isEqual=function(c,f){var g,e;g=(0,b.sUa)(c);e=(0,b.sUa)(f);return g && e?c.Z === f.Z:g || e?!1:"" + (0,b.Sf)(c) === "" + (0,b.Sf)(f);};b.Sf=function(c){if((0,b.IUa)(c))return c.J;if((0,b.CUa)(c))return c.v7;c=c.Z;return c.ba[c.sf].J;};b.xpa=function(c,f){var g;return c.Vla?c.Vla instanceof d.I?(c=(0,n.Vr)(f,(0,b.Sf)(c.key),c.Vla),(null === c || void 0 === c?0:c.offset.greaterThan(d.I.ia))?c:{offset:d.I.ia,L:null !== (g=null === c || void 0 === c?void 0:c.L) && void 0 !== g?g:f.sf}):c.Vla:{offset:d.I.ia,L:f.sf};};},56820:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(23093),b);t.__exportStar(a(82010),b);t.__exportStar(a(19588),b);t.__exportStar(a(39833),b);},23093:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.cfb=void 0;t=(function(){function a(){this.SF="NONE";this.Vt=this.Dn=-1;this.by=this.gu=!1;this.b1=0;}Object.defineProperties(a.prototype,{Naa:{get:function(){return 0 === this.b1;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{SSa:{get:function(){return -1 !== this.Dn;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{cuc:{get:function(){return -1 !== this.Vt;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{mo:{get:function(){return this.gu && this.cuc && this.SSa;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{qAb:{get:function(){return "DECREASING" === this.SF;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{Twc:{get:function(){return "INCREASING" === this.SF;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{Bxc:{get:function(){return "NONE" === this.SF;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{rAb:{get:function(){return "DISABLED" === this.SF;},enumerable:!1,configurable:!0}});return a;})();b.cfb=t;},62234:function(t,b,a){var q,u,v,w,x,y,A;function d(z,B){return B.rAb;}function n(z,B){return (0,v.Uec)({wcc:k,Kgc:z,bwc:h,mc:B});}function c(z,B){B=B.SSa;return z.SSa && !B;}function f(z,B,C){var D;z=B.Vt;D=B.Dn;C=C.hfa;return B.mo && z < D - C;}function g(z,B,C){var D;z=B.Vt;D=B.Dn;C=C.hfa;return B.mo && z > D + C;}function e(z,B,C){var D,F;z=B.Vt;D=B.SF;F=B.Dn;C=C.hfa;return B.mo?"DECREASING" === D && z <= F || "INCREASING" === D && z >= F || "NONE" === D && Math.abs(z - F) <= C?!0:!1:!1;}function h(z,B){z=z.b1;B=B.b1;return 0 < z && z < B;}function k(z,B){B=B.Naa;return z.Naa && !B;}function l(z,B){B=B.Naa;return !z.Naa && B;}function m(z,B){B=B.by;return !z.by && B;}function p(z,B){B=B.gu;return z.gu && !B;}function r(z,B){B=B.gu;return !z.gu && B;}Object.defineProperties(b,{__esModule:{value:!0}});b.bfb=void 0;q=a(22970);u=a(66164);v=a(91176);w=a(97685);x=a(48170);y=a(23093);A=a(19250);t=(function(){function z(B,C){var D;D=this;this.Cb=B;this.config=C;this.console=new u.platform.Console("ASEJS_PRESENTATION_DELAY_CONTROLLER","asejs");this.state=new v.Tgb({model:y.cfb});this.vvc=function(F,H){var E,G;E=F.Dn;F=F.Vt;if(!D.state.value.Twc){G=D.Cb.Ida({type:"INCREASE",Dn:E});x.l && D.EVa({reason:H,request:"INCREASE",Dn:E,Vt:F,response:G});H=D.fda(G);return {sy:D.FRa(H?"INCREASE":"DISABLE")};}};this.ahc=function(F,H){var E,G;E=F.Dn;F=F.Vt;if(!D.state.value.qAb && D.state.value.Naa){G=D.Cb.Ida({type:"DECREASE",Dn:E});x.l && D.EVa({reason:H,request:"DECREASE",Dn:E,Vt:F,response:G});H=D.fda(G);return {sy:D.FRa(H?"DECREASE":"DISABLE")};}};this.dDb=function(F,H){var E,G;E=F.Dn;F=F.Vt;if(!D.state.value.Bxc){G=D.Cb.Ida({type:"MAINTAIN",Dn:E});x.l && D.EVa({reason:H,request:"MAINTAIN",Dn:E,Vt:F,response:G});H=D.fda(G);return {sy:D.FRa(H?"MAINTAIN":"DISABLE")};}};this.fda=function(F){if("APPROVED" === F.dg)return (x.l && D.console.log("The platform approved the request"),!0);x.l && D.console.log(('The platform rejected the request with reason "').concat(F.reason,'"'));switch(F.reason){case "NOT_SUPPORTED":return !1;case "TARGET_ACHIEVED":return !0;case "NO_LIVE_INTENT":return (x.l && D.state.value.gu && D.console.warn("Request requested due to NO_LIVE_INTENT, but ASE has intent"),!0);default:if(x.l)throw Error(("Unexpected rejection: ").concat(F.reason));return !1;}};this.YMb=function(F,H){if(D.state.value.Dn !== D.config.ll)return (x.l && D.console.log(("Setting target to configured minimum at ").concat(D.config.ll,'ms due to "').concat(H,'"')),{sy:{Dn:D.config.ll}});};this.tVc=function(F,H){x.l && D.console.log(('Unsetting target due to "').concat(H,'"'));return {sy:{Dn:-1}};};this.ytc=function(F,H){if(D.state.value.qAb)return (x.l && D.console.log(("Halting decrease to ").concat(D.state.value.Dn,'ms due to "').concat(H,'". ') + ("Setting new target to ").concat(D.state.value.Vt,"ms.")),{sy:{Dn:D.state.value.Vt}});};this.iPc=function(F,H){x.l && D.console.log(("No negative QoE signals have been received for ").concat(D.config.Gua,"ms, ") + ('setting QoE to "acceptable" due to "').concat(H,'"'));return {sy:{b1:0}};};this.vea=this.vea.bind(this);this.owa=this.owa.bind(this);this.lwa=this.lwa.bind(this);this.o_a=this.o_a.bind(this);this.reset=this.reset.bind(this);this.algorithm=new v.Algorithm([[d,function(){return {w9b:!0};}],[(0,v.lqb)([r,m],p),this.YMb],[(0,v.lqb)([p,m],r),this.tVc],[n(this.config.Gua,this.Cb.mc),this.iPc],[l,this.YMb],[k,this.ytc],[c,this.dDb],[e,this.dDb],[g,this.ahc],[f,this.vvc]],{store:this.state,JRa:function(){return [D.config];}});}z.prototype.vea=function(B){this.Fxa({gu:B});};z.prototype.owa=function(B){this.Fxa({Vt:B});};z.prototype.o_a=function(){this.Fxa({b1:this.state.value.b1 + 1});};z.prototype.lwa=function(B){this.Fxa({by:B});};z.prototype.reset=function(){this.algorithm.reset();this.state.value.rAb || this.state.reset();};z.prototype.FRa=function(B){B=(0,v.IUc)(A.jJc,this.state.value.SF,B);x.l && B.qq && this.console.log(('Transitioned from "').concat(B.uJc,'" to "').concat(B.sy,'" due to ') + ('event "').concat(B.event,'"'));return {SF:B.sy};};z.prototype.Fxa=function(B){this.state.next(q.__assign({},B));};z.prototype.EVa=function(B){var C,D,F,H;C=B.reason;D=B.request;F=B.Dn;H=B.Vt;B=B.response;H="MAINTAIN" === D?("Requesting ").concat(D).concat(-1 !== F?(" at ").concat(F,"ms"):""):("Requesting ").concat(D," from ").concat(H,"ms to ").concat(F,"ms");H+=(' due to "').concat(C,'"');w.IR.log({un:this.Cb.Bqc(),type:"PRESENTATION_DELAY_CHANGE_REQUEST",F4c:"APPROVED" === B.dg,reason:C,request:D,source:"AUTOMATIC",Add:F / 1E3});this.console.log(H);};return z;})();b.bfb=t;},19250:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.jJc={initial:"NONE",iOb:{NONE:{on:{I0c:"INCREASING",YZc:"DECREASING"}},ZZc:{on:{EXb:"NONE"}},J0c:{on:{EXb:"NONE"}},d_c:{}},on:{c_c:"DISABLED"}};},82010:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},19588:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},39833:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},53800:function(t){function b(d,n){this.$3b=d.MS && d.MS.enabled;this.Ika=void 0;this.u3b=n;this.CJa=[];this.QJa=[];this.fJa=[];d=d.tJa || [];n=d.map(function(c){return c.U6c;});n.unshift(0);this.c4b=d;this.d4b=n;this.lJa=[];this.ae=[];}function a(d,n){var l,m,p,r;for(var c=[],f=[],g=0;g < d.length;g++){for(var e=d[g],h=[],k=0;k < e.length;k++){l=e[k] - (f[k] || 0);m=n && n[k];p=h;r=p.push;1 <= m && (m=Math.pow(10,m || 0),l=Math.round(l * m) / m);r.call(p,l);}c.push(h);f=e;}return c;}b.prototype.reset=function(d){this.Ika=void 0;this.CJa=[];this.QJa=[];this.fJa=[];this.lJa=[];d && (this.ae=[]);};b.prototype.add=function(d,n){var c,f,g,e;c=n.filter(function(h){return h.jH || h === d.sd;});f=c.map(function(h){return h.bitrate;});n=d.sd;c=c.indexOf(n);g=this.Ika;if(g && (g.length !== f.length || g.some(function(h,k){return h !== f[k];}))){e=this.cwb();e && (this.ae.push(e),this.reset(!1));}void 0 === g && (this.Ika=f);this.CJa.push([c,d.Uy,d.Lk,d.Rnb,d.L9b,d.nM,d.qEc,d.wh,d.Hm,d.Nl,d.dN - d.Uy,d.mIc]);void 0 !== d.rn && this.fJa.push([d.Uy,d.rn.oE,d.rn.NC,d.rn.gE]);c=n && n.Qa;this.$3b && void 0 !== c && (g=c.JG(d.Nl),-1 != g && (c=c.get(g),g=c.duration,n=c.Pb || n.Pb,void 0 !== n && this.QJa.push({Gb:c.Gb,duration:g,Pb:n})));(n=d.JIc) && n.length && (n=n.slice(0),n.unshift(d.Uy),this.lJa.push(n));};b.prototype.cwb=function(){var d,n;d=a(this.CJa);if(0 !== d.length){d={dltype:this.u3b,bitrates:this.Ika,seltrace:d,vmaftrace:this.QJa,paceratetrace:a(this.fJa)};n=a(this.lJa,this.d4b);n && n.length && (d.predtrace={config:this.c4b,data:n});return d;}};b.prototype.get=function(){var d,n;d=this.cwb();n=this.ae;d && n.push(d);if(0 !== n.length)return n;};t.exports=b;},35331:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.L4a=void 0;d=a(79048);n=a(14103);c=a(91967);t=(function(){function f(g){var e;e=this;this.context=g;this.Im=void 0;this.dc="ad-playgraph";this.enabled=!0;g.de.events.on("playgraphUpdating",function(){return e.ZQb();});g.de.events.on("segmentNormalized",function(){return e.ZQb();});}f.prototype.ZQb=function(){this.Im=this.context.de.Im || this.Im;};f.prototype.Bh=function(g){var e,h,k,l,m,p;h=g.Ii;g=g.xs;if(h === c.Lc.hm || h === c.Lc.gr || h === c.Lc.Jj || g === c.Td.Du || void 0 === h && void 0 === g){g=this.context;h=g.Da;if(null === (e=g.de.Cc) || void 0 === e?0:e.Bd.Wv()){e=h.player;g=e.Vd?e.Yg:h.Sx?h.gm:void 0;k=this.Im;l=void 0;e=void 0;if(g){m=h.Z.ba[g.L];p=h.Jb.LL(g.L);p && (h=h.Jb.JH.Z.ba[p],h.J != m.J && (l=m.J),"content" !== m.type && (e=this.joc(g.L,h.J)));}h={adPlaygraph:k?d.BFa.decode(k):void 0,adMid:l,manifestHasAds:!0};void 0 !== e && (h.adBreakLocationMs=e);return h;}return {manifestHasAds:!1};}};f.prototype.joc=function(g,e){var h,k,l;if(g=(0,n.RQ)(g))l=null === (k=null === (h=this.context.de.Cc) || void 0 === h?void 0:h.Bd.yQa(e,g)) || void 0 === k?void 0:k.xj;return l;};return f;})();b.L4a=t;},75402:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.q5a=void 0;t=a(22970);d=a(90745);n=a(91176);c=a(91176);f=t.__importDefault(a(14282));g=t.__importDefault(a(53800));e=a(91967);h=a(60028);a=(function(){function k(l){this.Z=l;this.Nv="aseReport";this.TA="asereport";this.HC=n.I.dh;this.events=new d.EventEmitter();this.g8=h.B5.h7a;this.zka=!1;this.zOb=0;this.v0=this.v0.bind(this);this.gNb({type:"asereportconfigoverrides",vv:this.Z.config.vv,Qz:this.Z.config.Qz,WJ:this.Z.config.WJ});}k.prototype.gNb=function(l){var m,p,r,q,u;q=this.Z.config.a8c;u=null !== (m=l.vv) && void 0 !== m?m:this.Z.config.vv;0 === Math.floor(1E6 * Math.random()) % u || q?(m=null !== (p=l.Qz) && void 0 !== p?p:this.Z.config.Qz,this.HC=n.I.Ba(m),this.zBc=null !== (r=l.WJ) && void 0 !== r?r:this.Z.config.WJ,this.Z.t7=!0,this.open()):(this.HC=n.I.dh,this.zka=this.Z.t7=!1,this.Z.events.$l("requestIssued",this.v0));};k.prototype.open=function(){var l,m;l=this;if(this.Z.t7 && !this.zka){m=[];m[f.default.Vp.U]=new g.default(this.Z.config,f.default.Vp.U);m[f.default.Vp.X]=new g.default(this.Z.config,f.default.Vp.X);m[f.default.Vp.Ca]=new g.default(this.Z.config,f.default.Vp.Ca);this.L1a=m;this.zka=!0;this.Z.events.on("openComplete",function(){return l.BFb();});this.BFb();this.Z.events.on("requestIssued",this.v0);}};k.prototype.BFb=function(){this.Z.events.emit("aseReportEnabled",{type:"asereportenabled"});};k.prototype.v0=function(l){l.result && l.streamList && (this.L1a[l.mediaType].add(l.result,l.streamList),++this.zOb >= this.zBc && this.events.emit("collectionRequested"));};k.prototype.Hsc=function(){var l;l=(0,c.flatten)(this.L1a.map(function(m){return m.get();}).filter(function(m){return void 0 !== m;}));this.L1a.forEach(function(m){return m.reset(!0);});this.zOb=0;return l;};k.prototype.Se=function(l){var m,p;m=l.Ii;p=l.ecc;l=l.mAb || p || m === e.Lc.Jj;return this.Z.t7 && this.zka && l && (l=this.Hsc()) && l.length?{WM:!0,event:{type:"asereport",strmsel:l}}:{WM:!1};};return k;})();b.q5a=a;},36414:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.I6a=void 0;d=a(35779);n=a(48170);c=a(91967);t=(function(){function f(g,e){this.GRc=g;this.qj=e;}Object.defineProperties(f.prototype,{Zl:{get:function(){return ("cache-").concat(this.GRc);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{dc:{get:function(){return this.Zl;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{enabled:{get:function(){return n.l;},enumerable:!1,configurable:!0}});f.prototype.Bh=function(g){var e,h,k;e=g.Ii;g=g.xs;if(e === c.Lc.hm || e === c.Lc.gr || e === c.Lc.Jj || void 0 === e && void 0 === g){h=(0,d.Tvb)(this.qj);e=Object.keys(h).filter(function(l){return h[l].isEnabled;});if(e.length){k={};e.forEach(function(l){k[l]={hit:h[l].BX,idx:h[l].fma};});return {C5c:k};}}};return f;})();b.I6a=t;},67181:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.L6a=void 0;d=a(91176);n=a(65161);c=a(89527);f=a(91967);t=(function(){function g(e,h,k){this.la=e;this.Uh=h;this.config=k;this.dc="CdnReporter";}Object.defineProperties(g.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});g.prototype.Bh=function(e){var h,k,l;h=this;k=e.Ii;l=e.xs;e={};(l === f.Td.Lv || l === f.Td.zR || l === f.Td.pH || l === f.Td.kM || l === f.Td.Du || l === f.Td.Kp) && (l=this.d$()) && (e.cdnidinfo={audio:{streaming_cdn_id:l.COb,streaming_cdn_name:l.ISc,presenting_cdn_id:l.KIb,presenting_cdn_name:l.oJc},video:{streaming_cdn_id:l.GOb,streaming_cdn_name:l.LSc,presenting_cdn_id:l.MIb,presenting_cdn_name:l.rJc},text:{streaming_cdn_id:l.FOb,streaming_cdn_name:l.KSc,presenting_cdn_id:l.LIb,presenting_cdn_name:l.qJc},mediaevents:{streaming_cdn_id:l.DOb,streaming_cdn_name:l.JSc}});this.config.xac && k === f.Lc.Jj && (e.cdndldist=JSON.stringify((0,d.v7b)(Object.keys(this.Uh).map(function(m){var p;p=h.Uh[m];return Object.keys(p).map(function(r){var q;q=p[r];return {cdnid:q.Th,pbcid:q.Jf,dls:Object.keys(q.$n).map(function(u){var v,w;u=q.$n[u];w=u.mediaType === n.u.X?"adlid":"dlid";return (v={tm:u.totalTime,bitrate:u.bitrate},v[w]=u.ob,v.vf=u.Pb,v);})};});}))));return e;};g.prototype.wQa=function(){var e;e=this.d$();if(e)return {d8:{audio:{Sea:e.COb,Jua:e.KIb},video:{Sea:e.GOb,Jua:e.MIb},v2:{Sea:e.FOb,Jua:e.LIb},$Db:{Sea:e.DOb}}};};g.prototype.d$=function(){var e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O;K=this.la.player;if(K.Vd){M=K.nB;P=M.M;I=P.Vi;O=null === (h=null === (e=M.je(n.u.X)) || void 0 === e?void 0:e.il) || void 0 === h?void 0:h.Ab;e=null === (l=null === (k=M.je(n.u.U)) || void 0 === k?void 0:k.il) || void 0 === l?void 0:l.Ab;k=null === (p=null === (m=M.je(n.u.Ca)) || void 0 === m?void 0:m.il) || void 0 === p?void 0:p.Ab;m=null === (q=null === (r=P.di) || void 0 === r?void 0:r.Rs) || void 0 === q?void 0:q.BL;r=null === (w=null === (v=null === (u=K.ww.get(n.u.X)) || void 0 === u?void 0:u.gZ(c.gV)) || void 0 === v?void 0:v.F$()) || void 0 === w?void 0:w.dd;u=null === (A=null === (y=null === (x=K.ww.get(n.u.U)) || void 0 === x?void 0:x.gZ(c.gV)) || void 0 === y?void 0:y.F$()) || void 0 === A?void 0:A.dd;x=null === (C=null === (B=null === (z=K.ww.get(n.u.Ca)) || void 0 === z?void 0:z.gZ(c.gV)) || void 0 === B?void 0:B.F$()) || void 0 === C?void 0:C.dd;return {COb:O,ISc:O?null === (D=null === I || void 0 === I?void 0:I.YG(O)) || void 0 === D?void 0:D.name:void 0,KIb:r,oJc:r?null === (F=null === I || void 0 === I?void 0:I.YG(r)) || void 0 === F?void 0:F.name:void 0,GOb:e,LSc:e?null === (H=null === I || void 0 === I?void 0:I.YG(e)) || void 0 === H?void 0:H.name:void 0,MIb:u,rJc:u?null === (E=null === I || void 0 === I?void 0:I.YG(u)) || void 0 === E?void 0:E.name:void 0,FOb:k,KSc:k?null === (G=null === I || void 0 === I?void 0:I.YG(k)) || void 0 === G?void 0:G.name:void 0,LIb:x,qJc:x?null === (J=null === I || void 0 === I?void 0:I.YG(x)) || void 0 === J?void 0:J.name:void 0,DOb:m,JSc:m?null === (L=null === I || void 0 === I?void 0:I.YG(m)) || void 0 === L?void 0:L.name:void 0};}};return g;})();b.L6a=t;},5479:function(t,b,a){var n,c;function d(f,g){return g.D0?(f=g.WVa(f)) && d(f,g.D0):f;}Object.defineProperties(b,{__esModule:{value:!0}});b.f7a=void 0;n=a(79048);c=a(91967);t=(function(){function f(g){this.OC=g;this.dc="content-playgraph";this.enabled=!0;}f.prototype.Bh=function(g){var e,h,k,l,m,p,r,q;k=g.Ii;g=g.xs;if(k === c.Lc.hm || k === c.Lc.gr || k === c.Lc.Jj || g === c.Td.Du || g === c.Td.pH || void 0 === k && void 0 === g){k=this.OC;l=k.Da.wR || k.Da;k=l.player.Vd?l.player.Yg:l.Sx?l.gm:void 0;m=g=void 0;p=void 0;if(k){r=d(k,l.Jb);q=l.Z.ba[k.L];l=r?l.Jb.JH.Z.ba[r.L]:q;m=null !== (e=l.type) && void 0 !== e?e:n.Gd.content;l && l.wp && l.J !== l.wp && (g=l.J,m=l.type || "content",p=r.offset.G + l.Ua);l && (null === l || void 0 === l?void 0:l.J) != q.J && (g=q.J,m=null !== (h=q.type) && void 0 !== h?h:m,p=k.offset.G + q.Ua);"adBreak" === q.type && (m=q.type);}return {contentPlaygraph:this.OC.OC,auxMid:g,auxMidType:m,auxOffsetms:p};}};return f;})();b.f7a=t;},61996:function(t,b,a){var n,c,f,g;function d(e,h,k){var l,m,q;h=n.__assign({},null === (m=null === e || void 0 === e?void 0:e.context) || void 0 === m?void 0:m.call(e,{TFb:h,Km:k}));if((null === e || void 0 === e?0:e.Km) && k)if(!0 === e.Km)h.args=k;else {m={};h.args=m;try{for(var p=n.__values(e.Km),r=p.next();!r.done;r=p.next()){q=r.value;m[q]=k[q];}}catch(v){var u;u={error:v};}finally{try{r && !r.done && (l=p.return) && l.call(p);}finally{if(u)throw u.error;}}}return h;}Object.defineProperties(b,{__esModule:{value:!0}});b.zm=b.sSa=b.gb=void 0;n=a(22970);c=a(66164);f=a(91176);g=a(48170);b.gb=function(e){return function(h,k,l){var m;m=l.value;l.value=function(){var p,r,q,u,v,w;r=(0,b.sSa)(this);if(r)(q=d(e,this,arguments),u=null !== (p=null === e || void 0 === e?void 0:e.methodName) && void 0 !== p?p:String(k),v=r.j7(u,q,null === e || void 0 === e?void 0:e.Re,null === e || void 0 === e?void 0:e.r9c));p=null === r || void 0 === r?void 0:r.INa;r && (r.INa=v);try{w=null === m || void 0 === m?void 0:m.apply(this,arguments);(0,f.wUa)(w) && (w=w.then(function(y){v && (null === e || void 0 === e?0:e.return) && (v.data.resolve=y);return y;},function(y){v && (v.data.reject=("").concat(y));return Promise.reject(y);}));return w;}catch(y){var x;x=y;throw y;}finally{r && (r.INa=p);v && (v.data || (v.data={}),x?(v.data.error=("").concat(x),null === r || void 0 === r?void 0:r.Dcc(v)):(null === e || void 0 === e?0:e.return) && !(0,f.wUa)(w) && (v.data.lRet=w));}};};};b.sSa=function(e){if(null === e || void 0 === e?0:e.PHa)return e.PHa;};t=(function(){function e(h){this.ew=[];this.ika=!1;this.DIa={};this.Bb=n.__assign({xg:10},h);Object.defineProperties(h.qj,{PHa:{enumerable:!1,value:this,configurable:!0}});}Object.defineProperties(e.prototype,{source:{get:function(){return this.Bb.source;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{enabled:{get:function(){return !this.ika;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{cyc:{get:function(){return n.__spreadArray([],n.__read(this.ew),!1);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Guc:{get:function(){return this.DIa;},enumerable:!1,configurable:!0}});e.prototype.ug=function(h){var k,l,m;if(!this.ika){l=(0,b.sSa)(this.Bb.qj);m=null === l || void 0 === l?void 0:l.INa;l && (null === (k=l.Bb.console) || void 0 === k?void 0:k.trace(("Adding additional item to ").concat(null === m || void 0 === m?void 0:m.methodName),h));m && (m.data=n.__assign(n.__assign({},m.data),h));}};e.prototype.j7=function(h,k,l,m){var p,r,q,u;if(!this.ika){q=!1;u=null === (r=(p=this.Bb).Vlb) || void 0 === r?void 0:r.call(p,this.Bb.qj);p=d({},this.Bb.qj);k=n.__assign(n.__assign(n.__assign({},u),p),k);u=0 < Object.keys(k).length;k={methodName:h,data:u?k:void 0,time:c.platform.time.ha()};m && this.DIa[h]++;l && this.ew.length && (l=this.ew[this.ew.length - 1],l.methodName === h && (l.data=l.data || ({}),l.data.dedup=l.data.dedup || ({hitCount:1}),l.data.dedup.hitCount++,l.data.dedup.lJournal=k,q=!0));this.Ecc(k);q || this.ew.push(k);this.ew.length > this.Bb.xg && this.ew.shift();return k;}};e.prototype.Ecc=function(h){var k;g.l && (null === (k=this.Bb.console) || void 0 === k?void 0:k.trace(("").concat(this.Bb.source,"::").concat(h.methodName),h.data));"object" === typeof __ASE_DEVTOOLS_EXTENSION__ && __ASE_DEVTOOLS_EXTENSION__.register(this.Bb,h);};e.prototype.Dcc=function(h){var k;g.l && (null === (k=this.Bb.console) || void 0 === k?void 0:k.error(("").concat(this.Bb.source,"::").concat(h.methodName),h.data));};e.prototype.Ka=function(){Object.defineProperties(this.Bb.qj,{PHa:{enumerable:!1,value:null,configurable:!0}});this.ika=!0;this.clear();};e.prototype.clear=function(){this.ew=[];this.DIa={};};return e;})();b.zm=t;},13580:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.x8a=void 0;d=a(65161);n=a(91967);t=(function(){function c(f){this.mxb=f;}Object.defineProperties(c.prototype,{dc:{get:function(){return "EllaReporter";},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});c.prototype.Bh=function(f){var g,e;if(f.Ii === n.Lc.Jj){f={};g=this.mxb(d.u.X);e=this.mxb(d.u.U);g && (g=this.Avb(g,d.u.X)) && (f.e5c=g);e && (e=this.Avb(e,d.u.U)) && (f.Eed=e);return 0 < Object.keys(f).length?f:void 0;}};c.prototype.Avb=function(f,g){var e;if((f=f.mwb()) && (0 !== f.Kw || 0 !== f.yfa)){e=f.N7.map(function(h){var k;k={bitrate:h.bitrate,E2a:h.duration};g === d.u.U?k.X6c=h.Sa:k.l7=h.Sa;return k;});return {duration:f.Kw,ecd:f.yfa,Oad:f.xfa,h7c:f.wfa,t5c:e};}};return c;})();b.x8a=t;},7470:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.C8a=void 0;d=a(91967);t=(function(){function n(c){this.bd=c;}Object.defineProperties(n.prototype,{dc:{get:function(){return "EndplayFieldsReporter";},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});n.prototype.Bh=function(c){var f;if(c.Ii === d.Lc.Jj && this.bd){c={};f=this.bd.get();f && f.avtp && f.avtp.Fa && (c.avtp=f.avtp.Fa,c.dltm=f.avtp.wOa);f && f.initialThroughput && f.initialThroughput.Fa && (c.initial_avtp=f.initialThroughput.Fa);f && f.cdnavtp && (c.cdnavtp=f.cdnavtp,c.activecdnavtp=f.activecdnavtp);if(f=this.bd.IRa())(f.bytesRequestedPacingVideo && (c.bytesRequestedPacingVideo=f.bytesRequestedPacingVideo,c.estimatedBytesPacedVideo=f.estimatedBytesPacedVideo,c.bytestotalVideo=f.bytestotalVideo,c.pacedAvtpVideo=f.pacedAvtpVideo),f.bytesRequestedPacingAudio && (c.bytesRequestedPacingAudio=f.bytesRequestedPacingAudio,c.estimatedBytesPacedAudio=f.estimatedBytesPacedAudio,c.bytestotalAudio=f.bytestotalAudio,c.pacedAvtpAudio=f.pacedAvtpAudio),f.pacedAvtp && (c.pacedAvtp=f.pacedAvtp));this.bd.flush();if(f=this.bd.aFb)for(var g in f)f.hasOwnProperty(g) && (c["ne" + g]=Number(f[g]).toFixed(6));return c;}};return n;})();b.C8a=t;},8478:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.E8a=void 0;d=a(97967);n=a(91967);t=(function(){function c(f){this.Yna=f;this.Zl="engine";this.enabled=!0;}Object.defineProperties(c.prototype,{dc:{get:function(){return this.Zl;},enumerable:!1,configurable:!0}});c.prototype.Bh=function(f){var g;g=f.Ii;f=f.xs;if(g === n.Lc.hm || g === n.Lc.gr || g === n.Lc.Jj || void 0 === g && void 0 === f)return (g=this.Yna.pIc.map(function(e){var h;h=e.Z;return {id:h.id,weight:h.weight,relativeWeight:e.tda};}),g={prefetcher:this.Yna.mB.getStats(),playgraphs:g,viewables:this.Yna.oXc,players:this.Yna.nIc.length},d.hDa.instance && (g.mfCache=d.hDa.instance.SVa.getStats()),g);};return c;})();b.E8a=t;},75462:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.sab=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(66164);g=a(65161);e=a(60028);t=(function(){function h(k,l,m,p,r,q){this.Z=k;this.wf=l;this.Rh=p;this.sj=r;this.TA="liveadbreak";this.HC=c.I.dh;this.events=new n.EventEmitter();this.g8=e.B5.kja;this.hla=[];this.zC=new Map();this.console=(0,c.Df)(f.platform,q,"LiveAdBreakGenerationReporter");m.addListener("adBreakEvent",this.JEc.bind(this));m.addListener("adEvent",this.kXa.bind(this));k.events.addListener("streamSelected",this.QFc.bind(this));k.events.addListener("locationSelected",this.kFc.bind(this));}h.prototype.QFc=function(k){var l,m;l=Number(k.manifest.R);m={};this.zC.has(l) && (m=this.zC.get(l));switch(k.mediaType){case g.u.X:m.l7 || (m.l7=new Set());m.l7.add(Number(k.streamId));break;case g.u.U:(m.KU || (m.KU=new Set()),m.KU.add(Number(k.streamId)));}this.zC.set(l,m);!1;};h.prototype.kFc=function(k){var l,m;l=this.sj.SQ(k.L);if(l){!1;m=l.YYa;if(!m.qL && (l=l.Af.Kb[m.OJ])){l=l.id;m={L:k.segmentId};this.zC.has(l) && (m=this.zC.get(l),m.L=k.segmentId);switch(k.wad){case "audio":void 0 === m.Rub && (m.Rub=k.serverid);break;case "video":void 0 === m.$ub && (m.$ub=k.serverid);}this.zC.set(l,m);!1;}}};h.prototype.kXa=function(k){var l,m,p,r,q,u,v;if("adStart" === k.event){m=Number(k.S.R);p=this.zC.get(m);if(p && p.L){r=0;q=0;u=0;v=0;this.Z.Ya.dn(p.L).forEach(function(w){var x,y,A,z;w=w.WQ();r+=null !== (x=w.uP) && void 0 !== x?x:0;q+=null !== (y=w.JU) && void 0 !== y?y:0;u+=null !== (A=w.LJ) && void 0 !== A?A:0;v+=null !== (z=w.xN) && void 0 !== z?z:0;});p.uP=r;p.JU=q;p.LJ=u;p.xN=v;this.zC.set(m,p);!1;}}else if("adComplete" === k.event || "adStop" === k.event){m=Number(k.S.R);(p=this.zC.get(m))?this.zC.delete(m):!1;m=this.Z.player;k={liveAdInsertionType:k.Gt,auxMid:k.S.R,duration:k.hB.total,auxSoffms:f.platform.time.ha() - m.Ik,auxMoffms:k.RYa.G,auxPlaybackcontextid:k.S.Xd,pbcid:null === (l=k.S.Xz) || void 0 === l?void 0:l.Jf,firstAudioCdnId:null === p || void 0 === p?void 0:p.Rub,firstVideoCdnId:null === p || void 0 === p?void 0:p.$ub,abuflmsec:null === p || void 0 === p?void 0:p.uP,vbuflmsec:null === p || void 0 === p?void 0:p.JU,abuflbytes:null === p || void 0 === p?void 0:p.LJ,vbuflbytes:null === p || void 0 === p?void 0:p.xN};if(null === p || void 0 === p?0:p.l7)k.adlid=d.__spreadArray([],d.__read(p.l7),!1);if(null === p || void 0 === p?0:p.KU)k.vdlid=d.__spreadArray([],d.__read(p.KU),!1);this.hla.push(k);!1;}};h.prototype.JEc=function(k){var l,m;if("adBreakComplete" === k.event || "adBreakStop" === k.event){m=this.wf.get(k.IRb);m && m.Eb && ((m=this.Rh.ioc(m.J,k.pv))?(this.ru={adBreakTriggerId:k.eb,adBreakLocationMs:k.pv,wasPrefetched:"daiPrefetch" === m.source,wasHydrated:"hydration" === m.source,lastEvent:k.event,isAutoskip:m.Un,plannedAdBreakDuration:m.Kb.reduce(function(p,r){return p.add(r.endTime.ea(r.startTime));},c.I.ia).G,adBreakDurationSCTE:null === (l=m.Gk) || void 0 === l?void 0:l.G,scteCancellationTriggered:m.m2a,fallbackAuxMidType:"content",plannedAdCount:m.Kb.length},k.Zm && (this.ru.embeddedReason=k.Zm),0 < this.hla.length && (this.ru.adsRendered=this.hla,this.hla=[]),!1,this.events.emit("collectionRequested")):this.console.warn("Missing adBreakData for impression event",{graphPosition:k.$h,adBreakLocationMs:k.pv}));}};h.prototype.Se=function(){var k;if(this.ru){k=this.ru;this.ru=void 0;return {WM:!0,event:d.__assign({type:"logblob",TA:"liveadbreak"},k)};}return {WM:!1};};return h;})();b.sab=t;},10940:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.tab=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(95407);g=a(60028);t=(function(){function e(h,k,l){this.Z=h;this.TA="liveadbreakprep";this.HC=c.I.dh;this.events=new n.EventEmitter();this.g8=g.B5.kja;k.addListener("adBreakHydrated",this.sta.bind(this));k.addListener("adBreakHydrationFailed",this.YFb.bind(this));k.addListener("adBreakHydrationSkipped",this.YFb.bind(this));l.addListener("daiPrefetchComplete",this.YEc.bind(this));l.addListener("daiPrefetchFailed",this.ZEc.bind(this));h.events.addListener("branchViewableReceived",this.TEc.bind(this));h.events.addListener("branchViewableFailed",this.SEc.bind(this));}e.prototype.LZ=function(h,k){var l,m;m=this.Z.player.Ik;return {requestTime:(null === k || void 0 === k?0:k.tB)?null === (l=h.Oc) || void 0 === l?void 0:l.CYa(k.tB):void 0,requestSoffms:(null === k || void 0 === k?0:k.tB)?k.tB - m:void 0,responseSoffms:(null === k || void 0 === k?0:k.vB)?k.vB - m:void 0};};e.prototype.TEc=function(h){var k,l,m,p,r,q,u,v,w,x;if(h.f8b && h.M.Wj && h.M.Wj.Eb && (null === (l=null === (k=h.M.Wj.S) || void 0 === k?void 0:k.Hd) || void 0 === l?0:l.Hj)){k=h.x_a;q=h.dw;l=h.K;l=null === (p=null === (m=this.Z.Cc) || void 0 === m?void 0:m.sj) || void 0 === p?void 0:p.SQ(l.id);l=(null === l || void 0 === l?void 0:l.Af) || ({});m=l.eb;p=l.Un;l=l.xj;u=q || ({});q=u.iga;v=u.zP;w=u.o2;x=u.HB;u=u.tE;this.ru=d.__assign(d.__assign({prep:"auxManifest",auxMid:h.M.J.toString(),auxPlaybackcontextid:null === (r=h.M.S) || void 0 === r?void 0:r.Xd},this.LZ(h.M.Wj,k)),{windowDurationMs:q,anchorTime:v,targetOffsetMs:w,targetTime:x,timeRandomizationWasCalculated:u,adBreakTriggerId:m,autoskip:p,adBreakLocationMs:l});this.events.emit("collectionRequested");}};e.prototype.SEc=function(h){var k,l,m,p,r,q,u,v,w,x,y;if(h.Wj && h.Wj.Eb && (null === (l=null === (k=h.Wj.S) || void 0 === k?void 0:k.Hd) || void 0 === l?0:l.Hj)){k=h.x_a;q=h.dw;u=h.K;l=h.error;u=null === (p=null === (m=this.Z.Cc) || void 0 === m?void 0:m.sj) || void 0 === p?void 0:p.SQ(u.id);u=(null === u || void 0 === u?void 0:u.Af) || ({});m=u.eb;p=u.Un;u=u.xj;v=q || ({});q=v.iga;w=v.zP;x=v.o2;y=v.HB;v=v.tE;l=null !== (r=f.gC.n$(l)) && void 0 !== r?r:"failed";this.ru=d.__assign(d.__assign({prep:"auxManifest",auxMid:h.J.toString()},this.LZ(h.Wj,k)),{windowDurationMs:q,anchorTime:w,targetOffsetMs:x,targetTime:y,timeRandomizationWasCalculated:v,adBreakTriggerId:m,autoskip:p,adBreakLocationMs:u,errorCode:l});this.events.emit("collectionRequested");}};e.prototype.sta=function(h){var k,l,m,p,r,q,u,v,w,x;if(h.Nm.Eb && null !== (k=h.Nm.S.Hd) && void 0 !== k && k.Hj){k=h.eb;l=h.b7;m=h.dw || ({});p=m.psb;r=m.qsb;q=m.iga;u=m.o2;v=m.HB;m=m.tE;w=l.Un;l=l.Kb;x=h.rN.xj;this.ru=d.__assign(d.__assign({prep:"hydration"},this.LZ(h.Nm,h.uI)),{adBreakTriggerId:k,autoskip:w,adBreakLocationMs:x,adBreakDurationPlanned:null === l || void 0 === l?void 0:l.reduce(function(y,A){return y + A.fb - A.Ua;},0),distanceFromLiveEdgeMs:p,distanceToAdBreakMs:r,windowDurationMs:q,targetOffsetMs:u,targetTime:v,timeRandomizationWasCalculated:m});this.events.emit("collectionRequested");}};e.prototype.YFb=function(h){var k,l,m,p,r,q,u,v,w,x;if(h.Nm.Eb && null !== (k=h.Nm.S.Hd) && void 0 !== k && k.Hj){k=h.uI;l=h.eb;m=h.dw || ({});p=m.psb;r=m.qsb;q=m.iga;u=m.o2;v=m.HB;m=m.tE;w=h.rN.xj;x=h.errorCode;x || (x="adBreakHydrationSkipped" === h.type?"skipped":"failed");this.ru=d.__assign(d.__assign({prep:"hydration"},this.LZ(h.Nm,k)),{adBreakTriggerId:l,autoskip:void 0,adBreakLocationMs:w,errorCode:x,distanceFromLiveEdgeMs:p,distanceToAdBreakMs:r,windowDurationMs:q,targetOffsetMs:u,targetTime:v,timeRandomizationWasCalculated:m});this.events.emit("collectionRequested");}};e.prototype.YEc=function(h){var k,l,m;if(h.M.Eb){k=h.uI;l=h.dw;m=Object.keys(h.BIb.a7).filter(function(p){return "UPSERT" === h.BIb.a7[p].action;});this.ru=d.__assign(d.__assign({prep:"prefetch"},this.LZ(h.M,k)),{adBreakTriggerIds:m,windowOffsetMs:l.fya,windowDurationMs:l.uSb,presentationOffsetMs:l.Hua,anchorSource:l.pmb,anchorTime:l.zP.G,targetOffsetMs:l.HB - l.fya,targetTime:l.zP.G + l.Hua + l.HB,timeRandomizationWasCalculated:l.tE});this.events.emit("collectionRequested");}};e.prototype.ZEc=function(h){var k,l,m,p;if(h.M.Eb){l=h.uI;m=h.dw;p=null !== (k=h.errorCode) && void 0 !== k?k:"failed";this.ru=d.__assign(d.__assign({prep:"prefetch"},this.LZ(h.M,l)),{adBreakTriggerIds:void 0,windowOffsetMs:m.fya,windowDurationMs:m.uSb,presentationOffsetMs:m.Hua,anchorSource:m.pmb,anchorTime:m.zP.G,targetOffsetMs:m.HB - m.fya,targetTime:m.zP.G + m.Hua + m.HB,timeRandomizationWasCalculated:m.tE,errorCode:p});this.events.emit("collectionRequested");}};e.prototype.Se=function(){var h;if(this.ru){h=this.ru;this.ru=void 0;return {WM:!0,event:d.__assign({type:"logblob",TA:"liveadbreakprep"},h)};}return {WM:!1};};return e;})();b.tab=t;},29688:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.Jab=void 0;d=a(22970);n=a(90745);c=a(91176);f=a(65161);g=a(60028);e=a(91967);t=(function(){function h(k){this.Z=k;this.Nv="liveReport";this.TA="livereport";this.HC=c.I.dh;this.events=new n.EventEmitter();this.g8=g.B5.kja;this.vF=!1;this.trace=[];this.OOa=[];this.KPb=1;0 < k.config.ECb && 0 < k.config.tVa && (this.HC=c.I.Ba(k.config.tVa),this.KPb=Math.max(Math.floor(k.config.ECb / k.config.tVa),1),this.vF=!0);}h.prototype.bcc=function(){var k,l,m,p;l=this.Z.player;if(l.Vd){m=l.nB;p=m.M;if(p=p.Eb?p:(null === (k=p.Wj) || void 0 === k?0:k.Eb)?p.Wj:void 0){if(((0,c.assert)(p.Oc,"Expected live viewable with presenting service"),k=p.Oc.u$(!0).G,l=this.Z.tn(l.Ld)))(l=this.Z.ns(l).Pa,p=p.Wf,k+=l.G,l=this.Z.VQ(),this.trace.push([p,k,l.totalabuflmsecs,l.totalvbuflmsecs]),this.acc(m));}else this.vF=!1;}};h.prototype.acc=function(k){var l,m,p,r,q;try{l=k.je(f.u.U);if(l){m=l.TQa();if(m){p=k.zh;if(null !== p && void 0 !== p && p.KOa){r=p.Hx.gl();q=m.CL;this.OOa.push([r.toFixed(2),q.fE,q.DD,q.KH.toFixed(3),q.TH.toFixed(3)]);}}}}catch(u){}};h.prototype.Se=function(k){var l,m,p;l=k.mAb;k=k.Ii;this.vF && (l || k === e.Lc.hm) && this.bcc();if(this.trace.length === this.KPb || 0 < this.trace.length && k === e.Lc.Jj){l=this.trace;k=this.OOa;m=d.__read(l[l.length - 1],2);p=m[0];m=m[1];this.trace=[];this.OOa=[];return {WM:!0,event:{type:"livereport",samplinginterval:this.HC.G,trace:l,ellastat:k,encodingpipelinetime:p,devicepts:m}};}return {WM:!1};};return h;})();b.Jab=t;},27288:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperties(b,{__esModule:{value:!0}});b.Kab=void 0;t=a(22970);d=a(26388);n=a(91176);c=a(6832);f=a(71460);g=t.__importDefault(a(40497));e=a(8149);h=a(13550);k=a(65161);l=a(91967);a=(function(){function m(p,r){this.Ur=p;this.la=r;this.enabled=!0;this.uY={};this.mN={};r.events.on("liveMissingSegment",this.lLc.bind(this));}m.prototype.lLc=function(p){var r,q;p=p.mediaType;p=(0,k.AH)(p);(r=this.uY)[p] || (r[p]=0);(q=this.mN)[p] || (q[p]=0);this.uY[p]+=1;this.mN[p]+=1;};Object.defineProperties(m.prototype,{dc:{get:function(){return "live-reporter";},enumerable:!1,configurable:!0}});m.prototype.Bh=function(p){var r,q,u,v,w,x,y,A,z,B,C;p=p.xs;if(p === l.Td.Kp || p === l.Td.zR || p === l.Td.Lv || p === l.Td.Du || p === l.Td.Oea || p === l.Td.hG || p === l.Td.zda || p === l.Td.pH){x=this.la.player;if(x.Vd){y=x.nB;A=y.M;z=A.Wj || A;B=null === (r=y.je(d.u.U)) || void 0 === r?void 0:r.il;if(z.Eb && B){(0,n.assert)(z.Oc,"Expected live viewable with position service");r=z.Oc.u$(!0).G;C=this.la.tn(x.Ld);if(C){C=this.la.ns(C).Pa;r={encodingpipelinetime:z.Wf,devicepts:r + C.G};if(p === l.Td.pH){(C=null === (q=x.ww.get(d.u.U)) || void 0 === q?void 0:q.gZ(c.lja)) && (r.vbitrate=null === (u=C.F$()) || void 0 === u?void 0:u.stream.bitrate);(q=null === (v=x.ww.get(d.u.X)) || void 0 === v?void 0:v.gZ(c.lja)) && (r.abitrate=null === (w=q.F$()) || void 0 === w?void 0:w.stream.bitrate);0 < Object.keys(this.mN).length && (r.liveMissingFragments=this.mN);0 < Object.keys(this.uY).length && (r.missingFragmentsDelta=this.uY,this.uY={});if(v=y.je(d.u.U))(v=v.track,r.minvencodingbitrate=v.vWa,r.maxvencodingbitrate=v.dWa);r.edgecushion=z.Oc.wCb;}p === l.Td.Kp && (0,e.yk)(B) && (r.presentationtimeoffset=B.Fk.G);if(p === l.Td.Kp || p === l.Td.Du)(v=g.default.instance().bSa(),u=this.Ur.uRa(A),w=this.la.Owb(),q=new f.V9a(v,this.la.config,this.la.console),B=(0,h.wwa)(B.M,u.VR),r.presentationdelay=w,r.sessionStats=v,r.ishighandstable=q.Rwc(),r.isSlowBufferFilling=B,r.requestOffsetMs=z.Oc.CKb,r.edgecushion=z.Oc.wCb);if(p === l.Td.Kp || p === l.Td.Du || p === l.Td.pH)(z=this.la.Pwb(),r.targetbufferduration=z);p === l.Td.Lv && (r.livePostplayEvents=A.Gzc,0 < Object.keys(this.mN).length && (r.missingFragments=this.mN,this.mN={}));r.usingElla=this.lwc();return r;}}}}};m.prototype.lwc=function(){var p,r;p=this.je(d.u.U);r=this.je(d.u.X);return (null === r || void 0 === r?void 0:r.I3a) || (null === p || void 0 === p?void 0:p.I3a) || !1;};m.prototype.je=function(p){var r,q;return null === (q=(r=this.la).getPipelineForPresentingBranch) || void 0 === q?void 0:q.call(r,p);};return m;})();b.Kab=a;},60028:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Zab=b.B5=void 0;d=a(22970);n=a(90745);c=a(91967);(function(g){g[g.h7a=1]="Creation";g[g.kja=2]="StartPlayback";})(f || (b.B5=f={}));t=(function(){function g(e,h,k){this.mc=e;this.console=h;this.events=k;this.iE={};this.Qj=new n.gf();}g.prototype.Sc=function(e){var h;h={wT:e,QLa:void 0};this.iE[e.TA]=h;e.g8 === f.h7a && this.Y_a(h);this.Qj.on(e.events,"collectionRequested",this.XEc.bind(this,h));this.events.on("asereportconfigoverrides",this.zVc.bind(this));};g.prototype.Ka=function(){this.Qj.clear();};g.prototype.Tyc=function(e){var h,k;h=this;k={Ii:e};Object.keys(this.iE).forEach(function(l){l=h.iE[l];h.W2a(l.wT,k);e === c.Lc.hm && l.wT.g8 === f.kja && h.Y_a(l);});};g.prototype.XEc=function(e){var h;this.W2a(e.wT,{ecc:!0});null === (h=e.QLa) || void 0 === h?void 0:h.cd();};g.prototype.Y_a=function(e){var h,k,l,m;h=this;l=e.wT;m=this.mc.Oma(function(){h.W2a(l,{mAb:!0});},l.HC,l.TA);null === (k=e.QLa) || void 0 === k?void 0:k.Ka();e.QLa=m;};g.prototype.W2a=function(e,h){var k;try{k=e.Se(h);k.WM && (e.Nv && this.events.emit(e.Nv,k.event),this.events.emit("logblob",d.__assign({TA:e.TA},k.event)));}catch(l){this.console.error(("Error generating event for ").concat(e.TA),l);}};g.prototype.zVc=function(e){var h,k,l;h=this.iE.aseReport;if(void 0 !== h){k=h.wT;l=k.HC.G;k.gNb(e);l !== k.HC.G && this.Y_a(h);}};return g;})();b.Zab=t;},12548:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.wcb=void 0;d=a(22970);t=(function(){function n(){this.po={nw:0,closed:0,Zc:0,events:[]};}Object.defineProperties(n.prototype,{dc:{get:function(){return "NetflixMediaEventsDataCollector";},enumerable:!1,configurable:!0}});n.prototype.Ltc=function(c){this.po.nw++;this.po.events.push({id:c.id,Ej:c.Ej,action:"opened",timestamp:c.timestamp,duration:c.duration,YY:c.YY,w2a:c.w2a});};n.prototype.Ktc=function(c){this.po.closed++;this.po.events.push({id:c.id,Ej:c.Ej,action:"closed",timestamp:c.timestamp,YY:c.YY});};n.prototype.Jtc=function(c){this.po.Zc++;this.po.events.push({id:c.id,Ej:c.Ej,action:"cancelled",timestamp:c.timestamp,duration:c.sWc});};n.prototype.ooc=function(){if(this.guc())return {nw:this.po.nw,closed:this.po.closed,Zc:this.po.Zc,events:d.__spreadArray([],d.__read(this.po.events),!1)};};n.prototype.guc=function(){return 0 < this.po.nw || 0 < this.po.closed || 0 < this.po.Zc;};n.prototype.reset=function(){this.po={nw:0,closed:0,Zc:0,events:[]};};return n;})();b.wcb=t;},63026:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.xcb=void 0;d=a(91967);t=(function(){function n(c){this.Zn=c;}Object.defineProperties(n.prototype,{dc:{get:function(){return "NetflixMediaEventsReporter";},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{enabled:{get:function(){return !!this.Zn;},enumerable:!1,configurable:!0}});n.prototype.Bh=function(c){return c.Ii === d.Lc.Jj && this.Zn && (c=this.Zn.ooc())?{netflixMediaEvents:{opened:c.nw,closed:c.closed,cancelled:c.Zc,events:c.events.map(function(f){return {id:f.id,applicationScope:f.Ej,action:f.action,timestamp:f.timestamp,duration:f.duration,eventDelay:f.YY,timeSinceTriggeredMs:f.w2a};})}}:{};};n.prototype.Ka=function(){};return n;})();b.xcb=t;},63172:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.ceb=void 0;d=a(65161);n=a(95324);c=a(91967);t=(function(){function f(g){this.je=g;}Object.defineProperties(f.prototype,{dc:{get:function(){return "PipelineReporter";},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});f.prototype.Bh=function(g){var e,h,k;g=g.Ii;if(g === c.Lc.gr || g === c.Lc.Jj){g={};e=this.je(d.u.U);h=this.je(d.u.X);k=this.je(d.u.Ca);e && (g.videoPipelineSummary=this.$1a(e));h && (g.audioPipelineSummary=this.$1a(h));k && (g.textPipelineSummary=this.$1a(k));return g;}};f.prototype.$1a=function(g){var e,h,k,l,m;m=g.ee.Qa;m={actualStartPlayerTimestamp:null === (e=m.Sb) || void 0 === e?void 0:e.G,actualPartialPlayerTimestamp:m.xHb,completePlayerTimestamp:null === (h=g.pk) || void 0 === h?void 0:h.G,segmentId:g.L,contentStartMs:null === (k=g.qa) || void 0 === k?void 0:k.G,contentEndMs:null === (l=g.ta) || void 0 === l?void 0:l.G,streamingPlayerMs:g.pI.G,isStreamable:g.cy(),isNormalized:g.Uf(),isDoneStreaming:g.op(),trackNeedsHeaderRequest:g.track.hca,completedRequests:m.Gpb,activeRequests:g.ee.Hm,unsentRequests:g.ee.sN,bytes:{current:m.ma,received:m.pda,partial:m.qw,completed:m.Dma,unsent:m.sVc}};g instanceof n.Rha && (g.CCb && (m.liveMissingFragments=g.CCb),g=g.y0a,m.serverTimeDeltaUpdateStat={max:g.max,min:g.min,trace:g.trace,serverTime:g.fwa,count:g.count});return m;};return f;})();b.ceb=t;},46759:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.Eeb=void 0;d=a(22970);n=a(48170);c=a(69575);f=a(91967);g=a(5653);t=(function(){function e(h,k){var l;l=this;this.SYa=h;this.la=k;this.mIb=new c.Vg();k.events.on("branchesReevaluated",function(){l.mIb.push(h.size);});}Object.defineProperties(e.prototype,{dc:{get:function(){return "playgraph-branch-audit";},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Zl:{get:function(){return "paudit";},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{enabled:{get:function(){return n.l;},enumerable:!1,configurable:!0}});e.prototype.Bh=function(h){var k;h=h.Ii;if(h === f.Lc.gr || h === f.Lc.Jj){k={branchCountStats:this.mIb.toJSON(),decisions:this.la.Wh.toJSON(),player:this.la.player.Xv?this.la.player.Ya.map(function(l){return l.K.id;}):[]};this.SYa.forEach(function(l,m){var p,r;r=(0,g.HQa)(l);k[m]=d.__assign({probabilities:l.hh.map(function(q){return {duration:q.duration,immediate:q.$K,seamless:q.ef};}),parent:null === (p=l.parent) || void 0 === p?void 0:p.K.id,normalized:l.Uf,hasViewable:l.Wl,headerRequested:l.Wl && l.M.Xyb},r);});return k;}};return e;})();b.Eeb=t;},14609:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Teb=void 0;d=a(22970);n=a(91967);t=(function(){function c(f){this.Nc=f;d.__assign(d.__assign({},f),{failed:!0});}Object.defineProperties(c.prototype,{dc:{get:function(){return "PrefetchFailureReporter";},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{Zl:{get:function(){return "prefetch";},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});c.prototype.Bh=function(f){if(f.Ii === n.Lc.hm)return this.Nc;};return c;})();b.Teb=t;},70764:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Veb=void 0;d=a(66164);n=a(91967);t=(function(){function c(){this.creationTime=d.platform.time.ha();this.Nc={isPrefetchItem:!0,prefetchClaimDurationMs:0,prefetchedVideoMs:0,prefetchedAudioMs:0};}c.prototype.h8b=function(f){this.Z=f;};c.prototype.cOc=function(f,g){var e;f=null === (e=this.Z) || void 0 === e?void 0:e.en(f);this.Nc={isPrefetchItem:!0,prefetchedVideoMs:f.z2,prefetchedAudioMs:f.y2,prefetchClaimDurationMs:d.platform.time.ha() - this.creationTime,prefetchRank:g};};Object.defineProperties(c,{dc:{get:function(){return "PrefetchReporter";},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{dc:{get:function(){return c.dc;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});c.prototype.Bh=function(f){if(f.Ii === n.Lc.hm)return this.Nc;};return c;})();b.Veb=t;},29739:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.eGa=void 0;d=a(22970);t=(function(){function n(c){this.Zl=c;this.dc=n.dc;this.enabled=!0;this.pMa=new Map();}n.prototype.qvc=function(c,f){this.pMa.set(c,{id:f || "",hwa:c});};n.prototype.Bh=function(c){var f;f=Array.from(this.pMa.values()).map(function(g){var e;e=g.id;g=g.hwa.Bh(c.Ii,c.xs);return [e,g];}).filter(function(g){return (g=d.__read(g,2)[1]) && Object.keys(g).length;});if(f.length)return {EMc:f.map(function(g){return {id:g[0],report:g[1]};})};};n.prototype.lKb=function(c){this.pMa.delete(c);};n.dc="wrapped-reporter";return n;})();b.eGa=t;},91967:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.Ria=b.oW=b.Td=b.Lc=b.l=void 0;d=a(22970);n=a(91176);c=a(67164);f=a(29739);b.l=!1;(function(e){e[e.hm=0]="startPlayback";e[e.Jj=1]="endPlayback";e[e.gr=2]="underflow";})(g || (b.Lc=g={}));b.Td={Kp:"startplay",CH:"midplay",Lv:"endplay",zR:"intrplay",hG:"chgstrm",kM:"playbackaborted",zda:"renderstrmswitch",pH:"livereport",CM:"repos",Du:"resumeplay",Oea:"statechanged",Y4c:"aseReport",C$c:"liveerrorrestart",transition:"transition"};b.oW={GD:"network",client:"client",S:"manifest",ANb:"oc_sc"};t=(function(){function e(h,k){this.config=h;this.console=k;this.iE=[new f.eGa("child")];}e.prototype.Sc=function(h){var k,l,m;m=d.__read((this.config.A7b || []).filter(function(p){return p.dc === h.dc;}),1)[0];(null !== (k=this.config.Pjc) && void 0 !== k?k:1) && (null !== (l=null === m || void 0 === m?void 0:m.enabled) && void 0 !== l?l:h.enabled)?this.iE.push(h):h.Ka && h.Ka();};e.prototype.bsc=function(h){return (0,n.cc)(this.iE,function(k){return k.dc === h.dc;});};e.prototype.Bh=function(h,k){var l,m,p,u,v;m={};p=[];try{for(var r=d.__values(this.iE),q=r.next();!q.done;q=r.next()){u=q.value;try{v=u.Bh({Ii:h,xs:k});v && (u.Zl?m[u.Zl]=v:m=d.__assign(d.__assign({},m),v));}catch(x){p.push(Error(("").concat(u.dc,"::").concat(x)));}}}catch(x){var w;w={error:x};}finally{try{q && !q.done && (l=r.return) && l.call(r);}finally{if(w)throw w.error;}}p.length && (m["rpt-error"]=c.j3.stringify(new c.j3("Reporting error",p)));b.l && (w=d.__read(n.Nza.stringify(m),2),l=w[0],w[1].ONa && this.console.error("Cycles found in report generation",{payload:l,Ii:h,xs:k}));return m;};e.prototype.wQa=function(){var h,k,l,m,q,u;l={};m=[];try{for(var p=d.__values(this.iE),r=p.next();!r.done;r=p.next()){q=r.value;try{u=null === (k=q.wQa) || void 0 === k?void 0:k.call(q);u && (q.Zl?l[q.Zl]=u:l=d.__assign(d.__assign({},l),u));}catch(w){m.push(Error(("").concat(q.dc,"::").concat(w)));}}}catch(w){var v;v={error:w};}finally{try{r && !r.done && (h=p.return) && h.call(p);}finally{if(v)throw v.error;}}m.length && (l["rpt-error"]=c.j3.stringify(new c.j3("Reporting error",m)));b.l && (v=d.__read(n.Nza.stringify(l),2),h=v[0],v[1].ONa && this.console.error("Cycles found in PDS report generation",{payload:h}));return l;};return e;})();b.Ria=t;},5653:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Qvb=b.lxb=b.HQa=b.Ffb=void 0;d=a(22970);n=a(48170);c=a(91967);t=(function(){function f(g){this.Fb=g;}Object.defineProperties(f.prototype,{dc:{get:function(){return f.dc;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Zl:{get:function(){return "qaudit";},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{enabled:{get:function(){return n.l;},enumerable:!1,configurable:!0}});f.prototype.Bh=function(g){var e,h,k,p;h=g.Ii;k=g.xs;g=h === c.Lc.gr;if(h === c.Lc.Jj || g || "transition" === k)if(h=this.Fb.CQa()){k={};try{for(var l=d.__values(h.dIc),m=l.next();!m.done;m=l.next()){p=m.value;k[p.mediaType]=this.TAc(p);}}catch(q){var r;r={error:q};}finally{try{m && !m.done && (e=l.return) && e.call(l);}finally{if(r)throw r.error;}}return {branchQueue:(0,b.Qvb)(h.IKc,g),playerIterator:k,driftStats:this.Fb.X3a};}};f.prototype.TAc=function(g){return null === g || void 0 === g?void 0:g.Dwb();};f.dc="queue-audit";return f;})();b.Ffb=t;b.HQa=function(f,g){var e,h;if(f){e=f.K;h={};f.pA().forEach(function(k){h[k.mediaType]=(0,b.lxb)(k,g);});return {sId:null === e || void 0 === e?void 0:e.id,cancelled:f.Zc,RM:h};}return f;};b.lxb=function(f,g){var e,h,k,l;if(f && f.ee)return (g=g?f.ee.$oc():{},d.__assign(d.__assign(d.__assign({},f.ee.Exb()),{unsentRequests:f.ee.sN,lastFragmentContentEndPts:null === (e=f.Ic) || void 0 === e?void 0:e.ta.G,trackAttributes:null === (h=f.track) || void 0 === h?void 0:h.ks(),bitrate:null === (k=f.Ic) || void 0 === k?void 0:k.bitrate,lastAppendedTimestamp:null === (l=f.FBb) || void 0 === l?void 0:l.G}),g));};b.Qvb=function(f,g){return f.map(function(e){return (0,b.HQa)(e,g);});};},650:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Ifb=void 0;d=a(91967);t=(function(){function n(c,f){this.bd=c;this.Ns=f;}Object.defineProperties(n.prototype,{dc:{get:function(){return "RequestsReporter";},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});n.prototype.Bh=function(c){var f,g;f=c.Ii;g=c.xs;c={};if(f === d.Lc.Jj || f === d.Lc.gr || void 0 === f && void 0 === g)(c.numOutstandingRequests=this.Ns.KFb,c.requestOpportunityDelayStats=this.Ns.DKb,(f=this.bd.n5b) && f.length && (c.activeRequests=JSON.stringify(f)));return c;};return n;})();b.Ifb=t;},26012:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.xGa=void 0;d=a(91967);t=(function(){function n(){this.Zl=this.dc=n.dc;this.enabled=!0;this.Tda=[];this.ZKb=0;}n.prototype.a6b=function(c){this.Tda.push(c);5 < this.Tda.length && this.Tda.shift();};n.prototype.b6b=function(){this.ZKb++;};n.prototype.Bh=function(c){var f;f=c.Ii;c=c.xs;if((f === d.Lc.hm || f === d.Lc.gr || f === d.Lc.Jj || void 0 === f && void 0 === c) && this.Tda.length)return {restarts:this.Tda.map(function(g){return {s:g.HRc,d:g.Yhc,r:g.IJb,atMs:g.RYa.G};}),restartsCompleted:this.ZKb};};n.dc="seamlessManager";return n;})();b.xGa=t;},35438:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Ngb=void 0;d=a(22970);n=a(90745);c=a(65161);f=a(91967);t=(function(){function g(e){this.la=e;this.jjb=!1;this.Kj=new n.gf();this.Kj.addListener(this.la.events,"streamSelection",this.v0.bind(this));}g.prototype.v0=function(e){this.jjb || (e.mediaType === c.u.X && void 0 === this.JTa?this.JTa=e:e.mediaType === c.u.U && void 0 === this.LTa && (this.LTa=e));};g.prototype.Ka=function(){this.LTa=this.JTa=void 0;this.Kj.clear();this.jjb=!0;};Object.defineProperties(g.prototype,{dc:{get:function(){return "StartplayFieldsReporter";},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{enabled:{get:function(){return !0;},enumerable:!1,configurable:!0}});g.prototype.Bh=function(e){var h,k,l,m,p,r,q;if(e.Ii === f.Lc.hm){r=d.__read(this.la.Qx().filter(function(u){var v,w;return !(null === (w=null === (v=u.S) || void 0 === v?void 0:v.Hd) || void 0 === w || !w.Hj);}),1)[0];e=this.LTa || this.JTa;q=null === e || void 0 === e?void 0:e.result;r={histbw:null === (k=null === (h=null === q || void 0 === q?void 0:q.yb) || void 0 === h?void 0:h.kb) || void 0 === k?void 0:k.Fa,histinitbw:null === (m=null === (l=null === q || void 0 === q?void 0:q.yb) || void 0 === l?void 0:l.Wx) || void 0 === m?void 0:m.Fa,histdiscbw:null === q || void 0 === q?void 0:q.hu,histage:null === (p=null === q || void 0 === q?void 0:q.yb) || void 0 === p?void 0:p.dX,daiSupported:!!r};h=null === e || void 0 === e?void 0:e.streamList.map(function(u){return void 0 !== u.aoa?{vmaf:u.aoa,streamIndex:u.Iw,streamId:u.Sa}:void 0;}).filter(function(u){return void 0 !== u;});0 < (null === h || void 0 === h?void 0:h.length) && (r.vmafEstimates=h);this.Ka();return r;}this.Ka();};return g;})();b.Ngb=t;},37058:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.khb=void 0;d=a(66164);n=a(90745);c=a(48170);f=a(91967);t=(function(){function g(e){this.mc=e;this.bK=[];this.reset();}Object.defineProperties(g.prototype,{dc:{get:function(){return "task-audit";},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{Zl:{get:function(){return "tsched";},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{enabled:{get:function(){return c.l;},enumerable:!1,configurable:!0}});g.prototype.reset=function(){var e,h;e=this;null === (h=this.fs) || void 0 === h?void 0:h.clear();this.fs=new n.gf();this.fs.on(this.mc,"clockChanged",function(){e.reset();e.W9("initial");});this.fs.on(this.mc,"stopping",function(){e.W9("stopping");});this.fs.on(this.mc.Ma,"clockAdjusted",function(){e.W9("clockAdjusted");});this.fs.on(this.mc.Ma,"stopStart",function(){e.W9("stopStart");});this.fs.on(this.mc.Ma,"speedChanged",function(){e.W9("speedChanged");});};g.prototype.W9=function(e){this.bK.push({reason:e,audit:this.mc.xq(),time:d.platform.time.ha()});5 < this.bK.length && this.bK.shift();};g.prototype.Bh=function(e){var h;h=e.Ii;e=e.xs;if(h === f.Lc.hm || h === f.Lc.gr || h === f.Lc.Jj || void 0 === h && void 0 === e)return this.bK;};return g;})();b.khb=t;},73036:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.lhb=void 0;d=a(48170);n=a(40666);c=a(91967);t=(function(){function f(g){var h;function e(){var k;if(g.A1){k=g.A1.Zjc();h.bK.add(k.xq());}}h=this;this.mc=g;this.bK=new Set();g.on("clockChanged",e);g.on("rootSchedulerReleasing",function(k){k.A1.Pxa && h.bK.add(k.A1.Pxa.xq());});e();}Object.defineProperties(f.prototype,{dc:{get:function(){return "task-verbose-audit";},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{Zl:{get:function(){return "tsch-verbose";},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{enabled:{get:function(){return d.l;},enumerable:!1,configurable:!0}});f.prototype.Bh=function(g){var e,h,k;if(g.Ii === c.Lc.Jj){null === (h=null === (e=this.mc) || void 0 === e?void 0:e.A1.Pxa) || void 0 === h?void 0:h.xq();this.bK.forEach(function(l){k=k?n.nW.reduce(k,l):l;});return k;}};return f;})();b.lhb=t;},54366:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.On=void 0;d=a(22970);n=a(48170);c=a(69575);f=a(91967);t=(function(){function g(e,h){this.pe=e;this.options=d.__assign({bpb:!0},h);}Object.defineProperties(g.prototype,{Zl:{get:function(){return ("trace-").concat(this.pe.source);},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{dc:{get:function(){return this.Zl;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{enabled:{get:function(){return n.l;},enumerable:!1,configurable:!0}});g.prototype.Bh=function(e){var h,k,l;h=e.Ii;k=e.xs;if(h === f.Lc.Jj || h === f.Lc.gr){e=(0,c.fhc)(this.pe.cyc);l=this.pe.Guc;h === f.Lc.Jj && this.options.bpb && "liveerrorrestart" !== k && this.pe.clear();h=e;Object.keys(l).length && (h=d.__spreadArray(d.__spreadArray([],d.__read(e),!1),[l],!1));if(h.length)return h;}};g.prototype.Ka=function(){var e;null === (e=this.pe) || void 0 === e?void 0:e.Ka();};return g;})();b.On=t;},19089:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.Gfb=void 0;d=a(22970);n=a(66164);c=a(91176);a(97685);f=a(52571);g=a(61996);e=a(69575);t=(function(){function h(k,l,m){var Q6T,p;Q6T=2;for(;Q6T !== 12;){switch(Q6T){case 14:var K7x="Reque";K7x+="s";K7x+="t";K7x+="P";K7x+="acer";this.ew=new g.zm({qj:this,source:K7x,Vlb:function(){var K29;K29=2;for(;K29 !== 1;){switch(K29){case 4:return {numOutstanding:p.cP};break;case 2:return {numOutstanding:p.cP};break;}}},xg:10});this.DKb=new e.Vg();Q6T=12;break;case 7:var p_r="1";p_r+="SIYbZrNJC";p_r+="p9";this.cOa=-Infinity;p_r;Q6T=14;break;case 1:var D3i="media";D3i+="|asej";D3i+="s";var z6X="ASEJS";z6X+="_";z6X+="REQUE";z6X+="ST_PA";z6X+="CER";this.Xqa=k;this.Aj=l;this.config=m;this.cP=0;this.console=new n.platform.Console(z6X,D3i);this.$_a=!1;Q6T=7;break;case 2:p=this;Q6T=1;break;}}}var f9Y;f9Y=2;for(;f9Y !== 12;){switch(f9Y){case 4:var I_L="L";I_L+="o";I_L+="b";var B7y="che";B7y+="ckR";B7y+="equestOpportunityRunner";var a$3="E";a$3+="y";var k4_="remo";k4_+="veRequ";k4_+="e";k4_+="st";var G4x="u";G4x+="x";var r_m="add";r_m+="Req";r_m+="ue";r_m+="st";var E7l="a";E7l+="l";var A9y="checkRe";A9y+="questOpportu";A9y+="nity";h.prototype.Ey=function(k){var r$P,l,m;r$P=2;for(;r$P !== 9;){switch(r$P){case 2:var N2A="Received remove req";N2A+="uest when ther";N2A+="e are no requests outstanding";this.ew.ug({mediaType:k.mediaType,contentStartPts:null === (l=k.qa) || void 0 === l?void 0:l.G,contentEndPts:null === (m=k.ta) || void 0 === m?void 0:m.G});this.cP--;(0,f.assert)(0 <= this.cP,N2A);r$P=3;break;case 3:var b8J="pru";b8J+="n";b8J+="e";b8J+="dRequest";this.al(b8J);r$P=9;break;}}};h.prototype.Lob=function(k){var S06,r,l,m,p;S06=2;for(;S06 !== 6;){switch(S06){case 1:this.DKb.push(m);S06=5;break;case 4:var T_t="nu";T_t+="m";T_t+="be";T_t+="r";r=this.Xqa();!r.Bf && T_t === typeof r.BY && this.Btc(r);S06=9;break;case 9:S06=!r.Bf?7:8;break;case 8:p++;S06=5;break;case 5:S06=this.cP < l?4:7;break;case 7:var k7o="r";k7o+="eques";k7o+="tOpportu";k7o+="nityRun";k7o+="nerComplete";this.ew.j7(k7o,{requestsIssued:p,scheduledMs:k,timeSinceScheduled:m},!0);S06=6;break;case 2:(l=this.config.G_,m=n.platform.time.ha() - k,p=0);S06=1;break;}}};h.prototype.Btc=function(k){var H5F;H5F=2;for(;H5F !== 1;){switch(H5F){case 2:d.__awaiter(this,void 0,void 0,function(){var k4m,l,m;k4m=2;for(;k4m !== 5;){switch(k4m){case 2:m=this;return d.__generator(this,function(){var B2G;B2G=2;for(;B2G !== 6;){switch(B2G){case 7:return [2];break;case 1:B2G=this.hna && l < this.cOa?5:8;break;case 5:this.hna.Ka();B2G=4;break;case 8:B2G=this.hna?7:4;break;case 2:l=k.BY;B2G=1;break;case 4:var y_Z="defer";y_Z+="re";y_Z+="dA";y_Z+="vailab";y_Z+="ilityTask";this.hna=this.Aj.Ut(c.$d.lm(c.I.Ba(l)),function(){var m$8;m$8=2;for(;m$8 !== 4;){switch(m$8){case 2:var s4A="de";s4A+="fer";s4A+="redAvailabil";s4A+="ityDe";s4A+="lay";m.al(s4A);m.hna=void 0;m.cOa=-Infinity;m$8=4;break;}}},y_Z);this.cOa=l;return [2];break;}}});break;}}});H5F=1;break;}}};d.__decorate([(0,g.gb)({methodName:A9y,Re:!0,Km:!0})],h.prototype,E7l,null);d.__decorate([(0,g.gb)({methodName:r_m,Re:!0})],h.prototype,G4x,null);d.__decorate([(0,g.gb)({methodName:k4_,Re:!0})],h.prototype,a$3,null);d.__decorate([(0,g.gb)({methodName:B7y,Re:!0})],h.prototype,I_L,null);f9Y=13;break;case 2:Object.defineProperties(h.prototype,{KFb:{get:function(){var G0q;G0q=2;for(;G0q !== 1;){switch(G0q){case 2:return this.cP;break;}}},enumerable:!1,configurable:!0}});h.prototype.al=function(){var J7n,l,k;J7n=2;for(;J7n !== 9;){switch(J7n){case 5:this.$_a=!0;l=n.platform.time.ha();return Promise.resolve().then(function(){var r8$;r8$=2;for(;r8$ !== 5;){switch(r8$){case 2:k.$_a=!1;k.Lob(l);r8$=5;break;}}});break;case 1:J7n=!this.$_a?5:9;break;case 2:k=this;J7n=1;break;}}};h.prototype.ux=function(k){var Y1M,l,m;Y1M=2;for(;Y1M !== 3;){switch(Y1M){case 2:var s8e="More than maxAl";s8e+="lowedOu";s8e+="tstandingRequests are outstanding";this.ew.ug({mediaType:k.mediaType,contentStartPts:null === (l=k.qa) || void 0 === l?void 0:l.G,contentEndPts:null === (m=k.ta) || void 0 === m?void 0:m.G});this.cP++;(0,f.assert)(this.cP <= this.config.G_,s8e);Y1M=3;break;}}};f9Y=4;break;case 13:return h;break;}}})();b.Gfb=t;},62333:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.egc=function(k,l,m,p){k={direction:f.YN.Rk,transport:{Ixa:new n.CBa({Jf:k})},tl:l,nRb:d.__spreadArray([],d.__read(g),!1),AXa:m,console:p,Jf:k};return new f.DGa(k);};b.vfc=function(k,l,m,p,r){k={direction:f.YN.Dga,transport:{Ixa:new n.CBa({Jf:k}),AOa:new c.F9a({Jf:k})},tl:l,nRb:d.__spreadArray([],d.__read(e),!1),Nic:d.__spreadArray([],d.__read(h),!1),AXa:m,dhc:p || 1E3,console:r,Jf:k};return new f.DGa(k);};d=a(22970);n=a(43522);c=a(96309);f=a(24606);g=("bufferScore clientTimestamp playPositionMs ccspSlowStart ccspCongestionAvoidance ccspRecovery hybridMode hybridPaceRate hybridCatchUp hybridRequestLogging hybridMaxsegHint byteRangeHint blackBoxReason").split(" ");e=["blackBoxReason"];h=("serverTime encoderTag encoderRegion liveEventStart liveEventEnd maxBitrate prefetchStart prefetchDuration postplayStart postplayDuration").split(" ");},9842:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.oha=b.Sg=b.qg=void 0;b.qg={dBa:"fragment",xr:"request_response",lJ:"title",D5:"session"};b.Sg={Rk:"upstream",Tu:"downstream",Dga:"both"};b.oha={G9b:{Mh:"bs",ud:b.qg.xr,direction:b.Sg.Rk,validate:function(a){return 1 <= a && 5 >= a;}},Mbc:{Mh:"tm",ud:b.qg.xr,direction:b.Sg.Rk,encode:function(a){return String(a);}},YHc:{Mh:"play_ms",ud:b.qg.xr,direction:b.Sg.Rk},qac:{Mh:"cpr_ss",ud:b.qg.xr,direction:b.Sg.Rk},oac:{Mh:"cpr_ca",ud:b.qg.xr,direction:b.Sg.Rk},pac:{Mh:"cpr_rec",ud:b.qg.xr,direction:b.Sg.Rk},Suc:{Mh:"hybrid",ud:b.qg.xr,direction:b.Sg.Rk},Tuc:{Mh:"cspr",ud:b.qg.xr,direction:b.Sg.Rk},Quc:{Mh:"cu",ud:b.qg.xr,direction:b.Sg.Rk},Uuc:{Mh:"cldl",ud:b.qg.xr,direction:b.Sg.Rk},Ruc:{Mh:"h_ms",ud:b.qg.xr,direction:b.Sg.Rk},b$b:{Mh:"br",ud:b.qg.xr,direction:b.Sg.Rk,encode:function(a){return ("").concat(a.start,"+").concat(a.size);}},P7:{Mh:"bb_reason",ud:b.qg.xr,direction:b.Sg.Rk},sessionId:{Mh:"s_xid",ud:b.qg.D5,direction:b.Sg.Rk},wY:{Mh:"dl",ud:b.qg.D5,direction:b.Sg.Rk,encode:function(a){return a?1:0;}},GDc:{Mh:"limit_rate",ud:b.qg.D5,direction:b.Sg.Rk},rNc:{Mh:"r_pad",ud:b.qg.D5,direction:b.Sg.Rk,encode:function(a){return a?1:0;}},fwa:{Mh:"time",ud:b.qg.xr,direction:b.Sg.Tu,decode:function(a){return Number(a);},validate:function(a){return !isNaN(a);}},bo:{Mh:"encoder-tag",ud:b.qg.dBa,direction:b.Sg.Tu},ao:{Mh:"encoder-region",ud:b.qg.dBa,direction:b.Sg.Tu},Bra:{Mh:"live-msg-start",ud:b.qg.lJ,direction:b.Sg.Tu,decode:function(a){var d;a=String(a);d=new Date(a).getTime();return {time:a,Np:isNaN(d)?void 0:d};}},Ara:{Mh:"live-msg-end",ud:b.qg.lJ,direction:b.Sg.Tu,decode:function(a){var d;a=String(a);d=new Date(a).getTime();return {time:a,Np:isNaN(d)?void 0:d};}},maxBitrate:{Mh:"maxBitrate",ud:b.qg.lJ,direction:b.Sg.Tu,decode:function(a){return Number(a);},validate:function(a){return !isNaN(a) && 0 <= a;}},cT:{Mh:"live-msg-prefetch-start",ud:b.qg.lJ,direction:b.Sg.Tu,decode:function(a){var d;a=String(a);d=new Date(a).getTime();return {time:a,Np:isNaN(d)?void 0:d};}},aT:{Mh:"live-msg-prefetch-dur",ud:b.qg.lJ,direction:b.Sg.Tu,decode:function(a){return Number(a);},validate:function(a){return !isNaN(a);}},YS:{Mh:"live-msg-pp-start",ud:b.qg.lJ,direction:b.Sg.Tu,decode:function(a){var d;a=String(a);d=new Date(a).getTime();return {time:a,Np:isNaN(d)?void 0:d};}},XS:{Mh:"live-msg-pp-dur",ud:b.qg.lJ,direction:b.Sg.Tu,decode:function(a){return Number(a);},validate:function(a){return !isNaN(a);}}};},24606:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.DGa=b.YN=void 0;d=a(22970);n=a(61996);c=a(54366);f=a(9842);b.YN={Rk:"upstream",Tu:"downstream",Dga:"both"};t=(function(){function g(e){this.KBb={};this.Eda=!1;this.config=e;this.MWc();e.console && (this.pe=new n.zm({xg:10,qj:this,source:"SideChannelCoordinator",console:e.console}));}g.prototype.Sc=function(e){!this.Eda && this.pe && (e.Sc(new c.On(this.pe)),this.Eda=!0);};g.prototype.Tqb=function(e){var h,k,l,r,q,u,v;if(this.config.transport.Ixa){k={};e=d.__assign(d.__assign({},this.config.tl),e);l=this.config.nRb || [];l=d.__spreadArray(d.__spreadArray([],d.__read(["sessionId","dlreportEnabled","nginxRateLimit","responsePadding"]),!1),d.__read(l),!1);try{for(var m=d.__values(l),p=m.next();!p.done;p=m.next()){r=p.value;q=f.oha[r];if(q && q.direction !== f.Sg.Tu){u=e[r];if(void 0 !== u){v=q.encode?q.encode(u):u;k[q.Mh]=v;}}}}catch(x){var w;w={error:x};}finally{try{p && !p.done && (h=m.return) && h.call(m);}finally{if(w)throw w.error;}}return this.config.transport.Ixa.encode(k);}};g.prototype.SIb=function(e,h){var k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D,F,G,J,L,K,M;void 0 === h && (h={});if(this.config.transport.AOa && (!h.ixa || this.OQc(h.mediaType || "default"))){D=this.config.transport.AOa.decode(e);if(D){e={};F=this.config.Nic || Object.keys(f.oha);try{for(var H=d.__values(F),E=H.next();!E.done;E=H.next()){G=E.value;J=f.oha[G];if(J && J.direction !== f.Sg.Rk){L=D[J.Mh];if(void 0 !== L){K=J.decode?J.decode(L):L;if(!J.validate || J.validate(K)){M=J.ud;if(M !== f.qg.D5)switch(M){case f.qg.dBa:e.La || (e.La={});e.La[G]=K;break;case f.qg.xr:e.response || (e.response={});e.response[G]=K;break;case f.qg.lJ:(e.title || (e.title={}),e.title[G]=K);}}}}}}catch(I){var P;P={error:I};}finally{try{E && !E.done && (k=H.return) && k.call(H);}finally{if(P)throw P.error;}}h.mediaType && (this.KBb[h.mediaType]=Date.now());this.pe && (P=this.pe,k=P.j7,h.url?(H=h.url,E=H.indexOf("?"),H=-1 !== E?H.slice(0,E):H):H=void 0,k.call(P,"processDownstreamMessage",{parsed:!0,url:H,Jf:this.config.Jf,time:Date.now(),bo:null === (l=e.La) || void 0 === l?void 0:l.bo,ao:null === (m=e.La) || void 0 === m?void 0:m.ao,maxBitrate:null === (p=e.title) || void 0 === p?void 0:p.maxBitrate,Wf:null === (r=e.response) || void 0 === r?void 0:r.Wf,Bra:null === (u=null === (q=e.title) || void 0 === q?void 0:q.Bra) || void 0 === u?void 0:u.time,Ara:null === (w=null === (v=e.title) || void 0 === v?void 0:v.Ara) || void 0 === w?void 0:w.time,cT:null === (y=null === (x=e.title) || void 0 === x?void 0:x.cT) || void 0 === y?void 0:y.time,aT:null === (A=e.title) || void 0 === A?void 0:A.aT,YS:null === (B=null === (z=e.title) || void 0 === z?void 0:z.YS) || void 0 === B?void 0:B.time,XS:null === (C=e.title) || void 0 === C?void 0:C.XS}));this.config.AXa && this.config.AXa(e,h);}}};g.prototype.OQc=function(e){var h;h=this.config.dhc || 0;if(0 === h)return !0;e=this.KBb[e] || 0;return Date.now() - e >= h;};g.prototype.MWc=function(){if((this.config.direction === b.YN.Rk || this.config.direction === b.YN.Dga) && !this.config.transport.Ixa)throw Error("Upstream transport required for upstream or both directions");if((this.config.direction === b.YN.Tu || this.config.direction === b.YN.Dga) && !this.config.transport.AOa)throw Error("Downstream transport required for downstream or both directions");};return g;})();b.DGa=t;},96652:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.EKc=function(a,d){return Math.max(1,Math.min(5,Math.floor(a / (1E3 * d.Wad / d.N$c)) + 1));};b.Qlc=function(a){if(a){if("HYBRID" === a.Fs)return {Suc:a.zA.gzb,Tuc:a.zA.rn,Quc:a.zA.nma,Uuc:a.zA.xva,Ruc:a.zA.UDb};if("CCSP" === a.Fs)return {qac:a.oE,oac:a.NC,pac:a.gE};}};},96309:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.F9a=void 0;d=a(22970);n=a(91176);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.encode=function(){throw Error("HTTPHeaderTransport does not support encoding (downstream only)");};f.prototype.decode=function(g){var e,h;if(g && (g=null === (e=(0,n.cc)(g.split(";"),function(k){return 0 === k.indexOf("sc=");})) || void 0 === e?void 0:e.slice(3))){try{h=this.tma.decrypt(g,!0);}catch(k){return;}try{return JSON.parse(h);}catch(k){}}};return f;})(a(66026).EGa);b.F9a=t;},43522:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.CBa=void 0;d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.encode=function(f){f=this.aPc(f);return this.tma.encrypt(f);};c.prototype.decode=function(){throw Error("HTTPQueryTransport does not support decoding (upstream only)");};c.prototype.aPc=function(f){return Object.keys(f).map(function(g){return encodeURIComponent(g) + "=" + encodeURIComponent(JSON.stringify(f[g]));}).join("&");};return c;})(a(66026).EGa);b.CBa=t;},66026:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.EGa=void 0;d=a(48912);b.EGa=(function(){return function(n){this.config=n;this.tma=new d.Dja(n.Jf);};})();},14242:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Lgb=void 0;d=a(91176);n=a(7559);c=a(65161);t=(function(){function f(g,e){this.Cn=g;this.console=e;this.Hsa=Infinity;this.Fpb=this.z_a=0;this.lVc=!1;}f.prototype.Amc=function(g,e,h,k,l){var m;if(this.Cn){m=g.Qa;if(m){if(h === c.u.U)(h=m.JG(Math.ceil(this.Cn * g.Ea.lB),void 0,!0),m=g.bu(h),g=m.Wb.nf(g.Ea),m.xh({start:0,end:this.Cn - h * g}),this.Hsa=this.Cn);else {void 0 !== k.RNb?(e=k.RNb,h=e * g.Ea.G):(h=(0,n.bxb)(k,l) + Math.ceil(k.v8b * g.Ea.lB),d.I.Ba(h).nf(g.Ea),h=e + h,e=Math.ceil(h / g.Ea.lB));h=m.JG(h,void 0,!0);for(l=k=0;l < h;++l)(m=g.bu(l),k+=m.Wb.nf(g.Ea));k=e - k;m=g.bu(h);m.xh({end:k});this.Hsa=e;}m.YVa();return m;}}};f.prototype.fuc=function(){return this.Fpb >= this.Hsa;};f.prototype.yvc=function(g,e){this.z_a+=this.mA(g,e);};f.prototype.alc=function(g,e,h){g.z_a=this.mA(e,h);};f.prototype.mA=function(g,e){return g.Wb.nf(e.Ea);};f.prototype.Yz=function(){if(!this.fuc())return !1;if(this.lVc)return (this.console.warn("StallAtFrameCount underflow reported, bufferingComplete = false"),!1);this.console.warn("StallAtFrameCount bufferingComplete = true:",("").concat(this.Fpb," >= ").concat(this.Hsa));return !0;};return f;})();b.Lgb=t;},2983:function(t,b){var a;Object.defineProperties(b,{__esModule:{value:!0}});b.m7b=function(d,n,c,f){var g,e;g=!0;c.forEach(function(h){var k;if(g && d === h.profile){k=h.ranges;g=void 0 === k?n >= h.min && n <= h.max:k.some(function(l){return n >= l.min && n <= l.max;});!g && h.disallowed && h.disallowed.some(function(l){if(l.stream.bitrate === n)return (e=l.disallowedBy,!0);});}});a && f.trace("applyFilters: profile:" + d + ", bitrate:" + n + ", inRange:" + g + ", disallowed by:" + e);return {inRange:g,wna:e};};a=!1;},72793:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.h5a=void 0;d=a(66164);n=a(65161);c=a(7559);t=(function(){function f(g){this.config=g;}f.prototype.Ah=function(g,e,h,k,l){var m,p;m=this.config;p=d.platform.DZ()[n.u.X];return g.filter(function(r){var q,u;q=(0,c.uoc)(r,m);u=r.bitrate * q.V_ / 8 > p;return (l === n.Ub.Bl?r.bitrate >= q.my && r.bitrate <= q.tu:r.bitrate >= q.rCc && r.bitrate <= q.gBc) && !u;});};return f;})();b.h5a=t;},86450:function(t,b,a){var n;function d(c,f){f=Math.max(c,f);return isNaN(f)?c || -Infinity:f;}Object.defineProperties(b,{__esModule:{value:!0}});b.i5a=void 0;n=a(65161);t=(function(){function c(f){this.config=f;this.TZa=0;this.state=n.Rd.yt;this.FEb=d(f.mS,f.lS);this.AWa=d(f.DH,f.kS);}c.prototype.Ah=function(f,g){var e;e=this;if(g !== this.state){this.state=g;if(g === n.Rd.Pf || g === n.Rd.nja)return f;g === n.Rd.wm && this.aLc();}return f.filter(function(h){return !(void 0 !== h.Pb && h.Pb < e.AWa || (void 0 === h.Pb || 0 > e.AWa) && h.bitrate < e.FEb);});};c.prototype.aLc=function(){++this.TZa;this.AWa=d(this.config.DH,this.config.kS - this.config.oCc * this.TZa);this.FEb=this.config.mS || -Infinity;};return c;})();b.i5a=t;},84909:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.s5a=void 0;d=a(91176);t=(function(){function n(c){this.config=c;}n.prototype.HQc=function(c){return c % 100 + 1 <= this.config.Lca;};n.prototype.Ah=function(c){var f,g,e,h,k,l,m,p,r,q,u;m=Number(null === (f=c[0]) || void 0 === f?void 0:f.R);if(!(this.config.QY && this.HQc(m) && 0 < this.config.w1.length))return c;f=c.length;p=null !== (g=c[f - 1].CT) && void 0 !== g?g:0;if(g=(0,d.cc)(this.config.w1,function(v){return v.pcd >= p && v.SKb <= p;})){for(m=0;m < f;m++){r=c[Math.max(m - 1,0)];q=c[m];if(!((null !== (e=q.CT) && void 0 !== e?e:0) < g.SKb || (null !== (h=r.CT) && void 0 !== h?h:0) < g.SKb)){u=null !== (k=q.Pb) && void 0 !== k?k:Infinity;r=null !== (l=r.Pb) && void 0 !== l?l:Infinity;if(!(r < g.Lad || r < g.Kad && q.bitrate < g.maxBitrate || !u && q.bitrate < g.fad))break;}}return c.slice(0,m);}return c;};return n;})();b.s5a=t;},58844:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.t5a=void 0;t=(function(){function a(d){this.config=d;}a.prototype.Ah=function(d){var n;n=this.config;return d.filter(function(c){return !(void 0 !== c.Pb && (c.Pb < n.DH || c.Pb > n.zDb) || (void 0 === c.Pb || 0 >= n.DH) && c.bitrate < n.mS || (void 0 === c.Pb || Infinity === n.zDb) && c.bitrate > n.Dba);});};return a;})();b.t5a=t;},72351:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.z8=function(f,g){g && (null === f || void 0 === f?0:f.kzb) && (g=new c.vz(g).or(c.xO));return new c.vz(c.iza).and(g || c.xO).or(c.YCa,d.M5.JQ).or(c.ZCa,d.M5.JQ);};b.A8=function(f,g,e){e && g.kzb && (e=new c.vz(e).or(c.xO));return g.zPa && Object.keys(g.zPa).length?new c.vz(new n.N8a(g,f)):new c.vz(c.iza).and(new c.u5a()).and(new c.t5a(g)).and(new c.i5a(g)).and(new c.y5a(g)).and(new c.vab(f,g)).and(g.QY?new c.s5a(g):c.xO).and(e || c.xO).or(c.YCa,d.M5.JQ).or(c.ZCa,d.M5.JQ);};d=a(12986);n=a(84132);c=a(63576);},96077:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.u5a=void 0;d=a(65161);t=(function(){function n(){}n.prototype.Ah=function(c,f){return f !== d.Rd.$p?c.filter(function(g){return g.Qv;}):c;};return n;})();b.u5a=t;},48867:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.W5=void 0;d=a(66164);n=a(48170);c=a(2983);t=(function(){function f(g){this.console=g;this.Hrb=[];this.Dnb={};this.isb=!1;}f.prototype.uwa=function(g,e){this.Hrb=g;void 0 !== e?this.Dnb[e]=g:this.isb || (this.console.warn("StreamFilters: Bitrate filters received with undefined viewable id"),this.isb=!0);};f.prototype.Ah=function(g){var e,h,k,l;e=this;if(0 === g.length)return g;k=g[0].J;if(void 0 === k)return (this.console.error("StreamFilters: Stream has undefined viewable id"),g);try{null === (h=d.platform.PC) || void 0 === h?void 0:h.call(d.platform,k);}catch(m){return (this.console.error("StreamFilters: createFilteredVideoStreamList: " + m),g);}l=this.Dnb[k] || this.Hrb;n.l && this.console.trace(("VideoBitrateRangesFilter: filtering ").concat(g.length," streams with ").concat(JSON.stringify(l)));g=g.filter(function(m){return (0,c.m7b)(m.profile,m.bitrate,l,e.console).inRange;});n.l && this.console.trace(("VideoBitrateRangesFilter: ... ").concat(g.length," streams in range"));return g;};return f;})();b.W5=t;},19092:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.y5a=void 0;t=(function(){function a(d){var n;n=this;d.d2 && d.d2.enabled && d.d2.profiles && d.d2.profiles.length && "keepLowest" === d.d2.action && (this.uBb={},d.d2.profiles.forEach(function(c){return n.uBb[c]=!0;}));}a.prototype.Ah=function(d){var n,c;n={};c=this.uBb;return void 0 === c?d:d.filter(function(f){return !c[f.profile] || (n[f.profile]?!1:n[f.profile]=!0);});};return a;})();b.y5a=t;},13904:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.YCa=b.iza=void 0;d=a(91176);b.iza={Ah:function(n){return n.filter(function(c){return c.np && !c.ko;});}};b.YCa={Ah:function(n){return (n=(0,d.cc)(n,function(c){return !!c.np && !c.ko;}))?[n]:[];}};},84132:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.N8a=void 0;t=(function(){function a(d,n){this.config=d;this.console=n;}a.prototype.Ah=function(d){var n;if(0 === d.length)return d;n=this.config.zPa[d[0].R];return void 0 !== n?(!1,d=d.filter(function(c){return ("").concat(c.id) === ("").concat(n);}),0 === d.length && !1,d):d;};return a;})();b.N8a=t;},63576:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(62964),b);t.__exportStar(a(96077),b);t.__exportStar(a(48867),b);t.__exportStar(a(19092),b);t.__exportStar(a(58844),b);t.__exportStar(a(86450),b);t.__exportStar(a(84909),b);t.__exportStar(a(13904),b);t.__exportStar(a(25320),b);t.__exportStar(a(12986),b);t.__exportStar(a(86543),b);t.__exportStar(a(72351),b);t.__exportStar(a(7520),b);t.__exportStar(a(77154),b);t.__exportStar(a(72793),b);},77154:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.vab=void 0;d=a(8149);t=(function(){function n(c,f){this.console=c;this.config=f;}n.prototype.Ah=function(c){var f,g;if(!this.config.xWc || 0 === c.length)return c;if((0,d.oo)(c[0].track))f=c[0].track.RR;if(void 0 === f || 0 === f)return c;g=c.filter(function(e){return e.bitrate > f?!1:!0;});return 0 < g.length?g:[c[0]];};return n;})();b.vab=t;},86543:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.ZCa=void 0;b.ZCa={Ah:function(a){return a.length?[a[0]]:[];}};},7520:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.f5=void 0;d=a(91176);n=a(48170);t=(function(){function c(f,g){this.console=f;this.config=g;this.z3a=!1;}c.prototype.Ah=function(f,g,e,h){void 0 === e && (e=d.I.ia);void 0 === h && (h=!1);n.l && this.console.trace("Filtering streams for fastplay",{z3a:this.z3a,Pa:e.G,c$c:h});if(this.z3a || e.G >= this.config.mBc || !1 === h){g=f.filter(this.Qic);if(g.length)return g;n.l && this.console.trace("No drm streams to return");}g=f.filter(this.Ibc);if(g.length)return g;n.l && this.console.trace("No clear streams to return");return f;};c.prototype.Qic=function(f){return f.xk;};c.prototype.Ibc=function(f){return !f.xk;};return c;})();b.f5=t;},25320:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.xO=void 0;b.xO={Ah:function(a){return a;}};},12986:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.vz=b.M5=void 0;d=a(25320);(function(c){c[c.VD=0]="primary";c[c.JQ=1]="fallback";})(n || (b.M5=n={}));t=(function(){function c(f,g){var e,h;void 0 === g && (g=!1);h=this;this.lma=g;this.filters=(e={},e[n.VD]=[],e[n.JQ]=[],e);Array.isArray(f)?f.forEach(function(k){return h.and(k,n.VD);}):this.and(f);}c.prototype.and=function(f,g){void 0 === g && (g=n.VD);f !== d.xO && this.filters[g].push({filter:f,Opb:!0});return this;};c.prototype.or=function(f,g){void 0 === g && (g=n.VD);this.filters[g].push({filter:f,Opb:!1});return this;};c.prototype.filter=function(f){var g;g=this;[n.VD,n.JQ].forEach(function(e){g.filters[e]=g.filters[e].filter(function(h){return f(e,h.filter);});});};c.prototype.Ah=function(f,g,e,h){var k;k=this;return [n.VD,n.JQ].reduce(function(l,m){return k.filters[m].reduce(function(p,r){r.Opb?p=r.filter.Ah(p,g,e,h):0 === p.length && (p=r.filter.Ah(f,g,e,h));return p;},l);},f);};return c;})();b.vz=t;},62964:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},89613:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.Ugb=b.M0b=void 0;d=a(22970);t=a(66164);n=a(52571);c=a(95591);a=a(82149);f=new t.platform.Console("FRAGMENTS","media|asejs");try{new Float64Array(8);g=!0;}catch(h){g=!1;}e=(function(h){function k(l,m){m=h.call(this,l.dk,m) || this;m.gU=l;return m;}d.__extends(k,h);Object.defineProperties(k.prototype,{ma:{get:function(){return this.gU.DNb(this.ti);},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{offset:{get:function(){return this.gU.If(this.ti);},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Csa:{get:function(){return this.gU.a0 && this.gU.a0[this.ti];},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Jm:{get:function(){return this.gU.noc(this.ti);},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{Pb:{get:function(){return this.gU.DE && this.gU.DE[this.ti];},enumerable:!1,configurable:!0}});Object.defineProperties(k.prototype,{vLa:{get:function(){return 8 * this.ma / (1E3 * this.wK / this.O);},enumerable:!1,configurable:!0}});k.prototype.toJSON=function(){return {index:this.index,contentStartTicks:this.ub,contentEndTicks:this.Lb,durationTicks:this.wK,timescale:this.O,startPts:this.qa.G,endPts:this.ta.G,duration:this.Wb.G,additionalSAPs:this.Jm};};return k;})(a.Bhb);b.M0b=e;t=(function(){function h(k,l,m,p,r,q,u){this.l0=128;this.He=l;this.offset=m.offset;this.sizes=m.sizes;this.Iw=k;this.EX=this.V7=this.yka=this.Or=this.FJa=void 0;this.y3b=p;this.THa=r && r.If;this.PJa=q;this.tJ=Math.min(this.He.length,this.sizes.length);k=this.B$b();this.r3b=k.maxBitrate;this.s3b=k.xg;this.dk.Bz.length !== this.sizes.length && f.trace("Mis-matched stream duration (" + this.dk.Bz.length + "," + this.sizes.length + ") for movie id " + u);this.dk.fla && !this.THa && f.error("Mis-matched additional SAPs information for movie id " + u);}Object.defineProperties(h.prototype,{mediaType:{get:function(){return this.He.mediaType;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{length:{get:function(){return this.tJ;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{Iu:{get:function(){return this.He.Iu;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{fPa:{get:function(){return this.He.fPa;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{Gb:{get:function(){return this.He.Gb;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{Lg:{get:function(){return this.He.Lg;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{ib:{get:function(){return this.He.ib;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{Yb:{get:function(){return this.He.Yb;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{ky:{get:function(){return this.r3b;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{xg:{get:function(){return this.s3b;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{Ea:{get:function(){return this.He.Ea;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{O:{get:function(){return this.He.O;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{Lu:{get:function(){return this.Or || this.W$b();},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{a0:{get:function(){return this.y3b;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{AKa:{get:function(){return this.THa;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{DE:{get:function(){return this.PJa;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{dk:{get:function(){return this.He;},enumerable:!1,configurable:!0}});Object.defineProperties(h.prototype,{CB:{get:function(){return this.FJa || this.Tma();},enumerable:!1,configurable:!0}});h.prototype.DNb=function(k){if(this.sizes)return this.sizes[k];f.error("sizesByIndex _sizes is undefined");return -1;};h.prototype.$s=function(k){return this.He.$s(k);};h.prototype.Wna=function(k){return this.He.$s(k) + this.He.fg(k);};h.prototype.If=function(k){var l,m,p;if(this.V7 !== k || void 0 === this.EX){if(0 === k)return this.offset;if(this.V7 === k - 1 && void 0 !== this.EX)(this.EX+=this.sizes[this.V7],++this.V7);else {l=this.yka || this.J$b();m=Math.floor(k / this.l0);p=m * this.l0;for(l=l[m];p < k;++p)l+=this.sizes[p];this.V7=k;this.EX=l;}}return this.EX;};h.prototype.fg=function(k){return this.He.fg(k);};h.prototype.get=function(k){return new e(this,k);};h.prototype.noc=function(k){var l,m,p,r,q;(0,n.assert)(0 <= k);l=this.dk.fla;m=this.dk.Wlb;p=this.THa;if(!p || !l || !m || k >= l.length)return [];r=[];q=k === l.length - 1?m.length:l[k + 1];for(l=l[k];l < q;++l)r.push({ql:m[l],od:this.$s(k) + this.Ea.eh(m[l]).G,offset:p[l]});return r;};h.prototype.JG=function(k,l,m){return this.He.JG(k,l,m);};h.prototype.JPa=function(k,l,m){return this.He.JPa(k,l,m);};h.prototype.Nma=function(k,l){return this.He.Nma(k,l);};h.prototype.gma=function(k,l,m,p,r){var q,u,v,w,x,y,A,z,B;q=!0;u=0;v=this.He.Bz;w=this.sizes;k=Math.floor(k * this.O / 1E3);x=Math.floor(m * this.O / 1E3);y=0;A=0;z=0;if(this.He.c3a && this.He.b3a)for(u=this.He.c3a;u <= this.He.b3a;++u)(y+=v[u],A+=w[u]);if(A > l)q=!1;else for(;u < this.length && (!r || u < r);){B=w[u];m=v[u];if(A + B > l){for(;1 < u - z && A + B > l && (y - v[z] >= x || A - w[z] > p);)(y-=v[z],A-=w[z],++z);if(y < k || A + B > l){q=!1;this.He.c3a=z;this.He.b3a=u;break;}}y+=m;A+=B;++u;}return q;};h.prototype.subarray=function(k,l){(0,n.assert)(void 0 === k || 0 <= k && k < this.length);(0,n.assert)(void 0 === l || l > k && l <= this.length);return new h(this.Iw,this.He.subarray(k,l),{offset:this.If(k),sizes:this.sizes.subarray(k,l)},this.a0 && this.a0.subarray(k,l),this.AKa && ({If:this.AKa}),this.PJa && this.PJa.subarray(k,l));};h.prototype.forEach=function(k){for(var l=0;l < this.length;++l)k(this.get(l),l,this);};h.prototype.map=function(k){for(var l=[],m=0;m < this.length;++m)l.push(k(this.get(m),m,this));return l;};h.prototype.reduce=function(k,l){for(var m=0;m < this.length;++m)l=k(l,this.get(m),m,this);return l;};h.prototype.toJSON=function(){return {length:this.length};};h.prototype.dump=function(){var l;f.trace("StreamFragments: " + this.length);for(var k=0;k < this.length;++k){l=this.get(k);f.trace(("StreamFragments: ").concat(k,": [").concat(l.qa.G,"-").concat(l.ta.G,"]") + (" @ ").concat(l.offset,", ").concat(l.ma," bytes"));}};h.prototype.B$b=function(){var k,l,m,p,r,q,w;k=0;l=0;m=this.He.DDb;p=this.He.EDb;r=this.He.Bz;q=this.sizes;if(void 0 === m || m >= this.length || void 0 === p || p >= this.length){for(var u=0,v=this.length;u < v;++u){w=q[u];w > l && (l=w,p=u);w/=r[u];w > k && (k=w,m=u);}void 0 === this.He.DDb && (this.He.DDb=m);void 0 === this.He.EDb && (this.He.EDb=p);}else (k=q[m] / r[m],l=q[p]);return {maxBitrate:Math.floor(k * this.O / 125),xg:l};};h.prototype.W$b=function(){for(var k=0,l=0;l < this.length;++l)k+=this.sizes[l];return this.Or=k;};h.prototype.Tma=function(){return this.FJa=new c.FGa(this.He.Bz,this.sizes,this.He.O);};h.prototype.J$b=function(){if(!this.yka){for(var k=g?new Float64Array(Math.ceil(this.length / this.l0)):Array(Math.ceil(this.length / this.l0)),l=this.offset,m=0;m < k.length;++m){k[m]=l;for(var p=0;p < this.l0;++p)l+=this.sizes[m * this.l0 + p];}this.yka=k;}return this.yka;};return h;})();b.Ugb=t;(0,a.JL)(t.prototype.$s);(0,a.JL)(t.prototype.Wna);(0,a.JL)(t.prototype.fg);(0,a.JL)(t.prototype.If);(0,a.JL)(t.prototype.DNb);(0,a.JL)(t.prototype.get);},19595:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.N5=void 0;d=a(91176);t=(function(){function n(c){this.tC=c;this.Xub=new d.Jo();}Object.defineProperties(n.prototype,{nra:{get:function(){var c;return this.PDc || (null === (c=this.parent) || void 0 === c?void 0:c.nra);},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{il:{get:function(){var c;return this.sd || (null === (c=this.parent) || void 0 === c?void 0:c.il);},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{XBb:{get:function(){var c,f;return null !== (c=this.ASc) && void 0 !== c?c:null === (f=this.parent) || void 0 === f?void 0:f.XBb;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{bVa:{get:function(){var c,f;return null !== (c=this.BSc) && void 0 !== c?c:null === (f=this.parent) || void 0 === f?void 0:f.bVa;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{track:{get:function(){return this.NOc;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{fSb:{get:function(){return this.Xub.promise;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{parent:{get:function(){var c;return null === (c=this.tC) || void 0 === c?void 0:c.call(this);},enumerable:!1,configurable:!0}});n.prototype.Ka=function(){this.tC=void 0;};n.prototype.TPc=function(c){this.PDc=c;};n.prototype.ST=function(c){this.sd=c;this.Xub.resolve();};n.prototype.VMb=function(c){this.ASc=c;};n.prototype.WMb=function(c){this.BSc=c;};n.prototype.Z0a=function(c){this.NOc=c;};return n;})();b.N5=t;},32966:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Yz=void 0;d=a(65161);a(13550);b.Yz=(function(){var e4m;e4m=2;for(;e4m !== 1;){switch(e4m){case 2:return {U1b:function(n,c,f,g,e,h){var F$5=X8rQy;function k(w){var o$d;o$d=2;for(;o$d !== 7;){switch(o$d){case 2:o$d=!g.Qa?1:5;break;case 9:w=g.Qa.get(w.index);return (q - n.qw) / (q + (w.offset + w.ma) - u);break;case 1:return 0;break;case 4:o$d=void 0 === w?3:9;break;case 3:return 0;break;case 5:w=g.Qa.JPa(n.Cd + w,void 0,!0);o$d=4;break;}}}var l3H,v,q,l,m,p,r,u;l3H=2;for(;l3H !== 54;){switch(l3H){case 35:p=g.Qa.fg(e);h=Math.min(e + Math.floor(h.g1 / p),g.Qa.length - 1);v=g.Qa.If(h);F$5.T2D(8);var u_Q=F$5.M4Q(82,1,1,9,9);p=u_Q * u * f / c - n.Cd;l3H=31;break;case 26:l3H=-1 === e?25:24;break;case 27:e=g.Qa.JG(n.Lk);l3H=26;break;case 42:return (p=Math.min(r,l + v),{complete:!1,EM:p,progress:k(p)});break;case 7:F$5.T2D(9);var p09=F$5.M4Q(8,9,10,8);p=h.zp * (m?h.oda:p09);!g.za && h.xkc && g.yb && g.yb.Ih && g.yb.Ih.Fa > h.Mra && (p+=h.cla + g.yb.Ih.Fa * h.hua);e && !g.za && (p+=e * h.dla);p=r?Math.min(r,p):p;l3H=12;break;case 41:v=m.offset;l3H=40;break;case 30:--h;l3H=29;break;case 3:var O_w="maxsi";O_w+="z";O_w+="e";return {complete:!0,reason:O_w};break;case 9:l3H=c <= h.Nra && (0 < c || !h.doa)?8:7;break;case 18:l3H=g.za?17:16;break;case 21:var Q5m="h";Q5m+="igh";Q5m+="tp";return {complete:!0,reason:Q5m};break;case 10:q=n.Qa.reduce(function(w,x){var h2h;h2h=2;for(;h2h !== 1;){switch(h2h){case 2:return w + (x.Ob.G > n.Cd?x.ma:0);break;}}},0);f=Math.max(f,1);m=f * g.bitrate;l3H=18;break;case 28:m=g.Qa.get(h);F$5.T2D(10);var y6Z=F$5.M4Q(152,168,7,17);v=y6Z * v * f / c - m.qa.G - p;l3H=43;break;case 22:l3H=c > m * h.eZ?21:35;break;case 29:l3H=h > e?28:39;break;case 2:(l=n.cl - n.Cd,m=c === d.Rd.wm);c=g.kb || 0;(p=0,r=Math.min(h.wH,h.Qfa && !m?h.AD:h.Jba));l3H=4;break;case 4:l3H=l >= r?3:9;break;case 38:var n48="1S";n48+="IYb";n48+="Zr";n48+="NJCp9";0 < c && c < m && (p=Math.min(r,Math.max(h.g1 * (m / c - 1),p)));n48;return {complete:!1,EM:p,progress:k(p)};break;case 39:var R6F="no";R6F+="r";R6F+="e";R6F+="buf";R6F+="f";return {complete:!0,reason:R6F};break;case 25:var i_k="o";i_k+="u";i_k+="t";i_k+="ofrange";return {complete:!0,reason:i_k};break;case 8:var S9$="lo";S9$+="wT";S9$+="h";S9$+="rough";S9$+="put";return {complete:!1,sba:!0,reason:S9$};break;case 17:var Y9x="l";Y9x+="o";Y9x+="wLiveBuf";Y9x+="fe";Y9x+="r";var O2D="liveB";O2D+="uff";O2D+="erLevel";return c > m && l > p?{complete:!0,reason:O2D}:{complete:!1,EM:p,kb:c,bitrate:m,reason:Y9x};break;case 43:l3H=0 < v?42:41;break;case 23:l3H=l >= p?22:38;break;case 16:l3H=!g.Qa || !g.Qa.length?15:27;break;case 31:m=void 0;l3H=30;break;case 24:u=g.Qa.If(e);l3H=23;break;case 15:return (c < m && (p=Math.min(r,Math.max(h.g1 * (m / c - 1),p))),{complete:!1,EM:p,progress:0});break;case 40:--h;l3H=29;break;case 12:l3H=!c?11:10;break;case 11:var N7z="not";N7z+="hro";N7z+="ughput";return {complete:!1,EM:p,reason:N7z};break;}}}};break;}}})().U1b;},13550:function(t,b,a){var c,f;function d(g,e){return g && g.Hq && (e || !1 !== g.Qv);}function n(g,e,h){return "number" === typeof g?Math.min(Math.max(g,e),h):e;}Object.defineProperties(b,{__esModule:{value:!0}});b.Ug=b.console=void 0;b.b$c=d;b.P9c=function(g,e){return !g.slice(e + 1).some(function(h){return d(h);});};b.vma=n;b.hZ=function(g,e,h){var l,m,p,r;function k(q){var u;u=g[q];if(!u.Hq)return (f && !u.np && b.console.log("Stream [" + q + "] " + u.id + " (" + u.bitrate + " Kbps): Not available"),f && u.ko && b.console.log("Stream [" + q + "] " + u.id + " (" + u.bitrate + " Kbps): Failed"),!1);if(h && !h(u,q))return !1;f && b.console.log("Stream [" + q + "] " + u.id + " (" + u.bitrate + " Kbps): Available");return !0;}m=g.length;p=0;r=m;Array.isArray(e) && (p=n(e[0],0,m),r=n(e[1],0,m),e=null !== (l=e[2]) && void 0 !== l?l:p + 1);e=n(e || 0,p + 1,r);for(l=e - 1;l >= p;--l)if(k(l))return l;for(l=e + 1;l < r;++l)if(k(l))return l;f && b.console.log("Found no available streams");return -1;};b.OEb=function(g,e){return Math.floor(g / (125 * e) * 1E3);};b.Unb=function(g,e){return Math.ceil(g / 1E3 * e * 125);};b.$v=function(g,e,h,k){e=g.buffer.cl - g.buffer.Cd >= h - (null !== e && void 0 !== e?e:0);return g.state === c.Ub.Bl || g.state === c.Ub.wm?!0:g.state === c.Ub.rg && e?!1:k;};b.wwa=function(g,e){g=g.Nzc;return void 0 === g?e:g;};t=a(66164);c=a(65161);b.console=new t.platform.Console("ASEJS_STREAM_SELECTOR","media|asejs");f=!1;b.Ug=(function(){function g(e){if(!(this instanceof g))return new g(e);this.sd=e;this.mEc=this.bNc=0;}return g;})();},42556:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.O4=b.P4=b.VV=b.WV=b.O5=void 0;d=a(16096);Object.defineProperties(b,{O5:{enumerable:!0,get:function(){return d.O5;}}});n=a(35479);Object.defineProperties(b,{WV:{enumerable:!0,get:function(){return n.WV;}}});c=a(29217);Object.defineProperties(b,{VV:{enumerable:!0,get:function(){return c.VV;}}});f=a(56556);Object.defineProperties(b,{P4:{enumerable:!0,get:function(){return f.P4;}}});g=a(56841);Object.defineProperties(b,{O4:{enumerable:!0,get:function(){return g.O4;}}});},56841:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.O4=void 0;d=a(22970);n=a(26388);c=a(33923);f=a(72793);g=a(52571);e=a(45247);h=a(7559);t=(function(){function k(){}k.prototype.pqb=function(l,m,p,r,q,u,v,w){void 0 === v && (v=[]);m=this.Lpc(l,m,p,q,u,r,w);switch(l.ayc){case "videofirst":return this.ofc(m,u,v);default:return this.nfc(m,u,v);}};k.prototype.nfc=function(l,m,p){var u,v,w;function r(x,y){return Math.exp((y.Pb?Math.log(y.Pb):0) + (x.Cwa?.13 * Math.log(25 * (x.Cwa - 1)):0));}function q(x,y,A,z){var B,C;B=r(x,y);C=r(A,z);x=A.bitrate - x.bitrate + (z.bitrate - y.bitrate);return 0 !== x?(C - B) / x:0;}p=0 < p.length?p[0]:void 0;u=[];v=0;w=0;for(u.push(new c.JI({audio:l[v],video:m[w],text:p}));v + 1 < l.length && w + 1 < m.length;)(v=[{Bwa:q(l[v],m[w],l[v],m[w + 1]),GTa:[v,w + 1]},{Bwa:q(l[v],m[w],l[v + 1],m[w]),GTa:[v + 1,w]},{Bwa:q(l[v],m[w],l[v + 1],m[w + 1]),GTa:[v + 1,w + 1]}],v.sort(function(x,y){return x.Bwa - y.Bwa;}),w=d.__read(v[v.length - 1].GTa,2),v=w[0],w=w[1],u.push(new c.JI({audio:l[v],video:m[w],text:p})));if(w + 1 < m.length)for(w++;w < m.length;w++)u.push(new c.JI({audio:l[v],video:m[w],text:p}));if(v + 1 < l.length)for(v++;v < l.length;v++)u.push(new c.JI({audio:l[v],video:m[w],text:p}));return u;};k.prototype.ofc=function(l,m,p){var r,q,u;q=[];p=0 < p.length?p[0]:void 0;(0,g.assert)(0 < l.length && 0 < m.length,"We should have at least one video stream and one audio stream");if(0 < l.length){u=l[0];try{for(var v=d.__values(m),w=v.next();!w.done;w=v.next())q.push(new c.JI({audio:u,video:w.value,text:p}));}catch(y){var x;x={error:y};}finally{try{w && !w.done && (r=v.return) && r.call(v);}finally{if(x)throw x.error;}}if(1 < l.length && 0 < m.length)for((m=m[m.length - 1],x=1);x < l.length;x++)q.push(new c.JI({audio:l[x],video:m,text:p}));}return q;};k.prototype.YQc=function(l,m,p,r){var q,u;q=m && m.Ui(n.u.X);if(r === e.Ub.Bl || !q)return !1;u=m.Ui(n.u.X);if(!p.some(function(v){return v === u;}))return !1;m=u.profile;return l.Mp && 0 <= l.Mp.indexOf(m)?!1:!0;};k.prototype.Lpc=function(l,m,p,r,q,u,v){if(this.YQc(l,v,r,u))r=[v.Ui(n.u.X)];else if((r=new f.h5a(l).Ah(r,void 0,void 0,void 0,u),v=r[0],q=q[0],!(0,h.hAb)(v.profile,l))){l=0;v && v.Hq && v.yb && v.yb.confidence?(m=m(v.yb,p,u,0,!1),l=Math.floor(m.lower) || 1):q && q.Hq && q.yb && q.yb.confidence && (m=m(q.yb,p,u,0,!1),l=Math.floor(m.lower) || 1);m=r.length - 1;for(m;0 < m && !(l && r[m].bitrate < .15 * l);--m);r=[r[m]];}return r;};return k;})();b.O4=t;},56556:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;Object.defineProperties(b,{__esModule:{value:!0}});b.P4=void 0;t=a(22970);d=a(66164);n=a(91176);c=a(91176);f=a(65161);g=a(62156);e=t.__importDefault(a(29340));h=a(33923);a(52571);k=a(8149);l=a(3082);m=a(35479);p=a(44284);r=a(13550);a(87775);a(15050);q=a(94320);u=a(18048);a(71915);v=a(86268);a(79321);a(79257);w=a(32966);new d.platform.Console("ASEJS_JOINT_STREAM_SELECTOR","media|asejs");a=(function(){var S5J;S5J=2;function x(y,A,z,B,C){var W8E;W8E=2;for(;W8E !== 6;){switch(W8E){case 9:var S8_="de";S8_+="fa";S8_+="u";S8_+="l";S8_+="t";y || (y=A.Vwa);this.tv=new ((l.lea[y] || l.lea[S8_])())();C && (this.mXc=new m.WV(A,f.u.U));W8E=6;break;case 4:var l0$="1";l0$+="SIY";l0$+="bZrNJC";l0$+="p9";this.zN=B;l0$;W8E=9;break;case 2:this.dwa=y;this.config=A;this.D7=z;W8E=4;break;}}}for(;S5J !== 12;){switch(S5J){case 7:x.prototype.uk=function(y){var p8_;p8_=2;for(;p8_ !== 1;){switch(p8_){case 2:return y === f.u.X?this.D7:this.zN;break;}}};x.prototype.XMb=function(y){var Q_W,A,z;Q_W=2;for(;Q_W !== 4;){switch(Q_W){case 2:(null === (A=y.track) || void 0 === A?void 0:A.mediaType) === f.u.X && (this.D7=y);(null === (z=y.track) || void 0 === z?void 0:z.mediaType) === f.u.U && (this.zN=y);Q_W=4;break;}}};x.prototype.ZVa=function(y,A,z){var z2o;z2o=2;for(;z2o !== 7;){switch(z2o){case 8:--z;z2o=3;break;case 4:X8rQy.T2D(11);var o63=X8rQy.M4Q(303,16,1,19);z=y.length - o63;z2o=3;break;case 1:y.forEach(function(B){var f_F;f_F=2;for(;f_F !== 1;){switch(f_F){case 2:return B.Jw=!B.Qa || !B.Qa.length;break;}}});z2o=7;break;case 3:z2o=0 <= z?9:7;break;case 5:z2o=this.config.KNb && z > this.config.T_ && !A.za && y.every(function(B){var V6p;V6p=2;for(;V6p !== 1;){switch(V6p){case 2:return !B.Jw;break;}}})?4:7;break;case 9:(y[z - 1] && y[z - 1].isEqual(A) && y[z].O9(function(B){var x6F,C;x6F=2;for(;x6F !== 5;){switch(x6F){case 2:null !== (C=B.Qa) && void 0 !== C && C.length || (B.Jw=!0);x6F=5;break;}}}),y[z + 1] && y[z + 1].isEqual(A) && y[z].O9(function(B){var d0n,C;d0n=2;for(;d0n !== 5;){switch(d0n){case 2:null !== (C=B.Qa) && void 0 !== C && C.length || (B.Jw=!0);d0n=5;break;}}}));z2o=8;break;case 2:z2o=this.config.Zsb?1:5;break;}}};return x;break;case 2:Object.defineProperties(x.prototype,{E0:{get:function(){var k0g;k0g=2;for(;k0g !== 1;){switch(k0g){case 4:return this.mXc;break;case 2:return this.mXc;break;}}},enumerable:!1,configurable:!0}});x.prototype.K1=function(y,A,z,B,C,D,F){var u_z,H,E,G,J,L,K,M,P,I,O,Q,v8y;u_z=2;for(;u_z !== 23;){switch(u_z){case 2:(L=null === y || void 0 === y?void 0:y.buffer,K=d.platform.time.ha(),M=this.config,P=A.first);(0,q.epb)(A.first);(I=this.iWa(M.rFb,A.first),O=I.Wm);I=I.kZ;y.state === f.Ub.Bl && (this.AF=this.zF=void 0);void 0 !== B && this.Zca(A,y.state,y.buffer,B);u_z=8;break;case 18:u_z=v8y === f.Ub.Pf?17:16;break;case 25:u_z=24;break;case 20:y.HY && H && (0,e.default)((0,u.uIb)(H,L,y,K,this.config.tJa),z);return z;break;case 26:B=this.tv.ZLb;u_z=6;break;case 11:u_z=(H=z.sd)?10:20;break;case 7:B=this.tv.Jy;u_z=6;break;case 6:Q=P[0].Ui(f.u.U);(0,k.yk)(Q) && (this.zN.$v=(0,r.$v)(y,Q.track.Zk.G,M.ll,this.zN.$v));z=B.call(this.tv,{config:M,player:y,Kk:A,Wm:O,haa:!!C,kZ:I,rGc:z,$v:this.zN.$v,kra:this.zF,gVa:this.AF,$Bb:Math.max(null !== (H=this.zF) && void 0 !== H?H:0,null !== (E=this.AF) && void 0 !== E?E:0)});z.wh=y.state;u_z=11;break;case 10:var r_S="p";r_S+="l";r_S+="a";r_S+="yin";r_S+="g";var e4E="mi";e4E+="n_f";e4E+="ragment_vmaf";(this.D7.ST(H.Ui(f.u.X)),this.zN.ST(H.Ui(f.u.U)),this.ZVa(A.first,H,L.cl - L.Cd),z.nM=H.kb || 0,z.yb=H.yb,z.reason && (H.Gu=z.reason,e4E !== z.reason && (H.n0a=z.hu,H.YZ=z.YZ,H.ZSa=null === (G=z.yb) || void 0 === G?void 0:G.dX,H.$Sa=null === (J=z.yb) || void 0 === J?void 0:J.ul)),A=(0,v.VDb)({buffer:L,player:y,MG:F,haa:C,Ora:P[0].Kf,sd:H.Kf,Jxa:(0,v.ftc)(P,H),rxa:P[P.length - 1].Kf,E0:this.E0}),z.rn=A || z.rn,O && !I && H.bitrate < O.bitrate && (this.zF=L.Lk),y.state !== f.Ub.rg && y.state !== f.Ub.Oi?(O=(0,g.jIb)(y.state),D=this.Yz(y.buffer,O,y.playbackRate,H,D),(z.Pm=D.complete)?z.CLa=D.reason:(z.Pm=!1,z.EM=D.EM,z.sba=D.sba,z.progress=D.progress)):(z.Pm=!0,z.CLa=r_S));u_z=20;break;case 17:B=this.tv.Uq;u_z=6;break;case 8:v8y=y.state;u_z=v8y === f.Ub.Bl?7:18;break;case 16:u_z=v8y === f.Ub.wm?15:27;break;case 27:u_z=v8y === f.Ub.Oi?26:25;break;case 15:B=this.tv.$Lb;u_z=6;break;case 24:B=this.tv.Mf;u_z=6;break;}}};x.prototype.Yz=function(y,A,z,B,C){var w0u;w0u=2;for(;w0u !== 1;){switch(w0u){case 2:return (0,w.Yz)(y,A,z,B,C,this.config);break;}}};x.prototype.yOb=function(y,A,z){var s4D;s4D=2;for(;s4D !== 1;){switch(s4D){case 2:var h6o="un";h6o+="d";h6o+="e";h6o+="fin";h6o+="ed";h6o !== typeof A?A.bitrate < z.bitrate && (this.AF=y):this.zF=this.AF=void 0;s4D=1;break;}}};x.prototype.Zca=function(y,A,z,B){var r7W,C,D;r7W=2;for(;r7W !== 5;){switch(r7W){case 2:y.IK(function(F){var V35;V35=2;for(;V35 !== 1;){switch(V35){case 2:(0,c.lZ)(F,function(H){var s06;s06=2;for(;s06 !== 1;){switch(s06){case 2:H.Hq && H.yb && H.yb.confidence?(C !== H.yb && (C=H.yb,D=B(H.yb,z,A,0,!1)),H.kb=Math.floor(D.lower) || 1,H.kfa=void 0 !== D.upper?Math.floor(D.upper):1):H.kb=void 0;s06=1;break;}}});V35=1;break;}}});r7W=5;break;}}};x.prototype.iWa=function(y,A){var f62,D,F,z,B,C;f62=2;for(;f62 !== 8;){switch(f62){case 3:return {Wm:z,kZ:C};break;case 4:D || (z=(0,p.Sxb)(A,z.bitrate,z.Pb),C=!0,y && B && F && (C=!1));f62=3;break;case 5:(D=(0,n.cc)(A,function(H){var R3L;R3L=2;for(;R3L !== 1;){switch(R3L){case 2:return H.isEqual(z);break;}}}),F=(0,n.cc)(A,function(H){var k6W;k6W=2;for(;k6W !== 1;){switch(k6W){case 4:return H.isEqual(B);break;case 2:return H.isEqual(B);break;}}}));f62=4;break;case 1:f62=(z=this.ipa())?5:9;break;case 9:C=!0;f62=3;break;case 2:(B=this.ipa(),C=!1);f62=1;break;}}};x.prototype.ipa=function(){var R2E;R2E=2;for(;R2E !== 5;){switch(R2E){case 2:R2E=this.D7.il || this.zN.il?1:5;break;case 1:return new h.JI({audio:this.D7.il,video:this.zN.il});break;}}};S5J=7;break;}}})();b.P4=a;},29217:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.VV=void 0;d=a(22970);t=(function(){function n(c,f,g){var e,h,k;this.Fs=c;"HYBRID" === c?this.zA=g:"CCSP" === c && (this.oE=null !== (e=f.oE) && void 0 !== e?e:0,this.NC=null !== (h=f.NC) && void 0 !== h?h:0,this.gE=null !== (k=f.gE) && void 0 !== k?k:0);}Object.defineProperties(n.prototype,{xJb:{get:function(){var c;return "HYBRID" === this.Fs?[null !== (c=this.zA.rn) && void 0 !== c?c:0]:"CCSP" === this.Fs?[this.oE,this.NC,this.gE]:[];},enumerable:!1,configurable:!0}});n.prototype.wEb=function(){return Math.min(this.oE,this.NC,this.gE);};n.prototype.Qqa=function(){return this.xJb.some(function(c){return 0 < c;});};n.prototype.V_a=function(c){return new n(this.Fs,{oE:c * this.oE,NC:c * this.NC,gE:c * this.gE});};n.prototype.bWa=function(c,f,g,e){var h;h=8 * c / Math.max(g - f,1);if(!this.Qqa())return !1;c=this.xJb.map(function(k){return Math.abs(h - k) / k;});return Math.min.apply(Math,d.__spreadArray([],d.__read(c),!1)) < e;};return n;})();b.VV=t;},35479:function(t,b,a){var r,q,u;function d(v){return c(v.sd);}function n(v,w){var x,y,A,z,B;A=f(w.ULc,v.wh,null !== (y=null === (x=v.sd.yb) || void 0 === x?void 0:x.confidence) && void 0 !== y?y:r.wO.HAVE_NOTHING);if(0 === A.length)return 0;a:switch(w.GGc){case "implicit":w=p(w,v.sd);w=v.GP / w;break a;case "capacityPercentage":w=Math.max(v.F9b / v.D9b || 0,v.GP / w.wH);break a;default:w=0;}y=-1;for(x=0;x < A.length;x++)if(A[x].Yla >= w){y=x;break;}if(-1 === y)return g(v,A[A.length - 1].GMa);if(0 === y)return g(v,A[0].GMa);z=A[y - 1].Yla;x=g(v,A[y - 1].GMa);B=A[y].Yla;v=g(v,A[y].GMa);A=Math.min((w - z) / (B - z),1);return (1 - A) * x + A * v;}function c(v){var w,x;x=null === (w=null === v || void 0 === v?void 0:v.M) || void 0 === w?void 0:w.ML;return x?x[v.mediaType] || 0:0;}function f(v,w,x){var A;function y(z,B){return void 0 !== z && 0 < z.filter(function(C){return C === B;}).length;}A=v.filter(function(z){return y(z.wua,w);});0 === A.length && (A=v.filter(function(z){return !z.wua || 0 === z.wua.length;}));v=A.filter(function(z){return y(z.$Eb,x);});0 === v.length && (v=A.filter(function(z){return !z.$Eb || 0 === z.$Eb.length;}));return v.sort(function(z,B){return z.Yla - B.Yla;});}function g(v,w){var x,y,A,z;if(!w || "object" !== typeof w)return 0;x=v.sd;y=v.Jxa;A=v.rxa;z={selectedFragmentBitrate:e(v.MG,x,v.Te) * v.playbackRate,selectedPeakBitrate:(x.ky || h(x) || 0) * v.playbackRate,upswitchPeakBitrate:(y.ky || h(y) || 0) * v.playbackRate,maxPeakBitrate:(A.ky || h(A) || 0) * v.playbackRate,selectedAverageBitrate:h(x) * v.playbackRate,upswitchAverageBitrate:h(y) * v.playbackRate,maxAverageBitrate:c(x) * v.playbackRate,bufferLevelMs:v.GP,observedThroughput:k(v.sd) || 0,averagetp:l(v.sd) || 0,stddevtp:m(v.sd) || 0};v=w.offset || 0;return Object.keys(z).reduce(function(B,C){return B + (w[C] || 0) * z[C];},v);}function e(v,w,x){var y;return w?void 0 !== x && w.Qa?(void 0 === v?null === (y=w.Qa) || void 0 === y?void 0:y.get(x).vLa:v.twb(w,x).vLa) || w.ky || 0:w.ky || 0:0;}function h(v){return (null === v || void 0 === v?void 0:v.bitrate) || 0;}function k(v){var w;v=v.yb;return (null === (w=null === v || void 0 === v?void 0:v.kb) || void 0 === w?void 0:w.Fa) || 0;}function l(v){var w;v=v.yb;return (null === (w=null === v || void 0 === v?void 0:v.Zr) || void 0 === w?void 0:w.sX) || 0;}function m(v){var w;v=v.yb;return Math.sqrt((null === (w=null === v || void 0 === v?void 0:v.Zr) || void 0 === w?void 0:w.P2) || 0);}function p(v,w){var x,y;x=v.JTc;x=l(w) + x * m(w);w=w.kb || 0;y=0;0 < w && (y=x / w - 1);return v.yCc + v.ITc * Math.max(0,y);}Object.defineProperties(b,{__esModule:{value:!0}});b.WV=void 0;b.z8c=f;b.O8c=k;b.F8c=p;t=a(66164);r=a(65161);q=a(29217);new t.platform.Console("ASEJS_PACERATE_SELECTOR","media|asejs");u={maxStreamBitrate:d,"static":function(v,w){return w.jOb;},none:function(){return 0;},regression:n,epsGreedy:function(v,w){return Math.min(n(v,w) || 0,k(v.sd));},"default":d};a=(function(){var S3_;S3_=2;function v(w,x){var u_5;u_5=2;for(;u_5 !== 7;){switch(u_5){case 8:var c2X="C";c2X+="C";c2X+="S";c2X+="P";this.Fs=c2X;u_5=7;break;case 4:u_5=w.m9?3:9;break;case 5:var h4D="d";h4D+="e";h4D+="f";h4D+="ault";this.algorithm=(u[x === r.u.X?this.Bb.DGc:this.Bb.CGc] || u[h4D]).bind(this);u_5=4;break;case 3:var J_N="H";J_N+="Y";J_N+="BR";J_N+="I";J_N+="D";this.Fs=J_N;u_5=7;break;case 2:var J74="1";J74+="S";J74+="IY";J74+="bZrNJC";J74+="p9";this.Bb=w;J74;u_5=5;break;case 9:u_5=w.xG || w.j9 || w.TOa?8:7;break;}}}for(;S3_ !== 9;){switch(S3_){case 2:v.prototype.Bvb=function(w,x){var p2Z,B,y,A,z;p2Z=2;for(;p2Z !== 14;){switch(p2Z){case 3:B=w;this.Bb.zma && (B=this.apa(w,A.MZa[0],z,x,y[0]));p2Z=8;break;case 7:return B;break;case 4:var j5O="HY";j5O+="B";j5O+="R";j5O+="I";j5O+="D";p2Z=j5O === this.Fs?3:6;break;case 8:B=new q.VV(this.Fs,void 0,{gzb:1,rn:B,nma:Number(this.Bb.nma),UDb:this.Bb.yBc,xva:Number(this.Bb.xva)});p2Z=7;break;case 5:y=(null === A || void 0 === A?void 0:A.K$c) || [0,0,0];p2Z=4;break;case 2:(A=this.Bb.zma,z=null === (y=x.Ora) || void 0 === y?void 0:y.ky);x=e(x.MG,x.sd,x.Te) * x.playbackRate;p2Z=5;break;case 6:var A8I="C";A8I+="C";A8I+="S";A8I+="P";A8I === this.Fs && (B=new q.VV(this.Fs,A?{oE:this.apa(w,A.MZa[0],z,x,y[0]),NC:this.apa(w,A.MZa[1],z,x,y[1]),gE:this.apa(w,A.MZa[2],z,x,y[2])}:{oE:0,NC:0,gE:0},void 0));p2Z=7;break;}}};v.prototype.urc=function(w){var I8V,x,y;I8V=2;for(;I8V !== 5;){switch(I8V){case 2:var p9p="s";p9p+="t";p9p+="a";p9p+="t";p9p+="ic";var B_r="CC";B_r+="S";B_r+="P";var l2r="HY";l2r+="BRI";l2r+="D";y=null === (x=w.sd) || void 0 === x?void 0:x.mediaType;return l2r !== this.Fs || this.Bb.Xjc?B_r === this.Fs && (y === r.u.X && !this.Bb.Ujc || y === r.u.U && !this.Bb.k9)?0:p9p === this.Bb.EGc?this.Bb.jOb:c(w.sd):0;break;}}};v.prototype.apa=function(w,x,y,A,z){var C4K;C4K=2;for(;C4K !== 9;){switch(C4K){case 2:C4K=!x || 0 === w?1:5;break;case 1:return 0;break;case 5:X8rQy.r4q(12);w=Math.ceil(X8rQy.I83(w,x));w=Math.max(w,Math.ceil(A * z));return w < (this.Bb.zma.L$c || 0) * (y || 0)?0:w;break;}}};S3_=4;break;case 4:v.prototype.vrc=function(w){var r0y,x,y,A;r0y=2;for(;r0y !== 7;){switch(r0y){case 9:x=w.Lq?this.algorithm(w,this.Bb):this.urc(w);return this.Bvb(x,w);break;case 3:return x;break;case 4:r0y=!this.Fs || !A || !y || (A=this.Bb.oVc) && w.Te && 0 === w.Te % A || w.GP < y.oy?3:9;break;case 2:(y=null === (x=w.sd) || void 0 === x?void 0:x.mediaType,A=this.Bb.m9 || y === r.u.X && this.Bb.j9 || y === r.u.U && this.Bb.xG);x=this.Bvb(0,w);y=this.Bb.zma;r0y=4;break;}}};return v;break;}}})();b.WV=a;},70753:function(t,b,a){var n,c,f,g;function d(e,h){var k;h.some(function(l){var m;m=l.profiles;(m=m && 0 <= m.indexOf(e)) && (k=l.override);return m;});return k;}Object.defineProperties(b,{__esModule:{value:!0}});n=a(22970);c=a(91176);f=a(13550);t=n.__importDefault(a(32028));g=a(24653);a=(function(e){var S5S;S5S=2;for(;S5S !== 3;){switch(S5S){case 2:n.__extends(h,e);h.prototype.Jy=function(k){var z9n,l,m,p,r,q,u;z9n=2;for(;z9n !== 3;){switch(z9n){case 5:u=q && q.Mp && 0 <= q.Mp.indexOf(u)?d(u,q.rI):d(u,q.Hla);return (0,g.XLb)({player:k.player,Kk:k.Kk,config:u?{dLa:null !== (l=u.audioBwFactor) && void 0 !== l?l:q.dLa,my:null !== (m=u.minInitAudioBitrate) && void 0 !== m?m:q.my,tu:null !== (p=u.maxInitAudioBitrate) && void 0 !== p?p:q.tu,V_:null !== (r=u.minRequiredAudioBuffer) && void 0 !== r?r:q.V_}:q});break;case 2:(q=k.config,u=k.Kk.first);u=(k.Wm || u[0]).Uc;z9n=5;break;}}};h.prototype.Mf=function(k){var Z6N,x,y,A,z,B,C,l,m,p,r,q,u,v,w;Z6N=2;for(;Z6N !== 33;){switch(Z6N){case 10:B=0;Z6N=20;break;case 18:X8rQy.r4q(0);r=X8rQy.I83(z,1);Z6N=17;break;case 17:Z6N=0 <= r?16:20;break;case 20:k=x[B];Z6N=34;break;case 9:l.rI.some(function(D){var L0G,F,H,E,G,J,L;L0G=2;for(;L0G !== 9;){switch(L0G){case 1:L0G=H?5:3;break;case 3:return H;break;case 6:L0G=H?4:1;break;case 2:(F=D.profiles,H=F && 0 <= F.indexOf(v));L0G=1;break;case 4:x=u.filter(function(K){var E6r,M;E6r=2;for(;E6r !== 5;){switch(E6r){case 2:M=K.bitrate;return M >= G && M <= J && 0 <= F.indexOf(K.Uc) && M * E / 8 < L;break;}}});L0G=3;break;case 5:(E=(D=D.override) && D.minRequiredAudioBuffer || l.V_,G=D && D.minAudioBitrate || -Infinity,J=D && D.maxAudioBitrate || Infinity,L=m.buffer.Rt || Infinity);L0G=4;break;}}});k=p;Z6N=6;break;case 27:r--;Z6N=17;break;case 23:Z6N=(p.Qa && p.Qa.length || w) && m.by && C > k.UA && (void 0 === r || Number(q) > r || y.Lk - r > k.XR)?22:20;break;case 11:Z6N=0 > z?10:19;break;case 15:B=r;Z6N=20;break;case 3:return new f.Ug(p);break;case 14:(y=p.bitrate,A=k=void 0);w?(k=l.B8b,A=Math.max(.1,1 - l.kPb) * Math.pow(Math.min(1,(m.buffer.cl - m.buffer.Cd) / l.ll),l.jPb),A=p.yb?p.yb.kb.Fa * A:0):(k=l.A8b,A=p.kb || 0);(z=(0,c.Lm)(x,function(D){var b0E;b0E=2;for(;b0E !== 1;){switch(b0E){case 2:return D.isEqual(p);break;}}}),B=z);Z6N=11;break;case 21:Z6N=(r=x[z],r.jH && A > k.xVc * r.bitrate * m.playbackRate)?35:22;break;case 4:Z6N=!(l && l.Mp && 0 <= l.Mp.indexOf(v))?3:9;break;case 35:B=z;Z6N=20;break;case 25:y=m.buffer;C=y.cl - y.Cd;Z6N=23;break;case 22:Z6N=++z < x.length?21:20;break;case 26:Z6N=z < x.length - 1 && A > k.xVc * y * m.playbackRate?25:20;break;case 19:Z6N=z && A < k.Bic * y * m.playbackRate?18:26;break;case 2:var b3G="Must have at least one";b3G+=" selecte";b3G+="d";b3G+=" stream";(l=k.config,m=k.player,p=k.Wm,r=k.kra,q=k.gVa,u=k.Kk.first);(0,c.assert)(p,b3G);(v=p.Uc,w=p.za);Z6N=4;break;case 16:Z6N=(q=x[r],q.jH && (0 === r || q.bitrate * m.playbackRate * k.Bic < A))?15:27;break;case 34:return new f.Ug(k);break;case 6:Z6N=x && 1 < x.length?14:34;break;}}};return h;break;}}function h(){var J8o,k;J8o=2;for(;J8o !== 4;){switch(J8o){case 2:var d0l="1S";d0l+="I";d0l+="Y";d0l+="bZrNJCp";d0l+="9";k=e.call(this) || this;d0l;return k;break;}}}})(t.default);b["default"]=a;},32028:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(91176);c=a(13550);t=a(75498);f=a(24653);a=(function(g){function e(){return null !== g && g.apply(this,arguments) || this;}d.__extends(e,g);e.prototype.Jy=function(h){var k,l;k=h.config;l=h.player;h=h.Kk;return (0,f.XLb)({config:k,player:l,Kk:h});};e.prototype.Uq=function(h){h=h.Wm;(0,n.assert)(h,"Must have at least one selected stream");return new c.Ug(h);};e.prototype.Mf=function(h){h=h.Wm;(0,n.assert)(h,"Must have at least one selected stream");return new c.Ug(h);};return e;})(t.wz);b["default"]=a;},24653:function(t,b,a){var n,c;function d(f){var g,e,h,k,l,m,p,r,q;e=f.stream;h=f.index;k=f.config;l=f.player;f=f.$9b;m=e.id;p=e.bitrate;r=e.kb || 0;q=!!r;c && n.console.log("Checking feasibility of [" + h + "] " + m + " (" + p + " Kbps)");if(!e.Hq)return (c && !e.np && n.console.log(" Not available"),c && e.ko && n.console.log(" Failed"),!1);e=null !== (g=k.tu) && void 0 !== g?g:Infinity;if(p > e)return (c && n.console.log(" Above maxInitAudioBitrate (" + e + " Kbps)"),!1);if(!(p * k.V_ / 8 < (l.buffer.Rt || Infinity)))return (c && n.console.log(" audio buffer too small to handle this stream"),!1);if(q){c && n.console.log((" Have throughput history = ").concat(q," : available throughput = ").concat(r," Kbps"));if(p * l.playbackRate < r / f)return (c && n.console.log(" +FEASIBLE: bitrate less than available throughput"),!0);c && n.console.log(" bitrate requires more than available throughput");return !1;}if(p <= k.my)return (c && n.console.log(" Bitrate is less than max of minInitAudioBitrate (" + k.my + " Kbps) "),c && n.console.log(" +FEASIBLE: no throughput history and has minimum bitrate configured"),!0);c && n.console.log(" No throughput history");return !1;}Object.defineProperties(b,{__esModule:{value:!0}});b.XLb=function(f){var g,e,h,k,m;g=f.config;e=f.player;h=f.Kk;f=new n.Ug();k=g.dLa || 1;h=h.first;for(var l=h.length - 1;0 <= l;--l){m=h[l];if(d({stream:m,index:l,config:g,player:e,$9b:k})){f.sd=m;break;}m.jH && (f.sd=m);}return f;};n=a(13550);c=!1;},58223:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(91176);c=a(13550);t=(function(f){function g(){return null !== f && f.apply(this,arguments) || this;}d.__extends(g,f);g.prototype.Mf=function(e){var h,k;h=e.Wm;e=e.Kk.first;if(void 0 === h)h=e[(0,c.hZ)(e)];else if(!h.jH){k=(0,n.Lm)(e,function(l){return l.isEqual(h);});h=e[(0,c.hZ)(e,k)];if(void 0 === h)return new c.Ug();}return new c.Ug(h);};return g;})(a(75498).wz);b["default"]=t;},52255:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=d.__importDefault(a(80588));n=a(4620);a=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.Mf=function(g){return (0,n.Mf)(g);};return f;})(t.default);b["default"]=a;},4620:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.Mf=void 0;t=a(22970);d=t.__importStar(a(17267));n=a(66164);c=a(91176);f=a(13550);g=a(50468);e=t.__importDefault(a(80588));b.Mf=(function(){var b9X;b9X=2;for(;b9X !== 5;){switch(b9X){case 2:var K2q="1";K2q+="SIYbZrN";K2q+="JCp";K2q+="9";K2q;return {Mf:function(h){var q5m,H,E,G,x,k,l,m,p,r,y,A,z,q,u,v,B,C,D,L,F,J,w;q5m=2;for(;q5m !== 66;){switch(q5m){case 73:v=k;q5m=18;break;case 62:x++;q5m=34;break;case 6:q5m=v < k || v > w?14:13;break;case 46:J++;q5m=48;break;case 39:F=void 0;B.yb && B.yb.tputTrace && (F=B.yb.tputTrace);(H=[],E=B.Qa,G=0);q5m=36;break;case 68:q5m=q[w].f < v?73:67;break;case 49:J=m.Te;q5m=48;break;case 74:w++;q5m=55;break;case 67:w--;q5m=71;break;case 77:q5m=q[w].f === v?76:75;break;case 13:X8rQy.r4q(0);w=X8rQy.M4Q(v,k);0 > w && (w=0);w >= q.length && (w=q.length - 1);x=q[w].f;q5m=20;break;case 2:(l=h.config,m=h.player,p=h.Kk,r=h.Wm);q5m=1;break;case 17:u.sd=p[q[v].vcd];q5m=16;break;case 76:k=w;q5m=73;break;case 60:return u;break;case 69:k=w;q5m=73;break;case 56:w+=1;q5m=55;break;case 71:q5m=0 <= w?70:73;break;case 36:q5m=void 0 !== E?54:45;break;case 50:J++;q5m=53;break;case 31:q5m=B.yb && B.yb.tdigest?30:39;break;case 45:E=void 0;m.I9b && (E=n.platform.time.ha() - m.I9b);q.push({Te:m.Te,mfa:E,lad:G,m5c:C,Hdd:D,Idd:F,Rnb:v,rvb:k,U5c:H,r$c:r.bitrate,s$c:null !== (y=r.Pb) && void 0 !== y?y:0,v6c:B.bitrate,w6c:null !== (A=B.Pb) && void 0 !== A?A:0,Ncd:h.bitrate,Ocd:null !== (z=h.Pb) && void 0 !== z?z:0,Kqa:w});B === h && (w=!1);q5m=62;break;case 55:q5m=w < q.length?77:73;break;case 57:q5m=x < v?56:72;break;case 14:return e.default.prototype.Mf(h);break;case 53:q5m=J < Math.min(J + l.D8b,E.length)?52:49;break;case 15:h=u.sd;q=[];v=m.buffer;v=v.cl - v.Cd;q5m=23;break;case 48:q5m=J < E.length?47:45;break;case 23:k=g.Ho.Tma(m.buffer.Qa);k=m.buffer.Rt - k.ma;w=!0;q5m=35;break;case 20:q5m=x === v?19:58;break;case 1:var A$$="player missin";A$$+="g fr";A$$+="agmentI";A$$+="ndex";var b8m="Must";b8m+=" hav";b8m+="e a selected stream for se";b8m+="lec";b8m+="tPlaying";(0,c.assert)(r,b8m);(0,c.assert)(d.pc(m.Te),A$$);q=l.GSc;p=p.first;(u=new f.Ug(r),v=null !== (k=m.Te) && void 0 !== k?k:-1);k=q[0].f;q5m=7;break;case 33:(B=p[x],C=void 0,D=[]);B.yb && B.yb.throughput && (C=B.yb.throughput.Fa);q5m=31;break;case 52:L=E.get(J);H.push({d:L.Wb.G,b:L.ma});q5m=50;break;case 58:k=void 0;q5m=57;break;case 40:D.push(F.max);q5m=39;break;case 61:u.h5c=q;q5m=60;break;case 18:q5m=void 0 !== v?17:59;break;case 72:--w;q5m=71;break;case 16:q5m=l.Bkc?15:60;break;case 30:F=B.yb.tdigest;D.push(F.min);D.push(F.bYa);D.push(F.ow);q5m=43;break;case 19:v=w;q5m=18;break;case 54:J=m.Te;q5m=53;break;case 7:w=q[q.length - 1].f;q5m=6;break;case 47:G+=E.get(J).Wb.G;q5m=46;break;case 35:x=0;q5m=34;break;case 75:q5m=q[w].f > v?73:74;break;case 34:q5m=x < p.length?33:61;break;case 70:q5m=q[w].f === v?69:68;break;case 59:return e.default.prototype.Mf(h);break;case 43:D.push(F.Es);D.push(F.pw);D.push(F.cYa);q5m=40;break;}}}};break;}}})().Mf;},63499:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(13550);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.Mf=function(g){g=g.Kk.first;return new n.Ug(g[g.length - 1]);};return f;})(a(75498).wz);b["default"]=t;},65114:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=a(75498);n=a(57862);c=a(26502);f=a(41379);a(55891);a=(function(g){function e(){var h;h=g.apply(this,d.__spreadArray([],d.__read(arguments),!1)) || this;h.Mf=n.Mf;h.Jy=c.Jy;h.Uq=f.Uq;return h;}d.__extends(e,g);return e;})(t.wz);b["default"]=a;},41379:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Uq=void 0;d=a(91176);n=a(13550);c=a(57862);f=a(19188);b.Uq=(function(){var u$0;u$0=2;for(;u$0 !== 5;){switch(u$0){case 2:var r1X="1S";r1X+="IYbZrN";r1X+="JCp";r1X+="9";r1X;return {Uq:function(e){var c8V;c8V=2;for(;c8V !== 1;){switch(c8V){case 2:var s1I="p";s1I+="lay";s1I+="in";s1I+="g";return s1I === e.config.T7?(0,c.Mf)(e):g(e);break;}}}};break;}}function g(e){var v9m,k,l,m,p,r,u,w,q,x,v;v9m=2;for(;v9m !== 26;){switch(v9m){case 2:var w6X="Mu";w6X+="st ha";w6X+="ve a";w6X+="t lea";w6X+="st one selected stream";(k=e.config,l=e.player,m=e.Kk,p=e.$v,r=e.Wm);(0,d.assert)(r,w6X);m=m.first;v9m=4;break;case 17:p=new n.Ug();p.sd=r;e.Sa !== r.Sa && (p.reason=w,p.hu=x);v9m=27;break;case 8:u=void 0;u=(0,d.Lm)(m,function(y){var s6j;s6j=2;for(;s6j !== 1;){switch(s6j){case 2:return y.isEqual(r);break;}}});u=Math.max(u,0);u=Math.min(u + (k.lmb?2:1),m.length);v9m=13;break;case 9:v9m=r.kb?8:17;break;case 20:var Z8B="fa";Z8B+="llback_lowest_acceptable_st";Z8B+="r";Z8B+="eam";w=Z8B;v9m=19;break;case 18:var v8Q="select_";v8Q+="feasib";v8Q+="le_buffering";w=v8Q;v9m=19;break;case 11:v9m=void 0 === r?10:18;break;case 4:q=r.bitrate;e=r;v9m=9;break;case 19:x=null === r || void 0 === r?void 0:r.kb;v9m=17;break;case 10:r=m[0];v9m=20;break;case 27:return p;break;case 13:v=(0,n.wwa)(m[0].M,k.VR) && p?(0,f.Pxb)(m,k):Infinity;r=(0,d.cc)(m.slice(0,u).filter(function(y){var V$A;V$A=2;for(;V$A !== 1;){switch(V$A){case 2:return y.ot && y.ot <= v;break;}}}).reverse(),h);v9m=11;break;}}function h(y){var b9h,A;b9h=2;for(;b9h !== 8;){switch(b9h){case 4:var m4V="b";m4V+="uff_lt";m4V+="_";m4V+="hi";m4V+="st";w=m4V;x=A;return !0;break;case 5:return !1;break;case 1:b9h=!A || (y.bitrate > q?k.oRb:1) * y.bitrate * l.playbackRate > A?5:4;break;case 2:A=y.kb;b9h=1;break;}}}}})().Uq;},57862:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Mf=void 0;d=a(91176);a(13550);n=a(13550);c=a(55891);f=a(88502);b.Mf=(function(){var G6q;G6q=2;for(;G6q !== 5;){switch(G6q){case 2:var A2w="1SI";A2w+="YbZ";A2w+="rNJCp9";A2w;return {Mf:function(g){var D2g,e,h,k,l,m,p,r,q,u,v;D2g=2;for(;D2g !== 14;){switch(D2g){case 2:var t6Z="Must h";t6Z+="ave at least one sel";t6Z+="ected str";t6Z+="eam";(e=g.config,h=g.player,k=g.Kk,l=g.Wm,m=g.$v,p=g.kra);(0,d.assert)(l,t6Z);r=h.buffer.Lk;D2g=4;break;case 4:g=h.buffer.cl - h.buffer.Cd;q=(0,f.Koc)(g,e.ll,l,e.xra);k=k.first;(u=(0,d.Lm)(k,function(w){var D_Z;D_Z=2;for(;D_Z !== 1;){switch(D_Z){case 2:return w.isEqual(l);break;}}}),v=(0,n.wwa)(k[0].M,e.VR));D2g=7;break;case 7:m=k.slice(0,(!(void 0 === p || r - p > e.XR) || v && m?(k.length + u) % k.length:Math.min(k.length - 1,u + e.Dra)) + 1);return (0,c.K1)(m,q,g,e,h.playbackRate,h.Te);break;}}}};break;}}})().Mf;},26502:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.Jy=void 0;d=a(91176);n=a(65161);c=a(13550);f=a(19188);t=(function(){var v54;function g(h,k){var g1R,l,m;g1R=2;for(;g1R !== 13;){switch(g1R){case 2:g1R=h.fL?1:14;break;case 4:return l[0].d;break;case 1:(l=h.fL,m=(0,d.Lm)(l,function(p){var M5i;M5i=2;for(;M5i !== 1;){switch(M5i){case 2:return k <= p.r;break;}}}));g1R=5;break;case 8:X8rQy.T2D(0);h=l[X8rQy.M4Q(m,1)];l=l[m];g1R=6;break;case 9:return l[l.length - 1].d;break;case 6:return Math.floor(h.d + (l.d - h.d) * (k - h.r) / (l.r - h.r));break;case 14:return h.As;break;case 3:g1R=-1 === m?9:8;break;case 5:g1R=0 === m?4:3;break;}}}v54=2;for(;v54 !== 5;){switch(v54){case 2:var y$2="1";y$2+="SI";y$2+="YbZrN";y$2+="J";y$2+="Cp9";y$2;return {BJa:function(h){var l2i,p,r,q,k,l,m;l2i=2;for(;l2i !== 9;){switch(l2i){case 1:h=h.Kk.first;(p=new c.Ug(),r=Math.max(k.ny,k.lS),q=(0,c.wwa)(h[0].M,k.VR) && m?(0,f.Pxb)(h,k):Infinity);p.sd=(0,d.cc)(h.filter(function(u){var I3i,v,w;I3i=2;for(;I3i !== 9;){switch(I3i){case 2:(v=u.Ui(n.u.X))?(v=v.Uc,v=k && k.Mp && 0 <= k.Mp.indexOf(v)?e(v,k.rI):e(v,k.Hla)):v=void 0;v=v?null !== (w=v.maxInitAudioBitrate) && void 0 !== w?w:k.tu:k.tu;w=u.ot?u.ot <= k.WA:!0;return (u.wv?u.wv <= v:!0) && w;break;}}}).filter(function(u){var q0v;q0v=2;for(;q0v !== 1;){switch(q0v){case 2:return u.ot && u.ot <= q;break;}}}).reverse(),function(u){var k5k,w,v;k5k=2;for(;k5k !== 8;){switch(k5k){case 3:return v;break;case 5:w=u.bitrate * l.playbackRate;k5k=4;break;case 1:k5k=u.bitrate > r?5:9;break;case 4:var i7W="hi";i7W+="st_buff";i7W+="t";i7W+="i";i7W+="me";v?(u=g(k,w),w=(0,c.Unb)(k.zp,w * k.gS),(0,c.OEb)(w,v) <= u?(p.hu=v,p.reason=i7W,v=!0):v=!1):v=!1;k5k=3;break;case 2:v=u.kb;k5k=1;break;case 9:var Q2U="no_historic";Q2U+="al_lte_min";Q2U+="b";Q2U+="itrat";Q2U+="e";var W3F="hist";W3F+="_t";W3F+="p";W3F+="ut_l";W3F+="t_minbitrate";var F1z="lt_hi";F1z+="st_lte_minbitra";F1z+="te";v && u.bitrate * l.playbackRate <= v?(p.hu=v,p.reason=F1z,v=!0):v?(p.hu=v,p.reason=W3F,v=!1):(p.reason=Q2U,v=!0);k5k=3;break;}}}) || h[0];return p;break;case 2:(k=h.config,l=h.player,m=h.$v);l2i=1;break;}}}};break;}}function e(h,k){var A9F,l;A9F=2;for(;A9F !== 4;){switch(A9F){case 5:return l;break;case 2:k.some(function(m){var u2L,p;u2L=2;for(;u2L !== 4;){switch(u2L){case 2:p=m.profiles;(p=p && 0 <= p.indexOf(h)) && (l=m.override);return p;break;}}});A9F=5;break;}}}})().BJa;b.Jy=t;},55891:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.K1=function(f,g,e,h,k,l){var m,r,q,u,v,w;m=new n.Ug();g=h.kPb * Math.pow(g,h.jPb);m.sd=f[0];for(var p=f.length - 1;-1 < p;--p){r=f[p];if(r.yb && r.yb.kb){q=r.yb.kb.Fa;u=r.bitrate;v=h.gba?(0,c.Kqc)(h,r,r.yb,e):void 0;w=u * k < (h.gba?v || q:q) * g;h.Cra && u <= h.eba && (d.l && n.console.log("liveLowQualityAvoidance: ",w,u,q,h.eba,h.w_,u * k * h.w_),q > u * k * h.w_ && (w=!0),d.l && n.console.log(("Stream ").concat(p,": throughput=").concat(q,", bitrate=").concat(u,", playbackRate=").concat(k,", feasible=").concat(w,", live segment ID=").concat(l)));d.l && n.console.log(("Stream ").concat(p,": throughput=").concat(q,", throughput discount=").concat(g,", maxAchievableBitrateWithLatency=").concat(v,", bitrate=").concat(u,", playbackRate=").concat(k,", feasible=").concat(w,", live segment ID=").concat(l));if(w){d.l && n.console.log(("Threshold policy selected stream ").concat(p));m.sd=r;break;}}else n.console.warn("Stream has no throughput statistics");}return m;};d=a(48170);n=a(13550);c=a(61342);},88502:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Koc=function(c,f,g,e){var h;h=1;g=g.Ui(d.u.U);if((0,n.yk)(g))switch(e){case "loose":h=Math.min(1,c / Math.max(f - g.track.Zk.G,g.track.Zk.G));break;default:h=Math.min(1,c / f);}return h;};d=a(65161);n=a(8149);},61342:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Kqc=function(c,f,g,e){var h;h=g.kb.Fa;g=g.jn;f=f.Ui(d.u.U);if((0,n.yk)(f) && (f=f.track.Zk.G,void 0 !== f))return (e=Math.min(e,f) - c.Dyc * g.Fa,void 0 !== g.ng && (e-=c.pra * Math.sqrt(g.ng)),e=Math.max(0,e),h * e / f);};d=a(65161);n=a(8149);},19188:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Pxb=function(f,g){var e,h;f=null === (e=f[f.length - 1]) || void 0 === e?void 0:e.Ui(n.u.U);if(!f)return Infinity;(0,d.assert)((0,c.yk)(f),"Max rate stream must be a live stream");e=null !== (h=f.bitrate) && void 0 !== h?h:Infinity;return Math.max(e / (g.ll / f.track.Zk.G),g.Mzc);};d=a(91176);n=a(65161);c=a(8149);},4272:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(13550);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.Mf=function(g){return new n.Ug(g.Kk.first[0]);};return f;})(a(75498).wz);b["default"]=t;},80588:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=a(75498);n=a(4969);c=a(98301);f=a(71406);a=(function(g){function e(){return null !== g && g.apply(this,arguments) || this;}d.__extends(e,g);e.prototype.Jy=function(h){return (0,f.Jy)(h);};e.prototype.Uq=function(h){return (0,n.Uq)(h);};e.prototype.Mf=function(h){return (0,c.Mf)(h);};return e;})(t.wz);b["default"]=a;},4969:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Uq=void 0;d=a(91176);n=a(13550);c=a(98301);b.Uq=(function(){var D6V;D6V=2;for(;D6V !== 5;){switch(D6V){case 2:var d49="1";d49+="SIY";d49+="bZr";d49+="NJCp9";d49;return {Uq:function(g){var L6f;L6f=2;for(;L6f !== 1;){switch(L6f){case 2:var T04="pl";T04+="a";T04+="y";T04+="ing";return T04 === g.config.T7?(0,c.Mf)(g):f(g);break;}}}};break;}}function f(g){var i4x,q,r,u,p,h,k,l,m;i4x=2;function e(v){var z20,w;z20=2;for(;z20 !== 8;){switch(z20){case 2:w=v.kb;z20=1;break;case 1:z20=!w || (v.bitrate > p?h.oRb:1) * v.bitrate * k.playbackRate > w?5:4;break;case 5:return !1;break;case 4:var Y_M="buff_lt_";Y_M+="his";Y_M+="t";q=Y_M;u=w;return !0;break;}}}for(;i4x !== 27;){switch(i4x){case 10:var u$l="fallback_lowest_acc";u$l+="eptab";u$l+="le_stream";q=u$l;i4x=20;break;case 18:l=new n.Ug();l.sd=m;g.Sa !== m.Sa && (l.reason=q,l.hu=u);return l;break;case 8:r=void 0;r=(0,d.Lm)(l,function(v){var N7V;N7V=2;for(;N7V !== 1;){switch(N7V){case 2:return v.isEqual(m);break;}}});r=Math.max(r,0);r=Math.min(r + (h.lmb?2:1),l.length);i4x=13;break;case 9:i4x=m.kb?8:18;break;case 12:i4x=void 0 === m?11:19;break;case 13:m=(0,d.cc)(l.slice(0,r).reverse(),e);i4x=12;break;case 20:u=null === m || void 0 === m?void 0:m.kb;i4x=18;break;case 11:m=l[0];i4x=10;break;case 5:l=l.first;p=m.bitrate;g=m;i4x=9;break;case 19:var N2y="select_feasi";N2y+="ble_b";N2y+="uf";N2y+="fe";N2y+="ring";q=N2y;i4x=20;break;case 2:var b1o="Must have at leas";b1o+="t o";b1o+="ne sel";b1o+="ected stream";(h=g.config,k=g.player,l=g.Kk,m=g.Wm);(0,d.assert)(m,b1o);i4x=5;break;}}}})().Uq;},98301:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperties(b,{__esModule:{value:!0}});b.HOa=b.Kqa=b.Mf=void 0;t=a(22970);n=t.__importStar(a(17267));c=a(91176);f=a(50468);g=a(13550);e=t.__importDefault(a(62737));h=a(65161);k=a(20880);b.Mf=(d=(function(){var n8A;n8A=2;for(;n8A !== 5;){switch(n8A){case 2:var G72="1SIY";G72+="bZr";G72+="NJCp9";G72;return {Kqa:l,Mf:function(p){var Q7N,T,U,O,Q,z,B,C,D,F,H,E,G,J,L,K,M,P,I,r,q,u,v,w,x,y,A;Q7N=2;for(;Q7N !== 16;){switch(Q7N){case 10:(T=(function(X){var x3M,d9s;x3M=2;for(;x3M !== 4;){switch(x3M){case 2:var T9n="va";T9n+="r";T9n+="iab";T9n+="l";T9n+="e";d9s=q.Awa;x3M=d9s === T9n?1:3;break;case 1:return z.slice(0,X).map(function(Y){var r8Q;r8Q=2;for(;r8Q !== 1;){switch(r8Q){case 2:return [m(q,u.buffer.Rt,Y),0];break;}}});break;case 5:return z.slice(0,X).map(function(Y,W){var w1V;w1V=2;for(;w1V !== 1;){switch(w1V){case 2:return W < D?[q.caa,q.qba]:W === D?[q.baa,q.pba]:[q.daa,q.rba];break;}}});break;case 13:x3M=6;break;case 3:x3M=5;break;}}})(r),U=z.slice(0,r).map(function(X,Y){var O7A=X8rQy;var w80,W;w80=2;for(;w80 !== 5;){switch(w80){case 2:O7A.T2D(13);W=O7A.M4Q(D,Y);return function(){var A8m,Z,aa,ca,da,ha,S,N,V,ba,fa,ia,ka,pa,oa;A8m=2;for(;A8m !== 5;){switch(A8m){case 2:a:{O7A.r4q(0);Z=Math.max(O7A.M4Q(Y,1),0);aa=T[Y][0];ca=T[Y][1];da=u.playbackRate;N=v.fSa(Y,J,aa);V=N.I2a;N=N.K1a;O7A.T2D(1);ba=v.fSa(Z,O7A.M4Q(J,V),ca);Z=ba.I2a;fa=ba.K1a;ba=N[0].stream;ia=null === (ha=fa[0]) || void 0 === ha?void 0:ha.stream;ha=ba.kb || 0;ka=ba.Qa && ba.Qa.length;pa=x?q.Xlc:ka?q.eZ:q.Ylc;pa=W?q.C9:pa;if(I && !I.noa && I.kb >= ha && I.bitrate <= ba.bitrate){oa=!1;}else {W || ka || (ba.Jw=!0);if(!W || !ka)if(ka){if(ha >= Math.max(ba.ky * da,ba.bitrate * da * pa) && ba.Qv){oa=!0;break a;}}else if(ha >= ba.bitrate * da * pa){oa=!0;break a;}da=!q.r8 || ba === C || ba.Ab === C.Ab && w?0:(da=ba.yb) && da.Ih && da.Ih.Fa?da.Ih.Fa + q.n8 * (da.Ih.ng?Math.sqrt(da.Ih.ng):0):0;O7A.r4q(1);ka=O7A.M4Q(aa,ca);aa=(null !== (oa=ba.wv) && void 0 !== oa?oa:0) * aa / ka + (null !== (S=null === ia || void 0 === ia?void 0:ia.wv) && void 0 !== S?S:0) * ca / ka;(oa=l(q,z,N,fa,O,H + da - F,M,G - F,E - F,J,O.length,K,Q,V,Z,P,u.Cna,u.playbackRate,aa)) && oa.result && (B.M$c=oa.uba);I={noa:oa && oa.result,kb:ha,bitrate:ba.bitrate};oa=oa && oa.result;}}return oa;break;}}};break;}}}));(0,c.assert)(U.length === T.length);U[D]()?D + 1 < z.length && L > q.UA && (void 0 === A || p && p > A || E - A > q.XR && L > q.tba) && (y=(0,c.UKa)(z.slice(D + 1,r),function(X,Y){var W8w;W8w=2;for(;W8w !== 1;){switch(W8w){case 2:return U[D + 1 + Y]();break;}}})):y.Qa && y.Qa.length && ((y=(0,c.UKa)(z.slice(0,D),function(X,Y){var F7O;F7O=2;for(;F7O !== 1;){switch(F7O){case 2:return U[Y]();break;case 4:return U[Y]();break;}}})) || (y=z[0]));B.sd=y || C;Q7N=17;break;case 17:return B;break;case 13:v.IK(function(X,Y,W){var H$V,Z;H$V=2;for(;H$V !== 5;){switch(H$V){case 2:void 0 !== W && (X=X[W],null !== (Z=X.Qa) && void 0 !== Z && Z.length || (X.Jw=!0));H$V=5;break;}}});(O=f.Ho.Tma(u.buffer.Qa),Q=u.buffer.Rt - O.ma);r=(q.Fea || x) && L >= q.gga?z.length:D + 2;Q7N=10;break;case 7:var l61="Selected";l61+=" stream not f";l61+="ound i";l61+="n stream l";l61+="ist";(z=v.first,B=new g.Ug(),C=y,D=(0,c.Lm)(z,function(X){var o0G;o0G=2;for(;o0G !== 1;){switch(o0G){case 2:return X.isEqual(y);break;}}}));X8rQy.T2D(14);(0,c.assert)(X8rQy.M4Q(0,D),l61);(F=u.buffer.Gb,H=u.buffer.Cd,E=u.buffer.Lk,G=u.buffer.cl,J=u.Te,L=G - H,K=u.state === h.Ub.rg || u.state === h.Ub.Oi?u.buffer.qw:0,M=q.xH,P=null !== (r=q.VA) && void 0 !== r?r:1E3);Q7N=13;break;case 9:var K61="num";K61+="b";K61+="er";var L_k="n";L_k+="um";L_k+="b";L_k+="e";L_k+="r";(0,c.assert)(L_k === typeof u.buffer.Rt);(0,c.assert)(K61 === typeof u.Cna);Q7N=7;break;case 4:var S3I="inval";S3I+="id play";S3I+="er fragme";S3I+="n";S3I+="tIndex";void 0 === u.Te && (u.Te=0);(0,c.assert)(n.pc(u.Te),S3I);Q7N=9;break;case 2:var P4X="Must have a se";P4X+="l";P4X+="ect";P4X+="ed stream";(q=p.config,u=p.player,v=p.Kk,w=p.haa,x=p.kZ,y=p.Wm,A=p.kra);p=p.gVa;(0,c.assert)(y,P4X);Q7N=4;break;}}},HOa:m};break;}}function l(p,r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L){var O7$,K,M,P,I,O,Q,T;O7$=2;for(;O7$ !== 16;){switch(O7$){case 2:var p9R="Firs";p9R+="t stream undefin";p9R+="ed";void 0 === L && (L=0);r=q[0].stream;M=null === (K=u[0]) || void 0 === K?void 0:K.stream;(0,c.assert)(r,p9R);K=r.kb;O7$=8;break;case 8:(P=y - w,I=v.length,O=r.Qa && r.Qa.length,Q=(null === M || void 0 === M?void 0:M.Qa) && (null === M || void 0 === M?void 0:M.Qa.length));X8rQy.r4q(6);(0,c.assert)(X8rQy.M4Q(I,B));p.vba && (E=Math.min(E,P));O7$=14;break;case 14:O7$=!K || K < r.bitrate * J * p.aaa || !O?13:12;break;case 13:return !1;break;case 12:Q || (M=r);T=new k.Cgb(v);F=Math.max(0,Math.min(F,r.Qa.length - z));O7$=20;break;case 20:H=Math.max(0,Math.min(H,M.Qa.length - z - F));q.forEach(function(U){var m8L,X,Y;m8L=2;for(;m8L !== 4;){switch(m8L){case 2:(X=U.stream,Y=U.blocks);U=U.Te;n.pc(U) && X.Qa && T.add(X.Qa.CB.subarray(U,U + Y));m8L=4;break;}}});O7$=18;break;case 18:u.forEach(function(U){var B$J,X,Y;B$J=2;for(;B$J !== 4;){switch(B$J){case 1:U=U.Te;0 < H && n.pc(U) && X.Qa && T.add(X.Qa.CB.subarray(U,U + Y));B$J=4;break;case 2:(X=U.stream,Y=U.blocks);B$J=1;break;}}});return 0 < F || 0 < H?(0,e.default)({znc:T,blocks:B + F + H,Cd:w,cl:y,qRc:x,qw:C,Lk:A,Te:B,Umc:B + F,Cna:G,rvb:D,kb:(K - L) / J,tCc:E,oy:p.oy,Sjc:!1}):K > r.ky?{result:!0,uba:0,Qv:!0}:{result:!1,uba:0,Qv:!0};break;}}}function m(p,r,q){var p6M,u;p6M=2;for(;p6M !== 3;){switch(p6M){case 1:return p.xEb;break;case 5:u=(q.kfa || q.kb) / q.kb;return 1 >= u?p.esa:Math.min(Math.max((p.mRc * Math.min(8 * r / q.bitrate,p.wH) - p.VA) / (u - 1),p.xEb),p.esa);break;case 2:p6M=!q.kb?1:5;break;}}}})(),d.Mf);b.Kqa=d.Kqa;b.HOa=d.HOa;},71406:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.Lwc=b.Jy=void 0;t=a(22970);d=t.__importStar(a(17267));n=a(91176);c=a(65161);f=a(88318);t=t.__importStar(a(65167));g=a(13550);e=t.hRc;a=(function(){function k(x,y,A){var v25;v25=2;for(;v25 !== 5;){switch(v25){case 2:x=(0,g.Unb)(A.zp,x * A.gS);return (0,g.OEb)(x,y);break;}}}function v(x,y,A){var W7E,z,B;W7E=2;for(;W7E !== 4;){switch(W7E){case 2:(z=new g.Ug(),B=Math.max(x.ny,x.lS));z.sd=(0,n.cc)(A.filter(function(C){var L3m;L3m=2;for(;L3m !== 1;){switch(L3m){case 2:return q(C,x);break;}}}).reverse(),function(C){var S2F,F,D;S2F=2;for(;S2F !== 6;){switch(S2F){case 4:F=l(x,C);S2F=3;break;case 3:var c4x="hi";c4x+="st_b";c4x+="u";c4x+="fftime";k(C,D,x) <= F?(z.hu=D,z.reason=c4x,D=!0):D=!1;S2F=9;break;case 5:S2F=(C=C.bitrate * y.playbackRate,D)?4:8;break;case 1:S2F=C.bitrate > B?5:7;break;case 8:D=!1;S2F=9;break;case 7:var t5t="no_his";t5t+="torical_lte_";t5t+="minbitrate";var m8Z="his";m8Z+="t_tpu";m8Z+="t_";m8Z+="lt_minbitrate";var N7p="l";N7p+="t_hist_lte_minbitrat";N7p+="e";D && C.bitrate * y.playbackRate <= D?(z.hu=D,z.reason=N7p,D=!0):D?(z.hu=D,z.reason=m8Z,D=!1):(z.reason=t5t,D=!0);S2F=9;break;case 2:D=C.kb;S2F=1;break;case 9:return D;break;}}}) || A[0];return z;break;}}}function l(x,y){var V2X,A,z;V2X=2;for(;V2X !== 13;){switch(V2X){case 3:V2X=-1 === z?9:8;break;case 2:V2X=x.fL?1:14;break;case 1:(A=x.fL,z=(0,n.Lm)(A,function(B){var K_6;K_6=2;for(;K_6 !== 1;){switch(K_6){case 4:return y >= B.r;break;case 2:return y <= B.r;break;}}}));V2X=5;break;case 6:return Math.floor(x.d + (A.d - x.d) * (y - x.r) / (A.r - x.r));break;case 4:return A[0].d;break;case 5:V2X=0 === z?4:3;break;case 14:return x.As;break;case 8:X8rQy.T2D(0);x=A[X8rQy.I83(z,1)];A=A[z];V2X=6;break;case 9:return A[A.length - 1].d;break;}}}function m(x,y){var i9w=X8rQy;var U$o,A;U$o=2;for(;U$o !== 9;){switch(U$o){case 5:A=y.OM;U$o=4;break;case 14:A=y.OM;U$o=6;break;case 4:return (A=y.bMb[A]) && 2 === A.length?1E3 * (A[0] + A[1] * Math.log(1 + x)):y.As;break;case 1:var d7J="l";d7J+="o";d7J+="g";U$o=0 === y.OM.lastIndexOf(d7J,0)?5:3;break;case 3:var p_p="s";p_p+="i";p_p+="gm";p_p+="oi";p_p+="d";return 0 === y.OM.lastIndexOf(p_p,0)?(A=y.OM,(A=y.bMb[A]) && 2 === A.length?1E3 * (A[0] + A[1] * e(x)):y.As):y.As;break;case 2:i9w.T2D(0);var y_O=i9w.I83(1700000,1600000);i9w.r4q(15);var j32=i9w.I83(981,11,9791);x=(0,g.vma)(x,0,y_O) / j32;U$o=1;break;}}}function u(x,y,A,z,B,C){var Y6z;Y6z=2;for(;Y6z !== 4;){switch(Y6z){case 2:var A7Z="no";A7Z+="_v";A7Z+="a";A7Z+="lid_Bitrate";var z$W="no_val";z$W+="i";z$W+="d_V";z$W+="MAF";var G6F="no_va";G6F+="lid_DelayTa";G6F+="rg";G6F+="et";X8rQy.r4q(13);y=X8rQy.I83(B,z);x=A?x.Pb >= C.jw && x.Pb <= C.RDb:r(x,C) && q(x,C);return (C=y && x)?{noa:C}:{noa:C,reason:x?G6F:A?z$W:A7Z};break;}}}function w(x,y){var W8n,A;W8n=2;for(;W8n !== 4;){switch(W8n){case 2:y.some(function(z){var D9S,B;D9S=2;for(;D9S !== 4;){switch(D9S){case 2:B=z.profiles;(B=B && 0 <= B.indexOf(x)) && (A=z.override);return B;break;}}});return A;break;}}}var K0K;K0K=2;for(;K0K !== 5;){switch(K0K){case 2:var h0n="1SI";h0n+="YbZrNJ";h0n+="C";h0n+="p";h0n+="9";h0n;return {BJa:function(x){var C5H,y,A,z;C5H=2;for(;C5H !== 4;){switch(C5H){case 5:return y.UW?p(y,A,x,z):v(y,A,x,z);break;case 2:(y=x.config,A=x.player,z=x.Wm);x=x.Kk.first;C5H=5;break;}}},Z2b:u};break;}}function q(x,y){var d2N,A,z;d2N=2;for(;d2N !== 9;){switch(d2N){case 12:return (x.wv?x.wv >= A:~3) || y;break;case 3:return (x.wv?x.wv <= A:!0) && y;break;case 2:(A=x.Ui(c.u.X))?(A=A.Uc,A=y && y.Mp && 0 <= y.Mp.indexOf(A)?w(A,y.rI):w(A,y.Hla)):A=void 0;A=A?null !== (z=A.maxInitAudioBitrate) && void 0 !== z?z:y.tu:y.tu;y=x.ot?x.ot <= y.WA:!0;d2N=3;break;}}}function h(x,y){var t1p,B,A,z;t1p=2;for(;t1p !== 11;){switch(t1p){case 7:t1p=(B=d.pc(y.cwa) && 0 <= y.cwa && 100 >= y.cwa && z)?6:14;break;case 8:t1p=7;break;case 14:var X4l="hist_";X4l+="thro";X4l+="ug";X4l+="hpu";X4l+="t";var D8w="hist";D8w+="_";D8w+="tdi";D8w+="ge";D8w+="st";B && z.Ek?(x=z.Ek(y.cwa / 100) || A.sd.kb,A.reason=D8w):A.sd.kb && (x=A.sd.kb,A.reason=X4l);A.hu=x;return A;break;case 4:A.yb=z;x=0;z=null === z || void 0 === z?void 0:z.ul;t1p=8;break;case 2:A=new g.Ug();A.sd=x;z=A.sd.yb;t1p=4;break;case 6:(B=f.mhb.yrc(z),d.Yx(B)?(z.Ek=B,B=!0):B=!1);t1p=14;break;}}}function p(x,y,A){var b1T,D,F,H,z,B,C;b1T=2;for(;b1T !== 19;){switch(b1T){case 5:D=A[C];B=h(D,x);(F=k(D.bitrate * y.playbackRate,B.hu,x),H=m(B.hu,x));b1T=9;break;case 1:b1T=0 <= C && (z?A[C].Pb >= x.jw:r(A[C],x))?5:11;break;case 13:B.reason=H;b1T=12;break;case 12:C--;b1T=1;break;case 9:H=u(D,B.hu,z,F,H,x);D=H.noa;H=H.reason;B.YZ=F;b1T=14;break;case 2:(z=!!x.jw && !!x.RDb && A.every(function(E){var b9m;b9m=2;for(;b9m !== 1;){switch(b9m){case 4:return E.Pb || 411 <= E.Pb;break;case 2:return E.Pb && 110 >= E.Pb;break;}}}),B=null,C=A.length - 1);b1T=1;break;case 11:var x0p="fal";x0p+="lback_no_accepta";x0p+="bl";x0p+="e_stream";var W3K="below_min";W3K+="InitV";W3K+="ide";W3K+="oBitrate";d.rd(B) && !r(A[C],x) && (B=h(A[C],x),B.reason=W3K);d.rd(B) && (B=h(A[0],x),B.reason=x0p);return B;break;case 14:b1T=D?11:13;break;}}}function r(x,y){var W6x,A;W6x=2;for(;W6x !== 5;){switch(W6x){case 2:A=x.ot?x.ot >= y.ny:!0;return (x.wv?x.wv >= y.my:!0) && A;break;}}}})();t=a.Z2b;b.Jy=a.BJa;b.Lwc=t;},62737:function(t,b,a){var P0j="d";P0j+="e";P0j+="f";P0j+="ault";var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);a(91176);n=a(13550);b[P0j]=(function(){var s8V;s8V=2;for(;s8V !== 1;){switch(s8V){case 2:return {y4b:function(c){var Q2F=X8rQy;var E4J,H,E,G,J,L,K,M,D,F,C,f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B;E4J=2;for(;E4J !== 50;){switch(E4J){case 30:E4J=D < x?29:28;break;case 31:Q2F.T2D(0);D=Q2F.I83(m,e);E4J=30;break;case 53:E4J=(D=Math.max(m - e,0),D < w && D < C)?52:28;break;case 52:return (c && l.push(D / (y / 1E3)),d.__assign({result:!1,uba:Math.min(D,h) / (y / 1E3),Qv:!0},c && ({Zla:l})));break;case 20:0 === m && (e=0);Q2F.r4q(3);e*=Q2F.I83(1E3,y);Q2F.T2D(3);m*=Q2F.M4Q(1E3,y);Q2F.r4q(3);x*=Q2F.M4Q(1E3,y);E4J=16;break;case 43:u-=p;E4J=42;break;case 16:Q2F.r4q(3);w*=Q2F.I83(1E3,y);Q2F.r4q(3);z*=Q2F.I83(1E3,y);D=d.__read(f.jrc(p),2);B=D[0];E4J=25;break;case 25:(H=D[1],E=f.L$(B),G=f.zZ(B),J=0,L=f.L$(J),K=f.zZ(J),M=A - p);E4J=24;break;case 7:var U9t=" >= ";U9t+="f";U9t+="ragmen";U9t+="tsLength: ";var a1j="Stream";a1j+="in";a1j+="gIndex";a1j+=":";a1j+=" ";g=0;D=f.zZ(0)[0];Q2F.T2D(16);k=Q2F.M4Q(1E3,D,k,y);Q2F.r4q(17);v=Q2F.M4Q(8,v,0);Q2F.r4q(3);F=Q2F.I83(1E3,y);p >= A && n.console.error(a1j + p + U9t + A);e+=B;E4J=20;break;case 3:l=[];h=Infinity;C=0;E4J=7;break;case 24:E4J=M?23:51;break;case 42:E4J=k < e && g < H?41:40;break;case 41:(u+=L[g],++g,g >= L.length && ++J < f.length && (L=f.L$(J),K=f.zZ(J),g=0));E4J=42;break;case 33:E4J=u < C?32:31;break;case 38:H >= E.length && ++B < f.length && (r-=E.length,E=f.L$(B),G=f.zZ(B),H=0);c && l.push(D / (y / 1E3));C=D;E4J=54;break;case 28:Q2F.r4q(18);e+=Q2F.I83(v,p,F,0);m+=A;E4J=43;break;case 35:E4J=u < p?34:53;break;case 40:++H;E4J=39;break;case 51:return d.__assign({result:!0,uba:h / (y / 1E3),Qv:!0},c && ({Zla:l}));break;case 23:M--;p=E[H];A=G[H];E4J=35;break;case 39:E4J=H >= r && D > z?51:38;break;case 34:C=Math.max(p,q);E4J=33;break;case 2:var i_P="1";i_P+="SIYb";i_P+="ZrNJ";i_P+="C";i_P+="p9";(f=c.znc,g=c.blocks,e=c.Cd,h=c.cl,k=c.qRc,l=c.qw,m=c.Lk,p=c.Te,r=c.Umc,q=c.Cna,u=c.rvb,v=c.kb,w=c.tCc,x=c.oy);c=c.Sjc;i_P;(y=f.O,A=Math.min(f.Anc,g),z=h - e,B=8 * l / v | 0);E4J=3;break;case 54:h=Math.min(D,h);E4J=24;break;case 32:(e=k,u+=L[g],++g,g >= L.length && ++J < f.length && (L=f.L$(J),K=f.zZ(J),g=0),D=K[g],k+=D);E4J=33;break;case 29:return (c && l.push(D / (y / 1E3)),d.__assign({result:!1,uba:D / (y / 1E3),Qv:!1},c && ({Zla:l})));break;}}}};break;}}})().y4b;},14087:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(13550);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.Mf=function(g){g=g.Kk.first.filter(function(e){return e.Hq;});return g.length?new n.Ug(g[Math.floor(Math.random() * g.length)]):new n.Ug();};return f;})(a(75498).wz);b["default"]=t;},3447:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(91176);c=a(13550);t=(function(f){function g(){return null !== f && f.apply(this,arguments) || this;}d.__extends(g,f);g.prototype.Mf=function(e){var h,k,l,m,p,r;h=e.config;k=e.Wm;l=e.$Bb;m=e.Kk.first;p=e.player.buffer.Lk;e="forward" === h.MNc;if(void 0 === k)return (k=e?m[(0,c.hZ)(m)]:m[(0,c.hZ)(m,m.length)],new c.Ug(k));if(!k.jH){r=(0,n.Lm)(m,function(q){return q.isEqual(k);});r=(0,c.hZ)(m,r);k=m[r];}if(!k)return new c.Ug();if(void 0 === l || p > l + h.dUc){l=m.filter(function(q){return q.Hq;});if(!l.length)return new c.Ug();h=(0,n.Lm)(l,function(q){return q.isEqual(k);});h=(l.length + h + (e?1:-1)) % l.length;return new c.Ug(l[h]);}return new c.Ug(k);};return g;})(a(75498).wz);b["default"]=t;},21875:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=a(66164);n=a(91176);c=a(13550);a=a(75498);g=[];e=[];t.platform.zac && (t.platform.zac.Lp={Tb:function(){f=void 0;g=[];e=[];},K1:function(h){f=h;},V8c:function(){return {all:g,qRb:e};}});a=(function(h){function k(){return null !== h && h.apply(this,arguments) || this;}d.__extends(k,h);k.prototype.Mf=function(l){var m;m=l.Wm;g=l=l.Kk.first;if(void 0 === f)return (m=(0,c.hZ)(l),f=l[m].bitrate,new c.Ug(l[m]));if(!l.length)return new c.Ug();m=(0,n.cc)(l,function(p){return p.bitrate === f;});return void 0 === m?(c.console.log("Defaulting to first stream due to unvalid bitrate requested: " + f),new c.Ug(l[0])):new c.Ug(m);};return k;})(a.wz);b["default"]=a;},19787:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(91176);c=a(48170);f=a(13550);t=a(75498);t=(function(g){var w_X;w_X=2;for(;w_X !== 4;){switch(w_X){case 2:d.__extends(e,g);e.prototype.Mf=function(h){var A0l,r,q,u,v,p,k,l,m;A0l=2;for(;A0l !== 27;){switch(A0l){case 12:(r=p.yb.kb.Fa,q=k.$Tc,u=p.bitrate,v=u < r - q);A0l=11;break;case 17:var p6C="Threshold policy select";p6C+="ed stream 0 (no";p6C+=" feasible streams).";l.sd=m[0];c.l && f.console.log(p6C);return l;break;case 11:var N_F=", f";N_F+="eas";N_F+="ible=";var N3U=",";N3U+=" threshold";N3U+="=";var G5E=",";G5E+=" ";G5E+="bitrat";G5E+="e";G5E+="=";var t4g=": th";t4g+="ro";t4g+="ug";t4g+="hput=";var w46="S";w46+="t";w46+="r";w46+="ea";w46+="m ";c.l && f.console.log(w46 + h + t4g + r + G5E + u + N3U + q + N_F + v);A0l=10;break;case 20:var Q$4="Threshol";Q$4+="d poli";Q$4+="cy selected stream ";return (c.l && f.console.log(Q$4 + h),l.sd=p,l);break;case 14:p=m[h];A0l=13;break;case 6:A0l=-1 < h?14:17;break;case 2:var G3B="Pla";G3B+="y";G3B+="back stre";G3B+="am selec";G3B+="tion";var I0q="pla";I0q+="yer missing frag";I0q+="mentI";I0q+="ndex";var j7O="n";j7O+="u";j7O+="m";j7O+="ber";var V7r="Must have at";V7r+=" least one select";V7r+="e";V7r+="d stream";(k=h.config,l=h.player,m=h.Kk);h=h.Wm;(0,n.assert)(h,V7r);(0,n.assert)(j7O === typeof l.Te,I0q);c.l && f.console.log(G3B);A0l=9;break;case 10:A0l=v?20:19;break;case 13:A0l=p.yb && p.yb.kb?12:18;break;case 18:var t5U=". ";t5U+="Ski";t5U+="pp";t5U+="in";t5U+="g.";var S6P="Cannot obtain tput stats";S6P+=" ";S6P+="f";S6P+="or stream ";c.l && f.console.log(S6P + h + t5U);A0l=19;break;case 19:--h;A0l=6;break;case 9:l=new f.Ug(h);m=m.first;A0l=7;break;case 7:X8rQy.r4q(19);var t_L=X8rQy.M4Q(52,15,3,14,16);h=m.length - t_L;A0l=6;break;}}};return e;break;}}function e(){var G3z,h;G3z=2;for(;G3z !== 4;){switch(G3z){case 2:var N9X="1SI";N9X+="YbZrNJCp";N9X+="9";h=g.call(this) || this;N9X;G3z=5;break;case 5:return h;break;}}}})(t.wz);b["default"]=t;},3082:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.z8b=b.lea=void 0;d=a(21875)["default"];b.lea={first:function(){return a(58223)["default"];},random:function(){return a(14087)["default"];},optimized:function(){return a(80588)["default"];},roundrobin:function(){return a(3447)["default"];},selectaudio:function(){return a(32028)["default"];},selectaudioadaptive:function(){return a(70753)["default"];},"default":function(){return a(80588)["default"];},lowest:function(){return a(4272)["default"];},highest:function(){return a(63499)["default"];},throughputthreshold:function(){return a(19787)["default"];},replay:function(){return a(52255)["default"];},checkdefault:function(){return a(32966)["default"];},livesimple:function(){return a(65114)["default"];},testscript:function(){return d;}};b.z8b=["selectaudio","selectaudioadaptive"];},20880:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Cgb=void 0;t=(function(){function a(d){this.CB=[];this.CB.push(d);}Object.defineProperties(a.prototype,{O:{get:function(){return this.CB[0].O;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{length:{get:function(){return this.CB.length;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{Anc:{get:function(){var d;return null !== (d=this.F2b) && void 0 !== d?d:this.F2b=this.CB.reduce(function(n,c){return n + c.length;},0);},enumerable:!1,configurable:!0}});a.prototype.zZ=function(d){return this.CB[d].fg;};a.prototype.L$=function(d){return this.CB[d].sizes;};a.prototype.add=function(d){this.CB.push(d);};a.prototype.jrc=function(d){var c;for(var n=0;0 <= d;){c=this.CB[n];if(d < c.length)break;n++;d-=c.length;}return [n,d];};return a;})();b.Cgb=t;},95591:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.FGa=void 0;d=a(22970);n=a(91562);a(52571);a(13550);t=(function(){function c(f,g,e,h){this.fg=f;this.sizes=g;this.O=e;this.length=Math.min(f.length,g.length);this.$e=h;}Object.defineProperties(c.prototype,{ma:{get:function(){return void 0 !== this.$e?this.$e:this.$e=this.R1b();},enumerable:!1,configurable:!0}});c.prototype.subarray=function(f,g){return new c(this.fg.subarray(f,g),this.sizes.subarray(f,g),this.O);};c.prototype.concat=function(){var e,h;for(var f=[],g=0;g < arguments.length;g++)f[g]=arguments[g];g=[this];f=g.concat.apply(g,d.__spreadArray([],d.__read(f),!1));g=f.reduce(function(k,l){return k + l.length;},0);e=new Uint32Array(g);h=new Uint32Array(g);g=f[0].O;f.reduce(function(k,l){n.nHa.set(e,l.fg,k);n.nHa.set(h,l.sizes,k);return k + l.length;},0);return new c(e,h,g);};c.prototype.R1b=function(){for(var f=this.sizes,g=this.length,e=0,h=0;h < g;++h)e+=f[h];return e;};return c;})();b.FGa=t;},75498:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.wz=void 0;t=(function(){function a(){}a.prototype.Jy=function(d){return this.Mf(d);};a.prototype.Uq=function(d){return this.Mf(d);};a.prototype.$Lb=function(d){return this.Uq(d);};a.prototype.ZLb=function(d){return this.Mf(d);};return a;})();b.wz=t;},16096:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;Object.defineProperties(b,{__esModule:{value:!0}});b.O5=void 0;t=a(22970);d=a(66164);n=a(91176);c=a(65161);f=a(62156);g=t.__importDefault(a(29340));e=a(33923);a(52571);h=a(8149);k=a(3082);l=a(35479);m=a(13550);a(87775);a(15050);p=a(94320);r=a(79305);q=a(18048);a(71915);u=a(86268);a(79321);a(29480);v=a(13103);w=a(24757);a(79257);x=a(32966);new d.platform.Console("ASEJS_STREAM_SELECTOR","media|asejs");a=(function(){var G7W;G7W=2;for(;G7W !== 7;){switch(G7W){case 2:y.prototype.uk=function(){var z8h;z8h=2;for(;z8h !== 1;){switch(z8h){case 4:return this.Co;break;case 2:return this.Co;break;}}};y.prototype.XMb=function(A){var w_f;w_f=2;for(;w_f !== 1;){switch(w_f){case 2:this.Co=A;w_f=1;break;}}};G7W=5;break;case 9:y.prototype.Zca=function(A,z,B,C){var i3P,D,F,H;i3P=2;for(;i3P !== 5;){switch(i3P){case 2:D=this;A.IK(function(E){var m6w;m6w=2;for(;m6w !== 1;){switch(m6w){case 2:(0,n.lZ)(E,function(G){var E8V;E8V=2;for(;E8V !== 1;){switch(E8V){case 2:G.Hq && G.yb && G.yb.confidence?(F !== G.yb && (F=G.yb,H=C(G.yb,B,z,G.track.M.ML[c.u.X])),G.kb=Math.floor(H.lower) || 1,G.kfa=Math.floor(H.upper || 1) || 1):G.kb=D.config.ohc;E8V=1;break;}}});m6w=1;break;}}});i3P=5;break;}}};return y;break;case 5:y.prototype.K1=function(A,z,B,C,D,F,H){var j5D,M0Y,E,G,J,L,K,M,P,I,O,Q,T,U;j5D=2;for(;j5D !== 22;){switch(j5D){case 8:M0Y=A.state;j5D=M0Y === c.Ub.Bl?7:17;break;case 20:var Z7H="pl";Z7H+="ayi";Z7H+="n";Z7H+="g";var q5s="min_fra";q5s+="gmen";q5s+="t_vmaf";(this.Co.ST(G),(0,r.ZVa)(z.first,G,K.cl - K.Cd,this.config.Zsb,this.config.KNb,this.config.T_),E.nM=G.kb || 0,E.yb=G.yb,E.reason && (G.Gu=E.reason,q5s !== E.reason && (G.n0a=E.hu,G.YZ=E.YZ,G.ZSa=null === (J=E.yb) || void 0 === J?void 0:J.dX,G.$Sa=null === (L=E.yb) || void 0 === L?void 0:L.ul)),z=(0,u.VDb)({buffer:K,player:A,MG:H,haa:D,Ora:I[0],sd:G,Jxa:(0,u.etc)(I,G),rxa:I[I.length - 1],E0:this.E0}),E.rn=z || E.rn,Q && !O && G.bitrate < Q.bitrate && (this.zF=K.Lk),A.state !== c.Ub.rg && A.state !== c.Ub.Oi?(Q=(0,f.jIb)(A.state),F=this.Yz(A.buffer,Q,A.playbackRate,G,F),(E.Pm=F.complete)?E.CLa=F.reason:(E.Pm=!1,E.EM=F.EM,E.sba=F.sba,E.progress=F.progress)):(E.Pm=!0,E.CLa=Z7H));j5D=19;break;case 2:(K=null === A || void 0 === A?void 0:A.buffer,M=d.platform.time.ha(),P=this.config,I=z.first);(0,p.epb)(z.first);(O=(0,w.iWa)(P.rFb,A,z.first,this.Co.il),Q=O.Wm);O=O.kZ;A.state === c.Ub.Bl && (this.AF=this.zF=void 0);j5D=9;break;case 27:C=this.tv.$Lb;j5D=6;break;case 19:A.HY && G && (0,g.default)((0,q.uIb)(G,K,A,M,this.config.tJa),E);return E;break;case 16:C=this.tv.Uq;j5D=6;break;case 10:j5D=(G=E.sd)?20:19;break;case 9:void 0 !== C && this.Zca(z,A.state,A.buffer,C);j5D=8;break;case 6:(0,h.yk)(I[0]) && (this.Co.$v=(0,m.$v)(A,I[0].track.Zk.G,P.ll,this.Co.$v));(T=z.xUc(),U=Q?(0,e.M1a)(Q):void 0);B=C.call(this.tv,{config:P,player:A,Kk:T,Wm:U,haa:!!D,kZ:O,rGc:B,$v:this.Co.$v,kra:this.zF,gVa:this.AF,$Bb:Math.max(null !== (E=this.zF) && void 0 !== E?E:0,null !== (G=this.AF) && void 0 !== G?G:0)});E=(0,v.Wcc)(B);E.wh=A.state;j5D=10;break;case 26:j5D=M0Y === c.Ub.Oi?25:24;break;case 23:C=this.tv.Mf;j5D=6;break;case 15:j5D=M0Y === c.Ub.wm?27:26;break;case 7:C=this.tv.Jy;j5D=6;break;case 17:j5D=M0Y === c.Ub.Pf?16:15;break;case 25:C=this.tv.ZLb;j5D=6;break;case 24:j5D=23;break;}}};y.prototype.Yz=function(A,z,B,C,D){var S_3;S_3=2;for(;S_3 !== 1;){switch(S_3){case 2:return (0,x.Yz)(A,z,B,(0,e.M1a)(C),D,this.config);break;}}};y.prototype.yOb=function(A,z,B){var t4Z;t4Z=2;for(;t4Z !== 1;){switch(t4Z){case 2:var t7S="u";t7S+="n";t7S+="d";t7S+="efined";t7S !== typeof z?z.bitrate < B.bitrate && (this.AF=A):this.zF=this.AF=void 0;t4Z=1;break;}}};G7W=9;break;}}function y(A,z,B,C){var Y3I,D;Y3I=2;for(;Y3I !== 6;){switch(Y3I){case 2:var q2Y="1SIY";q2Y+="bZr";q2Y+="NJCp";q2Y+="9";this.dwa=A;this.config=z;this.Co=B;q2Y;Y3I=9;break;case 9:var V5f="d";V5f+="e";V5f+="f";V5f+="ault";A || (A=z.Vwa);this.tv=new ((k.lea[A] || k.lea[V5f])())();C && (this.E0=new l.WV(z,null === (D=B.track) || void 0 === D?void 0:D.mediaType));Y3I=6;break;}}}})();b.O5=a;},44284:function(t,b,a){var n,c,f,g;function d(e,h,k){var l;l=(0,c.Lm)(e,function(m){return k && m.Pb?m.Pb > k:m.bitrate > h;});l=0 < l?l - 1:0 === l?0:e.length - 1;return e[l];}Object.defineProperties(b,{__esModule:{value:!0}});b.eCa=b.hHa=void 0;b.Sxb=d;n=a(22970);c=a(91176);f=a(33923);t=(function(){function e(){this.GB=[];}Object.defineProperties(e.prototype,{first:{get:function(){var h;return null === (h=this.GB[0]) || void 0 === h?void 0:h.Ed;},enumerable:!1,configurable:!0}});e.prototype.wP=function(h){this.GB.push({Ed:h});};e.prototype.IK=function(h){this.GB.forEach(function(k,l){return h(k.Ed,l);});};e.prototype.fvb=function(h){this.IK(function(k){k.forEach(function(l,m){return h(l,m);});});};e.prototype.fSa=function(h,k,l){var m,p,r,q,u,v,w;m=l;p=k;r=0;q=[];u=this.first[h];v=u.Pb;w=u.bitrate;this.GB.forEach(function(x,y){var A,z;x=x.Ed;0 >= m || (y=0 === y?u:d(x,w,v),x=null === (A=y.Qa) || void 0 === A?void 0:A.Nma(p,m),A=null !== (z=null === x || void 0 === x?void 0:x.blocks) && void 0 !== z?z:0,r+=A,q.push({stream:y,blocks:A,Te:p}),null === x || void 0 === x?!0:!x.l1) || (p=0,m-=x.l1);});return {K1a:q,I2a:r};};e.prototype.xUc=function(){var h,k;h=new g();k=this.GB.map(function(l){var m;m=l.Ed.map(function(p){return (0,f.M1a)(p);});return n.__assign(n.__assign({},l),{Ed:m});});h.jQc(k);return h;};return e;})();b.hHa=t;g=(function(){function e(){this.GB=[];}Object.defineProperties(e.prototype,{first:{get:function(){var h;return null === (h=this.GB[0]) || void 0 === h?void 0:h.Ed;},enumerable:!1,configurable:!0}});e.prototype.wP=function(h){this.GB.push({Ed:h});};e.prototype.IK=function(h){this.GB.forEach(function(k,l){return h(k.Ed,l);});};e.prototype.fvb=function(h){this.IK(function(k){k.forEach(function(l,m){return h(l,m);});});};e.prototype.jQc=function(h){this.GB=n.__spreadArray([],n.__read(h),!1);};e.prototype.fSa=function(h,k,l){var m,p,r,q,u,v,w;m=l;p=k;r=0;q=[];u=this.first[h];v=u.Pb;w=u.bitrate;this.GB.forEach(function(x,y){var A,z;x=x.Ed;0 >= m || (y=0 === y?u:d(x,w,v),x=null === (A=y.Qa) || void 0 === A?void 0:A.Nma(p,m),A=null !== (z=null === x || void 0 === x?void 0:x.blocks) && void 0 !== z?z:0,r+=A,q.push({stream:y,blocks:A,Te:p}),null === x || void 0 === x?!0:!x.l1) || (p=0,m-=x.l1);});return {K1a:q,I2a:r};};e.prototype.toJSON=function(){return {};};return e;})();b.eCa=g;},79321:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Z4c=function(c,f,g){(0,d.assert)(void 0 !== c.buffer.Rt && 0 < c.buffer.Rt,"Buffer capacity must be > 0");f.IK(function(e){(0,d.assert)(0 < e.length,"Stream list is empty");});f.fvb(function(e){(0,d.assert)(e.Hq,"Stream isUsable is false");});(0,d.assert)(0 < c.playbackRate,"invalid playback rate");(0,d.assert)("undefined" === typeof g === (c.state === n.Ub.Bl),"player must be in starting state when there is no prior selection");(0,d.assert)("undefined" !== typeof g === (c.state !== n.Ub.Bl),"player cannot be in starting state when there is a prior selection");};d=a(52571);n=a(65161);},71915:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.$4c=function(n){(0,d.assert)("object" === typeof n,"Result is not an object");n && null !== n.sd && ((0,d.assert)("number" === typeof n.bNc,"Result required buffering length is not a number"),(0,d.assert)("number" === typeof n.mEc,"Result number of predicted rebuffers is not a number"));};d=a(52571);},94320:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.epb=function(a){a.forEach(function(d){return d.Jw=!1;});};},13103:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Wcc=function(n){var c;return d.__assign(d.__assign({},n),{sd:null === (c=n.sd) || void 0 === c?void 0:c.Kf});};d=a(22970);},7327:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.PG=function(a,d,n){return d && void 0 !== n && !isNaN(n) && 0 <= n && n < d.length?d.$s(n):a.Lk;};},29480:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.p$c=function(c){var f,g,e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B;z=c.un;if(c.mediaType === n.u.X){B=c.track.Tj;d.IR.log({un:z,type:"STREAM_SELECTION",bitrate:(0,d.vL)(c.bitrate),mediaType:"AUDIO",Xc:B.f8,language:B.language,WR:null !== (f=c.location) && void 0 !== f?f:d.yh,Th:null !== (e=null === (g=c.Ab) || void 0 === g?void 0:g.toString()) && void 0 !== e?e:d.yh,channels:B.channels,kb:(0,d.vL)(null !== (h=c.kb) && void 0 !== h?h:-1),lPb:1});}else c.mediaType === n.u.U?(B=c.track.Tj,d.IR.log({un:z,type:"STREAM_SELECTION",mediaType:"VIDEO",bitrate:(0,d.vL)(c.bitrate),Xc:c.profile,height:null !== (k=c.CT) && void 0 !== k?k:-1,width:null !== (l=c.G_a) && void 0 !== l?l:-1,WR:null !== (m=c.location) && void 0 !== m?m:d.yh,Th:null !== (r=null === (p=c.Ab) || void 0 === p?void 0:p.toString()) && void 0 !== r?r:d.yh,Pb:null !== (q=c.Pb) && void 0 !== q?q:-1,framerate:B.Mba / B.Lba,kb:(0,d.vL)(null !== (u=c.kb) && void 0 !== u?u:-1),lPb:1})):c.mediaType === n.u.Ca && (B=c.track.Tj,d.IR.log({un:z,type:"STREAM_SELECTION",mediaType:"TEXT",bitrate:(0,d.vL)(c.bitrate),Xc:c.profile,WR:null !== (v=c.location) && void 0 !== v?v:d.yh,Th:null !== (x=null === (w=c.Ab) || void 0 === w?void 0:w.toString()) && void 0 !== x?x:d.yh,language:null !== (y=B.language) && void 0 !== y?y:d.yh,kb:(0,d.vL)(null !== (A=c.kb) && void 0 !== A?A:-1),lPb:1}));};d=a(97685);n=a(6198);},87775:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.F$c=function(n,c,f,g,e,h,k,l){var m;m=e.length;n.log("==================================================================================");n.log(("Selecting stream : state = ").concat(d.Ub[c.state]," : stream list length = ").concat(g.length," : current bitrate = ").concat(0 < m?e[m - 1].bitrate:null === h || void 0 === h?void 0:h.bitrate," : streaming index = ").concat(c.Te," : currentSelectedStream = ").concat(h));n.log((" Buffer : capacity = ").concat(f.Rt," : startPts = ").concat(f.Gb," : currentPts = ").concat(f.Cd," : completePts = ").concat(f.cl," : streamingPts = ").concat(f.Lk," : level = ").concat(f.cl - f.Cd," : partial bytes = ").concat(f.qw," : fragment count = ").concat(f.Qa.length));k && (!l || k > l) && n.log((" Last switch was DOWN, ").concat(f.Lk - k,"ms ago"));l && (!k || k < l) && n.log((" Last switch was UP, ").concat(f.Lk - l,"ms ago"));n.log((" Available bitrates ").concat(g.map(function(p){return p.wLa();})));};d=a(65161);},15050:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.G$c=function(n,c,f,g,e,h,k){e?(n.log(("> And the winner is... ").concat(e.Sa," (").concat(e.wLa()," Kbps) lowest buffer level ").concat(k," ms, reason ").concat(h).concat(g?" < INITIAL SELECTION":"")),n.log("Stream selection state " + d.Ub[f.state] + ", desiredHeaders " + JSON.stringify(c.filter(function(l){return l.Jw;}).map(function(l){return l.bitrate;})))):n.info("Stream selection failed to find any stream, this could be due to incorrect bitrate ranges.");};d=a(65161);},79257:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.H$c=function(n,c,f){c.IK(function(g){(0,d.lZ)(g,function(e,h){n.trace(("").concat(e === f?">>":" ","[").concat(h,"] ").concat(e.Sa," b(").concat(e.bitrate,") avail(").concat(e.np,") failed(").concat(e.ko,") isUsable(").concat(e.Hq,") fittable(").concat(e.Qv,") loc(").concat(e.location,") tp(").concat(e.kb,")"));});});};d=a(91176);},79305:function(t,b){function a(d){d.Jw=!d.Qa || !d.Qa.length;}Object.defineProperties(b,{__esModule:{value:!0}});b.ZVa=function(d,n,c,f,g,e){if(f)d.forEach(function(h){return a(h);});else if(g && c > e && !n.za && d.every(function(h){return !h.Jw;}))for(c=d.length - 1;0 <= c;--c){f=d[c];if(d[c - 1] === n){a(f);break;}if(d[c + 1] === n){a(f);break;}}};},24757:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.iWa=function(c,f,g,e){var h,k,l;h=!1;k=(null === f || void 0 === f?void 0:f.buffer).Qa;l=k.length;(f=0 < l && f.state !== d.Ub.Bl?k[l - 1].stream:e)?-1 === g.indexOf(f) && (f=(0,n.Sxb)(g,f.bitrate,f.Pb),h=!0,c && e && -1 !== g.indexOf(e) && (h=!1)):h=!0;return {Wm:f,kZ:h};};d=a(65161);n=a(44284);},86268:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.VDb=function(n){var c,f,g,e,h,k,l,m;c=n.buffer;f=n.player;g=n.MG;e=n.haa;h=n.Ora;k=n.sd;l=n.Jxa;m=n.rxa;if(n=n.E0)return n.vrc({GP:c.cl - c.Cd,F9b:c.Lu || 0,D9b:c.Rt || 0,Cd:c.Cd,Ora:h,sd:k,Jxa:l,rxa:m,wh:f.state,playbackRate:f.playbackRate,Te:f.Te,MG:g,Lq:e});};b.etc=function(n,c){return (0,d.cc)(n,function(f,g){return n[g - 1] === c;}) || c;};b.ftc=function(n,c){return ((0,d.cc)(n,function(f,g){return n[g - 1] === c;}) || c).Kf;};d=a(91176);},18048:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.uIb=function(f,g,e,h,k){var l,m,p,r,q,u,v,w,x;r=g.Lk;q=e && e.Te;u=f.Qa;q=(0,c.PG)(g,u,q);v=f.yb;f=v && v.kb && v.kb.Fa || 0;u=g.cl - g.Cd;g=g.Lu;w=null !== (p=null === (m=null === (l=d.platform.M8c) || void 0 === l?void 0:l.call(d.platform)) || void 0 === m?void 0:m[e.mediaType === n.u.U?1:0]) && void 0 !== p?p:-1;e=e && e.Hm;l=d.platform.time.ha();h={Lk:r,Nl:q,qEc:f,Rnb:u,mIc:w,Uy:h,dN:l,L9b:g,Hm:e};if(v && k && 0 < k.length){x=[];k.forEach(function(y){var A;A=y.stat;A=(y=v[y.filter]) && y[A];x.push(isNaN(A)?-1:A);});h.JIc=x;}return h;};d=a(66164);n=a(65161);c=a(7327);},31485:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Wgb=void 0;d=a(22970);n=a(91176);t=(function(){function c(f,g){this.console=f;this.events=g;this.P1a=!1;}c.prototype.dy=function(){return this.P1a;};c.prototype.Vf=function(f){void 0 === f.FYa?this.Vsb(f.Ti,f.XC,{networkErrorCode:f.GH,httpCode:f.wk,nativeCode:f.Qg,viewableId:f.J,temporaryFailure:!!f.k2a,server:f.Ab}):this.yMc(f.FYa);};c.prototype.yMc=function(f){var g;this.Vsb(f.message,void 0,d.__assign(d.__assign({},f.fA),{err:n.oV.JK(null === (g=f.fA) || void 0 === g?void 0:g.context,{includeStack:!1})}));};c.prototype.Vsb=function(f,g,e){void 0 === g && (g=void 0);void 0 === e && (e={});this.P1a || (e.temporaryFailure || (this.P1a=!0),f=d.__assign({type:"error",error:null !== g && void 0 !== g?g:"NFErr_MC_StreamingFailure",errormsg:f,temporaryFailure:!1},e),this.console.error("notifyStreamingError:",f),this.events.emit("error",f));};return c;})();b.Wgb=t;},82149:function(t,b,a){var n,c,f,g;function d(e){return function(){for(var h=Array(this.length),k=0;k < this.length;++k)h[k]=e.call(this,k);return h;};}Object.defineProperties(b,{__esModule:{value:!0}});b.gHa=b.Bhb=void 0;b.JL=d;b.X4c=function(e){return ("[").concat(Array(e.length).map(function(h,k){return e[k].toString();}).join(","),"]");};n=a(91176);t=a(66164);c=a(52571);f=new t.platform.Console("FRAGMENTS","media|asejs");g=(function(){function e(h,k){this.dk=h;this.ti=k;}Object.defineProperties(e.prototype,{index:{get:function(){return this.ti;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{qa:{get:function(){return new n.I(this.ub,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{ta:{get:function(){return new n.I(this.Lb,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Wb:{get:function(){return new n.I(this.wK,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{ub:{get:function(){return this.dk.Gka + this.dk.DJ[this.ti];},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Lb:{get:function(){return this.ub + this.dk.Bz[this.ti];},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{wK:{get:function(){return this.dk.Bz[this.ti];},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Ea:{get:function(){return this.dk.Ea;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{O:{get:function(){return this.dk.O;},enumerable:!1,configurable:!0}});e.prototype.toJSON=function(){return {startPts:1E3 * this.ub / this.Ea.O,endPts:1E3 * this.Lb / this.Ea.O,duration:1E3 * this.wK / this.Ea.O,index:this.index};};return e;})();b.Bhb=g;a=(function(){function e(h,k,l,m){this.mediaType=h;this.length=l.fg.length;this.Db=l.O;this.Bz=l.fg;this.fla=m && m.T0;this.Wlb=m && m.C1;this.At=k;this.b3a=this.c3a=void 0;this.Gka=l.Iu;this.DJ=new Uint32Array(this.length + 1);if(this.length){for(k=h=0;k < this.length;++k)(this.DJ[k]=h,h+=this.Bz[k]);this.DJ[k]=h;this.UHa=Math.floor((this.Lg - this.Gb) / this.length);}}Object.defineProperties(e.prototype,{Iu:{get:function(){return this.fOb(0);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{fPa:{get:function(){return this.fOb(this.length);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Gb:{get:function(){return this.$s(0);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Lg:{get:function(){return this.$s(this.length);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{ib:{get:function(){return new n.I(this.Iu,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Yb:{get:function(){return new n.I(this.fPa,this.O);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Ea:{get:function(){return this.At;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{O:{get:function(){return this.Db;},enumerable:!1,configurable:!0}});e.prototype.fOb=function(h){return this.Gka + this.DJ[h];};e.prototype.$s=function(h){return Math.floor(1E3 * (this.Gka + this.DJ[h]) / this.O);};e.prototype.Wna=function(h){return this.$s(h + 1);};e.prototype.fg=function(h){return this.Wna(h) - this.$s(h);};e.prototype.get=function(h){return new g(this,h);};e.prototype.JG=function(h,k,l){if(0 === this.length || h < this.$s(0))return -1;h=Math.max(h,k || 0);for(var m=0,p=this.length - 1,r,q;p >= m;)if((r=m + (p - m >> 1),q=this.$s(r),h < q))p=r - 1;else if(h >= q + this.fg(r))m=r + 1;else {for(;k && r < this.length && this.$s(r) < k;)++r;return r < this.length?r:l?this.length - 1:-1;}return l?this.length - 1:-1;};e.prototype.JPa=function(h,k,l){h=this.JG(h,k,l);return 0 <= h?this.get(h):void 0;};e.prototype.Nma=function(h,k){var l,m,p;l=Math.floor(k * this.O / 1E3);m=Math.min(h + Math.ceil(k / this.UHa),this.length);p=this.DJ[m] - this.DJ[h];if(p >= l){for(;p >= l;)(--m,p-=this.Bz[m]);return {blocks:Math.max(m - h + 1,0),l1:0};}for(;p < l && m <= this.length;)(k-=p || 0,p+=this.Bz[m],++m);return {blocks:Math.max(m - h - 1,0),l1:k};};e.prototype.subarray=function(h,k){(0,c.assert)(void 0 === h || 0 <= h && h < this.length);(0,c.assert)(void 0 === k || k > h && k <= this.length);return new e(this.mediaType,this.Ea,{O:this.O,Iu:this.Gka + this.DJ[h],fg:this.Bz.subarray(h,k)},this.fla && ({T0:this.fla.subarray(h,k + 1),C1:this.Wlb}));};e.prototype.forEach=function(h){for(var k=0;k < this.length;++k)h(this.get(k),k,this);};e.prototype.map=function(h){for(var k=[],l=0;l < this.length;++l)k.push(h(this.get(l),l,this));return k;};e.prototype.reduce=function(h,k){for(var l=0;l < this.length;++l)k=h(k,this.get(l),l,this);return k;};e.prototype.toJSON=function(){return {length:this.length,averageFragmentDuration:this.UHa};};e.prototype.dump=function(){var k;f.trace("TrackFragments: " + this.length + ", averageFragmentDuration: " + this.UHa + "ms");for(var h=0;h < this.length;++h){k=this.get(h);f.trace(("TrackFragments: ").concat(h,": [").concat(k.qa.G,"-").concat(k.ta.G,"]"));}};return e;})();b.gHa=a;d(a.prototype.$s);d(a.prototype.Wna);d(a.prototype.fg);},11862:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.S5=void 0;t=(function(){function a(d){this.Lz=d;}Object.defineProperties(a.prototype,{d_:{get:function(){return this.W2b;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{result:{get:function(){return this.Lz;},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{wNc:{get:function(){var d;d=this;return this.Lz.then(function(){return d;});},enumerable:!1,configurable:!0}});a.prototype.cancel=function(){this.W2b=!0;};a.prototype.LD=function(d,n){var c;c=this;this.result.then(function(f){c.d_?n && n(f):d(f);});return this;};return a;})();b.S5=t;},85858:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.FG=void 0;b.FG=function(){return null;};},25218:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},52571:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.assert=function(c,f){var g;if(!c){g=new n(f || "Assertion failed");a(8171).Xw.console.error("Assertion failed",{value:c,message:f,stack:g.stack});throw g;}};d=a(22970);n=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);return f;})(Error);},62156:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.jIb=function(n){switch(n){case d.Ub.Pf:n=d.Rd.Pf;break;case d.Ub.wm:n=d.Rd.wm;break;case d.Ub.Bl:case d.Ub.yt:case d.Ub.aja:n=d.Rd.yt;break;default:n=d.Rd.$p;}return n;};d=a(65161);},2499:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.jbc=function(a,d){var n;void 0 === d && (d=Math.random);if("number" !== typeof a || !isFinite(a))throw new TypeError("alpha must be a finite number");if(0 > a || 1 < a)throw new RangeError("alpha must be in [0, 1]");d=d();if(!(0 <= d && 1 > d)){if(1 === d)return 1;throw new RangeError("rng() must return a value in [0, 1)");}n=1 - a / 2;if(d < a / (2 * n))return (a=Math.sqrt(2 * a * d * n),1 >= a?a:1);a=a / 2 + d * n;return 1 >= a?a:1;};},17122:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.hja=void 0;t=a(90745);d=a(91176);a=a(85254);n=(function(){function c(f){void 0 === f && (f={lj:!1,currentTime:d.I.ia,speed:1});this.state={lj:function(){return "function" === typeof f.lj?f.lj():f.lj;},currentTime:function(){return "function" === typeof f.currentTime?f.currentTime():f.currentTime;},speed:function(){return "function" === typeof f.speed?f.speed():f.speed;}};}Object.defineProperties(c.prototype,{lj:{get:function(){return this.state.lj();},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{currentTime:{get:function(){return this.state.currentTime();},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{speed:{get:function(){return this.state.speed();},enumerable:!1,configurable:!0}});return c;})();b.hja=n;(0,a.vl)(t.EventEmitter,n);},79994:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.fhc=function(a){return JSON.parse(JSON.stringify(a));};},99735:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.W6a=void 0;d=a(22970);a(52571);t=(function(){function n(c,f){this.oe=c;this.OX=f;this.EF();}Object.defineProperties(n.prototype,{length:{get:function(){return this.tJ;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{empty:{get:function(){return 0 === this.tJ;},enumerable:!1,configurable:!0}});n.prototype.Knc=function(){return this.pZ && this.pZ.get(0);};n.prototype.R8b=function(){return this.back && this.back.get(this.back.length - 1);};n.prototype.get=function(c){0 > c && (c+=this.length);for(var f=0;f < this.oe.length;++f)if(this.If[f + 1] > c)return this.oe[f].get(c - this.If[f]);};n.prototype.push=function(c){this.oe[this.OX(c)].push(c);this.EF();return this.tJ;};n.prototype.shift=function(){var c;if(this.pZ){c=this.pZ.shift();this.EF();return c;}};n.prototype.pop=function(){var c;if(this.back){c=this.back.pop();this.EF();return c;}};n.prototype.unshift=function(c){this.oe[this.OX(c)].unshift(c);this.EF();return this.tJ;};n.prototype.ku=function(c){var f;f=this.OX(c);this.oe[f].ku(c);this.EF();};n.prototype.remove=function(c){var f;f=this.oe.some(function(g){return g.remove(c);});f && this.EF();return f;};n.prototype.splice=function(c,f){var p,r,q,u;for(var g,e=[],h=2;h < arguments.length;h++)e[h - 2]=arguments[h];h=[];for(var k,l=c + Math.max(0,f),m=0;m < this.oe.length;++m){p=this.oe[m];r=this.If[m];q=this.If[m + 1];if(c < q){u=c - r;r=Math.min(l - r,p.length);void 0 === k && 0 < u && r < p.length?Array.prototype.push.apply(h,p.splice.apply(p,d.__spreadArray([u,r - u],d.__read(e),!1))):(Array.prototype.push.apply(h,p.splice(u,r - u)),void 0 === k && (k=0 < m && 0 === u?m - 1:m));c=q;if(c >= l)break;}}if(e.length && void 0 !== k){for(l=this.OX(e[0]);0 < k && l < k && this.oe[k].empty;)--k;for(;e.length && l === k;){this.oe[k].push(e.shift());if(!e.length)break;l=this.OX(e[0]);}for(;e.length && ++k < this.oe.length && this.oe[k].empty;)for(;e.length && l === k;){this.oe[k].push(e.shift());if(!e.length)break;l=this.OX(e[0]);}e.length && (g=this.oe[k]).splice.apply(g,d.__spreadArray([0,0],d.__read(e),!1));}this.EF();return h;};n.prototype.find=function(c){var f,g;f=this;return this.oe.some(function(e,h){g=e.find(f.HJ(c,h));return void 0 !== g;})?g:void 0;};n.prototype.findIndex=function(c){var g;for(var f=0;f < this.oe.length;++f){g=this.oe[f].findIndex(this.HJ(c,f));if(-1 !== g)return g + this.If[f];}return -1;};n.prototype.indexOf=function(c){var g;for(var f=0;f < this.oe.length;++f){g=this.oe[f].indexOf(c);if(-1 !== g)return g + this.If[f];}return -1;};n.prototype.map=function(c){var f,g;f=this;g=this.oe.map(function(e,h){return e.map(f.HJ(c,h));});return Array.prototype.concat.apply([],g);};n.prototype.reduce=function(c,f){var g;g=this;return this.oe.reduce(function(e,h,k){return h.reduce(g.X4b(c,k),e);},f);};n.prototype.forEach=function(c){var f;f=this;this.oe.forEach(function(g,e){g.forEach(f.HJ(c,e));});};n.prototype.lZ=function(c){for(var f=this.oe.length - 1;0 <= f;--f)this.oe[f].lZ(this.HJ(c,f));};n.prototype.some=function(c){var f;f=this;return this.oe.some(function(g,e){return g.some(f.HJ(c,e));});};n.prototype.x1a=function(c){for(var f=this.oe.length - 1;0 <= f;--f)if(this.oe[f].x1a(this.HJ(c,f)))return !0;return !1;};n.prototype.every=function(c){var f;f=this;return this.oe.every(function(g,e){return g.every(f.HJ(c,e));});};n.prototype.dnc=function(c,f){var l,m;function g(p){return p.reduce(function(r,q,u,v){return void 0 === q?r:void 0 === r?u:0 > c(q,v[r])?u:r;},void 0);}for(var e=this,h=this.oe.map(function(){return 0;}),k=this.oe.filter(function(p){return p.empty;}).length;k < this.oe.length;){l=h.map(function(p,r){return p < e.oe[r].length?e.oe[r].get(p):void 0;});m=g(l);f(l[m],this.If[m] + h[m],this);++h[m];h[m] === this.oe[m].length && ++k;}};n.prototype.move=function(c){return this.remove(c)?(this.ku(c),!0):!1;};n.prototype.BQc=function(){var c;if(this.oe[1].length){c=this.oe[1].shift();this.oe[0].push(c);this.EF();}};n.prototype.Bub=function(c){for(var f=-1,g=0;g < this.oe.length;++g)if((f=c(this.oe[g]),-1 !== f)){f+=this.If[g];break;}return f;};n.prototype.toJSON=function(){return this.map(function(c){return c.toJSON();});};n.prototype.EF=function(){var f;this.tJ=0;this.If=[0];this.back=this.pZ=void 0;for(var c=0;c < this.oe.length;++c){f=this.oe[c];this.tJ+=f.length;this.If.push(this.If[this.If.length - 1] + f.length);!this.pZ && f.length && (this.pZ=f);f.length && (this.back=f);}};n.prototype.HJ=function(c,f){var g,e;g=this;e=this.If[f];return function(h,k){return c(h,e + k,g);};};n.prototype.X4b=function(c,f){var g,e;g=this;e=this.If[f];return function(h,k,l){return c(h,k,e + l,g);};};return n;})();b.W6a=t;},62442:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.cob=function(n,c,f){var g,e;n=c.Ypb(n).G;g=n - f.oH - f.QR;f=Math.floor((0,d.jbc)(f.lzc) * f.oH);e=g + f;return {VRc:n,YHb:c.gwa(e),qDb:e,KXc:g,delay:f,tE:c.Wf};};d=a(2499);},72697:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.O3=void 0;d=a(48170);n=a(52571);t=(function(){function c(f,g){this.TB=f;this.gj=g;this.window=Math.floor((f + g - 1) / g);this.reset();}c.prototype.shift=function(){this.Xg.shift();this.times.shift();};c.prototype.Hs=function(f){return this.Ynb(this.Xg[f],f);};c.prototype.update=function(f,g){this.Xg[f]=(this.Xg[f] || 0) + g;};c.prototype.push=function(){this.Xg.push(0);this.times.push(0);this.time+=this.gj;};c.prototype.add=function(f,g,e){var h,k,l;if(null === this.time){h=Math.max(Math.floor((e - g + this.gj - 1) / this.gj),1);for(this.time=g;this.Xg.length < h;)this.push();}for(;this.time <= e;)(this.push(),this.Xg.length > this.window && this.shift());if(null === this.Nt || g < this.Nt)this.Nt=g;if(g > this.time - this.gj)this.update(this.Xg.length - 1,f);else if(g === e)(h=this.Xg.length - Math.max(Math.ceil((this.time - e) / this.gj),1),0 <= h && this.update(h,f));else for(h=1;h <= this.Xg.length;++h){k=this.time - h * this.gj;l=k + this.gj;if(!(k > e)){if(l < g)break;this.update(this.Xg.length - h,Math.round(f * (Math.min(l,e) - Math.max(k,g)) / (e - g)));}}for(;this.Xg.length > this.window;)this.shift();};c.prototype.start=function(f){null === this.Nt && (this.Nt=f);null === this.time && (this.time=f);};c.prototype.stop=function(f){var g,e;if(null !== this.time)if(f - this.time > 10 * this.TB)this.reset();else {for(;this.time <= f;)(this.push(),this.Xg.length > this.window && this.shift());g=this.Xg.length - Math.ceil((this.time - f) / this.gj);e=this.Xg.length - Math.ceil((this.time - this.Nt) / this.gj);d.l && (0,n.assert)(g >= e,"end index must be after start index");if(0 <= g)if((0 > e && (this.Nt=this.time - this.gj * this.Xg.length,e=0),e === g))this.times[e]+=f - this.Nt;else if(g > e)for((this.times[e]+=(this.time - this.Nt) % this.gj,this.times[g]+=this.gj - (this.time - f) % this.gj,f=e + 1);f < g;++f)this.times[f]=this.gj;this.Nt=null;}};c.prototype.Ynb=function(f,g){g=this.xQa(g);return 0 === g?null:8 * f / g;};c.prototype.xQa=function(f){var g;g=this.times[f];null !== this.Nt && (f=this.time - (this.Xg.length - f - 1) * this.gj,f > this.Nt && (g=f - this.Nt <= this.gj?g + (f - this.Nt):this.gj));return g;};c.prototype.get=function(f,g){var e,h;e=this.Xg.map(this.Ynb,this);if("last" === f)for(f=0;f < e.length;++f)null === e[f] && (e[f]=0 < f?e[f - 1]:0);else if("average" === f){g=1 - Math.pow(.5,1 / ((g || 2E3) / this.gj));h=void 0;for(f=0;f < e.length;++f)null === e[f]?e[f]=Math.floor(h || 0):h=void 0 !== h?g * e[f] + (1 - g) * h:e[f];}return e;};c.prototype.reset=function(){this.Xg=[];this.times=[];this.Nt=this.time=null;};c.prototype.setInterval=function(f){this.window=Math.floor((f + this.gj - 1) / this.gj);};return c;})();b.O3=t;},93559:function(t,b,a){var n;function d(c,f,g){var e,k,l;if(c === f || !g.Zq && c == f)return !0;if(typeof c !== typeof f)return !1;if(c && "object" === typeof c){for(var h in c)if(!d(c[h],f[h],g))return !1;if(!g.Qac){k=Object.keys(c);l=Object.keys(f).filter(function(q){return 0 > k.indexOf(q);});try{for(var m=n.__values(l),p=m.next();!p.done;p=m.next())if((h=p.value,!d(c[h],f[h],g)))return !1;}catch(q){var r;r={error:q};}finally{try{p && !p.done && (e=m.return) && e.call(m);}finally{if(r)throw r.error;}}}return !0;}return !1;}Object.defineProperties(b,{__esModule:{value:!0}});b.XNa=function(c,f){var g;void 0 === g && (g={});g=n.__assign({Zq:!1,Qac:!1},g);return d(c,f,g);};n=a(22970);},68157:function(t,b){function a(d){var n,c;n=Math.abs(d);c=1 / (1 + n / 2);n=c * Math.exp(-n * n - 1.26551223 + c * (1.00002368 + c * (.37409196 + c * (.09678418 + c * (-.18628806 + c * (.27886807 + c * (-1.13520398 + c * (1.48851587 + c * (-.82215223 + .17087277 * c)))))))));return 0 <= d?n:2 - n;}Object.defineProperties(b,{__esModule:{value:!0}});b.t9=a;b.cvc=function(d){var n,c,g;if(2 <= d)return -100;if(0 >= d)return 100;n=1 > d?d:2 - d;c=Math.sqrt(-2 * Math.log(n / 2));c=-.70711 * ((2.30753 + .27061 * c) / (1 + c * (.99229 + .04481 * c)) - c);for(var f=0;2 > f;f++){g=a(c) - n;c+=g / (1.1283791670955126 * Math.exp(-(c * c)) - c * g);}return 1 > d?c:-c;};b.B7c=function(d){return 1 - a(d);};},30285:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.K8a=void 0;d=a(22970);t=(function(){function c(f,g){void 0 === g && (g={});this.Zt=f;this.options=g;this.DQ=[];this.yR=new n(f,this.K5b.bind(this));}c.prototype.K5b=function(f){for(var g,e,h,k,l,m,p=[],r=1;r < arguments.length;r++)p[r - 1]=arguments[r];p={Nv:f,Km:p};if(null !== (h=null === (e=(g=this.options).UQc) || void 0 === e?void 0:e.call(g,p,this.DQ)) && void 0 !== h?h:1)(g=p,this.options.Xcd && (g=JSON.parse(JSON.stringify(p))),this.DQ.push(g));return null !== (m=null === (l=(k=this.options).Wcd) || void 0 === l?void 0:l.call(k,p)) && void 0 !== m?m:!0;};c.prototype.wda=function(f){this.DQ=this.DQ.filter(function(g,e){return !f(g,e);});};c.prototype.l_a=function(){var f;f=this;this.yR.d3a();this.DQ.forEach(function(g){var e;(e=f.Zt).emit.apply(e,d.__spreadArray([g.Nv],d.__read(g.Km),!1));});this.yR.Xzb();};Object.defineProperties(c.prototype,{length:{get:function(){return this.DQ.length;},enumerable:!1,configurable:!0}});c.prototype.clear=function(){this.DQ=[];};c.prototype.Ka=function(){this.clear();this.yR.d3a();this.options=void 0;};return c;})();b.K8a=t;n=(function(){function c(f,g){this.Zt=f;this.Wz=g;this.JGb=this.Zt.emit;this.lfc();this.Xzb();}c.prototype.lfc=function(){var f;f=this;this.yR=function(g){for(var e,h,k=[],l=1;l < arguments.length;l++)k[l - 1]=arguments[l];return (null === (h=f.Wz) || void 0 === h?0:h.call.apply(h,d.__spreadArray([f,g],d.__read(k),!1)))?(e=f.JGb).call.apply(e,d.__spreadArray([f.Zt,g],d.__read(k),!1)):!1;};};c.prototype.Xzb=function(){this.yR && (this.Zt.emit=this.yR);};c.prototype.d3a=function(){this.Zt.emit=this.JGb;};c.prototype.Ka=function(){this.d3a();this.Wz=this.yR=void 0;};return c;})();},66412:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.s7b=function(c,f){return (0,n.nta)(c,{toJSON:function(){var g;g=d.__assign({},c);f.forEach(function(e){delete g[e];});return g;}});};d=a(22970);n=a(54520);},32201:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(68157);t=(function(){function n(c,f){this.Fa=c;this.ng=f;}n.prototype.oob=function(c){return .5 * (0,d.t9)(-(c - this.Fa) / Math.sqrt(2 * this.ng));};n.prototype.ZS=function(c){return this.Fa - Math.sqrt(2 * this.ng) * (0,d.cvc)(2 * c);};return n;})();b["default"]=t;},82475:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.GSa=function(a){return ("( ").concat(a.L,", ").concat(a.offset.ca()," )");};},6783:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Vr=function(c,f,g,e){var h,k,l,r,q,u;void 0 === e && (e={});l=n.I.max(g,n.I.ia);try{for(var m=d.__values(Object.keys(c.ba)),p=m.next();!p.done;p=m.next()){r=p.value;q=c.ba[r];if(q.J === f){u=n.I.Ba(q.Ua);if(l.Tf(u) && (!isFinite(null !== (k=q.fb) && void 0 !== k?k:NaN) || l.lessThan(n.I.Ba(q.fb))))return {L:r,offset:g.ea(u)};}}}catch(w){var v;v={error:w};}finally{try{p && !p.done && (h=m.return) && h.call(m);}finally{if(v)throw v.error;}}if(e.JLb && (q=Object.keys(c.ba).map(function(w){return {key:w,K:c.ba[w]};}).filter(function(w){return w.K.J === f;}).map(function(w){var x,y;x=n.I.abs(g.ea(n.I.Ba(w.K.Ua)));if(w.K.fb && isFinite(w.K.fb)){y=n.I.abs(g.ea(n.I.Ba(w.K.fb)));x=n.I.min(x,y);}return d.__assign(d.__assign({},w),{Gv:x});}),q.sort(function(w,x){return w.Gv.G - x.Gv.G;}),u=d.__read(q,1)[0]))return (q=u.K,e=u.key,u=n.I.Ba(q.Ua),{L:e,offset:g.ea(u)});};d=a(22970);n=a(91176);},71460:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.V9a=void 0;t=(function(){function a(d,n,c){var f,g,e;this.Bb=n;this.sb=c;this.Fkb=d;f=this.Ekb=this.Rib=this.Qib=0;g=0;e=0;this.Fkb.length >= this.Bb.vEb && (this.Fkb.forEach(function(h){f+=h.avtp;g+=1 * h.neuhd;e++;}),this.Ekb=e,this.Qib=f / e,this.Rib=g / e);}a.prototype.Rwc=function(){return this.Ekb >= this.Bb.vEb && this.Qib >= this.Bb.xnb.bwThreshold && this.Rib < this.Bb.xnb.nethreshold;};return a;})();b.V9a=t;},69575:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.t_b=b.nWb=void 0;t=a(22970);t.__exportStar(a(65167),b);t.__exportStar(a(55971),b);t.__exportStar(a(1727),b);t.__exportStar(a(61113),b);t.__exportStar(a(79994),b);t.__exportStar(a(93559),b);t.__exportStar(a(24635),b);t.__exportStar(a(48912),b);t.__exportStar(a(62291),b);d=t.__importDefault(a(32201));b.nWb=d.default;a=t.__importDefault(a(16514));b.t_b=a.default;},51117:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Jha=void 0;d=a(68157);t=(function(){function n(c,f){this.HWa=c;this.ng=f;0 < f?(this.CBb=f=Math.pow(c,3) / f,c=2 * f / c,500 >= c && (this.BPa=Math.exp(c))):this.BPa=0;}n.prototype.oob=function(c){var f,g,e;f=this.HWa;g=this.BPa;if(g && 0 < c){e=Math.sqrt(this.CBb / (2 * c));f=c / f;c=(0,d.t9)(e * (f - 1));e=(0,d.t9)(e * (f + 1));return Math.max((2 - c + g * e) / 2,0);}return c < f?0:c > f?1:.5;};n.prototype.ZS=function(c,f,g){for(var e=0,h=this.HWa + 5 * Math.sqrt(this.ng),k=1,l=0;Math.abs(k) > f && g--;)(l=(e + h) / 2,k=this.oob(l),k=c - k,0 > k?h=l:e=l);return l;};n.prototype.rac=function(c){var f,g,e,h;f=this.HWa;g=this.BPa;if(g && 0 < c){e=Math.sqrt(this.CBb / (2 * c));h=c / f;c=2 - (0,d.t9)(e * (h - 1));g*=(0,d.t9)(e * (h + 1));return [Math.max((c + g) / 2,0),Math.max(f * (c - g) / 2,0)];}return c < f?[0,0]:c > f?[1,f]:[.5,f / 2];};return n;})();b.Jha=t;},64396:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.ZTa=function(a){return a && 0 === Object.keys(a).length;};},62291:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.gDb=function(c,f){var g,e,h,k,l,m,p,r;p=null === (g=f.K) || void 0 === g?void 0:g.id;c || (c=f.Cu);r=0;f.pa && f.oR && c && c.forEach(function(q){r+=q.byteLength;});return {qa:f.qa.ea(f.stream.Sh?f.stream.ze:d.I.ia).add((0,n.yk)(f.stream)?f.stream.Fk.Kc(f.stream.O):d.I.ia),Wb:f.Wb,Gb:null === (e=f.Sb) || void 0 === e?void 0:e.G,duration:(null === (h=f.Ob) || void 0 === h?NaN:h.G) - (null === (k=f.Sb) || void 0 === k?NaN:k.G),offset:f.offset,ma:r || f.ma,bitrate:f.bitrate,profile:f.profile,df:!!f.df,J:null === (l=f.M) || void 0 === l?void 0:l.J,L:p,Sa:f.Sa,dd:f.dd,location:f.location,Ei:f.Ei,Nl:null === (m=f.qa) || void 0 === m?void 0:m.G,Ve:{oa:{K:{id:p || "unknown"}}}};};d=a(91176);n=a(8149);},42194:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Tnb=void 0;d=a(50599);n=a(65044);b.Tnb=function(){return function(c){var e,h,k,l;function f(m){l[m]=function(p){return h({rules:[{$j:m,config:p}]},!0);};}function g(m){e[m]=function(p){return h({rules:[{$j:m,config:p}]});};}e={};h=(0,d.map)(c.wDb);for(k in c.B1)g(k);e.JD=h({rules:[],IKa:!0});e.Zq=h({rules:[],Zq:!0});l={};for(k in c.B1)f(k);l.JD=h({rules:[],IKa:!0},!0);l.Zq=h({rules:[],Zq:!0},!0);e.return=l;return {WNa:e,P_a:c,yZa:function(m,p,r,q){return (0,n.Lqb)(m,p,r,c.B1,c.wDb,q);}};};};},50599:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.oLb=b.Twb=b.map=void 0;d=a(22970);a(1738);b.map=function(n){return function(c,f){void 0 === f && (f=!1);return function(g,e,h){var k,l,m,p;k=Reflect.ixb(n,g,e) || ({});m="number" === typeof h;p=f;(l=m?(k.Cb || ({}))[h] || ({}):p?k.return:k.rWa) || (l={rules:[]});l=d.__assign(d.__assign(d.__assign({},l),c),{rules:d.__spreadArray(d.__spreadArray([],d.__read(l.rules || []),!1),d.__read(c.rules || []),!1)});m?(k.Cb || (k.Cb={}),k.Cb[h]=l):p?k.return=l:k.rWa=l;Reflect.ina(n,k,g,e);};};};b.Twb=function(n){return function(c,f){var g,e,h,k;c=null !== (k=null !== (e=null === (g=c.__proxyCtor) || void 0 === g?void 0:g.prototype) && void 0 !== e?e:null === (h=null === c || void 0 === c?void 0:c.constructor) || void 0 === h?void 0:h.prototype) && void 0 !== k?k:c;for(var l;c && void 0 === l;)(l=Reflect.ixb(n,c,f),c=c.__proto__);return l;};};b.oLb=function(){return function(){return function(n){return n;};};};},65044:function(t,b,a){var g,e,h,k,l;function d(m,p){if(m)return Object.getOwnPropertyDescriptor(m,p)?m:d(m.prototype,p) || d(m.__proto__,p);}function n(m,p){if(m=d(m,p))return Object.getOwnPropertyDescriptor(m,p);}function c(m,p){var u;for(var r=Object.getPrototypeOf(m),q=[];r !== Object.prototype;)(q=q.concat(Object.getOwnPropertyNames(r)),r=Object.getPrototypeOf(r));m=Object.keys(m).concat(q);p.__proxyCtor || (p.__proxyCtor=void 0);u=Object.getPrototypeOf(p);m.forEach(function(v){Object.getOwnPropertyDescriptor(p,v) || Object.getOwnPropertyDescriptor(u,v) || p[v] || Object.defineProperty(p,v,{get:function(){},configurable:!0,enumerable:!0});});}function f(m,p,r,q){var w;for(var u=[],v=4;v < arguments.length;v++)u[v - 4]=arguments[v];w=q();if((null === w || void 0 === w?0:w.rWa) || (null === w || void 0 === w?0:w.Cb))u=u.map(function(x,y){var A;y=(0,l.cEb)(w.rWa,null === (A=w.Cb) || void 0 === A?void 0:A[y]);return (0,k.Jva)(p,x,r,y);});u=m.call.apply(m,g.__spreadArray([void 0],g.__read(u),!1));return (null === w || void 0 === w?0:w.return)?(0,k.Jva)(p,u,r,w.return,h.$E.BI):u;}Object.defineProperties(b,{__esModule:{value:!0}});b.Lqb=void 0;b.Q6c=c;b.o8c=f;g=a(22970);e=a(50599);h=a(49165);k=a(87561);l=a(28867);b.Lqb=function(m,p,r,q,u,v){var w,x;void 0 === v && (v=[]);w={};x=(0,e.Twb)(u);c(p,m);v.forEach(function(y){return c(y,m);});return new Proxy(m,{get:function(y,A){var z,B,C,D;if("__proxyCtor" === A)return m[A] || m.constructor;if((A in p)){C=p[A];return "function" === typeof C?C.bind(p):C;}D=w[A];if(!D && !n(w,A)){D=null !== (B=null === (z=null === y || void 0 === y?void 0:y.constructor) || void 0 === z?void 0:z.prototype) && void 0 !== B?B:y;z=null !== (C=d(D,A)) && void 0 !== C?C:d(D.__proxyCtor,A);C=n(D,A);if(null === C || void 0 === C?0:C.get)return (C=C.get,z=x.bind(null,z,A),y=f.bind(y,C.bind(y),r,q,z),Object.defineProperty(w,A,{get:y,enumerable:!0,configurable:!0}),y());C=y[A];return "function" === typeof C?(z=x.bind(null,y,A),y=f.bind(y,C.bind(y),r,q,z),w[A]=y):C;}return D;},set:function(y,A,z){if((A in p))return (p[A]=z,!0);y[A]=z;delete w[A];return !0;}});};},49165:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});t=b.$E={};t[t.BI=0]="up";t[t.gQ=1]="down";},87561:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Jva=void 0;d=a(22970);n=a(52571);c=a(49165);b.Jva=function(f,g,e,h,k,l){var m,p;void 0 === k && (k=c.$E.gQ);m=f();if(h && m){p=h.IKa;f=h.Zq;h=h.rules.map(function(r){return ["function" === typeof r.$j?r.$j(e):e[r.$j],r.config];});p || (0,n.assert)(g,"Param is null");l && h.push([{map:l,eG:function(){return !0;}},void 0]);l=h.filter(function(r){r=d.__read(r,2);return r[0].eG(g,m,r[1]);});f && (0,n.assert)(l.length,("No rules matched for ").concat(g));if(l.length)return l.reduce(function(r,q){q=d.__read(q,2);return q[0].map(r,k,m,q[1]);},g);}return g;};},28867:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.cEb=void 0;d=a(22970);n=a(91176);b.cEb=function(c,f){var g;if(c || f){g=(null === c || void 0 === c?0:c.rules) && (null === f || void 0 === f?0:f.rules)?(0,n.jX)(c.rules,f.rules):(null === c || void 0 === c?void 0:c.rules) || (null === f || void 0 === f?void 0:f.rules);return d.__assign(d.__assign(d.__assign({},c),f),{rules:g});}};},55971:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.lcb=void 0;d=a(22970);n=a(91176);c=a(52571);t=(function(){function f(){this.data={};}Object.defineProperties(f.prototype,{empty:{get:function(){return 0 === Object.keys(this.data).length;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{size:{get:function(){var g;g=this;return Object.keys(this.data).reduce(function(e,h){return e + g.data[h].length;},0);},enumerable:!1,configurable:!0}});f.prototype.get=function(g){return this.data[g] || [];};f.prototype.has=function(g,e){return (g=this.data[g])?void 0 === e?!0:-1 !== g.indexOf(e):!1;};f.prototype.count=function(g){return (g=this.data[g])?g.length:0;};f.prototype.keys=function(){return Object.keys(this.data);};f.prototype.values=function(){var g;g=this;return (0,n.flatten)(this.keys().map(function(e){return g.data[e];}));};f.prototype.set=function(g,e){(this.data[g] || (this.data[g]=[])).push(e);return this;};f.prototype.clear=function(){this.data={};};f.prototype.delete=function(g,e){var h,k;h=this.data[g];if(void 0 === h)return !1;if(void 0 === e)return ((0,c.assert)(1 === arguments.length),delete this.data[g],!0);k=h.indexOf(e);if(-1 === k)return !1;1 === h.length?delete this.data[g]:h.splice(k,1);return !0;};f.prototype.forEach=function(g,e){var h;h=this;g=void 0 !== e?g.bind(e):g;this.keys().forEach(function(k){return h.data[k].forEach(function(l){return g(l,k,h);});});};f.prototype.reduce=function(g,e,h){var k,l;k=this;g=void 0 !== h?g.bind(h):g;l=e;this.forEach(function(m,p){l=g(l,m,p,k);});return l;};f.prototype.map=function(g,e){var h;h=this;g=void 0 !== e?g.bind(e):g;return (0,n.flatten)(this.keys().map(function(k){return h.data[k].map(function(l){return g(l,k,h);});}));};f.prototype.filter=function(g,e){var h;h=this;g=void 0 !== e?g.bind(e):g;return (0,n.flatten)(this.keys().map(function(k){return h.data[k].filter(function(l){return g(l,k,h);});}));};f.prototype[Symbol.iterator]=function(){var g,e,h,k,l,m,p,r,q,u,v,w,x,y;return d.__generator(this,function(A){switch(A.label){case 0:(g=this.keys(),A.label=1);case 1:(A.tc.push([1,12,13,14]),e=d.__values(g),h=e.next(),A.label=2);case 2:if(h.done)return [3,11];k=h.value;l=this.get(k);A.label=3;case 3:(A.tc.push([3,8,9,10]),m=(x=void 0,d.__values(l)),p=m.next(),A.label=4);case 4:if(p.done)return [3,7];r=p.value;return [4,r];case 5:(A.T(),A.label=6);case 6:return (p=m.next(),[3,4]);case 7:return [3,10];case 8:return (q=A.T(),x={error:q},[3,10]);case 9:try{p && !p.done && (y=m.return) && y.call(m);}finally{if(x)throw x.error;}return [7];case 10:return (h=e.next(),[3,2]);case 11:return [3,14];case 12:return (u=A.T(),v={error:u},[3,14]);case 13:try{h && !h.done && (w=e.return) && w.call(e);}finally{if(v)throw v.error;}return [7];case 14:return [2];}});};return f;})();b.lcb=t;},54520:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.nta=void 0;d=a(22970);n=a(22970);b.nta=function(c){for(var f=[],g=1;g < arguments.length;g++)f[g - 1]=arguments[g];return n.__assign.apply(void 0,d.__spreadArray([c],d.__read(f),!1));};},7675:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.nEc=function(a){var d,n;d={};for(n in a)d[a[n]]=n;return d;};},77399:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Tvc=function(n,c){var h,k,l,m,p,r,q,w,x,y,A,z,B,C;for(var f,g,e=0;e < n.length;e++){h=d.__read(c,3);k=h[0];l=h[1];m=h[2];p=d.__read(n[e],3);r=p[0];h=p[1];q=p[2];if(!(k >= h)){k=[k,Math.min(h,l),r,h].filter(function(D,F,H){return H.indexOf(D) === F;}).sort(function(D,F){return D - F;});r=k.length - 1;p=Array(r);m+=q;try{for(var u=(f=void 0,d.__values([c,n[e]])),v=u.next();!v.done;v=u.next()){w=d.__read(v.value,3);x=w[0];y=w[1];A=w[2];q=y - x;for(c=0;c < r;c++){z=k[c + 1];B=Math.min(z,y) - Math.max(k[c],x);if(0 < B){C=B * A / q;m-=C;p[c]=p[c]?p[c] + C:C;}if(y <= z)break;}}}catch(D){f={error:D};}finally{try{v && !v.done && (g=u.return) && g.call(u);}finally{if(f)throw f.error;}}q=[];for(c=0;c < r;c++)(A=p[c],0 < A && q.push([k[c],k[c + 1],A]));n.splice.apply(n,d.__spreadArray([e,1],d.__read(q),!1));if(h < l)c=[h,l,m];else return;}}c && 0 < c[2] && n.splice(n.length,0,c);};d=a(22970);},16514:function(t){function b(a){this.q3b=a;this.mP=[];this.GJ=!1;this.GJa=void 0;this.Ir={};}b.prototype.Yka=function(a){this.mP.length === this.q3b && this.mP.shift();Array.isArray(a)?this.mP=this.mP.concat(a):this.mP.push(a);this.GJ=!0;};b.prototype.J$=function(){return this.mP.length;};b.prototype.X7=function(a){var d,n,c;if(this.GJ || void 0 === this.GJa)(this.GJa=this.mP.slice(0).sort(function(f,g){return f - g;}),this.Ir={},this.GJ=!1);if(void 0 === this.Ir[a]){d=this.GJa;n=Math.floor(a / 100 * (d.length - 1) + 1) - 1;c=(a / 100 * (d.length - 1) + 1) % 1;this.Ir[a]=n === d.length - 1?d[n]:d[n] + c * (d[n + 1] - d[n]);}return this.Ir[a];};t.exports=b;},28600:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.tLb=function(n,c){n=d.platform.storage.get(n);return c?c(n):n;};d=a(66164);},29254:function(t,b){var n,c,f;function a(g){return void 0 !== (null === g || void 0 === g?void 0:g.Mib);}function d(g){return (a(g)?g:Object.defineProperties(g,{Mib:{value:{},configurable:!1,enumerable:!1}})).Mib;}Object.defineProperties(b,{__esModule:{value:!0}});b.UFa=void 0;c=null !== (n=Number.MAX_SAFE_INTEGER) && void 0 !== n?n:1E9;f=Date.now() % c;t=(function(){function g(){this.id=f=(f + 1) % c;}g.prototype.get=function(e){return a(e)?d(e)[this.id]:void 0;};g.prototype.set=function(e,h){d(e)[this.id]=h;return this;};g.prototype.has=function(e){return a(e) && void 0 !== d(e)[this.id];};g.prototype.delete=function(e){if(!this.has(e))return !1;d(e)[this.id]=void 0;return !0;};return g;})();b.UFa=t;},59458:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.vJb=function(a,d,n){void 0 === n && (n={});a=Math.random() * (d - a) + a;return n.$vc?n.uvc?Math.round(a):Math.floor(a):a;};},1936:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.$_b=void 0;d=a(66164);n=a(8171);c=["","",""];t=(function(){function f(g){this.request=g;this.complete=this.append=this.voa=this.wVa=this.open=0;}Object.defineProperties(f.prototype,{console:{get:function(){return n.Xw.eD(this.request.mediaType);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{p1:{get:function(){var g;return null === (g=this.request.Wb) || void 0 === g?void 0:g.G;},enumerable:!1,configurable:!0}});f.prototype.uFc=function(){this.open=d.platform.time.ha();};f.prototype.jFc=function(){this.wVa=d.platform.time.ha();this.trace();};f.prototype.eFc=function(){this.voa=d.platform.time.ha();this.trace();};f.prototype.LD=function(){this.complete=d.platform.time.ha();this.trace();};f.prototype.trace=function(){var g;g=("RequestLedger ID: ").concat(this.request.Ei());g+=(" load-open: ").concat(this.wVa - this.open);0 < this.voa && (" firstbyte-load: ").concat(this.voa - this.wVa);0 < this.append && (" append-firstbyte: ").concat(this.append - this.voa);0 < this.complete && ((" complete-open: ").concat(this.complete - this.open),g=this.request.mediaType,this.p1 && this.complete - this.open > this.p1?((" duration: ").concat(this.p1),c[g]+="X"):c[g]+=".",10 < c[g].length && (c[g]=c[g].slice(1)));};return f;})();b.$_b=t;},61113:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.ygb=b.xgb=void 0;d=a(91176);t=(function(){function n(c){this.hb=c;this.listeners=[];this.Aca=[];}Object.defineProperties(n.prototype,{value:{get:function(){return this.hb;},enumerable:!1,configurable:!0}});n.prototype.set=function(c){var f;this.hb=c;f=this.Aca;this.Aca=[];this.listeners.forEach(function(g){return g(c);});f.forEach(function(g){return g(c);});};n.prototype.QKb=function(){this.hb=void 0;};n.prototype.on=function(c){this.listeners=this.listeners.concat([c]);void 0 !== this.hb && c(this.hb);};n.prototype.once=function(c){void 0 !== this.hb?c(this.hb):this.Aca.push(c);};n.prototype.$l=function(c){this.listeners=this.listeners.filter(function(f){return f !== c;});this.Aca=this.Aca.filter(function(f){return f !== c;});};return n;})();b.xgb=t;t=(function(){function n(){this.listeners=[];}n.prototype.on=function(c,f){this.listeners.push({signal:c,listener:f});c.on(f);};n.prototype.once=function(c,f){var g,e;g=this;if(void 0 === c.value){e=function(h){g.remove(c,f);f(h);};this.listeners.push({signal:c,listener:f,zSb:e});c.once(e);}else c.once(f);};n.prototype.$l=function(c,f){var g;g=(0,d.cc)(this.listeners,function(e){return e.signal === c && e.listener === f;});void 0 !== g && c.$l(g.zSb || g.listener);this.remove(c,f);};n.prototype.removeAllListeners=function(){this.listeners.forEach(function(c){var f;f=c.listener;return c.signal.$l(c.zSb || f);});this.listeners=[];};n.prototype.remove=function(c,f){this.listeners=this.listeners.filter(function(g){return g.signal !== c || g.listener !== f;});};return n;})();b.ygb=t;},94258:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.kF=void 0;d=a(91176);Object.defineProperties(b,{kF:{enumerable:!0,get:function(){return d.kF;}}});},24635:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Vg=void 0;d=a(91176);Object.defineProperties(b,{Vg:{enumerable:!0,get:function(){return d.Vg;}}});},35536:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.jJ=void 0;d=a(91176);Object.defineProperties(b,{jJ:{enumerable:!0,get:function(){return d.jJ;}}});},94451:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Z1a=void 0;b.Z1a=function(a){return a.reduce(function(d,n){return d + n;},0);};},40666:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.R2=b.nW=b.bW=b.ym=b.mJ=b.kW=b.$d=b.K5=b.DO=b.zV=b.flatten=void 0;d=a(91176);Object.defineProperties(b,{flatten:{enumerable:!0,get:function(){return d.flatten;}}});Object.defineProperties(b,{zV:{enumerable:!0,get:function(){return d.zV;}}});Object.defineProperties(b,{DO:{enumerable:!0,get:function(){return d.DO;}}});Object.defineProperties(b,{K5:{enumerable:!0,get:function(){return d.K5;}}});Object.defineProperties(b,{$d:{enumerable:!0,get:function(){return d.$d;}}});Object.defineProperties(b,{kW:{enumerable:!0,get:function(){return d.kW;}}});Object.defineProperties(b,{mJ:{enumerable:!0,get:function(){return d.mJ;}}});Object.defineProperties(b,{ym:{enumerable:!0,get:function(){return d.ym;}}});Object.defineProperties(b,{bW:{enumerable:!0,get:function(){return d.bW;}}});Object.defineProperties(b,{nW:{enumerable:!0,get:function(){return d.nW;}}});Object.defineProperties(b,{R2:{enumerable:!0,get:function(){return d.R2;}}});},1727:function(t,b,a){var n,c;function d(f,g,e){var h;void 0 === e && (e={});h=n.__assign(n.__assign({},c),e);return f.filter(function(k){var l;l=k.Ob;k=k.Sb;return !!k && k.ln(g) && (!h.Bpb || l.Tf(g));});}Object.defineProperties(b,{__esModule:{value:!0}});b.Lub=function(f,g,e){void 0 === e && (e={});return d(f,g,e).pop();};b.R7c=d;b.vub=function(f,g,e){return f.filter(function(h){var k;k=h.Ob;h=h.Sb;return !!h && !!k && (h.Tf(g) && h.ln(e) || k.Tf(g) && k.ln(e) || h.ln(g) && k.Tf(e));});};n=a(22970);c={Bpb:!1};},61520:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.uja=void 0;b.DJc=function(f,g){var e;e="";f.HK(function(h,k,l,m){e+=("").concat(Array(m + 1).join("-")).concat(g(h),"\n");return !0;});return e;};a(22970);a(91176);d=a(48170);n=a(29254);c=a(52571);t=(function(){function f(){this.V=new n.UFa();}Object.defineProperties(f.prototype,{empty:{get:function(){return !this.mE;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{root:{get:function(){var g;return null === (g=this.mE) || void 0 === g?void 0:g.value;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{values:{get:function(){var g;g=[];this.HK(function(e){return !!g.push(e);});return g;},enumerable:!1,configurable:!0}});f.prototype.has=function(g){return !!this.V.get(g);};f.prototype.parent=function(g){var e;g=this.V.get(g);d.l && (0,c.assert)(g,"Attempted to find the parent of a node not in the tree");return null === (e=null === g || void 0 === g?void 0:g.parent) || void 0 === e?void 0:e.value;};f.prototype.children=function(g){g=this.V.get(g);d.l && (0,c.assert)(g,"Attempted to find the children of a node not in the tree");return (null === g || void 0 === g?0:g.children)?g.children.map(function(e){return e.value;}):[];};f.prototype.Npa=function(g){g=this.V.get(g);d.l && (0,c.assert)(g,"Attempted to find the children of a node not in the tree");return void 0 !== (null === g || void 0 === g?void 0:g.children) && 0 < g.children.length;};f.prototype.add=function(g,e){var h;d.l && (0,c.assert)(!this.V.get(g),"Attempted to add a value to tree that is already present");h={value:g};void 0 === this.mE?(d.l && (0,c.assert)(void 0 === e,"a parent cannot be specified when the tree is empty"),this.mE=h):(d.l && (0,c.assert)(void 0 !== e,"a parent must be specified when the tree is non-empty"),e=this.V.get(e),d.l && (0,c.assert)(e,"Parent value does not exist in tree"),this.Dla(h,e));this.V.set(g,h);return this;};f.prototype.remove=function(g){g=this.V.get(g);d.l && (0,c.assert)(g,"Attempted to remove a node not in the tree");this.removeNode(g);return this;};f.prototype.removeNode=function(g){var e;e=this;this.aQa(function(h){return e.V.delete(h);},g.value);void 0 === g.parent?this.mE=void 0:this.detach(g);};f.prototype.move=function(g,e){g=this.V.get(g);e=this.V.get(e);d.l && (0,c.assert)(g,"cannot move a value that is not in the tree");d.l && (0,c.assert)(e,"cannot move a value to a parent value not in the tree");d.l && (0,c.assert)(null === g || void 0 === g?void 0:g.parent,"cannot move the root node");d.l && (0,c.assert)(!this.kwc(g,e),"cannot move a node below itself or one of its decendants");g.parent !== e && (this.detach(g),this.Dla(g,e));return this;};f.prototype.rMc=function(g){var e,h;e=this;g=this.V.get(g);d.l && (0,c.assert)(g,"cannot replant at a value that is not in the tree");h=[];this.detach(g);this.aQa(function(k){e.V.delete(k);h.unshift(k);return !0;});this.mE=g;};f.prototype.clear=function(){this.mE && this.remove(this.mE.value);return this;};f.prototype.clone=function(){var g;g=new f();this.HK(function(e,h){g.add(e,h);return !0;});return g;};f.prototype.dvb=function(g,e){var h,k;h=this;g=this.V.get(g);d.l && (0,c.assert)(g,"cannot iterate children of a value not in the tree");null === (k=g.children) || void 0 === k?void 0:k.forEach(function(l){return e(l.value,h);});};f.prototype.CRc=function(g,e){var h,k;h=this;g=this.V.get(g);d.l && (0,c.assert)(g,"cannot iterate children of a value not in the tree");return !(null === (k=g.children) || void 0 === k || !k.some(function(l){return e(l.value,h);}));};f.prototype.HK=function(g){this.evb(g,void 0);};f.prototype.evb=function(g,e,h,k){var l;l=this;void 0 === k && (k=0);d.l && (0,c.assert)(!this.empty || void 0 === e,"cannot iterate from a value on an empty tree");this.empty || (e=null !== e && void 0 !== e?e:this.mE.value,g(e,h,this,k) && this.dvb(e,function(m){return l.evb(g,m,e,k + 1);}));};f.prototype.aQa=function(g,e){var h;h=this;d.l && (0,c.assert)(!this.empty || void 0 === e,"cannot iterate from a value on an empty tree");this.empty || (null !== e && void 0 !== e?e:e=this.mE.value,this.dvb(e,function(k){return h.aQa(g,k);}),g(e,this));};f.prototype.Hub=function(g,e){var h,k;h=this;d.l && (0,c.assert)(!this.empty || void 0 === e,"cannot iterate from a value on an empty tree");if(!this.empty){null !== e && void 0 !== e?e:e=this.mE.value;return this.CRc(e,function(l){return !!(k=h.Hub(g,l));})?k:g(e,this)?e:void 0;}};f.prototype.ksb=function(g){var e,h,k,l;e=this;h=this.values;k=h.filter(function(m){return !g.has(m);});l=g.values.filter(function(m){return !e.has(m);});h=h.filter(function(m){return g.has(m) && e.parent(m) !== g.parent(m);});return {bX:k,Fy:l,k_a:h};};f.prototype.compare=function(g){var e,h;g=this.ksb(g);e=g.Fy;h=g.k_a;return 0 === g.bX.length && 0 === e.length && 0 === h.length;};f.prototype.Dla=function(g,e){g.parent=e;(e.children || (e.children=[])).push(g);};f.prototype.detach=function(g){var e;d.l && (0,c.assert)(g.parent,"cannot detach the root");d.l && (0,c.assert)(void 0 !== g.parent.children,"logic error: parent node does not have children");e=g.parent.children.indexOf(g);(0,c.assert)(0 <= e,"logic error: node does not appear in the children of its parent");g.parent.children.splice(e,1);g.parent=void 0;};f.prototype.kwc=function(g,e){for(;void 0 !== e;){if(e === g)return !0;e=e.parent;}return !1;};return f;})();b.uja=t;},85254:function(t,b,a){var f,g,e;function d(h){var k,l,m,q;m=Object.getOwnPropertyNames(h);for(h=Object.getPrototypeOf(h);h !== Object.prototype;){try{for(var p=(k=void 0,f.__values(Object.getOwnPropertyNames(h))),r=p.next();!r.done;r=p.next()){q=r.value;-1 === m.indexOf(q) && m.push(q);}}catch(u){k={error:u};}finally{try{r && !r.done && (l=p.return) && l.call(p);}finally{if(k)throw k.error;}}h=Object.getPrototypeOf(h);}return m;}function n(h,k,l,m,p){var r;Object.getOwnPropertyNames(h).filter(function(q){return p(q) && (l || !Object.prototype.hasOwnProperty.call(k,q)) && (m || !((q in k)));}).forEach(function(q){r=Object.getOwnPropertyDescriptor(h,q);void 0 !== r && Object.defineProperty(k,q,r);});}function c(h,k,l,m){var p,r;p=[];l || (p=Object.getOwnPropertyNames(k));m || (p=d(k));r=Object.getPrototypeOf(h);null !== r && r !== Object.prototype && c(r,k,l,m);n(h,k,!0,!0,function(q){return "constructor" !== q && -1 === p.indexOf(q);});}Object.defineProperties(b,{__esModule:{value:!0}});b.n6c=c;b.vl=function(h,k,l,m){void 0 === l && (l=!0);void 0 === m && (m=!0);m || (0,g.assert)(!l);h.prototype?(c(h.prototype,k.prototype,l,m),n(h,k,l,m,function(p){return -1 === e.indexOf(p);})):n(h,k.prototype,l,m,function(p){return -1 === e.indexOf(p);});return k;};f=a(22970);g=a(52571);e=Object.getOwnPropertyNames(Function);},8149:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.yk=function(a){return !(null === a || void 0 === a || !a.za);};b.oo=function(a){return !(null === a || void 0 === a || !a.Eb);};b.S9c=function(a){return a.M.Eb;};},65167:function(t,b,a){var m,p,r;function d(q){return Array.isArray(q)?q.reduce(function(u,v){return u + v;},0):!1;}function n(q){return Array.isArray(q) && q.length?d(q) / q.length:!1;}function c(q){var u;if(!Array.isArray(q) || 2 > q.length)return !1;u=n(q);return d(q.map(function(v){return (v - u) * (v - u);})) / (q.length - 1);}function f(q){if(!Array.isArray(q) || 2 > q.length)return !1;q=c(q);return Math.sqrt(q);}function g(q,u){if(q.length == u.length && 1 < q.length){for(var v=q.length,w=0,x=d(q),y=d(u),A=0;A < v;A++)w+=q[A] * u[A];return (w - x * y / v) / v;}return !1;}function e(q,u,v){return Math.max(Math.min(q,v),u);}function h(q,u){return "number" === typeof q?q:u;}function k(q){return 1 / (1 + Math.exp(-q));}function l(q,u,v){return q * v + (1 - v) * u;}Object.defineProperties(b,{__esModule:{value:!0}});b.tanh=b.Df=void 0;b.oq=function(q,u,v){var w;if(r){"managerdebugevent" === u && (null === (w=q.trace) || void 0 === w?void 0:w.call(q,"managerdebugevent:",v.message));}if(r)q.emit(u,v);else try{q.emit(u,v);}catch(x){if(q.error)q.error("JAVASCRIPT EXCEPTION: Caught in ASE client event listener. Exception:",x,"Event:",v);else throw x;}};b.Di=function(q,u){void 0 !== q && m.KGc(q).forEach(function(v){u(v[0],v[1]);});};b.Zz=function(){var v;for(var q=[],u=0;u < arguments.length;u++)q[u]=arguments[u];q=Array.prototype.concat.apply([],q);u=q.reduce(function(w,x){return w + x.byteLength;},0);v=new Uint8Array(u);q.reduce(function(w,x){v.set(new Uint8Array(x),w);return w + x.byteLength;},0);return v.buffer;};b.W8c=d;b.y8c=n;b.Z8c=c;b.U8c=f;b.B8c=g;b.A8c=function(q,u){var v;if(q.length == u.length){v=g(q,u);q=f(q);u=f(u);if(0 < q && 0 < u)return v / (q * u);}return !1;};b.Kcd=function(q){return q.length?"{" + q + "} ":"";};b.vma=e;b.vbc=function(q,u,v,w){return {min:e(h(q.min,u),v,w),max:e(h(q.max,u),v,w),gG:e(q.gG || 6E4,0,6E5),sob:e(q.sob || 0,-3E5,3E5),scale:e(q.scale || 6E4,0,3E5),DLb:e(q.DLb || 0,-3E5,3E5),gamma:e(q.gamma || 1,.1,10)};};b.hRc=k;b.nPa=function(q,u,v){return q.min + (q.max - q.min) * (1 - Math.pow(k(6 * (u - (q.gG + (q.sob || 0) * (1 - v))) / (q.scale + (q.DLb || 0) * (1 - v))),q.gamma));};b.slc=function(q,u){return q.min + (q.max - q.min) * Math.pow(k(6 * (u - q.gG) / q.scale),q.gamma);};b.scale=l;b.eOc=function(q,u,v){return {min:l(q.min,u.min,v),max:l(q.max,u.max,v),gG:l(q.gG,u.gG,v),scale:l(q.scale,u.scale,v),gamma:l(q.gamma,u.gamma,v)};};m=a(22970).__importStar(a(17267));p=a(91176);Object.defineProperties(b,{Df:{enumerable:!0,get:function(){return p.Df;}}});r=!1;b.tanh=Math.tanh || (function(q){var u;u=Math.exp(+q);q=Math.exp(-q);return Infinity == u?1:Infinity == q?-1:(u - q) / (u + q);});},444:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.pF=void 0;d=a(91176);t=(function(){function n(c,f){this.dP=c;this.SO=f;this.$Nc();}n.from=function(c){return "number" === typeof c?new n(c,1):new n(c.ty,c.Hv);};n.tQa=function(c){return new n(c.O,c.$);};Object.defineProperties(n.prototype,{ty:{get:function(){return this.dP;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{Hv:{get:function(){return this.SO;},enumerable:!1,configurable:!0}});n.prototype.Ea=function(){return new d.I(this.SO,this.dP);};n.prototype.equal=function(c){return this.dP === c.dP && this.SO === c.SO;};n.prototype.normalize=function(c){return new d.I(Math.floor((Math.floor(c + 1) * this.ty - 1) / (1E3 * this.Hv)) * this.Hv,this.ty);};n.prototype.$Nc=function(){var c,f,g;c=Math.floor(1E3 * this.dP / this.SO);f=Math.floor(1001 * this.dP / this.SO);g=1E3 * Math.round(c / 1E3);this.dP=g;this.SO=Math.abs(f - g) > Math.abs(c - g)?1E3:1001;};return n;})();b.pF=t;},52629:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.pW=void 0;d=a(91176);b.pW=(function(){return function(n,c){var f;void 0 === c && (c={w:1,Rx:1});this.yo=n;this.$Gb=c;f=n.w * c.w;n=n.Rx * c.Rx;c=(0,d.MK)(f,n);this.BC={w:f / c,Rx:n / c};};})();},51044:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.writable=void 0;b.writable=function(a){return a;};},48912:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Dja=void 0;d=a(66164);t=(function(){function n(c){this.H1=new Uint16Array(c.length);for(var f=0;f < c.length;++f)this.H1[f]=c.charCodeAt(f);}n.prototype.encrypt=function(c){for(var f=this.H1.length,g="",e=0;e < c.length;++e)g+=String.fromCharCode(this.H1[e % f] ^ c.charCodeAt(e));return encodeURIComponent(g);};n.prototype.decrypt=function(c,f){var g,e;void 0 === f && (f=!1);g=this.H1.length;e="";if(f)for((c=d.platform.$ma(c),f=new Uint8Array(c),c=0);c < f.length;c++)e+=String.fromCharCode(this.H1[c % g] ^ f[c]);else for((f=decodeURIComponent(c),c=0);c < f.length;c++)e+=String.fromCharCode(this.H1[c % g] ^ f.charCodeAt(c));return e;};return n;})();b.Dja=t;},21479:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Kib="ella-object";b.Eja="1.0.37";},83195:function(t,b,a){var g;function d(){return Object.create(null);}function n(e){this.log=e.log;this.Ma=e.Ma;this.qy=d();this.Promise=e.Promise;this.Zo=e.Zo;this.zI=e.zI;this.mD=e.mD || !1;this.N8=d();this.GC=d();this.KP=d();this.rYa=!1;this.w4b(e);e.Zt && (this.Zt=e.Zt);}function c(e){return "undefined" !== typeof e;}function f(e){var l;for(var h=0,k=arguments.length;h < k;){l=arguments[h++];if(c(l))return l;}}a(85852);g=a(46601);n.prototype.w4b=function(e){this.N8.manifest=f(e.Dlc,g.HQ.S);this.N8.ldl=f(e.Clc,g.HQ.aba);this.N8.metadata=f(e.L7c,g.HQ.zc);this.GC.manifest=f(e.i$b,g.GC.S);this.GC.ldl=f(e.h$b,g.GC.aba);this.GC.metadata=f(e.G5c,g.GC.zc);this.KP.manifest=f(e.E5c,g.KP.S);this.KP.ldl=f(e.D5c,g.KP.aba);this.KP.metadata=f(e.F5c,g.KP.zc);};n.prototype.V$=function(e,h){this.Fv("undefined" !== typeof e);this.Fv("undefined" !== typeof h);return !!this.qjb(e,h,void 0).value;};n.prototype.qjb=function(e,h,k){var l,m;l={value:null,reason:"",log:""};m=this.qy[h];k=k?k:"DEFAULTCAPS";if("undefined" === typeof m)return (l.log="cache miss: no data exists for field:" + h,l.reason="unavailable",l);"undefined" === typeof m[e]?(l.log="cache miss: no data exists for movieId:" + e,l.reason="unavailable"):(m=m[e][k]) && m.value?this.jka(m)?(l.log="cache miss: " + h + " data expired for movieId:" + e,l.reason="expired",this.clearData(e,h,k,!1,"expired")):(l.log=this.Promise && m.value instanceof this.Promise?"cache hit: " + h + " request in flight for movieId:" + e:"cache hit: " + h + " available for movieId:" + e,l.value=m.value):(l.log="cache miss: " + h + " data not available for movieId:" + e,l.reason="unavailable");return l;};n.prototype.getData=function(e,h,k){this.Fv("undefined" !== typeof e);this.Fv("undefined" !== typeof h);e=this.qjb(e,h,k);this.log.trace(e.log);return e.value?this.Promise?e.value instanceof this.Promise?e.value:Promise.resolve(e.value):this.zI?JSON.parse(this.zI(e.value,"gzip",!1)):e.value:this.Promise?Promise.reject(e.reason):e.reason;};n.prototype.setData=function(e,h,k,l,m,p){var r,q,u;this.Fv("undefined" !== typeof e);this.Fv("undefined" !== typeof h);r=this.qy;q=m?m:"DEFAULTCAPS";r[h] || (r[h]=d(),Object.defineProperty(r[h],"numEntries",{enumerable:!1,configurable:!0,writable:!0,value:0}),Object.defineProperty(r[h],"size",{enumerable:!1,configurable:!0,writable:!0,value:0}));k=this.Zo?this.Zo(JSON.stringify(k),"gzip",!0):k;r=r[h];this.n3b(e,h,q,r);u=this;p=p || this.N8[h] + 1;l={creationTime:this.Ma.getTime(),value:k,size:0,type:h,iOa:l,HQ:p,xPa:setTimeout(function(){u.clearData(e,h,q,!1,"expired");},p)};r[e]=r[e] || d();r[e][q]=r[e][q] || d();r[e][q]=l;r.size+=0;r.numEntries++;this.Zt && this.Zt.emit("addedCacheItem",l);return l;};n.prototype.Oob=function(e,h){var k,l,m,p;l=Number.POSITIVE_INFINITY;m=this;Object.keys(e).every(function(r){var q;q=e[r] && e[r][h];q && q.value && m.jka(q) && (p=r);q && q.value && q.creationTime < l && (l=q.creationTime,k=r);return !0;});return p || k;};n.prototype.n3b=function(e,h,k,l){var m,p,r,q,u;m=l.numEntries;p=this.GC[h];r=l[e] && l[e][k];if(r && r.value)(q=e,u="promise_or_expired");else m >= p && !this.rYa && (q=this.Oob(l,k),u="cache_full");this.mD && this.log.debug("makespace ",{maxCount:p,currentCount:l.numEntries,field:h,movieId:e,movieToBeRemoved:q});q && (this.clearData(q,h,k,void 0,u),this.log.debug("removed from cache: ",q,h));};n.prototype.wMa=function(e,h){var k,l;k=this;k.Fv("undefined" !== typeof e);l=e + "";h.forEach(function(m){var p;p=k.qy[m];p && Object.keys(p).forEach(function(r){r != l && k.clearData(r,m,void 0,void 0,"clear_all");});});};n.prototype.clearData=function(e,h,k,l,m){var p;this.Fv("undefined" !== typeof e);this.Fv("undefined" !== typeof h);p=this.qy[h];h=p?p[e]:void 0;k=k?k:"DEFAULTCAPS";if(h && h[k]){p.size-=h[k].size;p.numEntries--;if(p=h && h[k])(clearTimeout(p.xPa),h[k]=void 0,!l && p.iOa && p.iOa());this.Zt && (e={creationTime:p.creationTime,destroyFn:p.iOa,size:p.size,type:p.type,value:p.value,reason:m,movieId:e},this.Zt.emit("deletedCacheItem",e));}};n.prototype.NQb=function(e,h,k,l){var m,p,r;this.Fv("undefined" !== typeof e);this.Fv("undefined" !== typeof h);m=this;p=this.qy[h];p=p?p[e]:void 0;r=k?k:"DEFAULTCAPS";k=p && p[r];l=l || this.N8[h] + 1;k && (clearTimeout(k.xPa),k.creationTime=this.Ma.getTime(),k.HQ=l,k.xPa=setTimeout(function(){m.clearData(e,h,r,!1,"expired");},l));};n.prototype.flush=function(e){var h;this.Fv("undefined" !== typeof e);h=this.qy;h[e]=d();h[e].numEntries=0;h[e].size=0;};n.prototype.Yob=function(){var e,h;this.Fv(!1);e=this;h=this.qy;h[void 0] instanceof Object && Object.keys(h[void 0]).forEach(function(k){var l;l=h[void 0][k].DEFAULTCAPS;e.Ma.getTime() - l.creationTime > l.HQ && e.clearData(k,void 0,"DEFAULTCAPS",void 0,"clean_up");});};n.prototype.jka=function(e){return this.Ma.getTime() - e.creationTime > e.HQ;};n.prototype.getStats=function(e,h,k){var l,m,p,r,q;l={};m=this;p=m.qy;r=c(e) && c(h);q=k || "DEFAULTCAPS";Object.keys(p).forEach(function(u){var v,w;v=Object.keys(p[u]);w=p[u];v.forEach(function(x){!(x=w && w[x] && w[x][q]) || !c(x.value) || x.value instanceof m.Promise || (l[u]=(l[u] | 0) + 1,m.jka(x) && (l[u + "_expired"]=(l[u + "_expired"] | 0) + 1),r && x.creationTime >= e && x.creationTime < h && (l[u + "_delta"]=(l[u + "_delta"] | 0) + 1));});});return l;};n.prototype.getState=function(e){var h,k,l,m;h=[];k=this;l=k.qy;m=e || "DEFAULTCAPS";Object.keys(l).forEach(function(p){var r,q;r=Object.keys(l[p]);q=l[p];r.forEach(function(u){var v,w;v=q && q[u] && q[u][m];if(v && c(v.value)){w=k.jka(v)?"expired":v.value instanceof k.Promise?"loading":"cached";h.push({movieId:u,state:w,type:p,size:v.size});}});});return h;};n.prototype.YPc=function(){this.rYa=!0;};n.prototype.xNc=function(){var e;for(this.rYa=!1;this.qy.manifest.numEntries > this.GC.manifest;){e=this.Oob(this.qy.manifest,void 0);this.clearData(e,"manifest",void 0,void 0,"eviction");this.log.debug("removed from cache: ",e,"manifest");this.mD && this.log.debug("makespace ",{maxCount:this.GC.manifest,currentCount:this.qy.manifest.numEntries,field:"manifest",movieToBeRemoved:e});}};n.prototype.Fv=function(e){if(!e && (this.log.error("Debug Assert Failed",void 0),this.mD))throw Error("Debug Assert Failed ");};t.exports=n;},46601:function(t){t.exports={HQ:{S:12E5,aba:9E5,zc:12E5},GC:{S:10,aba:10,zc:10},KP:{S:10240,aba:10240,zc:10240}};},85852:function(t){function b(a){var d;d=[];return (function f(c){if(c && "object" === typeof c){if(-1 !== d.indexOf(c))return !0;d.push(c);for(var g in c)if(c.hasOwnProperty(g) && f(c[g]))return !0;}return !1;})(a);}t.exports=function(a,d){var c;if(d && b(a))return -1;d=[];a=[a];for(var n=0;a.length;){c=a.pop();if("boolean" === typeof c)n+=4;else if("string" === typeof c)n+=2 * c.length;else if("number" === typeof c)n+=8;else if("object" === typeof c && -1 === d.indexOf(c)){d.push(c);for(var f in c)a.push(c[f]);}}return n;};},43155:function(t,b,a){var n;function d(c){if(c.aborted)throw c.reason;}Object.defineProperties(b,{__esModule:{value:!0}});b.kTb=void 0;b.Aqa=function(c){return "AbortError" === (null === c || void 0 === c?void 0:c.name);};b.oPb=d;b.ula=function(c,f){function g(){}void 0 === f && (f=!0);f || (g=function(){d(c);});return new Promise(function(e){var k;function h(){return e();}c.aborted && e();c.addListener?c.addListener("abort",h):null === (k=c.addEventListener) || void 0 === k?void 0:k.call(c,"abort",h);}).then(g);};n=a(22970);t=(function(c){function f(g){g=c.call(this,g) || this;g.name="AbortError";return g;}n.__extends(f,c);return f;})(Error);b.kTb=t;},44510:function(t,b,a){var n,c,f;function d(g){var e;return null !== (e=g.Crb) && void 0 !== e?e:g.name;}Object.defineProperties(b,{__esModule:{value:!0}});b.Algorithm=void 0;b.lqb=function(g,e){var h;h=0;return Object.assign(function(k,l){for(var m=[],p=2;p < arguments.length;p++)m[p - 2]=arguments[p];for(p=h;p < g.length;p++)if(g[p].apply(void 0,n.__spreadArray([k,l],n.__read(m),!1))){if((h++,h === g.length))return (h=0,!0);}else break;e.apply(void 0,n.__spreadArray([k,l],n.__read(m),!1)) && (h=0);return !1;},{reset:function(){return h=0;},Crb:("combinator(").concat(g.map(d).join(", "),")")});};b.Uec=function(g){var k,l,m,p,r,q,u;function e(){null === q || void 0 === q?void 0:q.Ka();q=void 0;u=!1;}function h(){u=!0;q=void 0;}k=g.wcc;l=g.Kgc;m=g.bwc;p=void 0 === m?k:m;r=g.mc;u=!1;return Object.assign(function(v,w){for(var x=[],y=2;y < arguments.length;y++)x[y - 2]=arguments[y];u || q || !k.apply(void 0,n.__spreadArray([v,w],n.__read(x),!1)) || (q=r.Ut(c.$d.bz(f.I.Ba(l)),h));p.apply(void 0,n.__spreadArray([v,w],n.__read(x),!1)) && e();(x=u) && (u=!1);return x;},{reset:e,Crb:("debounced(").concat(d(k),", ").concat(l,"ms)")});};n=a(22970);c=a(24153);f=a(44847);t=(function(){function g(e,h){this.rules=e;this.store=h.store;this.JRa=h.JRa || (function(){return [];});this.store.addListener("update",this.HM.bind(this));}g.prototype.reset=function(){this.rules.forEach(function(e){var h,k;return null === (k=(h=n.__read(e,1)[0]).reset) || void 0 === k?void 0:k.call(h);});};g.prototype.HM=function(e){var h,k,l,m,p,r,q,u,v,w,A,z;m=e.Cy;e=e.next;this.store.NRc();try{p=n.__values(this.rules);r=p.next();a:for(;!r.done;r=p.next()){q=n.__read(r.value,2);u=q[0];v=q[1];w=Array.isArray(v)?v:[v];if(u.apply(void 0,n.__spreadArray([m,e],n.__read(this.JRa()),!1))){try{for(var x=(k=void 0,n.__values(w)),y=x.next();!y.done;y=x.next()){A=y.value;z=null === A || void 0 === A?void 0:A(e,d(u));z && z.reset?this.store.reset(z.sy):z && z.sy && this.store.next(z.sy);if(z && z.w9b)break a;}}catch(C){k={error:C};}finally{try{y && !y.done && (l=x.return) && l.call(x);}finally{if(k)throw k.error;}}e=this.store.value;}}}catch(C){var B;B={error:C};}finally{try{r && !r.done && (h=p.return) && h.call(p);}finally{if(B)throw B.error;}}this.store.Skc();};return g;})();b.Algorithm=t;},27192:function(t,b,a){var f;function d(g){return g.filter(function(e,h){return g.indexOf(e) === h;});}function n(g,e,h){return h?g.filter(function(k){return !e.some(function(l){return h(k,l);});}):g.filter(function(k){return -1 === e.indexOf(k);});}function c(g,e,h){return g.length < e.length?h?c(e,g,function(k,l){return h(l,k);}):c(e,g):h?g.map(function(k,l){return h(k,e[l])?-1:l;}).filter(function(k){return -1 !== k;}):g.map(function(k,l){return k === e[l]?-1:l;}).filter(function(k){return -1 !== k;});}Object.defineProperties(b,{__esModule:{value:!0}});b.cc=function(g,e){for(var h=0;h < g.length;h++)if(e(g[h],h,g))return g[h];};b.UKa=function(g,e){for(var h=g.length - 1;0 <= h;--h)if(e(g[h],h,g))return g[h];};b.Lm=function(g,e){var h;h=-1;return g.some(function(k,l,m){h=l;return e(k,l,m);})?h:-1;};b.Jmb=function(g,e){for(var h=g.length - 1;0 <= h;h--)if(e(g[h],h,g))return h;return -1;};b.TKa=d;b.VKa=function(g,e){return g.filter(function(h,k){return g.indexOf(h) === k && -1 !== e.indexOf(h);});};b.WKa=function(g,e){e=g.indexOf(e);if(-1 === e)return !1;g.splice(e,1);return !0;};b.Yo=n;b.Imb=c;b.jX=function(g,e){return d(g.concat(e));};b.c6c=function(g){return function(e,h){return g(e) - g(h);};};b.vCc=function(g){return function(e,h){return g(e) < g(h)?e:h;};};b.flatten=function(g){var e;return (e=[]).concat.apply(e,f.__spreadArray([],f.__read(g),!1));};b.o6c=function(g,e){void 0 === e && (e=function(h){return h;});return g.reduce(function(h,k){k=e(k);return (void 0 === h[k]?h[k]=1:++h[k],h);},{});};b.$8c=function(g,e){return g.reduce(function(h,k){var l;l=e(k);return (void 0 === h[l]?h[l]=[k]:h[l].push(k),h);},{});};b.xFb=function(g){return null !== g && void 0 !== g;};b.v7b=function(g){var e,k;e=[];if(Array.isArray(g))for(var h=0;h < g.length;h++){k=g[h];Array.isArray(k)?e=e.concat(k.filter(function(l){return void 0 !== l;})):void 0 !== k && e.push(k);}return e;};b.dcc=function(g,e,h){var k;k=n(g,e,h);e=n(e,g,h);g=n(g,k);return {vda:k,Zlb:e,Kua:g,result:g.concat(e)};};b.lZ=function(g,e){for(var h=g.length - 1;0 <= h;--h)e(g[h],h,g);};f=a(22970);},43529:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.AssertionError=void 0;b.assert=function(c,f){if(!c)throw new n(f || "Assertion failed");};d=a(22970);n=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);return f;})(Error);b.AssertionError=n;},70058:function(t,b,a){var c,f,g,e,h,k,l;function d(m){return m && "function" === typeof m.Zg?!0:!1;}function n(m){return d(m) && (m=typeof m.e_,"boolean" === m || "undefined" === m)?!0:!1;}Object.defineProperties(b,{__esModule:{value:!0}});b.Sga=b.xga=b.AsyncIterator=void 0;b.XTa=d;b.APa=n;b.map=function(m,p,r){return new l(m,p,r);};b.xoa=function(m,p,r){return new k(m,p,r);};c=a(22970);f=a(32910);e=(function(){function m(p){var r;r=this;this.P2b=p;this.l6=!1;this.g4b=function(q){return r.WJc(q);};this.jqb();}m.$qa=function(p,r){function q(){var u;u=p.next();u.then(function(v){n(p) && p.e_ || r(v);});u.then(function(v){return !v.done && q();});}q();};Object.defineProperties(m.prototype,{gH:{get:function(){return this.l6;},enumerable:!1,configurable:!0}});m.lSa=function(){g || (g=Promise.resolve({done:!0}));return g;};Object.defineProperties(m.prototype,{d_:{get:function(){return this.Zc || !1;},enumerable:!1,configurable:!0}});m.prototype.Zg=function(){this.cancel();};m.prototype.cancel=function(){this.O0();this.Zc=!0;return this.$La;};m.prototype.next=function(){return this.Zc?this.$La:Promise.race([this.$La,this.P2b()]).then(this.g4b);};m.prototype.WJc=function(p){p.done && (this.l6=!0,this.Zg());this.d_ || (this.O0(),this.jqb());return p;};m.prototype.jqb=function(){var p;p=this;this.$La=new Promise(function(r){p.O0=function(){return r({done:!0});};});};return m;})();b.AsyncIterator=e;h=(function(m){function p(r){var q;q=m.call(this,function(){return q.Zqc();}) || this;q.Pz=r;q.index=0;return q;}c.__extends(p,m);p.prototype.Zg=function(){d(this.Pz) && this.Pz.Zg();m.prototype.Zg.call(this);};p.prototype.Zqc=function(){return this.Pz.length > this.index?Promise.resolve({value:this.Pz[this.index++],done:!1}):Promise.resolve({done:!0});};return p;})(e);b.xga=h;k=(function(m){function p(r,q,u){var v;v=m.call(this,function(){return v.LWa();}) || this;v.console=q;v.mp=u;v.vZa=!1;Array.isArray(r)?v.Cca=new h(r):v.Cca=r;return v;}c.__extends(p,m);p.prototype.YJc=function(r){var q;this.vZa=!1;q=this.console;f.l && q && q.trace("CompoundIterator: processNextOuterIterator");if(r.done)return r;r=r.value;if(this.e_)return (d(r) && r.Zg(),e.lSa());Array.isArray(r)?this.mp=new h(r):this.mp=r;return this.LWa();};p.prototype.XJc=function(r){var q;q=this.console;f.l && q && q.trace("CompoundIterator: processNextInnerResult",this.e_,r.done);if(!r.done || this.e_)return r;this.mp=void 0;return this.LWa();};p.prototype.Zg=function(){var r;r=this.console;f.l && r && r.trace("CompoundIterator: dispose");this.e_=!0;m.prototype.Zg.call(this);d(this.Cca) && this.Cca.Zg();d(this.mp) && this.mp.Zg();};p.prototype.toString=function(){return ("CompoundIterator ").concat(this.e_," ").concat(this.Cca," ").concat(this.mp);};p.prototype.LWa=function(){var r,q;r=this;q=this.console;f.l && q && q.trace("CompoundIterator: nextImpl");if(this.mp)return (f.l && q && q.trace("CompoundIterator: getNextInner"),this.mp.next().then(function(u){return r.XJc(u);}));this.vZa=!0;f.l && q && q.trace("CompoundIterator: getNextOuter");return this.Cca.next().then(function(u){return r.YJc(u);});};return p;})(e);b.Sga=k;l=(function(m){function p(r,q,u){var v;v=m.call(this,function(){return v.J2b();}) || this;v.source=r;v.XVa=q;v.QMa=u;return v;}c.__extends(p,m);p.prototype.Zg=function(){d(this.source) && this.source.Zg();m.prototype.Zg.call(this);};p.prototype.J2b=function(){var r,q,u;r=this.QMa;q=this.XVa;u=this.source;f.l && r && r.trace("MappedIterator: Requesting next");return u.next().then(function(v){return v.done?v:q(v.value);});};return p;})(e);},13489:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.GUb=void 0;d=a(73550);n=(function(){function c(f,g,e){this.Y1b=f;this.k2b=g;this.jk=e;this.hka=!1;}c.prototype.Zo=function(){this.hka || (this.bIa=this.Y1b(this.jk),this.BJ=this.bIa.length,this.jk=void 0,this.hka=!0);};c.prototype.K8=function(){this.hka && (this.jk=this.k2b(this.bIa),this.bIa=void 0,this.hka=!1);};Object.defineProperties(c.prototype,{data:{get:function(){this.K8();return this.jk;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{size:{get:function(){return this.BJ;},enumerable:!1,configurable:!0}});return c;})();t=(function(){function c(){this.flush();}c.prototype.set=function(f,g,e){void 0 === e && (e=!0);f=this.DJa(f,g).Vnb;e && f.Zo();};c.prototype.DJa=function(f,g){var e,h;e=this;h=new n(void 0,void 0,g);g=new d.DV({name:"compression",yca:function(k){var l;k() && (null === (l=e.Ema.get(f)) || void 0 === l?void 0:l.data) === h && h.Zo();}});this.Ema.set(f,{data:h,PA:g});return {Vnb:h,PA:g};};c.prototype.get=function(f){if(f=this.Ema.get(f))return {value:f.data,jl:f.PA.Oz()};};c.prototype.delete=function(f){this.Ema.delete(f);};c.prototype.flush=function(){this.Ema=new Map();};return c;})();b.GUb=t;},91631:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.M8a=b.aw=b.tk=b.t4a=b.Fgb=void 0;d=a(22970);n=a(66164);c=a(50214);b.Fgb=function(f){return void 0 !== f.hA.vRc?f.RUa + f.hA.vRc:Infinity;};b.t4a=function(f){return void 0 !== f.hA.absolute?f.hA.absolute:Infinity;};b.tk=function(f){if(!f)return Infinity;f=Math.min((0,b.Fgb)(f),(0,b.t4a)(f));return isNaN(f)?Infinity:f;};b.aw=function(f,g){null !== g && void 0 !== g?g:g=n.platform.time.now();return (0,b.tk)(f) <= g;};t=(function(){function f(g){this.GFc=g;this.wE=new c.tO([],function(e,h){e=(0,b.tk)(e);h=(0,b.tk)(h);return e - h;});}Object.defineProperties(f.prototype,{size:{get:function(){return this.wE.length;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{values:{get:function(){return this.wE.wj();},enumerable:!1,configurable:!0}});f.prototype.has=function(g){return this.wE.contains(g);};f.prototype.track=function(g){this.has(g)?this.sda(g):(this.wE.push(g),this.ig());};f.prototype.delete=function(g){var e;e=this.has(g);e && this.wE.remove(g);return e;};f.prototype.clear=function(){this.wE.clear();};f.prototype.sda=function(g){g.RUa=n.platform.time.now();this.wE.sda(g);this.ig();};f.prototype.ig=function(){var e,h,k,l;function g(q){var u;u=(0,b.tk)(q);if(isFinite(u))return (l.uE=setTimeout(function(){h.uE=void 0;h.Otb(u);},u - k),"break");l.delete(q);}h=this;this.uE && clearTimeout(this.uE);k=n.platform.time.now();this.Otb(k,!1);l=this;try{for(var m=d.__values(this.wE.wj()),p=m.next();!p.done && "break" !== g(p.value);p=m.next());}catch(q){var r;r={error:q};}finally{try{p && !p.done && (e=m.return) && e.call(m);}finally{if(r)throw r.error;}}};f.prototype.Otb=function(g,e){var h;for(void 0 === e && (e=!0);(0,b.aw)(this.wE.Hs(),g);){h=this.wE.pop();this.GFc(h);}e && this.ig();};return f;})();b.M8a=t;},67442:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.iBa=void 0;d=a(50214);n=a(85068);t=(function(){function c(f,g){var e;this.console=f;this.xg=g.xg;this.lLa=null !== (e=g.lLa) && void 0 !== e?e:!1;this.clear();}Object.defineProperties(c.prototype,{aE:{get:function(){return this.gg.length;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{WW:{get:function(){return this.Y6.size;},enumerable:!1,configurable:!0}});c.prototype.Iob=function(){var f;for(;this.Y6.size < this.xg && this.gg.length;){f=this.gg.pop();this.Htb(f);}};c.prototype.Htb=function(f){var g;g=this;this.console.debug("Execute throttler item",{Mua:f.item.priority,aE:this.aE,hlb:this.WW,Paa:f.Ym.FM});f.Ym.FM || (f.Ym.resolve(f.item.dAb()),this.Y6.add(f.item),f.Ym.promise.catch(function(){return g.remove(f.item);}),this.lLa && f.Ym.promise.then(function(){return g.remove(f.item);},function(){return g.remove(f.item);}));};c.prototype.add=function(f){var g,e;g=this;this.console.debug("item added",{Mua:f.priority,aE:this.aE,hlb:this.WW});e={item:f,Ym:new n.Jo()};this.gg.push(e);this.Iob();return {aS:function(){g.gg.remove(e);g.Htb(e);},item:e.Ym.promise};};c.prototype.remove=function(f){var g,e;this.console.debug("item removed",{Mua:f.priority,aE:this.aE,hlb:this.WW});e=this.gg.find(function(h){return h.item === f;});e && this.gg.remove(e);this.Y6.delete(f);null === (g=f.GXa) || void 0 === g?void 0:g.call(f);this.Iob();};c.prototype.clear=function(){var f,g;null === (f=this.Y6) || void 0 === f?void 0:f.forEach(function(e){var h;return null === (h=e.GXa) || void 0 === h?void 0:h.call(e);});null === (g=this.gg) || void 0 === g?void 0:g.map(function(e){var h,k;return null === (k=(h=e.item).GXa) || void 0 === k?void 0:k.call(h);});this.gg=new d.tO([],function(e,h){return e.item.priority - h.item.priority;});this.Y6=new Set();};return c;})();b.iBa=t;},34268:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(57086),b);t.__exportStar(a(6077),b);t.__exportStar(a(13489),b);t.__exportStar(a(67442),b);t.__exportStar(a(49690),b);t.__exportStar(a(13816),b);t.__exportStar(a(91631),b);},57086:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.mab=b.Oha=void 0;d=a(22970);n=a(66164);c=a(90745);f=a(73550);g=a(43529);e=a(4742);t=(function(){function h(k,l){this.name=l;this.Qn=new Map();this.Wja=new WeakMap();this.console=(0,e.Df)(n.platform,k,"LeaseCache");}h.prototype.get=function(k){if(this.Qn.has(k))return (k=this.Qn.get(k),{value:k.value,jl:k.PA.Oz()});};h.prototype.keys=function(){return this.Qn.keys();};Object.defineProperties(h.prototype,{size:{get:function(){return this.Qn.size;},enumerable:!1,configurable:!0}});h.prototype.UPb=function(k,l,m){var p,r;if(this.Qn.has(l)){p=this.Qn.get(l);r=d.__assign(d.__assign({},p),{key:m,value:p.value});this.xIa(p).clear();this.Wja.delete(p);k.cJa(l,m,r);this.Qn.delete(l);return p.value;}};h.prototype.cJa=function(k,l,m){var p;p=this;this.Qn.set(l,m);this.xIa(m).addListener(m.PA.events,"leaseReleased",function(r){return r.Jqa && p.delete(l);});m.PA.name=this.name;};h.prototype.update=function(k,l){var m;this.Qn.has(k) && (k=this.Qn.get(k),k.value=null !== (m=l(k.value)) && void 0 !== m?m:k.value);};h.prototype.HRa=function(k,l){this.has(k) || this.V2b(k,l(k));return this.get(k);};h.prototype.V2b=function(k,l){(0,g.assert)(!this.has(k),("key ").concat(k," already exists in cache"));this.DJa(k,l.value,l.bM);};h.prototype.xIa=function(k){this.Wja.has(k) || this.Wja.set(k,new c.gf(this.console));return this.Wja.get(k);};h.prototype.has=function(k){return this.Qn.has(k);};h.prototype.DJa=function(k,l,m){var p,r;p=this;(0,g.assert)(!this.Qn.has(k),("key ").concat(k," already found"));r={mo:!0,key:k,value:l,bM:m,PA:new f.DV({name:("").concat(this.name,":").concat(k),yca:function(){},console:this.console})};this.xIa(r).addListener(r.PA.events,"leaseReleased",function(q){q.Jqa && p.has(k) && p.Qn.get(k) === r && p.delete(r.key);});this.Qn.set(k,r);};h.prototype.Rja=function(k){var l,m;m=this.Qn.get(k);m && (null === (l=m.bM) || void 0 === l?void 0:l.call(m),m.mo=!1,this.Qn.delete(k));};h.prototype.delete=function(k){this.Rja(k);};h.prototype.values=function(){return this.Qn.values();};h.prototype.Xt=function(){this.clear();};h.prototype.clear=function(){var k;try{for(var l=d.__values(this.Qn.keys()),m=l.next();!m.done;m=l.next())this.Rja(m.value);}catch(r){var p;p={error:r};}finally{try{m && !m.done && (k=l.return) && k.call(l);}finally{if(p)throw p.error;}}};return h;})();b.Oha=t;t=(function(h){function k(l,m){l=h.call(this,l,m) || this;l.rW=new Map();return l;}d.__extends(k,h);k.prototype.kPc=function(l,m){this.has(m) && (this.rW.has(l) || this.rW.set(l,new Set()),this.rW.get(l).add(m));};k.prototype.qoc=function(l){if(l=this.rW.get(l))return l.values();};k.prototype.Ehc=function(l,m){var p;this.delete(m);null === (p=this.rW.get(l)) || void 0 === p?void 0:p.delete(m);};k.prototype.Rja=function(l){h.prototype.Rja.call(this,l);this.rW.delete(l);};k.prototype.cJa=function(l,m,p){h.prototype.cJa.call(this,l,m,p);this.kPc(l,m);};return k;})(t);b.mab=t;},6077:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.GV=void 0;d=a(22970);n=a(66164);c=a(4069);f=a(43529);t=(function(){function g(e,h,k){void 0 === h && (h=function(l,m){return l === m;});void 0 === k && (k={});this.config=e;this.iPa=h;this.ae=[];this.BX=new c.Vg();this.fma=new c.Vg();this.options=d.__assign({xg:10},k);}Object.defineProperties(g.prototype,{isEnabled:{get:function(){return this.config.enabled;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{size:{get:function(){return this.ae.length;},enumerable:!1,configurable:!0}});g.prototype.get=function(e){if(e=this.Noa(e))return e.value;};g.prototype.delete=function(e){e=this.findIndex(e);-1 !== e && this.ae.splice(e,1);};g.prototype.rpa=function(e,h){var k;if(!this.isEnabled)return h();k=this.Noa(e);if(k)return k.value;h=h();this.ku(e,h);return h;};g.prototype.findIndex=function(e){var h,k,l,m;h=Infinity;k=Infinity;if(this.options.rx || this.options.Dw){l=n.platform.time.ha();this.options.Dw && (h=l - this.options.Dw);this.options.rx && (k=l - this.options.rx);}for(l=0;l < this.ae.length;l++){m=this.ae[l];if(this.options.Dw && m.$aa < h){this.ae.splice(l,this.ae.length - l);break;}if(this.options.rx && m.Tm < k)(this.ae.splice(l,1),l--);else if(this.iPa(m.key,e))return l;}return -1;};g.prototype.Noa=function(e){var h;e=this.findIndex(e);if(-1 !== e){h=this.ae[e];this.ae.splice(e,1);this.ae.unshift(h);this.options.Dw && (h.$aa=n.platform.time.ha());this.fma.push(e);this.BX.push(1);return h;}this.BX.push(0);};g.prototype.has=function(e,h){e=this.findIndex(e);return -1 !== e?h?this.ae[e].value === h:!0:!1;};g.prototype.Szb=function(e,h,k){if(this.isEnabled){(0,f.assert)(!this.has(e),"key already found");this.ae.unshift({key:e,value:h});e=d.__assign(d.__assign({},this.options),k);if(e.Dw || e.rx)(h=n.platform.time.ha(),e.Dw && (this.ae[0].$aa=h),e.rx && (this.ae[0].Tm=h));this.jMa();}};g.prototype.ku=function(e,h){this.Szb(e,h,this.options);};g.prototype.jMa=function(){var e;if(this.ae.length > this.options.xg){e=this.ae.pop();e && this.options.Zqa && this.options.Zqa(e.key,e.value);}};g.prototype.clear=function(){for(var e=this.ae.pop();e;)(this.options.Zqa && this.options.Zqa(e.key,e.value),e=this.ae.pop());this.ae=[];};return g;})();b.GV=t;},49690:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.hfb=void 0;d=a(22970);n=a(41674);c=a(57086);f=a(67442);t=(function(){function g(e,h,k){this.console=e;this.Txc=h;this.xg=k;this.KB=new f.iBa(e,{xg:k});this.sra=new c.Oha(e,"pri-cache");}g.prototype.getStats=function(){return {maxSize:this.xg,activeItemsLength:this.KB.WW,queueSize:this.KB.aE};};Object.defineProperties(g.prototype,{WW:{get:function(){return this.KB.WW;},enumerable:!1,configurable:!0}});Object.defineProperties(g.prototype,{aE:{get:function(){return this.KB.aE;},enumerable:!1,configurable:!0}});g.prototype.remove=function(e){this.sra.has(e) && this.sra.delete(e);};g.prototype.get=function(e){var h,k,l;h=this;k=d.__assign({},e);l=this.sra.HRa(k.key,function(){var p,r,q;function m(){k.required=!0;q.aS();}p=new n.AbortController();r={JJ:p.signal,dAb:function(){var u;h.console.trace("Invoking pri-cache",{key:k.key,Mua:k.priority,icd:k.required});u=h.Txc.ewc(k,p.signal);k.required && u.aS();m=function(){return u.aS();};return u.item;},priority:k.priority};q=h.KB.add(r);return {value:d.__assign(d.__assign({},q),{aS:function(){null === m || void 0 === m?void 0:m();}}),bM:function(){h.console.trace("pri-cache item removal",{key:k.key});p.abort();h.KB.remove(r);}};});e.required && l.value.aS();return l;};g.prototype.clear=function(){this.sra.clear();this.KB.clear();};return g;})();b.hfb=t;},13816:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.GJc=b.oZa=void 0;b.oZa=function(a,d){var n,c;return (null !== (n=a.priority) && void 0 !== n?n:0) - (null !== (c=d.priority) && void 0 !== c?c:0);};b.GJc=function(a,d){var n,c;return (null !== (n=d.priority) && void 0 !== n?n:0) - (null !== (c=a.priority) && void 0 !== c?c:0);};},62613:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.OE=void 0;b.OE=(function(){function a(){}a.kL=function(d,n){var g;function c(e){return f(g++)(e,c);}function f(e){return e >= n.length?function(){throw Error(("The last delegate in the chain should not invoke next() nextDelegateIndex ").concat(e));}:n[e];}g=0;return c(d);};return a;})();},42022:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},23512:function(t,b,a){var n;function d(){var f;function c(g,e){var h,k;h=this;k=typeof e;if("object" === k || "function" === k)if(((k=(0,n.cc)(f,function(l){return l.object === h;}))?(f.splice(k.index + 1),k.key=g):f.push({index:f.length,key:g,object:this}),g=(0,n.cc)(f,function(l){return l.object === e;})))(g=f.slice(0,g.index).map(function(l){return l.key;}).join("."),e=("[Cycle Detected: ").concat(g.length?" " + g:g,"]"),c.state.ONa=!0);return e;}f=[];c.state={ONa:!1};return c;}Object.defineProperties(b,{__esModule:{value:!0}});b.Nza=void 0;n=a(27192);b.Nza=(function(){function c(){}c.stringify=function(f){var g;g=d();return [JSON.stringify(f,g),g.state];};return c;})();},66045:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Yw=void 0;t=b.Yw={};t[t.YM=0]="skipped";t[t.SF=1]="adjustment";},70248:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Ipb=void 0;d=a(22970);n=a(32910);c=a(43529);b.Ipb=function(){for(var f=[],g=0;g < arguments.length;g++)f[g]=arguments[g];n.l && (0,c.assert)(f.length);return function(e,h){var k,p,r;try{for(var l=d.__values(f),m=l.next();!m.done;m=l.next()){p=m.value;r=p(e,h);if(0 !== r)return r;}}catch(u){var q;q={error:u};}finally{try{m && !m.done && (k=l.return) && k.call(l);}finally{if(q)throw q.error;}}return 0;};};},44201:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.M7a=void 0;d=a(43529);n=a(50214);c=a(58191);t=(function(){function f(g){this.djc=g;this.R3a=!1;this.$xa=new c.pfb();}f.prototype.$Rb=function(g,e,h){var l,m;function k(){var q,u,v,w,x,y;q=p.pop();u=q.node;v=q.ola;q=v.IIc;w=v.tq;v=v.state;if(!r.$xa.has(u)){q=e(u,w,q,v);x=q.OU;y=q.state;q.mla || r.$xa.add(u);m(u).forEach(function(A){var z;z=A.YWc;l.$xa.has(z) || (A=w + A.weight,x && p.push({node:z,ola:{tq:A,IIc:u,state:y}}));});}}l=this;m=this.djc;(0,d.assert)(!this.R3a);this.R3a=!0;this.$xa.clear();for(var p=new n.tO([{node:g,ola:{tq:0,state:h}}],function(q,u){return q.ola.tq - u.ola.tq;}),r=this;!p.empty;)k();this.R3a=!1;};return f;})();b.M7a=t;},32910:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.l=!1;},19705:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.MK=function(a,d){var n;a=Math.abs(a);for(d=Math.abs(d);d;){n=d;d=a % d;a=n;}return a;};},40512:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},91176:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(41674),b);t.__exportStar(a(43155),b);t.__exportStar(a(43155),b);t.__exportStar(a(44510),b);t.__exportStar(a(44510),b);t.__exportStar(a(27192),b);t.__exportStar(a(43529),b);t.__exportStar(a(70058),b);t.__exportStar(a(34268),b);t.__exportStar(a(62613),b);t.__exportStar(a(42022),b);t.__exportStar(a(23512),b);t.__exportStar(a(23512),b);t.__exportStar(a(66045),b);t.__exportStar(a(70248),b);t.__exportStar(a(44201),b);t.__exportStar(a(19705),b);t.__exportStar(a(97322),b);t.__exportStar(a(26540),b);t.__exportStar(a(73550),b);t.__exportStar(a(50214),b);t.__exportStar(a(48571),b);t.__exportStar(a(94500),b);t.__exportStar(a(85068),b);t.__exportStar(a(58191),b);t.__exportStar(a(94893),b);t.__exportStar(a(95130),b);t.__exportStar(a(34228),b);t.__exportStar(a(90657),b);t.__exportStar(a(4069),b);t.__exportStar(a(89989),b);t.__exportStar(a(89989),b);t.__exportStar(a(23267),b);t.__exportStar(a(15807),b);t.__exportStar(a(15807),b);t.__exportStar(a(24153),b);t.__exportStar(a(42306),b);t.__exportStar(a(44847),b);t.__exportStar(a(22633),b);t.__exportStar(a(61022),b);t.__exportStar(a(34166),b);t.__exportStar(a(94742),b);t.__exportStar(a(75347),b);t.__exportStar(a(81954),b);t.__exportStar(a(40512),b);},97322:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.q$c=function(a){var d,n;d=a.next();do {if(!d.done)n=d.value;d=a.next();}while(!d.done);return n;};b.wj=function(a){if(Array.isArray(a))return a;for(var d=[],n=a.next();!n.done;)(d.push(n.value),n=a.next());return d;};},81954:function(t,b){function a(d,n,c,f){var e;if(Array.isArray(d))d.forEach(function(h,k){h=a(h,n,d,k.toString());void 0 !== h?d[k]=h:delete d[k];});else if(null !== d && "object" === typeof d)for(var g in d)if(d.hasOwnProperty(g)){e=a(d[g],n,d,g);void 0 !== e?d[g]=e:delete d[g];}return n.call(c,f,d);}Object.defineProperties(b,{__esModule:{value:!0}});b.jLb=void 0;b.jLb=function(d,n){null !== d && "object" === typeof d && a(d,n,void 0,"");};},26540:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.rra=void 0;b.rra=function(a){var n;function d(){n || (n=a());return n;}n=void 0;d.clear=function(){n=void 0;};d.Pyb=function(){return void 0 !== n;};return d;};},94742:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.vCa=b.bGa=void 0;d=a(22970);(function(c){c[c.h0=0]="none";c[c.remove=1]="remove";c[c.clear=2]="clear";c[c.all=3]="all";})(n || (b.bGa=n={}));t=(function(){function c(f){void 0 === f && (f={});this.vD=new Map();this.options=d.__assign({lva:n.h0},f);}Object.defineProperties(c.prototype,{size:{get:function(){return this.vD.size;},enumerable:!1,configurable:!0}});c.prototype.has=function(f){return this.vD.has(f);};c.prototype.M5b=function(f,g){this.vD.set(f,g);};c.prototype.delete=function(f){return d.__awaiter(this,arguments,void 0,function(g,e){var h,k;void 0 === e && (e=!0);return d.__generator(this,function(l){switch(l.label){case 0:h=this.vD.get(g);k=this.vD.delete(g);if(l=e)(l=n.remove,l=(this.options.lva & l) === l);return l?[4,Promise.resolve()]:[3,2];case 1:(l.T(),l.label=2);case 2:return (h && h.release(),[2,k]);}});});};c.prototype.Zib=function(f){return d.__awaiter(this,void 0,void 0,function(){var g;return d.__generator(this,function(e){switch(e.label){case 0:return (g=Array.from(this.vD.values()),this.vD.clear(),f?[4,Promise.resolve()]:[3,2]);case 1:(e.T(),e.label=2);case 2:return (g.forEach(function(h){h.release();}),[2]);}});});};c.prototype.clear=function(){return d.__awaiter(this,void 0,void 0,function(){var f;return d.__generator(this,function(g){switch(g.label){case 0:return (g=n.clear,f=(this.options.lva & g) === g,[4,this.Zib(f)]);case 1:return (g.T(),[2]);}});});};c.prototype.Ka=function(){this.Zib(!1);};return c;})();b.vCa=t;},73550:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.DV=b.BXb=void 0;d=a(90745);n=a(94893);c=a(32910);f=(function(){function g(e,h){this.id=e;this.rJa=h;}g.prototype.release=function(){this.rJa();};g.prototype.toString=function(){return ("Lease(").concat(this.id,")");};return g;})();b.BXb=f;t=(function(){function g(e){var h,k;this.counter=new n.A5();this.Iyc=0;this.events=new d.EventEmitter();h=e.yca;k=e.console;this.name=e.name || "unnamed";this.name=("").concat(this.name,"-").concat(g.Jyc++);this.events.on("leaseReleased",function(l){return h(function(){return l.Jqa;});});this.console=k;c.l && (this.vD=new Set());}g.prototype.Oz=function(){var e,h,k,l,m,p,r;e=this;l=this.Iyc++;null === (h=this.console) || void 0 === h?void 0:h.trace(("Acquiring lease ").concat(this.name,", ").concat(l," total count"),this.counter.QFb + 1);m=this.counter.add();p=new f(("").concat(this.name,", ").concat(l),function(){var q,u;m.release();null === (q=e.console) || void 0 === q?void 0:q.trace(("Releasing lease from ").concat(e.name,", ").concat(l,", total count"),e.counter.QFb);e.events.emit("leaseReleased",{get Jqa() {return !r.pla;}});null === (u=e.vD) || void 0 === u?void 0:u.delete(p);});c.l && (null === (k=this.vD) || void 0 === k?void 0:k.add(p));r=this.counter;return p;};g.Jyc=0;return g;})();b.DV=t;},75347:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(80635),b);t.__exportStar(a(38180),b);t.__exportStar(a(60490),b);t.__exportStar(a(94490),b);},38180:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.$7b=b.rYb=void 0;d=a(22970);n=(function(){function c(){}c.a8b=function(f){if(null === f || void 0 === f || "object" !== typeof f)return f;f.aK && this.jq(f.aK,this.Smb.bind(this));f.Om && this.jq(f.Om,this.Smb.bind(this));f.textTracks && this.jq(f.textTracks,this.Rmb.bind(this));f.ht && this.jq(f.ht,this.Rmb.bind(this));f.jm && this.jq(f.jm,this.Umb.bind(this));f.AN && this.jq(f.AN,this.Umb.bind(this));f.M_ && this.jq(f.M_,this.S7b.bind(this));f.AU && this.jq(f.AU,this.Z7b.bind(this));f.qN && this.jq(f.qN,this.V7b.bind(this));f.sB && this.T7b(f.sB);this.X7b(f);return f;};c.jq=function(f,g){if(Array.isArray(f))for(var e=f.length,h=0;h < e;h++)g(f[h]);};c.Smb=function(f){if(!f || "object" !== typeof f)return f;f.streams && this.jq(f.streams,this.W7b.bind(this));this.Bla(f);return f;};c.Rmb=function(f){var h;if(!f || "object" !== typeof f)return f;if(f.$n && "object" === typeof f.$n)for(var g=Object.keys(f.$n),e=0;e < g.length;e++){h=f.$n[g[e]];h && "object" === typeof h && h.urls && this.jq(h.urls,this.Cla.bind(this));}this.Bla(f);this.$Ka(f);this.P7b(f);return f;};c.Umb=function(f){if(!f || "object" !== typeof f)return f;f.streams && this.jq(f.streams,this.b8b.bind(this));this.Bla(f);this.Tmb(f);return f;};c.S7b=function(f){if(!f || "object" !== typeof f)return f;f.streams && this.jq(f.streams,this.R7b.bind(this));return f;};c.R7b=function(f){if(!f || "object" !== typeof f)return f;f.urls && this.jq(f.urls,this.Cla.bind(this));this.ZKa(f);return f;};c.W7b=function(f){if(!f || "object" !== typeof f)return f;f.urls && this.jq(f.urls,this.Cla.bind(this));this.ZKa(f);return f;};c.b8b=function(f){if(!f || "object" !== typeof f)return f;f.urls && this.jq(f.urls,this.Cla.bind(this));this.ZKa(f);this.Tmb(f);return f;};c.Cla=function(f){if(!f || "object" !== typeof f)return f;this.N7b(f);return f;};c.Z7b=function(f){if(!f || "object" !== typeof f)return f;this.O7b(f);return f;};c.V7b=function(f){if(!f || "object" !== typeof f)return f;this.Bla(f);this.$Ka(f);return f;};c.Bla=function(f){f && "object" === typeof f && this.Y7b(f);};c.T7b=function(f){f && "object" === typeof f && this.$Ka(f);};c.X7b=function(f){f.aK && !f.Om && (f.Om=f.aK);f.Om && !f.aK && (f.aK=f.Om);f.textTracks && !f.ht && (f.ht=f.textTracks);f.ht && !f.textTracks && (f.textTracks=f.ht);f.AN && !f.jm && (f.jm=f.AN);f.jm && !f.AN && (f.AN=f.jm);f.qN && !f.pX && (f.pX=f.qN);f.pX && !f.qN && (f.qN=f.pX);};c.Y7b=function(f){f.id && (f.Ue || (f.Ue=f.id),f.jt || (f.jt=f.id));f.Ue && !f.id && (f.id=f.Ue);f.jt && !f.id && (f.id=f.jt);};c.$Ka=function(f){f.Ry && !f.Ty && (f.Ty=f.Ry);f.Ty && !f.Ry && (f.Ry=f.Ty);};c.ZKa=function(f){f.ob && !f.$g && (f.$g=f.ob);f.$g && !f.ob && (f.ob=f.$g);f.Uc && !f.Wr && (f.Wr=f.Uc);f.Wr && !f.Uc && (f.Uc=f.Wr);f.HH && !f.tS && (f.tS=f.HH);f.tS && !f.HH && (f.HH=f.tS);};c.Tmb=function(f){var h,k;for(var g=[["maxFramerateValue","max_framerate_value"],["maxFramerateScale","max_framerate_scale"],["pixW","pix_w"],["pixH","pix_h"],["resW","res_w"],["resH","res_h"],["framerateValue","framerate_value"],["framerateScale","framerate_scale"],["cropX","crop_x"],["cropY","crop_y"],["cropW","crop_w"],["cropH","crop_h"]],e=0;e < g.length;e++){h=d.__read(g[e],2);k=h[0];h=h[1];(k in f) && !((h in f)) && (f[h]=f[k]);(h in f) && !((k in f)) && (f[k]=f[h]);}};c.N7b=function(f){f.Th && !f.Kg && (f.Kg=f.Th);f.Kg && !f.Th && (f.Th=f.Kg);};c.O7b=function(f){f.ob && !f.$g && (f.$g=f.ob);f.$g && !f.ob && (f.ob=f.$g);};c.P7b=function(f){f.$n && !f.yI && (f.yI=f.$n);f.yI && !f.$n && (f.$n=f.yI);};return c;})();b.rYb=n;b.$7b=function(c){return n.a8b(c);};},60490:function(t,b){function a(n){n && "object" === typeof n && (void 0 !== n.id?(void 0 === n.jt && (n.jt=n.id),void 0 === n.Ue && (n.Ue=n.id)):void 0 !== n.Ue && void 0 === n.id?(n.id=n.Ue,void 0 === n.jt && (n.jt=n.Ue)):void 0 !== n.jt && void 0 === n.id && (n.id=n.jt,void 0 === n.Ue && (n.Ue=n.jt)));}function d(n){n && "object" === typeof n && void 0 !== n.Th && (n.Kg=n.Th,delete n.Th);}Object.defineProperties(b,{__esModule:{value:!0}});b.gcd=function(n){var c,e,l;if(null === n || void 0 === n || "object" !== typeof n)return n;void 0 !== n.aK && (n.Om=n.aK,delete n.aK);void 0 !== n.textTracks && (n.ht=n.textTracks,delete n.textTracks);void 0 !== n.AN && (n.jm=n.AN,delete n.AN);void 0 !== n.qN && (n.pX=n.qN,delete n.qN);c=n.Om;if(c && Array.isArray(c))for(var f=c.length,g=0;g < f;g++){e=c[g];if(e && "object" === typeof e && (a(e),e.streams && Array.isArray(e.streams)))for(var h=e.streams.length,k=0;k < h;k++){l=e.streams[k];if(l && "object" === typeof l && (void 0 !== l.Uc && (l.Wr=l.Uc,delete l.Uc),void 0 !== l.ob && (l.$g=l.ob,delete l.ob),void 0 !== l.HH && (l.tS=l.HH,delete l.HH),l.urls && Array.isArray(l.urls)))for(var m=l.urls.length,p=0;p < m;p++)d(l.urls[p]);}}if((c=n.ht) && Array.isArray(c))for((f=c.length,g=0);g < f;g++)if((e=c[g]) && "object" === typeof e && (a(e),void 0 !== e.Ry && (e.Ty=e.Ry,delete e.Ry),void 0 !== e.$n && (e.yI=e.$n,delete e.$n),(e=e.yI) && "object" === typeof e && !Array.isArray(e)))for((h=Object.keys(e),k=h.length,l=0);l < k;l++)if((m=e[h[l]]) && "object" === typeof m && m && "object" === typeof m && (void 0 !== m.ob && (m.$g=m.ob,delete m.ob),m.urls && Array.isArray(m.urls))){p=m.urls.length;for(var r=0;r < p;r++)d(m.urls[r]);}if((c=n.jm) && Array.isArray(c))for((f=c.length,g=0);g < f;g++)if((e=c[g]) && "object" === typeof e && (a(e),void 0 !== e.HDb && (e.Mba=e.HDb,delete e.HDb),void 0 !== e.GDb && (e.Lba=e.GDb,delete e.GDb),e.streams && Array.isArray(e.streams)))for((h=e.streams.length,k=0);k < h;k++)if((l=e.streams[k]) && "object" === typeof l && (void 0 !== l.Uc && (l.Wr=l.Uc,delete l.Uc),void 0 !== l.ob && (l.$g=l.ob,delete l.ob),void 0 !== l.HH && (l.tS=l.HH,delete l.HH),void 0 !== l.SHb && (l.BYa=l.SHb,delete l.SHb),void 0 !== l.QHb && (l.AYa=l.QHb,delete l.QHb),void 0 !== l.JKb && (l.B_a=l.JKb,delete l.JKb),void 0 !== l.IKb && (l.Bva=l.IKb,delete l.IKb),void 0 !== l.arb && (l.erb=l.arb,delete l.arb),void 0 !== l.brb && (l.frb=l.brb,delete l.brb),void 0 !== l.$qb && (l.drb=l.$qb,delete l.$qb),void 0 !== l.Wqb && (l.crb=l.Wqb,delete l.Wqb),void 0 !== l.qvb && (l.rQa=l.qvb,delete l.qvb),void 0 !== l.pvb && (l.qQa=l.pvb,delete l.pvb),l.urls && Array.isArray(l.urls)))for((m=l.urls.length,p=0);p < m;p++)d(l.urls[p]);if((f=n.pX) && Array.isArray(f))for((f=f.length,g=0);g < f;g++);if(n.Hk && Array.isArray(n.Hk))for((f=n.Hk.length,g=0);g < f;g++);if(n.AU && Array.isArray(n.AU))for((f=n.AU.length,g=0);g < f;g++)(c=n.AU[g]) && "object" === typeof c && void 0 !== c.ob && (c.$g=c.ob,delete c.ob);if(n.M_ && Array.isArray(n.M_))for((f=n.M_.length,g=0);g < f;g++)if((c=n.M_[g]) && "object" === typeof c && c.streams && Array.isArray(c.streams))for((e=c.streams.length,h=0);h < e;h++)if((k=c.streams[h]) && "object" === typeof k && (void 0 !== k.Uc && (k.Wr=k.Uc,delete k.Uc),void 0 !== k.ob && (k.$g=k.ob,delete k.ob),k.urls && Array.isArray(k.urls)))for((l=k.urls.length,m=0);m < l;m++)d(k.urls[m]);n.sB && (f=n.sB) && "object" === typeof f && void 0 !== f.Ry && (f.Ty=f.Ry,delete f.Ry);return n;};},80635:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.rDb=b.Ai=void 0;d=a(27192);b.Ai=function(c){return function(f,g){var e;e=this;(0,d.cc)(c,function(h){return f === h;}) && c.forEach(function(h){(h in e) || (e[h]=g);});return g;};};n=[(0,b.Ai)(["audioTracks","audio_tracks"]),(0,b.Ai)(["textTracks","timedtexttracks"]),(0,b.Ai)(["timedtexttracks","textTracks"]),(0,b.Ai)(["videoTracks","video_tracks"]),(0,b.Ai)(["maxFramerateValue","max_framerate_value"]),(0,b.Ai)(["maxFramerateScale","max_framerate_scale"]),(0,b.Ai)(["cdnList","cdnlist"]),(0,b.Ai)(["downloadables","ttDownloadables"]),(0,b.Ai)(["textTrackId","timedTextTrackId"]),(0,b.Ai)(["downloadableId","downloadable_id"]),(0,b.Ai)(["contentProfile","content_profile"]),(0,b.Ai)(["cdnId","cdn_id"]),(0,b.Ai)(["pixW","pix_w"]),(0,b.Ai)(["pixH","pix_h"]),(0,b.Ai)(["resW","res_w"]),(0,b.Ai)(["resH","res_h"]),(0,b.Ai)(["cropX","crop_x"]),(0,b.Ai)(["cropY","crop_y"]),(0,b.Ai)(["cropW","crop_w"]),(0,b.Ai)(["cropH","crop_h"]),(0,b.Ai)(["framerateValue","framerate_value"]),(0,b.Ai)(["framerateScale","framerate_scale"]),(0,b.Ai)(["newStreamId","new_stream_id"]),(0,b.Ai)(["id","new_track_id"]),(0,b.Ai)(["id","track_id"])];b.rDb=function(c,f){return n.reduce((function(g,e){return e.call(this,c,g);}).bind(this),f);};},94490:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.hH=b.za=b.GA=void 0;b.GA=function(a){return "LIVE" === a || "LINEAR" === a;};b.za=function(a){return "LIVE" === a;};b.hH=function(a){return "LINEAR" === a;};},50214:function(t,b,a){var n;function d(c,f){return c < f?-1:c > f?1:0;}Object.defineProperties(b,{__esModule:{value:!0}});b.tO=void 0;n=a(22970);t=(function(){function c(f,g){this.data=f || [];this.compare=g || d;if(!this.empty)for(f=(this.length >> 1) - 1;0 <= f;f--)this.nIa(f);}Object.defineProperties(c.prototype,{length:{get:function(){return this.data.length;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{empty:{get:function(){return 0 === this.data.length;},enumerable:!1,configurable:!0}});c.prototype.push=function(f){this.data.push(f);this.Wkb(this.length - 1);};c.prototype.pop=function(){var f,g;if(!this.empty){f=this.data[0];g=this.data.pop();this.empty || (this.data[0]=g,this.nIa(0));return f;}};c.prototype.Hs=function(){return this.data[0];};c.prototype.sda=function(f){this.remove(f);this.push(f);};c.prototype.map=function(f){return this.data.map(f);};c.prototype.find=function(f){return n.__read(this.data.filter(f),1)[0];};c.prototype.clear=function(){this.data=[];};c.prototype.remove=function(f){var g,e,h;g=this.data;f=g.indexOf(f);if(-1 !== f){e=g.pop();if(f < g.length){g[f]=e;h=f - 1 >> 1;g=g[h];0 <= h && 0 > this.compare(e,g)?this.Wkb(f):this.nIa(f);}}};c.prototype.Lla=function(){for(var f=this.data,g=1;g < f.length;g++)if(0 > this.compare(f[g],f[g - 1 >> 1]))throw Error(("Audit failed at position ").concat(g," of ").concat(f));};c.prototype.contains=function(f){return 0 <= this.data.indexOf(f);};c.prototype.wj=function(){return this.data.concat([]);};c.prototype.Wkb=function(f){for(var g=this.data,e=this.compare,h=g[f],k,l;0 < f;){k=f - 1 >> 1;l=g[k];if(0 <= e(h,l))break;g[f]=l;f=k;}g[f]=h;};c.prototype.nIa=function(f){for(var g=this.data,e=this.compare,h=this.length >> 1,k=g[f],l,m,p;f < h;){l=(f << 1) + 1;p=g[l];m=l + 1;m < this.length && 0 > e(g[m],p) && (l=m,p=g[m]);if(0 <= e(p,k))break;g[f]=p;f=l;}g[f]=k;};return c;})();b.tO=t;},48571:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.jEa=void 0;t=(function(){function a(d,n,c,f){var g;g=this;this.properties=d;this.transform=n;this.Wz=c;this.state=f;this.Tb();d.forEach(function(e){return e.addListener(g.EXa);});this.EXa();}a.prototype.clear=function(){var d;d=this;this.properties.forEach(function(n){return n.removeListener(d.EXa);});};a.prototype.uAb=function(d){return void 0 !== d.equal;};a.prototype.Tb=function(){var d;d=this;this.EXa=function(){var n,c;n=d.state;c=d.properties.map(function(f){return f.value;});d.state=d.transform(c);(d.uAb(d.state) && d.uAb(n)?d.state.equal(n):n === d.state) || d.Wz(d.state);};};return a;})();b.jEa=t;},94500:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.vt=b.W_b=void 0;d=a(22970);n=a(48571);c=a(85068);t=(function(){function f(g,e){this.hb=g;this.ZG=e?[e]:[];}Object.defineProperties(f.prototype,{value:{get:function(){return this.hb;},enumerable:!1,configurable:!0}});f.prototype.addListener=function(g){-1 === this.ZG.indexOf(g) && (this.ZG=this.ZG.slice(),this.ZG.push(g));};f.prototype.removeListener=function(g){g=this.ZG.indexOf(g);-1 !== g && (this.ZG=this.ZG.slice(),this.ZG.splice(g,1));};return f;})();b.W_b=t;t=(function(f){function g(e,h){return f.call(this,e,h) || this;}d.__extends(g,f);g.kSb=function(e,h,k){return new n.jEa(e,h,k,!1);};g.EXc=function(e,h,k){return d.__awaiter(this,void 0,void 0,function(){var l,m,p;p=this;return d.__generator(this,function(r){switch(r.label){case 0:(l=void 0,m=new Promise(function(q){l=p.kSb(e,h,q);}),r.label=1);case 1:return (r.tc.push([1,,6,7]),k?[4,(0,c.uJb)(k,m)]:[3,3]);case 2:return [2,r.T()];case 3:return [4,m];case 4:return [2,r.T()];case 5:return [3,7];case 6:return (l.clear(),[7]);case 7:return [2];}});});};Object.defineProperties(g.prototype,{value:{get:function(){return this.hb;},set:function(e){this.set(e);},enumerable:!1,configurable:!0}});g.prototype.set=function(e){var h;h=this.hb;h !== e && (this.hb=e,this.ZG.forEach(function(k){return k({oldValue:h,newValue:e});}));};return g;})(t);b.vt=t;},28999:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Jo=void 0;t=(function(){function a(){var d;d=this;this.xJa=!1;this.promise=new Promise(function(n,c){d.wJa=n;d.qJa=c;});}Object.defineProperties(a.prototype,{then:{get:function(){return this.promise.then.bind(this.promise);},enumerable:!1,configurable:!0}});Object.defineProperties(a.prototype,{FM:{get:function(){return this.xJa;},enumerable:!1,configurable:!0}});a.prototype.resolve=function(d){var n;this.xJa=!0;null === (n=this.wJa) || void 0 === n?void 0:n.call(this,d);this.qJa=this.wJa=void 0;};a.prototype.reject=function(d){var n;this.xJa=!0;null === (n=this.qJa) || void 0 === n?void 0:n.call(this,d);this.qJa=this.wJa=void 0;};return a;})();b.Jo=t;},85068:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(28999),b);t.__exportStar(a(86823),b);t.__exportStar(a(29727),b);t.__exportStar(a(54331),b);},54331:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.KEb=function(c){var f,g;f=this;g={start:void 0,end:void 0};return [function(){for(var e=[],h=0;h < arguments.length;h++)e[h]=arguments[h];return d.__awaiter(f,void 0,void 0,function(){return d.__generator(this,function(){g.start=n.platform.time.ha();return [2,c.apply(void 0,d.__spreadArray([],d.__read(e),!1)).then(function(k){g.end=n.platform.time.ha();return k;}).catch(function(k){g.end=n.platform.time.ha();throw k;})];});});},g];};d=a(22970);n=a(66164);},86823:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.jW=void 0;d=a(43529);n=a(28999);t=(function(){function c(f){void 0 === f && (f={n7:!0});this.options=f;this.correlationId=0;this.Ym=new n.Jo();}Object.defineProperties(c.prototype,{Paa:{get:function(){return this.Ym.FM;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{then:{get:function(){return this.promise.then.bind(this.promise);},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{promise:{get:function(){return this.Ym.promise;},enumerable:!1,configurable:!0}});c.prototype.TM=function(f,g){var e,h;e=this;void 0 === g && (g=!0);g && (0,d.assert)(!this.Paa);h=++this.correlationId;f.then(function(k){return e.h4b(h,k);},function(k){return e.e4b(h,k);});};c.prototype.h4b=function(f,g){(f === this.correlationId || this.options.n7) && this.Ym.resolve(g);};c.prototype.e4b=function(f,g){f === this.correlationId && this.Ym.reject(g);};return c;})();b.jW=t;},29727:function(t,b,a){var n,c,f;function d(g){return !(null === g || void 0 === g || !g.signal);}Object.defineProperties(b,{__esModule:{value:!0}});b.zVb=b.wUa=void 0;b.J9c=d;b.uJb=function(g,e){return n.__awaiter(this,arguments,void 0,function(h,k,l){var m,p;void 0 === l && (l=!1);return n.__generator(this,function(r){switch(r.label){case 0:return (m=d(h)?h.signal:h,p=(0,c.ula)(m,!l),[4,Promise.race([p,Promise.resolve(k)])]);case 1:return [2,r.T()];}});});};n=a(22970);c=a(43155);f=a(43529);a(86823);b.wUa=function(g){return "function" === typeof (null === g || void 0 === g?void 0:g.then);};t=(function(){function g(){}g.prototype.TM=function(e){(0,f.assert)(this.U2b);this.U2b.TM(e);};return g;})();b.zVb=t;},58191:function(t,b){var n,c,f;function a(g){return void 0 !== (null === g || void 0 === g?void 0:g.Nib);}function d(g){return (a(g)?g:Object.defineProperties(g,{Nib:{value:{},configurable:!1,enumerable:!1}})).Nib;}Object.defineProperties(b,{__esModule:{value:!0}});b.pfb=void 0;c=null !== (n=Number.MAX_SAFE_INTEGER) && void 0 !== n?n:1E9;f=Date.now() % c;t=(function(){function g(){this.Hu=0;this.id=f=(f + 1) % c;}g.prototype.add=function(e){d(e)[this.id]=this.Hu;return this;};g.prototype.has=function(e){return a(e) && d(e)[this.id] === this.Hu;};g.prototype.delete=function(e){if(!this.has(e))return !1;d(e)[this.id]=void 0;return !0;};g.prototype.clear=function(){this.Hu=(this.Hu + 1) % c;return this;};return g;})();b.pfb=t;},94893:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.A5=void 0;d=a(22970);t=(function(){function c(){var f;f=this;this.F6=[];this.lMc=function(g){g=f.F6.indexOf(g);0 <= g && f.F6.splice(g,1);};}Object.defineProperties(c.prototype,{pla:{get:function(){return 0 !== this.F6.length;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{QFb:{get:function(){return this.F6.length;},enumerable:!1,configurable:!0}});c.prototype.add=function(){var f;f=new n(this.lMc);this.F6.push(f);return f;};c.prototype.wSb=function(f){d.__awaiter(this,void 0,void 0,function(){var g,e;return d.__generator(this,function(h){switch(h.label){case 0:(g=this.add(),h.label=1);case 1:return (h.tc.push([1,,3,4]),[4,f()]);case 2:return (e=h.T(),[2,e]);case 3:return (g.release(),[7]);case 4:return [2];}});});};c.prototype.UXc=function(f){var g;g=this.add();try{f();}finally{g.release();}};return c;})();b.A5=t;n=(function(){function c(f){this.rJa=f;}c.prototype.release=function(){this.rJa(this);};return c;})();},95130:function(t,b,a){var n,c,f,g,e;function d(h,k){return h.time - k.time || h.priority - k.priority || h.id - k.id;}Object.defineProperties(b,{__esModule:{value:!0}});b.Y0a=function(h,k,l){return e.instance.Y0a(h,k,l);};b.BMa=function(h){e.instance.BMa(h);};b.ocd=function(){e.reset();};n=a(66164);c=a(32910);f=a(43529);g=a(50214);e=(function(){function h(){var k;k=this;this.Fn=new g.tO([],d);this.B2a=0;this.console=new n.platform.Console("SETTIMEOUT");this.zlc=function(){var l,m;l=n.platform.time.ha();k.efa=void 0;c.l && k.console.trace(("[").concat(l,"] Wake"));try{for(;!k.Fn.empty && k.Fn.Hs().time <= l;){m=k.Fn.pop();c.l && k.console.trace(("[").concat(n.platform.time.ha(),"] Executing p").concat(m.priority," timer ").concat(m.id," scheduled for ").concat(m.time));m.Wz();}}finally{k.Z_a();}};}Object.defineProperties(h,{instance:{get:function(){return h.Fz || (h.Fz=new h());},enumerable:!1,configurable:!0}});h.reset=function(){(0,f.assert)(void 0 === h.Fz || h.Fz.Fn.empty,"Singleton SetTimeoutWithPriority reset with pending timers");h.Fz=void 0;};h.prototype.Y0a=function(k,l,m){var p,r,q;(0,f.assert)(isFinite(l) && 0 <= l);p=this.Fn;r=n.platform.time.ha();q=r + l;p.push({id:++this.B2a,time:q,priority:m,Wz:k});c.l && this.console.trace(("[").concat(r,"] New p").concat(m," timer ").concat(this.B2a," scheduled for ").concat(q," in ").concat(l,"ms"));this.Z_a();return this.B2a;};h.prototype.BMa=function(k){var l,m,p;l=this.Fn;m=l.find(function(r){return r.id === k;});if(m){p=l.Hs().time;l.remove(m);c.l && this.console.trace(("[").concat(n.platform.time.ha(),"] Removing timer ").concat(m.id," scheduled for ").concat(m.time));(l.empty || l.Hs().time > p) && this.Z_a();}};h.prototype.gpb=function(){this.efa && (clearTimeout(this.efa.id),c.l && this.console.trace(("[").concat(n.platform.time.ha(),"] Clearing wake timer")),this.efa=void 0);};h.prototype.Z_a=function(){var k,l;l=this.Fn;l.empty?this.gpb():(l=l.Hs().time,l !== (null === (k=this.efa) || void 0 === k?void 0:k.time) && (this.gpb(),k=Math.max(0,l - n.platform.time.ha()),c.l && this.console.trace(("[").concat(n.platform.time.ha(),"] Setting wake timer for ").concat(l," in ").concat(k,"ms")),this.efa={id:setTimeout(this.zlc,k),time:l}));};return h;})();},89376:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.enumerable=void 0;b.enumerable=function(a){return function(d,n){var c;c=Object.getOwnPropertyDescriptor(d,n) || ({});c.enumerable !== a && (c.enumerable=a,c.writable=!0,Object.defineProperty(d,n,c));};};},34228:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});a(22970).__exportStar(a(89376),b);},90657:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.kF=void 0;d=a(22970);n=a(4069);t=(function(){function c(f,g){var e;this.Uib=f;this.YPb=g;this.Xg={other:new n.Vg(),all:new n.Vg()};try{for(var h=d.__values(f),k=h.next();!k.done;k=h.next())this.Xg[k.value]=new n.Vg();}catch(m){var l;l={error:m};}finally{try{k && !k.done && (e=h.return) && e.call(h);}finally{if(l)throw l.error;}}}c.qo=function(f,g){var e,h,m;if(f === g)return f;h=new c(f.Uib,f.YPb);try{for(var k=d.__values(Object.keys(f.Xg)),l=k.next();!l.done;l=k.next()){m=l.value;h.Xg[m]=f.Xg[m].qo(g.Xg[m]);}}catch(r){var p;p={error:r};}finally{try{l && !l.done && (e=k.return) && e.call(k);}finally{if(p)throw p.error;}}return h;};c.prototype.B9b=function(f){var g,e,l;f=(null === (e=this.YPb) || void 0 === e?void 0:e.call(this,f)) || f;try{for(var h=d.__values(this.Uib),k=h.next();!k.done;k=h.next()){l=k.value;if(f < l)return l;}}catch(p){var m;m={error:p};}finally{try{k && !k.done && (g=h.return) && g.call(h);}finally{if(m)throw m.error;}}return "other";};c.prototype.push=function(f){var g,e;e=null !== (g=this.B9b(f)) && void 0 !== g?g:"other";this.Xg[e].push(f);this.Xg.all.push(f);};c.prototype.toJSON=function(){var f,g;f=this;g={};Object.keys(this.Xg).forEach(function(e){var h;h=f.Xg[e];h.count && (g[e]=h);});return g;};return c;})();b.kF=t;},4069:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Vg=void 0;t=(function(){function a(d){void 0 === d && (d=!1);this.eqb=d;this.count=0;this.Fa=NaN;this.sE=0;this.max=this.min=NaN;}Object.defineProperties(a.prototype,{bE:{get:function(){return this.max - this.min;},enumerable:!1,configurable:!0}});a.prototype.push=function(d){this.count++;this.sE+=d;1 === this.count?this.Fa=this.min=this.max=d:(this.min=Math.min(d,this.min),this.max=Math.max(d,this.max),this.Fa+=(d - this.Fa) / this.count);};a.prototype.toJSON=function(){return this.eqb || 0 === this.count?{count:this.count}:{min:this.min,max:this.max,average:this.Fa,count:this.count,sum:this.sE};};a.prototype.qo=function(d){var n;if(0 === this.count)return d;if(0 === d.count)return this;n=new a(this.eqb);n.count=this.count;n.Fa=this.Fa;n.sE=this.sE;n.min=Math.min(this.min,d.min);n.max=Math.max(this.max,d.max);for(var c=0;c < d.count;c++)n.push(d.Fa);return n;};return a;})();b.Vg=t;},89989:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.IUc=function(a,d,n){var c,f,g;a="FINAL" === (null === (c=a.iOb[d]) || void 0 === c?void 0:c.type)?d:(c=null === (g=null === (f=a.iOb) || void 0 === f?void 0:f[d]) || void 0 === g?void 0:g.on) && (n in c)?c[n]:(a=a.on) && (n in a)?a[n]:d;return {sy:a,uJc:d,qq:a !== d,event:n};};},23267:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.jJ=void 0;d=a(66164);t=(function(){function n(){}Object.defineProperties(n.prototype,{duration:{get:function(){return void 0 !== this.endTime?this.endTime - this.startTime:0;},enumerable:!1,configurable:!0}});n.prototype.start=function(){this.reset();};n.prototype.reset=function(){this.startTime=d.platform.time.ha();this.endTime=void 0;};n.prototype.stop=function(){this.endTime=d.platform.time.ha();};return n;})();b.jJ=t;},15807:function(t,b,a){var n,c,f;function d(g){var e,h;e={};for(h in g)g.hasOwnProperty(h) && (e[h]=g[h]);return e;}Object.defineProperties(b,{__esModule:{value:!0}});b.Tgb=void 0;n=a(22970);t=(function(g){function e(h){var k,l,m,p;k=h.model;l=h.aYa;l=void 0 === l?{}:l;m=h.zGb;h=h.tIb;p=void 0 === h?f:h;h=g.call(this) || this;h.ZF=void 0;h.Eqa=!1;h.Vpa=!1;h.sIb={};h.lca=0;h.ecb=k;h.zGb=m || (function(){});h.tIb=p;k=h.hpa();h.eg=d(k);h.hb=Object.assign(k,l);return h;}n.__extends(e,g);e.prototype.next=function(h){var k;if(this.Eqa)(this.Vpa=!0,this.ZF=this.ZF || Object.assign(this.hpa(),this.value),Object.assign(this.ZF,h));else {k=this.value;this.hb=h=Object.assign(this.hpa(),n.__assign(n.__assign({},this.value),h));this.uOa({Cy:k,next:h});}};e.prototype.reset=function(h){var k;void 0 === h && (h={});h=Object.assign(this.hpa(),h);if(this.ZF)(this.Vpa=!0,this.ZF=h);else {k=this.value;this.hb=h;this.uOa({Cy:k,next:h});}};e.prototype.NRc=function(){this.Eqa=!0;};e.prototype.Skc=function(){var h;if(this.Eqa && this.ZF){h=this.value;this.Vpa && (this.hb=this.ZF,this.Vpa=!1,this.uOa({Cy:h,next:this.value}));this.ZF=void 0;}this.Eqa=!1;};Object.defineProperties(e.prototype,{value:{get:function(){return this.ZF || this.hb;},enumerable:!1,configurable:!0}});e.prototype.uOa=function(h){this.zGb(h);this.emit("update",h);};e.prototype.hpa=function(){var h,k,l,m;if(!c)return new this.ecb();h=this.sIb[this.lca];if(h){k=h;l=this.eg;for(m in l)k[m]=l[m];}else h=this.sIb[this.lca]=new this.ecb();this.lca++;this.lca === this.tIb && (this.lca=0);return h;};return e;})(a(90745).EventEmitter);b.Tgb=t;c=!0;f=3;},24153:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(84007),b);t.__exportStar(a(47359),b);t.__exportStar(a(12847),b);t.__exportStar(a(47061),b);t.__exportStar(a(39461),b);t.__exportStar(a(36992),b);t.__exportStar(a(56161),b);},84007:function(t,b,a){var d,n,c,f,g,e;Object.defineProperties(b,{__esModule:{value:!0}});b.zV=void 0;d=a(22970);n=a(66164);c=a(44847);f=a(43529);a(70058);g=a(47061);e=a(36992);t=(function(h){function k(l,m,p){m=h.call(this,m,p) || this;m.gOc=l;m.bUa=!1;m.iua=!1;m.reset();return m;}d.__extends(k,h);k.prototype.reset=function(){var l,m;if(this.$a === g.ym.Sq || this.$a === g.ym.pending)null === (m=null === (l=this.lY) || void 0 === l?void 0:l.return) || void 0 === m?void 0:m.call(l);h.prototype.reset.call(this);this.lY=this.gOc();this.iua=!1;this.mca=e.$d.bz(c.I.ia);};k.prototype.cd=function(){this.reset();(0,f.assert)(this.OF);this.OF.Rda(this);};k.prototype.Ssa=function(){return this.mca;};k.prototype.Se=function(){var l,m,p,r;try{this.bUa=!0;r=(null === (l=this.lY) || void 0 === l?void 0:l.next()) || ({done:!0});}finally{this.bUa=!1;this.yyc=n.platform.time.ha();this.Rac();}r.done?(this.mca=e.$d.T3a,null === (p=null === (m=this.lY) || void 0 === m?void 0:m.return) || void 0 === p?void 0:p.call(m),this.lY=void 0):this.mca=r.value;};k.prototype.Rac=function(){this.iua && this.csb();};k.prototype.csb=function(){var l,m;this.bUa?this.iua=!0:(this.iua=!1,null === (m=null === (l=this.lY) || void 0 === l?void 0:l.return) || void 0 === m?void 0:m.call(l),this.lY=void 0);};k.prototype.Ka=function(){this.csb();h.prototype.Ka.call(this);};k.prototype.xq=function(){return {state:g.ym[this.state],nextWakeup:{ms:this.mca.timestamp.G,type:e.DO[this.mca.type]},lastRunMono:this.yyc};};return k;})(g.kW);b.zV=t;},47359:function(t,b,a){var c,f,g,e,h,k,l,m,p,r,q,u,v,w,x;function d(y){var A,z,B,C,D,F,H,E,G,J,L,K;z=y.Ma;B=y.Wz;C=y.iSb;D=y.ar;F=y.priority;H=void 0 === F?0:F;F=y.wN;E=void 0 === F?!0:F;y=y.rnb;G=void 0 === y?!0:y;(0,e.assert)(z.lj,("Current time: ").concat(g.platform.time.ha()," cr: ").concat(z.currentTime));(0,e.assert)(z.currentTime.isFinite());y=C.ea(z.currentTime);G && (y=n(y,null !== (A=null === D || void 0 === D?void 0:D.mta) && void 0 !== A?A:0));J=Math.max(Math.ceil(y.lB / z.speed),0);L=D || ({id:void 0,Urb:J,mta:0,gGc:J,wN:E,kma:[]});K=g.platform.time.ha();L.id=(L.wN?r.Y0a:setTimeout)(function(){var M,P;M=C.ea(z.currentTime);P=g.platform.time.ha() - K - J;L.kma.push({delay:P,tRc:J});M.ln(k.I.ia)?B():(L.mta++,d({Ma:z,Wz:B,iSb:C,ar:L,priority:H,wN:E,rnb:G}));},J,H);L.Urb=J;return L;}function n(y,A){return 0 < A?k.I.max(y,k.I.Ba(10 * (1 << Math.min(A,6) - 1))):y;}Object.defineProperties(b,{__esModule:{value:!0}});b.bW=b.ggb=void 0;c=a(22970);f=a(90745);g=a(66164);e=a(43529);h=a(70248);k=a(44847);l=a(50214);m=a(73550);p=a(32910);r=a(95130);q=a(47061);u=a(36992);v=a(56161);w=(function(){function y(){this.complete();}Object.defineProperties(y.prototype,{rU:{get:function(){return this.HJa;},enumerable:!1,configurable:!0}});Object.defineProperties(y.prototype,{Tsa:{get:function(){return this.C3b;},enumerable:!1,configurable:!0}});Object.defineProperties(y.prototype,{ugc:{get:function(){return this.g2b;},enumerable:!1,configurable:!0}});Object.defineProperties(y.prototype,{Sva:{get:function(){return this.t4b;},enumerable:!1,configurable:!0}});y.prototype.set=function(A,z,B){this.g2b=z === x.h0?0:g.platform.time.ha();this.C3b=A;this.t4b=z;p.l && (0,e.assert)(!this.HJa,"Invalid replacement of timeout value");this.HJa=B;};y.prototype.complete=function(){this.HJa=void 0;this.set(k.I.dh,x.h0);};return y;})();(function(y){y[y.h0=0]="none";y[y.Vba=1]="microTask";y[y.setTimeout=2]="setTimeout";})(x || (b.ggb=x={}));t=(function(y){function A(z,B){var C;C=y.call(this) || this;C.Ma=z;C.console=B;C.zaa=!1;C.pna=!1;C.zn=new w();C.fs=new f.gf();C.Ck=new l.tO([],(0,h.Ipb)(function(D,F){return D.DT.Ml(F.DT);},function(D,F){return D.Ee.mc.priority - F.Ee.mc.priority;},function(D,F){return F.Ee.priority - D.Ee.priority;},function(D,F){return D.Ee.id > F.Ee.id?1:D.Ee.id < F.Ee.id?-1:0;}));C.Ala(z);return C;}c.__extends(A,y);A.sPc=function(z){this.config=z;};A.Rpc=function(z,B){var D,F;function C(){var H,E;H=new A(z,B);E=new m.DV({name:"rootTaskScheduler",yca:function(G){G() && (H.Ka(),D.Uva.delete(z));},console:B});return {mc:H,PA:E};}D=this;(0,e.assert)(this.config,"Config has not been intiialized");this.config.tob && (this.Uva.has(z) || this.Uva.set(z,C()));F=this.Uva.get(z) || C();return {mc:F.mc,jl:F.PA.Oz()};};Object.defineProperties(A.prototype,{Pxa:{get:function(){return this.qP;},enumerable:!1,configurable:!0}});Object.defineProperties(A.prototype,{LQc:{get:function(){return this.Ma.lj;},enumerable:!1,configurable:!0}});A.prototype.Zjc=function(){this.qP || (this.qP=new v.nW());return this.qP;};A.prototype.xq=function(){var z;z={hasSchedule:!!this.zn.rU,schedule:this.zn.rU && ({sleepTime:this.zn.rU.Urb,originalSleepTime:this.zn.rU.gGc,clockSkewAdjustments:this.zn.rU.mta}),nextWakeup:this.zn.Tsa.G,timeScheduled:this.zn.ugc,scheduleType:x[this.zn.Sva],numTasks:this.Ck.length,clock:{ir:this.Ma.lj,ct:this.Ma.currentTime.G,sp:this.Ma.speed}};p.l && this.trace("audit",z);return z;};A.prototype.Ala=function(z){var B;B=this;this.Bx();this.fs.clear();this.Ma=z;this.fs.on(z,"stopStart",function(){return B.oT();});this.fs.on(z,"clockAdjusted",function(){return B.wca();});this.fs.on(z,"speedChanged",function(){return B.OFc();});this.wca();this.emit("clockChanged");};A.prototype.OFc=function(){this.Bx();this.oT();};A.prototype.Ka=function(){this.reset();this.zaa && (this.pna=!0);this.fs.clear();this.ss=!0;};A.prototype.reset=function(){var z;this.Bx();z=this.Ck.wj();this.Ck.clear();z.forEach(function(B){return B.Ee.Ka();});};A.prototype.cd=function(){var z;this.Bx();z=this.Ck.wj();this.Ck.clear();z.forEach(function(B){return B.Ee.cd();});};A.prototype.wca=function(){var z,B;z=this;B=this.Ck.map(function(C){return C.Ee;});this.Bx();this.Ck.clear();B.forEach(function(C){return z.aX(C,!1);});this.oT();};A.prototype.aX=function(z,B){var C,D;void 0 === B && (B=!0);C=z.Ssa();D=this.zPb(C);C={Ee:z,DT:D,Ava:C};p.l && this.trace(("Adding task ").concat(z.name," for ").concat(D.G," from ").concat(z.mc.name) + ("/").concat(z.mc.priority));(0,e.assert)(!this.Ck.contains(C));this.Ck.push(C);B && this.oT();};A.prototype.Hxa=function(z){var B,C;B=this;this.Bx();z.Fy && this.Ck.map(function(D){return D;}).filter(function(D){return -1 !== z.Fy.indexOf(D.Ee);}).forEach(function(D){return B.Ck.remove(D);});null === (C=z.bX) || void 0 === C?void 0:C.forEach(function(D){return B.aX(D,!1);});this.oT();};A.prototype.oT=function(){var z,B,C,D,F,H;z=this;p.l && this.trace("recheck schedule task count:" + this.Ck.length);if(this.LQc){if(this.zaa)p.l && this.trace("already executing, bailing");else if(this.zn.Sva === x.Vba)p.l && this.trace("Already scheduled on microtask, bailing");else {C=this.zn.Tsa;D=this.Ck.Hs();F=(null === D || void 0 === D?void 0:D.DT) || k.I.dh;if(F.isFinite() && F.rca(C)){if((this.Bx(!1),this.Ma.currentTime.Tf(F)))(this.zn.set(F,x.Vba),Promise.resolve().then(function(){z.zn.Sva === x.Vba && (z.zn.complete(),z.qLb({type:x.Vba}));}));else {p.l && this.trace("scheduling next wake up for",{Ked:F.G,Ee:null === D || void 0 === D?void 0:D.Ee.name,nOc:null === D || void 0 === D?void 0:D.Ee.mc.name});H=d({Ma:this.Ma,Wz:function(){z.zn.complete();z.qLb({type:x.setTimeout,Tsa:F,delay:z.Ma.currentTime.ea(F),OP:H.mta,kma:H.kma});},iSb:F,priority:null !== (B=null === D || void 0 === D?void 0:D.Ee.mc.priority) && void 0 !== B?B:0,wN:!!A.config.wN,rnb:!!A.config.qnb});this.zn.set(F,x.setTimeout,H);}}else F.isFinite() || this.zn.Sva !== x.setTimeout || this.Bx(!1);}}else (p.l && this.trace("should check schedule is false, stopping"),this.Bx());};A.prototype.qLb=function(z){var C,D,F,H,E,G;function B(){return G=!0;}H=0;E=null === (C=this.Ck.Hs()) || void 0 === C?void 0:C.Ava;G=!1;this.Ma.on("stopStart",B);try{for((this.zaa=!0,null === (D=this.qP) || void 0 === D?void 0:D.iSc(z));1E4 > H++ && this.YUc() && !G;);}finally{this.Ma.$l("stopStart",B);this.zaa=!1;null === (F=this.qP) || void 0 === F?void 0:F.Wkc(H);this.Bx();z=this.Ck.map(function(J){return {name:J.Ee.name,nOc:J.Ee.mc.name,Led:J.DT.G};});1E4 < H && !this.ruc(E)?this.error(("Task scheduler executed more than ").concat(1E4) + " iterations in same tick",z.slice(0,5)):(p.l && this.trace("Next tasks",z),this.oT());}};A.prototype.ruc=function(z){var B,C;C=null === (B=this.Ck.Hs()) || void 0 === B?void 0:B.Ava;return z && C && z.timestamp.equal(C.timestamp) && z.type === C.type?!1:!0;};A.prototype.bBc=function(){this.zaa && (this.pna=!0);};A.prototype.YUc=function(){var z,B,C,D,F,H;D=(null === (z=this.Ck.Hs()) || void 0 === z?void 0:z.DT) || k.I.dh;p.l && this.trace(("tryExecuteNextTask @").concat(this.Ma.currentTime.G,", next wakeup at ").concat(D));z=this.Ma.currentTime;if(z.Tf(D)){F=this.Ck.pop();if(F){H=F.Ee;null === (B=this.qP) || void 0 === B?void 0:B.hSc({Ee:H,currentTime:z,Tsa:D});this.MNa=H;B=!1;p.l && this.trace("Running a task @" + z.G + ", scheduled for time:" + D.G + ("Name:").concat(H.name));try{H.HM();B=!0;F.Ava=H.Ssa();F.DT=this.zPb(F.Ava);}catch(E){throw (this.error(("Unhandled error from a task ").concat(H.name," occurred.") + " Removing the task from future executions:" + E,{stack:E.stack}),H.Ka(),E);}finally{null === (C=this.qP) || void 0 === C?void 0:C.Vkc({Ee:H,Bdd:B});this.MNa=void 0;this.pna?(H.Ka(),this.pna=!1):F.DT !== k.I.dh && H.state === q.ym.Sq && ((0,e.assert)(!this.Ck.contains(F)),this.Ck.push(F));}return !0;}}};A.prototype.Rda=function(z){this.sT(z,!1);this.aX(z);};A.prototype.sT=function(z,B){var C;void 0 === B && (B=!0);C=this.Ck.find(function(D){return D.Ee === z;});C && this.mMc(C,B);};A.prototype.mMc=function(z,B){this.Ck.remove(z);B && this.oT();};A.prototype.Bx=function(z){var B;void 0 === z && (z=!0);this.zn.rU && (z && this.emit("stopping"),z=this.zn.rU,(z.wN?r.BMa:clearTimeout)(z.id),this.zn.complete(),null === (B=this.Pxa) || void 0 === B?void 0:B.Bx());};A.prototype.zPb=function(z){return z.type === u.DO.absolute?z.timestamp:z.timestamp.add(this.Ma.currentTime);};A.prototype.trace=function(){for(var z,B=[],C=0;C < arguments.length;C++)B[C]=arguments[C];null === (z=this.console) || void 0 === z?void 0:z.trace.apply(z,c.__spreadArray(["RootTaskScheduler:"],c.__read(B),!1));};A.prototype.error=function(){for(var z,B=[],C=0;C < arguments.length;C++)B[C]=arguments[C];null === (z=this.console) || void 0 === z?void 0:z.error.apply(z,c.__spreadArray(["RootTaskScheduler:"],c.__read(B),!1));};A.config={wN:!0,tob:!0,qnb:!0};A.Uva=new WeakMap();return A;})(f.EventEmitter);b.bW=t;},12847:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.K5=void 0;d=a(22970);n=a(47061);c=a(36992);t=(function(f){function g(e,h,k,l){void 0 === l && (l={});k=f.call(this,k) || this;k.Tva=e;k.Wz=h;k.options=l;return k;}d.__extends(g,f);g.prototype.Ssa=function(){return this.$a === n.ym.pending?this.Tva:c.$d.T3a;};g.prototype.Se=function(){this.Wz();};g.prototype.cd=function(){this.options.Ycd?(f.prototype.reset.call(this),this.OF.Rda(this)):this.Ka();};return g;})(n.kW);b.K5=t;},47061:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.kW=b.ym=void 0;d=a(36992);(function(c){c[c.pending=0]="pending";c[c.Sq=1]="running";c[c.complete=2]="complete";c[c.cQ=3]="destroyed";})(n || (b.ym=n={}));t=(function(){function c(f,g){void 0 === g && (g=0);this.name=f;this.priority=g;this.$a=n.pending;}Object.defineProperties(c.prototype,{state:{get:function(){return this.$a;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{mo:{get:function(){return this.$a === n.pending || this.$a === n.Sq;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{mc:{get:function(){return this.OF;},enumerable:!1,configurable:!0}});c.prototype.U7b=function(f){var g;null === (g=this.OF) || void 0 === g?void 0:g.sT(this);this.OF=f;};c.prototype.HM=function(){this.$a=n.Sq;this.Se();this.Ssa() === d.$d.T3a && (this.$a=n.complete,this.mc.sT(this));};c.prototype.Ka=function(){var f;this.$a=n.cQ;null === (f=this.OF) || void 0 === f?void 0:f.sT(this);};c.prototype.wob=function(f){this.OF.sT(this);this.OF=f;this.OF.Rda(this);};c.prototype.xq=function(){};c.prototype.reset=function(){this.$a=n.pending;};return c;})();b.kW=t;},39461:function(t,b,a){var d,n,c,f,g,e,h,k,l;Object.defineProperties(b,{__esModule:{value:!0}});b.mJ=void 0;b.R2=function(m,p,r){var q;q=void 0;return (r || m.Ma.lj) && m.Ma.currentTime.Tf(p)?{promise:Promise.resolve()}:{promise:new Promise(function(u){q=m.Ut(k.$d.lm(p),u);}),Ee:q};};d=a(22970);n=a(90745);c=a(43529);f=a(97322);g=a(32910);e=a(84007);h=a(12847);k=a(36992);l=a(47359);t=(function(m){function p(r,q,u,v){var w;void 0 === u && (u="unknown");void 0 === v && (v=0);w=m.call(this) || this;w.Ma=r;w.console=q;w.name=u;w.priority=v;w.wDc=0;w.fs=new n.gf();w.IB=new Set();w.Ala(r);return w;}d.__extends(p,m);Object.defineProperties(p.prototype,{ss:{get:function(){return void 0 === this.Vo;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{A1:{get:function(){return this.Vo;},enumerable:!1,configurable:!0}});p.prototype.Sqb=function(r,q){r=new (r.bind.apply(r,d.__spreadArray([void 0],d.__read(q),!1)))();r.id=this.wDc++;r.U7b(this);this.aX(r);return r;};p.prototype.Xr=function(){for(var r=[],q=0;q < arguments.length;q++)r[q]=arguments[q];return this.Sqb(e.zV,r);};p.prototype.xq=function(){var r,q;q=d.__assign(d.__assign({},null === (r=this.Vo) || void 0 === r?void 0:r.xq()),{privateNumTasks:this.IB.size});g.l && this.trace("audit",q);return q;};p.prototype.Ut=function(){for(var r=[],q=0;q < arguments.length;q++)r[q]=arguments[q];return this.Sqb(h.K5,r);};p.prototype.Oma=function(r,q,u){return this.Xr(function(){return d.__generator(this,function(v){switch(v.label){case 0:return [4,k.$d.bz(q)];case 1:return (v.T(),r(),[3,0]);case 2:return [2];}});},u);};p.prototype.Ala=function(r){var q,u,v;q=this;this.Vo && this.Vo.Hxa({Fy:(0,f.wj)(this.IB.values())});this.ZJb();u=l.bW.Rpc(r,this.console);v=u.mc;u=u.jl;this.Vo=v;this.fs.clear();this.Ma=r;this.fs.on(v,"stopping",function(){return q.emit("stopping");});this.LNc=u;this.Vo.Hxa({bX:(0,f.wj)(this.IB.values())});this.emit("clockChanged");};p.prototype.Ka=function(){var r;if(!this.ss){r=this.Vo.MNa && this.IB.has(this.Vo.MNa);this.reset();r && this.Vo.bBc();this.ZJb();}};p.prototype.ZJb=function(){var r;this.Vo && this.emit("rootSchedulerReleasing",{A1:this.Vo});null === (r=this.LNc) || void 0 === r?void 0:r.release();this.Vo=void 0;};p.prototype.reset=function(){var r;if(!this.ss){r=(0,f.wj)(this.IB.values());this.Vo.Hxa({Fy:r});this.IB.clear();r.forEach(function(q){return q.Ka();});}};p.prototype.cd=function(){var r;if(!this.ss){r=(0,f.wj)(this.IB.values());this.Vo.Hxa({Fy:r});r.forEach(function(q){return q.cd();});}};p.prototype.aX=function(r,q){void 0 === q && (q=!0);this.ss?g.l && this.console.warn(("Task added after destruction ").concat(r.name," on ").concat(this.name)):(this.IB.add(r),this.Vo.aX(r,q));};p.prototype.Rda=function(r){(0,c.assert)(r.mc === this);this.ss?g.l && this.console.warn(("Task restarted after destruction ").concat(r.name," on ").concat(this.name)):(this.IB.add(r),this.Vo.Rda(r));};p.prototype.sT=function(r,q){void 0 === q && (q=!0);!this.ss && this.IB.has(r) && (this.IB.delete(r),this.Vo.sT(r,q));};p.prototype.trace=function(){for(var r,q=[],u=0;u < arguments.length;u++)q[u]=arguments[u];null === (r=this.console) || void 0 === r?void 0:r.trace.apply(r,d.__spreadArray([("TaskScheduler(").concat(this.name,"):")],d.__read(q),!1));};return p;})(n.EventEmitter);b.mJ=t;},36992:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.$d=b.DO=void 0;d=a(44847);(function(g){g[g.absolute=0]="absolute";g[g.XJb=1]="relative";})(n || (b.DO=n={}));f=(function(){function g(e,h){this.type=e;this.timestamp=h;}g.prototype.toString=function(){return ("timeStamp: ").concat(this.timestamp,", type: ").concat(n[this.type]);};Object.defineProperties(g,{ia:{get:function(){c || (c=new g(n.XJb,d.I.ia));return c;},enumerable:!1,configurable:!0}});return g;})();t=(function(){function g(){}g.lm=function(e){return new f(n.absolute,e);};Object.defineProperties(g,{eya:{get:function(){return f.ia;},enumerable:!1,configurable:!0}});g.bz=function(e){return new f(n.XJb,e);};g.T3a=new f(n.absolute,d.I.dh);return g;})();b.$d=t;},56161:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperties(b,{__esModule:{value:!0}});b.nW=void 0;d=a(66164);n=a(4069);c=a(90657);f=a(23267);g=a(84007);e=a(47359);h=[100,200,400,800,1600,3200];t=(function(){function k(){this.h2a=new WeakMap();this.i2a=new f.jJ();this.LVa=new f.jJ();this.Tla=new f.jJ();this.state={s2:d.platform.time.ha(),pU:0,Vva:1,Lj:{$R:new n.Vg(!0),nba:new n.Vg(),mba:new n.Vg(),laa:new n.Vg(!0),pfa:new n.Vg(),OP:new n.Vg(),aea:new n.Vg(!0),Z7:new c.kF(h),a8:new c.kF(h)},lU:{}};}k.prototype.$xb=function(l){var m;if(l.name)return ("").concat(l.mc.name,"::").concat(l.name);if(!this.h2a.get(l)){m=("").concat(l.mc.name,"::'unk'::").concat(l.id,"::iterable?").concat(l instanceof g.zV);this.h2a.set(l,m);}return this.h2a.get(l);};k.prototype.hSc=function(l){var m;l=this.$xb(l.Ee);(m=this.state.lU)[l] || (m[l]={foa:new n.Vg(),IQ:0});this.i2a.start();};k.prototype.Bx=function(){this.state.Lj.aea.push(1);};k.prototype.iSc=function(l){var m;m=this;l.type === e.ggb.Vba?this.state.Lj.laa.push(1):(this.state.Lj.pfa.push(l.delay.G),l.kma.forEach(function(p){m.state.Lj.Z7.push(p.delay);m.state.Lj.a8.push(p.tRc);}),this.state.Lj.OP.push(l.OP));this.LVa.start();this.Tla.stop();this.Tla.duration && this.state.Lj.mba.push(this.Tla.duration);};k.prototype.Wkc=function(l){this.LVa.stop();this.Tla.start();this.state.Lj.nba.push(this.LVa.duration);this.state.Lj.$R.push(l);};k.prototype.Vkc=function(l){l=this.$xb(l.Ee);this.i2a.stop();this.state.lU[l].foa.push(this.i2a.duration);};k.prototype.xq=function(){this.state.pU=d.platform.time.ha() - this.state.s2;return this.state;};k.reduce=function(l,m){var p,r,q,u,v;if(0 === l.pU && 0 === l.Lj.$R.count)return m;if(0 === m.pU && 0 === m.Lj.$R.count || l === m)return l;p=l.s2 < m.s2?l:m;r=p === l?m:l;q=p.Lj;u=r.Lj;v={};Object.keys(l.lU).concat(Object.keys(m.lU)).forEach(function(w){var x,y;if(!v[w]){x=l.lU[w];y=m.lU[w];v[w]=x && y?{foa:x.foa.qo(y.foa),IQ:x.IQ + y.IQ}:x || y;}});return {s2:p.s2,pU:p.pU + r.pU,Vva:p.Vva + r.Vva,Lj:{laa:q.laa.qo(u.laa),$R:q.$R.qo(u.$R),nba:q.nba.qo(u.nba),mba:q.mba.qo(u.mba),aea:q.aea.qo(u.aea),pfa:q.pfa.qo(u.pfa),OP:q.OP.qo(u.OP),Z7:c.kF.qo(q.Z7,u.Z7),a8:c.kF.qo(q.a8,u.a8)},lU:v,toJSON:function(){return {timeConstructed:this.s2,timeRunning:this.pU,schedulers:this.Vva,executionStats:{immediateRuns:this.Lj.laa,loopRuns:this.Lj.$R,loopTime:this.Lj.nba,loopBetweenTime:this.Lj.mba,scheduleClears:this.Lj.aea,timerRuns:this.Lj.pfa,callBackDelayBuckets:this.Lj.Z7,callBackSleepBuckets:this.Lj.a8,clockSkewAdjustments:this.Lj.OP},taskStats:v};}};};return k;})();b.nW=t;},42306:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.lW=void 0;d=a(44847);t=(function(){function n(c,f){this.ib=c;this.Yb=f;}n.prototype.eh=function(c){return new n(this.ib.eh(c),this.Yb.eh(c));};n.prototype.nf=function(c){return new n(this.ib.nf(c),this.Yb.nf(c));};Object.defineProperties(n.prototype,{length:{get:function(){return this.Yb.ea(this.ib);},enumerable:!1,configurable:!0}});n.prototype.add=function(c){return new n(this.ib.add(c),this.Yb.add(c));};n.prototype.ea=function(c){return new n(this.ib.ea(c),this.Yb.ea(c));};Object.defineProperties(n.prototype,{duration:{get:function(){return this.length;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{Jqa:{get:function(){return this.ib.equal(this.Yb);},enumerable:!1,configurable:!0}});n.prototype.VX=function(c,f){"number" === typeof c && (c=d.I.Ba(c));return "ms" === f?c.G >= this.ib.G && c.G <= this.Yb.G:c.Tf(this.ib) && c.ln(this.Yb);};n.prototype.toString=function(c){return c === d.kJ.G?("").concat(this.ib.toString(d.kJ.G)) + (" - ").concat(this.Yb.toString(d.kJ.G)):c === d.kJ.BNb?("").concat(this.ib.ca()) + (" dur:").concat(this.duration.ca(c)):("").concat(this.ib.ca()," - ").concat(this.Yb.ca());};n.prototype.equals=function(c){return this.ib.equal(c.ib) && this.Yb.equal(c.Yb);};return n;})();b.lW=t;},44847:function(t,b,a){var n;function d(c,f){return c && f?Math.abs(c * f / (0,n.MK)(c,f)):0;}Object.defineProperties(b,{__esModule:{value:!0}});b.kJ=b.I=void 0;n=a(19705);t=(function(){function c(f,g){"object" === typeof f?(this.Qc=f.$,this.Db=f.O):(this.Qc=f,this.Db=g);isFinite(this.Qc) || (this.Db=1);}c.compare=function(f,g){return f.Ml(g);};c.abs=function(f){return new c(Math.abs(f.Qc),f.Db);};c.Ba=function(f){return 0 === f?c.ia:new c(f,1E3);};c.Inc=function(f){return 0 === f?c.ia:new c(1E3 * f,1E3);};c.F2a=function(f,g){return Math.floor(1E3 * f / g);};c.PEb=function(f,g){return Math.floor(f * g / 1E3);};c.max=function(){for(var f=[],g=0;g < arguments.length;g++)f[g]=arguments[g];return f.reduce(function(e,h){return e.greaterThan(h)?e:h;});};c.min=function(){for(var f=[],g=0;g < arguments.length;g++)f[g]=arguments[g];return f.reduce(function(e,h){return e.lessThan(h)?e:h;});};c.MK=function(f,g){var e;if(f.Db === g.Db)return new c((0,n.MK)(f.Qc,g.Qc),f.Db);e=d(f.Db,g.Db);return new c((0,n.MK)(f.Qc * e / f.Db,g.Qc * e / g.Db),e);};Object.defineProperties(c.prototype,{$:{get:function(){return this.Qc;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{O:{get:function(){return this.Db;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{G:{get:function(){return c.F2a(this.Qc,this.Db);},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{lB:{get:function(){return 1E3 * this.Qc / this.Db;},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{GT:{get:function(){var f;f=this.lB;return 0 > f?Math.ceil(f):Math.floor(f);},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{Zi:{get:function(){return this.Qc / this.Db;},enumerable:!1,configurable:!0}});c.prototype.Kc=function(f){f/=this.Db;return new c(Math.floor(this.Qc * f),Math.floor(this.Db * f));};c.prototype.add=function(f){var g;if(!this.isFinite() || !f.isFinite() || this.Db === f.Db)return new c(this.Qc + f.Qc,this.Db);g=d(this.Db,f.Db);return new c(this.Qc * g / this.Db + f.Qc * g / f.Db,g);};c.prototype.ea=function(f){var g;if(this.Db === f.Db)return new c(this.Qc - f.Qc,this.Db);g=d(this.Db,f.Db);return new c(this.Qc * g / this.Db - f.Qc * g / f.Db,g);};c.prototype.eh=function(f){return 1 === f?this:new c(this.Qc * f,this.Db);};c.prototype.nf=function(f){var g;if("number" === typeof f){if(Math.floor(f) === f){g=d(this.Qc,f);if(g !== this.Qc)return this.Kc(g / this.Qc * this.Db).nf(f);}return new c(Math.floor(this.Qc / f),this.Db);}if(this.Db === f.Db)return this.Qc / f.Qc;g=d(this.Db,f.Db);return this.Qc * g / this.Db / (f.Qc * g / f.Db);};c.prototype.Iv=function(f){var g;if(this.Db === f.Db)return new c(Math.abs(this.Qc - f.Qc),this.Db);g=d(this.Db,f.Db);return new c(Math.abs(this.Qc * g / this.Db - f.Qc * g / f.Db),g);};c.prototype.VZa=function(){return new c(this.Db,this.Qc);};c.prototype.FCc=function(){return new c(this.Qc - 1,this.Db);};c.prototype.compare=function(f,g){var e;if(this.Db === g.Db)return f(this.Qc,g.Qc);e=d(this.Db,g.Db);return f(this.Qc * e / this.Db,g.Qc * e / g.Db);};c.prototype.Ml=function(f){var g;if(this.Db === f.Db)return this.$ === f.Qc?0:this.Qc - f.Qc;g=d(this.Db,f.Db);return this.Qc * g / this.Db - f.Qc * g / f.Db;};c.prototype.equal=function(f){return this.compare(function(g,e){return g === e;},f);};c.prototype.rca=function(f){return this.compare(function(g,e){return g !== e;},f);};c.prototype.lessThan=function(f){return this.compare(function(g,e){return g < e;},f);};c.prototype.greaterThan=function(f){return this.compare(function(g,e){return g > e;},f);};c.prototype.ln=function(f){return this.compare(function(g,e){return g <= e;},f);};c.prototype.Tf=function(f){return this.compare(function(g,e){return g >= e;},f);};c.prototype.isFinite=function(){return !!this.Db && isFinite(this.Qc);};c.prototype.dyb=function(f){return d(this.O,f);};c.prototype.toJSON=function(){return {ticks:this.Qc,timescale:this.Db};};c.prototype.toString=function(f){return f === b.kJ.G?("").concat(this.lB,"ms"):("").concat(this.Qc,"/").concat(this.Db);};c.prototype.ca=function(f){var g;g=this.lB;g=0 === g % 1?g.toString():g.toFixed(3).replace(/\.?0+$/,"");return f === b.kJ.BNb?("").concat(g,"ms"):("").concat(this.Qc,"/").concat(this.Db," (").concat(g,"ms)");};c.ia=new c(0,1E3);c.xy=new c(1,1E3);c.dh=new c(Infinity,1);c.BWa=new c(-Infinity,1);return c;})();b.I=t;b.kJ={G:"ms",BNb:"simple"};},22633:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.$c=function(a){return void 0 !== a;};},4742:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Df=function(a,d,n){if(d.Qqb)return d.Qqb(n);d=d.prefix?("").concat(d.prefix," ").concat(n):n;return new a.Console("ASEJS","media|asejs",d);};},52496:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.oV=void 0;d=a(22970);b.oV=(function(){function n(){}n.JK=function(c,f){void 0 === f && (f={includeStack:!0});return "function" === typeof (null === c || void 0 === c?void 0:c.JK)?c.JK():c instanceof Error?d.__assign(d.__assign({},c),{name:c.name,message:c.message,stack:f.includeStack?c.stack:void 0}):c;};return n;})();},55960:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},61022:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(4742),b);t.__exportStar(a(55960),b);t.__exportStar(a(65569),b);t.__exportStar(a(52496),b);},65569:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.fgb=void 0;t=(function(){function a(){this.Kva=!1;}Object.defineProperties(a.prototype,{uxc:{get:function(){return this.Kva;},enumerable:!1,configurable:!0}});a.prototype.QRc=function(){var d;d=this;this.Kva || (this.Kva=!0,setTimeout(function(){return d.tFc();},1));};a.prototype.tFc=function(){this.Kva=!1;};return a;})();b.fgb=t;},34166:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Cja=void 0;d=a(41674);t=(function(){function n(){var c;c=this;this.V6=[];this.Qh=new d.AbortController();this.CGb=function(){c.Qh.abort();};}Object.defineProperties(n.prototype,{signal:{get:function(){return this.Qh.signal;},enumerable:!1,configurable:!0}});n.prototype.abort=function(){this.Qh.abort();};n.prototype.Ka=function(){var c;c=this.V6;this.V6=[];c.forEach(function(f){return f();});};n.prototype.W1a=function(c){var f,g;f=this;if(c.aborted)this.Qh.abort(c.reason);else {c.addEventListener("abort",this.CGb);g=function(){c.removeEventListener("abort",f.CGb);f.V6=f.V6.filter(function(e){return e !== g;});};this.V6.push(g);this.signal.addEventListener("abort",g);}};return n;})();b.Cja=t;},46882:function(t){function b(d,n,c,f){d.trace(":",c,":",f);n(f);}function a(d){this.listeners=[];this.console=d;}a.prototype.constructor=a;a.prototype.addListener=function(d,n,c,f){c=f?c.bind(f):c;if(d){this.console && (c=b.bind(null,this.console,c,n));if("function" === typeof d.addListener)d.addListener(n,c);else if("function" === typeof d.addEventListener)d.addEventListener(n,c);else throw Error("Emitter does not have a function to add listeners for '" + n + "'");this.listeners.push([d,n,c]);}return this;};a.prototype.on=a.prototype.addListener;a.prototype.clear=function(){var d;d=this.listeners.length;this.listeners.forEach(function(n){var c,f;c=n[0];f=n[1];n=n[2];"function" === typeof c.removeEventListener?c.removeEventListener(f,n):"function" === typeof c.removeListener && c.removeListener(f,n);});this.listeners=[];this.console && this.console.trace("removed",d,"listener(s)");};t.exports=a;},90745:function(t,b,a){b=a(22699);b.ZNa=0;t.exports={EventEmitter:b,gf:a(46882)};},84726:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.P7a=void 0;d=a(22970);n=a(91176);c=a(91176);f=a(90745);g=a(52885);t=(function(){function e(h,k,l,m,p){this.rp=h;this.Bb=k;this.C2b=l;this.sb=m;this.Q1b=p;this.jP=new Map();this.LF=new Map();this.events=new f.EventEmitter();this.ZO=new Map();}Object.defineProperties(e.prototype,{size:{get:function(){return this.LF.size;},enumerable:!1,configurable:!0}});e.prototype.RAb=function(h){var k;void 0 === k && (k=!0);if(k)return this.jP.has(h);h=this.rp(h);return this.LF.has(h);};e.prototype.ig=function(h){var k,l,m,p;k=this;l=Array.from(this.LF.keys());m=new Map(h.map(function(r){return [k.rp(r),r];}));p=Array.from(m.keys());h=(0,n.Yo)(l,p,function(r,q){return r === q;});l=(0,n.Yo)(p,l).map(function(r){return m.get(r);});h.forEach(function(r){return k.cq(k.LF.get(r),!0,"evicted");});this.s4b(l);};e.prototype.s4b=function(h){var k;k=this;h=h.map(function(l){var m,p;m=k.rp(l);p=new n.AbortController();k.jP.set(l,p);k.LF.set(m,l);return {Cb:l,JJ:p.signal};});this.C2b.gmc({rb:h,b9b:{us:!0}}).entries.forEach(function(l,m){return d.__awaiter(k,void 0,void 0,function(){var p,r;return d.__generator(this,function(q){switch(q.label){case 0:return (q.tc.push([0,2,,3]),[4,l]);case 1:return (p=q.T().S,r=this.jP.get(m),this.RAb(m) && !r.signal.aborted && (this.RJ(m,p),this.jP.delete(m)),[3,3]);case 2:return (q.T(),r=this.jP.get(m),this.RAb(m) && !r.signal.aborted?this.cq(m,!0,"evicted"):this.cq(m,!1,"evicted"),0,[3,3]);case 3:return [2];}});});});};e.prototype.ENc=function(h){this.LF.set(this.rp(h.Os),h.Os);this.Rzb(h,!1);};e.prototype.Rzb=function(h,k){var l;void 0 === k && (k=!1);l=this.rp(h.Os);this.ZO.set(l,h);this.events.emit("itemAdded",{item:h,tDc:k});};e.prototype.RJ=function(h,k,l){var m,p;l=null !== (m=null === l || void 0 === l?void 0:l.rx) && void 0 !== m?m:this.Q1b(k);p=(0,n.rra)(function(){return JSON.stringify(k).length;});h=new g.iDa({S:Promise.resolve(k),Os:h,FC:!0,hA:{absolute:l},ida:function(){},get JP() {return p();},us:h.us});this.Rzb(h,!0);};e.prototype.vA=function(h){h="string" === typeof h?h:this.rp(h);return this.ZO.has(h);};e.prototype.bmb=function(h){var k,l,r;h=Math.max(0,this.size - h);if(0 < h){l=Array.from(this.LF.values()).sort(c.oZa);try{for(var m=d.__values(l),p=m.next();!p.done;p=m.next()){r=p.value;if(0 >= h)break;h--;this.cq(r,!0,"evicted");}}catch(u){var q;q={error:u};}finally{try{p && !p.done && (k=m.return) && k.call(m);}finally{if(q)throw q.error;}}}};e.prototype.claim=function(h){var k;k=this.kp(h);this.cq(h,!1,"claimed");return k;};e.prototype.remove=function(h){this.cq(h,!0,"deleted");};e.prototype.cq=function(h,k,l){var m,p;h=this.rp(h);m=this.LF.get(h);if(m){p=this.jP.get(m);k && p && p.abort();this.jP.delete(m);this.LF.delete(h);k=this.ZO.get(h);this.ZO.delete(h);k && this.events.emit("itemRemoved",{item:k,reason:l});}};e.prototype.kp=function(h){h=this.rp(h);if(this.ZO.has(h))return this.ZO.get(h);};e.prototype.clear=function(){this.bmb(0);};e.prototype.values=function(){return this.ZO.values();};return e;})();b.P7a=t;},97967:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(53300),b);t.__exportStar(a(16659),b);t.__exportStar(a(2300),b);t.__exportStar(a(52885),b);t.__exportStar(a(5300),b);t.__exportStar(a(37349),b);},5300:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.hDa=void 0;d=a(53300);a(2300);b.hDa=(function(){function n(c){this.SVa=new d.qbb(c);n.instance=this;}return n;})();},52885:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.iDa=b.sYb=void 0;d=a(66164);n=a(91176);c=a(90745);(function(e){e[e.a7c=0]="dormant";e[e.active=1]="active";e[e.Kx=2]="expired";e[e.S6c=3]="deleted";})(f || (b.sYb=f={}));g=0;t=(function(){function e(h){var k;this.bq=h;this.events=new c.EventEmitter();this.Vq=g++;this.yUa=new n.vt(!1);this.Eyb=this.jSb=!1;this.Y9b();this.Ejb=null !== (k=h.Os.us) && void 0 !== k?k:!1;this.tka=new n.jW();h.S && this.tka.TM(h.S);}Object.defineProperties(e.prototype,{state:{get:function(){return this.$a;},set:function(h){this.$a=h;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{S:{get:function(){return this.tka.promise;},set:function(h){(0,n.assert)(!this.tka.Paa,"Manifest promise is already resolved");this.tka.TM(h);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{FC:{get:function(){return this.bq.FC;},set:function(h){this.bq.FC=h;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{vA:{get:function(){this.zIa || (this.zIa=this.FC);return this.zIa;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{stats:{get:function(){return this.bq.stats;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{hA:{get:function(){return this.bq.hA;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{KG:{get:function(){return !!this.bq.KG;},set:function(h){this.bq.KG=h;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{JP:{get:function(){var h;h=this.bq.JP;return 0 === h && this.bq.S?(this.bq.JP=JSON.stringify(this.bq.S).length,this.bq.JP):h;},set:function(h){this.bq.JP=h;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Os:{get:function(){return this.bq.Os;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{RUa:{get:function(){return this.Mjb;},set:function(h){this.Mjb=h;},enumerable:!1,configurable:!0}});e.prototype.dBc=function(){var h;h=this;this.FC || (this.zIa=!0,setTimeout(function(){return h.bq.FC=!0;},1));};e.prototype.ida=function(){this.Ejb=!1;this.bq.ida();this.events.emit("promoted",{type:"promoted"});};Object.defineProperties(e.prototype,{us:{get:function(){return this.Ejb;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{aw:{get:function(){return (0,n.aw)(this);},enumerable:!1,configurable:!0}});e.prototype.Y9b=function(){this.Mjb=d.platform.time.now();};e.prototype.lGb=function(){this.events.emit("removed",{type:"removed"});};e.prototype.hFc=function(){this.events.emit("expired",{type:"expired"});};e.prototype.LD=function(){this.yUa.set(!0);this.events.emit("completed",{type:"completed"});};e.prototype.BKa=function(h){this.bq.hA.absolute=h;};e.prototype.toJSON=function(){return {state:this.state,hasManifest:this.vA,cacheHit:this.FC,wasFallbackItem:this.jSb,hasFallbackItem:this.Eyb,viewableId:this.Os.J,isPrefetch:this.us,expired:this.aw,flushed:this.KG,seqId:this.Vq};};return e;})();b.iDa=t;},53300:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r;Object.defineProperties(b,{__esModule:{value:!0}});b.qbb=void 0;d=a(22970);n=a(91176);c=a(66164);f=a(90745);g=a(91176);e=a(91176);h=a(91176);k=a(2300);l=a(84726);m=a(37349);p=a(52885);(function(q){q[q.Kx=0]="expired";q[q.Hyc=1]="lazyExpired";q[q.KG=2]="flushed";q[q.oMc=3]="removedByViewableId";q[q.bxa=4]="superseded";})(r || (r={}));t=(function(){function q(u){var v;v=this;this.Blc=0;this.plugins=[];this.console=(0,n.Df)(c.platform,u.console,"MANIFESTCACHE2");this.HPa=u.HPa;this.rp=u.rp;this.xw=new g.Oha(this.console,"manifest-primary");this.glb=new e.hfb(this.console,{ewc:function(w,x){var y,A;y=w.item;v.console.trace("Fetching manifest",{aya:y.J});A=v.HPa.gmc({rb:[{Cb:y,JJ:x,Yv:w.Yv()}],b9b:{us:y.us}});return {item:A,key:w,aS:function(){return A.ida(y);}};}},u.config.mDb);this.config=u.config;this.events=new f.EventEmitter();this.config.lDb && (this.uq=new l.P7a(this.rp,u.config,u.HPa,u.console,function(w){return v.RLa(w);}),this.uq.events.addListener("itemAdded",function(w){v.GG.track(w.item);w.tDc && (v.events.emit("manifestScheduled",{type:"manifestScheduled",yD:w.item}),w.item.S.then(function(x){v.events.emit("manifestReceived",{type:"manifestReceived",yD:w.item,S:x});},function(){}));}),this.uq.events.addListener("itemRemoved",function(w){"claimed" !== w.reason && (v.console.log("Removing dormant manifest item",w.item),v.GG.delete(w.item),w.item.lGb(),"expired" === w.reason && v.events.emit("expired",{type:"expired",yD:w.item}),v.events.emit("deleted",{type:"deleted",yD:w.item}));}));this.EK=new n.mab(this.console,"manifest-expired");this.GM=new n.GV({enabled:this.config.HAc},void 0,{xg:1,Zqa:function(w,x){v.GG.delete(x);}});this.GG=new n.M8a(function(w){var x,y;if(null === (x=v.uq) || void 0 === x?0:x.vA(w.Os))null === (y=v.uq) || void 0 === y?void 0:y.remove(w.Os);x=v.rp(w.Os);if(v.xw.has(x)){y=v.xw.get(x);try{y && y.value === w && v.yPa(x,r.Kx);}finally{null === y || void 0 === y?void 0:y.jl.release();}}v.GM.has(x) && v.GM.delete(x);});this.vyb=new n.vt(!1);this.vyb.addListener(function(w){w.newValue || v.cLc();});this.events.on("manifestReceived",function(w){var x;try{for(var y=d.__values(v.plugins),A=y.next();!A.done;A=y.next())A.value.X$c(w.yD,w.S);}catch(B){var z;z={error:B};}finally{try{A && !A.done && (x=y.return) && x.call(y);}finally{if(z)throw z.error;}}});this.events.on("deleted",function(w){var x;try{for(var y=d.__values(v.plugins),A=y.next();!A.done;A=y.next())A.value.Y$c(w.yD);}catch(B){var z;z={error:B};}finally{try{A && !A.done && (x=y.return) && x.call(y);}finally{if(z)throw z.error;}}});}Object.defineProperties(q.prototype,{size:{get:function(){var u;return {Oka:this.Oka,Z6:this.Z6,oed:this.JRb,Pbd:null === (u=this.uq) || void 0 === u?void 0:u.size,FPb:this.FPb};},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{M6b:{get:function(){var u,v;u=Array.from(this.xw.values());v=Array.from(this.EK.values());return d.__spreadArray(d.__spreadArray([],d.__read(u),!1),d.__read(v),!1);},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{FPb:{get:function(){var u,v;return this.Z6 + (null !== (v=null === (u=this.uq) || void 0 === u?void 0:u.size) && void 0 !== v?v:0);},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{Z6:{get:function(){return this.JRb + this.Oka;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{JRb:{get:function(){return this.xw.size;},enumerable:!1,configurable:!0}});Object.defineProperties(q.prototype,{Oka:{get:function(){return this.EK.size;},enumerable:!1,configurable:!0}});q.prototype.ig=function(u){var v,w,x,y;v=this;x=Math.max(0,this.config.mDb - this.Z6);if(!(0 >= x))if((u=u.map(function(A){return [v.rp(A),A];}),u=(0,n.Yo)(u,Array.from(this.xw.keys()),function(A,z){return d.__read(A,1)[0] === z;}),u.length > x)){y=u.map(function(A){return d.__read(A,2)[1];}).sort(h.oZa).slice(0,x);null === (w=this.uq) || void 0 === w?void 0:w.ig(y);}else null === (y=this.uq) || void 0 === y?void 0:y.ig(u.map(function(A){return d.__read(A,2)[1];}));};q.prototype.kp=function(u){return this.xjb(u);};q.prototype.sbc=function(u){var v;if(null === (v=this.uq) || void 0 === v?0:v.vA(u))return (this.console.trace("Prefetch manifest found",{aya:u.J}),this.uq.claim(u));};q.prototype.c2b=function(u,v,w,x){return d.__awaiter(this,void 0,void 0,function(){var y,A,z,B,C;return d.__generator(this,function(D){switch(D.label){case 0:return (D.tc.push([0,3,7,8]),[4,v]);case 1:return (A=D.T(),[4,A.entries.get(w.Os)]);case 2:return (z=D.T(),w.FC=z.FC,w.JP=z.ma,w.Eyb=!!x(),y=z.S,[3,8]);case 3:B=D.T();if((0,n.Aqa)(B))throw (!1,B);this.console.error("Error fetching manifest",{vBb:u,error:n.oV.JK(B)});C=x();if(!C)return [3,5];this.console.trace("Reusing manifest from error cache",{vBb:u});return [4,C.S];case 4:return (y=D.T(),w.jSb=!0,[3,6]);case 5:throw B;case 6:return [3,8];case 7:return (w.LD(),c.platform.time && (y?(w.hA.absolute=this.RLa(y),w.dBc()):w.hA.absolute=0),this.GG.sda(w),[7]);case 8:return [2,y];}});});};q.prototype.zfc=function(u,v,w){return d.__awaiter(this,void 0,void 0,function(){var x;return d.__generator(this,function(y){switch(y.label){case 0:(v.S=w,y.label=1);case 1:return (y.tc.push([1,3,,4]),[4,w]);case 2:return (x=y.T(),this.events.emit("manifestReceived",{type:"manifestReceived",yD:v,S:x}),[3,4]);case 3:return (y.T(),this.fMc(u,v),[3,4]);case 4:return (this.GG.track(v),this.console.log("Created manifest Item",v),[2]);}});});};q.prototype.Zkc=function(u,v){var x,y,A,z,B;function w(){!A && x.GM.has(u) && (A || (A=x.GM.get(u)));return A;}x=this;z=this.glb.get({key:u,priority:null !== (y=v.priority) && void 0 !== y?y:0,required:!v.us,item:v,Yv:function(){return !!w();}});B=new p.iDa({FC:!1,JP:0,hA:{absolute:Infinity},Os:v,ida:function(){x.console.trace("Promote to required",{key:u});z.value.aS();x.amb(0);}});v=this.c2b(u,z.value.item,B,w);this.zfc(u,B,v).then(function(){A=void 0;});B.events.on("removed",function(){x.console.log("Removing manifest item",B);z.jl.release();});B.events.on("expired",function(){return d.__awaiter(x,void 0,void 0,function(){return d.__generator(this,function(){this.console.log("In expiring manifest handler",B);B.yUa.value?z.jl.release():B.yUa.addListener(function(){z.jl.release();});this.events.emit("expired",{type:"expired",yD:B});return [2];});});});return B;};q.prototype.fMc=function(u,v){var x,y,A,C;function w(F,H){var E,G;E=F.get(H);G=!1;E && (E.value === v && (y.console.log("Deleting manifest item due failure",v),F.delete(H),G=!0),E.jl.release());return G;}y=this;w(this.xw,u);w(this.EK,u);A=this.EK.qoc(u);if(A)try{for(var z=d.__values(A),B=z.next();!B.done;B=z.next()){C=B.value;w(this.EK,C) && this.EK.Ehc(u,C);}}catch(F){var D;D={error:F};}finally{try{B && !B.done && (x=z.return) && x.call(z);}finally{if(D)throw D.error;}}this.GM.has(u,v) && (this.console.log("Deleting manifest from reuseOnErrorCache due to failure",v),this.GM.delete(u));};q.prototype.O6b=function(u){var w,x,y,A;function v(){u.lGb();w.events.emit("deleted",{type:"deleted",yD:u});}w=this;A="none";u.KG || (!u.aw && u.us?!this.config.lDb || (null === (x=this.uq) || void 0 === x?0:x.vA(u.Os)) || (A="addToDormant"):!u.us && u.vA && (A="reuseOnErrorCache"));this.console.log("allLeasesReturned to cache",{action:A,Vnb:u});switch(A){case "addToDormant":this.uq?null === (y=this.uq) || void 0 === y?void 0:y.ENc(u):this.GG.delete(u);break;case "reuseOnErrorCache":x=c.platform.time.now() + this.config.FNc;u.BKa(x);this.GG.track(u);x=this.rp(u.Os);this.GM.delete(x);this.GM.Szb(x,u);v();break;default:(this.GG.delete(u),v());}};q.prototype.xjb=function(u,v){var w,x,y;w=this;void 0 === v && (v=!1);x=this.rp(u);this.console.trace("Acquiring lease for manifest",{aya:u.J,yQ:this.xw.size,eZa:!!u.us,Mua:u.priority});y=this.xw.HRa(x,function(){var A;A=w.sbc(u);A || (A=w.Zkc(x,u),w.amb());if(A.us)A.events.on("promoted",function(){w.events.emit("activated",{type:"activated",yD:A});});else w.events.emit("activated",{type:"activated",yD:A});return {value:A,bM:function(){w.console.trace("Leases removed",{Scd:A.Vq,M:u.J});w.O6b(A);}};});if(y.value.aw)if(v)this.console.error("Skipping Retry on an already expired manifest",{aya:u.J});else return (this.yPa(x,r.Hyc),this.console.trace("Manifest Expired, releasing",{aya:u.J}),y.jl.release(),this.xjb(u,!0));u.us || y.value.ida();return y;};q.prototype.amb=function(u){var v;void 0 === u && (u=1);u=Math.max(0,this.config.mDb - this.Z6 - u - this.Oka);null === (v=this.uq) || void 0 === v?void 0:v.bmb(u);};q.prototype.yPa=function(u,v){var w,x;w=v === r.KG || v === r.oMc;x=this.xw.UPb(this.EK,u,("").concat(u,":").concat(this.Blc++));x && (this.console.debug("Expiring active manifest",{vBb:u,KG:w,reason:r[v]}),x.BKa(0),w && (x.KG=!0),x.hFc());};q.prototype.flush=function(){var u,v;this.console.trace("Flush Called");null === (v=this.uq) || void 0 === v?void 0:v.clear();try{for(var w=d.__values(this.xw.keys()),x=w.next();!x.done;x=w.next())this.yPa(x.value,r.KG);}catch(A){var y;y={error:A};}finally{try{x && !x.done && (u=w.return) && u.call(w);}finally{if(y)throw y.error;}}};q.prototype.getStats=function(){var u,v,y;v={};try{for(var w=d.__values(this.plugins),x=w.next();!x.done;x=w.next()){y=x.value;v[y.Jbd]=y.R8c();}}catch(z){var A;A={error:z};}finally{try{x && !x.done && (u=w.return) && u.call(w);}finally{if(A)throw A.error;}}A=this.M6b.slice(0,5).map(function(z){return {viewableId:z.value.Os.J,stats:z.value.stats,lastAccessed:z.value.RUa,hasManifest:z.value.vA,isExpired:z.value.aw};});return {manifestCount:this.xw.size,totalManifestCount:this.size,playbackLeases:k.pFa.XXa,playbackCaches:k.pFa.WXa,activePending:Array.from(this.xw.values()).filter(function(z){return !z.value.vA;}).length,expiredPending:Array.from(this.EK.values()).filter(function(z){return !z.value.vA;}).length,throttler:this.glb.getStats(),plugins:v,top5Entries:A};};q.prototype.RLa=function(u){return (0,m.Rwb)(u,this.config,this.vyb.value) + c.platform.time.now();};q.prototype.cLc=function(){d.__awaiter(this,void 0,void 0,function(){var u,v,w,x,y,A,z,B,C,D,F;return d.__generator(this,function(H){switch(H.label){case 0:(u=(null === (F=this.uq) || void 0 === F?void 0:F.values()) || [],v=Array.from(this.xw.values()).map(function(E){return E.value;}),w=d.__spreadArray(d.__spreadArray([],d.__read(v),!1),d.__read(u),!1),H.label=1);case 1:(H.tc.push([1,6,7,8]),x=d.__values(w),y=x.next(),H.label=2);case 2:if(y.done)return [3,5];A=y.value;return !A.vA || isFinite(A.hA.absolute)?[3,4]:[4,A.S];case 3:(z=H.T(),A.BKa(this.RLa(z)),this.GG.sda(A),H.label=4);case 4:return (y=x.next(),[3,2]);case 5:return [3,8];case 6:return (B=H.T(),C={error:B},[3,8]);case 7:try{y && !y.done && (D=x.return) && D.call(x);}finally{if(C)throw C.error;}return [7];case 8:return [2];}});});};return q;})();b.qbb=t;},37349:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Rwb=void 0;b.Rwb=function(a,d,n){var c,f,g;g=d.V$c;return n && (null === (f=null === (c=a.qE) || void 0 === c?void 0:c.aN) || void 0 === f?0:f.JA)?Infinity:d.qed && void 0 !== a.FIb?a.FIb:1E3 * (g?g:a.Cyb?900:7200);};},16659:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},2300:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.pFa=void 0;a(22970);d=a(66164);n=a(91176);c=a(91176);f=a(90745);g=0;t=(function(){function e(h,k,l){this.SVa=h;this.rp=k;this.id=g++;this.xqa=this.j4b=!1;this.events=new f.EventEmitter();this.console=(0,n.Df)(d.platform,l,("PLAYBACKMANIFESTCACHE [").concat(this.id,"]"));this.console.trace("Creating this instance");this.Pca=new c.Oha(this.console,"playback-manifest-cache");}e.prototype.PLc=function(){this.xqa || (this.xqa=!0,e.WXa++);};e.prototype.rQb=function(){this.xqa && (this.xqa=!1,e.WXa--);};Object.defineProperties(e.prototype,{size:{get:function(){return this.Pca.size;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{CHc:{get:function(){return Array.from(this.Pca.values()).filter(function(h){return !h.value.S.vA;}).length;},enumerable:!1,configurable:!0}});e.prototype.kp=function(h){var k,l,m;k=this;l=h.J;m=this.rp(h);return this.Pca.HRa(m,function(){var p;k.console.trace("Getting manifest",{J:l,fEb:m});k.j4b && h.us && (h.us=!1);p=k.SVa.kp(h);p.value.S.then(function(){k.console.trace("Manifest received",{J:l,fEb:m});},function(r){k.console.trace("Manifest error received",{error:r});});e.XXa++;k.PLc();return {value:{S:p.value},bM:function(){p.jl.release();k.events.emit("itemRemoved",{type:"itemRemoved",item:p.value});k.console.trace("Releasing manifest",{J:l,fEb:m,$$c:k.Pca.size,A5c:p});e.XXa--;0 === k.size && k.rQb();}};});};e.prototype.Xt=function(){var h;this.console.trace("Destroying");null === (h=this.Pca) || void 0 === h?void 0:h.clear();this.rQb();};e.XXa=0;e.WXa=0;return e;})();b.pFa=t;},57042:function(t,b){var a,d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.PGc=function(f){var g,e,h,k;g=f.read(5);e=f.read(4);if(15 === e){h=f.read(24);e=a.indexOf(h);}else h=a[e];k=f.read(4);switch(g){case d:case n:case c:if(f.read(1))throw Error("frameLengthFlag not supported");break;default:throw Error("AAC profile " + g + " not supported.");}return {xv:g,sampleRate:h,Qva:e,Q5c:k,Bnc:1024};};a=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350];d=1;n=2;c=4;},79602:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.QJc=function(n,c,f){var g,e;g=n.read(1);if(g){e=new d.B$a(n,g,c);1 === n.read(2) && n.advance(e.k0 * e.Nba);}(0,d.UIb)(n,c,e,f);(0,d.UIb)(n,c,e,f);};d=a(50539);},48387:function(t,b,a){var d,n;b.w=function(c,f,g,e){var h;h=new d.Gga(c);e=e && e.Qva;f=(0,n.SJc)(h,{WF:f,ET:g},e);h=h.offset;return {frame:c.subarray(0,h),VXa:h,ved:f};};d=a(5641);n=a(67038);},30109:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.RJc=function(a,d,n){15 === d && (d+=a.read(8) - 1);0 < d && 1 !== n.WF && !n.ET?(a.write(4,0),a.advance(8 * d - 4)):a.advance(8 * d);};},67038:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.SJc=function(c,f,g){var e,h,k;if(4095 === c.read(12)){c.advance(3);e=!!c.read(1);h=c.read(2) + 1;g=c.read(4);c.advance(8);k=c.read(13);c.advance(13 + (e?0:16));e={xv:h,Qva:g,Bnc:k};}else c.reverse(12);(0,d.assert)(void 0 !== g);(0,n.$Jc)(c,g,f);return e;};d=a(87606);n=a(970);},27912:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.v9a=b.m9a=b.l9a=b.u9a=b.t9a=b.s9a=b.r9a=b.q9a=b.p9a=b.o9a=b.n9a=b.k9a=void 0;b.k9a={width:2,table:new Uint16Array([1,0,5,16,5,17,5,18,5,19,5,20,5,21,5,22,5,23,7,96,7,97,7,98,7,99,7,100,7,101,7,102,7,103,7,104,7,105,7,106,7,107,7,108,7,109,7,110,7,111,7,112,7,113,7,114,7,115,7,116,7,117,7,118,7,119,9,480,9,481,9,482,9,483,9,484,9,485,9,486,9,487,9,488,9,489,9,490,9,491,9,492,9,493,9,494,9,495,9,496,9,497,9,498,9,499,9,500,9,501,9,502,9,503,10,1008,10,1009,10,1010,10,1011,10,1012,10,1013,10,1014,10,1015,11,2032,11,2033,11,2034,11,2035,11,2036,11,2037,11,2038,11,2039,11,2040,11,2041,11,2042,11,2043,11,2044,11,2045,11,2046,11,2047])};b.n9a={width:2,table:new Uint16Array([3,0,4,2,5,6,5,7,5,8,5,9,5,10,5,11,5,12,6,26,6,27,6,28,6,29,6,30,6,31,6,32,6,33,6,34,6,35,6,36,6,37,6,38,6,39,6,40,6,41,6,42,6,43,6,44,6,45,6,46,6,47,6,48,6,49,7,100,7,101,7,102,7,103,7,104,7,105,7,106,7,107,7,108,7,109,7,110,7,111,7,112,7,113,7,114,8,230,8,231,8,232,8,233,8,234,8,235,8,236,8,237,8,238,8,239,8,240,8,241,8,242,8,243,8,244,8,245,8,246,8,247,8,248,9,498,9,499,9,500,9,501,9,502,9,503,9,504,9,505,9,506,9,507,9,508,9,509,9,510,9,511])};b.o9a={width:3,table:new Uint16Array([1,0,0,4,8,1,4,9,1,4,10,1,4,11,1,5,24,2,5,25,2,6,52,2,6,53,2,6,54,2,6,55,3,6,56,2,6,57,3,7,116,4,7,117,3,7,118,3,8,238,1,8,239,1,8,240,2,8,241,2,8,242,3,9,486,2,9,487,3,9,488,2,9,489,3,9,490,3,9,491,1,9,492,2,9,493,2,9,494,1,9,495,2,9,496,2,9,497,4,9,498,3,9,499,3,9,500,4,10,1002,3,10,1003,2,10,1004,3,10,1005,2,10,1006,4,10,1007,4,10,1008,3,10,1009,3,10,1010,2,10,1011,3,10,1012,3,10,1013,3,10,1014,2,10,1015,2,10,1016,3,11,2034,2,11,2035,4,11,2036,3,11,2037,3,11,2038,4,11,2039,4,11,2040,2,11,2041,3,12,4084,3,12,4085,3,12,4086,3,12,4087,3,12,4088,3,12,4089,4,12,4090,4,12,4091,4,12,4092,4,13,8186,2,13,8187,2,13,8188,3,14,16378,3,14,16379,4,14,16380,3,15,32762,4,15,32763,4,15,32764,4,15,32765,3,15,32766,2,16,65534,3,16,65535,3])};b.p9a={width:3,table:new Uint16Array([4,0,4,4,1,3,4,2,3,4,3,3,4,4,3,4,5,1,4,6,2,4,7,0,4,8,2,4,9,2,5,20,2,5,21,2,5,22,1,5,23,2,5,24,1,5,25,1,7,104,4,7,105,4,7,106,4,7,107,4,7,108,3,7,109,3,7,110,3,7,111,3,7,112,3,8,226,3,8,227,3,8,228,3,8,229,3,8,230,3,8,231,3,8,232,3,8,233,2,8,234,2,8,235,2,8,236,2,8,237,2,8,238,2,8,239,2,8,240,2,8,241,2,8,242,2,8,243,2,8,244,2,8,245,1,8,246,1,9,494,1,9,495,1,9,496,4,9,497,4,9,498,4,9,499,4,9,500,4,9,501,4,10,1004,3,10,1005,3,10,1006,3,10,1007,3,10,1008,3,10,1009,3,10,1010,3,10,1011,3,10,1012,3,10,1013,4,10,1014,3,10,1015,3,10,1016,3,10,1017,4,11,2036,4,11,2037,4,11,2038,2,11,2039,2,11,2040,2,11,2041,2,11,2042,2,11,2043,2,11,2044,4,11,2045,3,11,2046,3,12,4094,3,12,4095,3])};b.q9a={width:2,table:new Uint16Array([1,0,4,8,4,9,4,10,4,11,5,24,5,25,5,26,5,27,7,112,7,113,7,114,7,115,8,232,8,233,8,234,8,235,8,236,8,237,8,238,8,239,8,240,8,241,8,242,8,243,9,488,9,489,9,490,9,491,9,492,9,493,9,494,9,495,9,496,9,497,9,498,9,499,10,1E3,10,1001,10,1002,10,1003,10,1004,10,1005,10,1006,10,1007,10,1008,10,1009,10,1010,10,1011,11,2024,11,2025,11,2026,11,2027,11,2028,11,2029,11,2030,11,2031,11,2032,11,2033,11,2034,11,2035,11,2036,11,2037,11,2038,11,2039,11,2040,11,2041,12,4084,12,4085,12,4086,12,4087,12,4088,12,4089,12,4090,12,4091,12,4092,12,4093,13,8188,13,8189,13,8190,13,8191])};b.r9a={width:2,table:new Uint16Array([4,0,4,1,4,2,4,3,4,4,4,5,4,6,4,7,4,8,6,36,6,37,6,38,6,39,6,40,6,41,6,42,6,43,6,44,6,45,6,46,6,47,6,48,6,49,6,50,6,51,7,104,7,105,7,106,7,107,7,108,7,109,7,110,7,111,7,112,7,113,7,114,7,115,7,116,8,234,8,235,8,236,8,237,8,238,8,239,8,240,8,241,9,484,9,485,9,486,9,487,9,488,9,489,9,490,9,491,9,492,9,493,9,494,9,495,9,496,9,497,9,498,9,499,9,500,9,501,9,502,9,503,9,504,9,505,9,506,10,1014,10,1015,10,1016,10,1017,10,1018,10,1019,10,1020,10,1021,11,2044,11,2045,11,2046,11,2047])};b.s9a={width:3,table:new Uint16Array([1,0,0,3,4,1,3,5,1,4,12,2,6,52,2,6,53,2,6,54,1,6,55,1,7,112,2,7,113,2,7,114,2,7,115,1,7,116,1,8,234,2,8,235,2,8,236,2,8,237,2,8,238,2,8,239,2,8,240,2,8,241,2,8,242,1,8,243,1,9,488,2,9,489,2,9,490,2,9,491,1,9,492,2,9,493,1,9,494,2,9,495,2,9,496,2,9,497,2,9,498,2,9,499,2,9,500,2,9,501,2,10,1004,2,10,1005,1,10,1006,1,10,1007,2,10,1008,2,10,1009,2,10,1010,2,10,1011,2,10,1012,2,10,1013,2,10,1014,2,10,1015,2,10,1016,2,10,1017,2,10,1018,2,11,2038,1,11,2039,1,11,2040,2,11,2041,2,11,2042,2,11,2043,2,11,2044,2,11,2045,2,12,4092,2,12,4093,2,12,4094,2,12,4095,2])};b.t9a={width:3,table:new Uint16Array([3,0,2,4,2,2,4,3,1,4,4,2,4,5,1,4,6,2,5,14,0,5,15,1,5,16,1,5,17,2,5,18,2,5,19,2,5,20,2,6,42,2,6,43,2,6,44,2,6,45,2,6,46,2,6,47,1,6,48,1,6,49,2,6,50,2,6,51,2,7,104,2,7,105,2,7,106,2,7,107,2,7,108,2,7,109,2,7,110,2,7,111,1,7,112,2,7,113,1,7,114,2,7,115,2,7,116,2,7,117,2,8,236,2,8,237,2,8,238,2,8,239,1,8,240,2,8,241,1,8,242,2,8,243,2,8,244,2,8,245,2,8,246,2,8,247,2,8,248,2,8,249,2,8,250,2,9,502,2,9,503,2,9,504,1,9,505,2,9,506,1,9,507,2,9,508,2,9,509,2,10,1020,2,10,1021,1,10,1022,1,10,1023,2])};b.u9a={width:3,table:new Uint16Array([1,0,0,3,4,1,3,5,1,4,12,2,6,52,2,6,53,2,6,54,1,6,55,1,7,112,2,7,113,2,7,114,2,8,230,1,8,231,1,8,232,2,8,233,2,8,234,2,8,235,2,8,236,2,8,237,2,9,476,2,9,477,2,9,478,1,9,479,1,9,480,2,9,481,2,9,482,2,9,483,2,9,484,2,9,485,2,9,486,2,10,974,1,10,975,2,10,976,1,10,977,2,10,978,2,10,979,2,10,980,2,10,981,2,10,982,2,10,983,2,10,984,2,10,985,1,10,986,2,10,987,2,10,988,2,10,989,2,10,990,2,10,991,2,10,992,2,10,993,2,11,1988,1,11,1989,2,11,1990,2,11,1991,2,11,1992,1,11,1993,2,11,1994,2,11,1995,2,11,1996,2,11,1997,1,11,1998,2,11,1999,2,11,2E3,2,11,2001,2,11,2002,1,11,2003,1,11,2004,2,11,2005,2,11,2006,2,11,2007,2,11,2008,2,11,2009,2,11,2010,2,11,2011,2,11,2012,2,11,2013,2,11,2014,2,11,2015,2,11,2016,2,11,2017,1,11,2018,2,12,4038,2,12,4039,2,12,4040,1,12,4041,2,12,4042,2,12,4043,2,12,4044,2,12,4045,2,12,4046,2,12,4047,2,12,4048,2,12,4049,2,12,4050,2,12,4051,2,12,4052,2,12,4053,2,12,4054,2,12,4055,2,12,4056,2,12,4057,2,12,4058,2,12,4059,2,12,4060,2,12,4061,1,12,4062,2,12,4063,2,12,4064,1,12,4065,2,12,4066,2,12,4067,2,12,4068,2,12,4069,2,12,4070,2,12,4071,2,12,4072,1,12,4073,2,12,4074,2,12,4075,2,13,8152,2,13,8153,2,13,8154,2,13,8155,2,13,8156,2,13,8157,2,13,8158,2,13,8159,2,13,8160,2,13,8161,2,13,8162,2,13,8163,2,13,8164,1,13,8165,2,13,8166,2,13,8167,1,13,8168,2,13,8169,2,13,8170,2,13,8171,2,13,8172,1,13,8173,2,13,8174,2,13,8175,2,13,8176,2,13,8177,2,13,8178,2,13,8179,2,13,8180,2,13,8181,2,13,8182,2,13,8183,2,14,16368,2,14,16369,2,14,16370,2,14,16371,2,14,16372,2,14,16373,2,14,16374,2,14,16375,2,14,16376,2,14,16377,2,14,16378,2,14,16379,2,14,16380,2,14,16381,2,15,32764,2,15,32765,2,15,32766,2,15,32767,2])};b.l9a={width:3,table:new Uint16Array([4,0,2,4,1,2,4,2,2,5,6,2,5,7,1,5,8,1,5,9,2,5,10,2,5,11,2,5,12,2,5,13,2,6,28,1,6,29,1,6,30,2,6,31,2,6,32,2,6,33,2,6,34,0,6,35,2,6,36,2,6,37,1,6,38,1,6,39,2,6,40,2,6,41,2,7,84,2,7,85,2,7,86,2,7,87,2,7,88,2,7,89,2,7,90,2,7,91,2,7,92,2,7,93,1,7,94,2,7,95,1,7,96,2,7,97,2,7,98,2,7,99,2,7,100,2,8,202,2,8,203,2,8,204,2,8,205,2,8,206,2,8,207,2,8,208,2,8,209,1,8,210,2,8,211,1,8,212,2,8,213,2,8,214,2,8,215,2,8,216,2,8,217,2,8,218,2,8,219,2,8,220,2,8,221,2,8,222,2,8,223,2,8,224,2,8,225,2,8,226,2,9,454,2,9,455,2,9,456,2,9,457,1,9,458,2,9,459,2,9,460,2,9,461,2,9,462,2,9,463,1,9,464,2,9,465,2,9,466,2,9,467,2,9,468,2,9,469,2,9,470,2,9,471,2,9,472,2,9,473,2,9,474,2,9,475,2,9,476,2,9,477,2,9,478,2,9,479,2,9,480,2,9,481,1,9,482,2,9,483,1,9,484,2,10,970,2,10,971,2,10,972,2,10,973,2,10,974,2,10,975,2,10,976,1,10,977,2,10,978,2,10,979,2,10,980,2,10,981,2,10,982,2,10,983,1,10,984,2,10,985,2,10,986,2,10,987,2,10,988,2,10,989,2,10,990,2,10,991,2,10,992,2,10,993,2,10,994,2,10,995,2,10,996,2,10,997,2,10,998,2,10,999,2,10,1E3,2,10,1001,1,10,1002,2,10,1003,1,10,1004,2,10,1005,1,10,1006,2,10,1007,2,10,1008,2,10,1009,2,10,1010,2,11,2022,2,11,2023,2,11,2024,2,11,2025,2,11,2026,2,11,2027,2,11,2028,2,11,2029,2,11,2030,2,11,2031,2,11,2032,1,11,2033,2,11,2034,1,11,2035,2,11,2036,2,11,2037,2,11,2038,1,11,2039,2,11,2040,2,11,2041,2,11,2042,1,11,2043,2,12,4088,2,12,4089,2,12,4090,2,12,4091,2,12,4092,2,12,4093,1,12,4094,2,12,4095,2])};b.m9a={width:4,table:new Uint16Array([4,0,0,0,4,1,2,0,5,4,2,2,5,5,1,0,5,6,1,0,5,7,2,0,5,8,2,0,5,9,2,0,6,20,2,0,6,21,2,0,6,22,2,0,6,23,1,0,6,24,2,0,6,25,1,0,6,26,2,0,7,54,2,0,7,55,2,0,7,56,2,0,7,57,2,0,7,58,2,0,7,59,2,0,7,60,1,0,7,61,1,0,7,62,2,0,7,63,2,0,7,64,2,0,7,65,2,0,7,66,2,0,7,67,2,0,7,68,2,0,7,69,2,0,8,140,2,0,8,141,2,0,8,142,2,0,8,143,2,0,8,144,2,0,8,145,2,0,8,146,2,0,8,147,2,1,8,148,2,1,8,149,2,1,8,150,2,1,8,151,2,1,8,152,2,0,8,153,2,1,8,154,1,0,8,155,2,0,8,156,1,0,8,157,2,1,8,158,2,0,8,159,2,1,8,160,2,1,8,161,2,1,8,162,2,1,8,163,2,0,8,164,2,0,8,165,2,0,8,166,2,0,8,167,2,0,8,168,2,1,8,169,2,1,8,170,2,0,8,171,2,0,8,172,2,1,8,173,2,1,8,174,2,1,8,175,2,0,8,176,2,0,8,177,2,1,8,178,2,0,8,179,2,1,8,180,2,1,8,181,2,1,8,182,2,0,8,183,2,1,8,184,2,0,8,185,2,0,8,186,2,1,8,187,2,1,8,188,2,0,8,189,2,0,8,190,2,0,8,191,1,0,8,192,2,1,8,193,2,1,8,194,2,0,8,195,2,0,8,196,2,0,8,197,2,0,8,198,1,0,9,398,2,0,9,399,2,1,9,400,2,1,9,401,2,0,9,402,2,0,9,403,2,1,9,404,2,0,9,405,2,1,9,406,2,0,9,407,2,0,9,408,2,0,9,409,2,0,9,410,2,0,9,411,2,0,9,412,2,0,9,413,2,1,9,414,2,0,9,415,2,0,9,416,1,0,9,417,2,0,9,418,2,0,9,419,2,0,9,420,2,0,9,421,2,0,9,422,2,0,9,423,1,0,9,424,2,0,9,425,2,0,9,426,2,0,9,427,2,0,9,428,2,0,9,429,2,0,9,430,2,0,9,431,2,0,9,432,2,0,9,433,2,0,9,434,2,0,9,435,2,0,9,436,2,0,9,437,2,0,9,438,1,0,9,439,2,0,9,440,2,0,9,441,2,0,9,442,2,0,9,443,2,0,9,444,2,0,9,445,2,0,9,446,2,0,9,447,2,0,9,448,2,0,9,449,2,0,9,450,1,1,9,451,2,0,9,452,2,0,10,906,2,0,10,907,2,0,10,908,2,0,10,909,2,0,10,910,1,1,10,911,2,0,10,912,1,0,10,913,2,0,10,914,2,0,10,915,2,0,10,916,2,0,10,917,2,0,10,918,2,0,10,919,2,0,10,920,2,0,10,921,2,0,10,922,2,0,10,923,2,0,10,924,2,0,10,925,2,0,10,926,2,0,10,927,2,0,10,928,2,0,10,929,2,0,10,930,2,0,10,931,2,0,10,932,2,0,10,933,2,0,10,934,2,0,10,935,2,0,10,936,2,0,10,937,2,0,10,938,2,0,10,939,2,0,10,940,2,0,10,941,2,0,10,942,2,0,10,943,1,0,10,944,2,0,10,945,2,0,10,946,2,0,10,947,2,0,10,948,2,0,10,949,2,0,10,950,2,0,10,951,2,0,10,952,2,0,10,953,2,0,10,954,2,0,10,955,2,0,10,956,2,0,10,957,2,0,10,958,2,0,10,959,2,0,10,960,2,0,10,961,2,0,10,962,1,0,10,963,2,0,10,964,2,0,10,965,2,0,10,966,2,0,10,967,2,0,10,968,2,0,10,969,2,0,10,970,2,0,10,971,2,0,10,972,2,0,10,973,2,0,10,974,2,0,10,975,2,0,10,976,2,0,10,977,2,0,10,978,2,0,10,979,2,0,10,980,2,0,10,981,2,0,10,982,2,0,10,983,2,0,10,984,2,0,10,985,2,0,10,986,2,0,10,987,2,0,10,988,2,0,10,989,2,0,10,990,1,0,10,991,1,0,10,992,2,0,10,993,2,0,10,994,2,0,10,995,2,0,10,996,2,0,10,997,2,0,10,998,2,0,10,999,2,0,10,1E3,2,0,11,2002,2,0,11,2003,2,0,11,2004,2,0,11,2005,2,0,11,2006,2,0,11,2007,2,0,11,2008,2,0,11,2009,2,0,11,2010,2,0,11,2011,2,0,11,2012,2,0,11,2013,2,0,11,2014,2,0,11,2015,2,0,11,2016,2,0,11,2017,2,0,11,2018,2,0,11,2019,1,0,11,2020,2,0,11,2021,2,0,11,2022,1,0,11,2023,2,0,11,2024,1,0,11,2025,2,0,11,2026,2,0,11,2027,2,0,11,2028,1,0,11,2029,2,0,11,2030,2,0,11,2031,2,0,11,2032,2,0,11,2033,2,0,11,2034,1,0,11,2035,1,0,11,2036,2,0,11,2037,2,0,11,2038,2,0,11,2039,2,0,11,2040,1,0,11,2041,2,0,11,2042,2,0,11,2043,1,0,11,2044,2,0,12,4090,1,0,12,4091,1,0,12,4092,2,0,12,4093,1,0,12,4094,1,0,12,4095,2,0])};b.v9a={width:2,table:new Uint32Array([1,0,3,4,4,10,4,11,4,12,5,26,5,27,6,56,6,57,6,58,6,59,7,120,7,121,7,122,8,246,8,247,8,248,8,249,8,250,9,502,9,503,9,504,9,505,10,1012,10,1013,10,1014,10,1015,10,1016,10,1017,11,2036,11,2037,11,2038,11,2039,11,2040,11,2041,12,4084,12,4085,12,4086,12,4087,12,4088,12,4089,13,8180,13,8181,13,8182,13,8183,13,8184,14,16370,14,16371,14,16372,14,16373,14,16374,14,16375,14,16376,14,16377,15,32756,15,32757,15,32758,15,32759,16,65520,16,65521,16,65522,16,65523,16,65524,16,65525,16,65526,17,131054,17,131055,17,131056,18,262114,18,262115,18,262116,18,262117,18,262118,18,262119,18,262120,19,524242,19,524243,19,524244,19,524245,19,524246,19,524247,19,524248,19,524249,19,524250,19,524251,19,524252,19,524253,19,524254,19,524255,19,524256,19,524257,19,524258,19,524259,19,524260,19,524261,19,524262,19,524263,19,524264,19,524265,19,524266,19,524267,19,524268,19,524269,19,524270,19,524271,19,524272,19,524273,19,524274,19,524275,19,524276,19,524277,19,524278,19,524279,19,524280,19,524281,19,524282,19,524283,19,524284,19,524285,19,524286,19,524287])};},77737:function(t,b,a){var d,n,c;Object.defineProperty(b,"__esModule",{value:!0});b.Cha=void 0;d=a(27912);n=[d.k9a,d.n9a,d.o9a,d.p9a,d.q9a,d.r9a,d.s9a,d.t9a,d.u9a,d.l9a,d.m9a];c=[!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0];b.Cha=(function(){function f(){}f.Eub=function(g,e){var h,p,r;h=e.table;e=e.width;for(var k=0,l=h[0],m=g.read(l);m !== h[k + 1];){k+=e;p=h[k];r=p - l;l=p;m<<=r;m|=g.read(r);}return k;};f.ENb=function(g){for(var e=4;g.read(1);)++e;g.advance(e);};f.GNb=function(g,e){for(;e--;)f.Eub(g,d.v9a);};f.sRc=function(g,e){var h,k;h=n[e - 1];k=h.table;h=this.Eub(g,h);if(11 > e)c[e - 1] && (e=k[h + 2]) && g.advance(e);else if(11 === e || 15 < e)(h+=2,(e=k[h]) && g.advance(e),(k=k[h + 1]) && this.ENb(g),1 < k && this.ENb(g));else throw Error("Huffman: unknown spectral codebook: " + e);};return f;})();},50539:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r;Object.defineProperty(b,"__esModule",{value:!0});b.B$a=void 0;b.UIb=function(q,u,v,w){var x,y,A;x=q.read(8);w=Math.max(0,Math.ceil(x + 4 * Math.log(Math.pow(10,w.WF / 20)) / Math.log(2)));q.reverse(8);q.write(8,w);v || (v=new r(q,0,u));x=v;y=x.Y3a === f?3:5;A=(1 << y) - 1;u=[];w=[];for(var z=[],B=0;B < x.k0;++B){for(var C=0,D=0;C < x.Nba;){for(var F=q.read(4),H=0,E;(E=q.read(y)) === A;)H+=E;H+=E;C+=H;u.push(F);w.push(H);++D;}z.push(D);}x=!0;for(y=0;y < u.length;++y)u[y] !== g && (u[y] === h && x?(q.advance(9),x=!1,n.Cha.GNb(q,w[y] - 1)):n.Cha.GNb(q,w[y]));q.read(1) && q.advance(6 + 9 * (q.read(2) + 1));if(q.read(1))for((x=v,y=2 === x.Y3a?m:p,A=0);A < x.NFb;++A)if(z=q.read(y[0]))for((B=q.read(1),C=0);C < z;++C)if((q.advance(y[1]),D=q.read(y[2])))(q.advance(1),F=q.read(1),q.advance(D * (B + 3 - F)));(0,d.assert)(!q.read(1));x=v.k0;y=v.Nba;A=v.$Ob;v=v.gya;for(B=z=0;B < x;++B)for((C=v[B],D=0);D < y;++z)if((F=u[z],H=w[z],F === g || F === h || F === l || F === k))D+=H;else {E=F >= e?2:4;for(var G=0;G < H;(++G,++D))for(var J=C * (A[D + 1] - A[D]) / E,L=0;L < J;++L)n.Cha.sRc(q,F);}};d=a(87606);n=a(77737);c=a(96103);f=2;g=0;e=5;h=13;k=14;l=15;m=[1,4,3];p=[2,6,5];r=(function(){return function(q,u,v){var w;this.gya=[];this.k0=1;this.gya[0]=1;q.advance(1);this.Y3a=q.read(2);q.read(1);if(this.Y3a === f){this.NFb=8;this.Nba=q.read(4);for(u=0;7 > u;++u)q.read(1)?this.gya[this.k0 - 1]++:(this.k0++,this.gya[this.k0 - 1]=1);this.$Ob=c.dgb[v];}else {this.NFb=1;this.Nba=q.read(6);if(q.read(1)){w=14 + Math.min(this.Nba,40);q.read(1) && q.advance(w);u && q.read(1) && q.advance(w);}this.$Ob=c.cgb[v];}};})();b.B$a=r;},970:function(t,b,a){var d,n,c,f,g;Object.defineProperty(b,"__esModule",{value:!0});b.$Jc=function(e,h,k){var m;for(var l;(l=e.read(3)) !== g;){m=e.read(4);switch(l){case c:(0,d.QJc)(e,h,k);break;case f:(0,n.RJc)(e,m,k);break;default:throw Error(("Unsupported AAC element ").concat(l));}}e.a$b();};d=a(79602);n=a(30109);c=1;f=6;g=7;},96103:function(t,b){var a,d,n,c,f,g,e,h,k,l,m,p;Object.defineProperty(b,"__esModule",{value:!0});b.e0b=b.lXb=b.f0b=b.E0b=b.F0b=b.dgb=b.cgb=void 0;t=new Uint16Array([0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,64,72,80,88,96,108,120,132,144,156,172,188,212,240,276,320,384,448,512,576,640,704,768,832,896,960,1024]);a=new Uint16Array([0,4,8,12,16,20,24,32,40,48,64,92,128]);d=new Uint16Array([0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,64,72,80,88,100,112,124,140,156,172,192,216,240,268,304,344,384,424,464,504,544,584,624,664,704,744,784,824,864,904,944,984,1024]);n=new Uint16Array([0,4,8,12,16,20,24,32,40,48,64,92,128]);c=new Uint16Array([0,4,8,12,16,20,24,28,32,36,40,48,56,64,72,80,88,96,108,120,132,144,160,176,196,216,240,264,292,320,352,384,416,448,480,512,544,576,608,640,672,704,736,768,800,832,864,896,928,1024]);f=new Uint16Array([0,4,8,12,16,20,28,36,44,56,68,80,96,112,128]);g=new Uint16Array([0,4,8,12,16,20,24,28,32,36,40,48,56,64,72,80,88,96,108,120,132,144,160,176,196,216,240,264,292,320,352,384,416,448,480,512,544,576,608,640,672,704,736,768,800,832,864,896,928,960,992,1024]);e=new Uint16Array([0,4,8,12,16,20,24,28,32,36,40,44,52,60,68,76,84,92,100,108,116,124,136,148,160,172,188,204,220,240,260,284,308,336,364,396,432,468,508,552,600,652,704,768,832,896,960,1024]);h=new Uint16Array([0,4,8,12,16,20,24,28,36,44,52,64,76,92,108,128]);k=new Uint16Array([0,8,16,24,32,40,48,56,64,72,80,88,100,112,124,136,148,160,172,184,196,212,228,244,260,280,300,320,344,368,396,424,456,492,532,572,616,664,716,772,832,896,960,1024]);l=new Uint16Array([0,4,8,12,16,20,24,28,32,40,48,60,72,88,108,128]);m=new Uint16Array([0,12,24,36,48,60,72,84,96,108,120,132,144,156,172,188,204,220,236,252,268,288,308,328,348,372,396,420,448,476,508,544,580,620,664,712,764,820,880,944,1024]);p=new Uint16Array([0,4,8,12,16,20,24,28,36,44,52,60,72,88,108,128]);b.cgb=[t,t,d,c,c,g,e,e,k,k,k,m];b.dgb=[a,a,n,f,f,f,h,h,l,l,l,p];b.F0b=new Uint8Array([12,12,12,14,14,14,15,15,15,15,15,15]);b.E0b=new Uint8Array([41,41,47,49,49,51,47,47,43,43,43,40]);b.f0b=(function(){for(var r=new Float32Array(428),q=0;428 > q;q++)r[q]=Math.pow(2,(q - 200) / 4);return r;})();b.lXb=(function(){for(var r=new Float32Array(8191),q=4 / 3,u=0;8191 > u;u++)r[u]=Math.pow(u,q);return r;})();b.e0b=new Int32Array([96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350]);},87606:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.assert=function(c,f){if(!c)throw new n(f || "Assertion failed");};d=a(22970);n=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);return f;})(Error);},5641:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});b.Gga=void 0;t=(function(){function a(d){this.data=d;this.xx=this.ed=this.ke=0;this.view=new DataView(d.buffer,d.byteOffset,d.byteLength);}Object.defineProperty(a.prototype,"offset",{get:function(){return this.ed;},enumerable:!1,configurable:!0});a.prototype.read=function(d){if(0 === this.ke){if(8 === d)return this.data[this.ed++];if(16 === d)return (d=this.view.getUint16(this.ed),this.ed+=2,d);if(32 === d)return (d=this.view.getUint32(this.ed),this.ed+=4,d);}for(;this.ke < d;)(this.xx=(this.xx << 8) + this.data[this.ed++],this.ke+=8);this.ke-=d;return this.xx >>> this.ke & (1 << d) - 1;};a.prototype.advance=function(d){var n;if(d <= this.ke)this.ke-=d;else {d-=this.ke;n=Math.floor(d / 8);this.ed+=n;this.xx=this.data[this.ed++];this.ke=8 - (d - 8 * n);}};a.prototype.write=function(d,n){var c,f;n&=(1 << d) - 1;if(0 === this.ke){if(8 === d){this.data[this.ed++]=n;return;}if(16 === d){this.view.setUint16(this.ed,n);this.ed+=2;return;}if(32 === d){this.view.setUint32(this.ed,n);this.ed+=4;return;}}if(0 < this.ke){c=Math.min(d,this.ke);f=this.data[this.ed - 1] & (~((1 << this.ke) - 1) ^ (1 << this.ke - c) - 1);this.data[this.ed - 1]=f ^ (d >= c?n >>> d - c:n << this.ke - c);this.ke-=c;d-=c;}for(;8 <= d;)(d-=8,this.data[this.ed++]=n >>> d & 255);0 < d && (this.ke=8 - d,f=this.data[this.ed] & (1 << this.ke) - 1,this.xx=this.data[this.ed++]=f ^ (n & (1 << d) - 1) << 8 - d);};a.prototype.reverse=function(d){0 !== this.ke && d <= 8 - this.ke?this.ke+=d:(0 !== this.ke && (d-=8 - this.ke,--this.ed),this.ed-=Math.floor(d / 8),this.xx=this.data[this.ed - 1],this.ke=d % 8);};a.prototype.a$b=function(){0 !== this.ke && (this.ke=0);};return a;})();b.Gga=t;},25154:function(t,b){var a;Object.defineProperty(b,"__esModule",{value:!0});b.Bec=function(d,n){void 0 === n && (n=0);n=~~n;for(var c=0;c < d.length;c++)n=(a[(n >> 8 ^ d[c]) & 255] ^ n << 8) & 65535;return n;};a=new Uint16Array([0,32773,32783,10,32795,30,20,32785,32819,54,60,32825,40,32813,32807,34,32867,102,108,32873,120,32893,32887,114,80,32853,32863,90,32843,78,68,32833,32963,198,204,32969,216,32989,32983,210,240,33013,33023,250,33003,238,228,32993,160,32933,32943,170,32955,190,180,32945,32915,150,156,32921,136,32909,32903,130,33155,390,396,33161,408,33181,33175,402,432,33205,33215,442,33195,430,420,33185,480,33253,33263,490,33275,510,500,33265,33235,470,476,33241,456,33229,33223,450,320,33093,33103,330,33115,350,340,33105,33139,374,380,33145,360,33133,33127,354,33059,294,300,33065,312,33085,33079,306,272,33045,33055,282,33035,270,260,33025,33539,774,780,33545,792,33565,33559,786,816,33589,33599,826,33579,814,804,33569,864,33637,33647,874,33659,894,884,33649,33619,854,860,33625,840,33613,33607,834,960,33733,33743,970,33755,990,980,33745,33779,1014,1020,33785,1E3,33773,33767,994,33699,934,940,33705,952,33725,33719,946,912,33685,33695,922,33675,910,900,33665,640,33413,33423,650,33435,670,660,33425,33459,694,700,33465,680,33453,33447,674,33507,742,748,33513,760,33533,33527,754,720,33493,33503,730,33483,718,708,33473,33347,582,588,33353,600,33373,33367,594,624,33397,33407,634,33387,622,612,33377,544,33317,33327,554,33339,574,564,33329,33299,534,540,33305,520,33293,33287,514]);},10543:function(t,b,a){var d,n;b.w=function(c,f,g){var e;e=new d.Gga(c);f=(0,n.p7b)(e,f,null === g || void 0 === g?void 0:g.cS).Dnc;c=c.subarray(0,f);(0,n.lQc)(c);return {frame:c,VXa:f};};d=a(5641);n=a(75719);},75719:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.p7b=function(c,f,g){var e,h;e=c.read(16);(0,d.assert)(2935 === e);e=2 * ((c.read(16) & 2047) + 1);c.advance(13);h=c.read(5);c.reverse(5);g && (f*=-h / g);c.write(5,Math.min(31,Math.max(1,Math.floor(h + f))));return {Dnc:e};};b.lQc=function(c){var f;f=(0,n.Bec)(c.subarray(2,c.length - 2));c[c.length - 2]=f >> 8;c[c.length - 1]=f & 255;};d=a(87606);n=a(25154);},71210:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.Slc=function(){var h,k,l,m;for(var g=[],e=0;e < arguments.length;e++)g[e]=arguments[e];h="string" === typeof g[0]?{Xc:g[0],frame:g[1],WF:g[2],Zbc:g[3],cS:g[4]}:g[0];k=h.Xc;g=h.frame;e=h.WF;l=h.Zbc;m=h.cS;h=h.ET;h=void 0 === h?!1:h;switch(k){case "aac":void 0 === c && (c=a(48387).w);k=6;l && (l=new d.Gga(l),k=(0,n.PGc)(l).Qva);g=c(g,e,h,{Qva:k}).VXa;break;case "ddp":void 0 === f && (f=a(10543).w);g=f(g,e,{cS:m}).VXa;break;case "xheaac":g=g.length;break;default:throw Error("Unrecognized codec in fadeFrame: " + k);}return {Cnc:g};};d=a(5641);n=a(57042);},81969:function(t,b,a){Object.defineProperty(b,"__esModule",{value:!0});a(22970).__exportStar(a(71210),b);},66988:function(t,b){var a,d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.AP=void 0;t={name:"heaac-2-dash reset sample",profile:53,channels:2,sampleRate:24E3,duration:1024,xwa:new Uint8Array([33,17,69,0,20,80,1,70,157,188,0,0,8,28,0,0,0,14]).buffer};a={name:"heaac-2-dash standard sample",profile:53,channels:2,sampleRate:24E3,duration:1024,xwa:new Uint8Array([33,17,69,0,20,80,1,70,240,77,251,1,60,8,64,0,0,0,0,0,0,0,0,0,7,14,0,14]).buffer};d={name:"ddplus-5.1-dash standard sample",profile:54,channels:6,sampleRate:48E3,duration:1536,xwa:new Uint8Array([11,119,1,127,63,134,255,225,6,32,0,32,0,66,10,65,0,135,216,68,3,254,202,2,88,163,1,16,177,64,146,32,160,75,20,80,37,136,35,227,36,160,152,156,165,37,38,41,37,73,74,9,201,146,130,114,82,116,160,152,152,150,136,58,125,89,245,39,207,159,63,116,150,147,242,73,95,165,171,175,253,215,126,82,21,55,188,8,165,126,249,242,100,175,255,249,73,42,255,253,215,124,246,156,23,239,108,36,134,249,211,228,181,255,246,253,205,119,176,179,86,126,166,27,231,175,225,58,255,222,170,110,127,249,215,41,232,146,73,183,0,88,211,192,0,0,31,7,178,116,62,122,114,245,8,233,196,71,223,196,18,59,202,113,248,103,242,80,250,118,15,1,60,79,251,46,14,8,9,37,4,14,183,67,131,195,103,241,250,32,124,81,61,76,9,40,161,2,1,16,64,114,219,225,217,172,140,44,12,64,147,49,210,195,206,12,52,186,196,0,107,134,202,4,9,216,72,67,11,127,185,13,125,124,124,194,90,203,69,1,209,8,129,183,36,196,101,7,248,73,181,38,181,30,232,124,27,18,222,207,92,251,85,227,78,0,70,196,59,0,207,194,0,252,226,209,111,144,239,111,148,54,39,28,176,248,160,58,88,113,9,76,65,57,180,96,82,224,115,52,208,161,184,86,120,211,212,168,13,52,217,124,121,189,237,163,53,72,52,157,245,160,110,16,182,219,180,152,180,136,47,23,151,198,192,20,62,220,249,107,82,0,0,0,234,22,24,202,252,104,154,198,95,7,98,110,113,104,187,197,110,105,201,123,18,61,45,233,135,20,0,151,155,45,131,75,174,9,228,53,214,32,19,131,131,87,146,156,22,16,160,0,0,5,169,31,241,155,119,242,21,168,176,225,35,130,186,60,97,189,244,57,5,158,124,200,224,156,74,33,48,12,75,235,252,25,83,61,12,178,134,75,92,124,56,71,63,232,35,142,23,11,179,154,25,17,254,160,55,0,28,144,253,91,117,102,221,190,135,231,10,70,30,23,176,0,0,1,176,4,8,133,150,0,255,79,159,83,83,77,46,180,197,95,161,141,13,44,47,253,61,176,86,148,52,201,148,194,126,246,155,165,78,181,18,73,32,28,45,70,221,101,80,78,20,6,206,130,30,219,0,30,251,237,127,232,113,255,107,248,25,147,2,185,140,224,224,189,152,101,89,28,152,47,182,88,216,198,90,3,213,0,64,150,89,96,5,18,73,32,18,105,56,170,112,129,132,77,233,15,190,8,58,109,254,217,232,164,181,91,34,227,8,27,140,83,141,186,71,175,110,91,83,37,82,15,247,58,112,134,42,42,18,3,0,8,18,196,44,5,18,73,32,25,234,135,27,145,161,76,95,163,44,124,140,151,13,189,174,93,108,80,63,112,61,88,28,46,219,213,65,40,74,243,69,108,141,37,80,21,72,191,2,50,88,122,3,0,0,10,36,146,64,54,170,52,196,80,163,79,142,148,81,36,46,131,66,255,221,26,128,73,23,103,49,192,55,30,59,219,161,166,249,122,141,88,62,36,228,107,116,158,14,252,92,103,226,0,0,20,73,36,128,113,105,27,109,199,165,26,100,240,30,8,113,124,175,175,166,144,115,74,138,80,24,32,117,28,206,194,21,85,40,218,254,177,100,37,127,63,131,208,68,250,76,169,40,0,0,0,0,0,0,0,95,208,40,5]).buffer};n={name:"ddplus-2.0-dash standard sample",profile:57,channels:2,sampleRate:48E3,duration:1536,xwa:new Uint8Array([11,119,0,191,52,134,255,224,4,32,24,132,33,46,136,15,236,128,165,150,32,161,69,16,65,66,33,0,160,224,136,32,48,40,56,176,233,159,62,203,176,139,218,213,221,58,124,249,83,239,245,26,179,232,106,97,174,75,74,149,104,85,223,38,74,253,242,95,253,47,117,10,116,228,206,145,61,126,153,83,169,201,146,214,124,251,202,125,62,3,184,113,105,44,145,91,107,58,206,87,7,170,74,27,187,48,217,65,241,1,161,157,113,91,21,163,111,51,104,115,118,123,44,77,110,247,112,43,8,73,76,172,73,150,207,95,153,3,182,105,124,66,2,0,118,237,94,135,88,83,124,41,205,76,76,109,131,40,166,169,150,166,233,51,26,43,143,131,162,201,227,35,146,30,46,75,41,1,28,21,124,91,11,74,112,106,170,137,88,102,81,122,90,108,154,41,64,72,81,74,40,176,29,246,45,81,141,178,47,68,210,113,129,217,48,217,176,77,157,147,211,28,106,174,210,66,110,190,228,106,249,236,107,188,90,91,41,31,191,71,149,201,40,136,209,138,100,91,53,25,18,245,27,148,208,18,20,81,70,24,7,147,116,48,233,47,145,81,32,242,74,51,50,138,85,186,6,202,227,8,169,201,206,77,68,201,80,186,57,179,90,232,234,208,230,109,96,154,4,249,38,86,153,185,81,45,38,146,243,73,117,105,140,5,34,48,227,11,10,32,130,14,49,4,40,131,127,229,199,232,95,78,126,229,243,175,254,117,124,233,83,154,239,93,63,195,190,120,247,107,232,10,68,177,11,22,24,32,66,4,99,231,207,159,7,124,241,174,215,192,0,0,0,0,0,0,0,0,0,0,84,40,187,227]).buffer};b.AP={standard:{"heaac-2-dash":a,"heaac-2hq-dash":a,"ddplus-5.1-dash":d,"ddplus-5.1hq-dash":d,"ddplus-2.0-dash":n},reset:{"heaac-2-dash":t,"heaac-2hq-dash":t},"heaac-2-dash":t,"heaac-2-dash-alt":a,"ddplus-5.1-dash":d,"ddplus-2.0-dash":n};},40755:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.b8a=b.g4a=void 0;d=a(22970);t=(function(n){function c(){var f;f=null !== n && n.apply(this,arguments) || this;f.OQ=1536;return f;}d.__extends(c,n);c.wd=!0;return c;})(a(70428).default);b["default"]=t;a=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="ac-3";return c;})(t);b.g4a=a;t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="ec-3";return c;})(t);b.b8a=t;},26856:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(){this.Lnc=this.N.cb(2);this.z9b=this.N.cb(5);this.A9b=this.N.cb(3);this.g5b=this.N.cb(3);this.N.cb(1);this.N.cb(5);this.N.cb(5);return !0;};c.ve="dac3";return c;})(a(72905).yf);b["default"]=t;},56226:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(93334);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){var e,h;this.N.cb(1);this.N.cb(7);this.nMb=this.N.cb(3);this.mMb=this.N.cb(5);this.oMb=this.N.cb(1);this.Zyb=this.N.cb(1);this.lQb=this.N.cb(1);this.LEb=this.N.cb(1);this.Qob=this.N.cb(1);this.Rob=this.N.cb(1);this.Pob=this.N.cb(2);this.N.cb(3);(this.MTa=this.N.cb(1))?this.Izb=this.N.cb(4):this.N.cb(4);if(null === g || void 0 === g?0:g.ih){for(var k=void 0,l=this.parent;l;){k=null === (h=null === (e=l.$m("tkhd")) || void 0 === e?void 0:e.Nc) || void 0 === h?void 0:h.trackId;if(void 0 !== k)break;l=l.parent;}(0,n.assert)(void 0 !== k,"trackId is undefined");g.ih[k].j5c={nMb:this.nMb,mMb:this.mMb,oMb:this.oMb,Zyb:this.Zyb,lQb:this.lQb,LEb:this.LEb,Qob:this.Qob,Rob:this.Rob,Pob:this.Pob,MTa:this.MTa,Izb:this.Izb};}return !0;};f.ve="av1C";return f;})(a(72905).yf);b["default"]=t;},18319:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(93334);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){var e,h,k;this.Acc=this.N.yd();this.jTb=this.N.yd();this.N.yd();this.N.yd();this.Myc=this.N.yd() & 3;this.Fwa=this.nJa(this.N.yd() & 31);this.yIb=this.nJa(this.N.yd());this.a1=this.Fwa.length?this.Fwa[0][1]:this.jTb;this.mkb=this.N.offset;this.startOffset + this.length < this.N.offset && (100 === this.a1 || 110 === this.a1 || 122 === this.a1 || 144 === this.a1) && (this.N.yd(),this.N.yd(),this.nJa(this.N.yd()));k=this.startOffset + this.length - this.mkb;0 < k && this.Rq(k,this.mkb);if(null === g || void 0 === g?0:g.ih){k=void 0;for(var l=this.parent;l;){k=null === (h=null === (e=l.$m("tkhd")) || void 0 === e?void 0:e.Nc) || void 0 === h?void 0:h.trackId;if(void 0 !== k)break;l=l.parent;}(0,n.assert)(void 0 !== k,"trackId is undefined");g.ih[k].l5c={Fwa:this.Fwa,yIb:this.yIb,a1:this.a1};}return !0;};f.prototype.nJa=function(g){var k;for(var e=[],h=0;h < g;++h){k=this.N.hg();e.push(this.N.mT(k));}return e;};f.ve="avcC";f.wd=!1;return f;})(a(72905).yf);b["default"]=t;},70428:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(72905);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){var e;e=c.prototype.parse.call(this,g);this.N.offset+=8;this.gMa=this.N.hg();this.T_a=this.N.hg();this.N.offset+=4;this.samplerate=this.N.hg();this.N.offset+=2;n.l && this.N.console.trace("MP4AudioSampleEntry: channelcount: " + this.gMa + ", samplesize: " + this.T_a + ", samplerate: " + this.samplerate);if(null === g || void 0 === g?0:g.Hf)(g.Hf.gMa=this.gMa,g.Hf.T_a=this.T_a,g.Hf.samplerate=this.samplerate);return e;};f.wd=!1;return f;})(a(71724).default);b["default"]=t;},29973:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(){this.Nc=this.eE([{y5c:"int32"},{maxBitrate:"int32"},{Qla:"int32"}]);return !0;};c.ve="btrt";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},72905:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.yf=b.l=void 0;d=a(93334);b.l=!1;t=(function(){function n(c,f,g,e,h){this.vc=c;this.type=f;this.byteOffset=g;this.byteLength=e;this.parent=h;this.Ie={};this.ES=e;}n.IG=function(c,f){var e,k;function g(l){l && l.IG && (l=l.IG(f),l.length && (e=e.concat(l)));}e=[];c.type === f && e.push(c);if(c.Ie)for(var h in c.Ie){k=c.Ie[h];Array.isArray(k) && k.forEach(g);}return e;};n.f7=function(c,f){void 0 === c.Ie[f.type] && (c.Ie[f.type]=[]);c.Ie[f.type].push(f);};n.$m=function(c,f){return n.IG(c,f)[0];};Object.defineProperties(n.prototype,{startOffset:{get:function(){return this.byteOffset;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{length:{get:function(){return this.byteLength;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{N:{get:function(){return this.vc;},enumerable:!1,configurable:!0}});n.prototype.gi=function(){var c;c=this.vc.$b();this.version=c >> 24;this.flags=c & 16777215;};n.prototype.f7=function(c){n.f7(this,c);};n.prototype.IG=function(c){return n.IG(this,c);};n.prototype.$m=function(c){return n.$m(this,c);};n.prototype.parse=function(){return !0;};n.prototype.HG=function(){return !0;};n.prototype.mt=function(c){if((c=this.Ie[c]) && Array.isArray(c) && 1 === c.length)return c[0];};n.prototype.Rq=function(c,f){f=void 0 === f?this.vc.offset:f;(0,d.assert)(f >= this.startOffset + 8 && f + c <= this.startOffset + this.ES,"Removal range [0x" + f.toString(16) + "-0x" + (f + c).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.ES).toString(16) + ")");this.vc.Rq(c,f,this);};n.prototype.rva=function(c,f,g){g=void 0 === g?this.vc.offset:g;(0,d.assert)(g >= this.startOffset + 8 && g + c <= this.startOffset + this.ES,"Removal range [0x" + g.toString(16) + "-0x" + (g + c).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.ES).toString(16) + ")");this.vc.rva(c,f,g,this);};n.prototype.EJb=function(c,f,g){if(1 < g){for(var e=[];0 < g--;)e.push(this.rkb(c,f));return e;}return this.rkb(c,f);};n.prototype.eE=function(c){var f,g;g=this;void 0 === f && (f={});c.forEach(function(e){var h,k;if("offset" === e.type){h=e.offset;if(0 < h % 8)throw Error("Requested offset " + e.offset + "is not an even byte multiple");g.vc.offset+=h / 8;}else for(h in e){k=e[h];f[h]="string" === typeof k?g.EJb(k):g.EJb(k.type,k.length,k.x7b);}});return f;};n.prototype.rkb=function(c,f){var g;g=this.byteLength - this.vc.offset + this.startOffset;"undefined" === typeof f && (f=g);switch(c){case "int8":c=this.vc.yd();break;case "int64":c=this.vc.cm();break;case "int32":c=this.vc.$b();break;case "int16":c=this.vc.hg();break;case "string":c=this.vc.PZa(Math.min(f,g));break;default:throw Error("Invalid type: " + c);}return c;};n.wd=!1;return n;})();b.yf=t;},53158:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(93334);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){var e,h,k,l,m,p;if("nclx" === this.N.rB()){k=this.N.hg();l=this.N.hg();m=this.N.hg();p=this.N.cb(1);this.N.cb(7);this.wpb={b6c:k,bed:l,dad:m,n8c:p};}if(null === g || void 0 === g?0:g.ih){k=void 0;for(l=this.parent;l;){k=null === (h=null === (e=l.$m("tkhd")) || void 0 === e?void 0:e.Nc) || void 0 === h?void 0:h.trackId;if(void 0 !== k)break;l=l.parent;}(0,n.assert)(void 0 !== k,"Failed to find trackId in track hierarchy");g=g.ih[k];if(!g)return !0;g.wpb=this.wpb;}return !0;};f.ve="colr";return f;})(a(72905).yf);b["default"]=t;},29043:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(f){var g,e,h;g=this.N.offset;e=this.N.hg();this.zrb=e >> 3;this.jEc=e & 7;this.bTc=[];for(e=0;e <= this.jEc;e++){h={Lnc:this.N.cb(2),z9b:this.N.cb(5),A9b:this.N.cb(5),g5b:this.N.cb(3),y$c:this.N.cb(1),KKb:this.N.cb(3),iEc:this.N.cb(4)};0 < h.iEc?h.P5c=this.N.cb(9):this.N.cb(1);this.bTc.push(h);}f && f.Osb && (f.Osb.zrb=this.zrb,2 <= this.byteLength - (this.N.offset - g) && (this.N.cb(7),g=this.N.cb(1),f.Osb.b5c=1 === g));return !0;};c.ve="dec3";return c;})(a(72905).yf);b["default"]=t;},96345:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(47887);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){this.gi();this.WVb=n.JAa.zJb(this.N,g);return !0;};f.ve="esds";f.wd=!1;return f;})(a(72905).yf);b["default"]=t;},96989:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(f){var g,e,h,k,l,m,p;l=null === (k=null === (h=null === (e=null === (g=this.parent) || void 0 === g?void 0:g.parent) || void 0 === e?void 0:e.$m("tkhd")) || void 0 === h?void 0:h.Nc) || void 0 === k?void 0:k.trackId;if("undefined" === typeof l)return !0;this.gi();g=this.N.$b();this.h9=[];for(e=0;e < g;e++){h=1 === this.version?this.N.cm():this.N.$b();k=1 === this.version?this.N.cm():this.N.$b();m=this.N.hg();p=this.N.hg();this.h9.push({Mcd:h,VBc:k,vad:m,uad:p});}if(null === f || void 0 === f || !f.ih || !f.ih[l])return !0;f.ih[l].h9=this.h9;return !0;};c.ve="elst";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},98776:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(){return !0;};c.ve="emeb";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},29770:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(f,g,e,h,k){return n.call(this,f,g,e,h,k) || this;}d.__extends(c,n);c.prototype.parse=function(){this.gi();this.N.$b();this.nJc=this.N.DJb();this.ZY=this.N.$b();4294967295 === this.ZY && (this.ZY=Infinity);this.id=this.N.$b();this.JM=this.N.PZa();this.value=this.N.PZa();this.BH=new Uint8Array(this.N.d1(this.length - (this.N.offset - this.startOffset)));return !0;};c.ve="emib";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},23471:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(f){n.prototype.parse.call(this,f);return !0;};c.ve="evte";c.wd=!0;return c;})(a(99520).default);b["default"]=t;},19234:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(){this.N.rB();this.N.rB();for(this.JMa=[];this.N.offset <= this.byteOffset + this.byteLength - 4;)this.JMa.push(this.N.rB());return !0;};c.ve="ftyp";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},89362:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(f){this.Fgc=this.N.rB();f && f.Hf && (f.Hf.VNc=this.Fgc);return !0;};c.ve="frma";return c;})(a(72905).yf);b["default"]=t;},28721:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(32296);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){var e,h,k,l,m;this.gi();this.Nc=this.eE([{Mbd:"int32"},{LSa:"int32"},{offset:96,type:"offset"},{name:"string"}]);this.Nc.LSa=(0,n.pJ)(this.Nc.LSa);if(g && g.ih){m=null === (l=null === (k=null === (h=null === (e=this.parent) || void 0 === e?void 0:e.parent) || void 0 === h?void 0:h.$m("tkhd")) || void 0 === k?void 0:k.Nc) || void 0 === l?void 0:l.trackId;"number" === typeof m && g.ih[m] && (g.ih[m].iD=this.Nc.LSa);}return !0;};f.ve="hdlr";f.wd=!1;return f;})(a(72905).yf);b["default"]=t;},87206:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(93334);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){var e,h,p;this.Bcc=this.N.cb(8);this.Snc=this.N.cb(2);this.Tnc=this.N.cb(1);this.Rnc=this.N.cb(5);this.Qnc=this.N.cb(32);this.Onc=this.N.cb(48);this.Pnc=this.N.cb(8);this.N.cb(4);this.ACc=this.N.cb(12);this.N.cb(6);this.LGc=this.N.cb(2);this.N.cb(6);this.kbc=this.N.cb(2);this.N.cb(5);this.j9b=this.N.cb(3);this.N.cb(5);this.i9b=this.N.cb(3);this.N8b=this.N.cb(16);this.Gcc=this.N.cb(2);this.hEc=this.N.cb(3);this.QTc=this.N.cb(1);this.Nyc=this.N.cb(2);if(null === g || void 0 === g?0:g.ih){for(var k=void 0,l=this.parent;l;){k=null === (h=null === (e=l.$m("tkhd")) || void 0 === e?void 0:e.Nc) || void 0 === h?void 0:h.trackId;if(void 0 !== k)break;l=l.parent;}(0,n.assert)(void 0 !== k,"trackId is undefined");g=g.ih[k];g.Tx={Acc:this.Bcc,u8c:this.Snc,v8c:this.Tnc,t8c:this.Rnc,s8c:this.Qnc,q8c:this.Onc,r8c:this.Pnc,Nad:this.ACc,xbd:this.LGc,S5c:this.kbc,s5c:this.j9b,r5c:this.i9b,o5c:this.N8b,h6c:this.Gcc,hbd:this.hEc,Cdd:this.QTc,Myc:this.Nyc};e=this.N.cb(8);for(h=0;h < e;h++){this.N.cb(1);this.N.cb(1);k=this.N.cb(6);l=this.N.cb(16);for(var m=0;m < l;m++){p=this.N.cb(16);p=this.N.mT(p);switch(k){case 32:g.Tx.TRb || (g.Tx.TRb=[]);g.Tx.TRb.push(p);break;case 33:g.Tx.pMb || (g.Tx.pMb=[]);g.Tx.pMb.push(p);break;case 34:g.Tx.OHb || (g.Tx.OHb=[]);g.Tx.OHb.push(p);break;case 39:case 40:(g.Tx.SOb || (g.Tx.SOb=[]),g.Tx.SOb.push(p));}}}}return !0;};f.ve="hvcC";return f;})(a(72905).yf);b["default"]=t;},97066:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(93334);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.HG=function(){var g;g=this.$m("esds");if(g=g && g.WVb.$m(5))((0,n.assert)(this.samplerate),this.OQ=g.OQ * this.samplerate / g.Pva);return !0;};f.ve="mp4a";f.wd=!0;return f;})(a(70428).default);b["default"]=t;},99520:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(f){n.prototype.parse.call(this,f);return !0;};return c;})(a(71724).default);b["default"]=t;},56122:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},71368:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(){this.gi();this.Nc=1 === this.version?this.eE([{creationTime:"int64"},{modificationTime:"int64"},{O:"int32"},{duration:"int64"}]):this.eE([{creationTime:"int32"},{modificationTime:"int32"},{O:"int32"},{duration:"int32"}]);return !0;};c.ve="mvhd";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},16530:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},45645:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(){this.gi();this.Nc=this.eE(1 === this.version?[{NQ:"int64"}]:[{NQ:"int32"}]);return !0;};c.ve="mehd";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},31025:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=a(75589);a=a(72905);n=t.TDa;a=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(){this.gi();this.Nc=this.eE([{ty:"int32"},{Hv:"int16"}]);return !0;};f.ve=n;f.wd=!1;return f;})(a.yf);b["default"]=a;},91056:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(75589);t=a(72905);c=n.UDa;t=(function(f){function g(){return null !== f && f.apply(this,arguments) || this;}d.__extends(g,f);g.prototype.parse=function(){this.gi();this.fileSize=this.N.cm();this.O=this.N.cm();this.duration=this.N.cm(!1,!0);this.CEc=this.N.cm();this.N.cm();this.GEc=this.N.cm();this.FDc=this.N.$b();this.DEc=this.N.cm();this.$mc=this.N.$b();this.N.fva();this.Ep={moof:{offset:this.CEc},sidx:{offset:this.DEc,size:this.$mc}};this.Ep[n.mcb]={offset:this.GEc,size:this.FDc};this.N.offset - this.startOffset <= this.length - 24 && (this.FEc=this.N.cm(),this.hDc=this.N.$b(),this.EEc=this.N.cm(),this.gDc=this.N.$b(),this.Ep[n.dia]={offset:this.FEc,size:this.hDc},this.Ep[n.cia]={offset:this.EEc,size:this.gDc});return !0;};g.ve=c;g.wd=!1;return g;})(t.yf);b["default"]=t;},64280:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=a(75589);a=a(72905);n=t.VDa;a=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(){var g,k,l;this.gi();1 <= this.version && this.N.fva();g=this.N.$b();this.Ep={};for(var e=this.startOffset + this.length,h=0;h < g;++h){k=this.N.rB();"uuid" === k && (k=this.N.fva());l=this.N.cm();this.Ep[k]={offset:e,size:l};e+=l;}return !0;};f.ve=n;f.wd=!1;return f;})(a.yf);b["default"]=a;},35503:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(f){this.Nc=this.eE([{Juc:"int32"},{ZWc:"int32"}]);if(null === f || void 0 === f?0:f.Hf)(f.Hf.a9c=this.Nc.Juc,f.Hf.Aed=this.Nc.ZWc);return !0;};c.ve="pasp";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},84379:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(75589);c=a(49420);f=a(70428);t=a(72905);g=a(41192);a=(function(e){function h(){return null !== e && e.apply(this,arguments) || this;}d.__extends(h,e);h.prototype.parse=function(){this.gi();this.yQ=this.N.$b();return !0;};h.prototype.HG=function(k){var l;l=Object.keys(this.Ie);l.length && (l=l[0],this.Ie[l].length && (l=this.Ie[l][0],l instanceof f.default?this.Ea=new c.I(l.OQ,l.samplerate):l instanceof g.default && (l=l.Ie[n.TDa]) && l.length && (l=l[0].Nc,1E3 !== l.Hv && 1001 !== l.Hv || 0 !== l.ty % 1E3?this.N.console.warn("Unexpected frame rate in NetflixFrameRateBox: " + l.ty + "/" + l.Hv):this.Ea=new c.I(l.Hv,l.ty)),k && this.Ea && (k.Ea=this.Ea)));return !0;};h.prototype.mKb=function(k){void 0 !== this.Ie[k] && 0 !== this.Ie[k].length && (this.vc.In(this.yQ - 1,this.byteOffset + 12),k=this.Ie[k][0],this.Rq(k.byteLength,k.byteOffset));};h.ve="stsd";h.wd=!0;return h;})(t.yf);b["default"]=a;},71724:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=a(72905);n=a(72905);a=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){this.N.offset+=6;this.N.hg();n.l && this.N.console.trace("VideoSampleEntry sampleEntryType: " + this.type);if(null === g || void 0 === g?0:g.Hf)g.Hf.VNc=this.type;return !0;};return f;})(t.yf);b["default"]=a;},41116:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(72905);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){this.gi();this.c0a=this.N.rB();n.l && this.N.console.trace("SchemeTypeBoxTranslator: " + this.c0a);if("cenc" === this.c0a){if((this.N.offset-=4,n.l && this.N.console.trace("SchemeTypeBoxTranslator: writing type piff at offset " + this.N.offset),this.vc.$3a("piff"),null === g || void 0 === g?0:g.Hf))g.Hf.Rkc="piff";}else if(null === g || void 0 === g?0:g.Hf)g.Hf.Rkc=this.c0a;this.N.$b();return !0;};f.ve="schm";f.wd=!1;return f;})(n.yf);b["default"]=t;},95797:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);n=a(26388);c=a(49420);t=(function(f){function g(){return null !== f && f.apply(this,arguments) || this;}d.__extends(g,f);g.prototype.HG=function(e){var h;if(e && e.Ea && !e.jGc && e.mediaType === n.u.X){h=this.mt("mdia");h && (h=h.mt("mdhd")) && h.O !== e.Ea.O && (e.Ea=new c.I(e.Ea).Kc(h.O));}return !0;};g.ve="trak";g.wd=!0;return g;})(a(72905).yf);b["default"]=t;},30717:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(f){var g,e,h,k,l;this.gi();g=this.eE([{B2:"int32"},{aOa:"int32"},{UC:"int32"},{VC:"int32"},{rG:"int32"}]);e=g.B2;h=g.aOa;k=g.UC;l=g.rG;g=g.VC;this.Nc={trackId:e,I6c:h,gna:k,J6c:l,K6c:g};(null === f || void 0 === f?0:f.ih) && f.ih[e] && (f.ih[e].aOa=h,f.ih[e].UC=k,f.ih[e].rG=l,f.ih[e].VC=g);this.B2=e;this.aOa=h;this.UC=k;this.VC=g;this.rG=l;return !0;};c.ve="trex";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},85571:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(f){var g;this.gi();g=1 === this.version?[{creationTime:"int64"},{modificationTime:"int64"},{trackId:"int32"},{offset:32,type:"offset"},{duration:"int64"}]:[{creationTime:"int32"},{modificationTime:"int32"},{trackId:"int32"},{offset:32,type:"offset"},{duration:"int32"}];g=g.concat({offset:64,type:"offset"},{v$c:"int16"},{Q4c:"int16"},{volume:"int16"},{offset:16,type:"offset"},{offset:288,type:"offset"},{width:"int32"},{height:"int32"});this.Nc=this.eE(g);this.Nc.Wdd=!!(this.flags & 1);this.Nc.Xdd=!!(this.flags & 2);this.Nc.Ydd=!!(this.flags & 4);this.Nc.Zdd=!!(this.flags & 8);if(null === f || void 0 === f?0:f.Hf)(f.Hf.width=this.Nc.width / 65536,f.Hf.height=this.Nc.height / 65536);f && f.ih && (f.ih[this.Nc.trackId]={});return !0;};c.ve="tkhd";c.wd=!1;return c;})(a(72905).yf);b["default"]=t;},70179:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.R5=void 0;d=a(22970);n=a(81969);c=a(93334);f=a(66988);t=(function(g){function e(h,k,l,m,p){h=g.call(this,h,k,l,m,p) || this;h.Gna=!1;return h;}d.__extends(e,g);e.wLb=function(h){return (h & 50331648) >>> 24;};e.xLb=function(h){return !!((h & 65536) >>> 16);};Object.defineProperties(e.prototype,{yrb:{get:function(){return !!(this.flags & 1);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{M9:{get:function(){return !!(this.flags & 4);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{E1:{get:function(){return !!(this.flags & 256);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{F1:{get:function(){return !!(this.flags & 512);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Ova:{get:function(){return !!(this.flags & 1024);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Mva:{get:function(){return !!(this.flags & 2048);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Wmc:{get:function(){return this.Mva?(this.N.offset=this.jA + this.IM - 4,0 === this.version?this.N.$b():this.N.nda()):0;},enumerable:!1,configurable:!0}});e.prototype.parse=function(h){var k,l,m;this.gi();this.xLa=this.N.offset;this.Nd=this.N.$b();this.el=this.yrb?this.N.nda():0;this.ZPa=this.M9?this.N.$b():void 0;this.IM=(this.E1?4:0) + (this.F1?4:0) + (this.Ova?4:0) + (this.Mva?4:0);this.jA=this.N.offset;(0,c.assert)(this.yrb,"Expected data offset to be present in Track Run");(0,c.assert)(this.length - (this.N.offset - this.startOffset) === this.Nd * this.IM,"Expected remaining data in box to be sample information");if(h && h.La){h.La.el=this.el;h.La.Nd=this.Nd;this.rl=[];m=null === (l=null === (k=this.parent) || void 0 === k?void 0:k.$m("tfhd")) || void 0 === l?void 0:l.B2;for(k=0;k < this.Nd;k++)(l={},this.E1?l.D1=this.N.$b():h.La.UC?l.D1=h.La.UC:m && h.ih && h.ih[m] && (l.D1=h.ih[m].UC),this.F1?l.eI=this.N.$b():h.La?l.eI=h.La.VC:m && h.ih && h.ih[m] && (l.eI=h.ih[m].VC),this.Ova?l.Nva=this.N.$b():h.La?l.Nva=h.La.rG:m && h.ih && h.ih[m] && (l.Nva=h.ih[m].rG),this.Mva && (l.YNc=0 === this.version?this.N.$b():this.N.nda()),0 === k && this.M9 && (l.Nva=this.ZPa),this.rl.push(l));h.La.rl=this.rl;if(h.La.HT)for(((0,c.assert)(h.La.HT.length === h.La.rl.length,("num fragment samples: ").concat(h.La.rl.length,", ") + ("num samples in auxiliary info: ").concat(h.La.HT.length)),m=0);m < h.La.rl.length;m++)(h.La.rl[m].RBa=h.La.HT[m].RBa,h.La.rl[m].V1a=h.La.HT[m].V1a);}return !0;};e.prototype.Bka=function(h,k,l){var m,p,r;m=this.E1?this.N.$b():h.UC;p=this.F1?this.N.$b():h.VC;h=this.Ova?this.N.$b():h.rG;r=this.Mva?0 === this.version?this.N.$b():this.N.nda():0;return {XNc:r,Nva:h,eI:p,D1:m,Sbd:(l || 0) + r - (void 0 !== k?k:r)};};e.prototype.UKc=function(h){(0,c.assert)(void 0 !== this.el);(0,c.assert)(void 0 !== this.jA);(0,c.assert)(void 0 !== this.Nd);(0,c.assert)(void 0 !== this.IM);if(!this.F1)return Array.from({length:this.Nd},function(){return h.VC;});for(var k=[],l=this.jA + (this.E1?4:0),m=0;m < this.Nd;(++m,l+=this.IM))k.push(this.N.view.getUint32(l,!1));return k;};e.prototype.QKc=function(){var h,m;(0,c.assert)(void 0 !== this.el);(0,c.assert)(void 0 !== this.jA);(0,c.assert)(void 0 !== this.Nd);(0,c.assert)(void 0 !== this.IM);h=[];if(this.Ova)for(var k=this.jA + (this.E1?4:0) + (this.F1?4:0),l=0;l < this.Nd;(++l,k+=this.IM)){m=this.N.view.getUint32(k,!1);2 !== e.wLb(m) && e.xLb(m) || h.push(l);}else !this.M9 || 2 !== e.wLb(this.ZPa) && e.xLb(this.ZPa) || h.push(0);return h;};e.prototype.pa=function(h,k,l,m,p,r,q){var u,v,w,x;(0,c.assert)(void 0 !== this.el);(0,c.assert)(void 0 !== this.jA);(0,c.assert)(void 0 !== this.xLa);(0,c.assert)(void 0 !== this.Nd);(0,c.assert)(void 0 !== h.Uz);u=0;v=0;this.vc.offset=this.jA;for(m=0;m < p;++m){w=this.Bka(k,x,v);if(0 === m)x=w.XNc;u+=w.eI;v+=w.D1;}m=p;p=this.N.offset;w=this.Bka(k,x,v);this.e_a=q;this.U1=m;this.JNb=v;if(q){if((this.rKb=this.el + u,this.m1=0,m === this.Nd))return !0;}else if((this.rKb=this.el,this.m1=u,0 === m))return !0;if(0 === m || m === this.Nd)return !1;this.Gna=!0;if(q){this.m1+=w.eI;for(q=m + 1;q < this.Nd;++q)(w=this.Bka(k,x,v),this.m1+=w.eI);this.vc.offset=this.xLa;this.Nd=m;this.vc.In(this.Nd);this.vc.c4a(r);this.M9 && (this.N.offset+=4);this.Rq(this.length - (p - this.startOffset),p);}else (k=p - this.jA,this.jA=p,this.vc.offset=this.xLa,this.Nd-=m,this.vc.In(this.Nd),this.el+=u,this.vc.c4a(r,this.el),this.M9 && (this.N.offset+=4),this.Rq(k,this.vc.offset));null === l || void 0 === l?void 0:l.Rq(this.m1,h.Uz + this.rKb);return !0;};e.prototype.KCc=function(h,k,l,m,p,r,q,u){var v,x,y,A,z;void 0 === q && (q=!1);(0,c.assert)(void 0 !== this.el);(0,c.assert)(void 0 !== this.jA);(0,c.assert)(void 0 !== this.Nd);(0,c.assert)(void 0 !== this.IM);(0,c.assert)(void 0 !== h.Uz);for(var w=m.length;w < this.Nd;++w)m[w]=m[w - 1];m.some(function(B){return 0 >= B;}) && (x=null === (v=this.K2b(p,r)) || void 0 === v?void 0:v.xwa);this.N.offset=this.jA;h=h.Uz + this.el;p=-1 !== p.indexOf("xheaac")?"xheaac":-1 !== p.indexOf("heaac")?"aac":"ddp";r=new Uint8Array(this.N.view.buffer,this.N.view.byteOffset,this.N.view.byteLength);for(w=0;w < this.Nd;++w){v=this.Bka(k).eI;if(-Infinity === m[w]){if(x && this.F1){l.rva(v,x,h);y=this.IM - (this.E1?4:0);this.vc.offset-=y;this.vc.In(x.byteLength);this.vc.offset+=y - 4;}}else if(0 > m[w])try{A=r.subarray(h,h + v);z=(0,n.Slc)({Xc:p,frame:A,WF:m[w],ET:q,cS:u}).Cnc;z !== v && this.N.console.error(("TrackRunBoxEditor: parse frame size error ").concat(z," should be ").concat(v));}catch(B){this.N.console.error(("TrackRunBoxEditor: fadeFrame error: ").concat(B.message," ").concat(B.stack));}h+=v;}};e.prototype.K2b=function(h,k){if("string" === typeof k)return ((0,c.assert)("reset" !== k && "standard" !== k),f.AP[k]);if(void 0 !== h)return k?f.AP.reset[h] || f.AP.standard[h]:f.AP.standard[h];};e.ve="trun";e.wd=!1;return e;})(a(72905).yf);b.R5=t;},41192:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.n4a=b.v7a=b.z9a=b.M9a=b.r4a=b.q4a=b.p4a=b.o4a=void 0;d=a(22970);t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.prototype.parse=function(f){n.prototype.parse.call(this,f);this.Nc=this.eE([{offset:16,type:"offset"},{offset:16,type:"offset"},{offset:96,type:"offset"},{width:"int16"},{height:"int16"},{s9c:"int32"},{Bed:"int32"},{offset:32,type:"offset"},{f8c:"int16"},{d6c:{type:"int8",x7b:32}},{depth:"int16"},{offset:16,type:"offset"}]);if(null === f || void 0 === f?0:f.Hf)(f.Hf.width=this.Nc.width,f.Hf.height=this.Nc.height);return !0;};c.wd=!0;return c;})(a(71724).default);b["default"]=t;a=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="avc1";return c;})(t);b.o4a=a;a=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="avc2";return c;})(t);b.p4a=a;a=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="avc3";return c;})(t);b.q4a=a;a=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="avc4";return c;})(t);b.r4a=a;a=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="hvc1";return c;})(t);b.M9a=a;a=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="hev1";return c;})(t);b.z9a=a;a=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="dvhe";return c;})(t);b.v7a=a;t=(function(n){function c(){return null !== n && n.apply(this,arguments) || this;}d.__extends(c,n);c.ve="av01";return c;})(t);b.n4a=t;},25564:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.r3=void 0;d=a(22970);n=a(72905);c=a(32296);t=(function(f){function g(e,h,k,l,m){k=f.call(this,k,l,m) || this;k.r9b=e;k.b2=h;k.Ie={};return k;}d.__extends(g,f);g.prototype.parse=function(e){var h,k,l,m,p,r;this.offset=0;h=[];for(e=e || ({});this.offset < this.view.byteLength && !(8 > this.view.byteLength - this.offset);){k=this.offset;l=this.$b();if(0 === l)return {done:!1,offset:this.offset,error:"Invalid zero-length box"};m=(0,c.pJ)(this.$b());if(null === m)return {done:!1,offset:this.offset,error:"Invalid box type"};if("uuid" === m){if(16 > this.view.byteLength - this.offset)break;m=this.fva();}if(0 === h.length && this.b2.mvb(m,k,l)){this.offset=k;break;}if(k + l > this.view.byteLength){this.offset=k;break;}p=this.r9b[m];r=void 0;if(p){if((r=new p(this,m,k,l,h[0]),(h[0] || this).f7(r),r.parse(e)))this.config.bua && p.wd?h.unshift(r):this.offset=k + l;else return {done:!1,offset:this.offset,error:"parse error in " + m + " box"};}else this.offset=k + l;for(;h.length && this.offset > h[0].byteOffset + h[0].ES - 8;){r=h.shift();if(!r.HG(e))return {done:!1,offset:this.offset,error:"finalize error in " + r.type + " box"};this.offset=r.byteOffset + r.ES;}if(0 === h.length && this.b2.ysb(m,k,l,r))break;}return !this.b2.done && (e=this.b2.endOffset?this.b2.endOffset - this.view.byteLength:4096,0 < e)?{done:!1,offset:this.offset,XEb:e}:{done:!0,offset:Math.min(this.b2.endOffset || Infinity,this.offset)};};g.prototype.f7=function(e){n.yf.f7(this,e);};return g;})(a(56445).pib);b.r3=t;},2050:function(t){var d,n;function b(){var c,f;if(DataView.prototype && DataView.prototype.Q$ && !n){try{c=new ArrayBuffer(4);f=new DataView(c);f.RZ(0,4,1);}catch(g){return;}try{c=new ArrayBuffer(4);f=new DataView(c);f.RZ(1,2,2);}catch(g){DataView.prototype.RZ=a(DataView.prototype.RZ,DataView.prototype.getUint8,Uint8Array);DataView.prototype.Hpa=a(DataView.prototype.Hpa,DataView.prototype.getUint16,Uint16Array);DataView.prototype.Q$=a(DataView.prototype.Q$,DataView.prototype.getUint32,Uint32Array);DataView.prototype.kRa=a(DataView.prototype.kRa,DataView.prototype.getInt8,Int8Array);DataView.prototype.iRa=a(DataView.prototype.iRa,DataView.prototype.getInt16,Int16Array);DataView.prototype.jRa=a(DataView.prototype.jRa,DataView.prototype.getInt32,Int32Array);}d.btc=function(g,e,h,k,l){return h?g.RZ(e,h,k || 1,l):new Uint8Array(0);};d.$sc=function(g,e,h,k,l){return h?g.Hpa(e,h,k || 2,l):new Uint16Array(0);};d.atc=function(g,e,h,k,l){return h?g.Q$(e,h,k || 4,l):new Uint32Array(0);};d.J8c=function(g,e,h,k,l){return h?g.kRa(e,h,k || 1,l):new Int8Array(0);};d.H8c=function(g,e,h,k,l){return h?g.iRa(e,h,k || 2,l):new Int16Array(0);};d.I8c=function(g,e,h,k,l){return h?g.jRa(e,h,k || 4,l):new Int32Array(0);};n=!0;}}function a(c,f,g){return function(e,h,k,l){var m;k=k || g.BYTES_PER_ELEMENT;if(e + h * k > this.byteLength){m=new g(h);m.set(c.call(this,e,h - 1,k,l));m[h - 1]=f.call(this,e + (h - 1 * k),l);return m;}return c.call(this,e,h,k,l);};}d={RZ:function(c,f,g,e,h){var k;k=new Uint8Array(g);e=e || 1;for(var l=0;l < g;(++l,f+=e))k[l]=c.getUint8(f,h);return k;},Hpa:function(c,f,g,e,h){var k;k=new Uint16Array(g);e=e || 2;for(var l=0;l < g;(++l,f+=e))k[l]=c.getUint16(f,h);return k;},Q$:function(c,f,g,e,h){var k;k=new Uint32Array(g);e=e || 4;for(var l=0;l < g;(++l,f+=e))k[l]=c.getUint32(f,h);return k;},kRa:function(c,f,g,e,h){var k;k=new Int8Array(g);e=e || 1;for(var l=0;l < g;(++l,f+=e))k[l]=c.getInt8(f,h);return k;},iRa:function(c,f,g,e,h){var k;k=new Int16Array(g);e=e || 2;for(var l=0;l < g;(++l,f+=e))k[l]=c.getInt16(f,h);return k;},jRa:function(c,f,g,e,h){var k;k=new Int32Array(g);e=e || 4;for(var l=0;l < g;(++l,f+=e))k[l]=c.getInt32(f,h);return k;},M7c:b};n=!1;d.rpc=function(){return n;};b();t.exports=d;},59909:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.iAa=void 0;d=a(22970);n=a(72905);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){var e;this.ota=this.N.yd();e=this.N.yd();this.N1a=e >>> 2;this.e3a=e >>> 1 & 1;this.FLa=256 * this.N.hg() + this.N.yd();this.maxBitrate=this.N.$b();this.Qla=this.N.$b();n.l && this.N.console.trace("DecoderConfigDescriptor: objectTypeIndication= 0x" + this.ota.toString(16) + ", streamType=" + this.N1a + ", upStream=" + this.e3a + ", bufferSizeDB=" + this.FLa + ", maxBitrate=" + this.maxBitrate + ", avgBitrate=" + this.Qla);if(null === g || void 0 === g?0:g.Pl)(g.Pl.ota=this.ota,g.Pl.N1a=this.N1a,g.Pl.e3a=this.e3a,g.Pl.FLa=this.FLa,g.Pl.maxBitrate=this.maxBitrate,g.Pl.Qla=this.Qla);this.qkb(g);return !0;};f.tag=4;return f;})(a(91578).eha);b.iAa=t;},27364:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.A7a=void 0;d=a(22970);n=a(72905);t=a(91578);c=a(47887);a=(function(f){function g(){return null !== f && f.apply(this,arguments) || this;}d.__extends(g,f);g.prototype.eva=function(){var e;e=this.N.cb(4);return 15 !== e?[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350][e]:this.N.cb(24);};g.prototype.parse=function(e,h){if(this.Awc(h) && 64 === h.ota){if(null === e || void 0 === e?0:e.Pl){h=this.N.ewb(this.length);for(var k=new ArrayBuffer(this.length),l=new Uint8Array(k),m=0;m < this.length;m++)l[m]=h.getUint8(m);e.Pl.H6c=k;}h=this.N.offset;this.xv=this.NZa();this.Pva=this.eva();this.fMa=this.N.cb(4);this.U_a=this.$Y=5 === this.xv || 29 === this.xv?5:-1;this.Xua=29 === this.xv?1:-1;0 < this.$Y && (this.B9=this.eva(),this.xv=this.NZa(),22 === this.xv && (this.koa=this.N.cb(4)));switch(this.xv){case 1:case 2:case 3:case 4:case 6:case 7:case 17:case 19:case 20:case 21:case 22:case 23:(this.T9=this.N.cb(1),this.jNa=(this.Khc=this.N.cb(1))?this.N.cb(14):void 0,this.N.cb(1),this.OQ=3 === this.xv?256:23 === this.xv?this.T9?480:512:this.T9?960:1024);}l=8 * (this.length - (this.N.offset - h)) + this.N.ke;5 !== this.$Y && 16 <= l && (l=this.N.cb(11),695 === l && (k=this.NZa(),5 === k && (l=this.N.cb(1),1 === l && (this.B9=this.eva(),l=8 * (this.length - (this.N.offset - h)) + this.N.ke,12 <= l && (l=this.N.cb(11),1352 === l && (this.Xua=this.N.cb(1))))),22 === k && (l=this.N.cb(1),1 === l && (this.B9=this.eva()),this.koa=this.N.cb(4))));n.l && this.N.console.trace("AudioSpecificConfig: audioObjectType=" + this.xv + ", samplingFrequency=" + this.Pva + ", channelConfiguration=" + this.fMa + ", extensionAudioObjectType=" + this.$Y + ", sbrPresentFlag=" + this.U_a + ", psPresentFlag=" + this.Xua + ", extensionSamplingFrequency=" + this.B9 + ", extensionChannelConfiguration=" + this.koa + ", frameLengthFlag=" + this.T9 + ", coreCoderDelay=" + this.jNa + ", frameLength=" + this.OQ);if(null === e || void 0 === e?0:e.Pl)(e.Pl.xv=this.xv,e.Pl.Pva=this.Pva,e.Pl.fMa=this.fMa,e.Pl.$Y=this.$Y,e.Pl.U_a=this.U_a,e.Pl.Xua=this.Xua,e.Pl.B9=this.B9,e.Pl.koa=this.koa,e.Pl.T9=this.T9,e.Pl.jNa=this.jNa,e.Pl.OQ=this.OQ);}this.skip();return !0;};g.prototype.NZa=function(){var e;e=this.N.cb(5);31 === e && (e=32 + this.N.cb(6));return e;};g.prototype.Awc=function(e){return e.tag === c.iAa.tag;};g.tag=5;return g;})(t.eha);b.A7a=a;},91578:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.eha=void 0;d=a(22970);n=a(47887);t=(function(){function c(f,g,e){this.tag=f;this.view=g;this.N=e;this.startOffset=e.offset;}c.zJb=function(f,g,e){var h,k;h=f.yd();k=f.RKc();f=new (n.bQ[h] || c)(h,f.ewb(k),f);f.parse(g,e);return f;};Object.defineProperties(c.prototype,{length:{get:function(){return this.view.byteLength;},enumerable:!1,configurable:!0}});c.prototype.parse=function(){this.N.offset=this.startOffset + this.length;this.N.ke=0;return !0;};c.prototype.xub=function(f){var g,h;g=[];this.tag === f && g.push(this);if(this.bQ)for(var e=0;e < this.bQ.length;e++){h=this.bQ[e];g=d.__spreadArray(d.__spreadArray([],g,!0),h.xub(f),!0);}return g;};c.prototype.$m=function(f){for(f=this.xub(f);0 < f.length;)return f[0];};c.prototype.qkb=function(f){for(this.bQ=[];this.N.offset < this.startOffset + this.length;)this.bQ.push(c.zJb(this.N,f,this));};return c;})();b.eha=t;t.prototype.skip=t.prototype.parse;},47887:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.bQ=void 0;t=a(22970);t.__exportStar(a(91578),b);t.__exportStar(a(48823),b);t.__exportStar(a(59909),b);t.__exportStar(a(27364),b);t=a(59909);d=a(27364);a=a(48823);b.bQ={3:a.JAa,4:t.iAa,5:d.A7a};},48823:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.JAa=void 0;d=a(22970);n=a(72905);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.parse=function(g){var e;this.XVb=this.N.hg();e=this.N.yd();this.vOb=!!(e & 128);this.Vhb=!!(e & 64);this.Ncb=!!(e & 32);this.FSc=e & 31;this.Lhc=this.vOb?this.N.hg():void 0;this.Vhb && this.N.mT(this.N.yd());this.dZb=this.Ncb?this.N.hg():void 0;n.l && this.N.console.trace("ESDescriptor: ES_ID=" + this.XVb + ", streamDependenceFlag=" + this.vOb + ", URL_Flag=" + this.Vhb + ", OCRstreamFlag=" + this.Ncb + ", streamPriority=" + this.FSc + ", dependsOn_ES_ID=" + this.Lhc + ", OCR_ES_Id=" + this.dZb);this.qkb(g);return !0;};f.tag=3;return f;})(a(91578).eha);b.JAa=t;},91562:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q,u,v,w;Object.defineProperties(b,{__esModule:{value:!0}});b.zja=b.fja=b.H5=b.gW=b.jia=b.QV=b.u=b.AP=b.gja=b.nHa=b.yVb=b.R5=b.Chb=b.Dhb=b.Mbb=b.pJ=b.$I=b.S4=b.l5=b.E_=b.nz=b.mz=b.um=void 0;t=a(98516);d=a(2050);b.yVb=d;d=a(24500);b.nHa=d;d=a(66988);b.AP=d;b.gja=t.b0.Ie.sidx;n=a(43607);Object.defineProperties(b,{um:{enumerable:!0,get:function(){return n.um;}}});c=a(87349);Object.defineProperties(b,{mz:{enumerable:!0,get:function(){return c.mz;}}});f=a(66789);Object.defineProperties(b,{nz:{enumerable:!0,get:function(){return f.nz;}}});Object.defineProperties(b,{E_:{enumerable:!0,get:function(){return f.E_;}}});g=a(72978);Object.defineProperties(b,{l5:{enumerable:!0,get:function(){return g.l5;}}});e=a(47407);Object.defineProperties(b,{S4:{enumerable:!0,get:function(){return e.S4;}}});h=a(35982);Object.defineProperties(b,{$I:{enumerable:!0,get:function(){return h.$I;}}});k=a(32296);Object.defineProperties(b,{pJ:{enumerable:!0,get:function(){return k.pJ;}}});l=a(98516);Object.defineProperties(b,{Mbb:{enumerable:!0,get:function(){return l.Mbb;}}});Object.defineProperties(b,{Dhb:{enumerable:!0,get:function(){return l.Dhb;}}});Object.defineProperties(b,{Chb:{enumerable:!0,get:function(){return l.Chb;}}});m=a(70179);Object.defineProperties(b,{R5:{enumerable:!0,get:function(){return m.R5;}}});p=a(61049);Object.defineProperties(b,{u:{enumerable:!0,get:function(){return p.u;}}});r=a(11526);Object.defineProperties(b,{QV:{enumerable:!0,get:function(){return r.QV;}}});q=a(80735);Object.defineProperties(b,{jia:{enumerable:!0,get:function(){return q.jia;}}});u=a(42328);Object.defineProperties(b,{gW:{enumerable:!0,get:function(){return u.gW;}}});Object.defineProperties(b,{H5:{enumerable:!0,get:function(){return u.H5;}}});v=a(51061);Object.defineProperties(b,{fja:{enumerable:!0,get:function(){return v.fja;}}});w=a(44248);Object.defineProperties(b,{zja:{enumerable:!0,get:function(){return w.zja;}}});},47407:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.S4=void 0;d=a(22970);t=a(87349);n=a(89931);a=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.pa=function(g){var e,h,k,l;e=this;if(!this.parse().done)return !1;h=this.Ie.moov;if(!h || 0 === h.length)return !1;k=h[0].$m("tenc");if(!k)return !1;l=new Uint8Array(k.NA);g.forEach(function(m){for(var p=m.from,r=!0,q=0;q < p.length;q++)if(l[q] !== p[q]){r=!1;break;}r && e.Le.rva(m.from.length,m.to,k.OUa);});return (0,n.concat)(this.Le.pa().La);};return f;})(t.mz);b.S4=a;},61049:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.u=void 0;d=a(26388);Object.defineProperties(b,{u:{enumerable:!0,get:function(){return d.u;}}});},98516:function(t,b,a){var D,F,H,E,G,J,L,K,M,P,I,O,Q,T,U,X,Y,W,Z,aa,ca,da,ha,S,N,V,ba,fa,ia,ka,pa,oa,la,R,ea,ja,sa,ta,qa,Aa,Ga;function d(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function n(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function c(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function f(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);this.n1a=na.config.n1a;this.fg=this.sizes=void 0;}function g(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function e(){for(var na=new DataView(this),va="",xa,ra=0;ra < this.byteLength;ra++)(xa=na.getUint8(ra),va+=("00" + xa.toString(16)).slice(-2));return va;}function h(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function k(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function l(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function m(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function p(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function r(na){function va(xa,ra,ya,Ca,Ja){E.call(this,xa,ra,ya,Ca,Ja);this.sDc=na;}va.wd=!1;va.prototype=new E();va.prototype.constructor=va;Object.defineProperties(va.prototype,{u7a:{get:function(){return this.sDc;}}});va.prototype.parse=function(){this.N.offset=this.startOffset + 4;this.vc.$3a(this.u7a);this.type=this.u7a;return !0;};return va;}function q(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function u(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function v(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function w(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function x(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function y(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function A(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function z(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function B(na,va,xa,ra,ya){E.call(this,na,va,xa,ra,ya);}function C(na,va){na.forEach(function(xa){va[xa.ve]=xa;});}D=a(93334).assert;b=a(75589);F=a(49420).I;H=a(24500);a(2050);a(32296);a(32296);a(32296);E=a(72905).yf;G=a(71368)["default"];J=a(95797)["default"];L=a(85571)["default"];K=a(45645)["default"];M=a(35503)["default"];P=a(29973)["default"];I=a(19234)["default"];O=a(28721)["default"];Q=a(84379)["default"];a(71724);a(70428);T=a(40755).g4a;U=a(40755).b8a;X=a(26856)["default"];Y=a(29043)["default"];W=a(41192)["default"];Z=a(41192).o4a;aa=a(41192).p4a;ca=a(41192).q4a;da=a(41192).r4a;ha=a(41116)["default"];S=a(18319)["default"];N=a(56226)["default"];V=a(87206)["default"];ba=a(41192).M9a;fa=a(41192).z9a;ia=a(41192).v7a;ka=a(41192).n4a;pa=a(97066)["default"];oa=a(96345)["default"];la=a(31025)["default"];R=a(91056)["default"];ea=a(64280)["default"];a(91578);a(59909);a(27364);a(48823);ja=a(30717)["default"];sa=a(70179).R5;ta=a(89362)["default"];qa=a(96989)["default"];Aa=a(23471)["default"];Ga=a(16530)["default"];a=a(53158)["default"];d.wd=!0;d.prototype=new E();d.prototype.constructor=d;n.wd=!0;n.prototype=new E();n.prototype.constructor=n;c.wd=!1;c.prototype=new E();c.prototype.constructor=c;c.prototype.parse=function(na){var va;this.gi();1 === this.version?(this.N.cm(),this.N.cm(),this.O=this.N.$b(),this.duration=this.N.cm()):(this.N.$b(),this.N.$b(),this.O=this.N.$b(),this.duration=this.N.$b());va=this.N.hg() & 32767;this.language=String.fromCharCode(96 + (va >>> 10),96 + (va >>> 5 & 31),96 + (va & 31));na && na.Hf && (na.Hf.O=this.O,na.Hf.duration=this.duration);return !0;};f.wd=!1;f.prototype=new E();f.prototype.constructor=f;f.prototype.V3b=function(){this.gi();this.N.$b();this.O=this.N.$b();0 === this.version?(this.Nsb=this.N.$b(),this.Vub=this.N.$b()):(this.Nsb=this.N.cm(),this.Vub=this.N.cm());this.KKb=this.N.hg();this.UJb=this.N.hg();};f.prototype.a2b=function(na,va){var xa,ra,ya;xa=this.O;na=na && na.O || xa;ra=na / xa;xa=this.N.dva(va,12,!1);ya=1 === ra?this.N.dva(va,12,!1):H.from(Uint32Array,{length:va},function(){var Ca;Ca=Math.round(this.N.$b() * ra);this.N.offset+=8;return Ca;},this);this.L4b(va,ya,xa,na);};f.prototype.L4b=function(na,va,xa,ra){if(this.n1a){ra=this.n1a * ra / 1E3;for(var ya=0,Ca=1;Ca < na;Ca++)Math.abs(va[ya] - ra) > Math.abs(va[ya] + va[Ca] - ra)?(va[ya]+=va[Ca],xa[ya]+=xa[Ca]):(++ya,ya !== Ca && (va[ya]=va[Ca],xa[ya]=xa[Ca]));++ya;va=new Uint32Array(va.buffer.slice(0,4 * ya));xa=new Uint32Array(xa.buffer.slice(0,4 * ya));}this.sizes=xa;this.fg=va;};f.prototype.parse=function(na){var va,xa,ra,ya;this.V3b();this.Ea=na.Ea;va=this.O;xa=this.Ea && this.Ea.O || va;ra=this.UJb;ya=this.startOffset + this.length + this.Vub;va=new F(this.Nsb,va).Kc(xa).$;this.Qa={O:xa,Iu:va,offset:ya};this.a2b(this.Ea,ra);this.Qa.fg=this.fg;this.Qa.sizes=this.sizes;na.Ao=this;return !0;};g.wd=!1;g.prototype=new E();g.prototype.constructor=g;g.prototype.parse=function(){var na;this.DE=[];this.JHc=[];na=(this.length - 11) / 2;this.N.yd();this.N.yd();this.N.yd();for(var va=0;va < na;va++)(this.DE.push(this.N.yd()),this.JHc.push(this.N.yd()));return !0;};h.wd=!1;h.prototype=new E();h.prototype.constructor=h;h.prototype.parse=function(na){var va;this.gi();this.N.offset+=1;if(0 == this.version)this.N.offset+=1;else {va=this.N.yd();this.vhc=va >> 4;this.Ahc=va & 15;na && na.Hf && (na.Hf.M6c=this.vhc,na.Hf.P6c=this.Ahc);}this.Orb=this.N.yd();this.Nrb=this.N.yd();this.OUa=this.N.offset;this.NA=this.N.d1(16);this.NA.toString=e;na && na.Hf && (na.Hf.N6c=this.Orb,na.Hf.xhc=this.Nrb,na.Hf.O6c=this.NA);1 == this.Orb && 0 == this.Nrb && (this.uhc=this.N.yd(),this.thc=this.N.d1(this.uhc),na && na.Hf && (na.Hf.whc=this.thc));return !0;};k.wd=!1;k.prototype=new E();k.prototype.constructor=k;k.prototype.parse=function(){this.gi();this.Mv=this.N.hg();this.MBc=this.N.dva(this.Mv,void 0,!0);return !0;};l.wd=!1;l.prototype=new E();l.prototype.constructor=l;l.prototype.parse=function(na){var va,xa,ra,ya,Ca,Ja;va=na.Ao;D(va);na=na.Ea;xa=va.O;va=va.UJb;D(na);D(xa);D(va);this.gi();D(2 > this.version);this.Mv=this.N.hg();this.T0=new Uint16Array(va + 1);ra=na.dyb(xa);ya=ra / xa;Ca=na.Kc(ra).$;if(0 === this.version)for((this.C1=new Uint16Array(),this.If=new Uint32Array(),na=xa=0);na <= va;++na){if((this.T0[na]=xa,na < this.Mv)){Ja=this.N.yd();if(0 !== Ja)for(ra=0;ra < Ja;(++ra,++xa))(this.C1[xa]=Math.floor((this.N.$b() + 1) * ya) / Ca,this.If[xa]=this.N.$b());}}else if(1 === this.version)for((ra=this.N.NKc(this.Mv),this.N.offset+=4,this.If=this.N.dva(this.Mv,10,!1),this.N.offset-=8,this.C1=H.from(Uint16Array,{length:this.Mv},function(){var Ka;Ka=Math.floor((this.N.$b() + 1) * ya) / Ca;this.N.offset+=6;return Ka;},this),xa=na=0);na <= va;++na){for(;xa < ra.length && ra[xa] < na;)++xa;this.T0[na]=xa;}this.Jm={T0:this.T0,C1:this.C1,If:this.If};return !0;};m.wd=!0;m.prototype=Object.create(d.prototype);m.prototype.constructor=m;p.wd=!0;p.prototype=Object.create(d.prototype);p.prototype.constructor=p;p.prototype.HG=function(){var na;na=this.mt("tfhd");na && (this.Uz=na.wnb?na.Uz:this.parent.startOffset);return !0;};q.wd=!1;q.prototype=new E();q.prototype.constructor=q;q.prototype.parse=function(){var na,Oa;na=this.N.offset;this.gi();if(1 === this.version){this.N.offset+=2;for(var va=this.N.offset,xa=this.N.yd(),ra=this.N.yd(),ya=this.N.yd(),Ca=this.N.yd(),Ja=this.N.hg(),Ka=[],La=0;La < Ja;++La)Ka=this.N.yd();La=(xa & 240) >>> 4;Oa=(xa & 14) >>> 1;xa&=1;ya=16 === ya?1:0;ra != Ca && this.N.console.warn("VP9: Has the VP9 spec for vpcC changed? colourPrimaries " + ra + " and matrixCoefficients " + Ca + " should be the same value!");Ca=2;switch(ra){case 1:Ca=2;break;case 6:Ca=1;break;case 9:Ca=5;break;default:this.N.console.warn("VP9: Unknown colourPrimaries " + ra + "! Falling back to default color space VP9_COLOR_SPACE_BT709_6 (2)");}this.version=0;this.vc.Nh(this.version,na);this.vc.Nh(La << 4 | Ca,va++);this.vc.Nh(Oa << 4 | ya << 1 | xa,va++);Ja+=2;Ka.push(0,0);this.vc.RU(Ja,!1);va+=2;Ka.forEach(function(Na){this.vc.Nh(Na,va++);});}return !0;};u.wd=!1;u.prototype=new E();u.prototype.constructor=u;u.ve="tfhd";Object.defineProperties(u.prototype,{wnb:{get:function(){return this.flags & 1;}},ZNc:{get:function(){return this.flags & 2;}},yhc:{get:function(){return this.flags & 8;}},zhc:{get:function(){return this.flags & 16;}},Prb:{get:function(){return this.flags & 32;}}});u.prototype.parse=function(na){this.gi();this.B2=this.N.$b();this.Uz=this.wnb?this.N.cm():void 0;this.vLb=this.ZNc?this.N.$b():void 0;this.UC=this.yhc?this.N.$b():void 0;this.VC=this.zhc?this.N.$b():void 0;this.rG=this.Prb?this.N.$b():void 0;na && na.La && (na.La.B2=this.B2,na.La.Uz=this.Uz,na.La.vLb=this.vLb,na.La.UC=this.UC,na.La.VC=this.VC,na.La.rG=this.Prb?this.rG:void 0);return !0;};v.wd=!1;v.prototype=new E();v.prototype.constructor=v;v.prototype.parse=function(na){this.gi();this.YF=1 === this.version?this.N.cm():this.N.$b();na && na.La && (na.La.YF=this.YF);return !0;};v.prototype.pa=function(na){var va;va=this.startOffset + 12;this.YF+=na;1 === this.version?this.vc.ASb(this.YF,va):this.vc.In(this.YF,va);};w.wd=!1;w.prototype=Object.create(E.prototype);w.prototype.constructor=w;Object.defineProperties(w.prototype,{BP:{get:function(){return this.flags & 1;}}});w.prototype.parse=function(na){this.gi();this.BP && this.N.rB();this.BP && this.N.$b();this.bOa=this.N.yd();this.Nd=this.N.$b();0 === this.bOa && this.N.mT(this.Nd);na && na.La && (na.La.UNc=this.Nd);return !0;};w.prototype.pa=function(na,va){if(na){na=va?this.Nd - na:na;this.vc.offset=this.startOffset + 13 + (this.BP?8:0);this.Nd-=na;this.vc.In(this.Nd);if(0 !== this.bOa){this.Lva=va?0:this.bOa * na;return;}this.Lva=0;if(va)this.vc.offset+=this.Nd;else {for(va=0;va < na;++va)this.Lva+=this.vc.yd();this.vc.offset-=na;}this.Rq(na,this.N.offset);}return !0;};x.wd=!1;x.prototype=Object.create(E.prototype);x.prototype.constructor=x;Object.defineProperties(x.prototype,{BP:{get:function(){return this.flags & 1;}}});x.prototype.parse=function(na){var va,xa,La,Oa;this.gi();this.BP && this.N.rB();this.BP && this.N.$b();this.Mv=this.N.$b();D(1 === this.Mv,"Expected a single entry in Sample Auxiliary Information Offsets box");this.el=0 === this.version?this.N.nda():this.N.DJb();this.N.offset=this.el;if(na && na.La && na.Hf){va=na.Hf.xhc;xa=na.La.UNc;D(0 < va || void 0 !== na.Hf.whc,"Expected per sample or constant IV");D(0 < xa,"Expected saix box parsing to find sample count");na.La.HT=[];for(var ra=0;ra < xa;ra++){for(var ya=va?this.N.d1(va):void 0,Ca=[],Ja=this.N.hg(),Ka=0;Ka < Ja;Ka++){La=this.N.hg();Oa=this.N.$b();Ca.push({d$b:La,e$b:Oa});}na.La.HT.push({V1a:Ca,RBa:ya});}}return !0;};x.prototype.pa=function(na,va){this.el+=na;this.vc.offset=this.startOffset + 16 + (this.BP?8:0) + (0 === this.version?0:4);this.vc.c4a(va,this.el);return !0;};y.wd=!1;y.prototype=Object.create(E.prototype);y.prototype.constructor=y;A.wd=!1;A.prototype=Object.create(y.prototype);A.prototype.constructor=A;Object.defineProperties(y.prototype,{$Xa:{get:function(){return !1;}},BRb:{get:function(){return this.flags & 2;}}});Object.defineProperties(A.prototype,{$Xa:{get:function(){return this.flags & 1;}}});y.prototype.parse=function(na){var va,Ja,Ka;this.gi();va=0;this.$Xa && (va=this.Yxc=this.N.$b() & 255,this.kid=this.N.mT(16));if(na && na.La){if(na.La.HT)return !0;na.La.rl || (na.La.rl=[]);}if(0 !== va && 8 !== va && 16 !== va)return !0;this.Nd=this.N.$b();if(na && na.La)for(var xa=0;xa < this.Nd;xa++)if((na.La.rl[xa].RBa=0 < va?this.N.d1(va):void 0,this.BRb)){for(var ra=[],ya=this.N.hg(),Ca=0;Ca < ya;Ca++){Ja=this.N.hg();Ka=this.N.$b();ra.push({d$b:Ja,e$b:Ka});}na.La.rl[xa].V1a=ra;}return !0;};A.prototype.pa=function(na,va){return y.prototype.pa.call(this,na,va,28 + (this.$Xa?20:0));};y.prototype.pa=function(na,va,xa){var ra;na=va?this.Nd - na:na;this.vc.offset=this.startOffset + (xa || 12);this.Nd-=na;this.vc.In(this.Nd);xa=this.vc.offset;if(this.BRb)for(na=va?this.Nd:na;0 < na;--na){this.vc.offset+=8;ra=this.vc.hg();this.vc.offset+=6 * ra;}else this.vc.offset+=8 * (va?this.Nd:na);va?this.Rq(this.length - (this.N.offset - this.startOffset),this.N.offset):this.Rq(this.N.offset - xa,xa);};z.wd=!1;z.prototype=Object.create(E.prototype);z.prototype.constructor=z;z.prototype.parse=function(na){this.gi();if(na && na.La){void 0 === na.La.rl && (na.La.rl=[]);for(var va=0;va < this.length - 12;va++)na.La.rl[va].ycd=this.N.yd();}return !0;};z.prototype.pa=function(na,va,xa){if(this.length - 12 !== va)return !0;xa?this.Rq(va - na,this.startOffset + 12 + na):this.Rq(na,this.startOffset + 12);return !0;};B.wd=!1;B.prototype=Object.create(E.prototype);B.prototype.constructor=B;B.prototype.parse=function(){this.gi();this.N.rB();1 === this.version && this.N.$b();this.Mv=this.N.$b();this.Yda=[];for(var na=0;na < this.Mv;++na)for(var va=this.N.$b(),xa=this.N.$b(),ra=0;ra < va;++ra)this.Yda.push(xa);return !0;};B.prototype.pa=function(na,va){this.Yda=va?this.Yda.slice(0,na):this.Yda.slice(na);na=this.Yda.reduce(function(xa,ra){0 !== xa.length && xa[xa.length - 1].group === ra || xa.push({group:ra,count:0});++xa[xa.length - 1].count;return xa;},[]);this.vc.offset=this.startOffset + 16 + (1 === this.version?4:0);this.vc.In(na.length);na.forEach((function(xa){this.vc.In(xa.count);this.vc.In(xa.group);}).bind(this));this.Mv > na.length && this.Rq(8 * (this.Mv - na.length));this.Mv=na.length;return !0;};W={Ie:{moov:n,trak:d,mdia:d,mdhd:c,minf:d,encv:W,schi:d,sidx:f,sinf:d,senc:y,stbl:d,tenc:h,mvex:d,moof:m,traf:p,tfhd:u,trun:sa,sbgp:B,sdtp:z,saiz:w,saio:x,tfdt:v,mdat:Ga,vmaf:g,edts:d},KUc:{vpcC:q,SmDm:r("smdm"),CoLL:r("coll")},dQb:{schm:ha},S_a:{}};C([S,N,P,a,qa,I,ta,O,ba,fa,ia,V,ka,G,K,R,ea,M,Q,J,L,ja,sa],W.Ie);C([T,X,Z,aa,ca,da,U,Y,oa,pa,Aa],W.S_a);C([S,ha],W.dQb);W.Ie[b.ldb]=h;W.Ie[b.dia]=k;W.Ie[b.cia]=l;W.Ie[b.kdb]=A;W.S_a[b.TDa]=la;W.yf=E;t.exports={b0:W};},66789:function(t,b,a){var n,c,f,g,e,h;function d(k){return "number" === typeof k[0] || void 0 === k[0]?{ql:k[0],O:k[1],WF:k[2],F_a:k[3],ET:k[4]}:k[0];}Object.defineProperties(b,{__esModule:{value:!0}});b.nz=void 0;b.E_=function(k){var l,m;l=new ArrayBuffer(8);m=new DataView(l);m.setUint32(0,k + 8);m.setUint32(4,(0,f.fIa)("mdat"));return l;};n=a(22970);c=a(75589);t=a(87349);f=a(32296);g=a(93334);e=a(72905);h=a(16530);a=(function(k){function l(m,p,r){return k.call(this,m,p,r) || this;}n.__extends(l,k);l.prototype.fKb=function(){for(var m=[],p=0;p < arguments.length;p++)m[p]=arguments[p];return this.pa(n.__assign(n.__assign({},d(m)),{e_a:!1}));};l.prototype.pKb=function(){for(var m=[],p=0;p < arguments.length;p++)m[p]=arguments[p];return this.pa(n.__assign(n.__assign({},d(m)),{e_a:!0}));};l.prototype.pa=function(m){var r,q,u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K,M,P,I,O;function p(T){z=A[T];B=z.mt("traf");if(void 0 === B || void 0 === B.Uz)return !1;H=B.mt("tfdt");if(void 0 === H)return !1;C=B.mt("trun");return void 0 === C?!1:!0;}r=m.ql;q=m.O;u=m.e_a;v=m.WF;w=m.F_a;w=void 0 === w?!1:w;x=m.ET;x=void 0 === x?!1:x;y=m.cS;m=m.vna;m=void 0 === m?!1:m;if(!this.parse().done)return !1;A=this.Ie.moof;if(!A || 0 === A.length)return !1;if(void 0 !== r){D=r;for(r=0;r < A.length;++r){if(!p(r,this.Le.console.trace))return !1;(0,g.assert)(z && B && H && C && void 0 !== C.Nd);if(C.Nd > D || u && C.Nd === D)break;D-=C.Nd;}(0,g.assert)(z && B && H && C);}else if((r=u?A.length - 1:0,!p(r,this.Le.console.trace)))return !1;(0,g.assert)(z && B && H && C);if(u && r < A.length - 1){F=A[r + 1];this.Le.Rq(this.view.byteOffset - F.startOffset,F.startOffset);}else !u && 0 < r && this.Le.Rq(z.startOffset,0);F=B.mt("tfhd");if(void 0 === F)return !1;H=B.mt("tfdt");E=C.Nd;G=B.mt("saiz");J=B.mt("saio");L=B.mt(c.kdb) || B.mt("senc");K=B.mt("sbgp");if(!(!G && !J || G && J))return !1;M=B.mt("sdtp");P=e.yf.IG(this,"mdat");if(P && r < P.length)I=P[r];else {if(r !== A.length - 1)return !1;if(this.Le.offset <= this.view.byteLength - 8){P=this.Le.offset;O=this.Le.$b();"mdat" === this.Le.rB() && (I=new h.default(this.Le,"mdat",P,O));}}void 0 === D && (D=u?C.Nd:0);if("number" === typeof v && 0 < v){P=u?D:C.Nd - D;O=Array(P);for(var Q=0;Q < P;++Q)O[Q]=u?Q >= P - v?-Infinity:0:Q < v?-Infinity:0;v=O;}if(C.pa(B,F,m?void 0:I || this.Le,q,D,B.Uz,u))C.Gna && ((0,g.assert)(void 0 !== C.JNb),(0,g.assert)(void 0 !== C.U1),!u && H && H.pa(C.JNb),G && J && (G.pa(C.U1,u),J.pa(L?0:G.Lva,B.Uz)),L && L.pa(C.U1,u),M && M.pa(C.U1,E,u),K && K.pa(C.U1,u));else if(!u){if(r === A.length - 1)return !1;this.Le.Rq(A[r + 1].startOffset - z.startOffset,z.startOffset);}else if(0 === C.U1)return !1;Array.isArray(v) && I && this.stream.profile && void 0 !== w && !m && C.KCc(B,F,I,v,this.stream.profile,w,x,y);u=this.Le.pa();q=u.La;u=u.FK;v=q.reduce(function(T,U){return T + U.byteLength;},0);return {La:q,length:v,ES:this.Le.view.byteLength,FK:u};};return l;})((function(k){function l(m,p,r){return k.call(this,m,p,r) || this;}n.__extends(l,k);return l;})(t.mz));b.nz=a;},72978:function(t,b,a){var n,c,f,g,e,h,k;function d(l){var r;for(var m={},p=l.length - 1;0 <= p;p--){r=l[p];r=("").concat(r.OH,"-").concat(r.id);m[r]?l.splice(p,1):m[r]=!0;}}Object.defineProperties(b,{__esModule:{value:!0}});b.l5=void 0;c=a(22970);f=a(98776);g=a(29770);e=a(25564);t=a(87349);h=a(43607);k=a(48014);a=(function(l){function m(p,r,q){q=l.call(this,p,r,q) || this;q.console=p;q.stream=r;return q;}c.__extends(m,l);m.prototype.parse=function(p){var r,q,u,v,w,x,y,A,z;r=this;q=(null === p || void 0 === p?void 0:p.La) || ({});u=l.prototype.parse.call(this,p?c.__assign(c.__assign({},p),{La:q}):{La:q});if(!u.done || !q.rl || void 0 === q.el)return u;v=h.um.path(this,["moof"]);if(!v)return c.__assign(c.__assign({},u),{done:!1});w=(null === p || void 0 === p?void 0:p.events) || [];x=v.byteOffset + q.el;y=q.YF || 0;q.rl.forEach(function(B){var C,D;C=new DataView(r.view.buffer,r.view.byteOffset + x,B.eI);C=r.SGc(C);D=y + (B.YNc || 0);null !== A && void 0 !== A?A:A=D;z=D + B.D1;C && C.emib && C.emib.forEach(function(F){w.push({OH:D + F.nJc,ZY:F.ZY,id:F.id,JM:F.JM,value:F.value,BH:F.BH});});x+=B.eI;y+=B.D1;});p && p.wPb && (p.wPb.k7c=A,p.wPb.u$c=z);d(w);return u;};m.prototype.SGc=function(p){var r;r=new k.dha(p.byteLength);p=new e.r3(m.Ie,r,p,this.console,{bua:!0});return p.parse().done?p.Ie:void 0;};m.Ie=(n={},n[f.default.ve]=f.default,n[g.default.ve]=g.default,n);return m;})(t.mz);b.l5=a;},35982:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.$I=void 0;d=a(32296);n={stsd:16};b.$I=(function(){function c(){}c.path=function(f,g){var m,p;for(var e=0,h=f.byteLength,k,l=0;l < g.length;l++){m=g[l];for(k && (e+=n[k] || 8);e < h;){p=f.getUint32(e);k=(0,d.pJ)(f.getUint32(e + 4));if(k === m){h=e + p;break;}if(0 === p)return {};e+=p;}}return e < h?{offset:e,end:h}:{};};c.Utb=function(f){var g,e,h,k,l;g=this.path(f,["moof","traf"]).offset;if(void 0 !== g){f=new DataView(f.buffer,f.byteOffset + g + 8);e=this.path(f,["tfdt"]).offset;if(void 0 !== e){1 === f.getUint8(e + 8)?(g=f.getUint32(e + 12),e=f.getUint32(e + 16),g=4294967296 * g + e):g=f.getUint32(e + 12);h=this.path(f,["trun"]).offset;if(void 0 === h)return {A2:g};k=f.getUint8(h + 8);l=f.getUint32(h + 8) & 16777215;e=f.getUint32(h + 12);l & 2048?(h=h + 16 + ((l & 1) << 2) + (l & 4) + (((l & 256) >> 6) + ((l & 512) >> 7) + ((l & 1024) >> 8)),f=1 === k?f.getInt32(h):f.getUint32(h)):f=0;return {A2:g,Nx:f,dI:e};}}};return c;})();},87349:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.mz=void 0;d=a(25564);n=a(98516);c=a(48014);t=(function(){function f(g,e,h){this.console=g;this.stream=e;this.view=h instanceof ArrayBuffer?new DataView(h):new DataView(h.data,h.offset,h.length);}f.prototype.parse=function(g){var e;e=new c.dha(this.view.byteLength);this.Le=new d.r3(n.b0.Ie,e,this.view,this.console,{bua:!0});g=this.Le.parse(g);this.Ie=this.Le.Ie;return g;};return f;})();b.mz=t;},43607:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q;Object.defineProperties(b,{__esModule:{value:!0}});b.um=void 0;d=a(22970);n=a(3265);c=a(89931);f=a(93334);g=a(49420);e=a(72905);t=a(91056);h=a(64280);k=a(25564);l=a(2050);m=a(98516);p=a(75589);r=a(48014);q=a(35202);d.__exportStar(a(56122),b);a=(function(){function u(v,w,x,y,A,z){this.console=v;this.stream=w;this.uB=y;this.s6b=A;this.view=x instanceof ArrayBuffer?new DataView(x):new DataView(x.data,x.offset,x.length);this.config=z || ({});this.kuc=(0,l.rpc)();}u.path=function(v,w){return w.reduce(function(x,y){return x && x.Ie[y] && x.Ie[y][0];},v);};u.Pqc=function(v){return v && v.JMa && -1 !== v.JMa.indexOf("mcl0")?"mcl0":void 0;};u.Gmc=function(v,w){var x,y;(0,f.assert)("mcl0" === v,"Unsupported McClearen brand");x=w.Qa;v=x.fg;w=new g.I(120,1).Kc(x.O).$;y=0;for(x=x.Iu;y < v.length && x < w;)x+=v[y++];return y;};u.prototype.parse=function(v){var w;w=this.fOc();if(!w.done){if(w.XEb)return {dB:!1,ela:w.XEb};this.console.error("Scan error: " + w.error);return {dB:!1,parseError:w.error || "unknown mp4 scan error"};}v && (v.mediaType=this.stream.mediaType,v.jGc=v.Ea);this.view=new DataView(this.view.buffer,this.view.byteOffset,w.offset);v=this.QGc(v);return v.done?this.Kcc():(this.console.error("Parse error: " + v.error),{dB:!1,parseError:v.error || "unknown mp4 parse error"});};u.prototype.IG=function(v){return e.yf.IG(this,v);};u.prototype.$m=function(v){return e.yf.$m(this,v);};u.prototype.fOc=function(){var v,w;v=new r.U9a(this.uB,this.s6b?[p.dia,p.cia]:[],this.config && this.config.Ddd || ["moof",p.mcb],this.config && this.config.nYa);w=d.__assign(d.__assign({},this.config),{bua:!1});return new k.r3(u.W_a,v,this.view,this.console,w).parse();};u.prototype.QGc=function(v){var w,x,y;w=new r.dha(this.view.byteLength);x=Object.create(m.b0.Ie);this.config && ((this.config.sHb || this.config.cQb || this.config.Ewa) && n(m.b0.S_a,x),this.config.Q2a && n(m.b0.KUc,x),this.config.cQb && n(m.b0.dQb,x));y=d.__assign(d.__assign({},this.config),{bua:!0});this.Le=new k.r3(x,w,this.view,this.console,y);v=this.Le.parse(v);v.done && (this.Ie=this.Le.Ie);return v;};u.prototype.Kcc=function(){var v,w,x,y,A,z,B,C;w={dB:!0};x=u.path(this,["moov"]);y=null === x || void 0 === x?void 0:x.IG("trak");if(1 === (null === y || void 0 === y?void 0:y.length)){A=y[0].mt("tkhd");A && (w.trackId=A.Nc.trackId);}A=u.path(x,["trak","mdia","minf","stbl","stsd"]);if(this.config.sHb)if(A)(w.Ea=A.Ea,w.xcd=A.Ie);else return {dB:!1,parseError:"Missing sample descriptions"};z=u.path(A,["encv","sinf","schi"]);z && (z=u.path(z,["tenc"]) || u.path(z,[p.ldb])) && (w.Qkc={i6c:z.NA,OUa:z.OUa,m$c:!1});if(z=u.path(x,["trak","mdia","mdhd"]))w.O=z.O;if(z=u.path(x,["mvex","trex"]))w.gna=z && z.Nc.gna;w.gna && w.O && (w.Ea=new g.I(w.gna,w.O));(z=u.path(x,["trak","edts","elst"])) && (null === (v=z.h9) || void 0 === v?0:v.length) && w.O && (w.CY=new g.I(z.h9[0].VBc,w.O));if(v=u.path(this,["sidx"])){z=(z=u.path(this,[p.dia])) && z.MBc;B=u.path(this,[p.cia]);B=B && B.Jm;w.Qa=v.Qa;w.a0=z;w.Jm=B;}if(z=this.Ie.vmaf && this.Ie.vmaf[0])w.DE=z.DE;if(this.config.j_a && (z=u.path(x,["mvex"])) && y && y.length){C=y.reduce(function(D,F){return F.byteOffset > D.byteOffset?F:D;});C.byteOffset > z.byteOffset && (y=new Uint8Array(this.view.buffer,this.view.byteOffset,this.view.byteLength),B=(0,q.nQb)(y,Uint8Array,z.byteOffset,z.byteOffset + z.byteLength),C=(0,q.nQb)(y,Uint8Array,z.byteOffset + z.byteLength,C.byteOffset + C.byteLength),y.set(C,z.byteOffset),y.set(B,z.byteOffset + C.byteLength));}if(this.config.DNc)if(x)(this.trim(x.byteOffset + x.byteLength),this.config.Ewa && A && 1 < A.yQ && v && (w.Pj=this.Ewa(A,v)),void 0 === w.Pj && (x=this.Le.Gna?(0,c.concat)(this.Le.pa().La):this.view.buffer,w.Pj=[{Te:0,data:x}]));else return {dB:!1,parseError:"Missing movie box"};w.dB=!0;w.cua=this.Le.offset;return w;};u.prototype.trim=function(v){var w;w=this.view.buffer.slice(this.view.byteOffset,this.view.byteOffset + Math.min(v,this.view.byteLength));this.Le.trim(v);this.view=new DataView(w);};u.prototype.Ewa=function(v,w){var x,y,A;x=Object.keys(v.Ie);y=x.filter(function(z){return "encv" !== z;});if(!(2 > x.length || y.length === x.length || 0 === y.length)){x=u.path(this,["ftyp"]);A=u.Pqc(x);if(A)return (x=[],this.Le.zKc(),v.mKb("encv"),x.push({Te:0,dA:!1,data:(0,c.concat)(this.Le.pa().La)}),this.Le.xIc(),v.mKb(y[0]),v=u.Gmc(A,w),x.push({Te:v,dA:!0,data:(0,c.concat)(this.Le.pa().La)}),x);}};u.W_a={};return u;})();b.um=a;a.W_a[p.UDa]=t.default;a.W_a[p.VDa]=h.default;},32296:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.pJ=function(n){(0,d.assert)("number" === typeof n);return String.fromCharCode(n >>> 24 & 255) + String.fromCharCode(n >>> 16 & 255) + String.fromCharCode(n >>> 8 & 255) + String.fromCharCode(n & 255);};b.fIa=function(n){return n.charCodeAt(3) + (n.charCodeAt(2) << 8) + (n.charCodeAt(1) << 16) + (n.charCodeAt(0) << 24);};b.x4c=function(n,c){return Math.floor(1E3 * n / c);};d=a(93334);},75589:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.UDa="6674654e-696c-5078-6966-665374726d21";b.VDa="6674654e-696c-4878-6165-6465722e7632";b.mcb="6674654e-696c-5078-6966-66496e646578";b.dia="6674654e-696c-4d78-6f6f-6653697a6573";b.cia="6674654e-696c-5378-6565-6b506f696e74";b.ldb="cedb7489-e77b-514c-84f9-7148f9882554";b.kdb="524f39a2-9b5a-144f-a244-6c427c648df4";b.TDa="6674654e-696c-4678-7261-6d6552617465";},11526:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.QV=void 0;d=a(25337);t=(function(){function n(c,f,g){this.view=c;this.pK=f;this.console=g;this.N=new d.yja(c,g);}n.prototype.parse=function(){var c,f,g;c=this.N.hg();try{f=this.pK(this.N.mT(c));g=JSON.parse(f);}catch(e){this.console.error("Invalid event header:",e);return;}c=this.N.mT(this.view.byteLength - this.N.offset);return {header:g,body:c};};n.JM="urn:netflix:media_event:v1";return n;})();b.QV=t;},42328:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.gW=b.H5=void 0;d=a(25337);n={16:"programstart",17:"programend",19:"programbreakaway",34:"breakstart",35:"breakend",50:"breakstart",51:"breakend",52:"breakstart",53:"breakend",54:"breakstart",55:"breakend",60:"breakstart",61:"breakend",62:"breakstart",63:"breakend",66:"breakstart",67:"breakend",68:"breakstart",69:"breakend",70:"breakstart",71:"breakend"};(function(f){f[f.I2c=16]="ProgramStart";f[f.H2c=17]="ProgramEnd";f[f.G2c=19]="ProgramBreakaway";f[f.bUb=34]="BreakStart";f[f.zZc=35]="BreakEnd";f[f.s_c=50]="DistributorAdvertisementStart";f[f.r_c=51]="DistributorAdvertisementEnd";f[f.M2c=52]="ProviderPlacementOpportunityStart";f[f.L2c=53]="ProviderPlacementOpportunityEnd";f[f.u_c=54]="DistributorPlacementOpportunityStart";f[f.t_c=55]="DistributorPlacementOpportunityEnd";f[f.O2c=60]="ProviderPromoStart";f[f.N2c=61]="ProviderPromoEnd";f[f.w_c=62]="DistributorPromoStart";f[f.v_c=63]="DistributorPromoEnd";f[f.SYc=66]="AlternateContentOpportunityStart";f[f.RYc=67]="AlternateContentOpportunityEnd";f[f.K2c=68]="ProviderAdBlockStart";f[f.J2c=69]="ProviderAdBlockEnd";f[f.q_c=70]="DistributorAdBlockStart";f[f.p_c=71]="DistributorAdBlockEnd";})(c || (b.H5=c={}));t=(function(){function f(g,e){this.view=g;this.console=e;this.N=new d.yja(g,e);}f.prototype.parse=function(){var g,e,h,k,l,m,p,r;this.N.offset+=13;g=this.N.yd();switch(g){case 0:break;case 5:(e=this.nHc(),h=e.sGc);g=e.JRc;e=e.y9b;return void 0 === h || void 0 === g?void 0:h?{event:"breakstart",OH:g,duration:e}:{event:"breakend",OH:g};case 6:h=this.tHb();break;case 4:case 7:case 255:return;default:throw Error(("Unknown splice_command_type: ").concat(g));}if(void 0 !== h)for((g=this.N.hg(),g=this.N.offset + g);this.N.offset < g;){e=this.N.yd();k=this.N.yd();if(2 === e){e=this.mHc(k);k=e.jea;l=e.kea;m=e.J1;p=e.TLb;r=e.HOc;if(void 0 !== k)return {event:f.m0a[k],jea:k,kea:l,J1:m,OH:h,id:p,duration:r};if(e.SLb)return {event:"cancel",OH:h,id:p};}else this.N.offset+=k;}};f.prototype.nHc=function(){var g,e,h,k,l,m;this.N.offset+=4;if(!(this.N.yd() >> 7)){g=void 0;e=void 0;h=this.N.cb(1);k=this.N.cb(1);if(!k)throw Error("Component splice mode is deprecated");l=this.N.cb(1);m=this.N.cb(1);this.N.cb(4);k && !m && (g=this.tHb());l && (e=this.RGc());return {sGc:h,JRc:g,y9b:e};}return {};};f.prototype.tHb=function(){var g;if(this.N.cb(1)){this.N.cb(6);g=this.N.cb(33);}else this.N.cb(7);return g;};f.prototype.RGc=function(){this.N.cb(1);this.N.cb(6);return this.N.cb(33);};f.prototype.mHc=function(g){var e,h,k,l,m,p,r;h=this.N.offset;this.N.$b();k=this.N.$b();l=this.N.cb(1);this.N.cb(7);if(0 === l){m=this.N.cb(1);p=this.N.cb(1);this.N.cb(1);this.N.cb(5);if(!m)throw Error("Component splice mode is deprecated");p && (e=this.N.cb(40));m=this.N.yd();p=this.N.yd();p=0 < p?this.N.d1(p):void 0;r=this.N.yd();this.N.offset=h + g;return {jea:r,kea:m,J1:p,TLb:k,SLb:l,HOc:e};}this.N.offset=h + g;return {TLb:k,SLb:l};};f.JM="urn:scte:scte35:2013:bin";f.m0a=n;return f;})();b.gW=t;},48014:function(t,b,a){var n;function d(c,f){c=f.indexOf(c);-1 !== c && f.splice(c,1);}Object.defineProperties(b,{__esModule:{value:!0}});b.U9a=b.dha=void 0;n=a(75589);t=(function(){function c(f){this.endOffset=f;this.done=!1;}c.prototype.mvb=function(){return this.done;};c.prototype.ysb=function(f,g,e){return this.done=g + e >= this.endOffset;};return c;})();b.dha=t;t=(function(){function c(f,g,e,h){void 0 === g && (g=[]);void 0 === e && (e=[]);void 0 === h && (h=!1);this.uB=f;this.ona=g;this.fPb=e;this.nYa=h;this.done=!1;this.Ep={};}c.prototype.mvb=function(f,g,e){-1 !== c.zuc.indexOf(f) && (this.Ep[f]={offset:g,size:e});if(-1 !== this.fPb.indexOf(f)){if((this.Ep[f]={offset:g,size:e},this.nYa))this.endOffset=g + e;else return (this.endOffset=g,this.done=!0);}else this.uB && -1 !== this.uB.indexOf(f)?(f=1 < this.uB.length?4096:0,this.endOffset=Math.max(g + e + f,this.endOffset || 0)):-1 !== this.ona.indexOf(f) && (f=this.uB?4096:0,this.endOffset=Math.max(g + e + f,this.endOffset || 0));return this.done;};c.prototype.ysb=function(f,g,e,h){var k;k=this;if(-1 !== this.fPb.indexOf(f))return this.done=!0;f === n.UDa && this.SMb(h.Ep);f === n.VDa && this.SMb(h.Ep);this.uB && d(f,this.uB);d(f,this.ona);return this.uB && 0 === this.uB.length && !this.ona.some(function(l){return k.Ep[l];})?this.done=!0:this.done;};c.prototype.SMb=function(f){var g;g=this;this.Ep=f;this.endOffset=(this.uB || []).concat(this.ona).reduce(function(e,h){return g.Ep[h]?(h=g.Ep[h],Math.max(h.offset + (h.size || 4096),e)):e;},this.endOffset || 0);};c.zuc=["moov","sidx"];return c;})();b.U9a=t;},80735:function(t,b){function a(d){var n,g,e;n=d.length;if(!(0 <= n))throw Error("bad string");for(var c=0,f=n;f--;){g=d.charCodeAt(f);128 > g?c++:c=2048 > g?c + 2:c + 3;}c=new Uint8Array(c);e=0;for(f=0;f < n;f++)(g=d.charCodeAt(f),128 > g?c[e++]=g:(2048 > g?c[e++]=192 | g >>> 6:(c[e++]=224 | g >>> 12,c[e++]=128 | g >>> 6 & 63),c[e++]=128 | g & 63));return c;}Object.defineProperties(b,{__esModule:{value:!0}});b.jia=void 0;t=(function(){function d(n,c,f){this.header=n;this.body=c;this.Sna=f;}d.prototype.encode=function(n){var c;c=(this.Sna || a)(JSON.stringify(this.header));n.RU(c.length);n.b4a(c);n.b4a(this.body);};return d;})();b.jia=t;},51061:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.fja=void 0;d=a(93334);t=(function(){function n(c){this.message=c;}n.prototype.encode=function(c){var f,g,e,h,k;c.Nh(252);c.RU(12288);f=c.offset;c.Nh(0);c.Nh(0);c.In(0);c.Nh(0);c.RU(65520);c.Nh(0);c.Nh(6);g=c.offset;this.$Xc(c);e=c.offset;c.RU(0);c.Nh(2);c.Nh(0);this.ZXc(c);h=c.offset;k=e - g;(0,d.assert)(256 > k);c.ila(g - 2);c.Nh(k & 255);g=h - e - 4;k=h - e - 2;c.ila(e);c.RU(k);c.E6b();c.Nh(g);e=h - f + 4;(0,d.assert)(256 > e);c.ila(f - 1);c.Nh(e & 255);c.ila(h);c.In(0);};n.prototype.$Xc=function(c){var f;f=(this.message.OH - (this.message.OH & 4294967295)) / 4294967296;(0,d.assert)(2 > f);c.Nh(254 + f);c.In(this.message.OH & 4294967295);};n.prototype.ZXc=function(c){var f,g;c.In(0);c.In(this.message.id || 0);c.Nh("cancel" === this.message.event?255:127);if("cancel" !== this.message.event){g=null !== (f=this.message.jea) && void 0 !== f?f:n.m0a[this.message.event];c.Nh(this.message.duration?255:191);this.message.duration && (f=this.message.duration & 4294967295,c.Nh((this.message.duration - f) / 4294967296),c.In(f));c.Nh(void 0 !== this.message.kea?this.message.kea:0);(f=this.message.J1) && 0 < f.byteLength?(c.Nh(f.byteLength),c.b4a(new Uint8Array(f))):c.Nh(0);c.Nh(g);c.Nh(1);c.Nh(1);if(48 === g || 50 === g || 52 === g || 54 === g || 56 === g || 58 === g || 68 === g || 70 === g)(c.Nh(0),c.Nh(0));}};n.m0a={programstart:16,programend:17,programbreakaway:19,breakstart:52,breakend:53};return n;})();b.fja=t;},24500:function(t){var b;b=(function(){var a;a=new Uint32Array([0,0]);a.set(new Uint32Array([16843009]),1);return 0 !== a[0];})()?function(a,d,n){new Uint8Array(a.buffer,a.byteOffset,a.byteLength).set(new Uint8Array(d.buffer,d.byteOffset,d.byteLength),n * a.byteLength / a.length);}:function(a,d,n){a.set(d,n);};t.exports={from:function(a,d,n,c){a=new a(d.length);for(var f="function" === typeof n,g=0;g < d.length;++g)a[g]=f?n.call(c,d[g],g,d):d[g];return a;},set:b};},35202:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.nQb=function(a,d,n,c){var f,g;if(null !== a && void 0 !== a && a.slice)return a.slice(n,c);f=Math.min(a.length,c);g=Math.min(a.length,n);for(d=new d(Math.max(c - n,0));g < f;g++)d[g - n]=a[g];return d;};},93334:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.assert=function(c,f){if(!c)throw new n(f || "Assertion failed");};d=a(22970);n=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);return f;})(Error);},89931:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.concat=function(){var n;for(var a=[],d=0;d < arguments.length;d++)a[d]=arguments[d];a=Array.prototype.concat.apply([],a);d=a.reduce(function(c,f){return c + f.byteLength;},0);n=new Uint8Array(d);a.reduce(function(c,f){n.set(new Uint8Array(f),c);return c + f.byteLength;},0);return n.buffer;};},3265:function(t){t.exports=function n(a,d){var c;a.__proto__ && a.__proto__ !== Object.prototype && n(a.__proto__,d);Object.getOwnPropertyNames(a).forEach(function(f){c=Object.getOwnPropertyDescriptor(a,f);void 0 !== c && Object.defineProperty(d,f,c);});};},49420:function(t,b){function a(n,c){return "number" !== typeof n || "number" !== typeof c?!1:n && c?Math.abs(n * c / d(n,c)):0;}function d(n,c){var f;n=Math.abs(n);for(c=Math.abs(c);c;){f=c;c=n % c;n=f;}return n;}Object.defineProperties(b,{__esModule:{value:!0}});b.I=void 0;t=(function(){function n(c,f){"object" === typeof c?(this.Qc=c.$,this.Db=c.O):(this.Qc=c,this.Db=f);}n.Ba=function(c){return new n(c,1E3);};n.F2a=function(c,f){return Math.floor(1E3 * c / f);};n.PEb=function(c,f){return Math.floor(c * f / 1E3);};n.max=function(){for(var c=[],f=0;f < arguments.length;f++)c[f]=arguments[f];return c.reduce(function(g,e){return g.greaterThan(e)?g:e;});};n.min=function(){for(var c=[],f=0;f < arguments.length;f++)c[f]=arguments[f];return c.reduce(function(g,e){return g.lessThan(e)?g:e;});};n.MK=function(c,f){var g;if(c.O === f.O)return new n(d(c.$,f.$),c.O);g=a(c.O,f.O);return n.MK(c.Kc(g),f.Kc(g));};Object.defineProperties(n.prototype,{$:{get:function(){return this.Qc;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{O:{get:function(){return this.Db;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{G:{get:function(){return 1E3 * this.Qc / this.Db;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{Zi:{get:function(){return this.Qc / this.Db;},enumerable:!1,configurable:!0}});n.prototype.Kc=function(c){c/=this.O;return new n(Math.floor(this.$ * c),Math.floor(this.O * c));};n.prototype.add=function(c){var f;if(this.O === c.O)return new n(this.$ + c.$,this.O);f=a(this.O,c.O);return this.Kc(f).add(c.Kc(f));};n.prototype.ea=function(c){return this.add(new n(-c.$,c.O));};n.prototype.eh=function(c){return new n(this.$ * c,this.O);};n.prototype.nf=function(c){var f;if(this.O === c.O)return this.$ / c.$;f=a(this.O,c.O);return this.Kc(f).nf(c.Kc(f));};n.prototype.dyb=function(c){return a(this.O,c);};n.prototype.VZa=function(){return new n(this.O,this.$);};n.prototype.compare=function(c,f){var g;if(this.O === f.O)return c(this.$,f.$);g=a(this.O,f.O);return c(this.Kc(g).$,f.Kc(g).$);};n.prototype.equal=function(c){return this.compare(function(f,g){return f === g;},c);};n.prototype.rca=function(c){return this.compare(function(f,g){return f !== g;},c);};n.prototype.lessThan=function(c){return this.compare(function(f,g){return f < g;},c);};n.prototype.greaterThan=function(c){return this.compare(function(f,g){return f > g;},c);};n.prototype.ln=function(c){return this.compare(function(f,g){return f <= g;},c);};n.prototype.Tf=function(c){return this.compare(function(f,g){return f >= g;},c);};n.prototype.toJSON=function(){return {ticks:this.$,timescale:this.O};};n.prototype.toString=function(){return ("").concat(this.$,"/").concat(this.O);};n.ia=new n(0,1);n.xy=new n(1,1E3);return n;})();b.I=t;},56445:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.pib=void 0;d=a(22970);n=a(93334);c=a(89931);f=a(32296);t=a(25337);g=(function(){function e(h){h?(this.Ys=h.Ys.slice(),this.ez=h.ez.slice(),this.If=h.If.slice(),this.trim=h.trim):(this.Ys=[],this.ez=[],this.If=[]);}Object.defineProperties(e.prototype,{empty:{get:function(){return 0 === this.Ys.length && 0 === this.ez.length && 0 === this.If.length;},enumerable:!1,configurable:!0}});return e;})();t=(function(e){function h(k,l,m){k=e.call(this,k,l,m) || this;k.Ssb=[];k.pf=new g();return k;}d.__extends(h,e);h.u7b=function(k,l){if(l.offset + l.size <= k.byteLength)switch(l.size){case 1:k.setUint8(l.offset,l.value);break;case 2:l.Dea?k.setInt16(l.offset,l.value):k.setUint16(l.offset,l.value);break;case 4:l.Dea?k.setInt32(l.offset,l.value):k.setUint32(l.offset,l.value);break;case 8:(0,n.assert)(!l.Dea);k.setUint32(l.offset,Math.floor(l.value / 4294967296));k.setUint32(l.offset + 4,l.value & 4294967295);break;default:(0,n.assert)(!1);}};Object.defineProperties(h.prototype,{Gna:{get:function(){return !this.pf.empty;},enumerable:!1,configurable:!0}});h.prototype.Nh=function(k,l){this.pf.ez.push({offset:void 0 !== l?l:this.offset,value:k,size:1});void 0 === l && (this.offset+=1);};h.prototype.RU=function(k,l){this.pf.ez.push({offset:void 0 !== l?l:this.offset,value:k,size:2,Dea:!1});void 0 === l && (this.offset+=2);};h.prototype.In=function(k,l){this.pf.ez.push({offset:void 0 !== l?l:this.offset,value:k,size:4,Dea:!1});void 0 === l && (this.offset+=4);};h.prototype.ASb=function(k,l){this.pf.ez.push({offset:void 0 !== l?l:this.offset,value:k,size:8,Dea:!1});void 0 === l && (this.offset+=8);};h.prototype.$3a=function(k){this.In((0,f.fIa)(k));};h.prototype.c4a=function(k,l){this.pf.If.push({offset:this.offset,Qr:k,value:l});this.offset+=4;};h.prototype.Rq=function(k,l,m){this.pf.Ys.push({offset:l,remove:k,Ib:m});};h.prototype.rva=function(k,l,m,p){this.pf.Ys.push({offset:m,remove:k,replace:l,Ib:p});};h.prototype.trim=function(k){this.pf.trim=k;};h.prototype.zKc=function(){this.Ssb.push(new g(this.pf));};h.prototype.xIc=function(){this.pf=this.Ssb.pop() || new g();};h.prototype.pa=function(){var k,l,m,p,r,q,u;k=this;if(0 === this.pf.Ys.length && 0 === this.pf.ez.length && 0 === this.pf.If.length)return {La:[void 0 === this.pf.trim?this.view.buffer:this.view.buffer.slice(0,this.pf.trim)]};this.pf.Ys.sort(function(v,w){return v.offset - w.offset;});this.pf.ez.sort(function(v,w){return v.offset - w.offset;});this.mNc();l=this.xmc();m=this.view.buffer.slice(0,l);p=l?new DataView(m):this.view;this.pf.ez.forEach(h.u7b.bind(void 0,p));this.MVc(p);this.LVc(p);r=[];q=void 0 !== this.pf.trim?Math.min(this.pf.trim,this.view.byteLength):this.view.byteLength;u=0;this.pf.Ys.filter(function(v){return v.offset <= q;}).forEach(function(v){v.offset > u && (r.push(p.buffer.slice(u,v.offset)),v.offset > p.byteLength && p !== k.view && (p=k.view,r.push(p.buffer.slice(l,v.offset))));v.replace && r.push(v.replace);u=v.offset + v.remove;});u < l && r.push(m.slice(u));u < q && (m=Math.max(m.byteLength,u),m < q && r.push(this.view.buffer.slice(m,q)));m=this.pf.Ys.filter(function(v){return v.offset + v.remove > q;}).map(function(v){var w;w=v.offset;v=v.remove;return w < q?{offset:q,remove:v - (q - w)}:{offset:w,remove:v};});return {La:r,FK:m};};h.prototype.xmc=function(){var k,l,m;k=[];l=this.pf.ez[this.pf.ez.length - 1];m=this.pf.If[this.pf.If.length - 1];l && k.push(l.offset + l.size);m && k.push(m.offset + 4);this.pf.Ys.filter(function(p){return p.Ib;}).forEach(function(p){return k.push(p.Ib.byteOffset + 4);});if(0 === k.length)return 0;l=Math.max.apply(void 0,k);return void 0 !== this.pf.trim?Math.min(l,this.pf.trim):l;};h.prototype.mNc=function(){this.pf.Ys=this.pf.Ys.reduce(function(k,l){var m,p;if(0 === k.length)return (k.push(l),k);m=k[k.length - 1];p=m.offset + m.remove;l.offset >= p?k.push(l):l.offset + l.remove > p && ((0,n.assert)(m.Ib === l.Ib),m.remove+=l.offset + l.remove - p,l.replace && (m.replace=m.replace?(0,c.concat)(m.replace,l.replace):l.replace));return k;},[]);};h.prototype.MVc=function(k){var l;l=this;this.pf.If.forEach(function(m){var p,r,q,u;p=k;r=m.offset;l.pf.Ys.some(function(v){return v.offset <= m.offset && v.replace && v.offset + v.replace.byteLength >= m.offset + 4?(p=new DataView(v.replace),r=m.offset - v.offset,!0):!1;});q=m.Qr + (void 0 !== m.value?m.value:p.getInt32(r));u=l.pf.Ys.reduce(function(v,w){return w.offset > m.Qr && w.offset < q?v + (w.remove - (w.replace?w.replace.byteLength:0)):v;},0);p.setInt32(r,q - m.Qr - u);});};h.prototype.LVc=function(k){this.pf.Ys.forEach(function(l){var m;m=(l.remove || 0) - (l.replace?l.replace.byteLength:0);if(0 !== m)for(l=l.Ib;l;)(k.setUint32(l.byteOffset,k.getUint32(l.byteOffset) - m),l=l.parent);});};return h;})(t.yja);b.pib=t;},25337:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.yja=void 0;d=a(2050);a(2050);n=a(32296);t=(function(){function c(f,g,e){void 0 === e && (e={});this.view=f;this.console=g;this.config=e;this.view=f;this.console=g;this.ke=this.xx=this.offset=0;}c.prototype.ewb=function(f){return new DataView(this.view.buffer,this.view.byteOffset + this.offset,f);};c.prototype.cb=function(f){if(24 < f)return 16777216 * this.cb(f - 24) + this.cb(24);for(;this.ke < f;)(this.xx=(this.xx << 8) + this.yd(),this.ke+=8);this.ke-=f;return this.xx >>> this.ke & (1 << f) - 1;};c.prototype.yd=function(){var f;f=this.view.getUint8(this.offset);this.offset+=1;return f;};c.prototype.hg=function(f){f=this.view.getUint16(this.offset,f);this.offset+=2;return f;};c.prototype.$b=function(f){f=this.view.getUint32(this.offset,f);this.offset+=4;return f;};c.prototype.nda=function(){var f;f=this.view.getInt32(this.offset,void 0);this.offset+=4;return f;};c.prototype.AHc=function(f,g){var e;e=this.view.getUint32(this.offset + (f?4:0),f);f=this.view.getUint32(this.offset + (f?0:4),f);g || 0 === (e & 4278190080) || this.console.warn("Warning: read unsigned value > 56 bits");return 4294967296 * e + f;};c.prototype.cm=function(f,g){f=this.AHc(f,g);this.offset+=8;return f;};c.prototype.BHc=function(){var f,g;f=this.view.getInt32(this.offset + 0,void 0);g=this.view.getUint32(this.offset + 4,void 0);0 === ((0 < f?f:-f) & 4278190080) || this.console.warn("Warning: read signed value > 56 bits");return 4294967296 * f + g;};c.prototype.DJb=function(){var f;f=this.BHc();this.offset+=8;return f;};c.prototype.rB=function(){return (0,n.pJ)(this.$b());};c.prototype.fva=function(){var g,e,h,k,l,m;function f(p,r){return ("000000" + p.toString(16)).slice(2 * -r);}g=this.$b(!0);e=this.hg(!0);h=this.hg(!0);k=this.hg();l=this.hg();m=this.$b();return [f(g,4),f(e,2),f(h,2),f(k,2),f(l,2) + f(m,4)].join("-");};c.prototype.d1=function(f){var g;g=this.view.byteOffset + this.offset;g=this.view.buffer.slice(g,g + f);this.offset+=f;return g;};c.prototype.PZa=function(f){var g;g=[];if(0 === f)return "";f=f || Number.MAX_SAFE_INTEGER;for(var e=this.yd();0 !== e && 0 <= --f;)(g.push(e),e=this.yd());return String.fromCharCode.apply(null,g);};c.prototype.mT=function(f){var g,e;void 0 === g && (g=1);void 0 === e && (e=!0);return this.wn(this.config.K2 && d.btc || d.RZ,1,f,g,e);};c.prototype.NKc=function(f){var g,e,h;g=10;e=!1;void 0 === g && (g=2);void 0 === e && (e=!0);void 0 === h && (h=!1);return this.wn(this.config.K2 && d.$sc || d.Hpa,2,f,g,e,h);};c.prototype.dva=function(f,g,e){var h;void 0 === g && (g=4);void 0 === e && (e=!0);void 0 === h && (h=!1);return this.wn(this.config.K2 && d.atc || d.Q$,4,f,g,e,h);};c.prototype.RKc=function(){for(var f=this.yd(),g=f & 127;f & 128;)(f=this.yd(),g=g << 7 | f & 127);return g;};c.prototype.wn=function(f,g,e,h,k,l){void 0 === k && (k=!0);void 0 === l && (l=!1);f=f(this.view,this.offset,e,h,l);this.offset=k || !h || h === g?this.offset + e * (h || g):this.offset + g;return f;};return c;})();b.yja=t;},44248:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.zja=void 0;d=a(32296);t=(function(){function n(c){void 0 === c && (c=1);this.Rb=new ArrayBuffer(c);this.view=new DataView(this.Rb);this.ke=this.xx=this.ed=0;}Object.defineProperties(n.prototype,{offset:{get:function(){return this.ed;},enumerable:!1,configurable:!0}});Object.defineProperties(n.prototype,{buffer:{get:function(){return this.Rb.slice(0,this.offset);},enumerable:!1,configurable:!0}});n.prototype.xQ=function(c){var f,g;c=this.offset + c + 1;if(c > this.Rb.byteLength){c=new ArrayBuffer(Math.max(2 * this.Rb.byteLength,c));f=new Uint8Array(c);g=new Uint8Array(this.Rb);f.set(g);this.Rb=c;this.view=new DataView(this.Rb);}};n.prototype.ila=function(c){this.xQ(c - this.offset);this.ed=c;};n.prototype.E6b=function(){this.xQ(1);this.ed+=1;};n.prototype.Nh=function(c){this.xQ(1);this.view.setUint8(this.offset,c);this.ed+=1;};n.prototype.RU=function(c,f){this.xQ(2);this.view.setUint16(this.offset,c,f);this.ed+=2;};n.prototype.In=function(c,f){this.xQ(4);this.view.setUint32(this.offset,c,f);this.ed+=4;};n.prototype.ASb=function(c,f){var g;g=Math.floor(c / 4294967296);c-=4294967296 * g;this.xQ(8);this.view.setUint32(this.offset + (f?4:0),g,f);this.view.setUint32(this.offset + (f?0:4),c,f);this.ed+=8;};n.prototype.$3a=function(c){this.In((0,d.fIa)(c));};n.prototype.b4a=function(c){this.xQ(c.length);new Uint8Array(this.Rb).set(c,this.offset);this.ed+=c.length;};return n;})();b.zja=t;},17972:function(t,b,a){var n,c,f,g;function d(e,h,k){void 0 === k && (k=0);return e.displayTime - k <= h && h < e.displayTime + e.duration;}Object.defineProperty(b,"__esModule",{value:!0});b.fUb=b.v5a=void 0;n=a(22970);c=a(91176);f=a(90745);t=(function(e){function h(k,l,m,p,r,q,u,v){var w,x,y;y=e.call(this) || this;y.H2b=k;y.i6=l;y.L2b=m;y.wa=p;y.Laa=r;y.NRa=q;y.oua=u;y.options=v;y.Em=[];y.Fl=[];y.Uo=[];y.GYa=new f.gf();y.b0a=new f.gf();y.Ama=new f.gf();y.oJ=new g(function(){return l(k());},y.wa,(null === (w=y.options) || void 0 === w?void 0:w.za) || !1);y.oJ.events.on("bufferingcomplete",function(){var A;y.wa.trace("AseTimer:Received buffering complete from watcher");null === (A=y.Mr) || void 0 === A?void 0:A.cd();y.nXa();});y.oJ.WYa();y.hNb();y.GYa.on(y.oua,"segmentPresenting",function(){y.xGb();});y.GYa.on(y.oua,"taskSchedulerChanged",function(){y.hNb();});null === (x=y.Mr) || void 0 === x?void 0:x.Ka();return y;}n.__extends(h,e);Object.defineProperty(h.prototype,"_buffering",{get:function(){return this.oJ.S7;},enumerable:!1,configurable:!0});h.prototype.cTc=function(){var k,l,m,p,r,q,u,v,w,x,y,A,z,B;B=this;return n.__generator(this,function(C){switch(C.label){case 0:this.wa.trace("AseTimer:Starting subtitle worker");if(this.Laa())return (this.wa.trace("Paused: exiting"),[2]);k=function(){return B.gd.Ma.currentTime.G;};l=this.H2b;this.Uo=this.Fl.concat(this.Em);this.ZIb(l(),!0);C.label=1;case 1:if(!this.Uo.length)return [3,3];p=m=l();this.Job(m);try{for((r=(A=void 0,n.__values(this.Uo)),q=r.next());!q.done;q=r.next())(u=q.value,this.wa.trace(("AseTimer:Checking subtitle ").concat(u.id)),m >= u.displayTime + u.duration || (d(u,m,this.options.fSc)?(this.wa.trace(("AseTimer:Showing subtitle ").concat(u.id)),this.gJc(u),p=Math.max(m,u.displayTime)):(this.wa.trace(("AseTimer:Staging subtitle ").concat(u.id)),this.y1a(u))));}catch(D){A={error:D};}finally{try{q && !q.done && (z=r.return) && z.call(r);}finally{if(A)throw A.error;}}v=this.o$b(p);if(!isFinite(v))return (this.oJ.WYa(),[3,3]);w=k();x=this.L2b(v,m);if(void 0 === x)return [3,3];y=Math.max(x,10) + w;this.wa.trace(("AseTimer:Sleeping till PlayerTime ").concat(y));return [4,c.$d.lm(c.I.Ba(y))];case 2:return (C.T(),this.ZIb(l()),[3,1]);case 3:return (this.wa.trace(("AseTimer:Checking removed subtitles one more time ").concat(l())),this.Job(l()),this.wa.trace("AseTimer:Ending subtitle worker"),[2]);}});};h.prototype.ZIb=function(k,l){var m,p,r,q,u;p=this;void 0 === l && (l=!1);r=l || !this.Em.length;r || (r=this.Uo[this.Uo.length - 1].displayTime > k);if(r){this.wa.trace(("AseTimer:Getting subtitles for ").concat(k),{u6c:this.gd.Ma.currentTime});q=this.i6(k);if(q){this.wa.trace(("AseTimer:Received ").concat(q.length," subtitles"));r=function(y){(0,c.cc)(u.Uo,function(A){return A.id === y.id;}) || k >= y.displayTime + y.duration || (u.wa.trace(("AseTimer:adding ").concat(y.id),{start:y.startTime,W6c:y.displayTime,end:y.endTime,i7c:y.duration}),u.Uo.push(y));};u=this;try{for(var v=n.__values(q),w=v.next();!w.done;w=v.next())r(w.value);}catch(y){var x;x={error:y};}finally{try{w && !w.done && (m=v.return) && m.call(v);}finally{if(x)throw x.error;}}l && this.Uo.filter(function(y){return !(0,c.cc)(q,function(A){return A.id === y.id;});}).forEach(function(y){return p.zca(y);});this.Uo.length || this.oJ.WYa();}else this.ml();}};h.prototype.stop=function(){var k;this.wa.trace("AseTimer:Stop");null === (k=this.Mr) || void 0 === k?void 0:k.Ka();this.oJ.reset();this.mva();this.GYa.clear();this.b0a.clear();this.Ama.clear();};h.prototype.mva=function(){var k,l,m,p;this.wa.trace("AseTimer:Removing all",this.Fl.length);p=this.Fl;try{for(var r=n.__values(p),q=r.next();!q.done;q=r.next())this.zca(q.value);}catch(v){var u;u={error:v};}finally{try{q && !q.done && (k=r.return) && k.call(r);}finally{if(u)throw u.error;}}this.Fl=[];if(null === (l=this.Mr) || void 0 === l?0:l.mo)null === (m=this.Mr) || void 0 === m?void 0:m.Ka();};h.prototype.pause=function(){var k;null === (k=this.Mr) || void 0 === k?void 0:k.Ka();};h.prototype.EI=function(){var k,l,m,p;(null === (k=this.Mr) || void 0 === k?void 0:k.state) !== c.ym.complete && (null === (l=this.Mr) || void 0 === l?void 0:l.state) !== c.ym.cQ || this.Laa() || (null === (m=this.Mr) || void 0 === m?void 0:m.cd());this.Bm && this.oJ.check();this.Laa() && (null === (p=this.Mr) || void 0 === p?void 0:p.Ka());};h.prototype.hNb=function(){var k;k=this;this.wa.trace("Setting up new task scheduler");(this.gd=this.NRa())?(this.b0a.clear(),this.b0a.on(this.gd,"clockChanged",function(){return k.bGb();}),this.Mr=this.gd.Xr(function(){return k.cTc();},"subtitleWorker"),this.bGb()):this.wa.warn("AseTimer: no player task scheduler");};h.prototype.o$b=function(k){var l;return null !== (l=this.Uo.map(function(m){return [m.displayTime,m.displayTime + m.duration + 1];}).reduce(function(m,p){return m.concat(p);},[]).filter(function(m){return m > k;}).sort(function(m,p){return m - p;})[0]) && void 0 !== l?l:Infinity;};h.prototype.bGb=function(){var k,l,m;k=this;this.Ama.clear();(null === (l=this.gd) || void 0 === l?0:l.Ma)?(this.wa.trace("onClockChanged: clock listeners registered"),this.Ama.on(this.gd.Ma,"clockAdjusted",function(p){p.reason === c.Yw.YM && k.xGb();}),this.Ama.on(this.gd.Ma,"stopStart",function(){var p;k.gd.ss || (null === (p=k.Mr) || void 0 === p?void 0:p.cd());})):this.wa.trace("onClockChanged: playerTaskScheduler has not been set or clock is undefined");null === (m=this.Mr) || void 0 === m?void 0:m.cd();};h.prototype.xGb=function(){var k,l;this.wa.trace("Timeline changed");this.mva();this.Laa()?null === (l=this.Mr) || void 0 === l?void 0:l.Ka():null === (k=this.Mr) || void 0 === k?void 0:k.cd();};h.prototype.y1a=function(k){-1 === this.Em.indexOf(k) && this.PFc(k);};h.prototype.Job=function(k){var l,m,q;m=this.Fl.concat(this.Em);try{for(var p=n.__values(m),r=p.next();!r.done;r=p.next()){q=r.value;k >= q.displayTime + q.duration && this.zca(q);}}catch(v){var u;u={error:v};}finally{try{r && !r.done && (l=p.return) && l.call(p);}finally{if(u)throw u.error;}}};h.prototype.gJc=function(k){-1 === this.Fl.indexOf(k) && (this.Fl.push(k),-1 !== this.Em.indexOf(k) && (this.Em=this.Em.filter(function(l){return l !== k;})),this.HXa(k));};h.prototype.HXa=function(k){this.wa.trace("AseTimer:Showing",k.id);this.emit("showsubtitle",k);};h.prototype.PFc=function(k){this.wa.trace("AseTimer:Staging",k.id);this.Em.push(k);this.emit("stagesubtitle",k);};h.prototype.ml=function(){this.wa.trace("AseTimer:onUnderflow",this.Bm);this.Bm || (this.emit("underflow"),this.oJ.ml());};h.prototype.zca=function(k){this.wa.trace("AseTimer:Removing",k.id);-1 !== this.Em.indexOf(k) && (this.Em=this.Em.filter(function(l){return l !== k;}));-1 !== this.Fl.indexOf(k) && (this.emit("removesubtitle",k),this.Fl=this.Fl.filter(function(l){return l !== k;}));this.Uo=this.Uo.filter(function(l){return l !== k;});};h.prototype.nXa=function(){var k;this.Uo.length && (this.emit("bufferingComplete"),this.Laa() || (null === (k=this.Mr) || void 0 === k?void 0:k.cd()));};return h;})(f.EventEmitter);b.v5a=t;g=(function(){function e(h,k,l){void 0 === l && (l=!1);this.i6=h;this.wa=k;this.GIa=l;this.events=new f.EventEmitter();this.Bm=!1;}Object.defineProperty(e.prototype,"buffering",{get:function(){return this.Bm;},enumerable:!1,configurable:!0});e.prototype.WYa=function(){var h;h=this;this.wa.trace("AseTimer:Buffering watcher restart");this.Bm=!0;this.kJa && clearInterval(this.kJa);this.kJa=this.GIa?setInterval(function(){return h.check();},500):setInterval(function(){return h.check();},2E4);};e.prototype.ml=function(){this.wa.trace("AseTimer:Buffering watcher underflow");this.Bm=!0;this.Nob(1);};e.prototype.reset=function(){this.wa.trace("AseTimer:Buffering watcher reset");clearInterval(this.kJa);clearTimeout(this.H4b);this.Bm=!1;};e.prototype.Nob=function(h){var k;k=250 * (1 << h);2E3 < k && (k=2E3);this.check();this.Bm && (this.H4b=setTimeout(this.Nob.bind(this,h + 1),k));};e.prototype.check=function(){var h;h=this.i6();this.wa.trace("AseTimer:Buffering complete check",null === h || void 0 === h?void 0:h.length);null !== h && (this.reset(),this.events.emit("bufferingcomplete",{type:"bufferingcomplete",cN:h}));};return e;})();b.fUb=g;},18797:function(t,b,a){var q,u,v,w,x,y,A,z,B;function d(C,D){var F,H;F=this;H=C.styles || ({});return {startTime:D.startTime,id:D.id,endTime:D.endTime,displayTime:D.displayTime,duration:D.duration,blocks:D.blocks.map(function(E){var G;G=x.Ufc(C,E);return {textNodes:E.textNodes.map(r.bind(F,H)),region:G,id:E.id};})};}function n(C){if(!Array.isArray(C))throw Error("last called on non-array: " + C);return C[C.length - 1];}function c(C,D){var F,H,E,G,J,L;F=v.Le(!0);H={};E=[];G=null;J=[];L={};F.onerror=function(K){D(K,null);};F.onend=function(){D(null,H);};F.onclosetag=function(){E.pop();};F.onopentag=function(K){var M,P,I,O;M=K.attributes;P=K.name;I=H.regions;O=H.styles;E.push(K);if("tt" === P)H=l(M);else if("body" === P)"undefined" !== typeof M.style && (H.defaultStyle=M.style,J.push(M.style));else if("initial" === P && p(E,"styling"))(L=m(M,y),H.initialStyle=L);else if("style" === P && p(E,"styling")){I=M["xml:id"];K=L;M=m(M,y);if(Object.keys(K).length)for(var Q in K)"undefined" === typeof M[Q] && (M[Q]=K[Q]);O[I]=M;}else "style" === P && p(E,"region")?(O=Object.keys(M)[0],"string" === typeof O && (I[G][O.slice(4)]=M[O])):"region" === P && p(E,"layout") && (G=M["xml:id"],I[G]=m(M,z));};setTimeout(function(){var K;for(F.write(C);0 < E.length && !F.error;){K=n(E).name;F.write("");}F.close();},10);}function f(C,D){var F;F=C.filter(function(H){return H.startTime <= D && D <= H.endTime;});C=C.filter(function(H){return H.startTime > D;});return 0 < C.length?F.concat([C[0]]):F;}function g(){}function e(C){var D,F;D=C.od;F=C.wa;if(!C.xml && !C.request)throw Error("FullTextStream requires either a 'request' function or the 'xml' data");u.call(this);this.ti=this.cka=null;this.Hl="number" === typeof D?C.od:0;this.oP=C.xml || "";this.xa="object" === typeof F?C.wa:B;this.iP=C.request;this.Hg=C.url;this.Rb=[];this.Rn=this.Hl;this.kf=null;this.Hr=this.Uk=!1;this.LO=C.kda || 0;this.nP=C.T1a;}function h(){var C,D,F;C=this;D=C.oP.indexOf(" T.endTime?0:T.endTime;T.blocks=[{textNodes:[],region:T.region,id:O,extent:T.extent,origin:T.origin}];Q.call(E,T);}else n(E).blocks.push({textNodes:[],region:I.region,id:O,extent:I["tts:extent"] || null,origin:I["tts:origin"] || null});}else "span" === O?(G.push(I.style),I["xml:lang"] && J.push(I["xml:lang"]),P=F.styles[I.style],I.style && P && P.ruby && 0 <= ["container","baseContainer","textContainer"].indexOf(P.ruby) && n(n(E).blocks).textNodes.push({text:"",style:n(G),lang:n(J),lineBreaks:0})):"br" === O && H++;};M.write("").write(K).write("").close();}function l(C){var D;C=m(C,A);if("string" === typeof C.extent){D=C.extent.split(" ").map(function(F){return parseInt(F,10);});C.width=D[0];C.height=D[1];}else (C.width=1280,C.height=720);C.aspectRatio=C.width / C.height;"string" === typeof C.cellResolution?(D=C.cellResolution.split(" ").map(function(F){return parseInt(F,10);}),C.cellResolution={},C.cellResolution.x=D[0],C.cellResolution.y=D[1]):C.cellResolution={x:52,y:19};return C;}function m(C,D){var F;F={};D.forEach(function(H){"undefined" !== typeof C["tts:" + H]?F[H]=C["tts:" + H]:"undefined" !== typeof C["ttp:" + H]?F[H]=C["ttp:" + H]:"undefined" !== typeof C["ebutts:" + H]?F[H]=C["ebutts:" + H]:"undefined" !== typeof C["xml:" + H] && (F[H]=C["xml:" + H]);});F.styles={};F.regions={};return F;}function p(C,D){var F;for(F=C.length - 1;0 <= F;F--)if(C[F].name === D)return !0;return !1;}function r(C,D){return {lineBreaks:D.lineBreaks,text:D.text,lang:D.lang,style:this.nP.cgc(C[D.style] || ({}),this.cka),id:D.id};}q=a(4574).kK;u=a(22699).EventEmitter;v=a(60514);w=a(96379);x=a(81668);a(81824);a(81824);y=("color fontSize fontWeight fontStyle textAlign fontFamily backgroundColor textDecoration textOutline textCombine multiRowAlign direction ruby rubyAlign rubyPosition rubyReserve textEmphasis shear lineHeight").split(" ");A=("cellResolution pixelAspectRatio tickRate timeBase extent lang").split(" ");z=("backgroundColor displayAlign extent origin position writingMode multiRowAlign textAlign direction").split(" ");B={info:g,debug:g};b=Object.create(u.prototype);e.prototype=b;b.start=function(){var C;C=this;C.xa.info("incremental text stream created, starting at pts " + C.Hl);C.oP?h.call(C):C.iP({url:C.Hg},function(D,F){C.oP=F;h.call(C);});};b.OK=function(C){var D,F,H;D=this;C < D.Rn - D.LO && (D.Rb=[]);F=D.Rb;H=F.length?Math.max(F[F.length - 1].startTime,C):C;D.Rn=C;for(!D.kf && 5 > D.Rb.length && !D.Hr && (D.xa.info("buffer size: " + D.Rb.length + "; minimum: 5"),D.Hr=!0,D.kf=setTimeout(function(){D.kf=null;k.call(D,H + 1);},10));0 < F.length && F[0].endTime < C;)F.shift();F=f(F,C).map(d.bind(D,D.cka));C < D.ti.tub() && 0 === F.length && (F=null);return F;};b.Cq=function(C,D){return this.ti?this.ti.Cq(C,D):0;};b.close=function(){};t.exports={UBa:e,iHb:c,Md:n,epa:f,nna:d};},60514:function(t){var u,v,w,x,y,A,z,B,C,D,F,H,E,G,J,L,K;function b(){}function a(M,P){if(!(this instanceof a))return new a(M,P);for(var I=0,O=v.length;I < O;I++)this[v[I]]="";this.q=this.c=this.vq=this.textNode="";this.vX=u.qO;this.tf=P || ({});this.tf.WCb=this.tf.WCb || this.tf.J$c;this.MVa=this.tf.WCb?"toLowerCase":"toUpperCase";this.Mk=[];this.closed=this.RX=this.IT=!1;this.tag=this.error=null;this.Zq=!!M;this.wFb=!(!M && !this.tf.wFb);this.state=K.YU;this.QE=(this.HOb=this.tf.HOb)?Object.create(u.w1b):Object.create(u.QE);this.YJ=[];this.tf.mga && (this.qn=Object.create(G));if(this.uxa=!1 !== this.tf.position)this.position=this.line=this.lG=0;this.onready && this.onready(void 0);}function d(M,P){var I;if(!(this instanceof d))return new d(M,P);b.apply(this);this.Ge=new a(M,P);this.readable=this.writable=!0;I=this;this.Ge.onend=function(){I.emit("end");};this.Ge.onerror=function(O){I.emit("error",O);I.Ge.error=null;};w.forEach(function(O){Object.defineProperty(I,"on" + O,{get:function(){return I.Ge["on" + O];},set:function(Q){if(!Q)return (I.removeAllListeners(O),I.Ge["on" + O]=Q);I.on(O,Q);},enumerable:!0,configurable:!1});});}function n(M){return M.split("").reduce(function(P,I){P[I]=!0;return P;},{});}function c(M,P){return "[object RegExp]" === Object.prototype.toString.call(M)?!!P.match(M):M[P];}function f(M,P,I){M.textNode && g(M);M[P] && M[P](I);}function g(M){M.textNode=e(M.tf,M.textNode);M.textNode && M.ontext && M.ontext(M.textNode);M.textNode="";}function e(M,P){M.trim && (P=P.trim());M.normalize && (P=P.replace(/\s+/g," "));return P;}function h(M,P){g(M);M.uxa && (P+="\nLine: " + M.line + "\nColumn: " + M.lG + "\nChar: " + M.c);P=Error(P);M.error=P;M.onerror && M.onerror(P);return M;}function k(M){M.IT && !M.RX && l(M,"Unclosed root tag");M.state !== K.YU && M.state !== K.jza && M.state !== K.Ca && h(M,"Unexpected end");g(M);M.c="";M.closed=!0;M.onend && M.onend(void 0);a.call(M,M.Zq,M.tf);return M;}function l(M,P){if("object" !== typeof M || !(M instanceof a))throw Error("bad call to strictFail");M.Zq && h(M,P);}function m(M,P){var I,O;I=0 > M.indexOf(":")?["",M]:M.split(":");O=I[0];I=I[1];P && "xmlns" === M && (O="xmlns",I="");return {prefix:O,local:I};}function p(M){var P,I,O;M.Zq || (M.Jl=M.Jl[M.MVa]());if(-1 !== M.YJ.indexOf(M.Jl) || M.tag.attributes.hasOwnProperty(M.Jl))return M.Jl=M.Kl="";if(M.tf.mga){P=m(M.Jl,!0);I=P.local;if("xmlns" === P.prefix)if("xml" === I && M.Kl !== H)l(M,"xml: prefix must be bound to " + H + "\nActual: " + M.Kl);else if("xmlns" === I && M.Kl !== E)l(M,"xmlns: prefix must be bound to " + E + "\nActual: " + M.Kl);else {P=M.tag;O=M.Mk[M.Mk.length - 1] || M;P.qn === O.qn && (P.qn=Object.create(O.qn));P.qn[I]=M.Kl;}M.YJ.push([M.Jl,M.Kl]);}else (M.tag.attributes[M.Jl]=M.Kl,f(M,"onattribute",{name:M.Jl,value:M.Kl}));M.Jl=M.Kl="";}function r(M,P){var I,O,T,U,X,Y,W;if(M.tf.mga){I=M.tag;O=m(M.tagName);I.prefix=O.prefix;I.local=O.local;I.uri=I.qn[O.prefix] || "";I.prefix && !I.uri && (l(M,"Unbound namespace prefix: " + JSON.stringify(M.tagName)),I.uri=O.prefix);O=M.Mk[M.Mk.length - 1] || M;I.qn && O.qn !== I.qn && Object.keys(I.qn).forEach(function(Z){f(M,"onopennamespace",{prefix:Z,uri:I.qn[Z]});});O=0;for(var Q=M.YJ.length;O < Q;O++){T=M.YJ[O];U=T[0];X=T[1];Y=m(U,!0);T=Y.prefix;W="" == T?"":I.qn[T] || "";X={name:U,value:X,prefix:T,local:Y.local,uri:W};T && "xmlns" != T && !W && (l(M,"Unbound namespace prefix: " + JSON.stringify(T)),X.uri=T);M.tag.attributes[U]=X;f(M,"onattribute",X);}M.YJ.length=0;}M.tag.Z9c=!!P;M.IT=!0;M.Mk.push(M.tag);f(M,"onopentag",M.tag);P || (M.state=M.wFb || "script" !== M.tagName.toLowerCase()?K.Ca:K.cW,M.tag=null,M.tagName="");M.Jl=M.Kl="";M.YJ.length=0;}function q(M){var P,I,Q;if(M.tagName){if(M.An){if("script" !== M.tagName){M.An+="";M.tagName="";M.state=K.cW;return;}f(M,"onscript",M.An);M.An="";}P=M.Mk.length;I=M.tagName;M.Zq || (I=I[M.MVa]());for(var O=I;P--;)if(M.Mk[P].name !== O)l(M,"Unexpected close tag");else break;if(0 > P)(l(M,"Unmatched closing tag: " + M.tagName),M.textNode+="");else {M.tagName=I;for(I=M.Mk.length;I-- > P;){Q=M.tag=M.Mk.pop();M.tagName=M.tag.name;f(M,"onclosetag",M.tagName);for(var T in Q.qn);O=M.Mk[M.Mk.length - 1] || M;M.tf.mga && Q.qn !== O.qn && Object.keys(Q.qn).forEach(function(U){f(M,"onclosenamespace",{prefix:U,uri:Q.qn[U]});});}0 === P && (M.RX=!0);M.tagName=M.Kl=M.Jl="";M.YJ.length=0;}}else (l(M,"Weird empty close tag."),M.textNode+="");M.state=K.Ca;}u={Le:function(M,P){return new a(M,P);}};u.X2c=a;u.Y2c=d;u.zNa=function(M){return new d(M,void 0);};u.qO=65536;v=("comment sgmlDecl textNode tagName doctype procInstName procInstBody entity attribName attribValue cdata script").split(" ");u.pm=("text processinginstruction sgmldeclaration doctype comment attribute opentag closetag opencdata cdata closecdata error end ready script opennamespace closenamespace").split(" ");Object.create || (Object.create=function(M){function P(){this.__proto__=M;}P.prototype=M;return new P();});Object.getPrototypeOf || (Object.getPrototypeOf=function(M){return M.__proto__;});Object.keys || (Object.keys=function(M){var P,I;P=[];for(I in M)M.hasOwnProperty(I) && P.push(I);return P;});a.prototype={end:function(){k(this);},write:function(M){var Q,T,U,X,Y,W;if(this.closed)return h(this,"Cannot write after close. Assign an onready handler.");if(null === M)return k(this);if(this.error)throw this.error;for(var P=0,I;this.c=I=M.charAt(P++);)switch((this.uxa && (this.position++,"\n" === I?(this.line++,this.lG=0):this.lG++),this.state)){case K.YU:if((this.state=K.jza,"\ufeff" === I))continue;case K.jza:"<" === I?(this.state=K.gEa,this.E1a=this.position):c(x,I) || (l(this,"Non-whitespace before first tag."),this.textNode=I,this.state=K.Ca);continue;case K.Ca:if(this.IT && !this.RX){for(var O=P - 1;I && "<" !== I && "&" !== I;)(I=M.charAt(P++)) && this.uxa && (this.position++,"\n" === I?(this.line++,this.lG=0):this.lG++);this.textNode+=M.substring(O,P - 1);}"<" !== I || this.IT && this.RX && !this.Zq?(c(x,I) || this.IT && !this.RX || l(this,"Text data outside of root node."),"&" === I?this.state=K.ZGa:this.textNode+=I):(this.state=K.gEa,this.E1a=this.position);continue;case K.cW:"<" === I?this.state=K.Qfb:this.An+=I;continue;case K.Qfb:"/" === I?this.state=K.Bza:(this.An+="<" + I,this.state=K.cW);continue;case K.gEa:"!" === I?(this.state=K.nGa,this.Oy=""):c(x,I) || (c(J,I)?(this.state=K.Rcb,this.tagName=I):"/" === I?(this.state=K.Bza,this.tagName=""):"?" === I?(this.state=K.udb,this.Tua=this.iT=""):(l(this,"Unencoded <"),this.E1a + 1 < this.position && (I=Array(this.position - this.E1a).join(" ") + I),this.textNode+="<" + I,this.state=K.Ca));continue;case K.nGa:(this.Oy + I).toUpperCase() === D?(f(this,"onopencdata"),this.state=K.Jga,this.pq=this.Oy=""):"--" === this.Oy + I?(this.state=K.Pga,this.Oy=this.sq=""):(this.Oy + I).toUpperCase() === F?(this.state=K.Vga,(this.doctype || this.IT) && l(this,"Inappropriately located doctype declaration"),this.Oy=this.doctype=""):">" === I?(f(this,"onsgmldeclaration",this.Oy),this.Oy="",this.state=K.Ca):(c(z,I) && (this.state=K.Ufb),this.Oy+=I);continue;case K.Ufb:I === this.q && (this.state=K.nGa,this.q="");this.Oy+=I;continue;case K.Vga:">" === I?(this.state=K.Ca,f(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=I,"[" === I?this.state=K.Zza:c(z,I) && (this.state=K.t7a,this.q=I));continue;case K.t7a:this.doctype+=I;I === this.q && (this.q="",this.state=K.Vga);continue;case K.Zza:this.doctype+=I;"]" === I?this.state=K.Vga:c(z,I) && (this.state=K.s7a,this.q=I);continue;case K.s7a:this.doctype+=I;I === this.q && (this.state=K.Zza,this.q="");continue;case K.Pga:"-" === I?this.state=K.A6a:this.sq+=I;continue;case K.A6a:"-" === I?(this.state=K.z6a,(this.sq=e(this.tf,this.sq)) && f(this,"oncomment",this.sq),this.sq=""):(this.sq+="-" + I,this.state=K.Pga);continue;case K.z6a:">" !== I?(l(this,"Malformed comment"),this.sq+="--" + I,this.state=K.Pga):this.state=K.Ca;continue;case K.Jga:"]" === I?this.state=K.p6a:this.pq+=I;continue;case K.p6a:"]" === I?this.state=K.q6a:(this.pq+="]" + I,this.state=K.Jga);continue;case K.q6a:">" === I?(this.pq && f(this,"oncdata",this.pq),f(this,"onclosecdata"),this.pq="",this.state=K.Ca):"]" === I?this.pq+="]":(this.pq+="]]" + I,this.state=K.Jga);continue;case K.udb:"?" === I?this.state=K.wEa:c(x,I)?this.state=K.vEa:this.Tua+=I;continue;case K.vEa:if(!this.iT && c(x,I))continue;else "?" === I?this.state=K.wEa:this.iT+=I;continue;case K.wEa:">" === I?(f(this,"onprocessinginstruction",{name:this.Tua,body:this.iT}),this.Tua=this.iT="",this.state=K.Ca):(this.iT+="?" + I,this.state=K.vEa);continue;case K.Rcb:if(c(L,I))this.tagName+=I;else {this.Zq || (this.tagName=this.tagName[this.MVa]());O=this.Mk[this.Mk.length - 1] || this;Q=this.tag={name:this.tagName,attributes:{}};this.tf.mga && (Q.qn=O.qn);this.YJ.length=0;">" === I?r(this):"/" === I?this.state=K.nia:(!c(x,I) && l(this,"Invalid character in tag name"),this.state=K.WU);}continue;case K.nia:">" === I?(r(this,!0),q(this)):(l(this,"Forward-slash in opening tag not followed by >"),this.state=K.WU);continue;case K.WU:if(c(x,I))continue;else ">" === I?r(this):"/" === I?this.state=K.nia:c(J,I)?(this.Jl=I,this.Kl="",this.state=K.qga):l(this,"Invalid attribute name");continue;case K.qga:"=" === I?this.state=K.tya:">" === I?(l(this,"Attribute without value"),this.Kl=this.Jl,p(this),r(this)):c(x,I)?this.state=K.l4a:c(L,I)?this.Jl+=I:l(this,"Invalid attribute name");continue;case K.l4a:if("=" === I)this.state=K.tya;else if(c(x,I))continue;else (l(this,"Attribute without value"),this.Kl=this.tag.attributes[this.Jl]="",f(this,"onattribute",{name:this.Jl,value:""}),this.Jl="",">" === I?r(this):c(J,I)?(this.Jl=I,this.state=K.qga):(l(this,"Invalid attribute name"),this.state=K.WU));continue;case K.tya:if(c(x,I))continue;else c(z,I)?(this.q=I,this.state=K.wya):(l(this,"Unquoted attribute value"),this.state=K.xya,this.Kl=I);continue;case K.wya:if(I !== this.q){"&" === I?this.state=K.uya:this.Kl+=I;continue;}p(this);this.q="";this.state=K.m4a;continue;case K.m4a:c(x,I)?this.state=K.WU:">" === I?r(this):"/" === I?this.state=K.nia:c(J,I)?(l(this,"No whitespace between attributes"),this.Jl=I,this.Kl="",this.state=K.qga):l(this,"Invalid attribute name");continue;case K.xya:if(!c(C,I)){"&" === I?this.state=K.vya:this.Kl+=I;continue;}p(this);">" === I?r(this):this.state=K.WU;continue;case K.Bza:if(this.tagName)">" === I?q(this):c(L,I)?this.tagName+=I:this.An?(this.An+="" === I?q(this):l(this,"Invalid characters in closing tag");continue;case K.ZGa:case K.uya:case K.vya:switch(this.state){case K.ZGa:(T=K.Ca,U="textNode");break;case K.uya:T=K.wya;U="attribValue";break;case K.vya:(T=K.xya,U="attribValue");}if(";" === I){I=U;O=this[I];Q=this.vq;X=Q.toLowerCase();Y="";if(this.QE[Q])Q=this.QE[Q];else if(this.QE[X])Q=this.QE[X];else {Q=X;if("#" === Q.charAt(0))if("x" === Q.charAt(1)){Q=Q.slice(2);W=parseInt(Q,16);Y=W.toString(16);}else (Q=Q.slice(1),W=parseInt(Q,10),Y=W.toString(10));Q=Q.replace(/^0+/,"");Q=Y.toLowerCase() !== Q?(l(this,"Invalid character entity"),"&" + this.vq + ";"):String.fromCodePoint(W);}this[I]=O + Q;this.vq="";this.state=T;}else c(B,I)?this.vq+=I:(l(this,"Invalid character entity"),this[U]+="&" + this.vq + I,this.vq="",this.state=T);continue;default:throw Error(this,"Unknown state: " + this.state);}if(this.position >= this.vX){M=Math.max(u.qO,10);I=P=0;for(T=v.length;I < T;I++){U=this[v[I]].length;if(U > M)switch(v[I]){case "textNode":g(this);break;case "cdata":f(this,"oncdata",this.pq);this.pq="";break;case "script":f(this,"onscript",this.An);this.An="";break;default:h(this,"Max buffer length exceeded: " + v[I]);}P=Math.max(P,U);}this.vX=u.qO - P + this.position;}return this;},resume:function(){this.error=null;return this;},close:function(){return this.write(null);},flush:function(){g(this);"" !== this.pq && (f(this,"oncdata",this.pq),this.pq="");"" !== this.An && (f(this,"onscript",this.An),this.An="");}};w=u.pm.filter(function(M){return "error" !== M && "end" !== M;});d.prototype=Object.create(b.prototype,{constructor:{value:d}});d.prototype.write=function(M){this.Ge.write(M.toString());this.emit("data",M);return !0;};d.prototype.end=function(M){M && M.length && this.write(M);this.Ge.end();return !0;};d.prototype.on=function(M,P){var I;I=this;I.Ge["on" + M] || -1 === w.indexOf(M) || (I.Ge["on" + M]=function(){var O;O=1 === arguments.length?[arguments[0]]:Array.apply(null,arguments);O.splice(0,0,M);I.emit.apply(I,O);});return b.prototype.on.call(I,M,P);};x="\r\n\t ";y="0124356789";A="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";z="'\"";B=y + A + "#";C=x + ">";D="[CDATA[";F="DOCTYPE";H="http://www.w3.org/XML/1998/namespace";E="http://www.w3.org/2000/xmlns/";G={xml:H,mga:E};x=n(x);y=n(y);A=n(A);J=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;L=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;z=n(z);B=n(B);C=n(C);K=0;u.zr={YU:K++,jza:K++,Ca:K++,ZGa:K++,gEa:K++,nGa:K++,Ufb:K++,Vga:K++,t7a:K++,Zza:K++,s7a:K++,GZc:K++,Pga:K++,A6a:K++,z6a:K++,Jga:K++,p6a:K++,q6a:K++,udb:K++,vEa:K++,wEa:K++,Rcb:K++,nia:K++,WU:K++,qga:K++,l4a:K++,tya:K++,wya:K++,m4a:K++,xya:K++,uya:K++,vya:K++,Bza:K++,x6a:K++,cW:K++,Qfb:K++};u.w1b={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};u.QE={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(u.QE).forEach(function(M){var P;P=u.QE[M];P="number" === typeof P?String.fromCharCode(P):P;u.QE[M]=P;});for(K in u.zr)u.zr[u.zr[K]]=K;K=u.zr;String.fromCodePoint || (function(){var P,I;function M(){var O,Q,T,X,Y;O=[];Q=-1;T=arguments.length;if(!T)return "";for(var U="";++Q < T;){X=Number(arguments[Q]);if(!isFinite(X) || 0 > X || 1114111 < X || I(X) != X)throw RangeError("Invalid code point: " + X);if(65535 >= X)O.push(X);else {X-=65536;Y=(X >> 10) + 55296;X=X % 1024 + 56320;O.push(Y,X);}if(Q + 1 == T || 16384 < O.length)(U+=P.apply(null,O),O.length=0);}return U;}P=String.fromCharCode;I=Math.floor;Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M;})();t.exports=u;},11946:function(t){t.exports=function(){var b;for(b=0;b < arguments.length;b++)if("undefined" !== typeof arguments[b] && null !== arguments[b])return arguments[b];return null;};},81668:function(t,b,a){var f,g,e,h,k,l,m,p;function d(r){return "string" !== typeof r?null:g[r];}function n(r){return "string" !== typeof r?null:k[r];}function c(r,q){var u;u=r.split(" ");r=u[0];u=u[1];-1 < r.indexOf("px")?(r=parseFloat(r) / q.width,u=parseFloat(u) / q.height):(r=.01 * parseFloat(r),u=.01 * parseFloat(u));return [r,u];}f=a(11946);t.exports={Ufc:function(r,q){var u,v,w,x,y,A,H;u=q.textNodes[0] || ({});v=r.regions;w=r.styles;x=r.aspectRatio;y=r.initialStyle || ({});v=v && v[q.region]?v[q.region]:{};w=w && w[u.style]?w[u.style]:{};u=u.lang;A=c(f(q.extent,v.extent,"80% 80%"),r);if(v.position){for(var z=v.position.split(" "),B=[.5,.5],C=["left","top"],D=0,F=0;F < z.length;F++){H=z[F];(H in m)?(C[D]=H,F + 1 >= z.length && (B[D++]=0)):"center" === H?B[D++]=.5:B[D++]=.01 * parseFloat(H);}-1 < ["top","bottom"].indexOf(C[0]) || -1 < ["left","right"].indexOf(C[1])?(D="bottom" === C[0]?1 - B[0]:B[0],z="right" === C[1]?1 - B[1]:B[1]):(z="right" === C[0]?1 - B[0]:B[0],D="bottom" === C[1]?1 - B[1]:B[1]);B=[(1 - A[0]) * z,(1 - A[1]) * D];}else B=null;q=B?B:c(f(B,q.origin,v.origin,"10% 10%"),r);r=Object;x/=1280 / 720;B=(1 - x) / 2;C=q[0];q=q[1];A=r.create.call(r,{marginLeft:C * x + B,marginTop:q,marginRight:(1 - (C + A[0])) * x + B,marginBottom:1 - (q + A[1])});x=v.writingMode?v.writingMode:"lrtb";A.writingMode="string" !== typeof x?null:l[x];1 < Object.keys(v).length?(x=f(w.displayAlign,v.displayAlign,"before"),"tblr" === v.writingMode || "tbrl" === v.writingMode?(A.horizontalAlignment="string" !== typeof x?null:"tblr" === v.writingMode?e[x]:h[x],A.verticalAlignment=d(f(w.textAlign,v.textAlign,"start"))):A.verticalAlignment=d(x)):A.verticalAlignment=d(f(w.displayAlign,"after"));"horizontal-tb" === A.writingMode && (A.horizontalAlignment=n(f(w.textAlign,v.textAlign,y.textAlign,"center")));A.multiRowAlignment=n(f(w.multiRowAlign,v.multiRowAlign,w.textAlign,v.textAlign,y.textAlign,u && "ja" === u.slice(0,2)?"start":"center"));y=f(v.direction,v.writingMode);A.direction="string" !== typeof y?null:p[y];return A;}};g={before:"top",start:"top",center:"center",after:"bottom",end:"bottom"};e={before:"left",center:"center",after:"right"};h={before:"right",center:"center",after:"left"};k={left:"left",start:"start",center:"center",right:"right",end:"end"};l={lrtb:"horizontal-tb",rltb:"horizontal-tb",tblr:"vertical-lr",tbrl:"vertical-rl"};m={top:"top",bottom:"bottom",left:"left",right:"right"};p={ltr:"ltr",rtl:"rtl",lrtb:"ltr",rltb:"rtl"};},81824:function(t,b){var a,d,n,c;Object.defineProperty(b,"__esModule",{value:!0});t={NONE:0,SEMI_TRANSPARENT:.5,OPAQUE:1};a={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",magenta:"#ff00ff",green:"#00ff00",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",cyan:"#00ffff",orange:"#ffa500",pink:"#ffc0cb",transparent:null};d={"default":"PROPORTIONAL_SANS_SERIF",monospaceSansSerif:"MONOSPACED_SANS_SERIF",monospaceSerif:"MONOSPACED_SERIF",proportionalSansSerif:"PROPORTIONAL_SANS_SERIF",proportionalSerif:"PROPORTIONAL_SERIF",casual:"CASUAL",cursive:"CURSIVE",smallCapitals:"SMALL_CAPITALS",monospace:"MONOSPACED_SANS_SERIF",sansSerif:"PROPORTIONAL_SANS_SERIF",serif:"PROPORTIONAL_SERIF"};n={SMALL:.5,"SMALL-MEDIUM":.8,MEDIUM:1,"MEDIUM-LARGE":1.3,LARGE:2};c={MEDIUM:{MONOSPACED_SANS_SERIF:2,MONOSPACED_SERIF:2},SMALL:{MONOSPACED_SANS_SERIF:1,MONOSPACED_SERIF:1}};b.USc={Aob:n,xpb:a,cvb:d,DGb:t,sizeScaleMap:{MEDIUM:{MONOSPACED_SANS_SERIF:1.37,MONOSPACED_SERIF:1.15},SMALL:{MONOSPACED_SANS_SERIF:1.37,MONOSPACED_SERIF:1.15}},M2a:c};b.Ozc={Aob:n,xpb:a,cvb:d,DGb:t,sizeScaleMap:{},M2a:c};},7376:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p;Object.defineProperty(b,"__esModule",{value:!0});b.ahb=void 0;d=a(22970);n=d.__importDefault(a(11946));c=("start center end spaceAround spaceBetween withBase").split(" ");f=["before","after","both","outside"];g=["before","after","outside"];e=["filled","open"];h=["circle","dot","sesame"];k=["none","auto"];l=["before","after","outside"];m=("container base baseContainer text textContainer delimiter").split(" ");p=["characterStyle","characterSize"];t=(function(){function r(q,u,v,w){this.Bb=q;this.ev=u;this.S2b=w;this.jv=this.jtc(v);}r.prototype.cgc=function(q,u){var v,w,x;v=(0,n.default)(this.jv.characterSize,this.ev.characterSize,"MEDIUM");w=(0,n.default)(this.jv.characterStyle,this.cnc(q.fontFamily),this.ev.characterStyle,"PROPORTIONAL_SANS_SERIF");x=this.TGc(q.fontSize);return {characterUnderline:"underline" === q.textDecoration,characterItalic:"italic" === q.fontStyle,characterStyle:w,windowOpacity:this.SXa((0,n.default)(this.jv.windowOpacity,this.ev.windowOpacity,"OPAQUE")),characterOpacity:this.SXa((0,n.default)(this.jv.characterOpacity,this.ev.characterOpacity,"OPAQUE")),backgroundOpacity:this.SXa((0,n.default)(this.jv.backgroundOpacity,q.opacity,this.ev.backgroundOpacity,"OPAQUE")),characterColor:this.h8((0,n.default)(this.jv.characterColor,q.color,this.ev.characterColor,"#ffffff")),backgroundColor:this.h8((0,n.default)(this.jv.backgroundColor,q.backgroundColor,this.ev.backgroundColor,null)),windowColor:this.h8((0,n.default)(this.jv.windowColor,q.windowColor,this.ev.windowColor,null)),characterEdgeAttributes:(0,n.default)(this.jv.characterEdgeAttributes,this.ev.characterEdgeAttributes,null),characterSize:this.Gac(v,w,x),characterTracking:this.Hac(v,w),characterEdgeWidth:(0,n.default)(this.v$b(q.textOutline),0),characterEdgeBlur:(0,n.default)(this.t$b(q.textOutline),0),characterEdgeColor:this.h8((0,n.default)(this.jv.characterEdgeColor,this.u$b(q.textOutline),this.ev.characterEdgeColor,"#000000")),direction:(0,n.default)(this.jv.direction,q.direction,this.ev.direction,"ltr"),ruby:(0,n.default)(this.$ta(q.ruby,m),null),rubyAlign:(0,n.default)(this.$ta(q.rubyAlign,c),null),rubyPosition:(0,n.default)(this.$ta(q.rubyPosition,g),null),rubyReserve:(0,n.default)(this.$ta(q.rubyReserve,f),null),textEmphasis:this.pHc(q.textEmphasis),shear:q.shear?.01 * parseFloat(q.shear):null,textCombine:q.textCombine?q.textCombine:null,lineHeight:q.lineHeight?this.YGc(q.lineHeight,u):null};};r.prototype.YGc=function(q,u){var v;v=q.match(/^([\d\.]+)([a-z%]*)$/i);if(!v)return null;q=parseFloat(v[1]);switch(v[2]){case "rh":(null === u || void 0 === u?0:u.height)?(q*=u.height,u="px"):u=v[2];break;case "rw":(null === u || void 0 === u?0:u.width)?(q*=u.width,u="px"):u=v[2];break;default:u=v[2];}return {value:q,Kh:u};};r.prototype.SXa=function(q){return this.Bb.DGb[q];};r.prototype.h8=function(q){return "string" !== typeof q || "#" === q[0] && 7 === q.length?q:"#" === q[0] && 4 === q.length?"#" + q[1] + q[1] + q[2] + q[2] + q[3] + q[3]:this.Bb.xpb[q.toLowerCase()];};r.prototype.cnc=function(q){return "string" !== typeof q?null:this.Bb.cvb[q];};r.prototype.Gac=function(q,u,v){var w;v*=this.Bb.Aob[q] || 1;w=1;this.Bb.sizeScaleMap[q] && (w=this.Bb.sizeScaleMap[q][u] || 1);return 1 / 19 * v * w;};r.prototype.Hac=function(q,u){var v;v=0;this.Bb.M2a[q] && (v=this.Bb.M2a[q][u] || 0);return v;};r.prototype.v$b=function(q){return "string" !== typeof q?null:this.oYa(q).width;};r.prototype.t$b=function(q){return "string" !== typeof q?null:this.oYa(q).blur;};r.prototype.u$b=function(q){return "string" !== typeof q?null:this.oYa(q).color;};r.prototype.oYa=function(q){var u,v,w;q=(q || "").split(" ");u=(/^[0-9]/).test(q[0]);v=u?0:1;w=parseInt(q[v]);v=parseInt(q[v + 1]);return {color:u?"#000000":this.h8(q[0]),width:0 < w?w:0,blur:0 < v?v:0};};r.prototype.TGc=function(q){q=(q || "").split(" ")[0] || "";return -1 < q.indexOf("%")?parseInt(q,10) / 100:-1 < q.indexOf("em")?parseFloat(q):1;};r.prototype.$ta=function(q,u){if(-1 < u.indexOf(q))return q;};r.prototype.pHc=function(q){var u,v;if(!q)return null;q=q.split(" ");if(0 === q.length)return null;u=this.Uoa(q,l);u=u.length?u[0]:"outside";v=this.Uoa(q,k);if(v.length)return this.U0a(v[0],"",u);v=this.Uoa(q,e);q=this.Uoa(q,h);return q.length || v.length?this.U0a(q.length?q[0]:"circle",v.length?v[0]:"filled",u):this.U0a("auto","",u);};r.prototype.Uoa=function(q,u){return q.filter(function(v){return -1 !== u.indexOf(v);});};r.prototype.U0a=function(q,u,v){return {textEmphasisShape:q,textEmphasisFill:u,textEmphasisPosition:v};};r.prototype.ZTa=function(q){return q && 0 === Object.keys(q).length;};r.prototype.jtc=function(q){var u,v,y;if(this.S2b){v={};try{for(var w=d.__values(p),x=w.next();!x.done;x=w.next()){y=x.value;void 0 !== q[y] && (v[y]=q[y]);}}catch(z){var A;A={error:z};}finally{try{x && !x.done && (u=w.return) && u.call(w);}finally{if(A)throw A.error;}}return v;}return q;};return r;})();b.ahb=t;},96379:function(t,b,a){var n;function d(c,f){var g,e,h,k,l,m,p,r;this.IIa=!0;g=c.indexOf(" k?p:k;l.startTime=m;l.endTime=p;l.latestEndSoFar=k;l.ytb=c.indexOf("/p>",h) + 3;h=l.ytb;e.push(l);h=c.indexOf("= c;}).length;};d.prototype.drc=function(c){for(var f="",g=this.fv.filter(function(h){return h.startTime <= c && c < h.endTime || h.startTime >= c;}),e=4;e + 1 < g.length && g[e + 1].startTime === g[4].startTime;)e++;g=g.slice(0,e + 1);0 < g.length && (f=this.oP.slice(g[0].BRc,g[g.length - 1].ytb));return f;};t.exports=d;},23309:function(t,b,a){var d,n;Object.defineProperty(b,"__esModule",{value:!0});b.Sha=b.Oab=b.d5=void 0;d=a(91176);b.d5=1E4;t=(function(){function c(f){this.oh=[];this.s6=0;this.xa=f;}Object.defineProperty(c.prototype,"endOfStreamSegment",{get:function(){return this.s2b;},enumerable:!1,configurable:!0});c.prototype.hR=function(f){return (0,d.cc)(this.oh,function(g){return f >= g.Gb && f < g.Lg;});};c.prototype.qKa=function(f,g){var h;for(var e=this.oh;0 < e.length && 300 <= f.L - e[0].L;)this.fea();for(;0 < e.length && 300 <= e[e.length - 1].L - f.L;)this.g0a();h=new n(f,g);f=e.length;if(0 === f || e[f - 1].L < h.L)this.h0a(h);else {f=(0,d.cc)(e,function(k){return k.L >= h.L;});if((null === f || void 0 === f?void 0:f.L) === h.L)return;this.i0a(e.indexOf(f),h);}h.endOfStream && (this.xa.trace("EOS segment added to segment manager"),this.s2b=h);this.s6=e[e.length - 1].L;};c.prototype.Hfa=function(f){var g;if("undefined" === typeof f)this.xa.warn("Current segment is undefined.");else for((this.aq=f,this.xa.trace(("Current segment id is ").concat(f.L)));(null === (g=this.oh[0]) || void 0 === g?void 0:g.Lg) < f.Lg - b.d5;)this.fea();};c.prototype.GRa=function(){if(this.gv){if(this.s6 !== this.gv.L)return this.oh[this.oh.indexOf(this.gv) + 1];}else return this.oh[0];};c.prototype.RB=function(f){this.gv=this.ZC(f);};c.prototype.ZC=function(f){var g;g=(0,d.cc)(this.oh,function(e){return e.L === f;});"undefined" === typeof g && this.xa.error("Segment with segmentId " + f + " is not in segmentArray");return g;};c.prototype.v$=function(){var f;return (null === (f=this.gv) || void 0 === f?void 0:f.L) || -1;};c.prototype.n3a=function(f,g){f=this.ZC(f);"undefined" !== typeof f && (this.oh[this.oh.indexOf(f)].header=g);};c.prototype.Mxb=function(f){return this.ZC(f);};c.prototype.cRa=function(f){f=this.ZC(f);return (null === f || void 0 === f?void 0:f.header) || ({});};c.prototype.fea=function(){this.oh.shift();};c.prototype.h0a=function(f){this.oh.push(f);};c.prototype.i0a=function(f,g){this.oh.splice(f,0,g);};c.prototype.g0a=function(){this.oh.pop();};return c;})();b.Oab=t;n=(function(){return function(c,f){this.L=c.L;this.xml=c.xml;this.Gb=c.Gb;this.Lg=c.Lg;this.pR=f;this.size=c.size;this.By=c.By;this.endOfStream=c.endOfStream;};})();b.Sha=n;},51665:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.Qab=void 0;d=a(22970);t=(function(n){function c(f,g){g=n.call(this,f,g) || this;g.xml=f.xml;g.size=f.size;return g;}d.__extends(c,n);return c;})(a(23309).Sha);b.Qab=t;},37494:function(t,b,a){var d,n,c,f,g,e,h;Object.defineProperty(b,"__esModule",{value:!0});b.Rab=void 0;d=a(22970);t=a(22699);n=a(18797);c=a(60514);f=a(23309);g=a(4574);e=a(4574);h=t.EventEmitter;a=(function(k){function l(m){var p,r,q;p=k.call(this) || this;r=m.od;q=m.wa;h.call(p);p.PF=new g.ECa(q);p.Hl="number" === typeof r?m.od:0;p.xa="object" === typeof q?m.wa:console;p.Rb=[];p.Sk=0;p.Rn=p.Hl;p.kf=null;p.Uk=!1;p.Hr=!1;p.LO=m.kda || 0;p.Fe=new f.Oab(p.xa);p.nP=m.T1a;p.xa.trace("LiveTextStream created with options",m);return p;}d.__extends(l,k);l.prototype.start=function(){this.xa.info(("Incremental live text stream created, starting at pts ").concat(this.Hl));"undefined" !== typeof this.Fe.hR(this.Hl) && this.IS.call(this,this.Hl);};l.prototype.GZa=function(m){var p,r,q,u;p=this;r=m.xml;q=r.indexOf(" this.Sk && (r=0 < this.Rb.length?this.Rb[this.Rb.length - 1].startTime + 1:this.Hl,this.xa.trace("parseNextSegment is called from push new live Segment at " + r),this.IS.call(this,r))):(this.xa.trace(("Live segment ").concat(m.L," is pushed to segment manager, it is an empty segment")),this.Uk || setTimeout(function(){p.RB(m.L);},10));};l.prototype.OK=function(m){var p,r,q,u,v,w;p=this;u=this;u.xa.trace(("LiveTextStream:get subtitles at pts ").concat(m));v=u.Fe.hR(m);if("undefined" === typeof v)return (u.xa.debug(("LiveTextStream: get subtitle at pts ").concat(m," returns empty result with segment not available at this pts")),[]);u.Fe.Hfa(v);m < u.Rn - u.LO?(u.xa.trace(("Pts is less than backup tolerance, resetting buffer. pts: ").concat(m),(", _lastPts: ").concat(u.Rn,", _backupTolerance: ").concat(u.LO)),u.Rb=[],u.Sk=0):(u.Sk=0 < u.Rb.length?Math.max(u.Fe.v$() - v.L + 1,0):0,0 === u.Sk && (u.Rb=[]));v=u.Rb;u.xa.trace(("LiveTextStream: lastBufferedPts calculation ").concat(m),(", buffer.length: ").concat(v.length,", result: ").concat(0 < v.length?null === (r=v[v.length - 1]) || void 0 === r?void 0:r.startTime:m));r=this.Fe.gv;w=0 < v.length && void 0 !== r?r.Gb:m;u.Rn=m;u.xa.info("LiveTextStream: timer is " + u.kf + " bufffered segment number is " + u.Sk + " is parsing entry : " + this.Hr + " maxBufferedStartPts " + (null === (q=this.Fe.gv) || void 0 === q?void 0:q.Gb));for(!u.kf && 3 > u.Sk && !u.Hr && (u.xa.info("LiveTextStream: buffer size: " + u.Sk + "; minimum: 3"),u.Hr=!0,u.kf=setTimeout(function(){u.kf=null;p.xa.trace("parseNextSegment is called from getCurrentAndNextSubtitle at " + (w + 1));p.IS.call(u,w + 1);},10));0 < v.length && v[0].endTime < m;)v.shift();return (0,n.epa)(v,m).map(function(x){var y;y=u.Fe.cRa(x.segId);return n.nna.call(u,y,x);});};l.prototype.Cq=function(m,p){return this.PF?this.PF.Cq(m,p):0;};l.prototype.close=function(){};l.prototype.IS=function(m){var p;p=this.DRa.call(this,m);"undefined" !== typeof p?(this.xa.trace("Next segment to parse at pts " + m + " is segment " + p.L),0 === p.pR?(this.xa.trace("This is an empty segment"),this.RB(p.L)):(this.mYa.call(this,p),this.xa.trace("parseNextSegEntries buffer length: " + this.Rb.length))):(this.xa.debug("Next segment is undefined at pts " + m),this.Hr=!1);};l.prototype.DRa=function(m){var p,r;r=this.PF.cxb(m);this.xa.trace(("Most recent entry at current pts ").concat(m," is segment id ").concat(r));-1 === r && (r=(null === (p=this.Fe.hR(m)) || void 0 === p?void 0:p.L) || -1);return r === this.Fe.v$()?this.Fe.GRa():this.Fe.ZC(r);};l.prototype.mYa=function(m){var p,r,q,u,v;p=this;r=this;q=m.xml.slice(0,m.pR);u=m.xml.slice(m.pR,m.xml.lastIndexOf("/p>") + 3);(0,n.iHb)(q,function(w,x){null !== w?(w.Wyb=q,w.L=m.L,r.emit("error",w)):(v=x,r.Fe.n3a(m.L,v),p.iYa.call(r,u,v,m));});};l.prototype.iYa=function(m,p,r){var q,u,v,w,x,y,A;q=this;u=this;v=0;w=[];x=p.defaultStyle?[p.defaultStyle]:[];y=p.lang?[p.lang]:[];u.xa.debug(m);A=c.Le(!0);A.onerror=function(z){z.xml=m;u.emit("error",z);};A.onend=function(){var z;z=u.Rb.reduce(function(B,C){C=C.blocks.reduce(function(D,F){return D.concat([F.id]);},[]);return B.concat(C);},[]);w.forEach(function(B){var C;if(-1 === z.indexOf(B.id)){C=B && B.blocks && B.blocks.filter(function(D){return 0 < D.textNodes.length;});C && 0 < C.length && (B.blocks=C,u.Rb.push(B));}});q.RB(r.L);};A.ontext=function(z){("" !== z.trim() || z.match(/ +/)) && (0,n.Md)((0,n.Md)(w).blocks).textNodes.push({text:z.match(/ +/)?z:z.trim(),style:(0,n.Md)(x),lang:(0,n.Md)(y),lineBreaks:v});v=0;};A.onclosetag=function(){var z;z=A.tag;"undefined" !== typeof z.attributes.style && x.pop();"undefined" !== typeof z.attributes["xml:lang"] && y.pop();};A.onopentag=function(z){var B,C;B=z.attributes;z=z.name;if("p" === z){v=0;z=r.L.toString() + "_" + B["xml:id"];B.style && x.push(B.style);B["xml:lang"] && y.push(B["xml:lang"]);C=(0,e.kK)(B.begin);0 === w.length || (0,n.Md)(w).displayTime !== C?(B=q.nNa(z,0,B,r.By),B.segId=r.L,w.push(B)):(0,n.Md)(w).blocks.push({textNodes:[],region:B.region,id:z,extent:B["tts:extent"] || null,origin:B["tts:origin"] || null});}else "span" === z?(x.push(B.style),B["xml:lang"] && y.push(B["xml:lang"]),z=p.styles[B.style],B.style && z && z.ruby && 0 <= ["container","baseContainer","textContainer"].indexOf(z.ruby) && (0,n.Md)((0,n.Md)(w).blocks).textNodes.push({text:"",style:(0,n.Md)(x),lang:(0,n.Md)(y),lineBreaks:0})):"br" === z && v++;};A.write("").write(m).write("").close();};l.prototype.nNa=function(m,p,r,q){var u;u={};u.id=m;u.startTime=(0,e.kK)(r.begin || "") - q;u.endTime=(0,e.kK)(r.end || "") - q;u.style=r.style;u.region=r.region;u.displayTime=u.startTime;u.duration=u.endTime - u.startTime;u.extent=r["tts:extent"] || null;u.origin=r["tts:origin"] || null;u.latestEndSoFar=p > u.endTime?p:u.endTime;u.blocks=[{textNodes:[],region:u.region,id:m,extent:u.extent || null,origin:u.origin || null}];return u;};l.prototype.RB=function(m){this.Fe.RB(m);this.Sk+=1;this.Hr=!1;this.xa.trace("updateMaxParsedSegment " + m);if(!this.Uk && 3 <= this.Sk || this.Fe.dPa && this.Fe.Mxb(m) === this.Fe.dPa)(this.Fe.dPa && this.Fe.Mxb(m) === this.Fe.dPa && this.xa.trace("Marking stream ready due to EOS"),this.Uk=!0,this.emit("ready"));};return l;})(h);b.Rab=a;},4574:function(t,b,a){var n,c;function d(f){var g;f=f.split(".");g=f[0].split(":").map(function(e){return parseInt(e,0);});return (3600 * g[0] + 60 * g[1] + g[2]) * c + parseInt(f[1]);}Object.defineProperty(b,"__esModule",{value:!0});b.ECa=void 0;b.kK=d;n=a(91176);c=1E3;t=(function(){function f(g){this.fv=[];this.xa=g;}f.prototype.Klb=function(g,e,h){var k,l,m,p,r,q;void 0 === h && (h=0);k=this.fv;l=g.indexOf(" m?q:m;p.startTime=r;p.endTime=q;p.latestEndSoFar=m;p.jlc=g.indexOf("/p>",l) + 3;l=p.jlc;if(0 === k.length || p.startTime > k[k.length - 1].startTime)(k.push(p),this.xa.trace("LiveTtmlIndex: entry is pushed to the end",{startTime:p.startTime,Xkc:p.endTime}));else if((q=(0,n.cc)(k,function(u){return u.startTime >= p.startTime;}),q.startTime !== p.startTime || q.LNb !== p.LNb))(q=k.indexOf(q),k.splice(q,0,p),this.xa.trace(("LiveTtmlIndex: entry is pushed at index number ").concat(q),{startTime:p.startTime,Xkc:p.endTime}));l=g.indexOf("= g;}).length;};f.prototype.zZa=function(g){this.fv=this.fv.filter(function(e){return e.startTime >= g;});};f.prototype.cxb=function(g){var e;e=(0,n.cc)(this.fv,function(h){return h.startTime <= g && g < h.endTime || h.startTime >= g;});return (null === e || void 0 === e?void 0:e.L) || -1;};f.prototype.tub=function(){return 0 < this.fv.length?this.fv[this.fv.length - 1].endTime:0;};return f;})();b.ECa=t;},97115:function(t,b,a){var d;Object.defineProperty(b,"__esModule",{value:!0});b.Sha=b.Dcb=b.d5=void 0;d=a(91176);b.d5=1E4;t=(function(){function n(c){this.oh=[];this.s6=0;this.xa=c;}n.prototype.hR=function(c){var f;f=(0,d.cc)(this.oh,function(g){return c >= g.Gb && c < g.Lg;});"undefined" === typeof f && this.xa.warn("Get Segment at pts " + c + " is undefined");return f;};n.prototype.qKa=function(c){var g;for(var f=this.oh;0 < f.length && 300 <= c.L - f[0].L;)this.fea();for(;0 < f.length && 300 <= f[f.length - 1].L - c.L;)this.g0a();g=f.length;if(0 === g || f[g - 1].L < c.L)this.h0a(c);else {g=(0,d.cc)(f,function(e){return e.L >= c.L;});if((null === g || void 0 === g?void 0:g.L) === c.L)return;this.i0a(f.indexOf(g),c);}this.s6=f[f.length - 1].L;};n.prototype.Hfa=function(c){var f;if("undefined" === typeof c)this.xa.warn("Current segment is undefined.");else for((this.aq=c,this.xa.trace(("Current segment id is ").concat(c.L)));(null === (f=this.oh[0]) || void 0 === f?void 0:f.Lg) < c.Lg - b.d5;)this.fea();};n.prototype.GRa=function(){if(this.gv){if(this.s6 !== this.gv.L)return this.oh[this.oh.indexOf(this.gv) + 1];}else return this.oh[0];};n.prototype.RB=function(c){this.gv=this.ZC(c);};n.prototype.ZC=function(c){var f;f=(0,d.cc)(this.oh,function(g){return g.L === c;});"undefined" === typeof f && this.xa.error("Segment with segmentId " + c + " is not in segmentArray");return f;};n.prototype.v$=function(){var c;return (null === (c=this.gv) || void 0 === c?void 0:c.L) || -1;};n.prototype.n3a=function(c,f){c=this.ZC(c);"undefined" !== typeof c && (this.oh[this.oh.indexOf(c)].header=f);};n.prototype.cRa=function(c){c=this.ZC(c);return (null === c || void 0 === c?void 0:c.header) || ({});};n.prototype.fea=function(){this.oh.shift();};n.prototype.h0a=function(c){this.oh.push(c);};n.prototype.i0a=function(c,f){this.oh.splice(c,0,f);};n.prototype.g0a=function(){this.oh.pop();};return n;})();b.Dcb=t;b.Sha=(function(){return function(n,c){this.L=n.L;this.xml=n.xml;this.Gb=n.Gb;this.Lg=n.Lg;this.pR=c;this.By=n.By;};})();},76851:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperty(b,"__esModule",{value:!0});b.Ecb=void 0;d=a(22970);t=a(22699);n=a(18797);c=a(76495);f=a(51665);g=a(4574);e=a(97115);h=a(74528);k=t.EventEmitter;a=(function(l){function m(p,r){var q,u,v;void 0 === r && (r=c.X4.Ca);q=l.call(this) || this;u=p.od;v=p.wa;k.call(q);q.PF=new g.ECa(v);q.Hl="number" === typeof u?p.od:0;q.xa="object" === typeof v?p.wa:console;q.Rb=[];q.Sk=0;q.Rn=q.Hl;q.kf=null;q.Uk=!1;q.Hr=!1;q.LO=p.kda || 0;q.Fe=new e.Dcb(q.xa);q.nP=p.T1a;q.Ckb=r;if(r === c.X4.Ca)q.AJa=new h.rgb(q.xa,q.nP);else throw Error("Not implemented yet");q.xa.trace("LiveTextStream created with options",p);return q;}d.__extends(m,l);m.prototype.start=function(){this.xa.info(("Incremental live text stream created, starting at pts ").concat(this.Hl));"undefined" !== typeof this.Fe.hR(this.Hl) && this.IS.call(this,this.Hl);};m.prototype.GZa=function(p){var r,q,u,v;r=this;q=p.xml;u=q.indexOf(" this.Sk && (q=0 < this.Rb.length?this.Rb[this.Rb.length - 1].startTime + 1:this.Hl,this.xa.trace("parseNextSegment is called from push new live Segment at " + q),this.IS.call(this,q))):(this.xa.trace(("Live segment ").concat(v.L," is pushed to segment manager, it is an empty segment")),this.Uk || setTimeout(function(){r.RB(v.L);},10));};m.prototype.OK=function(p){var r,q,u,v,w,x;r=this;v=this;v.xa.trace(("LiveTextStream:get subtitles at pts ").concat(p));w=v.Fe.hR(p);if("undefined" === typeof w)return (v.xa.debug(("LiveTextStream: get subtitle at pts ").concat(p," returns empty result with segment not available at this pts")),[]);v.Fe.Hfa(w);p < v.Rn - v.LO?(v.xa.trace(("Pts is less than backup tolerance, resetting buffer. pts: ").concat(p),(", _lastPts: ").concat(v.Rn,", _backupTolerance: ").concat(v.LO)),v.Rb=[],v.Sk=0):(v.Sk=0 < v.Rb.length?Math.max(v.Fe.v$() - w.L + 1,0):0,0 === v.Sk && (v.Rb=[]));w=v.Rb;v.xa.trace(("LiveTextStream: lastBufferedPts calculation ").concat(p),(", buffer.length: ").concat(w.length,", result: ").concat(0 < w.length?null === (q=w[w.length - 1]) || void 0 === q?void 0:q.startTime:p));q=this.Fe.gv;x=0 < w.length && void 0 !== q?q.Gb:p;v.Rn=p;v.xa.info("LiveTextStream: timer is " + v.kf + " bufffered segment number is " + v.Sk + " is parsing entry : " + this.Hr + " maxBufferedStartPts " + (null === (u=this.Fe.gv) || void 0 === u?void 0:u.Gb));for(!v.kf && 4 > v.Sk && !v.Hr && (v.xa.info("LiveTextStream: buffer size: " + v.Sk + "; minimum: 4"),v.Hr=!0,v.kf=setTimeout(function(){v.kf=null;r.xa.trace("parseNextSegment is called from getCurrentAndNextSubtitle at " + (x + 1));r.IS.call(v,x + 1);},10));0 < w.length && w[0].endTime < p;)w.shift();return this.AJa.epa(w,p).map(function(y){var A;A=v.Fe.cRa(y.segId);return r.AJa.nna(A,y);});};m.prototype.Cq=function(p,r){return this.PF?this.PF.Cq(p,r):0;};m.prototype.close=function(){};m.prototype.IS=function(p){d.__awaiter(this,void 0,void 0,function(){var r,q;return d.__generator(this,function(u){switch(u.label){case 0:r=this;q=this.DRa.call(r,p);if("undefined" === typeof q)return [3,4];r.xa.trace("Next segment to parse at pts " + p + " is segment " + q.L);if(0 !== q.pR)return [3,1];r.xa.trace("This is an empty segment");this.RB(q.L);return [3,3];case 1:return [4,this.mYa.call(r,q)];case 2:(u.T(),r.xa.trace("parseNextSegEntries buffer length: " + r.Rb.length),u.label=3);case 3:return [3,5];case 4:return (r.xa.debug("Next segment is undefined at pts " + p),this.Hr=!1,[2]);case 5:return [2];}});});};m.prototype.DRa=function(p){var r,q;q=this.PF.cxb(p);this.xa.trace(("Most recent entry at current pts ").concat(p," is segment id ").concat(q));-1 === q && (q=(null === (r=this.Fe.hR(p)) || void 0 === r?void 0:r.L) || -1);return q === this.Fe.v$()?this.Fe.GRa():this.Fe.ZC(q);};m.prototype.mYa=function(p){return d.__awaiter(this,void 0,void 0,function(){var r,q,u,v,w,x,y,A,z;return d.__generator(this,function(B){switch(B.label){case 0:(r=this,q=p.xml.slice(0,p.pR),B.label=1);case 1:return (B.tc.push([1,3,,4]),[4,this.VGc(q)]);case 2:return (u=B.T(),[3,4]);case 3:return (v=B.T(),this.QOa(v),[3,4]);case 4:if(!u)return (w=Error("Parsing header text returned undefined"),this.QOa(w),[2]);if(u.error)return (x=u.error,x.Wyb=q,x.L=p.L,this.QOa(x),[2]);A=u.head;this.Fe.n3a(p.L,A);return this.Ckb !== c.X4.Ca?[3,6]:[4,this.AJa.iYa(p,A)];case 5:return (y=B.T(),[3,7]);case 6:throw Error("Not yet implemented");case 7:return (z=r.Rb.reduce(function(C,D){D=D.blocks.reduce(function(F,H){return F.concat([H.id]);},[]);return C.concat(D);},[]),y && (y.forEach(function(C){var D;if(-1 === z.indexOf(C.id)){D=C && C.blocks && C.blocks.filter(function(F){return 0 < F.textNodes.length;});D && 0 < D.length && (C.blocks=D,r.Rb.push(C));}}),this.RB(p.L)),[2]);}});});};m.prototype.QOa=function(p){this.xa.error(p);this.emit("error",p);};m.prototype.RB=function(p){this.Fe.RB(p);this.Sk+=1;this.Hr=!1;!this.Uk && 4 <= this.Sk && (this.Uk=!0,this.emit("ready"));};m.prototype.VGc=function(p){return d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(){return [2,new Promise(function(r){(0,n.iHb)(p,function(q,u){q?r({error:q}):r({head:u});});})];});});};return m;})(k);b.Ecb=a;},74528:function(t,b,a){var d,n,c,f;Object.defineProperty(b,"__esModule",{value:!0});b.rgb=void 0;d=a(22970);n=a(18797);c=a(60514);f=a(4574);t=(function(){function g(e,h){this.xa=e;this.nP=h;}g.prototype.iYa=function(e,h){return d.__awaiter(this,void 0,void 0,function(){var k,l,m,p,r,q,u,v,w;w=this;return d.__generator(this,function(){k=this;l=0;m=[];p=h.defaultStyle?[h.defaultStyle]:[];r=h.lang?[h.lang]:[];q=e.xml.lastIndexOf("/p>") + 3;u=e.xml.slice(e.pR,q);k.xa.debug(u);v=c.Le(!0);return [2,new Promise(function(x,y){v.onerror=function(A){A.xml=u;y(A);};v.onend=function(){x(m);};v.ontext=function(A){("" !== A.trim() || A.match(/ +/)) && (0,n.Md)((0,n.Md)(m).blocks).textNodes.push({text:A.match(/ +/)?A:A.trim(),style:(0,n.Md)(p),lang:(0,n.Md)(r),lineBreaks:l});l=0;};v.onclosetag=function(){var A;A=v.tag;"undefined" !== typeof A.attributes.style && p.pop();"undefined" !== typeof A.attributes["xml:lang"] && r.pop();};v.onopentag=function(A){var z,B;z=A.attributes;A=A.name;if("p" === A){l=0;A=e.L.toString() + "_" + z["xml:id"];z.style && p.push(z.style);z["xml:lang"] && r.push(z["xml:lang"]);B=(0,f.kK)(z.begin);0 === m.length || (0,n.Md)(m).displayTime !== B?(z=w.nNa(A,0,z,e.By),z.segId=e.L,m.push(z)):(0,n.Md)(m).blocks.push({textNodes:[],region:z.region,id:A,extent:z["tts:extent"] || null,origin:z["tts:origin"] || null});}else "span" === A?(p.push(z.style),z["xml:lang"] && r.push(z["xml:lang"]),A=h.styles[z.style],z.style && A && A.ruby && 0 <= ["container","baseContainer","textContainer"].indexOf(A.ruby) && (0,n.Md)((0,n.Md)(m).blocks).textNodes.push({text:"",style:(0,n.Md)(p),lang:(0,n.Md)(r),lineBreaks:0})):"br" === A && l++;};v.write("").write(u).write("").close();})];});});};g.prototype.epa=function(e,h){return n.epa.call(this,e,h);};g.prototype.nna=function(e,h){return n.nna.call(this,e,h);};g.prototype.nNa=function(e,h,k,l){var m;m={};m.id=e;m.startTime=(0,f.kK)(k.begin || "") - l;m.endTime=(0,f.kK)(k.end || "") - l;m.style=k.style;m.region=k.region;m.displayTime=m.startTime;m.duration=m.endTime - m.startTime;m.extent=k["tts:extent"] || null;m.origin=k["tts:origin"] || null;m.latestEndSoFar=h > m.endTime?h:m.endTime;m.blocks=[{textNodes:[],region:m.region,id:e,extent:m.extent || null,origin:m.origin || null}];return m;};return g;})();b.rgb=t;},92020:function(t,b,a){var n,c,f,g,e,h,k,l,m,p;function d(r){return -1 < ["simplesdh","dfxp-ls-sdh","imsc1.1"].indexOf(r);}Object.defineProperty(b,"__esModule",{value:!0});b.N0b=void 0;n=a(22970);t=a(22699);c=a(18797);f=a(81824);g=a(7376);e=a(37494);h=a(76851);k=a(76495);l=a(66827);m=a(3992);p=a(31496);t=(function(r){function q(u,v){var w,x,y,A,z,B,C,D,F;C=r.call(this) || this;C.$a="paused";C.k6=[];C.Rn=0;C.pkb=!0;D=u.mD || !1;C.xa=u.wa || console;C.iP=u.request;C.pC=u.Src;C.aka=u.X8c || (function(H,E){return H - (null !== E && void 0 !== E?E:C.pC());});C.$a="paused";C.k6=[];C.A6=v.profile;C.Hg=v.url;C.gP=v.od;C.Rn=C.gP || 0;C.pkb=null !== (w=v.bcd) && void 0 !== w?w:!0;C.yW=null !== (x=v.p7c) && void 0 !== x?x:!1;w={url:C.Hg,request:C.iP,od:null !== (y=C.gP) && void 0 !== y?y:0,wa:C.xa,mD:D,bufferSize:v.bufferSize,kda:v.kda || 0,Mnb:v.Mnb,za:null !== (A=v.za) && void 0 !== A?A:!1};C.yW && (C.Fka=new l.nAa(),C.dka=new l.nAa());if("nflx-cmisc" === v.profile){F=n.__assign(n.__assign({},w),{offset:v.tWa,size:v.lEb,YA:v.YA,awa:v.awa,$sb:v.$sb});C.Pe=new m(F);}else if((C.jv=v.preferences,C.ev=v.eg,y=null !== (B=null !== (z=v.W4c) && void 0 !== z?z:v.za) && void 0 !== B && B?f.Ozc:f.USc,(z=null !== (F=v.kTa) && void 0 !== F?F:!1) && C.xa.debug("ignoreUserTextPreferences was true, ignoring preferences"),C.nP=new g.ahb(y,C.ev || ({}),C.jv || ({}),z),F=n.__assign(n.__assign({},w),{profile:v.profile,xml:v.xml,T1a:C.nP}),v.za && d(C.A6) && void 0 === F.xml))C.Pe=v.ted?new h.Ecb(F,k.X4.Ca):new e.Rab(F);else if(d(C.A6) && "function" === typeof c.UBa)C.Pe=new c.UBa(F);else throw Error("SubtitleManager: " + C.A6 + " is an unsupported profile");C.Pe.on("ready",function(){var E,G,J;function H(){return "paused" === C.$a || "stopped" === C.$a;}E=!!v.inb;C.xa.info("ready event fired by subtitle stream");C.emit("ready");G=C.Pe.OK.bind(C.Pe);if(u.NRa && u.oua){J=a(17972).v5a;C.kf=new J(C.pC,G,C.aka,C.xa,H,u.NRa,u.oua,v);}else C.kf=new p(C.pC,G,C.aka,H,C.xa,v);if("dfxp-ls-sdh" === C.A6 && "function" === typeof c.UBa)C.kf.on("stagesubtitle",C.y1a.bind(C));C.kf.on("showsubtitle",C.l1a.bind(C));C.kf.on("removesubtitle",C.d_a.bind(C));C.kf.on("underflow",C.gr.bind(C));C.kf.on("bufferingComplete",C.Pm.bind(C));E && (C.xa.info("autostarting subtitles"),setTimeout(function(){"stopped" !== C.$a && C.EI(C.pC());},10));});C.Pe.on("error",C.emit.bind(C,"error"));return C;}n.__extends(q,r);q.prototype.start=function(){this.Pe.start();};q.prototype.iJb=function(){"running" === this.$a && (this.$a="paused",this.otb(this.Rn));};q.prototype.EI=function(u){"stopped" === this.$a?this.xa.debug("updatePts called when stopped"):(this.pkb && "running" === this.$a && 1E4 < Math.abs(u - this.Rn) && (this.xa.warn("Detected an unexpected pts jump larger than",1E4,"at",u,". If this is a seamless segment transition then the ptsShift API","should have been called before the pts change was reflected."),this.iJb()),this.Rn=u,"paused" === this.$a && (this.$a="running",this.SRc(u)),this.kf && (this.SVc(u),this.kf.EI(0)));};q.prototype.stop=function(u){var v,w,x;this.xa.info("stop called");"running" === this.$a && this.pause(u);this.Pe.removeAllListeners(["ready"]);null === (v=this.kf) || void 0 === v?void 0:v.stop();u=this.k$();this.yW && u && (u.dRc=null === (w=this.Fka) || void 0 === w?void 0:w.ppa(),u.Euc=null === (x=this.dka) || void 0 === x?void 0:x.ppa());w=this.k6.reduce(function(y,A){y.xNb+=A.zea;y.goa+=A.hoa || 0;y.ps.push(A);return y;},{xNb:0,goa:0,ps:[]});"object" === typeof this.Pe && this.Pe.close();this.xa.debug("metrics: " + JSON.stringify(w));this.$a="stopped";return w;};q.prototype.pause=function(u){var v;u=void 0 !== u?u:this.pC();"paused" === this.$a || "stopped" === this.$a?this.xa.warn("pause called on subtitle manager, but it was already paused/stopped!"):(this.xa.info("pause called at " + u),this.$a="paused",this.otb(u));null === (v=this.kf) || void 0 === v?void 0:v.pause();};q.prototype.Apa=function(u,v){return "function" === typeof this.Pe.Apa?this.Pe.Apa(u,v):[];};q.prototype.Cq=function(u,v){return this.Pe.Cq(u,v);};q.prototype.OK=function(u){return this.Pe.OK(u);};q.prototype.UM=function(u){var w;function v(){w.xa.info("bufferingComplete from setStreamStartPosition");w.emit("bufferingComplete");}w=this;"function" === typeof this.Pe.UM?this.Pe.UM(u,v):v();};q.prototype.Bn=function(u,v){"function" === typeof this.Pe.Bn && this.Pe.Bn(u,v);};q.prototype.wl=function(u,v){"function" === typeof this.Pe.wl && this.Pe.wl(u,v);};q.prototype.FZa=function(u){"function" === typeof this.Pe.GZa && this.Pe.GZa(u);};q.prototype.k$=function(){return this.k6[this.k6.length - 1];};q.prototype.l1a=function(u){var v,w,x,y,B;x=0;this.xa.info("show subtitle called at undefined for displayTime " + u.displayTime);this.emit("showsubtitle",u);y=this.k$();y.zB || (y.zB={});if(d(this.A6))try{for(var A=n.__values(u.blocks),z=A.next();!z.done;z=A.next()){B=z.value;y.zB.hasOwnProperty(B.id) || x++;y.zB[B.id]=u.endTime;}}catch(D){var C;C={error:D};}finally{try{z && !z.done && (v=A.return) && v.call(A);}finally{if(C)throw C.error;}}else (y.zB.hasOwnProperty(u.id) || x++,y.zB[u.id]=u.endTime);this.icc();y.zea+=x;this.yW && (null === (w=this.Fka) || void 0 === w?void 0:w.Blb(u.startTime,this.pC()));};q.prototype.icc=function(){var u,v,w;u=this.k$();if(null === u || void 0 === u?0:u.zB){v=u.zB;w=Object.keys(u.zB);30 < w.length && (w=w.sort(function(x,y){return v[y] - v[x];}),w.splice(19,Math.max(w.length - 20,0)),u.zB={},w.forEach(function(x){u.zB[x]=v[x];}));}};q.prototype.d_a=function(u){var v;this.xa.info("remove subtitle called at undefined for remove time " + (u.displayTime + u.duration));this.emit("removesubtitle",u);this.yW && (null === (v=this.dka) || void 0 === v?void 0:v.Blb(u.endTime,this.pC()));};q.prototype.y1a=function(u){this.xa.info("stage subtitle called at " + this.pC() + " for displayTime " + u.displayTime);this.emit("stagesubtitle",u);};q.prototype.gr=function(){this.xa.info("underflow fired by the subtitle timer");this.emit("underflow");};q.prototype.Pm=function(){this.xa.info("bufferingComplete fired by the subtitle timer");this.emit("bufferingComplete");};q.prototype.SRc=function(u){var v,w;this.xa.debug("creating a new subtitle interval at " + u);this.yW && (null === (v=this.Fka) || void 0 === v?void 0:v.reset(u),null === (w=this.dka) || void 0 === w?void 0:w.reset(u));this.k6.push({Gb:u,zea:0});};q.prototype.SVc=function(u){var v;v=this.k$();v && (v.ZUa=u);};q.prototype.otb=function(u){var v,w,x;this.xa.debug("ending subtitle interval at " + u);x=this.k$();x && (x.Lg=u,this.yW && (x.dRc=null === (v=this.Fka) || void 0 === v?void 0:v.ppa(),x.Euc=null === (w=this.dka) || void 0 === w?void 0:w.ppa()),x.Lg < x.Gb && (this.xa.warn("correcting for interval where endPts is smaller than startPts"),x.Gb=0 < x.Lg?x.Lg - 1:0),x.hoa=this.Pe.Cq(x.Gb,x.Lg),delete x.zB,x.hoa > x.zea && x.ZUa && 500 > x.Lg - x.ZUa && (x.hoa=this.Pe.Cq(x.Gb,x.ZUa)),this.xa.debug("showed " + x.zea + " during this interval"),this.xa.debug("expected " + x.hoa + " for this interval"));};return q;})(t.EventEmitter);b.N0b=t;b["default"]=t;},66827:function(t,b){var a;Object.defineProperty(b,"__esModule",{value:!0});b.nAa=void 0;a={0:"early",1:"late"};t=(function(){function d(n){void 0 === n && (n=4E3);this.h3b=n;this.reset(0);}d.prototype.Blb=function(n,c){var f;n=Math.max(n,this.Hl);c-=n;if(!(0 > c)){f=this.SIa[+(n - this.Hl > this.h3b)];f.count++;f.sE+=c;c > f.max && (f.max=c,f.od=n);}};d.prototype.ppa=function(){var f;for(var n={},c=0;c < this.SIa.length;c++){f=this.SIa[c];f.count && (n[a[c]]={$bd:f.od,kad:f.max,n5c:Math.round(f.sE / f.count)});}return n;};d.prototype.reset=function(n){this.SIa=[{sE:0,max:0,od:0,count:0},{sE:0,max:0,od:0,count:0}];this.Hl=n;};return d;})();b.nAa=t;},76495:function(t,b){Object.defineProperty(b,"__esModule",{value:!0});t=b.X4={};t[t.TEXT=0]="TEXT";t[t.IMAGE=1]="IMAGE";},76290:function(t,b,a){var h,k;function d(l,m,p){var r;r=p.displayTime <= l && l <= p.displayTime + p.duration;return l <= p.displayTime && p.displayTime <= m || r;}function n(l,m,p){return m && (!m.entries.length && l > m.cE || l > m.endTime) && p.entries.length && l < p.endTime;}function c(l,m,p){this.kP=this.oC=0;this.o3b=l.bufferSize || 4194304;this.dv=new e();this.fP;this.VO=l.mD;this.xa=l.wa;this.nx=m;this.Vk=p;this.fq=new h(l);this.rP=new g(this.Vk.length,l.$sb);this.C6=new f(l.Mnb);}function f(l){this.vF=0 !== l;this.on=!1;this.g6=l || 3E3;this.kf;}function g(l,m){if(this.enabled=m)this.Ws=Array.apply(null,Array(l)).map(function(){return "-";});}function e(l,m){this.Ao=l;this.index=m;}h=a(93778);k=a(32699);e.prototype.reset=function(){this.index=this.Ao=void 0;};g.prototype.na=function(l){this.enabled && l < this.Ws.length && (this.Ws[l]="x");};g.prototype.LGb=function(l){this.enabled && l < this.Ws.length && (this.Ws[l]="-");};g.prototype.toString=function(){return this.enabled && "|" + this.Ws.join("") + "|";};f.prototype.start=function(){var l;if(this.vF){l=this;this.on=!0;this.kf=setTimeout(function(){l.on=!1;l.kf=void 0;},this.g6);}};f.prototype.stop=function(){this.on=!1;clearTimeout(this.kf);this.kf=void 0;};Object.defineProperties(c.prototype,{LNa:{get:function(){return this.dv;}},bac:{get:function(){return !this.C6.on;}}});c.prototype.r6=function(){this.rP.enabled && this.xa.debug("Buffer: " + this.rP.toString());};c.prototype.o4b=function(l){this.kP+=l;this.xa.debug("Reserved buffer size is",this.oC + this.kP,"after reserving",l);};c.prototype.J4b=function(l){this.kP-=l;this.xa.debug("Reserved buffer size is",this.oC + this.kP,"after unreserving",l);};c.prototype.V1b=function(l){this.oC+=l;this.xa.debug("Buffer size is",this.oC,"after claiming",l);};c.prototype.ukb=function(l){this.oC-=l;this.xa.debug("Buffer size is",this.oC,"after clearing",l);};c.prototype.YLc=function(l,m){var p;this.ukb(l);p=this;m && this.rP.enabled && (m.forEach(function(r){p.rP.LGb(r.index);}),this.r6());};c.prototype.f1a=function(l){var m;m=this.D2b(l);return k.lzb(m) && k.dTc(l,m);};c.prototype.wPc=function(l){var m;m=this.zjb(l);(!m || m.index) !== (!this.dv || this.dv.index) && (this.fP=this.dv.Ao,m?(this.VO && this.xa.debug("Current sidx is index",m.index),this.dv=m):(this.VO && this.xa.debug("Current sidx is out of range"),this.dv.reset()));this.fP && "number" === typeof this.fP.index && (l < this.fP.cE - 35E3 || l > this.fP.zw + 35E3) && (this.aIa(this.fP.index),this.fP=void 0,this.r6());};c.prototype.UM=function(l,m){var p,r;p=this.Vk && this.Vk.length;for(m;m < p;m++)(r=this.Vk[m]) && ((r.endTime || r.zw) >= l - 1E4 && (r.endTime || r.zw) < l + 3E5 || this.aIa(m));this.C6.stop();this.r6();};c.prototype.L6b=function(){var l,m;this.xa.debug("executing aggressive cleanup");l=this.Vk && this.Vk.length;for(m=0;m < l;m++)(m === this.dv.index && (m+=2),this.aIa(m));this.C6.stop();this.r6();};c.prototype.ssc=function(l){var m,p,r,q;m=[];p=this.zjb(l);if(!p)return (this.dv.reset(),m);this.dv=p;r=l + 1E4;p=p.index;q=this.Vk[p];p;for(q;p < this.Vk.length && r > q.cE;(p++,q=this.Vk[p]))k.lzb(q) && k.eTc(l,r,q) && m.push(q);return m;};c.prototype.Fsb=function(l,m){var p,r,q,u,v,w;if(!l || !l.length)return (m && m(null),!0);this.fq.w6 && 2 <= Object.keys(this.fq.w6).length && !this.C6.on && (this.xa.debug("Enabling buffering quiet period"),this.C6.start());p=this;r=l[0];q=l[l.length - 1];if(0 < r.entries.length)(u=r.entries[0].rR,v=r.entries[r.entries.length - 1]);0 < q.entries.length && (k.$c(u) || (u=q.entries[0].rR),v=q.entries[q.entries.length - 1]);if(u)w=v.rR + v.lTa - u;else return (m && m(null),!0);r=k.RQa(u,w);if(this.fq.w6[r])(this.xa.debug("The request for",r,"is already pending. Not requesting again"),m && m());else if(this.N2b(k.dSa(l)))(this.xa.debug("Reserving",w,"bytes for subtitle request",l[0].cE,l[l.length - 1].zw),this.o4b(w),this.fq.Gic(l,u,w,function(x,y){p.xa.debug("Claiming reserved space. Expected",w,"received",y);p.rP.enabled && (l.forEach(function(A){p.rP.na(A.index);}),p.r6());p.J4b(w);p.V1b(y);m && m(x);}));else return (this.xa.debug("Not enough space in buffer to download all of the imaages in the list"),m && m(),!1);return !0;};c.prototype.hSa=function(l,m){var p,r,q;p=this.nx;r=this.yjb(l,m,this.Vk);if(!r || 0 === r.length)return [];q=[];m=d.bind(null,l,m);for(var u=0;u < r.length;u++)(l=r[u],q=q.concat(l.entries.filter(m)));q=q.map(function(v){return k.ANa(v,null,p);});return k.Ppb(q);};c.prototype.tsc=function(l,m,p){return this.yjb(l,m.endTime,m.Ws,p,!0);};c.prototype.yjb=function(l,m,p,r,q){var u,v,w,x;if(m && l > m || 0 > l)this.xa.error("invalid range startPts: " + l + ", endPts: " + m);else {u=p && p.length || 0;v=[];if(p && 0 !== u){w=p[0].duration;x=p[0].cE;if(k.$c(w) && 0 < w)w=Math.floor((l - x) / w);else for((this.VO && this.xa.warn("The duration of the first sidx is not defined or sidx","durations vary, so use brute force to get starting sidx"),w=0);w < u && (x=p[w],!k.Aic(x,l));w++);for(;w < u && (!r || v.length < r);){x=p[w];if(!q || !x.images.length && x.endTime > l)v.push(x);else if(v.length)break;if(m && m <= x.zw)break;w++;}return v;}}};c.prototype.D2b=function(l){var m,p,q;m=this.Vk;if(m && 0 !== m.length){p=m[Math.floor(l / 6E4)];if(p && (p.cE > l || l > p.zw))a:{this.v2b || (this.v2b=!0,p=k.tqc(this.nx.language),this.xa.error("bruteforce search for ",{movieId:this.nx.R,packageId:this.nx.Gs,lang:p}));p=m.length;for(var r=0;r < p;r++){q=m[r];if(q.cE <= l && l <= q.zw){p=q;break a;}}p=void 0;}return p;}};c.prototype.zjb=function(l){var m,p,r,q,u,v,w,x;m=this.dv;p=m.Ao;r=m.index;q=this.Vk;this.jIa(k.$c(l));if(p)if(p.entries.length){if(0 === r && l <= p.startTime || l >= p.startTime && l <= p.endTime)(u=!0,v=m);else {if(0 < r){w=q[r - 1];n(l,w,p) && (u=!0,v=m);}}}else {w=q[r - 1];x=q[r + 1];n(l,w,p)?(u=!0,v=m):x && x.endTime && l <= x.endTime && (l >= p.endTime || l >= p.zw) && (u=!0,v=new e(x,r + 1));}if(!u)for((m=q.length,p=0);p < m;p++)if((r=q[p],r.entries.length && l <= r.endTime)){v=new e(r,p);break;}return v;};c.prototype.N2b=function(l){return this.oC + this.kP + l <= this.o3b;};c.prototype.aIa=function(l){var m,p,r;m=this.Vk[l];p=m && m.images && m.images.length || 0;if(0 < p){r=k.dSa([m]);m.images=[];this.rP.LGb(l);this.ukb(r);this.VO && this.xa.debug("cleaning up space from sidx",{index:l,start:m.startTime,size:r,images:p,ebd:this.oC});}};c.prototype.jIa=function(l){this.VO && k.assert(l,this.xa);};t.exports=c;},3992:function(t,b,a){var n,c,f,g,e,h;function d(k){n.call(this);this.Hg=k.url;this.iP=k.request;this.gP=k.od || 0;this.xa=k.wa;this.Vk=this.nx=null;k.YA?this.nx=k.YA:(this.ed=k.offset,this.BJ=k.size);this.hq;this.dJa=k;}n=a(22699).EventEmitter;c=a(72577);f=a(92435);g=a(78192);e=a(32699);h=d.events={cYb:"midxready",r0b:"sidxready",Q_b:"ready",Tp:"error"};d.prototype=Object.create(n.prototype);d.prototype.constructor=d;Object.defineProperties(d.prototype,{dv:{get:function(){return this.hq && this.hq.LNa;}}});d.prototype.start=function(){this.nx?(this.xa.warn("midx was prefectched and provided"),this.pjb(this.nx)):this.n2b(this.ed,this.BJ,this.f4b.bind(this));};d.prototype.close=function(){};d.prototype.Apa=function(k,l){return this.hq && this.hq.hSa(k,l);};d.prototype.Cq=function(k,l){return (k=this.Apa(k,l))?k.length:k;};d.prototype.UM=function(k,l){this.xa.debug("setStreamStartPosition: buffering subtitles at pts " + k);this.gP=k;this.hq?this.hq.UM(k,l):l && l();};d.prototype.OK=function(k){var l,m,p;if(!this.hq || k > e.Npc(this.nx))return [];this.hq && this.hq.BOa(k);l=this.dv.Ao;m=this.dv.index;p=[];m=e.$c(m) && this.Vk[m + 1];if(!(m && m.entries.length || l && !(k > l.endTime)))return [];l && l.images.length && (p=this.wjb(l,k,[]));2 > p.length && m && m.images.length && (l=this.wjb(m,k,p),p.push.apply(p,l));return this.hq.f1a(k)?null:e.Ppb(p);};d.prototype.wl=function(k,l){this.hq && this.hq.wl(k,l);};d.prototype.Bn=function(k,l){this.hq && this.hq.Bn(k,l);};d.prototype.n2b=function(k,l,m){this.xa.debug("downloading midx...");this.Bjb(k,l,"binary",m);};d.prototype.o2b=function(k,l,m){this.xa.debug("downloading sidx...");this.Bjb(k,l,void 0,m);};d.prototype.Bjb=function(k,l,m,p){this.iP({url:this.Hg,offset:k,size:l,responseType:m},p);};d.prototype.f4b=function(k,l){if(k)this.emit(h.Tp,e.o$(k,"midxdownloaderror"));else try{this.nx=new c(l);this.pjb(this.nx);}catch(m){this.emit(h.Tp,e.o$(m,"midxparseerror"));}};d.prototype.pjb=function(k){var l;l=k.entries.reduce(function(m,p){return m + p.size;},0);l?(this.emit(h.cYb,k),this.o2b(k.startOffset,l,this.i4b.bind(this,k))):this.emit(h.Tp,e.o$({},"nosidxfoundinmidx"));};d.prototype.i4b=function(k,l,m){var p,r,q,u;p=this;if(l)p.emit(h.Tp,e.o$(l,"sidxdownloaderror"));else {r=0;q=0;p.Vk=[];try{u=0;k.entries.forEach(function(v){var w;w=new f(m,r,k.FTa,p.xa,q,q + v.duration,u);p.Vk.push(w);v.gRc=w;q=w.zw;r+=v.size;u++;});}catch(v){p.emit(h.Tp,e.o$(v,"sidxparseerror"));return;}p.emit(h.r0b,p.Vk);this.hq=new g(p.dJa,k,p.Vk);l=p.gP;p.dJa && p.dJa.awa || (l=Math.max(p.gP - 1E4,0));this.hq.BOa(l,function(v){v && p.xa.error("initial sidx download failed");p.emit(h.Q_b);});}};d.prototype.wjb=function(k,l,m){var x;for(var p=k.entries,r=0,q=p.length,u=[],v,w=this.nx;r < q;){v=p[r];if(v.displayTime <= l)v.displayTime + v.duration >= l && u.push(e.ANa(v,k.images[r].data,w));else {x=u.length && u[u.length - 1] || m.length && m[m.length - 1];if(x && x.displayTime > l && x.displayTime !== v.displayTime)break;x.rR !== v.rR && u.push(e.ANa(v,k.images[r].data,w));}r++;}return u;};t.exports=d;},72577:function(t,b,a){var n,c;function d(f,g){this.duration=f;this.size=g;this.gRc=void 0;}n=a(62082);c=a(32699);t.exports=function(f){var k;f=new n(f);this.identifier=f.QZa(4);c.assert("midx" === this.identifier);this.version=f.Bw(4);c.assert(0 === this.version);this.FTa=f.wn(36);this.creationTime=f.f1();this.Gs=f.f1();this.R=f.f1();this.INc=f.tj();this.JNc=f.tj();this.language=f.wn(16);f.wn(16);this.startOffset=f.f1();this.yQ=f.tj();for(var g=[],e=0,h=0;h < this.yQ;h++){k=new d(f.Bw(4),f.tj());g.push(k);e+=k.duration;}this.entries=g;this.endTime=e;};},93778:function(t,b,a){var n,c;function d(f){this.Hg=f.url;this.iP=f.request;this.gP=f.od || 0;this.VO=f.mD;this.xa=f.wa;this.w6={};}n=a(62082);c=a(32699);d.prototype.Gic=function(f,g,e,h){this.w6[c.RQa(g,e)]=!0;f && f.forEach(function(k){k.Hda=!0;});this.iP({url:this.Hg,offset:g,size:e},this.N3b.bind(this,f,g,e,h));};d.prototype.N3b=function(f,g,e,h,k,l){var m,p,r,q;m=this;p=c.RQa(g,e);setTimeout(function(){delete m.w6[p];},1E3);if(k)(h && h(k,0),f && f.forEach(function(u){delete u.Hda;}));else {r=new n(l);q=0;f && f.forEach(function(u){delete u.Hda;u.entries.forEach(function(v,w){r.position=v.rR - g;v={data:r.wn(v.lTa)};u.images[w]=v;c.SWc(u.images[w].data,m.jIa.bind(m));q+=u.images[w].data.length;});});h && h(null,q);}};d.prototype.jIa=function(f){this.VO && c.assert(f,this.xa);};t.exports=d;},67725:function(t){function b(a,d,n,c){this.xa=c;this.id=a;this.startTime=d && d.Ua || 0;this.endTime=d && d.fb;this.nFb=d && d.next || [];this.dMb;this.oca=[];this.f_=!1;a=this.startTime;d=this.endTime;for(var f=[],g=0;g < n.length;g++)(c=n[g]) && (!d || d > c.cE) && a < c.zw && (c.xvc(),f.push(c));this.Ws=f;}b.prototype.Yob=function(){this.xa.debug("Cleaning up segment",this.id);for(var a,d=0,n,c=[],f=0;f < this.Ws.length;f++)(a=this.Ws[f],(n=a.chc()) && c.push(a),a && (d+=n));this.Ws=[];return {size:d,Ws:c};};t.exports=b;},78192:function(t,b,a){var f,g;function d(e,h){var l;e=e || 0;if(h)for(var k in h.ba){l=h.ba[k];if(e >= (l.Ua || 0) && (!l.fb || e < l.fb))return k;}}function n(e,h){return e && h && h.ba[e];}function c(e,h,k){var l;this.xa=e.wa;this.Vk=k;this.AJ=this.X1b(e.awa);this.vC=[];l=k && k[k.length - 1];this.Rn=l && (l.endTime || l.zw);this.bv=new f(e,h,k);e=d(e.od || 0,this.AJ);this.aq=this.d6(e);}f=a(76290);g=a(67725);Object.defineProperties(c.prototype,{LNa:{get:function(){return this.bv.LNa;}}});c.prototype.hSa=function(e,h){return this.bv && this.bv.hSa(e,h);};c.prototype.BOa=function(e,h){this.bv.wPc(e);this.Xkb(e);if(!this.AJ && this.Rn && e > this.Rn)h && h();else if((e=this.ljb(e,this.aq,2,h),this.AJ && 0 < this.aq.nFb.length))h && h();else if(this.AJ && this.aq.f_ && e){2 > this.vC.length && this.d2b(this.aq);h=Math.ceil(2 / (this.vC.length - 1));for(var k=0;k < this.vC.length && e && 3 > k;k++)(e=this.vC[k],e=this.ljb(e.startTime,e,h));}};c.prototype.f1a=function(e){return this.bv.f1a(e)?(this.bv.L6b(),this.BOa(e),this.aq.f_=!1,!0):!1;};c.prototype.UM=function(e,h){var k;this.Xkb(e);this.vC.forEach(function(l){l.f_=!1;});k=this.aq.Ws && this.aq.Ws[0];this.bv.UM(e,k && k.index);(e=this.bv.ssc(e)) && e.length?this.bv.Fsb(e,h):h && h();};c.prototype.Bn=function(e,h){var k;this.xa.debug("Set next segment to",h,"for segment",e);e=this.rjb(e) || this.d6(e);e.dMb=h;k=this;e.oca=e.oca.filter(function(l){if(l.id === h)return !0;k.lIa(l);return !1;});};c.prototype.wl=function(e,h){var k;k=n(e,this.AJ);Object.keys(k.next).forEach(function(l){k.next[l].weight=h[l] || 0;});};c.prototype.X1b=function(e){var h,l;h={};if(e=(e || ({})).ba){h.ba={};for(var k in e){l=e[k] || ({});h.ba[k]={Ua:l.Ua,fb:l.fb,Gc:l.Gc,next:this.W1b(l.next)};}}return h;};c.prototype.W1b=function(e){var h,k;h={};for(k in e)h[k]={weight:(e[k] || ({})).weight};return h;};c.prototype.Xkb=function(e){var h,k;if(this.AJ && this.aq.startTime > e || this.aq.endTime && this.aq.endTime < e){h=this.aq;k=d(e,this.AJ);k?(this.xa.debug("Switching segments from",this.aq.id,"to",k,"at pts",e),this.aq=this.rjb(k) || this.d6(k),this.lIa(h)):this.xa.debug("The pts is outside of the current segment but not in a new one yet");}};c.prototype.d6=function(e){this.xa.debug("SegmentManager: creating segment",e);e=new g(e,n(e,this.AJ),this.Vk,this.xa);this.vC.push(e);this.xa.debug("SegmentManager: segment contains",e.Ws.length,"sidxes");return e;};c.prototype.lIa=function(e){var h;if(e && e !== this.aq){this.xa.debug("SegmentManager: deleting segment",e.id);e.oca.forEach(this.lIa.bind(this));this.vC=this.vC.filter(function(k){return k !== e;});h=e.Yob();this.bv.YLc(h && h.size || 0,h && h.Ws);}};c.prototype.rjb=function(e){var k;for(var h=0;e && h < this.vC.length;h++){k=this.vC[h];if(e === k.id)return k;}};c.prototype.d2b=function(e){var h,l;h=e.dMb;if(h && "" !== h)e.oca.push(this.d6(h));else {h=e.nFb;for(var k in h){l=h[k];if(!l || !l.weight)break;e.oca.push(this.d6(k));}}};c.prototype.ljb=function(e,h,k,l){if(!h || h.f_)return (this.xa.debug("Done driving segment",h && h.id),!0);if(!this.bv.bac)return (this.xa.debug("Throttling buffering in quiet period"),!1);this.xa.debug("Drive streaming of segment",h.id,"from pts",e);k=(e=this.bv.tsc(e,h,k)) && e.length || 0;if(0 === k)return (this.xa.debug("Segment is fully downloaded",h && h.id),h.f_=!0,l && l(),!0);this.xa.debug("Downloading",k,"sidxes in segment",h.id);return this.bv.Fsb(e,function(m,p){m && (h.f_=!1);l && l(m,p);});};t.exports=c;},92435:function(t,b,a){var c,f;function d(g,e,h,k,l,m,p,r){this.displayTime=g;this.duration=e;this.dGc=h;this.eGc=k;this.nRc=l;this.oRc=m;this.rR=p;this.lTa=r;}function n(g,e,h,k,l,m,p){var r;g=new c(g);r=0;g.position=e;this.xa=k;this.identifier=g.QZa(4);f.assert("sidx" === this.identifier,k);this.FTa=g.wn(36);f.kcc(this.FTa,h,k);this.duration=g.Bw(4);this.yQ=g.tj();this.cE=l;this.zw=m;this.index=p || 0;this.entries=[];this.images=[];for(this.zJa=0;r < this.yQ;)(e=new d(g.Bw(4),g.Bw(4),g.tj(),g.tj(),g.tj(),g.tj(),g.f1(),g.Bw(4)),r++,this.entries.push(e));this.entries.length && (this.startTime=this.entries[0].displayTime,this.endTime=this.entries[this.entries.length - 1].displayTime + this.entries[this.entries.length - 1].duration);}c=a(62082);f=a(32699);n.prototype.xvc=function(){this.zJa++;};n.prototype.chc=function(){var g;g=0;this.zJa--;1 > this.zJa?this.images && 0 < this.images.length && (g+=f.dSa([this]),this.images=[]):this.xa.debug("Not cleaning up shared sidx with range",this.cE,"-",this.zw);return g;};t.exports=n;},32699:function(t){function b(f,g){return f.some(function(e){return e.id === g;});}function a(f,g){return f.filter(d.bind(null,g)).map(n).reduce(c,0);}function d(f,g){return f.id === g.id && f.displayTime + f.duration === g.displayTime;}function n(f){return f.duration;}function c(f,g){return f + g;}t.exports={kcc:function(f,g,e){for(var h=0;h < f.length;h++)if(f[h] !== g[h])return (e.error("indexId mismatch in sidx",{sIndexId:f,mIndexId:g}),!1);return !0;},ANa:function(f,g,e){var h;h={};h.displayTime=f.displayTime;h.duration=f.duration;h.originX=f.dGc;h.originY=f.eGc;h.sizeX=f.nRc;h.sizeY=f.oRc;h.imageData=g;h.id=f.rR;h.rootContainerExtentX=e.INc;h.rootContainerExtentY=e.JNc;return h;},RQa:function(f,g){return "o_" + f + "s_" + g;},SWc:function(f,g){g("P" === String.fromCharCode(f[1]));g("N" === String.fromCharCode(f[2]));g("G" === String.fromCharCode(f[3]));},$c:function(f){return "undefined" !== typeof f;},Gcd:b,j7c:a,o$:function(f,g){var e,h;e=Object.create({});for(h in f)e[h]=f[h];f instanceof Error && (e.message=f.message,e.stack=f.stack);e.errorString=g;return e;},assert:function(f,g){if(!f)throw (g && g.error(Error("Assertion Failed").stack),Error("Assertion Failed"));},lzb:function(f){return f && 0 < f.entries.length && 0 === f.images.length;},dTc:function(f,g){for(var e=g.entries.length,h,k=0;k < e;k++)if((h=g.entries[k],h.displayTime <= f && h.displayTime + h.duration >= f))return !0;return !1;},eTc:function(f,g,e){for(var h=e.entries.length,k,l,m=0;m < h;m++){k=e.entries[m];l=k.displayTime;k=l + k.duration;if(g < l)break;if(l <= f && k >= f || l > f && l <= g)return !0;}return !1;},Ppb:function(f){return f.map(function(g,e){g.duration+=a(f.slice(e + 1),g);return g;}).reduce(function(g,e){b(g,e.id) || g.push(e);return g;},[]);},dSa:function(f){return f.reduce(function(g,e){return g + e.entries.reduce(function(h,k){return k.lTa + h;},0);},0);},Aic:function(f,g){return f && f.cE <= g && f.zw >= g;},Npc:function(f){if(f)return f.endTime;},tqc:function(f){try{return String.fromCharCode.apply(String,f);}catch(g){}return "";}};},31496:function(t,b,a){var d;d=a(22699).EventEmitter;b=function l(c,f,g,e,h,k){if(!(this instanceof l))return new l(c,f,g,e,h,k);d.call(this);this.pC=c;this.i6=f;this.aka=g;this.$2b=e;this.Fl={};this.Em={};this.xa=h || console;this.Bm=!1;this.GIa=k.za;this.k4b=k && k.kda || 0;this.C4b=k && k.fSc || 0;};b.prototype=Object.create(d.prototype);b.prototype.stop=function(){clearTimeout(this.kf);this.kf=void 0;this.mva();};b.prototype.mva=function(){var c;c=this;Object.keys(c.Fl).forEach(function(f){c.emit("removesubtitle",c.Fl[f]);});c.Fl={};c.Em={};};b.prototype.pause=function(){this.Bm || (clearTimeout(this.kf),this.kf=void 0);};b.prototype.EI=function(c){var f,g,e;f=this;g=f.pC();e=f.i6(g);null !== e && f.Bm && (f.Bm=!1,this.xa.debug("bufferingComplete"),f.emit("bufferingComplete"),this.$2b())?this.xa.debug("bufferingComplete while paused, no longer scheduling internal pts events"):(c="number" === typeof c?c:0,Object.keys(f.Fl).forEach(function(h){h=f.Fl[h];h.displayTime - f.k4b <= g && g < h.displayTime + h.duration || (delete f.Fl[h.id],f.emit("removesubtitle",h));}),Object.keys(f.Em).forEach(function(h){h=f.Em[h];g >= h.displayTime + h.duration && delete f.Em[h.id];}),null !== e && 0 < e.length?(c=e.length,f.xa.debug("found " + c + " entries for pts " + g),e.forEach(function(h){h.displayTime - f.C4b <= g && g < h.displayTime + h.duration && !f.Fl[h.id] && (f.emit("showsubtitle",h),f.Fl[h.id]=h,delete f.Em[h.id]);}),c=e[e.length - 1],f.Fl[c.id] || f.Em[c.id] || (f.emit("stagesubtitle",c),f.Em[c.id]=c),e=f.F4b(g,e),"number" === typeof e && Infinity > e?f.K6(e):f.K6(2E4)):null === e?(e=250 * Math.pow(2,c),2E3 < e && (e=2E3),f.xa.warn("checking buffer again in " + e + "ms"),f.Bm || (f.Bm=!0,f.emit("underflow")),f.K6(e,c + 1)):f.GIa?(e=500,f.xa.trace("Live : No entries for " + g + "checking buffer again in " + e + "ms"),f.K6(e)):f.K6(2E4));};b.prototype.K6=function(c,f){var g;g=this;g.xa.debug("Scheduling pts check.",{timeout:c,uE:g.kf});clearTimeout(g.kf);g.kf=setTimeout(function(){g.EI(f);},c);};b.prototype.F4b=function(c,f){f=f.reduce(this.B3b.bind(this,c),Infinity);return Infinity > f?this.aka(f,c):f;};b.prototype.B3b=function(c,f,g){var e;e=g.displayTime;g=g.displayTime + g.duration;this.xa.debug("next events: start",e,"end",g,"now",c);return e < f && c < e?e:g < f && c < g?g:f;};t.exports=b;},4645:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},86398:function(t,b,a){var c,f,g,e;function d(h,k,l){var m,p;if(!l)return !1;l=l[k];h=h[k];k=!(null === (m=h.Kb) || void 0 === m || !m.length);"embedded" === h.type && (k || (k=h.duration.greaterThan(c.I.ia)));m=!k;Array.isArray(l) && (null === (p=h.Kb) || void 0 === p?0:p.length) && (0,c.VKa)(l,h.Kb.map(function(r,q){return q;})).length === h.Kb.length && (m=!0);"boolean" === typeof l && l && (m=!0);return m;}function n(h,k,l){var m;m="dynamic" === h.type && void 0 !== h.Gk;return "embedded" === h.type || m || l || !h.Kb && "embedded" !== h.type?{$Nb:0,ptb:0,Xtb:!m && !l && "embedded" !== h.type}:{$Nb:k,ptb:k,Xtb:!0};}Object.defineProperties(b,{__esModule:{value:!0}});b.vr=void 0;b.Cec=function(h,k,l,m,p,r){function q(y){var A,z,B,C,D,F,H,E,G;A=k[y];z=d(k,y,m);B=!!A.Kb || "embedded" === A.type;C=n(A,p,z);D=C.$Nb;F=C.ptb;C=C.Xtb;H=0 === A.fw;A.Pa.G > v && u.ag(("").concat(h,"-").concat(y),{J:h,Ua:v,fb:A.Pa.G,type:g.Gd.content,gs:w,wq:C});B || u.m6b(C);!D || H && !r || u.ag(("padstart-").concat(y),{J:b.vr,Ua:0,fb:D,type:g.Gd.padding});v=A.Pa.G;if(!z)if("embedded" === A.type && A.duration.greaterThan(c.I.ia))(z=A.Pa.add(A.duration).G,u.ag(("ad-").concat(y,"-").concat(0),{J:h,Ua:A.Pa.G,fb:z,type:g.Gd.Ra}));else if(A.Kb){E=null === m || void 0 === m?void 0:m[y];G=0;A.Kb.forEach(function(J,L){var K;K=!1;Array.isArray(E) && (K=-1 < E.indexOf(L));K?G++:(K=J.id === h,void 0 === K && (K=!1),L=A.eb && A.Xb !== y?("q-[").concat(A.eb,"]-").concat(L).concat(K?"-F":""):("ad-").concat(y,"-").concat(L),u.ag(L,{J:J.id,Ua:J.Ua,fb:J.fb,type:g.Gd.Rc}));});F && G !== A.Kb.length && u.ag(("padend-").concat(y),{J:b.vr,Ua:0,fb:F,type:g.Gd.padding});}v=A.Pa.add("embedded" === A.type?A.duration:A.Gk || c.I.ia).G;w=C;}void 0 === p && (p=0);void 0 === r && (r=!1);for(var u=new e(),v=0,w=!1,x=0;x < k.length;++x)q(x);u.ag(("").concat(h,"-").concat(k.length),{J:h,Ua:v,fb:null,type:g.Gd.content,gs:w});l.forEach(function(y){var A,z,B;A=y[0];z=("").concat(h,"-").concat(k.length);if(A && A.Kb && A.eb){B=("[").concat(A.eb,"]");A.Kb.forEach(function(C,D){u.ag(("q-").concat(B,"-").concat(D),{J:C.id,Ua:C.Ua,fb:C.fb,type:g.Gd.Rc},z);z=("q-[").concat(A.eb,"]-").concat(D);});}});return u.build();};c=a(91176);f=a(48456);g=a(58304);b.vr=-1;e=(function(){function h(){this.jb=new f.dx();}h.prototype.ag=function(k,l,m){this.KQ || (this.KQ=k);(m=m && this.jb.suc(m)?m:this.ada) && this.jb.aQc(k,m);this.jb.ag(k,l);this.ada=k;};h.prototype.m6b=function(k){var l;if(this.ada){l=this.jb.fu(this.ada);l && l.type === g.Gd.content && (l.wq=k,this.jb.ag(this.ada,l));}};h.prototype.build=function(){this.ada=void 0;this.KQ && this.jb.jI(this.KQ);return this.jb.build();};return h;})();},40071:function(t,b,a){var e;function d(h){return Object.keys(h.segments).some(function(k){return void 0 !== g(h.segments[k]);});}function n(h){return "delayedSeamless" === h?"lazy":h;}function c(h){return Object.keys(h).reduce(function(k,l){var m,p;m=h[l];p=m.weight;m=m.transitionType || m.transitionHint;l=k[l]={};void 0 !== p && (l.weight=p);m && (l.Yd=n(m));return k;},{});}function f(h){var k,l;k=Object.keys(h);l=k.length;return l?k.reduce(function(m,p){return m + (h[p].weight || 0);},0) / l:void 0;}function g(h){var k;if(h.ui){k=h.ui.interactionZones;if((null === k || void 0 === k?0:k.length) && k[0].length)return k[0][0] - h.startTimeMs;h=h.ui.interactionZonesV2;if((null === h || void 0 === h?0:h.length) && h[0].length)return h[0][0];}else if(void 0 !== h.earliestSkipRequestOffset)return h.earliestSkipRequestOffset;}Object.defineProperties(b,{__esModule:{value:!0}});b.rMa=function(h,k){var l,m,p,r,q,u;l=void 0 === k?{}:k;k=l.Gh;m=l.sf;p=l.ba;l=l.config;r=!(!l || -1 === l.Q9.indexOf(h.viewableId));q=d(h)?0:(null === l || void 0 === l?void 0:l.P9) || 0;l=new e.dx();u=p || h.segments;l.jI(null !== m && void 0 !== m?m:h.initialSegment).J0a(k || h.mediaTypes).twa(r?"immediate":n(h.transitionType)).R0a(Object.keys(u).reduce(function(v,w){var x,y,A,z,B,C;x=u[w];if(null === (y=x.weight) || void 0 === y){y=x.next && (r || (null === (z=x.exitZones) || void 0 === z?0:z.length))?f(x.next):void 0;}z=y;if(y=x.exitZones)B=void 0;else a:{if(r && x.endTimeMs){B=x.endTimeMs - x.startTimeMs;C=g(x);if(C && C < B){B=[[C,B]];break a;}if(q && B > q){B=[[B - q,B]];break a;}}B=void 0;}C=r?B?void 0:x.transitionHint || "lazy":x.transitionHint;z={J:h.viewableId,Ua:x.startTimeMs,fb:null !== (A=x.endTimeMs) && void 0 !== A?A:Infinity,Yd:n(C),Ul:y || B,weight:z};x.defaultNext && (z.Gc=x.defaultNext);x.next && (z.next=c(x.next));v[w]=z;return v;},{}));return l.build();};e=a(48456);},31021:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.p6c=function(n){var c,f,g,e,h,k;c=n.Kbd;f=n.wf;n=n.Cea;g=new d.dx();e=n.split(" ");h=/\d+/;k=new Map();f.forEach(function(l){k.set(l,0);});e.forEach(function(l,m){var p,r,q,u,v,w,x,y;w=Number(l.split(".")[0].match(h)[0]);x=Number(l.split(".")[1].match(h)[0]);w=f[w];l=k.get(w);y=("").concat(w,"-").concat(l);k.set(w,l + 1);x={J:w,Ua:null !== (q=null === (r=c.get(w)) || void 0 === r?void 0:r[x]) && void 0 !== q?q:0,fb:null !== (v=null === (u=c.get(w)) || void 0 === u?void 0:u[x + 1]) && void 0 !== v?v:void 0};e.length > m + 1 && (r=Number(e[m + 1].split(".")[0].match(h)[0]),r=f[r],q=k.get(r),r=("").concat(r,"-").concat(q),x.Gc=r,x.next=(p={},p[r]={},p),k.set(w,l + 1));0 === m && g.jI(y);g.ag(y,x);});return g.build();};d=a(48456);},79048:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(58304),b);t.__exportStar(a(48456),b);t.__exportStar(a(42405),b);t.__exportStar(a(40071),b);t.__exportStar(a(14999),b);t.__exportStar(a(43813),b);t.__exportStar(a(5293),b);t.__exportStar(a(86398),b);t.__exportStar(a(31021),b);t.__exportStar(a(7314),b);t.__exportStar(a(4152),b);t.__exportStar(a(22332),b);},4152:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.oXb=b.Qia=void 0;b.dUa=function(a){return "immediate" === a;};t=(function(){function a(d,n,c){this.region=d;this.qa=n;this.ta=c;}a.prototype.toJSON=function(){return {region:this.region,Gb:this.qa.lB,Lg:this.ta.lB};};return a;})();b.Qia=t;b.oXb={KK:"forwards",pLa:"backwards",rE:"successors",$S:"predecessors",tq:"distance"};},22332:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});a(22970).__exportStar(a(4645),b);},5293:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.S7c=function(n,c){var f;return Object.keys(n.ba).some(function(g){var e;return null === (e=(f=n.ba[g]).next) || void 0 === e?void 0:e[c];})?f:void 0;};b.T7c=function(n,c){return (0,d.cc)(Object.keys(n.ba),function(f){var g;return null === (g=n.ba[f].next) || void 0 === g?void 0:g[c];});};b.Q7c=function(n,c){return Object.keys(n.ba).filter(function(f){var g;return null === (g=n.ba[f].next) || void 0 === g?void 0:g[c];});};d=a(91176);},58304:function(t,b,a){var n,c;function d(f){return f.map(function(g){return [g[0],g[1]];});}Object.defineProperties(b,{__esModule:{value:!0}});b.Gd=b.zia=void 0;b.iNa=function(f){var g,e,h,k,l,m,p,u,v,w,x,B;e=f.J;h=f.Ua;k=f.Gc;if(f.next){l=f.next;p={};try{for(var r=n.__values(Object.keys(l)),q=r.next();!q.done;q=r.next()){u=q.value;v=u;w=l[u];x={};void 0 !== w.weight && (x.weight=w.weight);void 0 !== w.Yd && (x.Yd=w.Yd);p[v]=x;}}catch(D){var y;y={error:D};}finally{try{q && !q.done && (m=r.return) && m.call(r);}finally{if(y)throw y.error;}}l=p;}else l=f.next;e={J:e,Ua:h,Gc:k,next:l};try{for(var A=n.__values(c),z=A.next();!z.done;z=A.next()){B=z.value;void 0 !== f[B] && (e[B]=f[B]);}}catch(D){var C;C={error:D};}finally{try{z && !z.done && (g=A.return) && g.call(A);}finally{if(C)throw C.error;}}f.Ul && (e.Ul=d(f.Ul));return e;};n=a(22970);b.zia={video:"video",audio:"audio",text:"text"};b.Gd={Rc:"ad",Ra:"adBreak",content:"content",padding:"padding"};c=Object.keys({fb:void 0,playbackRate:void 0,weight:void 0,Yd:void 0,K3a:void 0,type:void 0,gs:void 0,wq:void 0});},48456:function(t,b,a){var n,c,f;function d(g,e){return Object.keys(g).reduce(function(h,k){return (h[e[k] || k]=g[k],h);},{});}Object.defineProperties(b,{__esModule:{value:!0}});b.dx=void 0;n=a(22970);c=a(91176);f=a(58304);t=(function(){function g(e){e && (this.jI(e.sf),this.twa(e.Yd),this.R0a(e.ba));}g.prototype.jI=function(e){this.sf=e;return this;};g.prototype.twa=function(e){this.Yd=e;return this;};g.prototype.J0a=function(e){this.Gh=e;return this;};g.prototype.fu=function(e){var h;return null === (h=this.ba) || void 0 === h?void 0:h[e];};g.prototype.ag=function(e,h,k){this.ba || (this.ba={});this.ba[e]=(0,f.iNa)(h);if(k){e=this.ba[e];if(h=e.next)e.next=d(h,k);e.Gc && k[e.Gc] && (e.Gc=k[e.Gc]);}return this;};g.prototype.LCc=function(e,h){var k,l;l=null === (k=this.ba) || void 0 === k?void 0:k[e];(0,c.assert)(l,("Segment for modification ").concat(e," is not part of segments"));h(l);};g.prototype.R0a=function(e,h,k){void 0 === h && (h=function(){return !0;});this.ba={};return this.e6b(e,h,k);};g.prototype.e6b=function(e,h,k){var l;l=this;void 0 === h && (h=function(){return !0;});Object.keys(e).filter(function(m){return h(e[m],m);}).forEach(function(m){l.ag(m,e[m],k);});return this;};g.prototype.suc=function(e){var h;return !(null === (h=this.ba) || void 0 === h || !h[e]);};g.prototype.aQc=function(e,h){this.LCc(h,function(k){var l,m;k.Gc=e;k.next=k.next?n.__assign(n.__assign({},k.next),(l={},l[e]={},l)):(m={},m[e]={},m);});};g.prototype.build=function(){var e;if(!this.ba)throw Error("Invalid playgraph - `segments` is not defined");if(!this.sf)throw Error("Invalid playgraph - `initialSegment` is not defined");if(!this.ba[this.sf])throw Error("Invalid playgraph - `initialSegment` is not part of `segments`");e={sf:this.sf,ba:this.ba};this.Yd && (e.Yd=this.Yd);this.Gh && (e.Gh=this.Gh);return e;};return g;})();b.dx=t;},42405:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.BFa=void 0;b.BFa=(function(){function a(){}a.decode=function(d){return Object.assign({initialSegment:d.sf,segments:a.Xgc(d.ba)},void 0 !== d.Yd?{transitionType:d.Yd}:{});};a.encode=function(d){return Object.assign({sf:d.initialSegment,ba:a.Mkc(d.segments)},void 0 !== d.transitionType?{Yd:d.transitionType}:{});};a.Mkc=function(d){return Object.keys(d).reduce(function(n,c){n[c]=a.Lkc(d[c]);return n;},{});};a.Lkc=function(d){return Object.assign({J:d.viewableId,Ua:d.startTimeMs},d.endTimeMs?{fb:d.endTimeMs}:{},d.defaultNext?{Gc:d.defaultNext}:{},d.weight?{weight:d.weight}:{},d.transitionType?{Yd:d.transitionType}:{},d.next?{next:a.Jkc(d.next)}:{},d.exitZones?{Ul:d.exitZones}:{},d.playbackRate?{playbackRate:d.playbackRate}:{},d.uxSegment?{K3a:d.uxSegment}:{},d.type?{type:d.type}:{},void 0 !== d.fadeIn?{gs:d.fadeIn}:{},void 0 !== d.fadeOut?{wq:d.fadeOut}:{},void 0 !== d.main?{wp:d.main}:{});};a.Jkc=function(d){return Object.keys(d).reduce(function(n,c){n[c]=a.Kkc(d[c]);return n;},{});};a.Kkc=function(d){return Object.assign({},void 0 !== d.weight?{weight:d.weight}:{},d.transitionType?{Yd:d.transitionType}:{});};a.Xgc=function(d){return Object.keys(d).reduce(function(n,c){n[c]=a.Wgc(d[c]);return n;},{});};a.Wgc=function(d){return Object.assign({viewableId:d.J,startTimeMs:d.Ua},d.fb?{endTimeMs:d.fb}:{},d.Gc?{defaultNext:d.Gc}:{},d.weight?{weight:d.weight}:{},d.Yd?{transitionType:d.Yd}:{},d.next?{next:a.Ugc(d.next)}:{},d.Ul?{exitZones:d.Ul}:{},d.playbackRate?{playbackRate:d.playbackRate}:{},d.K3a?{uxSegment:d.K3a}:{},d.type?{type:d.type}:{},void 0 !== d.gs?{fadeIn:d.gs}:{},void 0 !== d.wq?{fadeOut:d.wq}:{},void 0 !== d.wp?{main:d.wp}:{});};a.Ugc=function(d){return Object.keys(d).reduce(function(n,c){n[c]=a.Vgc(d[c]);return n;},{});};a.Vgc=function(d){return Object.assign({},void 0 !== d.weight?{weight:d.weight}:{},d.Yd?{transitionType:d.Yd}:{});};return a;})();},14999:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.r1a=function(n,c,f){var g;g=new d.dx();g.jI(c).twa("lazy").J0a(f).ag(c,{J:n,Ua:0,fb:Infinity});return g.build();};d=a(48456);},43813:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.bdd=function(n,c,f){var g;g=new d.dx();g.jI("s0").twa("immediate").J0a(f).ag("s0",{J:n,Ua:0,fb:1E3 * c,weight:.5,next:{s1:{weight:.5}}}).ag("s1",{J:n,Ua:1E3 * c,fb:Infinity});return g.build();};d=a(48456);},43341:function(t,b,a){var c,f;function d(g,e){var h,k,p;k=f.I.ia;try{for(var l=c.__values(g),m=l.next();!m.done;m=l.next()){p=m.value;if(p.J === e)return {K:p,tq:k};k=k.add(p.Wb);}}catch(q){var r;r={error:q};}finally{try{m && !m.done && (h=l.return) && h.call(l);}finally{if(r)throw r.error;}}return {K:void 0,tq:f.I.ia};}function n(g,e){var h,k,l;return c.__generator(this,function(m){switch(m.label){case 0:(h=g,k=function(){var p;return c.__generator(this,function(r){switch(r.label){case 0:return [4,h];case 1:return (r.T(),h=(p=null !== (l=h.Gc) && void 0 !== l?l:void 0)?(0,f.cc)(e,function(q){return q.id === p;}):void 0,[2]);}});},m.label=1);case 1:return h?[5,k()]:[3,3];case 2:return (m.T(),[3,1]);case 3:return [2];}});}Object.defineProperties(b,{__esModule:{value:!0}});b.GFa=void 0;c=a(22970);f=a(91176);t=(function(){function g(e,h,k){void 0 === k && (k={});this.upper=e;this.lower=h;this.v3a=k;}g.prototype.BI=function(e){return this.v3a[e];};g.prototype.gQ=function(e){var h;h=this;return Object.keys(this.v3a).filter(function(k){return h.v3a[k] === e;});};g.prototype.GOc=function(e){return (e=this.BI(e.id))?this.upper.get(e):void 0;};g.prototype.yOc=function(e){var h;h=this;return this.gQ(e.id).map(function(k){return h.lower.get(k);});};g.prototype.BIc=function(e){var h,k,l,m,p,r;h=this;k=this.lower.get(e.L);(0,f.assert)(k && k.Mcc(e.offset));l=this.GOc(k);if(l){if(l.J === k.J)return (e=l.AZa(k.VFb(e.offset)),{L:l.id,offset:e});if(e.offset.equal(f.I.ia) && 0 === c.__spreadArray([],c.__read(this.lower.kH.$S(e.L)),!1).filter(function(q){return h.BI(q.id) === l.id;}).length)return {L:l.id,offset:f.I.ia};if(0 === c.__spreadArray([],c.__read(this.lower.kH.rE(e.L)),!1).filter(function(q){return h.BI(q.id) === l.id;}).length)return {L:l.id,offset:l.Wb};(0,f.assert)(k.Yb.isFinite());k=d(this.lower.kH.KK(e.L),l.J);m=k.K;k=k.tq;p=d(this.lower.kH.pLa(e.L),l.J);r=p.K;p=p.tq;m=m?m.ib:l.Yb;(0,f.assert)(m);r=r?r.Yb:l.ib;(0,f.assert)(r);k=p.add(k);e=e.offset.add(p).nf(k);e=r.add(m.ea(r).eh(e));e=l.AZa(e);return {L:l.id,offset:e};}};g.prototype.AIc=function(e){var h,k,l,m,p,r,q,u,v,w,x,y,A,z,D,E,G,J,L,K;r=this.upper.get(e.L);(0,f.assert)(r);q=r.J;u=r.Uob(e.offset);v=r.VFb(u);(0,f.assert)(v);w=this.yOc(r);x=w.filter(function(I){return I.J === q;}).filter(function(I){return I.MSc(v);});if(x.length){y=x[0];return {L:y.id,offset:y.AZa(v)};}if(u.equal(f.I.ia) && !this.upper.puc(e.L))return {L:w[0].id,offset:f.I.ia};if(u.equal(r.Wb) && !this.upper.vuc(e.L)){A=w[w.length - 1];return {L:A.id,offset:A.Wb};}z=new Set(w.map(function(I){return I.Gc;}).filter(function(I){return !!I;}));e=w.filter(function(I){return !z.has(I.id);});w=w.filter(function(I){return z.has(I.id);});try{for(var B=c.__values(e),C=B.next();!C.done;C=B.next()){D=c.__spreadArray([],c.__read(n(C.value,w)),!1);e=[];y=u=void 0;try{for(var F=(k=void 0,c.__values(D)),H=F.next();!H.done;H=F.next())(y=H.value,u && e.push({Lw:u,K:y,Daa:!1}),u=void 0,y.J === q?(e.push({Lw:y.ib,K:y,Daa:!1}),u=y.Yb):0 === e.length && e.push({Lw:r.ib,K:y,Daa:!1}));}catch(I){k={error:I};}finally{try{H && !H.done && (l=F.return) && l.call(F);}finally{if(k)throw k.error;}}y && (u?e.push({Lw:u,K:y,Daa:!0}):e.push({Lw:r.Yb,K:y,Daa:!0}));E=(0,f.UKa)(e,function(I){return I.Lw.ln(v);});G=(0,f.cc)(e,function(I){return I.Lw.Tf(v);});if(E && G && E.Lw.ln(v) && G.Lw.Tf(v)){if(E.K.id === G.K.id)return {L:E.K.id,offset:f.I.ia};if(E.Lw.G === G.Lw.G)return {L:G.K.id,offset:f.I.ia};J=v.ea(E.Lw).nf(G.Lw.ea(E.Lw));L=D.slice(D.indexOf(E.K),D.indexOf(G.K) + (G.Daa?1:0));K=L.reduce(function(I,O){return I.add(O.Wb);},f.I.ia).eh(J);try{for(var M=(m=void 0,c.__values(L)),P=M.next();!P.done && (y=P.value,!K.lessThan(y.Wb));P=M.next())K=K.ea(y.Wb);}catch(I){m={error:I};}finally{try{P && !P.done && (p=M.return) && p.call(M);}finally{if(m)throw m.error;}}if(y && K.lessThan(null === y || void 0 === y?void 0:y.Wb))return {L:y.id,offset:K};}}}catch(I){A={error:I};}finally{try{C && !C.done && (h=B.return) && h.call(B);}finally{if(A)throw A.error;}}(0,f.assert)(!1,"Upper playgraph position should always map to something in lower playgraph");};return g;})();b.GFa=t;},26162:function(t,b,a){var n,c,f,g,e,h,k;function d(l){l=n.__spreadArray([],n.__read(l.kH.KK(l.initial.id)),!1);(0,c.assert)(l.every(function(m){return 1 >= m.rE;}),"Must be linear playgraph");return l;}Object.defineProperties(b,{__esModule:{value:!0}});b.aCc=function(l,m){var p,r,q,u,v,w,x,y,A,z,B,C,D,F,G,J,L,K,I,O,Q,T;w={};x={};y={};A=d(m);z=l.$y;B=m.$y;z=(0,c.VKa)(z,B);(0,c.assert)(1 === z.length,"Playgraphs to be merged should have exactly one shared viewable");C=z[0];if(A.length){D=A[A.length - 1];D.J === C && Infinity !== D.fb && (A[A.length - 1]=D.extend(c.I.dh));}F={};try{for(var H=n.__values(l.filter(function(Z){return Z.J === C;})),E=H.next();!E.done;E=H.next()){G=E.value;J=G.ib;L=G.Yb;K=J.equal(c.I.ia)?1:0;z=[];try{for(var M=(r=void 0,n.__values(A)),P=M.next();!P.done;P=M.next()){I=P.value;O=B=void 0;I.J === C?0 === K?I.VX(J) && (O=(0,k.LOb)(I,J,L),I.VX(L)?(B=("").concat(G.id),K=2):(B=("").concat(G.id,":").concat(I.id),K=1)):(B=("").concat(G.id,":").concat(I.id),I.VX(L)?(I.ib.lessThan(L) && (O=(0,k.LOb)(I,J,L)),K=2):O=I):1 === K && (B=("").concat(G.id,":").concat(I.id),O=I);if(B && O && (w[B]=G.id,x[B]=I.id,z.length || (y[G.id]=B),z.push({id:B,Uea:O}),1 < z.length)){Q=n.__read(z.slice(-2),2);T=Q[0];D=Q[1];T.Uea=n.__assign(n.__assign({},(0,f.iNa)(T.Uea)),{Gc:D.id,next:(u={},u[D.id]={},u)});}if(2 === K){z.length && (D=z[z.length - 1],D.Uea=n.__assign(n.__assign({},(0,f.iNa)(D.Uea)),{Gc:G.Gc,next:G.next}));break;}}}catch(Z){r={error:Z};}finally{try{P && !P.done && (q=M.return) && q.call(M);}finally{if(r)throw r.error;}}z.forEach(function(Z){return F[Z.id]=Z.Uea;});}}catch(Z){var U;U={error:Z};}finally{try{E && !E.done && (p=H.return) && p.call(H);}finally{if(U)throw U.error;}}try{for(var X=n.__values(l.filter(function(Z){return Z.J !== C;})),Y=X.next();!Y.done;Y=X.next())(G=Y.value,F[G.id]=G,w[G.id]=G.id);}catch(Z){var W;W={error:Z};}finally{try{Y && !Y.done && (v=X.return) && v.call(X);}finally{if(W)throw W.error;}}U=h.rF.create(new g.dx().R0a(F,function(){return !0;},y).jI(y[l.initial.id] || l.initial.id).build());l=new e.GFa(l,U,w);m=new e.GFa(m,U,x);return {Tba:U,Oyc:l,HNc:m};};n=a(22970);c=a(91176);f=a(58304);g=a(48456);e=a(43341);h=a(7314);k=a(48781);},7314:function(t,b,a){var n,c,f,g,e,h,k;function d(l,m){var p,r,q;if(l=l.get(m)){if(l.Gc && 0 !== (null === (r=null === (p=l.next) || void 0 === p?void 0:p[l.Gc]) || void 0 === r?void 0:r.QH))return l.Gc;if(l.next){q=l.next;p=Object.keys(q);return (r=p.reduce(function(u,v){var w;w=n.__read(u,2);u=w[0];w=w[1];return q[v].QH > w?[v,q[v].QH]:[u,w];},[void 0,0])[0])?r:p[0];}}}Object.defineProperties(b,{__esModule:{value:!0}});b.rF=void 0;n=a(22970);c=a(91176);f=a(66164);g=a(48781);e=a(26162);t=(function(){function l(m){this.Z=m;}l.create=function(m){return new k(m);};l.update=function(m,p){return new k(p).m7(m);};l.qo=function(m,p){var r,q;r=(0,e.aCc)(m,p);p=r.Tba;q=r.Oyc;r=r.HNc;m.KPc(p,q);p.UPc(m,q);return {Tba:p,mapping:r};};return l;})();b.rF=t;h=0;k=(function(l){function m(p){var r,q;r=l.call(this,p) || this;r.hya=new WeakMap();r.wS=new Map();r.sb=new f.platform.Console("WORKINGPLAYGRAPH");(0,c.assert)(p.sf,"Playgraph must have an initial segment");q=r.get(p.sf);(0,c.assert)(q,("Could not find initial segment ").concat(p.sf," in playgraph"));r.initial=q;r.kH={rE:r.iBb.bind(r),$S:r.KUa.bind(r),KK:r.hBb.bind(r),pLa:r.gBb.bind(r),tq:r.Vxc.bind(r)};r.Ied={rE:r.OU.bind(r),$S:r.vXc.bind(r),KK:r.uXc.bind(r),pLa:r.sXc.bind(r),tq:r.tXc.bind(r)};r.j6=h++;r.nyb=new c.M7a(function(u){return Object.keys(u.next || ({})).map(function(v){return {YWc:r.get(v),weight:u.Wb.G};});});return r;}n.__extends(m,l);Object.defineProperties(m.prototype,{$y:{get:function(){return this.S4b || (this.S4b=this.qtc());},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{huc:{get:function(){return !!this.$Z;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Kyb:{get:function(){return !!this.C0;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{wqa:{get:function(){var p;return null === (p=this.$Z) || void 0 === p?void 0:p.Z;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{D0:{get:function(){var p;return null === (p=this.C0) || void 0 === p?void 0:p.Z;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{JH:{get:function(){var p;return (null === (p=this.D0) || void 0 === p?void 0:p.JH) || this;},enumerable:!1,configurable:!0}});m.prototype.m7=function(p){var r,q,w,x;q=this.Z.ba;try{for(var u=n.__values(Object.keys(q)),v=u.next();!v.done;v=u.next()){w=v.value;if(p.Syb(w)){x=q[w];this.iDb(w,x,p.get(w));p.wS.has(x.J) && this.normalize(x.J,p.wS.get(x.J));}}}catch(A){var y;y={error:A};}finally{try{v && !v.done && (r=u.return) && r.call(u);}finally{if(y)throw y.error;}}return this;};m.prototype.has=function(p){return !!this.Z.ba[p];};m.prototype.get=function(p){var r;r=this.Z.ba[p];if(r)return this.hya.get(r) || this.iDb(p,r);};m.prototype.entries=function(){var p,r,q,u,v,w;return n.__generator(this,function(x){switch(x.label){case 0:(x.tc.push([0,5,6,7]),p=n.__values(Object.keys(this.Z.ba)),r=p.next(),x.label=1);case 1:if(r.done)return [3,4];q=r.value;return [4,[q,this.get(q)]];case 2:(x.T(),x.label=3);case 3:return (r=p.next(),[3,1]);case 4:return [3,7];case 5:return (u=x.T(),v={error:u},[3,7]);case 6:try{r && !r.done && (w=p.return) && w.call(p);}finally{if(v)throw v.error;}return [7];case 7:return [2];}});};m.prototype.forEach=function(p){var r;r=this;Object.keys(this.Z.ba).forEach(function(q){var u;u=r.get(q);p(u,q,r);});};m.prototype.keys=function(){return Object.keys(this.Z.ba).values();};m.prototype.values=function(){var p,r,q,u,v,w;return n.__generator(this,function(x){switch(x.label){case 0:(x.tc.push([0,5,6,7]),p=n.__values(Object.keys(this.Z.ba)),r=p.next(),x.label=1);case 1:if(r.done)return [3,4];q=r.value;return [4,this.get(q)];case 2:(x.T(),x.label=3);case 3:return (r=p.next(),[3,1]);case 4:return [3,7];case 5:return (u=x.T(),v={error:u},[3,7]);case 6:try{r && !r.done && (w=p.return) && w.call(p);}finally{if(v)throw v.error;}return [7];case 7:return [2];}});};m.prototype.normalize=function(p,r){var q,u,v;q=this;v=!1;this.fnc(function(w){w.J === p && (v || q.wS.set(p,r),q.vFb(w),v=!0);});v && this.Kyb && (null === (u=this.D0) || void 0 === u?void 0:u.normalize(p,r));};m.prototype.iKb=function(p){var r;this.wS.has(p) && (this.wS.delete(p),null === (r=this.C0) || void 0 === r?void 0:r.Z.iKb(p));};m.prototype.Wsa=function(p,r,q){this.Syb(p) && this.get(p).normalize(r,q);};m.prototype.filter=function(p){var r,q,u,v,w,x;return n.__generator(this,function(y){switch(y.label){case 0:(y.tc.push([0,5,6,7]),r=n.__values(Object.keys(this.Z.ba)),q=r.next(),y.label=1);case 1:if(q.done)return [3,4];u=q.value;return p(this.Z.ba[u])?[4,this.get(u)]:[3,3];case 2:(y.T(),y.label=3);case 3:return (q=r.next(),[3,1]);case 4:return [3,7];case 5:return (v=y.T(),w={error:v},[3,7]);case 6:try{q && !q.done && (x=r.return) && x.call(r);}finally{if(w)throw w.error;}return [7];case 7:return [2];}});};m.prototype.wl=function(p,r){var q,u,v,w;p=this.get(p);q=null === p || void 0 === p?void 0:p.next;if(q){Object.keys(r).forEach(function(x){var y;y=q[x];y && (y.weight=r[x]);});u=(0,g.G$b)(q);v=u.PFb;w=u.ROb;Object.keys(q).forEach(function(x){if(x=q[x])x.QH=(0,g.F$b)(x.weight,v,w);});}null === p || void 0 === p?void 0:p.wl(r);};m.prototype.jBb=function(p,r){var q,u;return n.__generator(this,function(v){switch(v.label){case 0:(q=r,v.label=1);case 1:return q?(u=this.get(q))?[4,u]:[3,3]:[3,3];case 2:return (v.T(),q=p(this,q),[3,1]);case 3:return [2];}});};m.prototype.vuc=function(p){p=this.Z.ba[p];return !!(p && p.next && Object.keys(p.next).length);};m.prototype.puc=function(p){p=this.get(p);return !(!p || !this.wxb(p).length);};m.prototype.KPc=function(p,r){this.$Z={Z:p,mapping:r};};Object.defineProperties(m.prototype,{id:{get:function(){return this.j6;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{identifier:{get:function(){var p,r,q,u,v;return ("").concat(null !== (r=null === (p=this.C0) || void 0 === p?void 0:p.Z.id) && void 0 !== r?r:"N"," -> (").concat(this.id,") -> ").concat(null !== (v=null === (u=null === (q=this.$Z) || void 0 === q?void 0:q.Z) || void 0 === u?void 0:u.id) && void 0 !== v?v:"N");},enumerable:!1,configurable:!0}});m.prototype.UPc=function(p,r){this.C0={Z:p,mapping:r};};m.prototype.uH=function(p){var r;return null === (r=this.C0) || void 0 === r?void 0:r.mapping.BI(p);};m.prototype.LL=function(p){return this.Kyb?(p=this.uH(p)) && this.D0.LL(p):p;};m.prototype.vDb=function(p){if(!this.huc)return p;p=this.wqa.vDb(p);if(void 0 !== p)return this.wqa.uH(p);};m.prototype.WVa=function(p){var r;return null === (r=this.C0) || void 0 === r?void 0:r.mapping.BIc(p);};m.prototype.UAc=function(p){var r;return null === (r=this.$Z) || void 0 === r?void 0:r.mapping.AIc(p);};m.prototype.Syb=function(p){return (p=this.Z.ba[p]) && this.hya.has(p);};m.prototype.iBb=function(p){var r,q,u,v,w,x,y;return n.__generator(this,function(A){switch(A.label){case 0:r=this.Z.ba[p];if(!r || !r.next)return [3,8];A.label=1;case 1:(A.tc.push([1,6,7,8]),q=n.__values(Object.keys(r.next)),u=q.next(),A.label=2);case 2:if(u.done)return [3,5];v=u.value;return [4,this.get(v)];case 3:(A.T(),A.label=4);case 4:return (u=q.next(),[3,2]);case 5:return [3,8];case 6:return (w=A.T(),x={error:w},[3,8]);case 7:try{u && !u.done && (y=q.return) && y.call(q);}finally{if(x)throw x.error;}return [7];case 8:return [2];}});};m.prototype.OU=function(p,r,q){this.Zxa(this.iBb(p),r,q);};m.prototype.KUa=function(p){var r,q,u,v,w,x,y;return n.__generator(this,function(A){switch(A.label){case 0:r=this.get(p);if(!r)return [3,8];A.label=1;case 1:(A.tc.push([1,6,7,8]),q=n.__values(this.wxb(r)),u=q.next(),A.label=2);case 2:if(u.done)return [3,5];v=u.value;return [4,this.get(v)];case 3:(A.T(),A.label=4);case 4:return (u=q.next(),[3,2]);case 5:return [3,8];case 6:return (w=A.T(),x={error:w},[3,8]);case 7:try{u && !u.done && (y=q.return) && y.call(q);}finally{if(x)throw x.error;}return [7];case 8:return [2];}});};m.prototype.vXc=function(p,r,q){this.Zxa(this.KUa(p),r,q);};m.prototype.Zxa=function(p,r,q){var u,v,y,A,z;v=!0;try{for(var w=n.__values(p),x=w.next();!x.done;x=w.next()){y=x.value;A=r(y,z,this,q);v=A.OU;q=A.state;if(!v)break;z=y;}}catch(C){var B;B={error:C};}finally{try{x && !x.done && (u=w.return) && u.call(w);}finally{if(B)throw B.error;}}};m.prototype.hBb=function(p){return this.jBb(d,p);};m.prototype.uXc=function(p,r,q){this.Zxa(this.hBb(p),r,q);};m.prototype.gBb=function(p){var r,q;return n.__generator(this,function(u){switch(u.label){case 0:(r=this.get(p),u.label=1);case 1:if(!r)return [3,3];q=n.__spreadArray([],n.__read(this.KUa(r.id)),!1);if(0 === q.length)return [3,3];r=1 === q.length?q[0]:(0,c.cc)(q,function(v){return v.Gc === p;}) || q[0];return [4,r];case 2:return (u.T(),[3,1]);case 3:return [2];}});};m.prototype.sXc=function(p,r,q){this.Zxa(this.gBb(p),r,q);};m.prototype.Vxc=function(){(0,c.assert)(!1,"Not implemented");};m.prototype.tXc=function(p,r,q){var u;u=this;p=this.get(p);(0,c.assert)(p,"Segment not found in playgraph");this.nyb.$Rb(p,function(v,w,x,y){return r(v,x,u,y);},q);};m.prototype.iDb=function(p,r,q){p=new g.Gib(p,r,this.Z.Yd || "lazy",this.identifier,q);!p.pn && this.wS.has(r.J) && this.vFb(p);this.hya.set(r,p);return p;};m.prototype.fnc=function(p){var r;r=this;Object.keys(this.Z.ba).forEach(function(q){var u;u=r.hya.get(r.Z.ba[q]);u && p(u,q);});};m.prototype.vFb=function(p){var r;r=this.wS.get(p.J);r && p.normalize(r(p.Ua),r(p.fb));};m.prototype.qtc=function(){var p;p=this;return (0,c.TKa)(Object.keys(this.Z.ba).map(function(r){return p.Z.ba[r].J;}));};m.prototype.wxb=function(p){var q;if(!p.$S){p.$S=[];for(var r in this.Z.ba){q=this.Z.ba[r].next;q && (p.id in q) && p.$S.push(r);}}return p.$S;};return m;})(t);},48781:function(t,b,a){var e,h,k,l,m;function d(p,r,q){var u,v,w,x;if(p.next){u=(null === q || void 0 === q?0:q.next)?c(p.next,q.next):p.next;p=f(u);v=p.ROb;w=p.PFb;x={};p.aB.forEach(function(y){x[y]=new m(u[y],w,v,r);});return x;}}function n(p,r){if("immediate" !== p)return 1;p=r.next?Object.keys(r.next):[];if(p.some(function(q){return void 0 !== r.next[q].weight;})){if(void 0 === r.weight)return 0;p=r.weight + p.reduce(function(q,u){return q + (r.next[u].weight || 0);},0);return r.weight / p;}return 1 / (p.length + 1);}function c(p,r){var q,u,x;u={};try{for(var v=e.__values(Object.keys(p)),w=v.next();!w.done;w=v.next()){x=w.value;u[x]=r[x] || p[x];}}catch(A){var y;y={error:A};}finally{try{w && !w.done && (q=v.return) && q.call(v);}finally{if(y)throw y.error;}}return u;}function f(p){var r,q,u;r=Object.keys(p);q=r.every(function(v){return void 0 === p[v].weight;})?void 0:r.reduce(function(v,w){return v + (p[w].weight || 0);},0);u=void 0 === q?r.length:r.reduce(function(v,w){return v + (p[w].weight?1:0);},0);return {aB:r,PFb:u,ROb:q};}function g(p,r,q){return void 0 === q?1 / r:0 === q?void 0 === p?1 / r:0:void 0 === p?0:p / q;}Object.defineProperties(b,{__esModule:{value:!0}});b.u1b=b.Gib=void 0;b.LOb=function(p,r,q){return e.__assign(e.__assign({},p.K),{Ua:h.I.max(r,p.ib).G,fb:h.I.min(q,p.Yb).G});};b.T$c=d;b.I5c=n;b.yad=c;b.G$b=f;b.F$b=g;e=a(22970);h=a(91176);k=a(4152);l=a(58304);t=(function(){function p(r,q,u,v,w){var x,y;x=this;this.id=r;this.K=q;this.wgc=v;this.pn=!1;this.GF={};this.Fpa=function(A){var z,B,C,D;return (null === (z=x.Dy) || void 0 === z?0:z.length)?"immediate":null !== (D=null === (C=null === (B=x.next) || void 0 === B?void 0:B[A]) || void 0 === C?void 0:C.Yd) && void 0 !== D?D:x.Yd;};this.JJa=null !== (y=q.Yd) && void 0 !== y?y:u;this.weight=w?w.weight:q.weight;this.Gc=null !== q.Gc?q.Gc:void 0;this.next=q.next?d(q,this.JJa,w):void 0;this.QH=n(this.JJa,this);this.ib=(this.pn=r=w?w.pn && w.fb === q.fb && w.Ua === q.Ua:!1)?w.ib:h.I.Ba(q.Ua);this.Yb=r?w.Yb:h.I.Ba(q.fb || Infinity);this.Dy=w && r?w.Dy:void 0;this.wl();}Object.defineProperties(p.prototype,{J:{get:function(){return this.K.J;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{type:{get:function(){return this.K.type || l.Gd.content;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Ua:{get:function(){return this.K.Ua;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{fb:{get:function(){return this.K.fb || Infinity;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{gs:{get:function(){return this.K.gs;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{wq:{get:function(){return this.K.wq;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Ul:{get:function(){return this.K.Ul;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{wp:{get:function(){return this.K.wp;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Wb:{get:function(){var r;return (null === (r=this.Yb) || void 0 === r?void 0:r.ea(this.ib)) || h.I.dh;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{rE:{get:function(){return this.next?Object.keys(this.next).length:0;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{p2:{get:function(){return this.aB.length?!this.Gc && 0 === this.g0.length:!0;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{bxc:{get:function(){return !this.type || this.type === l.Gd.content;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{aB:{get:function(){return Object.keys(this.next || ({}));},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{EDc:{get:function(){return this.GF;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{g0:{get:function(){var r;r=this;return this.aB.filter(function(q){return !!r.GF[q];});},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{X1a:{get:function(){var r;return null !== (r=this.Kkb) && void 0 !== r?r:this.Kkb=this.U$b();},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{axa:{get:function(){var r;return null !== (r=this.Lkb) && void 0 !== r?r:this.Lkb=this.V$b();},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Fw:{get:function(){return this.weight?this.weight / (this.weight + this.axa):1;},enumerable:!1,configurable:!0}});Object.defineProperties(p.prototype,{Yd:{get:function(){var r;return (null === (r=this.Dy) || void 0 === r?0:r.length)?"immediate":this.JJa;},enumerable:!1,configurable:!0}});p.prototype.Uob=function(r){return h.I.min(h.I.max(h.I.ia,r),this.Wb);};p.prototype.VFb=function(r){return this.ib.add(r);};p.prototype.AZa=function(r){return r.ea(this.ib);};p.prototype.MSc=function(r){return r.greaterThan(this.ib) && r.lessThan(this.Yb);};p.prototype.VX=function(r){return r.Tf(this.ib) && r.ln(this.Yb);};p.prototype.Mcc=function(r){return r.Tf(h.I.ia) && r.ln(this.Wb);};p.prototype.normalize=function(r,q){var u;if(r && q){u=Math.max(r.O,q.O);this.ib=r.Kc(u);this.Yb=q.Kc(u);this.K.Ua=this.ib.G;this.K.fb=this.Yb.G;this.pn=!0;}};p.prototype.r3a=function(r){this.weight=r;this.QH=n(this.Yd,this);};p.prototype.extend=function(r){this.Yb=r;return this;};p.prototype.luc=function(r){return !!(this.next && -1 < Object.keys(this.next).indexOf(r));};p.prototype.gwb=function(){var r;return this.g0.length?null !== (r=this.g0.map(this.Fpa).reduce(function(q,u){return q === u?u:void 0;})) && void 0 !== r?r:this.Yd:this.Yd;};p.prototype.E$b=function(r){var q,u;if(this.X1a){q=(this.GF[r] || 0) / this.X1a;if(void 0 === this.weight || 0 === this.axa)return {ef:q};u=this.Fw;return 1 !== u && (0,k.dUa)(this.Fpa(r)) && this.GF[r]?{ef:u * q,$K:this.GF[r] / this.axa * (1 - u)}:{ef:u * q};}return {ef:(null === (q=this.next) || void 0 === q?0:q[r])?1 / this.rE:0};};p.prototype.UMb=function(r){this.Dy=r;this.oSb();};p.prototype.wl=function(r){var q;if(this.next){q=this.next;this.GF=Object.keys(this.next).reduce(function(u,v){var w;w=r?r[v] || 0:q[v].weight;void 0 !== w && null !== w && 0 <= w && (u[v]=w);return u;},{});}else this.GF={};this.oSb();};p.prototype.U$b=function(){var r;r=this;return this.g0.reduce(function(q,u){return q + r.GF[u];},0);};p.prototype.V$b=function(){var r;r=this;return this.g0.filter(function(q){return (0,k.dUa)(r.Fpa(q));}).reduce(function(q,u){return q + r.GF[u];},0);};p.prototype.oSb=function(){this.Lkb=this.Kkb=void 0;};p.prototype.toString=function(){var r;r=new h.lW(this.ib,this.Yb);return ("WSeg[").concat(this.wgc,"](").concat(this.id,") ") + ("").concat(r.toString(h.kJ.G),"v:").concat(this.J);};return p;})();b.Gib=t;m=(function(){return function(p,r,q,u){this.QH=0;this.Yd=p.Yd || u;this.weight=p.weight;this.QH=g(p.weight,r,q);};})();b.u1b=m;},35621:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.u4a=void 0;d=a(22970);n=a(28020);t=(function(){function c(f){this.events=[];this.total=0;this.options=d.__assign({},f);}c.prototype.clear=function(){this.events=[];this.filled=void 0;this.total=0;};Object.defineProperties(c.prototype,{vvb:{get:function(){if(this.filled){if((0,n.ha)() - this.filled.ha < this.filled.reset)return !0;this.filled=void 0;}return !1;},enumerable:!1,configurable:!0}});c.prototype.push=function(f){var g,e,h,k,l;if(!this.vvb){g=(0,n.ha)();e=this.options.GS;h=g - e;this.events=this.events.filter(function(m){return m.ha > h;});f=this.events.push({ha:g,event:f});k=this.events;l=this.options;if(f >= l.count)return (this.total++,l=l.reset,"function" === typeof l && (l=l()),this.filled={ha:g,reset:l},this.events=[],{ha:g,total:this.total,count:f,GS:e,reset:l,events:k});}};return c;})();b.u4a=t;},42050:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.T4a=void 0;d=a(22970);n=a(91072);c=a(28951);f=a(62411);b.T4a=(function(){function g(){}g.open=function(e){return d.__awaiter(this,void 0,void 0,function(){var h,k,l,m,p,r,q,u,v,w,x,y,A;return d.__generator(this,function(z){switch(z.label){case 0:return (h=e.timing || new n.fHa(),[4,e.Lx(h)]);case 1:(k=z.T(),l=e.trace.extend("ale-auth"),m=e.jD,z.label=2);case 2:return (z.tc.push([2,7,,8]),p=new c.EDa(k),l("Waiting for nonce and creating ALE session"),r=null !== (A=e.timeout) && void 0 !== A?A:this.timeout,[4,Promise.all([h.tla(["network","nonce"],function(){return p.S3a(r,m.nonce.bind(m));}),h.tla(["session","ale"],function(){return e.eX.clc();})])]);case 3:return (q=z.T()[0],l("Created ALE session"),l("Nonce is",q),[4,h.tla(["encrypt","ale"],function(){return e.eX.encrypt(q);})]);case 4:u=z.T();v=u.token;w=u.iG;k.send(m.response(v,w));if(!m.validate)return [3,6];x=m.validate.bind(m);return [4,h.tla(["network","response"],function(){return p.S3a(r,x);})];case 5:(z.T(),z.label=6);case 6:return [2,k];case 7:throw (y=z.T(),l("ALE authentication failed with",y),k.close(),(0,f.vTb)("ale-encrypted-nonce",y));case 8:return [2];}});});};g.timeout=8E3;return g;})();},61222:function(t,b,a){var n,c,f,g;function d(e,h,k){return n.__awaiter(this,void 0,void 0,function(){var l,m,p,r,q,u;return n.__generator(this,function(v){switch(v.label){case 0:return (v.tc.push([0,2,,3]),[4,h()]);case 1:return [2,v.T()];case 2:return (l=v.T(),m=k.token,p=k.tl,r=k.Hu,q=k.zc,u={type:"ale-failure",step:e,Dc:(0,g.kN)(l),now:new Date().toISOString(),ha:(0,f.ha)(),token:null !== m && void 0 !== m?m:null === p || void 0 === p?void 0:p.token,Hu:(null === q || void 0 === q?void 0:q.ak) || r,Tm:null === q || void 0 === q?void 0:q.vgc.toISOString(),expiration:null === p || void 0 === p?void 0:p.tk().toISOString(),dX:q?(0,f.ha)() - q.tgc:void 0,Ada:null === p || void 0 === p?void 0:p.xea()},[2,Promise.reject(u)]);case 3:return [2];}});});}Object.defineProperties(b,{__esModule:{value:!0}});b.U4a=void 0;n=a(22970);c=a(73608);f=a(28020);g=a(62411);t=(function(){function e(h,k){var l,m;this.Hu=1;this.options=n.__assign({},h);this.Ol=h.Ol;this.options.E_a=null !== (l=h.E_a) && void 0 !== l?l:!0;this.options.mzb=null !== (m=h.mzb) && void 0 !== m?m:!0;this.trace=h.trace.extend(k.Qpb,"ale-client");this.config=k;}e.khc=function(h){h=h.Ol;return {Qpb:"SOCKETROUTER",scheme:c.AleScheme.A128CBC_HS256,keyx:c.AleKeyxScheme.CLEAR,crypto:h.crypto,mg:h.mg,ij:h.ij};};e.gnc=function(h){return new e(h,this.khc(h));};e.prototype.rsc=function(){this.hwa || (this.hwa=new c.Z4a(this.config));return this.hwa;};e.prototype.Oxb=function(){return n.__awaiter(this,void 0,void 0,function(){var h,k,l,m,p,r;r=this;return n.__generator(this,function(q){switch(q.label){case 0:if(this.tl && !this.tl.xea())return [3,5];this.zc=void 0;h=this.Hu++;return [4,d("create-service",function(){return r.rsc();},{Hu:h})];case 1:return (k=q.T(),[4,d("get-request",function(){return k.Rrc();},{Hu:h})]);case 2:return (l=q.T(),this.trace("Provision request",l),[4,d("provision",function(){return r.Ol.sKc(l);},{Hu:h})]);case 3:return (m=q.T(),this.trace("Provision response",m),p=this,[4,d("create-session",function(){return k.createSession(m);},{Hu:h})]);case 4:return (p.tl=q.T(),this.zc={ak:h,tgc:(0,f.ha)(),vgc:new Date()},this.trace("Created session with expiration",this.tl.tk().toISOString()),[3,6]);case 5:(this.trace("Reusing session with expiration",this.tl.tk().toISOString()),q.label=6);case 6:return [2,this.tl];}});});};e.prototype.zwb=function(h){return n.__awaiter(this,void 0,void 0,function(){var k,l,m,p;return n.__generator(this,function(r){switch(r.label){case 0:if(this.options.mzb)return [3,2];k=this;l=k.tl;m=k.Hu;p=k.zc;return [4,d(h,function(){if(!l)throw (0,g.Rga)("No session has been created");if(l.xea())throw (0,g.Rga)("Session is due for renewal");},{tl:l,Hu:m,zc:p})];case 1:(r.T(),r.label=2);case 2:return [2,this.Oxb()];}});});};e.prototype.clc=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(h){switch(h.label){case 0:return [4,this.Oxb()];case 1:return (h.T(),[2]);}});});};Object.defineProperties(e.prototype,{xea:{get:function(){var h,k;return null !== (k=null === (h=this.tl) || void 0 === h?void 0:h.xea()) && void 0 !== k?k:!0;},enumerable:!1,configurable:!0}});e.prototype.reset=function(){this.tl && (this.trace("Dropping session"),this.tl=void 0);};e.prototype.encrypt=function(h){return n.__awaiter(this,void 0,void 0,function(){var k,l,m,p,r,q;return n.__generator(this,function(u){switch(u.label){case 0:return (u.tc.push([0,3,,4]),k="encrypt",[4,this.zwb(k)]);case 1:return (l=u.T(),m=l.token,[4,d(k,function(){return l.Nkc(h);},{tl:l,token:m,zc:this.zc})]);case 2:return (p=u.T(),r={token:m,iG:p},this.trace("Encrypted : ",h,r),[2,r]);case 3:throw (q=u.T(),this.trace("Encrypt failed :",q),this.options.E_a && this.reset(),q);case 4:return [2];}});});};e.prototype.decrypt=function(h){return n.__awaiter(this,void 0,void 0,function(){var k,l,m,p;return n.__generator(this,function(r){switch(r.label){case 0:return (r.tc.push([0,3,,4]),k="decrypt",[4,this.zwb(k)]);case 1:return (l=r.T(),[4,d(k,function(){return l.ehc(h);},{tl:l,zc:this.zc})]);case 2:return (m=r.T(),this.trace("Decrypted : ",h,m),[2,m]);case 3:throw (p=r.T(),this.trace("Decrypt failed :",p),this.options.E_a && this.reset(),p);case 4:return [2];}});});};return e;})();b.U4a=t;},64743:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Sza=void 0;d=a(22970);t=(function(n){function c(f,g){var e;e=n.call(this,f,g) || this;e.closed.then(function(){return e.clear();});return e;}d.__extends(c,n);c.prototype.clear=function(){var f;f=this.Od;if(f)return (this.Od=void 0,f.open && (this.trace("Closing",f.id),f.close()),this.emit("disconnected",{Od:f}),f);};c.prototype.set=function(f){var g,e;g=this;if(this.open && this.Od !== f){e=this.clear();f.open && (this.Od=f,f.closed.then(function(){g.IU(f) && g.clear();}),f.on("message",function(h){h=h.message;g.IU(f) && g.emit("message",{Od:f,message:h});}),f.on("failure",function(h){var k;k=h.Ee;h=h.error;g.IU(f) && g.emit("failure",{Ee:k,error:h,Od:f});}),this.trace("Connected to",f.id),this.emit("connected",{Od:f}));return e;}};c.prototype.isConnected=function(){var f;return this.open && (null === (f=this.Od) || void 0 === f?void 0:f.open);};c.prototype.IU=function(f){return this.open && f === this.Od;};Object.defineProperties(c.prototype,{connected:{get:function(){return this.isConnected();},enumerable:!1,configurable:!0}});c.prototype.send=function(f){var g;if(this.open && (null === (g=this.Od) || void 0 === g?0:g.open))return this.Od.send(f);};return c;})(a(9568).L5);b.Sza=t;},94933:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.$6a=void 0;d=a(22970);n=a(91072);c=a(28020);f=a(62411);t=(function(g){function e(h){var k;k=g.call(this,"CON",h.trace) || this;k.Py=(0,c.ha)();k.timing=new n.fHa();k.attempt=0;k.options=d.__assign({},h);return k;}d.__extends(e,g);e.open=function(h){return d.__awaiter(this,void 0,void 0,function(){var k;return d.__generator(this,function(l){switch(l.label){case 0:(k=new e(h),l.label=1);case 1:return (l.tc.push([1,3,,4]),[4,k.connect()]);case 2:return (l.T(),[3,4]);case 3:return (l.T(),k.close(),[3,4]);case 4:return (k.Ud && !k.failure && (k.failure={type:"connection-failed",types:f.eub(k.IQ),gA:k.IQ}),[2,k]);}});});};e.prototype.finish=function(h,k){var l;l=this;k.open?(h.end(),this.set(k),k.closed.then(function(){return l.close();})):(k=f.N$a("Factory returned a closed socket"),this.failure={type:"connection-failed",types:f.eub(k),gA:[k]},h.end(this.failure),this.close());};e.prototype.Dob=function(h,k){k=f.kN(k);if("connection-disabled" === k.type)throw (h.end(k),this.failure=k,k);};e.prototype.connect=function(){return d.__awaiter(this,void 0,void 0,function(){var h,k,l,m,p,r,q,u,v,w;return d.__generator(this,function(x){switch(x.label){case 0:(h=this.options,k=h.Lx,l=h.retry,m=this.timing.Pwa("connect"),x.label=1);case 1:return (x.tc.push([1,3,,8]),this.attempt++,p=this.finish,r=[m],[4,k(m.details())]);case 2:return [2,p.apply(this,r.concat([x.T()]))];case 3:q=x.T();this.Dob(m,q);m.end(null !== q && void 0 !== q?q:f.N$a("Factory failed with no error"));if(!l)throw q;u=this.timing.Pwa("retry");x.label=4;case 4:return (x.tc.push([4,6,,7]),[4,l(this.attempt,this.IQ)]);case 5:if(v=x.T())return [2,this.finish(u,v)];u.end();return [2,this.connect()];case 6:throw (w=x.T(),this.Dob(u,w),u.end(null !== w && void 0 !== w?w:f.Wia(this.attempt)),w);case 7:return [3,8];case 8:return [2];}});});};Object.defineProperties(e.prototype,{Ud:{get:function(){return !this.connected;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{duration:{get:function(){return this.timing.duration;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{tPb:{get:function(){return (0,c.ha)() - this.Py;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{M_a:{get:function(){return this.timing.ps.reduce(function(h,k){var l;l=k.error;return "retry" !== k.type || l?h:h + 1;},0);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{hUc:{get:function(){return (0,c.ha)() - this.timing.end;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{IQ:{get:function(){return this.timing.ps.filter(function(h){return h.error;}).map(function(h){return f.kN(h.error);});},enumerable:!1,configurable:!0}});return e;})(a(64743).Sza);b.$6a=t;},94450:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.Counter=void 0;t=(function(){function a(d,n,c){this.total=0;this.counter=d.counter(n,c);}a.prototype.CA=function(d){void 0 === d && (d=1);this.total+=d;this.counter.CA(d);};return a;})();b.Counter=t;},70402:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.EventEmitter=void 0;d=a(22970);t=a(90745);n=(function(c){function f(g,e,h){var k;k=c.call(this) || this;h?k.resolve():k.listener=g.listener(e,function(){k.clear();k.resolve();});return k;}d.__extends(f,c);f.prototype.clear=function(){this.listener && (this.listener.clear(),this.listener=void 0);};return f;})(a(91176).Jo);a=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.listener=function(g,e){var h;h=this;this.on(g,e);return {clear:function(){return h.$l(g,e);}};};f.prototype.sCb=function(g,e){return new n(this,g,e);};return f;})(t.EventEmitter);b.EventEmitter=a;},4343:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.fBa=void 0;d=a(22970);t=a(70402);n=a(35621);c={count:Infinity,GS:-Infinity,reset:-Infinity};a=(function(f){function g(e){var h,k;void 0 === e && (e=c);h=f.call(this) || this;k=e.reset;h.TW=new n.u4a({count:e.count,GS:e.GS,reset:function(){return "number" === typeof k?k:k(h.TW.total,h.TW.events.map(function(l){return l.event.error;}));}});return h;}d.__extends(g,f);g.prototype.reset=function(){this.TW.clear();};Object.defineProperties(g.prototype,{LKc:{get:function(){return this.TW.vvb;},enumerable:!1,configurable:!0}});g.prototype.failure=function(e,h,k){var l,m,p,r,q,u;l=this;if(e=this.TW.push({Ee:e,Od:h.id,error:k})){m=e.total;p=e.count;r=e.GS;q=e.reset;u=e.events.map(function(v){return d.__assign({ha:v.ha},v.event);});Promise.resolve().then(function(){l.emit("failed",{Od:h,error:{type:"accumulated-failures",message:("Received ").concat(p," failure(s) over ").concat(r," ms"),total:m,reset:q,gA:u}});});}return this.TW.events.length;};return g;})(t.EventEmitter);b.fBa=a;},62411:function(t,b,a){var g;function d(e){var h;h=typeof e;if(e && "object" === h){if(e instanceof Error)return {type:"jse",name:e.name,message:e.message,stack:e.stack};if(e.type)return "jse" !== e.type && e.stack?g.__assign(g.__assign({},e),{line:void 0,sourceURL:void 0,stack:void 0}):e;}return {type:"unknown",ded:h,value:e};}function n(e){if(e && "object" === typeof e && "string" === typeof e.type)return e;}function c(e){var l,m;function h(p){var q;if(k(p)){l.push(p);if(Array.isArray(p))return p.forEach(function(u){return h(u);});for(var r in p){q=p[r];k(q) && h(q);}(p=n(p)) && m.push(p);}}function k(p){return p && "object" === typeof p && 0 > l.indexOf(p);}l=[];m=[];h(e);return m;}function f(e){return c(e).reduce(function(h,k){var l;k=k.type;h[k]=(null !== (l=h[k]) && void 0 !== l?l:0) + 1;return h;},{});}Object.defineProperties(b,{__esModule:{value:!0}});b.N$a=function(e){try{throw Error(e);}catch(h){return d(h);}};b.Rga=function(e,h){return {type:"cause",message:e,gA:(null === h || void 0 === h?0:h.length)?h:void 0};};b.Wia=function(e){return {type:"retries-exceeded",attempt:e};};b.R0b=function(e,h){return {type:"timed-out",G:e,message:h};};b.aCa=function(e){return {type:"interrupted",message:e};};b.Tia=function(e,h,k,l){return {type:"request-failed",request:e,id:h,reason:k,Dc:d(l)};};b.vTb=function(e,h){return {type:"authn-failure",QL:e,Dc:d(h)};};b.WAa=function(e){return {type:"error-response",response:e};};b.N4=function(e){return {type:"invalid-response",response:e};};b.Yhb=function(e){return {type:"unauthorized",response:e};};b.kN=d;b.vAb=n;b.Kwc=function(e,h){e=n(e);if((null === e || void 0 === e?void 0:e.type) === h)return e;};b.flatten=c;b.Ulc=f;b.eub=function(e){return Object.keys(f(e)).sort();};b.UZc=function(e,h){return {type:"connection-disabled",reason:e,message:h};};g=a(22970);},47348:function(t,b){var a;Object.defineProperties(b,{__esModule:{value:!0}});b.avc=function(d){var n,c;c=null !== (n=a[d]) && void 0 !== n?n:1;a[d]=c + 1;return ("").concat(d,":").concat(c);};a={};},58655:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.Bib=void 0;d=a(22970);n=a(62411);t=(function(){function c(f){this.options=f;this.visible=f.Ol.visible;}Object.defineProperties(c.prototype,{context:{get:function(){return {visible:("").concat(this.visible.SU)};},enumerable:!1,configurable:!0}});c.prototype.Mla=function(f){var g;f="string" === typeof f?{message:f}:f;g=this.options.Mla;return g?d.__assign(d.__assign({},f || ({})),g()):f;};c.prototype.send=function(f,g,e,h){g={Ee:g,context:this.context,Ef:this.options.Ef.values,error:h?(0,n.kN)(h):void 0,Mk:this.Mla(e)};this.options.Ol.ZR(f,g);this.options.trace(f,g);};c.prototype.error=function(f,g,e){this.send("error",f,e,g);};c.prototype.warn=function(f,g){this.send("warn",f,g);};c.prototype.i0=function(f,g){this.send("info",f,g);};c.prototype.F8b=function(f){var g;g=this.options.Mla;this.options.Mla=g?function(){return d.__assign(d.__assign({},g()),f());}:f;return this;};return c;})();b.Bib=t;},28951:function(t,b,a){var d,n,c,f;Object.defineProperties(b,{__esModule:{value:!0}});b.EDa=void 0;d=a(22970);n=a(91176);c=a(97936);f=a(62411);t=(function(g){function e(h,k){var l,m;l=g.call(this) || this;l.Od=h;if(h.open){m=k?k.reduce(function(p,r){p[r]=!0;return p;},{}):void 0;h.closed.then(function(){return l.removeAllListeners();});h.on("message",function(p){var r,q;r=p.Od;p=p.message;if(m && m[p])return l.emit("ignored",{Od:r,message:p});try{q=JSON.parse(p);if(q && "object" === typeof q)return l.emit("message",{Od:r,message:q});throw Error("Not an object");}catch(u){l.emit("invalid",{Od:r,message:p,error:u});}});}return l;}d.__extends(e,g);e.prototype.S3a=function(h,k,l){return d.__awaiter(this,void 0,void 0,function(){var m,p,r,q;return d.__generator(this,function(u){switch(u.label){case 0:(m=new n.Jo(),null === l || void 0 === l?void 0:l.then(void 0,function(v){return m.reject(v);}),p=new c.mF(function(){return m.reject((0,f.R0b)(h,"Timed out waiting for message"));},h),r=this.Od.closed,r.then(function(){return m.reject((0,f.aCa)("Socket closed while waiting for a message"));}),q=this.listener("message",function(v){var w;v=v.message;try{w=k(v);w && m.resolve(w);}catch(x){m.reject((0,f.kN)(x));}}),u.label=1);case 1:return (u.tc.push([1,,3,4]),[4,m]);case 2:return [2,u.T()];case 3:return (r.clear(),p.clear(),q.clear(),[7]);case 4:return [2];}});});};return e;})(a(70402).EventEmitter);b.EDa=t;},71385:function(t,b){var a;Object.defineProperties(b,{__esModule:{value:!0}});b.HV=(a={},a.CLOSE="_CLOSE_",a.WS_ECHO="ECHO ping",a);},59143:function(t,b,a){var d,n,c,f,g;Object.defineProperties(b,{__esModule:{value:!0}});b.Zdb=void 0;d=a(22970);n=a(94933);c=a(49781);t=a(64743);f=a(4343);g=a(62411);a=(function(e){function h(k){var l;l=e.call(this,"PS",k.trace) || this;l.UMa=new c.ofb(l);l.fQ=!1;l.options=d.__assign({},k);l.TMa=new f.fBa(k.connect).on("failed",function(m){l.emit("failure",{Ee:"max-connect-failures",Od:m.Od,error:m.error});});l.qic=new f.fBa(k.disconnect).on("failed",function(m){var p;p=m.Od;m=m.error;l.emit("failure",{Ee:"disconnect-failure",Od:p,error:m});l.disconnect();l.TMa.failure("disconnect-failure",p,m);});l.trace("Opening initial connection");l.connect();return l;}d.__extends(h,e);h.prototype.alb=function(){return !this.open || 1 < this.UMa.length || this.fQ || this.Ud;};h.prototype.connect=function(){var k;k=this;this.fQ=!1;return this.UMa.push("connect",function(){return d.__awaiter(k,void 0,void 0,function(){var l,m,p;p=this;return d.__generator(this,function(r){switch(r.label){case 0:if(this.alb())return [2];this.trace("Connecting...");return [4,n.$6a.open(d.__assign(d.__assign({},this.options),{trace:this.trace}))];case 1:l=r.T();if(this.alb())return (l.close(),[2]);if(l.Ud)return (m=(0,g.kN)(l.failure),this.disconnect(),this.emit("failure",{Ee:"connect-failed",Od:l,error:m}),"connection-disabled" !== m.type && this.TMa.failure("connect-failed",l,m),[2]);this.trace("Connected",("").concat(l.id),l.timing.duration,"ms",l.timing.summary());l.closed.then(function(){var q,u,v;p.IU(l) && p.open && !p.fQ && !p.Ud && (null !== (v=null === (u=(q=p.options).VH) || void 0 === u?void 0:u.call(q)) && void 0 !== v?v:1) && p.connect();});l.on("failure",function(q){return p.qic.failure(q.Ee,l,q.error);});this.set(l);return [2];}});});});};h.prototype.isConnected=function(){return e.prototype.isConnected.call(this) && !this.fQ;};Object.defineProperties(h.prototype,{VMa:{get:function(){return this.open && !this.fQ && 0 < this.UMa.length;},enumerable:!1,configurable:!0}});h.prototype.refresh=function(){if(this.open && !this.Ud)return this.connect();};h.prototype.VH=function(){if(this.open && !this.Ud)return (this.clear(),this.connect());};h.prototype.disconnect=function(){if(this.open && !this.fQ)return (this.fQ=!0,this.clear(),!0);};Object.defineProperties(h.prototype,{Ud:{get:function(){return this.TMa.LKc;},enumerable:!1,configurable:!0}});return h;})(t.Sza);b.Zdb=a;},33993:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.$db=b.u_b=void 0;d=a(22970);t=a(70402);n=a(71385);b.u_b=(function(){return function(){};})();a=(function(c){function f(g){var e;e=c.call(this) || this;e.trace=g.trace.extend("ping");e.start(g);return e;}d.__extends(f,c);f.prototype.start=function(g){return d.__awaiter(this,void 0,void 0,function(){var e,h,k,l;l=this;return d.__generator(this,function(m){switch(m.label){case 0:return [4,g.interval];case 1:e=m.T();if(0 === e)return (this.trace("Disabled"),[2]);this.trace("Pinging every",e,"ms");h=g.client;k=!0;h.on("ping",function(){k=!0;l.trace("Received response");}).on("disconnected",function(){k=!0;});setInterval(function(){if(h.connected){if(!k)return (l.trace("Timed out, restarting"),l.emit("timeout"),h.VH());l.trace("Sending");h.send(n.HV.WS_ECHO) && (k=!1);}},e);return [2];}});});};return f;})(t.EventEmitter);b.$db=a;},49781:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.ofb=void 0;d=a(22970);t=a(90745);n=a(62411);a=(function(c){function f(g){var e;e=c.call(this) || this;e.gg=Promise.resolve();e.count=0;e.Od=g;return e;}d.__extends(f,c);Object.defineProperties(f.prototype,{length:{get:function(){return this.count;},enumerable:!1,configurable:!0}});f.prototype.push=function(g,e){var h,k;h=this;k=this.Od;k.open && (this.count++,this.gg=this.gg.then(function(){return d.__awaiter(h,void 0,void 0,function(){var l;return d.__generator(this,function(m){switch(m.label){case 0:if(!k.open)return [3,5];m.label=1;case 1:return (m.tc.push([1,3,4,5]),[4,e(this)]);case 2:return (m.T(),[3,5]);case 3:return (l=m.T(),k.emit("failure",{Ee:g,Od:k,error:(0,n.kN)(l)}),[3,5]);case 4:return (--this.count || this.emit("empty"),[7]);case 5:return [2];}});});}));return this.gg;};return f;})(t.EventEmitter);b.ofb=a;},9568:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.L5=void 0;d=a(22970);t=a(70402);n=a(47348);a=(function(c){function f(g,e){var h;h=c.call(this) || this;h.id=(0,n.avc)(g);h.trace=e.extend(h.id);h.HG=function(){h.HG=void 0;h.emit("closed");h.removeAllListeners();return !0;};return h;}d.__extends(f,c);Object.defineProperties(f.prototype,{open:{get:function(){return !!this.HG;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{closed:{get:function(){return this.sCb("closed",!this.open);},enumerable:!1,configurable:!0}});f.prototype.close=function(){var g;return null === (g=this.HG) || void 0 === g?void 0:g.call(this);};f.prototype.send=function(){return this.open;};f.prototype.toJSON=function(){return this.id;};return f;})(t.EventEmitter);b.L5=a;},78710:function(t,b,a){var n,c;function d(f){var g;f=n.__assign({},f);f.retry || (f.retry=function(e,h){if(5 < e)throw c.Wia(e);h=c.Ulc(h);if(h.unauthorized)throw c.Wia(e);if(1 === e && h["ale-failure"])throw c.Wia(e);return new Promise(function(k){return setTimeout(k,500 * Math.pow(2,e - 1));});});f.connect || (f.connect=b.l7a);f.disconnect || (f.disconnect=b.m7a);if(!f.VH){g=0;f.VH=function(){if(4 <= g)return (g=0,!1);g++;return !0;};}return f;}Object.defineProperties(b,{__esModule:{value:!0}});b.m7a=b.l7a=void 0;b.HUb=function(f){return d(f);};n=a(22970);c=a(62411);b.l7a={count:3,GS:12E4,reset:6E5};b.m7a={count:3,GS:3E4,reset:6E4};},33351:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.E7a=void 0;d=a(90745);n=a(12746);t=(function(){function c(f){void 0 === f && (f={});this.source=f;this.events=f.events || new d.EventEmitter();this.visible=f.visible || new n.fza().set(!0);}Object.defineProperties(c.prototype,{info:{get:function(){var f;f=this.source.info;if(f)return f;throw Error("WebSocketClientDepencies.info must be implemented");},enumerable:!1,configurable:!0}});Object.defineProperties(c.prototype,{rS:{get:function(){return this.source.rS;},enumerable:!1,configurable:!0}});c.prototype.ZR=function(f,g){var e,h;null === (h=(e=this.source).ZR) || void 0 === h?void 0:h.call(e,f,g);};c.prototype.counter=function(f,g){var e,h;return (null === (h=(e=this.source).counter) || void 0 === h?void 0:h.call(e,f,g)) || ({CA:function(){void 0;}});};Object.defineProperties(c.prototype,{eX:{get:function(){var f;f=this.source.eX;if(f)return f;throw Error("WebSocketClientDepencies.ale must be implemented");},enumerable:!1,configurable:!0}});return c;})();b.E7a=t;},14678:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperties(b,{__esModule:{value:!0}});b.Aib=void 0;d=a(22970);n=a(59143);t=a(70402);c=a(28951);f=a(71385);g=a(33993);e=a(62411);h=a(58655);k=a(78710);a=(function(l){function m(p){var r,q,u;r=l.call(this) || this;r.trace=p.trace.extend("common");q=r.trace;r.Ef=p.Ef;r.wa=new h.Bib({Ef:p.Ef,trace:p.trace,Ol:p.Ol});u=new n.Zdb((0,k.HUb)(p));r.Od=u;u.on("connected",function(v){r.emit("connected",v);r.wa.i0("connected",{Ndd:v.Od.duration,FT:v.Od.M_a});});u.on("disconnected",function(v){r.emit("disconnected",v);r.wa.i0("disconnected",{Ldd:v.Od.tPb,Kdd:v.Od.hUc,FT:v.Od.M_a});});u.on("failure",function(v){var w,x;w=v.Od;x=v.Ee;v=v.error;if("connection-disabled" === v.type)return (q.console.warn("Connection disabled",v.reason),r.emit("disabled",v));q.console.warn(v);r.emit("failure",{Ee:x,Od:w,error:e.kN(v)});r.wa.error(x,v,{Mdd:w.tPb,FT:w.M_a});});r.Le=new c.EDa(u,[f.HV.CLOSE,f.HV.WS_ECHO]).on("ignored",function(v){v=v.message;v === f.HV.CLOSE?(q("Restarting after server",f.HV.CLOSE,"message"),u.refresh(),r.emit("serverClose")):v === f.HV.WS_ECHO && (r.emit("ping"),q("Metrics",r.Ef.values));}).on("message",function(v){r.emit("message",{message:v.message});});new g.$db({trace:q,interval:p.P0,client:r}).on("timeout",function(){return r.emit("pingTimeout");});if(p=p.Ol.events)(p.on("cookies-changed",function(){q("Cookies changed, reconnecting");r.VH();}),p.on("cookies-refreshed",function(){q("Cookies refreshed");r.refresh();}));return r;}d.__extends(m,l);Object.defineProperties(m.prototype,{connected:{get:function(){return this.Od.connected;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{VMa:{get:function(){return this.Od.VMa;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{Ud:{get:function(){return this.Od.Ud;},enumerable:!1,configurable:!0}});m.prototype.send=function(p){return this.Od.send(p);};m.prototype.refresh=function(){this.Od.refresh();};m.prototype.VH=function(){this.Od.VH();};m.prototype.disconnect=function(){this.Od.disconnect();};m.prototype.request=function(p){return d.__awaiter(this,void 0,void 0,function(){var r,q;return d.__generator(this,function(u){switch(u.label){case 0:if(!this.send(p.body))throw e.aCa("Socket.send returned false");r=this.Od.sCb("disconnected");q=r.then(function(){throw e.aCa("Socket disconnected while waiting for a response");});u.label=1;case 1:return (u.tc.push([1,,3,4]),[4,this.Le.S3a(p.timeout,p.filter,q)]);case 2:return [2,u.T()];case 3:return (r.clear(),[7]);case 4:return [2];}});});};return m;})(t.EventEmitter);b.Aib=a;},46876:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.Cib=void 0;d=a(91072);n=a(28020);c=a(94450);t=(function(){function f(g,e){this.Tm=(0,n.ha)();this.open=0;this.timeline=new d.zhb();this.client=g;g={client:g};this.EGb=new c.Counter(e,"ws.opening",g);this.FGb=new c.Counter(e,"ws.onopen",g);this.mpb=new c.Counter(e,"ws.close",g);this.npb=new c.Counter(e,"ws.onclose",g);this.lMb=new c.Counter(e,"ws.send",g);this.t0a=new c.Counter(e,"ws.send.bytes",g);this.MJb=new c.Counter(e,"ws.onmessage",g);this.pda=new c.Counter(e,"ws.onmessage.bytes",g);this.jPa=new c.Counter(e,"ws.onerror",g);}Object.defineProperties(f.prototype,{pRb:{get:function(){return (0,n.ha)() - this.Tm;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{mnb:{get:function(){var g;g=this.timeline.total;return 0 === g?0:this.timeline.BUc() / g * 100;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{QNb:{get:function(){return "open" === this.timeline.type?this.timeline.duration:0;},enumerable:!1,configurable:!0}});f.prototype.bGc=function(){this.EGb.CA();this.timeline.type || this.timeline.e2a("closed");};f.prototype.nw=function(){this.FGb.CA();this.timeline.e2a("open");this.open++;};f.prototype.closed=function(){this.mpb.CA();0 < this.open && 0 === --this.open && this.timeline.e2a("closed");};f.prototype.Ubc=function(){this.npb.CA();};f.prototype.T=function(g){this.lMb.CA();this.t0a.CA(g);};f.prototype.LJb=function(g){this.MJb.CA();this.pda.CA(g);};f.prototype.error=function(){this.jPa.CA();};Object.defineProperties(f.prototype,{values:{get:function(){return {client:this.client,ha:(0,n.ha)(),pRb:this.pRb,mnb:this.mnb,QNb:this.QNb,nbd:this.EGb.total,open:this.FGb.total,close:this.mpb.total,Z5c:this.npb.total,T:this.lMb.total,t0a:this.t0a.total,LJb:this.MJb.total,pda:this.pda.total,gA:this.jPa.total};},enumerable:!1,configurable:!0}});return f;})();b.Cib=t;},1409:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.Igb=void 0;d=a(62411);t=(function(){function n(c){this.Bk=c;}n.prototype.nonce=function(c){var f;f=this.Bk.wma(c);switch(f.type){case "nonce":return f.nonce;case "unauthorized":throw (0,d.Yhb)(c);}};n.prototype.response=function(c,f){return JSON.stringify(this.Bk.G8b({encryptedNonce:f,aleToken:c}));};n.prototype.validate=function(c){var f;if("AUTHENTICATED" === (null === (f=c.payload) || void 0 === f?void 0:f.aleResponseState))return !0;throw (0,d.WAa)(c);};return n;})();b.Igb=t;},41066:function(t,b,a){Object.defineProperties(b,{__esModule:{value:!0}});t=a(22970);t.__exportStar(a(33884),b);t.__exportStar(a(74041),b);t.__exportStar(a(25987),b);t.__exportStar(a(44865),b);},65646:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.abb=void 0;d=a(22970);t=(function(){function n(c){var f,g;f=this;this.OOb={logblob:0,events:0,manifest:0,license:0,ntlBatch:0,ntlSendImmediate:0};this.Ud={logblob:0,events:0,manifest:0,license:0,ntlBatch:0,ntlSendImmediate:0};this.options=d.__assign({},c);g=this.options.client.wa.F8b(function(){return {connection:f.options.Bk.connection};});c.gg.on("sending",function(e){var h,k;h=e.request;k=h.id;h=h.type;e=e.size;g.i0("sending-request",{message:("Sending ").concat(h," of size ").concat(e),type:h,correlationId:k,size:e});}).on("succeeded",function(e){return f.OOb[e.request.type]++;}).on("failed",function(e){var h;h=e.error;f.Ud[e.request.type]++;g.error("sending-request",h);});c.Ol.visible.on("yes",function(){g.i0("stats",{stats:f.stats()});}).on("no",function(){c.sG && g.i0("disable-on-suspend","Stopping on suspend");});c.Ol.events.on("application-shutdown",function(){g.i0("stats",{stats:f.stats()});});}n.Dla=function(c){d.__awaiter(this,void 0,void 0,function(){return d.__generator(this,function(f){switch(f.label){case 0:return [4,c.Ol.visible.dsb];case 1:return (f.T(),new n(c),[2]);}});});};n.prototype.stats=function(){return {success:this.OOb,failure:this.Ud,correlationId:this.options.Bk.correlationId};};return n;})();b.abb=t;},44865:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.nfb=void 0;d=a(22970);n=a(62411);t=(function(c){function f(){return null !== c && c.apply(this,arguments) || this;}d.__extends(f,c);f.prototype.Qra=function(g,e,h){e=("").concat(this.R_);this.R_+=2;return {zc:{pl:g,id:e,V5c:{S4c:this.options.Ol.visible.SU?"foreground":"background"}},payload:h};};f.prototype.wma=function(g){var e,h,k,l;l=null === (e=g.zc) || void 0 === e?void 0:e.pl;e=("").concat((null === (h=g.zc) || void 0 === h?void 0:h.id) || "");switch(l){case "nonce":if((h=null === (k=g.payload) || void 0 === k?void 0:k.nonceToken) && "string" === typeof h)return {type:l,id:e,nonce:h};throw (0,n.N4)(g);case "unauthorized":return {type:l,id:e};}return {type:"other",id:e};};f.prototype.validate=function(g){var e,h;e=g.zc;h=g.payload;if(!e || "object" !== typeof e)throw (0,n.N4)(g);if("undefined" !== typeof e.errorCode)throw (0,n.WAa)(g);if(!h || "object" !== typeof h)throw (0,n.N4)(g);g=e.headers;return {headers:g && "object" === typeof g?g:{},payload:h};};return f;})(a(25987).jja);b.nfb=t;},14152:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.C5=void 0;d=a(22970);t=a(70402);n=a(62411);a=(function(c){function f(g){var e;e=c.call(this) || this;e.map={};e.options=d.__assign({},g);return e;}d.__extends(f,c);f.prototype.qNc=function(g){var e;e=this;return function(h){var k;k=e.options.Bk.wma(h).id;if(k === g.id)try{return e.options.Bk.validate(h);}catch(l){throw (0,n.Tia)(g.type,k,"error-response",l);}};};f.prototype.send=function(g){return d.__awaiter(this,void 0,void 0,function(){var e,h,k,l,m,p,r,q,u,v,w,x,y,A,z,B,C,D;return d.__generator(this,function(F){switch(F.label){case 0:(e=g.type,h=g.payload,k=g.options,l=this.options.Bk.request(e,1,h),m=this.options.Bk.wma(l).id,p=this.options.trace.extend(e,m),p("Preparing"),r=d.__assign(d.__assign({},g),{id:m,attempt:1}),F.label=1);case 1:F.tc.push([1,6,,7]);if(q=null === k || void 0 === k?void 0:k.maxInQueue)if((u=this.dqb(e),u >= q))throw (0,n.Tia)(e,m,"queue-full",(0,n.Rga)(("Queue has ").concat(u)));v=JSON.stringify(l);if(w=null === k || void 0 === k?void 0:k.maxLengthBytes)if((x=v.length,x > w))throw (0,n.Tia)(e,m,"too-large",(0,n.Rga)(("Body is ").concat(v.length," bytes")));this.map[m]=r;F.label=2;case 2:return (F.tc.push([2,,4,5]),p("Sending..."),this.emit("sending",{request:r,size:v.length}),y=this.options,A=y.client,z=y.timeout,[4,A.request({body:v,timeout:z,filter:this.qNc(r)})]);case 3:return (B=F.T(),p("Succeeded"),this.emit("succeeded",{request:r}),[2,B]);case 4:return (delete this.map[m],[7]);case 5:return [3,7];case 6:throw (C=F.T(),D=(0,n.Kwc)(C,"request-failed") || (0,n.Tia)(r.type,m,"cause",C),p("Failed with",D),this.emit("failed",{request:r,error:D}),D);case 7:return [2];}});});};f.prototype.dqb=function(g){var e,h;e=0;for(h in this.map)this.map[h].type === g && e++;return e;};return f;})(t.EventEmitter);b.C5=a;},74041:function(t,b,a){var d,n,c,f,g,e,h,k;Object.defineProperties(b,{__esModule:{value:!0}});b.Hgb=void 0;d=a(22970);n=a(72163);t=a(70402);c=a(46876);f=a(14678);g=a(14152);e=a(65646);h=a(25987);k=a(44865);a=(function(l){function m(p,r){var q,u,v;q=l.call(this) || this;q.trace=(0,n.gb)("SOCKET_ROUTER");q.options=p;u=r.visible;q.Ef=new c.Cib("sr",r);q.Bk=new (p.ued?k.nfb:h.jja)({IZa:p.IZa,Ol:r});v=p.Lx({trace:q.trace,Ef:q.Ef,sG:p.sG,gmb:p.gmb,url:p.url,visible:u,timeout:p.Mta,Bk:q.Bk,Ol:r});q.client=new f.Aib({trace:q.trace,Ef:q.Ef,Lx:v,retry:void 0,VH:void 0,P0:p.P0,connect:void 0,disconnect:void 0,Ol:r});q.client.on("connected",function(w){q.emit("connected",w);q.emit("open");}).on("disconnected",function(){return q.Bk.wvc();}).on("serverClose",function(){return q.emit("reconnect");}).on("ping",function(){return q.emit("ping");});q.EKb=new g.C5({trace:q.trace,timeout:p.yva,client:q.client,Bk:q.Bk});p.sG && u.dsb.then(function(){u.on("no",function(){q.trace("Disconnecting on suspend...");q.client.disconnect();});u.on("yes",function(){q.trace("Resumed, calling start...");q.start();});});e.abb.Dla({client:q.client,Ol:r,sG:p.sG,gg:q.EKb,Bk:q.Bk});return q;}d.__extends(m,l);Object.defineProperties(m.prototype,{connected:{get:function(){return !!this.client.connected;},enumerable:!1,configurable:!0}});Object.defineProperties(m.prototype,{mUa:{get:function(){return this.connected;},enumerable:!1,configurable:!0}});m.prototype.request=function(p){return d.__awaiter(this,void 0,void 0,function(){var r,q;return d.__generator(this,function(u){switch(u.label){case 0:return [4,this.EKb.send(p)];case 1:return (r=u.T(),q=Object.keys(r.headers).map(function(v){return ("").concat(v,": ").concat(r.headers[v]);}),[2,{body:r.payload,headers:q}]);}});});};m.prototype.send=function(p,r){p=JSON.stringify(this.Bk.coc(p,r));return this.client.send(p);};m.prototype.start=function(){this.connected || this.client.VMa || this.client.Ud || (this.trace('Reconnecting because "start" was called'),this.client.VH());};m.prototype.disconnect=function(){this.trace("Disconnecting");this.client.disconnect();};return m;})(t.EventEmitter);b.Hgb=a;},33884:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});},25987:function(t,b,a){var d,n,c;Object.defineProperties(b,{__esModule:{value:!0}});b.jja=void 0;d=a(22970);n=a(62411);c={logblob:"pbo-logblob",events:"pbo-event",manifest:"pbo-manifest",license:"pbo-license",ntlBatch:"ntl-log",ntlSendImmediate:"ntl-event"};t=(function(){function f(g){this.WMa=this.R_=1;this.options=g;}f.prototype.Qra=function(g,e,h){var k,l;l=this.correlationId;this.R_++;return {routingContext:{messageType:g,correlationId:l,attempt:e,foreground:null !== (k=this.options.Ol.visible.SU) && void 0 !== k?k:!1},payload:h};};Object.defineProperties(f.prototype,{correlationId:{get:function(){return ("").concat(this.WMa,"-").concat(this.R_);},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{connection:{get:function(){return this.WMa;},enumerable:!1,configurable:!0}});f.prototype.wvc=function(){this.WMa++;this.R_=1;};f.prototype.G8b=function(g){var e;e=this.options.Ol.info;g=d.__assign(d.__assign({},g),{clientInfo:{build:e.Ufa.build,platform:e.Ufa.platform,applicationVersion:e.Ufa.Va,uiPlatform:e.Z2a,uiVersion:e.Ufa.Z2a,player:e.Ufa.player},groupName:e.groupName});return d.__assign(d.__assign({},this.Qra("authentication",void 0,g)),{requiresPushySupport:this.options.IZa});};f.prototype.request=function(g,e,h){return this.Qra(c[g],e,h);};f.prototype.coc=function(g,e){return this.Qra(g,1,e);};f.prototype.wma=function(g){var e,h,k,l;l=null === (e=g.routingContext) || void 0 === e?void 0:e.messageType;e=(null === (h=g.routingContext) || void 0 === h?void 0:h.correlationId) || "";switch(l){case "nonce":if((h=null === (k=g.payload) || void 0 === k?void 0:k.nonceToken) && "string" === typeof h)return {type:l,id:e,nonce:h};throw (0,n.N4)(g);case "unauthorized":return {type:l,id:e};}return {type:"other",id:e};};f.prototype.validate=function(g){var e,h;e=g.payload;h=g.routingContext;if(g.socketRouterError)throw (0,n.WAa)(g);if(!e || "object" !== typeof e)throw (0,n.N4)(g);g=(h || ({})).headers;return {headers:g && "object" === typeof g?g:{},payload:e};};f.oOc=2;return f;})();b.jja=t;},12746:function(t,b,a){var d,n;Object.defineProperties(b,{__esModule:{value:!0}});b.fza=void 0;d=a(22970);n=a(91176);t=(function(c){function f(g){var e;e=c.call(this) || this;e.first=new n.Jo();e.dsb=e.first.promise;null === g || void 0 === g?void 0:g.then(function(h){return e.set(h);});return e;}d.__extends(f,c);f.prototype.set=function(g){g !== this.value && (void 0 === this.value && this.first.resolve(this),this.value=g,this.emit(g?"yes":"no"));return this;};Object.defineProperties(f.prototype,{SU:{get:function(){return this.value;},enumerable:!1,configurable:!0}});Object.defineProperties(f.prototype,{QWa:{get:function(){if(void 0 !== this.value)return !this.value;},enumerable:!1,configurable:!0}});f.prototype.toString=function(){return String(this.value);};return f;})(a(90745).EventEmitter);b.fza=t;},28020:function(t,b,a){var d;Object.defineProperties(b,{__esModule:{value:!0}});b.ha=function(){return d.platform.time.ha();};d=a(66164);},97936:function(t,b){Object.defineProperties(b,{__esModule:{value:!0}});b.mF=void 0;t=(function(){function a(d,n){var c;c=this;this.timeout=setTimeout(function(){c.timeout=void 0;d();},n);}Object.defineProperties(a.prototype,{Sq:{get:function(){if(this.timeout)return !0;},enumerable:!1,configurable:!0}});a.prototype.clear=function(){if(this.timeout)return (clearTimeout(this.timeout),this.timeout=void 0,!0);};return a;})();b.mF=t;},91072:function(t,b,a){var n,c,f,g;function d(e){return e.filter(function(h){return h.start !== h.end;}).map(function(h){var k,l,m,p,r;k=h.Wrb;l=h.start;m=h.end;p=h.error;r=h.details;h=("").concat(h.type).concat(k?(" (").concat(k,"):"):":"," ").concat(m - l," ms").concat(p?" (failed)":"");return r?[h,d(r)]:h;});}Object.defineProperties(b,{__esModule:{value:!0}});b.zhb=b.fHa=b.K0b=void 0;n=a(22970);c=a(28020);f=(function(){function e(h,k){h="string" === typeof h?[h,void 0]:h;this.interval={type:h[0],Wrb:h[1],start:(0,c.ha)(),end:NaN};this.ended=k;}e.prototype.end=function(h){isNaN(this.interval.end) && (this.interval.end=(0,c.ha)(),this.interval.error=h,this.ended(this.interval));};Object.defineProperties(e.prototype,{type:{get:function(){return this.interval.type;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Sq:{get:function(){return isNaN(this.interval.end);},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{duration:{get:function(){var h,k;h=this.interval;k=h.start;h=h.end;return (isNaN(h)?(0,c.ha)():h) - k;},enumerable:!1,configurable:!0}});e.prototype.details=function(){return new g(this.interval);};return e;})();b.K0b=f;g=(function(){function e(h){this.ps=[];(null === h || void 0 === h?0:h.details)?this.ps=h.details:h && (h.details=this.ps);}e.prototype.push=function(h,k,l,m){h="string" === typeof h?[h,void 0]:h;this.ps.push({type:h[0],Wrb:h[1],start:k,end:l,error:m});};e.prototype.Pwa=function(h){var k;k=this;return new f(h,function(l){k.ps.push(l);});};e.prototype.tla=function(h,k){return n.__awaiter(this,void 0,void 0,function(){var l,m,p;return n.__generator(this,function(r){switch(r.label){case 0:(l=this.Pwa(h),r.label=1);case 1:return (r.tc.push([1,3,,4]),[4,k(l)]);case 2:return (m=r.T(),l.end(),[2,m]);case 3:throw (p=r.T(),l.end(p),p);case 4:return [2];}});});};Object.defineProperties(e.prototype,{duration:{get:function(){return this.end - this.start;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{first:{get:function(){return this.ps[0];},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{Md:{get:function(){return this.ps[this.ps.length - 1];},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{start:{get:function(){var h,k;return null !== (k=null === (h=this.first) || void 0 === h?void 0:h.start) && void 0 !== k?k:NaN;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{end:{get:function(){var h,k;return null !== (k=null === (h=this.Md) || void 0 === h?void 0:h.end) && void 0 !== k?k:NaN;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{count:{get:function(){return this.ps.length;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{jPa:{get:function(){return this.ps.reduce(function(h,k){return k.error?h + 1:h;},0);},enumerable:!1,configurable:!0}});e.prototype.dqb=function(h){return this.ps.reduce(function(k,l){return l.type === h?k + 1:k;},0);};e.prototype.summary=function(){return d(this.ps);};return e;})();b.fHa=g;t=(function(){function e(){this.zfa={};}e.prototype.e2a=function(h){var k,l,m;k=this;(null === (l=this.l2) || void 0 === l?void 0:l.type) !== h && (null === (m=this.l2) || void 0 === m?void 0:m.end(),this.l2=new f(h,function(p){k.zfa[h]=(k.zfa[h] || 0) + p.end - p.start;}));};Object.defineProperties(e.prototype,{type:{get:function(){var h;return null === (h=this.l2) || void 0 === h?void 0:h.type;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{duration:{get:function(){var h,k;return null !== (k=null === (h=this.l2) || void 0 === h?void 0:h.duration) && void 0 !== k?k:0;},enumerable:!1,configurable:!0}});Object.defineProperties(e.prototype,{total:{get:function(){var h;h=this;return Object.keys(this.zfa).reduce(function(k,l){return k + h.zfa[l];},this.duration);},enumerable:!1,configurable:!0}});e.prototype.BUc=function(){var h;return (this.zfa.open || 0) + ("open" === (null === (h=this.l2) || void 0 === h?void 0:h.type)?this.l2.duration:0);};return e;})();b.zhb=t;},72163:function(t,b,a){var n,c;function d(f){var k,l;function g(){for(var m=[],p=0;p < arguments.length;p++)m[p]=arguments[p];return l?k.trace.apply(k,n.__spreadArray([l],m,!1)):k.trace.apply(k,m);}for(var e=[],h=1;h < arguments.length;h++)e[h - 1]=arguments[h];k="string" === typeof f?new c.platform.Console(f):f;l=e.filter(function(m){return m;}).map(function(m){return ("").concat(m);}).join(":");g.console=k;g.extend=function(){for(var m=[],p=0;p < arguments.length;p++)m[p]=arguments[p];return d.apply(void 0,n.__spreadArray([k],n.__spreadArray([l],m,!0),!1));};g.error=function(){for(var m=[],p=0;p < arguments.length;p++)m[p]=arguments[p];return k.error.apply(k,n.__spreadArray([l],m,!1));};return g;}Object.defineProperties(b,{__esModule:{value:!0}});b.gb=d;n=a(22970);c=a(66164);},75177:function(){},794:function(t,b,a){var d,n,c,f,g,e,h,k,l;d=a(5408);n=a(5158);c=a(3642);f=a(32249);g=a(70126);e=a(38733);h=a(51461);k=a(4);l=a(83891);t.exports=function(m,p,r){if(!n(m))throw new d("Assertion failed: Type(O) is not Object");if(!h(p))throw new d("Assertion failed: P is not a Property Key");r=c(r)?r:l(r);if(!c(r))throw new d("Assertion failed: Desc is not a valid Property Descriptor");return f(e,k,g,m,p,r);};},70126:function(t,b,a){var d,n,c;d=a(5408);n=a(3642);c=a(84902);t.exports=function(f){if("undefined" !== typeof f && !n(f))throw new d("Assertion failed: `Desc` must be a Property Descriptor");return c(f);};},83317:function(t,b,a){t.exports=a(9680);},20451:function(t,b,a){var d,n,c;d=a(90982)("%Reflect.construct%",!0);b=a(794);try{b({},"",{"[[Get]]":function(){}});}catch(f){b=null;}if(b && d){n={};c={};b(c,"length",{"[[Get]]":function(){throw n;},"[[Enumerable]]":!0});t.exports=function(f){try{d(f,c);}catch(g){return g === n;}};}else t.exports=function(f){return "function" === typeof f && !!f.prototype;};},38733:function(t,b,a){var d,n,c;d=a(5408);n=a(72196);c=a(3642);t.exports=function(f){if("undefined" === typeof f)return !1;if(!c(f))throw new d("Assertion failed: `Desc` must be a Property Descriptor");return n(f,"[[Value]]") || n(f,"[[Writable]]")?!0:!1;};},4:function(t,b,a){var d;d=a(68806);t.exports=function(n,c){return n === c?0 === n?1 / n === 1 / c:!0:d(n) && d(c);};},99939:function(t,b,a){var d;d=a(68806);t.exports=function(n,c){return n === c || d(n) && d(c);};},88251:function(t,b,a){var d,n,c,f;d=a(67286)("%Symbol.species%",!0);n=a(5408);c=a(5158);f=a(20451);t.exports=function(g,e){if(!c(g))throw new n("Assertion failed: Type(O) is not Object");g=g.constructor;if("undefined" === typeof g)return e;if(!c(g))throw new n("O.constructor is not an Object");g=d?g[d]:void 0;if(null == g)return e;if(f(g))return g;throw new n("no constructor found");};},14463:function(t){t.exports=function(b){return !!b;};},76113:function(t,b,a){var d,n,c,f,g,e;d=a(46382);n=a(26827);c=a(84583);f=a(68806);g=a(88562);e=a(82026);t.exports=function(h){var k;h=c(h);if(f(h) || 0 === h)return 0;if(!g(h))return h;k=n(d(h));return 0 === k?0:e(h) * k;};},69808:function(t,b,a){var d,n;d=a(38752);n=a(76113);t.exports=function(c){c=n(c);return 0 >= c?0:c > d?d:c;};},84583:function(t,b,a){var d,n,c,f,g,e,h,k,l,m,p,r,q;d=a(67286);n=a(5408);c=d("%Number%");b=d("%RegExp%");f=d("%parseInt%");g=a(8435);d=a(63671);e=a(45819);h=g("String.prototype.slice");k=d(/^0b[01]+$/i);l=d(/^0o[0-7]+$/i);m=d(/^[-+]0x[0-9a-f]+$/i);b=new b("[\u0085\u200b\ufffe]","g");p=d(b);r=a(11341);q=a(99197);t.exports=function w(v){var x;v=e(v)?v:q(v,c);if("symbol" === typeof v)throw new n("Cannot convert a Symbol value to a number");if("bigint" === typeof v)throw new n("Conversion from 'BigInt' to 'number' is not allowed.");if("string" === typeof v){if(k(v))return w(f(h(v,2),2));if(l(v))return w(f(h(v,2),8));if(p(v) || m(v))return NaN;x=r(v);if(x !== v)return w(x);}return +v;};},48668:function(t,b,a){t.exports=a(8156);},99197:function(t,b,a){var d;d=a(5885);t.exports=function(n){return 1 < arguments.length?d(n,arguments[1]):d(n);};},83891:function(t,b,a){var d,n,c,f,g;d=a(72196);n=a(5408);c=a(5158);f=a(83317);g=a(14463);t.exports=function(e){var h,k;if(!c(e))throw new n("ToPropertyDescriptor requires an object");h={};d(e,"enumerable") && (h["[[Enumerable]]"]=g(e.enumerable));d(e,"configurable") && (h["[[Configurable]]"]=g(e.configurable));d(e,"value") && (h["[[Value]]"]=e.value);d(e,"writable") && (h["[[Writable]]"]=g(e.writable));if(d(e,"get")){k=e.get;if("undefined" !== typeof k && !f(k))throw new n("getter must be a function");h["[[Get]]"]=k;}if(d(e,"set")){e=e.set;if("undefined" !== typeof e && !f(e))throw new n("setter must be a function");h["[[Set]]"]=e;}if((d(h,"[[Get]]") || d(h,"[[Set]]")) && (d(h,"[[Value]]") || d(h,"[[Writable]]")))throw new n("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return h;};},18132:function(t,b,a){var d;d=a(96222);t.exports=function(n){return "symbol" === typeof n?"Symbol":"bigint" === typeof n?"BigInt":d(n);};},46382:function(t,b,a){var d;d=a(14383);t.exports=function(n){return "bigint" === typeof n?BigInt(d(Number(n))):d(n);};},26827:function(t,b,a){var d;d=a(45736);t.exports=function(n){return "bigint" === typeof n?n:d(n);};},11885:function(t,b,a){var d,n;d=a(67286)("%String%");n=a(5408);t.exports=function(c){if("symbol" === typeof c)throw new n("Cannot convert a Symbol value to a string");return d(c);};},96222:function(t,b,a){var d;d=a(5158);t.exports=function(n){if(null === n)return "Null";if("undefined" === typeof n)return "Undefined";if(d(n))return "Object";if("number" === typeof n)return "Number";if("boolean" === typeof n)return "Boolean";if("string" === typeof n)return "String";};},90982:function(t,b,a){t.exports=a(67286);},32249:function(t,b,a){var d,n,c,f;b=a(81181);d=a(70999);n=b.auc();c=n && a(27595);f=a(8435)("Object.prototype.propertyIsEnumerable");t.exports=function(g,e,h,k,l,m){if(!d){if(!g(m) || !m["[[Configurable]]"] || !m["[[Writable]]"] || (l in k) && f(k,l) !== !!m["[[Enumerable]]"])return !1;g=m["[[Value]]"];k[l]=g;return e(k[l],g);}if(n && "length" === l && ("[[Value]]" in m) && c(k) && k.length !== m["[[Value]]"])return (k.length=m["[[Value]]"],k.length === m["[[Value]]"]);d(k,l,h(m));return !0;};},27595:function(t,b,a){var d;b=a(67286)("%Array%");d=!b.isArray && a(8435)("Object.prototype.toString");t.exports=b.isArray || (function(n){return "[object Array]" === d(n);});},84902:function(t){t.exports=function(b){var a;if("undefined" === typeof b)return b;a={};("[[Value]]" in b) && (a.value=b["[[Value]]"]);("[[Writable]]" in b) && (a.writable=!!b["[[Writable]]"]);("[[Get]]" in b) && (a.get=b["[[Get]]"]);("[[Set]]" in b) && (a.set=b["[[Set]]"]);("[[Enumerable]]" in b) && (a.enumerable=!!b["[[Enumerable]]"]);("[[Configurable]]" in b) && (a.configurable=!!b["[[Configurable]]"]);return a;};},51832:function(t,b,a){t.exports=a(88562);},97911:function(t){t.exports=Number.isNaN || (function(b){return b !== b;});},45819:function(t){t.exports=function(b){return null === b || "function" !== typeof b && "object" !== typeof b;};},51461:function(t){t.exports=function(b){return "string" === typeof b || "symbol" === typeof b;};},3642:function(t,b,a){var d,n,c;d=a(5408);n=a(72196);c={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};t.exports=function(f){if(!f || "object" !== typeof f)return !1;for(var g in f)if(n(f,g) && !c[g])return !1;g=n(f,"[[Value]]") || n(f,"[[Writable]]");f=n(f,"[[Get]]") || n(f,"[[Set]]");if(g && f)throw new d("Property Descriptors may not be both accessor and data descriptors");return !0;};},22970:function(t,b,a){var O,Q,T,U;function d(X){d=Object.getOwnPropertyNames || (function(Y){var W,Z;W=[];for(Z in Y)Object.prototype.hasOwnProperty.call(Y,Z) && (W[W.length]=Z);return W;});return d(X);}function n(){n=Object.assign || (function(X){for(var Y,W=1,Z=arguments.length;W < Z;W++){Y=arguments[W];for(var aa in Y)Object.prototype.hasOwnProperty.call(Y,aa) && (X[aa]=Y[aa]);}return X;});return n.apply(this,arguments);}function c(X,Y){c=Object.setPrototypeOf || ({__proto__:[]}) instanceof Array && (function(W,Z){W.__proto__=Z;}) || (function(W,Z){for(var aa in Z)Object.prototype.hasOwnProperty.call(Z,aa) && (W[aa]=Z[aa]);});return c(X,Y);}function f(X,Y){function W(){this.constructor=X;}if("function" !== typeof Y && null !== Y)throw new TypeError("Class extends value " + String(Y) + " is not a constructor or null");c(X,Y);X.prototype=null === Y?Object.create(Y):(W.prototype=Y.prototype,new W());}function g(X,Y){var W,Z,aa;W={};for(Z in X)Object.prototype.hasOwnProperty.call(X,Z) && 0 > Y.indexOf(Z) && (W[Z]=X[Z]);if(null != X && "function" === typeof Object.getOwnPropertySymbols){aa=0;for(Z=Object.getOwnPropertySymbols(X);aa < Z.length;aa++)0 > Y.indexOf(Z[aa]) && Object.prototype.propertyIsEnumerable.call(X,Z[aa]) && (W[Z[aa]]=X[Z[aa]]);}return W;}function e(X,Y,W,Z){var aa,ca,da;aa=arguments.length;ca=3 > aa?Y:null === Z?Z=Object.getOwnPropertyDescriptor(Y,W):Z;if("object" === typeof Reflect && "function" === typeof Reflect.qK)ca=Reflect.qK(X,Y,W,Z);else for(var ha=X.length - 1;0 <= ha;ha--)if(da=X[ha])ca=(3 > aa?da(ca):3 < aa?da(Y,W,ca):da(Y,W)) || ca;return (3 < aa && ca && Object.defineProperty(Y,W,ca),ca);}function h(X,Y){return function(W,Z){Y(W,Z,X);};}function k(X,Y,W,Z,aa,ca){var ha,S,ia;function da(ka){if(void 0 !== ka && "function" !== typeof ka)throw new TypeError("Function expected");return ka;}ha=Z.kind;S="getter" === ha?"get":"setter" === ha?"set":"value";X=!Y && X?Z["static"]?X:X.prototype:null;Y=Y || (X?Object.getOwnPropertyDescriptor(X,Z.name):{});for(var N,V=!1,ba=W.length - 1;0 <= ba;ba--){N={};for(var fa in Z)N[fa]="access" === fa?{}:Z[fa];for(fa in Z.elb)N.elb[fa]=Z.elb[fa];N.L4c=function(ka){if(V)throw new TypeError("Cannot add initializers after decoration has completed");ca.push(da(ka || null));};ia=(0,W[ba])("accessor" === ha?{get:Y.get,set:Y.set}:Y[S],N);if("accessor" === ha){if(void 0 !== ia){if(null === ia || "object" !== typeof ia)throw new TypeError("Object expected");if(N=da(ia.get))Y.get=N;if(N=da(ia.set))Y.set=N;(N=da(ia.Tb)) && aa.unshift(N);}}else if(N=da(ia))"field" === ha?aa.unshift(N):Y[S]=N;}X && Object.defineProperty(X,Z.name,Y);V=!0;}function l(X,Y,W){for(var Z=2 < arguments.length,aa=0;aa < Y.length;aa++)W=Z?Y[aa].call(X,W):Y[aa].call(X);return Z?W:void 0;}function m(X){return "symbol" === typeof X?X:("").concat(X);}function p(X,Y,W){"symbol" === typeof Y && (Y=Y.description?("[").concat(Y.description,"]"):"");return Object.defineProperty(X,"name",{configurable:!0,value:W?("").concat(W," ",Y):Y});}function r(X,Y){if("object" === typeof Reflect && "function" === typeof Reflect.zc)return Reflect.zc(X,Y);}function q(X,Y,W,Z){function aa(ca){return ca instanceof W?ca:new W(function(da){da(ca);});}return new (W || (W=Promise))(function(ca,da){function ha(V){try{N(Z.next(V));}catch(ba){da(ba);}}function S(V){try{N(Z["throw"](V));}catch(ba){da(ba);}}function N(V){V.done?ca(V.value):aa(V.value).then(ha,S);}N((Z=Z.apply(X,Y || [])).next());});}function u(X,Y){var aa,ca,da,ha,S;function W(N){return function(V){return Z([N,V]);};}function Z(N){if(ca)throw new TypeError("Generator is already executing.");for(;(S && (S=0,N[0] && (aa=0)),aa);)try{if((ca=1,da && (ha=N[0] & 2?da["return"]:N[0]?da["throw"] || ((ha=da["return"]) && ha.call(da),0):da.next) && !(ha=ha.call(da,N[1])).done))return ha;if((da=0,ha))N=[N[0] & 2,ha.value];switch(N[0]){case 0:case 1:ha=N;break;case 4:return (aa.label++,{value:N[1],done:!1});case 5:aa.label++;da=N[1];N=[0];continue;case 7:N=aa.DS.pop();aa.tc.pop();continue;default:if(!(ha=aa.tc,ha=0 < ha.length && ha[ha.length - 1]) && (6 === N[0] || 2 === N[0])){aa=0;continue;}if(3 === N[0] && (!ha || N[1] > ha[0] && N[1] < ha[3]))aa.label=N[1];else if(6 === N[0] && aa.label < ha[1])(aa.label=ha[1],ha=N);else if(ha && aa.label < ha[2])(aa.label=ha[2],aa.DS.push(N));else {ha[2] && aa.DS.pop();aa.tc.pop();continue;}}N=Y.call(X,aa);}catch(V){N=[6,V];da=0;}finally{ca=ha=0;}if(N[0] & 5)throw N[1];return {value:N[0]?N[1]:void 0,done:!0};}aa={label:0,T:function(){if(ha[0] & 1)throw ha[1];return ha[1];},tc:[],DS:[]};S=Object.create(("function" === typeof Iterator?Iterator:Object).prototype);return (S.next=W(0),S["throw"]=W(1),S["return"]=W(2),"function" === typeof Symbol && (S[Symbol.iterator]=function(){return this;}),S);}function v(X,Y){for(var W in X)"default" === W || Object.prototype.hasOwnProperty.call(Y,W) || O(Y,X,W);}function w(X){var Y,W,Z;Y="function" === typeof Symbol && Symbol.iterator;W=Y && X[Y];Z=0;if(W)return W.call(X);if(X && "number" === typeof X.length)return {next:function(){X && Z >= X.length && (X=void 0);return {value:X && X[Z++],done:!X};}};throw new TypeError(Y?"Object is not iterable.":"Symbol.iterator is not defined.");}function x(X,Y){var W,Z,aa;W="function" === typeof Symbol && X[Symbol.iterator];if(!W)return X;X=W.call(X);aa=[];try{for(;(void 0 === Y || 0 < Y--) && !(Z=X.next()).done;)aa.push(Z.value);}catch(da){var ca;ca={error:da};}finally{try{Z && !Z.done && (W=X["return"]) && W.call(X);}finally{if(ca)throw ca.error;}}return aa;}function y(){for(var X=[],Y=0;Y < arguments.length;Y++)X=X.concat(x(arguments[Y]));return X;}function A(){var Z;for(var X=0,Y=0,W=arguments.length;Y < W;Y++)X+=arguments[Y].length;X=Array(X);Z=0;for(Y=0;Y < W;Y++)for(var aa=arguments[Y],ca=0,da=aa.length;ca < da;(ca++,Z++))X[Z]=aa[ca];return X;}function z(X,Y,W){if(W || 2 === arguments.length)for(var Z=0,aa=Y.length,ca;Z < aa;Z++)!ca && (Z in Y) || (ca || (ca=Array.prototype.slice.call(Y,0,Z)),ca[Z]=Y[Z]);return X.concat(ca || Array.prototype.slice.call(Y));}function B(X){return this instanceof B?(this.Sfa=X,this):new B(X);}function C(X,Y,W){var S,N,V;function Z(ba,fa){S[ba] && (N[ba]=function(ia){return new Promise(function(ka,pa){1 < V.push([ba,ia,ka,pa]) || aa(ba,ia);});},fa && (N[ba]=fa(N[ba])));}function aa(ba,fa){var ia;try{ia=S[ba](fa);ia.value instanceof B?Promise.resolve(ia.value.Sfa).then(ca,da):ha(V[0][2],ia);}catch(ka){ha(V[0][3],ka);}}function ca(ba){aa("next",ba);}function da(ba){aa("throw",ba);}function ha(ba,fa){(ba(fa),V.shift(),V.length) && aa(V[0][0],V[0][1]);}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");S=W.apply(X,Y || []);V=[];return (N=Object.create(("function" === typeof AsyncIterator?AsyncIterator:Object).prototype),Z("next"),Z("throw"),Z("return",function(ba){return function(fa){return Promise.resolve(fa).then(ba,da);};}),N[Symbol.asyncIterator]=function(){return this;},N);}function D(X){var W,Z;function Y(aa,ca){W[aa]=X[aa]?function(da){return (Z=!Z)?{value:B(X[aa](da)),done:!1}:ca?ca(da):da;}:ca;}return (W={},Y("next"),Y("throw",function(aa){throw aa;}),Y("return"),W[Symbol.iterator]=function(){return this;},W);}function F(X){var Z,aa;function Y(ca){aa[ca]=X[ca] && (function(da){return new Promise(function(ha,S){da=X[ca](da);W(ha,S,da.done,da.value);});});}function W(ca,da,ha,S){Promise.resolve(S).then(function(N){ca({value:N,done:ha});},da);}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");Z=X[Symbol.asyncIterator];return Z?Z.call(X):(X="function" === typeof w?w(X):X[Symbol.iterator](),aa={},Y("next"),Y("throw"),Y("return"),aa[Symbol.asyncIterator]=function(){return this;},aa);}function H(X,Y){Object.defineProperty?Object.defineProperty(X,"raw",{value:Y}):X.raw=Y;return X;}function E(X){var Y;if(X && X.__esModule)return X;Y={};if(null != X)for(var W=d(X),Z=0;Z < W.length;Z++)"default" !== W[Z] && O(Y,X,W[Z]);Q(Y,X);return Y;}function G(X){return X && X.__esModule?X:{default:X};}function J(X,Y,W,Z){if("a" === W && !Z)throw new TypeError("Private accessor was defined without a getter");if("function" === typeof Y?X !== Y || !Z:!Y.has(X))throw new TypeError("Cannot read private member from an object whose class did not declare it");return "m" === W?Z:"a" === W?Z.call(X):Z?Z.value:Y.get(X);}function L(X,Y,W,Z,aa){if("m" === Z)throw new TypeError("Private method is not writable");if("a" === Z && !aa)throw new TypeError("Private accessor was defined without a setter");if("function" === typeof Y?X !== Y || !aa:!Y.has(X))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ("a" === Z?aa.call(X,W):aa?aa.value=W:Y.set(X,W),W);}function K(X,Y){if(null === Y || "object" !== typeof Y && "function" !== typeof Y)throw new TypeError("Cannot use 'in' operator on non-object");return "function" === typeof X?Y === X:X.has(Y);}function M(X,Y,W){var Z,aa;if(null !== Y && void 0 !== Y){if("object" !== typeof Y && "function" !== typeof Y)throw new TypeError("Object expected.");if(W){if(!Symbol.c8b)throw new TypeError("Symbol.asyncDispose is not defined.");aa=Y[Symbol.c8b];}if(void 0 === aa){if(!Symbol.Zg)throw new TypeError("Symbol.dispose is not defined.");aa=Y[Symbol.Zg];W && (Z=aa);}if("function" !== typeof aa)throw new TypeError("Object not disposable.");Z && (aa=function(){try{Z.call(this);}catch(ca){return Promise.reject(ca);}});X.stack.push({value:Y,Zg:aa,async:W});}else W && X.stack.push({async:!0});return Y;}function P(X){var Z,aa;function Y(ca){X.error=X.PSa?new T(ca,X.error,"An error was suppressed during disposal."):ca;X.PSa=!0;}function W(){var ca;for(;Z=X.stack.pop();)try{if(!Z.async && 1 === aa)return (aa=0,X.stack.push(Z),Promise.resolve().then(W));if(Z.Zg){ca=Z.Zg.call(Z.value);if(Z.async)return (aa|=2,Promise.resolve(ca).then(W,function(da){Y(da);return W();}));}else aa|=1;}catch(da){Y(da);}if(1 === aa)return X.PSa?Promise.reject(X.error):Promise.resolve();if(X.PSa)throw X.error;}aa=0;return W();}function I(X,Y){return "string" === typeof X && (/^\.\.?\//).test(X)?X.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(W,Z,aa,ca,da){return Z?Y?".jsx":".js":!aa || ca && da?aa + ca + "." + da.toLowerCase() + "js":W;}):X;}a.r(b);a.d(b,{z1b:function(){return M;},__assign:function(){return n;},__asyncDelegator:function(){return D;},__asyncGenerator:function(){return C;},__asyncValues:function(){return F;},__await:function(){return B;},__awaiter:function(){return q;},__classPrivateFieldGet:function(){return J;},__classPrivateFieldIn:function(){return K;},__classPrivateFieldSet:function(){return L;},__createBinding:function(){return O;},__decorate:function(){return e;},A1b:function(){return P;},B1b:function(){return k;},__exportStar:function(){return v;},__extends:function(){return f;},__generator:function(){return u;},__importDefault:function(){return G;},__importStar:function(){return E;},__makeTemplateObject:function(){return H;},__metadata:function(){return r;},__param:function(){return h;},C1b:function(){return m;},__read:function(){return x;},__rest:function(){return g;},D1b:function(){return I;},E1b:function(){return l;},F1b:function(){return p;},__spread:function(){return y;},__spreadArray:function(){return z;},__spreadArrays:function(){return A;},__values:function(){return w;},"default":function(){return U;}});O=Object.create?function(X,Y,W,Z){var aa;void 0 === Z && (Z=W);aa=Object.getOwnPropertyDescriptor(Y,W);if(!aa || (("get" in aa)?!Y.__esModule:aa.writable || aa.configurable))aa={enumerable:!0,get:function(){return Y[W];}};Object.defineProperty(X,Z,aa);}:function(X,Y,W,Z){void 0 === Z && (Z=W);X[Z]=Y[W];};Q=Object.create?function(X,Y){Object.defineProperty(X,"default",{enumerable:!0,value:Y});}:function(X,Y){X["default"]=Y;};T="function" === typeof SuppressedError?SuppressedError:function(X,Y,W){W=Error(W);return (W.name="SuppressedError",W.error=X,W.xdd=Y,W);};U={__extends:f,__assign:n,__rest:g,__decorate:e,__param:h,B1b:k,E1b:l,C1b:m,F1b:p,__metadata:r,__awaiter:q,__generator:u,__createBinding:O,__exportStar:v,__values:w,__read:x,__spread:y,__spreadArrays:A,__spreadArray:z,__await:B,__asyncGenerator:C,__asyncDelegator:D,__asyncValues:F,__makeTemplateObject:H,__importStar:E,__importDefault:G,__classPrivateFieldGet:J,__classPrivateFieldSet:L,__classPrivateFieldIn:K,z1b:M,A1b:P,D1b:I};}};wa={};(function(){ma.d=function(t,b){for(var a in b)ma.RFb(b,a) && !ma.RFb(t,a) && Object.defineProperty(t,a,{enumerable:!0,get:b[a]});};})();(function(){ma.qZ=(function(){if("object" === typeof globalThis)return globalThis;try{return this || new Function("return this")();}catch(t){if("object" === typeof Ba)return Ba;}})();})();(function(){ma.RFb=function(t,b){return Object.prototype.hasOwnProperty.call(t,b);};})();(function(){ma.r=function(t){"undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:!0});};})();ma(28660);ma(26860)();ma(65574)();Ba._cad_global={};Ba.DEBUG=!1;ma(33096);ma(22365);ma(32687);ma(3887);ma(52569);ma(8825);ma(87051);ma(22894);ma(32219);ma(24066);ma(45146);ma(94886);ma(37509);ma(2734);ma(77705);ma(31298);ma(37353);ma(981);ma(73100);ma(7953);ma(15531);ma(97154);ma(33579);ma(50350);ma(75876);ma(19630);ma(59416);ma(50040);ma(70);ma(29204);ma(99732);ma(52828);ma(1481);ma(61726);ma(24427);ma(62604);ma(78857);ma(74413);ma(84281);ma(991);ma(46493);ma(24674);ma(93114);ma(36792);ma(74098);ma(86258);ma(18128);ma(45526);ma(90762);ma(73056);ma(67263);ma(53754);ma(20318);ma(70632);ma(59032);ma(45706);ma(3390);ma(2898);ma(76563);ma(39480);ma(13044);ma(62439);ma(6305);ma(42654);ma(78719);ma(59405);ma(58343);ma(59219);ma(61524);ma(13777);ma(41325);ma(42433);ma(30689);ma(66093);ma(99133);})();}).call(Ba);})(window);}).call(window);