1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[135],{26134:(e,t,n)=>{var i="u">typeof window?window:n.g,r={};for(var a in(function(e,t,n){function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var r,a,o,s="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},u=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var i=0;i<n.length;++i){var r=n[i];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function l(e,t){if(t)e:{var n=u;e=e.split(".");for(var i=0;i<e.length-1;i++){var r=e[i];if(!(r in n))break e;n=n[r]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&s(n,e,{configurable:!0,writable:!0,value:t})}}function c(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function h(e){var t="u">typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if("number"==typeof e.length)return{next:i(e)};throw Error(String(e)+" is not an iterable or ArrayLike")}function d(e){if(!(e instanceof Array)){e=h(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}l("Symbol",function(e){function t(e,t){this.g=e,s(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0;return function e(r){if(this instanceof e)throw TypeError("Symbol is not a constructor");return new t(n+(r||"")+"_"+i++,r)}}),l("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var r=u[t[n]];"function"==typeof r&&"function"!=typeof r.prototype[e]&&s(r.prototype,e,{configurable:!0,writable:!0,value:function(){return c(i(this))}})}return e});var f,p,g="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)p=Object.setPrototypeOf;else{e:{var m={};try{m.__proto__={a:!0},r=m.a;break e}catch(e){}r=!1}p=r?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw TypeError(e+" is not extensible");return e}:null}var v=p;function y(e,t){if(e.prototype=g(t.prototype),e.prototype.constructor=e,v)v(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.yh=t.prototype}function b(){this.o=!1,this.m=null,this.h=void 0,this.g=1,this.j=this.l=0,this.A=this.i=null}function w(e){if(e.o)throw TypeError("Generator is already running");e.o=!0}function x(e,t){e.i={Ce:t,Oe:!0},e.g=e.l||e.j}function S(e,t,n){return e.g=n,{value:t}}function T(e){e.g=0}function k(e,t,n){e.l=t,void 0!=n&&(e.j=n)}function A(e,t,n){e.g=t,e.l=n||0}function E(e,t){return e.l=t||0,t=e.i.Ce,e.i=null,t}function C(e){e.A=[e.i],e.l=0,e.j=0}function I(e,t){var n=e.A.splice(0)[0];(n=e.i=e.i||n)?n.Oe?e.g=e.l||e.j:void 0!=n.u&&e.j<n.u?(e.g=n.u,e.i=null):e.g=e.j:e.g=t}function M(e){this.g=new b,this.h=e}function D(e,t,n,i){try{var r=t.call(e.g.m,n);if(!(r instanceof Object))throw TypeError("Iterator result "+r+" is not an object");if(!r.done)return e.g.o=!1,r;var a=r.value}catch(t){return e.g.m=null,x(e.g,t),R(e)}return e.g.m=null,i.call(e.g,a),R(e)}function R(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.o=!1,{value:t.value,done:!1}}catch(t){e.g.h=void 0,x(e.g,t)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.Oe)throw t.Ce;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function P(e){this.next=function(t){return w(e.g),e.g.m?t=D(e,e.g.m.next,t,e.g.s):(e.g.s(t),t=R(e)),t},this.throw=function(t){return w(e.g),e.g.m?t=D(e,e.g.m.throw,t,e.g.s):(x(e.g,t),t=R(e)),t},this.return=function(t){var n,i,r;return n=e,i=t,w(n.g),(r=n.g.m)?D(n,"return"in r?r.return:function(e){return{value:e,done:!0}},i,n.g.return):(n.g.return(i),R(n))},this[Symbol.iterator]=function(){return this}}function L(e){var t=new P(new M(e));function n(e){return t.next(e)}function i(e){return t.throw(e)}return new Promise(function(e,r){!function t(a){a.done?e(a.value):Promise.resolve(a.value).then(n,i).then(t,r)}(t.next())})}function N(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _(e,t){e instanceof String&&(e+="");var n=0,i=!1,r={next:function(){if(!i&&n<e.length){var r=n++;return{value:t(r,e[r]),done:!1}}return i=!0,{done:!0,value:void 0}}};return r[Symbol.iterator]=function(){return r},r}function O(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,r=0;r<i;r++){var a=e[r];if(t.call(n,a,r,e))return{Le:r,v:a}}return{Le:-1,v:void 0}}function U(e,t,n){if(null==e)throw TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}b.prototype.s=function(e){this.h=e},b.prototype.return=function(e){this.i={return:e},this.g=this.j},b.prototype.u=function(e){this.g=e},l("Promise",function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.o=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.g=null}function i(e){return e instanceof t?e:new t(function(t){t(e)})}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i(function(){t.l()})}this.g.push(e)};var r=u.setTimeout;n.prototype.i=function(e){r(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.g=null},n.prototype.j=function(e){this.i(function(){throw e})},t.prototype.j=function(){function e(e){return function(i){n||(n=!0,e.call(t,i))}}var t=this,n=!1;return{resolve:e(this.D),reject:e(this.l)}},t.prototype.D=function(e){if(e===this)this.l(TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.H(e);else{switch(typeof e){case"object":var n=null!=e;break;case"function":n=!0;break;default:n=!1}n?this.C(e):this.m(e)}},t.prototype.C=function(e){var t=void 0;try{t=e.then}catch(e){this.l(e);return}"function"==typeof t?this.I(t,e):this.m(e)},t.prototype.l=function(e){this.s(2,e)},t.prototype.m=function(e){this.s(1,e)},t.prototype.s=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.F(),this.A()},t.prototype.F=function(){var e=this;r(function(){if(e.B()){var t=u.console;void 0!==t&&t.error(e.i)}},1)},t.prototype.B=function(){if(this.o)return!1;var e=u.CustomEvent,t=u.Event,n=u.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=u.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.A=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)a.h(this.g[e]);this.g=null}};var a=new n;return t.prototype.H=function(e){var t=this.j();e.Ic(t.resolve,t.reject)},t.prototype.I=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function i(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(e){a(e)}}:t}var r,a,o=new t(function(e,t){r=e,a=t});return this.Ic(i(e,r),i(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Ic=function(e,t){function n(){switch(i.h){case 1:e(i.i);break;case 2:t(i.i);break;default:throw Error("Unexpected state: "+i.h)}}var i=this;null==this.g?a.h(n):this.g.push(n),this.o=!0},t.resolve=i,t.reject=function(e){return new t(function(t,n){n(e)})},t.race=function(e){return new t(function(t,n){for(var r=h(e),a=r.next();!a.done;a=r.next())i(a.value).Ic(t,n)})},t.all=function(e){var n=h(e),r=n.next();return r.done?i([]):new t(function(e,t){var a=[],o=0;do a.push(void 0),o++,i(r.value).Ic(function(t){return function(n){a[t]=n,0==--o&&e(a)}}(a.length-1),t),r=n.next();while(!r.done)})},t}),l("WeakMap",function(e){function t(e){if(this.g=(u+=Math.random()+1).toString(),e){e=h(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function i(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function r(e){j(e,o)||s(e,o,{value:new n})}function a(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&r(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}
1),n=Object.seal({}),i=new e([[t,2],[n,3]]);if(2!=i.get(t)||3!=i.get(n))return!1;return i.delete(t),i.set(n,4),!i.has(t)&&4==i.get(n)}catch(e){return!1}}())return e;var o="$jscomp_hidden_"+Math.random();a("freeze"),a("preventExtensions"),a("seal");var u=0;return t.prototype.set=function(e,t){if(!i(e))throw Error("Invalid WeakMap key");if(r(e),!j(e,o))throw Error("WeakMap key fail: "+e);return e[o][this.g]=t,this},t.prototype.get=function(e){return i(e)&&j(e,o)?e[o][this.g]:void 0},t.prototype.has=function(e){return i(e)&&j(e,o)&&j(e[o],this.g)},t.prototype.delete=function(e){return!!(i(e)&&j(e,o)&&j(e[o],this.g))&&delete e[o][this.g]},t}),l("Map",function(e){function t(){var e={};return e.$a=e.next=e.head=e}function n(e,t){var n=e[1];return c(function(){if(n){for(;n.head!=e[1];)n=n.$a;for(;n.next!=n.head;)return{done:!1,value:t(n=n.next)};n=null}return{done:!0,value:void 0}})}function i(e,t){var n=t&&typeof t;"object"==n||"function"==n?a.has(t)?n=a.get(t):(n=""+ ++o,a.set(t,n)):n="p_"+t;var i=e[0][n];if(i&&j(e[0],n))for(e=0;e<i.length;e++){var r=i[e];if(t!=t&&r.key!=r.key||t===r.key)return{id:n,list:i,index:e,entry:r}}return{id:n,list:i,index:-1,entry:void 0}}function r(e){if(this[0]={},this[1]=t(),this.size=0,e){e=h(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(h([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var i=n.entries(),r=i.next();if(r.done||r.value[0]!=t||"s"!=r.value[1])return!1;return!(r=i.next()).done&&4==r.value[0].x&&"t"==r.value[1]&&!!i.next().done}catch(e){return!1}}())return e;var a=new WeakMap;r.prototype.set=function(e,t){var n=i(this,e=0===e?0:e);return n.list||(n.list=this[0][n.id]=[]),n.entry?n.entry.value=t:(n.entry={next:this[1],$a:this[1].$a,head:this[1],key:e,value:t},n.list.push(n.entry),this[1].$a.next=n.entry,this[1].$a=n.entry,this.size++),this},r.prototype.delete=function(e){return!!(e=i(this,e)).entry&&!!e.list&&(e.list.splice(e.index,1),e.list.length||delete this[0][e.id],e.entry.$a.next=e.entry.next,e.entry.next.$a=e.entry.$a,e.entry.head=null,this.size--,!0)},r.prototype.clear=function(){this[0]={},this[1]=this[1].$a=t(),this.size=0},r.prototype.has=function(e){return!!i(this,e).entry},r.prototype.get=function(e){return(e=i(this,e).entry)&&e.value},r.prototype.entries=function(){return n(this,function(e){return[e.key,e.value]})},r.prototype.keys=function(){return n(this,function(e){return e.key})},r.prototype.values=function(){return n(this,function(e){return e.value})},r.prototype.forEach=function(e,t){for(var n,i=this.entries();!(n=i.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},r.prototype[Symbol.iterator]=r.prototype.entries;var o=0;return r}),l("Set",function(e){function t(e){if(this.g=new Map,e){e=h(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return!function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(h([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var i=n.entries(),r=i.next();if(r.done||r.value[0]!=t||r.value[1]!=t)return!1;return!(r=i.next()).done&&r.value[0]!=t&&4==r.value[0].x&&r.value[1]==r.value[0]&&i.next().done}catch(e){return!1}}()?(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach(function(i){return e.call(t,i,i,n)})},t):e}),l("Array.prototype.keys",function(e){return e||function(){return _(this,function(e){return e})}}),l("Array.prototype.findIndex",function(e){return e||function(e,t){return O(this,e,t).Le}}),l("Array.from",function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var i=[],r="u">typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof r){e=r.call(e);for(var a=0;!(r=e.next()).done;)i.push(t.call(n,r.value,a++))}else for(r=e.length,a=0;a<r;a++)i.push(t.call(n,e[a],a));return i}}),l("Array.prototype.values",function(e){return e||function(){return _(this,function(e,t){return t})}}),l("Object.is",function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}}),l("Array.prototype.includes",function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var i=n.length;for(0>(t=t||0)&&(t=Math.max(t+i,0));t<i;t++){var r=n[t];if(r===e||Object.is(r,e))return!0}return!1}}),l("String.prototype.includes",function(e){return e||function(e,t){return -1!==U(this,e,"includes").indexOf(e,t||0)}}),l("String.fromCodePoint",function(e){return e||function(e){for(var t="",n=0;n<arguments.length;n++){var i=Number(arguments[n]);if(0>i||1114111<i||i!==Math.floor(i))throw RangeError("invalid_code_point "+i);65535>=i?t+=String.fromCharCode(i):(i-=65536,t+=String.fromCharCode(i>>>10&1023|55296),t+=String.fromCharCode(1023&i|56320))}return t}}),l("Array.prototype.find",function(e){return e||function(e,t){return O(this,e,t).v}}),l("String.prototype.startsWith",function(e){return e||function(e,t){var n=U(this,e,"startsWith"),i=n.length,r=e.length;t=Math.max(0,Math.min(0|t,n.length));for(var a=0;a<r&&t<i;)if(n[t++]!=e[a++])return!1;return a>=r}}),l("WeakSet",function(e){function t(e){if(this.g=new WeakMap,e){e=h(e);for(var t;!(t=e.next()).done;)this.add(t.value)}}return!function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}
1),n=Object.seal({}),i=new e([t]);if(!i.has(t)||i.has(n))return!1;return i.delete(t),i.add(n),!i.has(t)&&i.has(n)}catch(e){return!1}}()?(t.prototype.add=function(e){return this.g.set(e,!0),this},t.prototype.has=function(e){return this.g.has(e)},t.prototype.delete=function(e){return this.g.delete(e)},t):e});var B="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)j(i,r)&&(e[r]=i[r])}return e};l("Object.assign",function(e){return e||B}),l("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)j(e,t)&&n.push(e[t]);return n}}),l("Promise.prototype.finally",function(e){return e||function(e){return this.then(function(t){return Promise.resolve(e()).then(function(){return t})},function(t){return Promise.resolve(e()).then(function(){throw t})})}}),l("Math.log2",function(e){return e||function(e){return Math.log(e)/Math.LN2}}),l("Number.MAX_SAFE_INTEGER",function(){return 0x1fffffffffffff}),l("String.prototype.endsWith",function(e){return e||function(e,t){var n=U(this,e,"endsWith");void 0===t&&(t=n.length),t=Math.max(0,Math.min(0|t,n.length));for(var i=e.length;0<i&&0<t;)if(n[--t]!=e[--i])return!1;return 0>=i}}),l("Array.prototype.entries",function(e){return e||function(){return _(this,function(e,t){return[e,t]})}}),l("Number.isNaN",function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}}),l("String.prototype.repeat",function(e){return e||function(e){var t=U(this,null,"repeat");if(0>e||0x4fffffff<e)throw RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}}),l("Number.isFinite",function(e){return e||function(e){return"number"==typeof e&&!isNaN(e)&&1/0!==e&&-1/0!==e}}),l("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)j(e,t)&&n.push([t,e[t]]);return n}});var F=this||self;function H(e,t){e=e.split(".");var n,i=F;for((e[0]in i)||void 0===i.execScript||i.execScript("var "+e[0]);e.length&&(n=e.shift());)e.length||void 0===t?i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}:i[n]=t}function V(){}function G(){}function K(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function q(e){return e.h/(1-Math.pow(e.g,e.i))}function W(){this.h=new K(2),this.j=new K(5),this.g=0,this.i=128e3,this.l=16e3}function z(){}function X(){}function Y(){}function J(e){var t=N.apply(1,arguments);$.has(e)||($.add(e),Y.apply(z,d(t)))}K.prototype.sample=function(e,t){var n=Math.pow(this.g,e);isNaN(t=t*(1-n)+n*this.h)||(this.h=t,this.i+=e)},W.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},W.prototype.sample=function(e,t){if(!(t<this.l)){var n=8e3*t/e;e/=1e3,this.g+=t,this.h.sample(e,n),this.j.sample(e,n)}},W.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(q(this.h),q(this.j))};var $=new Set;function Z(){this.g={}}function Q(){this.g=new Z}function ee(e,t,n,i){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(void 0==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter(function(e){return!n.has(e)}),!function(e){var t=et;if(void 0==t){t=!1;try{var n={},i={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",i),Object.defineProperty(n,"capture",i),i=function(){},e.addEventListener("test",i,n),e.removeEventListener("test",i,n)}catch(e){t=!1}et=t}return t||!1}(e)?t.capture||!1:t}(e,i),this.target.addEventListener(t,n,this.g)}e.console&&(Y=function(){return console.warn.apply(console,d(N.apply(0,arguments)))},X=function(){console.error.apply(console,d(N.apply(0,arguments)))}),(f=Z.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},f.get=function(e){return(e=this.g[e])?e.slice():null},f.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter(function(e){return e!=t}),0==this.g[e].length&&delete this.g[e])},f.forEach=function(e){for(var t in this.g)e(t,this.g[t])},f.size=function(){return Object.keys(this.g).length},f.keys=function(){return Object.keys(this.g)},(f=Q.prototype).release=function(){this.cb(),this.g=null},f.J=function(e,t,n,i){this.g&&(e=new ee(e,t,n,i),this.g.push(t,e))},f.ma=function(e,t,n,i){var r=this;this.J(e,t,function i(a){r.qb(e,t,i),n(a)},i)},f.qb=function(e,t,n){if(this.g){var i=this.g.get(t)||[];i=h(i);for(var r=i.next();!r.done;r=i.next())(r=r.value).target!=e||n!=r.listener&&n||(r.qb(),this.g.remove(t,r))}},f.cb=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,d(t.g[e]));for(n=(t=h(n)).next();!n.done;n=t.next())n.value.qb();this.g.g={}}},H("shaka.util.EventManager",Q),Q.prototype.removeAll=Q.prototype.cb,Q.prototype.unlisten=Q.prototype.qb,Q.prototype.listenOnce=Q.prototype.ma,Q.prototype.listen=Q.prototype.J,Q.prototype.release=Q.prototype.release,ee.prototype.qb=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var et=void 0;function en(t){if(er.has(t))return er.get(t);
1if(e.ManagedMediaSource){var n=ManagedMediaSource.isTypeSupported(t);return er.set(t,n),n}return!!e.MediaSource&&(n=MediaSource.isTypeSupported(t),er.set(t,n),n)}function ei(){return!!e.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var er=new Map;function ea(e,t){this.g=e,this.h=t}function eo(e,t){var n,i=el;n=5e4,n=new ea(n,0);var r=i.g,a=n.h-r.h;(0<(n.g-r.g||a)?i.i:i.h)(i.g,n,e,t)}function es(e,t,n,i){Y([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function eu(e,t,n,i){X([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(" "))}ea.prototype.toString=function(){return"v"+this.g+"."+this.h};var el=null;function ec(){}function eh(){}function ed(){}function ef(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(ep(e)==ep(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;var n=em(e);t=em(t);for(var i=0;i<e.byteLength;i++)if(n[i]!=t[i])return!1;return!0}function ep(e){return e instanceof ArrayBuffer?e:e.buffer}function eg(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function em(e,t,n){return eb(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function ev(e,t,n){return eb(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint16Array)}function ey(e,t,n){return eb(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function eb(e,t,n,i){var r=ep(e),a=1;"BYTES_PER_ELEMENT"in i&&(a=i.BYTES_PER_ELEMENT);var o=((e.byteOffset||0)+e.byteLength)/a;return new i(r,e=Math.floor(Math.max(0,Math.min(((e.byteOffset||0)+t)/a,o))),Math.floor(Math.min(e+Math.max(n,0),o))-e)}function ew(){}function ex(e){this.h=new Map,this.i=0,this.l=new eh,(e=eS[e.toLowerCase()])&&(this.l=e()),this.g=new ec,(e=eT)&&(this.g=e(),this.h.set(this.i,this.g))}ec.prototype.extract=function(){},ec.prototype.decode=function(){return[]},ec.prototype.clear=function(){},ec.prototype.getStreams=function(){return[]},eh.prototype.init=function(){},eh.prototype.parse=function(){return[]},H("shaka.util.BufferUtils",ed),ed.toDataView=ey,ed.toUint16=ev,ed.toUint8=em,ed.toArrayBuffer=eg,ed.equal=ef,ew.prototype.init=function(){},ew.prototype.m=function(){},ew.prototype.j=function(){},ew.prototype.remove=function(){},H("shaka.media.IClosedCaptionParser",ew),ex.prototype.init=function(e,t,n){if(t=void 0!==t&&t,-1!=(n=void 0===n?-1:n)&&this.i!=n){t=n;var i=this.h.get(t);this.h.set(this.i,this.g),i?this.g=i:((i=eT)&&(this.g=i()),this.h.set(t,this.g))}else t||this.j();this.l.init(e),-1!=n&&(this.i=n)},ex.prototype.m=function(e){e=h(e=this.l.parse(e));for(var t=e.next();!t.done;t=e.next()){var n=em((t=t.value).packet);0<n.length&&this.g.extract(n,t.pts)}return this.g.decode()},ex.prototype.j=function(){this.g.clear()},ex.prototype.remove=function(e){e=new Set(e=void 0===e?[]:e);for(var t=h(this.h.keys()),n=t.next();!n.done;n=t.next())if(n=n.value,!e.has(n)){var i=this.h.get(n);i&&i.clear(),this.h.delete(n)}},H("shaka.media.ClosedCaptionParser",ex),ex.findDecoder=function(){return eT},ex.unregisterDecoder=function(){eT=null},ex.registerDecoder=function(e){eT=e},ex.findParser=function(e){return eS[e]},ex.unregisterParser=function(e){delete eS[e]},ex.registerParser=function(e,t){eS[e]=t};var eS={},eT=null;function ek(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=eA,this.scroll=eE}H("shaka.text.CueRegion",ek);var eA=1;ek.units={PX:0,PERCENTAGE:1,LINES:2};var eE="";function eC(e,t){return!!("number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t))||e===t}function eI(e,t,n){if(n||(n=eC),e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1;return!0}function eM(e,t,n){this.startTime=e,this.endTime=t,this.payload=n,this.region=new ek,this.position=null,this.positionAlign=eP,this.size=0,this.textAlign=eL,this.direction=e_,this.writingMode=eO,this.lineInterpretation=eU,this.line=null,this.lineHeight="",this.lineAlign=eB,this.displayAlign=ej,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=eG,this.fontStyle=eK,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textCombineUpright="",this.textDecoration=[],this.textStrokeWidth=this.textStrokeColor=this.textShadow="",this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.rubyTag=null,this.cellResolution={Ib:32,rows:15}}function eD(e,t){return(e=new eM(e,t,"")).lineBreak=!0,e}function eR(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n){if("nestedCues"==n){if(!eI(e.nestedCues,t.nestedCues,eR))return!1}else if("region"==n||"cellResolution"==n){for(var i in e[n])if(e[
1n][i]!=t[n][i])return!1}else if(Array.isArray(e[n])){if(!eI(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1}return!0}ek.scrollMode={NONE:eE,UP:"up"},eM.prototype.clone=function(){var e,t=new eM(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},H("shaka.text.Cue",eM),eM.equal=eR,eM.prototype.clone=eM.prototype.clone;var eP="auto";eM.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:eP};var eL="center",eN={LEFT:"left",RIGHT:"right",CENTER:eL,START:"start",END:"end"};eM.textAlign=eN;var ej="after";eM.displayAlign={BEFORE:"before",CENTER:"center",AFTER:ej};var e_="ltr";eM.direction={HORIZONTAL_LEFT_TO_RIGHT:e_,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var eO="horizontal-tb";eM.writingMode={HORIZONTAL_TOP_TO_BOTTOM:eO,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var eU=0;eM.lineInterpretation={LINE_NUMBER:0,PERCENTAGE:1};var eB="start",eF={CENTER:"center",START:eB,END:"end"};eM.lineAlign=eF;var eH={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};eM.defaultTextColor=eH;var eV={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};eM.defaultTextBackgroundColor=eV;var eG=400;eM.fontWeight={NORMAL:400,BOLD:700};var eK="normal";function eq(){}function eW(e,t){for(var n=e.toLowerCase().split(";")[0],i=h([e$,eJ,eY,eX]),r=i.next();!r.done;r=i.next())if(r=ez[n+"-"+r.value]){var a=r.ad(),o=a.isSupported(e,t);if(a.destroy(),o)return r.ad}return null}eM.fontStyle={NORMAL:eK,ITALIC:"italic",OBLIQUE:"oblique"},eM.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},eq.prototype.destroy=function(){},H("shaka.transmuxer.TransmuxerEngine",eq),eq.findTransmuxer=eW,eq.unregisterTransmuxer=function(e,t){delete ez[e.toLowerCase().split(";")[0]+"-"+t]},eq.registerTransmuxer=function(e,t,n){ez[e.toLowerCase().split(";")[0]+"-"+n]={priority:n,ad:t}},eq.prototype.destroy=eq.prototype.destroy;var ez={},eX=1,eY=2,eJ=3,e$=4;eq.PluginPriority={FALLBACK:1,PREFERRED_SECONDARY:2,PREFERRED:3,APPLICATION:4};var eZ=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function eQ(e){var t;e instanceof eQ?(e0(this,e.Ra),this.Fb=e.Fb,e1(this,e.Wa),e2(this,e.Yb),this.La=e.La,e3(this,e.g.clone()),this.vb=e.vb):e&&(t=String(e).match(eZ))?(e0(this,t[1]||"",!0),this.Fb=e4(t[2]||""),e1(this,t[3]||"",!0),e2(this,t[4]),this.La=e4(t[5]||"",!0),e3(this,t[6]||"",!0),this.vb=e4(t[7]||"")):this.g=new tn(null)}function e0(e,t,n){e.Ra=n?e4(t,!0):t,e.Ra&&(e.Ra=e.Ra.replace(/:$/,""))}function e1(e,t,n){e.Wa=n?e4(t,!0):t}function e2(e,t){if(t){if(isNaN(t=Number(t))||0>t)throw Error("Bad port number "+t);e.Yb=t}else e.Yb=null}function e3(e,t,n){t instanceof tn?e.g=t:(n||(t=e5(t,te)),e.g=new tn(t))}function e4(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function e5(e,t,n){return null!=e?(e=encodeURI(e).replace(t,e6),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function e6(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(f=eQ.prototype).Ra="",f.Fb="",f.Wa="",f.Yb=null,f.La="",f.vb="",f.toString=function(){var e=[],t=this.Ra;if(t&&e.push(e5(t,e8,!0),":"),t=this.Wa){e.push("//");var n=this.Fb;n&&e.push(e5(n,e8,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Yb)&&e.push(":",String(t))}return(t=this.La)&&(this.Wa&&"/"!=t.charAt(0)&&e.push("/"),e.push(e5(t,"/"==t.charAt(0)?e9:e7,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.vb)&&e.push("#",e5(t,tt)),e.join("")},f.resolve=function(e){var t=this.clone();"data"===t.Ra&&(t=new eQ);var n=!!e.Ra;n?e0(t,e.Ra):n=!!e.Fb,n?t.Fb=e.Fb:n=!!e.Wa,n?e1(t,e.Wa):n=null!=e.Yb;var i=e.La;if(n)e2(t,e.Yb);else if(n=!!e.La){if("/"!=i.charAt(0))if(this.Wa&&!this.La)i="/"+i;else{var r=t.La.lastIndexOf("/");-1!=r&&(i=t.La.substr(0,r+1)+i)}if(".."==i||"."==i)i="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var a=[],o=0;o<i.length;){var s=i[o++];"."==s?r&&o==i.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),r&&o==i.length&&a.push("")):(a.push(s),r=!0)}i=a.join("/")}}return n?t.La=i:n=""!==e.g.toString(),n?e3(t,e.g.clone()):n=!!e.vb,n&&(t.vb=e.vb),t},f.clone=function(){return new eQ(this)};var e8=/[#\/\?@]/g,e7=/[#\?:]/g,e9=/[#\?]/g,te=/[#\?@]/g,tt=/#/g;function tn(e){this.g=e||null}function ti(e){if(!e.sa&&(e.sa={},e.hc=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var a=t[n].substring(0,i);r=t[n].substring(i+1)}else a=t[n];a=decodeURIComponent(a.replace(/\+/g," ")),r=r||"",e.add(a,decodeURIComponent(r.replace(/\+/g," ")))}}function tr(e,t,n){var i=N.apply(3,arguments);
1if(this.severity=e,this.category=t,this.code=n,this.data=i,this.handled=!1,this.message="Shaka Error "+this.code,ta)try{throw Error(this.message||"Shaka Error")}catch(e){this.stack=e.stack}}(f=tn.prototype).sa=null,f.hc=null,f.add=function(e,t){ti(this),this.g=null;var n=this.sa.hasOwnProperty(e)?this.sa[e]:null;return n||(this.sa[e]=n=[]),n.push(t),this.hc++,this},f.set=function(e,t){return ti(this),this.g=null,this.sa.hasOwnProperty(e)?this.sa[e]=[t]:this.add(e,t),this},f.get=function(e){return ti(this),this.sa[e]||[]},f.toString=function(){if(this.g)return this.g;if(!this.sa)return"";var e,t=[];for(e in this.sa)for(var n=encodeURIComponent(e),i=this.sa[e],r=0;r<i.length;r++){var a=n;""!==i[r]&&(a+="="+encodeURIComponent(i[r])),t.push(a)}return this.g=t.join("&")},f.clone=function(){var e=new tn;if(e.g=this.g,this.sa){var t,n={};for(t in this.sa)n[t]=this.sa[t].concat();e.sa=n,e.hc=this.hc}return e},tr.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},H("shaka.util.Error",tr);var ta=!0;function to(e){this.h=e,this.g=void 0}function ts(e,t){if(!e.length)return t;if(!t.length)return e;var n=[];e=h(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var r=h(t),a=r.next();!a.done;a=r.next())if(a=a.value,i.keySystem==a.keySystem){r=new Map;for(var o=h((i.initData||[]).concat(a.initData||[])),s=o.next();!s.done;s=o.next())s=s.value,r.set(s.keyId,s);r=Array.from(r.values()),o=i.keyIds&&a.keyIds?new Set([].concat(d(i.keyIds),d(a.keyIds))):i.keyIds||a.keyIds,n.push({keySystem:i.keySystem,licenseServerUri:i.licenseServerUri||a.licenseServerUri,distinctiveIdentifierRequired:i.distinctiveIdentifierRequired||a.distinctiveIdentifierRequired,persistentStateRequired:i.persistentStateRequired||a.persistentStateRequired,videoRobustness:i.videoRobustness||a.videoRobustness,audioRobustness:i.audioRobustness||a.audioRobustness,serverCertificate:i.serverCertificate||a.serverCertificate,serverCertificateUri:i.serverCertificateUri||a.serverCertificateUri,initData:r,keyIds:o});break}}return n}function tu(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}tr.Severity={RECOVERABLE:1,CRITICAL:2},tr.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},tr.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,MSS_MISSING_DATA_FOR_TRANSMUXING:3020,MSS_TRANSMUXING_FAILED:3022,TRANSMUXING_NO_VIDEO_DATA:3023,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_
1LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,MSS_INVALID_XML:4046,MSS_LIVE_CONTENT_NOT_SUPPORTED:4047,AES_128_INVALID_IV_LENGTH:4048,AES_128_INVALID_KEY_LENGTH:4049,DASH_CONFLICTING_AES_128:4050,DASH_UNSUPPORTED_AES_128:4051,DASH_INVALID_PATCH:4052,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,SRC_EQUALS_PRELOAD_NOT_SUPPORTED:7005,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005},to.prototype.value=function(){return void 0==this.g&&(this.g=this.h()),this.g};var tl=new to(function(){return eg(new Uint8Array([0]))}),tc=new Map;function th(e){this.h=e,this.g=null}function td(e){this.h=e,this.g=null}function tf(){var t=e.ManagedMediaSource||e.MediaSource;return!!t&&!!t.isTypeSupported}function tp(e){return""!=tL().canPlayType(e)}function tg(){return!!navigator.userAgent.match(/Edge?\//)}function tm(){return tP("Xbox One")}function tv(){return tP("Tizen")}function ty(){return tP("Tizen 3")}function tb(){return tP("VIZIO SmartCast")}function tw(){return tP("Web0S")}function tx(){return tP("CrKey")&&!tb()}function tS(){if(!tP("Chrome")||navigator.userAgent.match(/Edge\//))return null;var e=navigator.userAgent.match(/Chrome\/(\d+)/);return e?parseInt(e[1],10):null}function tT(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!tv()&&!tP("PC=EOS")&&!tP("PC=APL")&&!tP("PC=APPSTB")&&!tP("VirginMedia")&&!tC()&&!tA()&&!tP("AFT")&&!tP("WPE")&&!tP("DT_STB_BCM")&&!tP("Sky_STB")&&!tI()}function tk(){return tP("PlayStation 5")}function tA(){return tP("PlayStation 4")}function tE(){return tP("Hisense")||tP("VIDAA")}function tC(){return tP("SOPOpenBrowser")}function tI(){return tP("MDMP1001S")||tP("PS5525IMC")}function tM(){if(!tT())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function tD(){return navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():!!navigator.platform&&navigator.platform.toLowerCase().includes("windows")}function tR(){return tP("Android")}function tP(e){return(navigator.userAgent||"").includes(e)}function tL(){return tO||(t_||(t_=new td(function(){tO=null})),(tO=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(tO=document.createElement("video")),t_.ca(1)),tO}function tN(t){return t?t===e.shakaMediaKeysPolyfill:!!e.shakaMediaKeysPolyfill}function tj(){var t,n,i,r,a,o,s,u,l,c,h,d,f,p;return L(function(g){switch(g.g){case 1:if(t={width:1/0,height:1/0},tx()){if(h=e.cast&&cast.__platform__&&cast.__platform__.canDisplayType,t.width=1280,t.height=720,k(g,15),!(d=h)){g.u(17);break}return S(g,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840;
1 height=2160'),18)}if(tv()){t.width=1920,t.height=1080;try{webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution?(n=webapis.systeminfo.getMaxVideoResolution(),t.width=n.width,t.height=n.height):webapis.productinfo.is8KPanelSupported&&webapis.productinfo.is8KPanelSupported()?(t.width=7680,t.height=4320):webapis.productinfo.isUdPanelSupported&&webapis.productinfo.isUdPanelSupported()&&(t.width=3840,t.height=2160)}catch(e){Y("Tizen: Error detecting screen size, default screen size 1920x1080.")}g.u(3);break}if(tm()){t.width=1920,t.height=1080;try{i=void 0,r=new(i="u">typeof Windows?Windows:chrome.webview.hostObjects.sync.Windows).Media.Protection.ProtectionCapabilities,a=i.Media.Protection.ProtectionCapabilityResult,o=null;do o=r.isTypeSupported('video/mp4;codecs="hvc1,mp4a";features="decode-res-x=3840,decode-res-y=2160,decode-bitrate=20000,decode-fps=30,decode-bpc=10,display-res-x=3840,display-res-y=2160,display-bpc=8"',"com.microsoft.playready.recommendation");while(o===a.maybe);o===a.probably&&(t.width=3840,t.height=2160)}catch(e){Y("Xbox: Error detecting screen size, default screen size 1920x1080.")}g.u(3);break}if(tw()){try{s=JSON.parse(e.PalmSystem.deviceInfo),t.width=Math.max(1920,s.screenWidth),t.height=Math.max(1080,s.screenHeight)}catch(e){Y("WebOS: Error detecting screen size, default screen size 1920x1080."),t.width=1920,t.height=1080}g.u(3);break}if(tE()){if(u=null,e.Hisense_Get4KSupportState)try{u=e.Hisense_Get4KSupportState()}catch(e){}null==u&&(u=tP("UHD")),u?(t.width=3840,t.height=2160):(t.width=1920,t.height=1080),g.u(3);break}if(!tA()&&!tk()){g.u(3);break}return l=!1,k(g,9),S(g,e.msdk.device.getDisplayInfo(),11);case 11:case 14:l="4K"===g.h.resolution,A(g,10);break;case 9:return E(g),k(g,12),S(g,e.msdk.device.getDisplayInfoImmediate(),14);case 12:c=E(g),Y("PlayStation: Failed to get the display info:",c);case 10:l?(t.width=3840,t.height=2160):(t.width=1920,t.height=1080),g.u(3);break;case 18:d=g.h;case 17:if(d){t.width=3840,t.height=2160,g.u(19);break}if(!(f=h)){g.u(20);break}return S(g,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=1920; height=1080'),21);case 21:f=g.h;case 20:f&&(t.width=1920,t.height=1080);case 19:A(g,3);break;case 15:p=E(g),X("Failed to check canDisplayType:",p);case 3:return g.return(t)}})}th.prototype.ca=function(t){var n=this;this.stop();var i=!0,r=null;return this.g=function(){e.clearTimeout(r),i=!1},r=e.setTimeout(function(){i&&n.h()},1e3*t),this},th.prototype.stop=function(){this.g&&(this.g(),this.g=null)},td.prototype.hd=function(){return this.stop(),this.h(),this},td.prototype.ca=function(e){var t=this;return this.stop(),this.g=new th(function(){t.h()}).ca(e),this},td.prototype.Aa=function(e){var t=this;return this.stop(),this.g=new th(function(){t.g.ca(e),t.h()}).ca(e),this},td.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},H("shaka.util.Timer",td),td.prototype.stop=td.prototype.stop,td.prototype.tickEvery=td.prototype.Aa,td.prototype.tickAfter=td.prototype.ca,td.prototype.tickNow=td.prototype.hd;var t_=null,tO=null;function tU(){}function tB(t){if(!t)return"";if(239==(t=em(t))[0]&&187==t[1]&&191==t[2]&&(t=t.subarray(3)),e.TextDecoder&&!tA())return(t=(new TextDecoder).decode(t)).includes("�")&&X('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),t;for(var n="",i=0;i<t.length;++i){var r=65533;if(0==(128&t[i])?r=t[i]:t.length>=i+2&&192==(224&t[i])&&128==(192&t[i+1])?(r=(31&t[i])<<6|63&t[i+1],i+=1):t.length>=i+3&&224==(240&t[i])&&128==(192&t[i+1])&&128==(192&t[i+2])?(r=(15&t[i])<<12|(63&t[i+1])<<6|63&t[i+2],i+=2):t.length>=i+4&&240==(241&t[i])&&128==(192&t[i+1])&&128==(192&t[i+2])&&128==(192&t[i+3])&&(r=(7&t[i])<<18|(63&t[i+1])<<12|(63&t[i+2])<<6|63&t[i+3],i+=3),65535>=r)n+=String.fromCharCode(r);else{var a=1023&(r-=65536);n+=String.fromCharCode(55296+(r>>10)),n+=String.fromCharCode(56320+a)}}return n}function tF(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new tr(2,2,2004);var i=new Uint16Array(n=Math.floor(e.byteLength/2));e=ey(e);for(var r=0;r<n;r++)i[r]=e.getUint16(2*r,t);return tK(i)}function tH(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=em(e);
1if(239==n[0]&&187==n[1]&&191==n[2])return tB(n);if(254==n[0]&&255==n[1])return tF(n.subarray(2),!1);if(255==n[0]&&254==n[1])return tF(n.subarray(2),!0);if(0==n[0]&&0==n[2])return tF(e,!1);if(0==n[1]&&0==n[3])return tF(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return tB(e);throw new tr(2,2,2003)}function tV(t){if(e.TextEncoder&&!tA()){var n=new TextEncoder;return eg(n.encode(t))}n=new Uint8Array((t=unescape(t=encodeURIComponent(t))).length);for(var i=0;i<t.length;i++)n[i]=t[i].charCodeAt(0);return eg(n)}function tG(e,t){for(var n=new ArrayBuffer(2*e.length),i=new DataView(n),r=0;r<e.length;++r)i.setUint16(2*r,e.charCodeAt(r),t);return n}function tK(e){return tW.value()(e)}function tq(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":"\xa0","‎":"â","‏":"â"},n=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,i=RegExp(n.source);return e&&i.test(e)?e.replace(n,function(e){return"#"==e[1]?0<=(e="x"==e[2]||"X"==e[2]?parseInt(e.substring(3),16):parseInt(e.substring(2),10))&&1114111>=e?String.fromCodePoint(e):"":t[e]||"'"}):e||""}H("shaka.util.StringUtils",tU),tU.resetFromCharCode=function(){tW.g=void 0},tU.toUTF16=tG,tU.toUTF8=tV,tU.fromBytesAutoDetect=tH,tU.fromUTF16=tF,tU.fromUTF8=tB;var tW=new to(function(){for(var e={pb:65536};0<e.pb;e={pb:e.pb},e.pb/=2)if(function(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(e){return!1}}(e.pb))return function(e){return function(t){for(var n="",i=0;i<t.length;i+=e.pb)n+=String.fromCharCode.apply(null,t.subarray(i,i+e.pb));return n}}(e);return null});function tz(){}function tX(e){return btoa(e=tK(em(e)))}function tY(e,t){return t=void 0==t||t,e=tX(e).replace(/\+/g,"-").replace(/\//g,"_"),t?e:e.replace(/[=]*$/,"")}function tJ(t){t=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));for(var n=new Uint8Array(t.length),i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}function t$(t){for(var n=t.length/2,i=new Uint8Array(n),r=0;r<n;r++)i[r]=e.parseInt(t.substr(2*r,2),16);return i}function tZ(e){var t=em(e);e="",t=h(t);for(var n=t.next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function tQ(){for(var e=N.apply(0,arguments),t=0,n=0;n<e.length;++n)t+=e[n].byteLength;t=new Uint8Array(t);for(var i=n=0;i<e.length;++i){var r=e[i];r instanceof Uint8Array?t.set(r,n):t.set(em(r),n),n+=r.byteLength}return t}function t0(e,t){if(0==t.length)return e;if(1==e.length&&1==t.length){var n=new eQ(e[0]);return t=new eQ(t[0]),[n.resolve(t).toString()]}t=t.map(function(e){return new eQ(e)}),n=[],e=h(e);for(var i=e.next();!i.done;i=e.next()){i=new eQ(i.value);for(var r=h(t),a=r.next();!a.done;a=r.next())n.push(i.resolve(a.value).toString())}return n}function t1(e,t,n){return{keySystem:e,encryptionScheme:t,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:n||[],keyIds:new Set}}function t2(e,t){if(1==t.length)return t[0];if(null!=(e=t3(e,t)))return e;throw new tr(2,4,4025,t)}function t3(e,t){for(var n=h(t7[e]),i=n.next();!i.done;i=n.next()){i=i.value;for(var r=h(t),a=r.next();!a.done;a=r.next())if(a=a.value,i.test(a.trim()))return a.trim()}return e==t5?"":null}function t4(e,t){var n=[];e=h(t7[e]);for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var r=h(t),a=r.next();!a.done;a=r.next())a=a.value,i.test(a.trim())&&n.push(a.trim())}return n}H("shaka.util.Uint8ArrayUtils",tz),tz.concat=tQ,tz.toHex=tZ,tz.fromHex=t$,tz.fromBase64=tJ,tz.toBase64=tY,tz.toStandardBase64=tX;var t5="text",t6={ga:"video",U:"audio",na:t5,Bf:"image",lh:"application"},t8=1/15,t7={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function t9(){}function ne(e,t){var n=e;return t&&!nh.includes(e)&&(n+='; codecs="'+t+'"'),n}function nt(e,t){return t&&(e+='; codecs="'+t+'"'),e}function nn(e,t,n){var i=ne(e,t);return eW(t=nt(e,t))?(e=eW(t))?(n=(e=e()).convertCodecs(n,t),e.destroy()):n=t:n="video/mp2t"!=e&&"audio"==n?i.replace("video","audio"):i,n}function ni(e){return e.split(";")[0].split("/")[1]}function nr(e){var t=nl(e);switch(e=t[0],t=t[1].toLowerCase(),!0){case"mp4a"===e&&"69"===t:case"mp4a"===e&&"6b"===t:case"mp4a"===e&&"40.34"===t:return"mp3";case"mp4a"===e&&"66"===t:case"mp4a"===e&&"67"===t:case"mp4a"===e&&"68"===t:case"mp4a"===e&&"40.2"===t:case"mp4a"===e&&"40.02"===t:case"mp4a"===e&&"40.5"===t:case"mp4a"===e&&"40.05"===t:case"mp4a"===e&&"40.29"===t:case"mp4a"===e&&"40.42"===t:return"aac";case"mp4a"===e&&"a5"===t:return"ac-3";case"mp4a"===e&&"a6"===t:return"ec-3";case"mp4a"===e&&"b2"===t:return"dtsx";case"mp4a"===e&&"a9"===t:return"dtsc";
1case"avc1"===e:case"avc3"===e:return"avc";case"hvc1"===e:case"hev1"===e:return"hevc";case"vvc1"===e:case"vvi1"===e:return"vvc";case"dvh1"===e:case"dvhe"===e:return"dovi-hevc";case"dvav"===e:case"dva1"===e:return"dovi-avc";case"dav1"===e:return"dovi-av1";case"dvc1"===e:case"dvi1"===e:return"dovi-vvc"}return e}function na(e){var t=[];e=h(e.split(","));for(var n=e.next();!n.done;n=e.next())t.push((n=nl(n.value))[0]);return t.sort().join(",")}function no(e){return e.split(";")[0]}function ns(e){return(e=e.split(/ *; */)).shift(),(e=e.find(function(e){return e.startsWith("codecs=")}))?e.split("=")[1].replace(/^"|"$/g,""):""}function nu(e){return"application/x-mpegurl"===e||"application/vnd.apple.mpegurl"===e}function nl(e){var t=(e=e.split("."))[0];return e.shift(),[t,e.join(".")]}H("shaka.util.MimeUtils",t9),t9.getFullTypeWithAllCodecs=nt,t9.getFullType=ne;var nc=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),nh=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function nd(e){this.i=null,this.j=e,this.B=!1,this.l=this.s=0,this.m=1/0,this.h=this.g=null,this.C="",this.A=function(){},this.o=new Map}function nf(e){return!!ng[e]||("application/cea-608"==e||"application/cea-708"==e)&&!!eT}
1function np(e,t,n){if(e.C=t,t=e.o.get(t))for(var i=h(t.keys()),r=i.next();!r.done;r=i.next())(r=t.get(r.value).filter(function(e){return e.endTime<=n}))&&e.j.append(r)}nd.prototype.destroy=function(){return this.j=this.i=null,this.o.clear(),Promise.resolve()},nd.prototype.remove=function(e,t){var n=this;return L(function(i){if(1==i.g)return S(i,Promise.resolve(),2);!n.j||!n.j.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),T(i)})},H("shaka.text.TextEngine",nd),nd.prototype.destroy=nd.prototype.destroy,nd.findParser=function(e){return ng[e]},nd.unregisterParser=function(e){delete ng[e]},nd.registerParser=function(e,t){ng[e]=t};var ng={};function nm(e,t){return e.concat(t)}function nv(){}function ny(e){return null!=e}function nb(){}function nw(e,t){return e=nT(e),t=nT(t),e.split("-")[0]==t.split("-")[0]}function nx(e,t){return e=nT(e),t=nT(t),e=e.split("-"),t=t.split("-"),e[0]==t[0]&&1==e.length&&2==t.length}function nS(e,t){return e=nT(e),t=nT(t),e=e.split("-"),t=t.split("-"),2==e.length&&2==t.length&&e[0]==t[0]}function nT(e){var t=(e=h(e.split("-x-"))).next().value;t=void 0===t?"":t,e=void 0===(e=e.next().value)?"":e;var n=h(t.split("-"));return t=void 0===(t=n.next().value)?"":t,n=void 0===(n=n.next().value)?"":n,e=e?"x-"+e:"",t=t.toLowerCase(),t=nI.get(t)||t,((n=n.toUpperCase())?t+"-"+n:t)+(e?"-"+e:"")}function nk(e,t){return e=nT(e),(t=nT(t))==e?4:nx(t,e)?3:nS(t,e)?2:+!!nx(e,t)}function nA(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),nI.get(e)||e}function nE(e){return e.language?nT(e.language):e.audio&&e.audio.language?nT(e.audio.language):e.video&&e.video.language?nT(e.video.language):"und"}function nC(e,t){e=nT(e);var n=new Set;t=h(t);for(var i=t.next();!i.done;i=t.next())n.add(nT(i.value));for(i=(t=h(n)).next();!i.done;i=t.next())if((i=i.value)==e)return i;for(i=(t=h(n)).next();!i.done;i=t.next())if(nx(i=i.value,e))return i;for(i=(t=h(n)).next();!i.done;i=t.next())if(nS(i=i.value,e))return i;for(t=(n=h(n)).next();!t.done;t=n.next())if(nx(e,t=t.value))return t;return null}H("shaka.util.LanguageUtils",nb),nb.findClosestLocale=nC,nb.getLocaleForVariant=nE,nb.getLocaleForText=function(e){return nT(e.language||"und")},nb.getBase=nA,nb.relatedness=nk,nb.areSiblings=function(e,t){var n=nA(e),i=nA(t);return e!=n&&t!=i&&n==i},nb.normalize=nT,nb.isSiblingOf=nS,nb.isParentOf=nx,nb.areLanguageCompatible=nw,nb.areLocaleCompatible=function(e,t){return(e=nT(e))==(t=nT(t))};var nI=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","
1sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function nM(e){var t=new WeakSet;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer instanceof ArrayBuffer)return n;if(t.has(n))return null;var i=n.constructor==Array;if(n.constructor!=Object&&!i)return null;t.add(n);var r,a=i?[]:{};for(r in n)a[r]=e(n[r]);return i&&(a.length=n.length),a}}(e)}function nD(e){var t,n={};for(t in e)n[t]=e[t];return n}function nR(){}function nP(e,t,n){t=h(t);for(var i=t.next(),r={};!i.done;r={xf:void 0},i=t.next())if(r.xf=i.value,(i=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.xf)}}(r))).length){e=i;break}for(t=(n=h(n)).next(),i={};!t.done;i={te:void 0},t=n.next())if(i.te=t.value,(t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.te)}}(i))).length){e=t;break}return e}function nL(e,t,n){var i,r,a,o,s,u,l,c,d,f=e.video;if(f&&f.width&&f.height){var p,g,m,v,y,b,w,x,S,T=f.width,k=f.height;if(k>T&&(T=(k=h([k,T])).next().value,k=k.next().value),p=T,g=t.minWidth,m=Math.min(t.maxWidth,n.width),!(p>=g)||!(p<=m)||(v=k,y=t.minHeight,b=Math.min(t.maxHeight,n.height),!(v>=y)||!(v<=b))||(w=f.width*f.height,x=t.minPixels,S=t.maxPixels,!(w>=x)||!(w<=S)))return!1}return(!e||!e.video||!e.video.frameRate||(i=e.video.frameRate,r=t.minFrameRate,a=t.maxFrameRate,i>=r&&i<=a))&&(!e||!e.audio||!e.audio.channelsCount||(o=e.audio.channelsCount,s=t.minChannelsCount,u=t.maxChannelsCount,o>=s&&o<=u))&&(l=e.bandwidth,c=t.minBandwidth,d=t.maxBandwidth,l>=c&&l<=d)}function nN(e,t,n){var i=!1;e=h(e);for(var r=e.next();!r.done;r=e.next()){var a=(r=r.value).allowedByApplication;r.allowedByApplication=nL(r,t,n),a!=r.allowedByApplication&&(i=!0)}return i}function nj(e,t){var n,i,r,a,o,s,u;return L(function(l){if(1==l.g){for(n=function(e,t){if(e){var n=nD(e);return n.supported=e.supported&&t.supported,n.powerEfficient=e.powerEfficient&&t.powerEfficient,n.smooth=e.smooth&&t.smooth,t.keySystemAccess&&!n.keySystemAccess&&(n.keySystemAccess=t.keySystemAccess),n}return t},i=null,r=[],o=(a=h(t)).next(),s={};!o.done;s={cache:void 0,Hc:void 0},o=a.next())u=o.value,s.Hc=function e(t){var n=[];for(i in t)n.push(i);n.sort();var i=[];n=h(n);for(var r=n.next();!r.done;r=n.next()){var a=r.value;r=JSON.stringify(a),a=(a=t[a])instanceof Object?e(a):JSON.stringify(a),i.push(r+":"+a)}return"{"+i.join(",")+"}"}(u),s.cache=nZ,s.cache[s.Hc]?i=n(i,s.cache[s.Hc]):r.push((function(e){var t=[""];e.video&&(t=ns(e.video.contentType).split(","));var n=[""];e.audio&&(n=ns(e.audio.contentType).split(","));var i=[];t=h(t);for(var r=t.next();!r.done;r=t.next()){r=r.value;for(var a=h(n),o=a.next(),s={};!o.done;s={Jb:void 0},o=a.next())o=o.value,s.Jb=nM(e),e.video&&(s.Jb.video.contentType=ne(no(s.Jb.video.contentType),r)),e.audio&&(s.Jb.audio.contentType=ne(no(s.Jb.audio.contentType),o)),i.push(new Promise(function(e){return function(t,n){navigator.mediaCapabilities.decodingInfo(e.Jb).then(function(e){t(e)}).catch(n)}}(s)))}return Promise.all(i).catch(function(){return JSON.stringify(e),null})})(u).then(function(e){return function(t){var r=null;t=h(t||[]);for(var a=t.next();!a.done;a=t.next())r=n(r,a.value);r&&(e.cache[e.Hc]=r,i=n(i,r))}}(s)));return S(l,Promise.all(r),2)}i&&e.decodingInfos.push(i),T(l)})}function n_(e,t,n,i){var r,a,o,s,u,l,c,d,f,p,g,m,v,y,b,w;return L(function(x){switch(x.g){case 1:if(e.some(function(e){return e.decodingInfos.length}))return x.return();a=(r=h(i)).next(),o={};case 2:if(a.done){x.u(4);break}o.$e=a.value,s=!1,l=(u=h(e)).next();case 5:var T;if(l.done){x.u(7);break}f=(d=h(nO(c=l.value,t,n).filter((T=o,function(e){return((e=e[0]).keySystemConfiguration&&e.keySystemConfiguration.keySystem)===T.$e})))).next();case 8:if(f.done){x.u(10);break}return p=f.value,S(x,nj(c,p),9);case 9:f=d.next(),x.u(8);break;case 10:c.decodingInfos.length&&(s=!0),l=u.next(),x.u(5);break;case 7:if(s)return x.return();o={$e:void 0},a=r.next(),x.u(2);break;case 4:m=(g=h(e)).next();case 12:if(m.done){x.u(0);break}
1b=(y=h(nO(v=m.value,t,n).filter(function(e){return!(e=(e=e[0]).keySystemConfiguration&&e.keySystemConfiguration.keySystem)||!i.includes(e)}))).next();case 15:if(b.done){m=g.next(),x.u(12);break}return w=b.value,S(x,nj(v,w),16);case 16:b=y.next(),x.u(15)}})}function nO(e,t,n){var i=e.audio,r=e.video,a=[],o=[];if(r)for(var s=h(r.fullMimeTypes),u=s.next();!u.done;u=s.next()){var l=ns(u=u.value);if(l.includes(",")&&!i){var c=l.split(","),d=no(u);l=t2("video",c),c=nU(c=t2("audio",c),d),d=nn(d,c,"audio"),o.push({contentType:d,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1})}if(l=nB(l),u={contentType:nn(no(u),l,"video"),width:r.width||64,height:r.height||64,bitrate:r.bandwidth||e.bandwidth||1,framerate:r.frameRate||1},r.hdr)switch(r.hdr){case"SDR":u.transferFunction="srgb";break;case"PQ":u.transferFunction="pq";break;case"HLG":u.transferFunction="hlg"}r.colorGamut&&(u.colorGamut=r.colorGamut),a.push(u)}if(i)for(u=(s=h(i.fullMimeTypes)).next();!u.done;u=s.next())u=no(l=u.value),l=nU(ns(l),u),u=nn(u,l,"audio"),o.push({contentType:u,channels:i.channelsCount||2,bitrate:i.bandwidth||e.bandwidth||1,samplerate:i.audioSamplingRate||1,spatialRendering:i.spatialAudio});for(s=[],0==a.length&&a.push(null),0==o.length&&o.push(null),u=(a=h(a)).next();!u.done;u=a.next())for(u=u.value,d=(l=h(o)).next();!d.done;d=l.next())d=d.value,c={type:n?"file":"media-source"},u&&(c.video=u),d&&(c.audio=d),s.push(c);if(!(o=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[s];for(e=[],n=new Map,a=(o=h(o)).next();!a.done;a=o.next())a=a.value,n.get(a.keySystem)||n.set(a.keySystem,[]),n.get(a.keySystem).push(a);for(o=t?"required":"optional",t=t?["persistent-license"]:["temporary"],u=(a=h(n.keys())).next();!u.done;u=a.next()){for(u=u.value,d=n.get(u),l=new Map,c=(d=h(d)).next();!c.done;c=d.next()){var f=(c=c.value).videoRobustness+","+c.audioRobustness;l.get(f)||l.set(f,[]),l.get(f).push(c)}for(d=(l=h(l.values())).next();!d.done;d=l.next()){d=d.value,c=[],f=h(s);for(var p=f.next();!p.done;p=f.next()){p=Object.assign({},p.value);for(var g={keySystem:u,initDataType:"cenc",persistentState:o,distinctiveIdentifier:"optional",sessionTypes:t},m=h(d),v=m.next();!v.done;v=m.next()){if((v=v.value).initData&&v.initData.length){for(var y=new Set,b=h(v.initData),w=b.next();!w.done;w=b.next())y.add(w.value.initDataType);g.initDataType=v.initData[0].initDataType}v.distinctiveIdentifierRequired&&(g.distinctiveIdentifier="required"),v.persistentStateRequired&&(g.persistentState="required"),v.sessionType&&(g.sessionTypes=[v.sessionType]),i&&(g.audio?(v.encryptionScheme&&(g.audio.encryptionScheme=g.audio.encryptionScheme||v.encryptionScheme),g.audio.robustness=g.audio.robustness||v.audioRobustness):(g.audio={robustness:v.audioRobustness},v.encryptionScheme&&(g.audio.encryptionScheme=v.encryptionScheme))),r&&(g.video?(v.encryptionScheme&&(g.video.encryptionScheme=g.video.encryptionScheme||v.encryptionScheme),g.video.robustness=g.video.robustness||v.videoRobustness):(g.video={robustness:v.videoRobustness},v.encryptionScheme&&(g.video.encryptionScheme=v.encryptionScheme)))}p.keySystemConfiguration=g,c.push(p)}e.push(c)}}return e}function nU(e,t){return"flac"==e.toLowerCase()?tM()?"fLaC":"flac":"opus"===e.toLowerCase()?tM()&&"mp4"==ni(t)?"Opus":"opus":e}function nB(e){if(e.includes("avc1")){var t=e.split(".");if(3==t.length)return t.shift()+"."+parseInt(t.shift(),10).toString(16)+("000"+parseInt(t.shift(),10).toString(16)).slice(-4)}else if("vp9"==e)return"vp09.00.41.08";return e}function nF(e){var t=e.audio,n=e.video,i=t?t.mimeType:null,r=n?n.mimeType:null,a=t?t.codecs:null,o=n?n.codecs:null,s=[];o&&s.push(o),a&&s.push(a);var u=[];n&&u.push(n.mimeType),t&&u.push(t.mimeType),u=u[0]||null;var l=[];t&&l.push(t.kind),n&&l.push(n.kind),l=l[0]||null;var c=new Set;if(t)for(var d=h(t.roles),f=d.next();!f.done;f=d.next())c.add(f.value);if(n)for(f=(d=h(n.roles)).next();!f.done;f=d.next())c.add(f.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:u,audioMimeType:i,videoMimeType:r,codecs:s.join(", "),audioCodec:a,videoCodec:o,primary:e.primary,roles:Array.from(c),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,maxSegmentDuration:null,audio
1Bandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null,e.hdr=n.hdr||null,e.colorGamut=n.colorGamut||null,e.videoLayout=n.videoLayout||null,o.includes(",")&&(e.channelsCount=n.channelsCount,e.audioSamplingRate=n.audioSamplingRate,e.spatialAudio=n.spatialAudio,e.originalLanguage=n.originalLanguage)),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.spatialAudio=t.spatialAudio,e.label=t.label,e.audioRoles=t.roles,e.accessibilityPurpose=t.accessibilityPurpose,e.originalLanguage=t.originalLanguage),e}function nH(e){return{id:e.id,active:!1,type:t5,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,maxSegmentDuration:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null,accessibilityPurpose:e.accessibilityPurpose,originalLanguage:e.originalLanguage}}function nV(e){var t=e.width||null,n=e.height||null,i=null;e.segmentIndex&&(i=e.segmentIndex.g[0]||null);var r=e.tilesLayout;return i&&(r=i.tilesLayout||r),r&&null!=t&&(t/=Number(r.split("x")[0])),r&&null!=n&&(n/=Number(r.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:r||null,maxSegmentDuration:e.maxSegmentDuration||null,audio
1Bandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId,accessibilityPurpose:null,originalLanguage:null}}function nG(e){return e.__shaka_id||(e.__shaka_id=nQ++),e.__shaka_id}function nK(e){var t=nW(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="unknown"),"subtitles"==e.kind&&(t.mimeType="text/vtt"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function nq(e){var t=nW(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function nW(e){var t=e.language;return{id:nG(e),active:!1,type:"",bandwidth:0,language:nT(t||"und"),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioR
1oles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,maxSegmentDuration:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:t}}function nz(e){return e.allowedByApplication&&e.allowedByKeySystem&&0==e.disabledUntilTime}function nX(e){return e.filter(function(e){return nz(e)})}function nY(e,t,n,i){var r=e,a=e.filter(function(e){return e.primary});a.length&&(r=a);var o=r.length?r[0].language:"";if(r=r.filter(function(e){return e.language==o}),t){var s=nC(nT(t),e.map(function(e){return e.language}));s&&(r=e.filter(function(e){return nT(e.language)==s}))}if(r=r.filter(function(e){return e.forced==i}),n){if((e=nJ(r,n)).length)return e}else if((e=r.filter(function(e){return 0==e.roles.length})).length)return e;return(e=r.map(function(e){return e.roles}).reduce(nm,[])).length?nJ(r,e[0]):r}function nJ(e,t){return e.filter(function(e){return e.roles.includes(t)})}function n$(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}H("shaka.util.StreamUtils",nR),nR.meetsRestrictions=nL;var nZ={},nQ=0,n0=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),n1=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function n2(){var e=this;this.s=null,this.l=!1,this.j=new W,this.F=new Q,navigator.connection&&navigator.connection.addEventListener&&this.F.J(navigator.connection,"change",function(){if(e.l&&e.g.useNetworkInformation){e.j=new W,e.g&&e.j.configure(e.g.advanced);var t=e.chooseVariant();t&&navigator.onLine&&e.s(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch)}}),this.A=[],this.C=null,this.B=1,this.H=!1,this.h=this.o=this.g=this.i=null,this.D=new td(function(){if(e.l&&e.g.restrictToElementSize){var t=e.chooseVariant();t&&e.s(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch)}}),this.m=null}function n3(t,n){n=void 0!==n&&n;var i=1/0,r=1/0;if(t.g.restrictToScreenSize&&(r=t.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,i=e.screen.height*r,r*=e.screen.width),t.h&&t.g.restrictToElementSize){var a=t.g.ignoreDevicePixelRatio?1:e.devicePixelRatio;i=Math.min(i,t.o.clientHeight*a),r=Math.min(r,t.o.clientWidth*a)}var o=t.A.filter(function(e){return e&&!(e.audio&&e.audio.fastSwitching||e.video&&e.video.fastSwitching)});if(o.length||(o=t.A),a=o,n&&o.length!=t.A.length&&(a=t.A.filter(function(e){return e&&(!!e.audio&&!!e.audio.fastSwitching||!!e.video&&!!e.video.fastSwitching)})),n=n5(t,t.g.restrictions,a,i,r),1/0!=i||1/0!=r){for(o=(n=h(n=function(e){var t=[];e=h(e);for(var n=e.next();!n.done;n=e.next())(n=n.value.video)&&n.height&&n.width&&t.push({height:n.height,width:n.width});return t.sort(function(e,t){return e.width-t.width})}(n))).next();!o.done;o=n.next())if((o=o.value).height>=i&&o.width>=r){i=o.height,r=o.width;break}n=n5(t,t.g.restrictions,a,i,r)}return a.length&&!n.length&&(n=[(n=n5(t,null,a,1/0,1/0))[0]]),n}function n4(e,t){if(!e.H){var n=e.j;if(!(n.g>=n.i))return;e.H=!0,e.i-=1e3*(e.g.switchInterval-e.g.minTimeToSwitch)}!t&&Date.now()-e.i<1e3*e.g.switchInterval||(t=e.chooseVariant(),e.getBandwidthEstimate(),t&&e.s(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch))}function n5(e,t,n,i,r){if(e.m){var a=e.m.Ie();a&&(n=n.filter(function(e){return!e.bandwidth||!a||e.bandwidth<=a}))}return t&&(n=n.filter(function(e){return nL(e,t,{width:r,height:i})})),n.sort(function(e,t){return e.bandwidth-t.bandwidth})}(f=n2.prototype).stop=function(){this.s=null,this.l=!1,this.A=[],this.B=1,this.o=this.i=null,this.h&&(this.h.disconnect(),this.h=null),this.D.stop(),this.m=null},f.release=function(){this.F.release(),this.D=null},f.init=function(e){this.s=e},f.chooseVariant=function(e){e=n3(this,void 0!==e&&e);for(var t=this.getBandwidthEstimate(),n=e[0]||null,i=0;i<e.length;i++){for(var r=e[i],a=isNaN(this.B)?1:Math.abs(this.B),o=a*r.bandwidth/this.g.bandwidthDowngradeTarget,s={bandwidth:1/0},u=i+1;u<e.length;u++)if(r.bandwidth!=e[u].bandwidth){s=e[u];break}a=a*s.bandwidth/this.g.bandwidthUpgradeTarget,t>=o&&t<=a&&(n.bandwidth!=r.bandwidth||n.bandwidth==r.bandwidth&&n.video&&r.video&&(n.video.width<r.video.width||n.video.height<r.video.height))&&(n=r)}return this.i=Date.now(),this.C=n},f.enable=function(){this.l=!0},f.disable=function(){this.l=!1},f.segmentDownloaded=function(e,t,n){if(!(e<this.g.cacheLoadThreshold)){var i=-1===t;i||this.j.sample(e,t),n&&null!=this.i&&this.l&&(i&&this.g.forceLowestRateOnTimeout?(e=this.C,(t=n3(this)[0])!=e&&(this.i=Date.now(),this.C=t,this.s(t))):n4(this,i))}},f.trySuggestStreams=function(){null!=this.i&&this.l&&n4(this,!1)},f.getBandwidthEstimate=function(){var e=this.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(e=1e6*navigator.connection.downlink),e=this.j.getBandwidthEstimate(e),this.m?this.m.getBandwidthEstimate(e):e},f.setVariants=function(e){this.A=e},f.playbackRateChanged=function(e){this.B=e},f.setMediaElement=function(t){var n=this;this.o=t,this.h&&(this.h.disconnect(),this.h=null),this.o&&"ResizeObserver"in e&&(this.h=new ResizeObserver(function(){n.D.ca(n6)}),this.h.observe(this.o))},f.setCmsdManager=function(e){this.m=e},f.configure=function(e){this.g=e,this.j&&this.g&&this.j.configure(this.g.advanced)},H("shaka.abr.SimpleAbrManager",n2),n2.prototype.configure=n2.prototype.configure,n2.prototype.setCmsdManager=n2.prototype.setCmsdManager,n2.prototype.setMediaElement=n2.prototype.setMediaElement,n2.prototype.playbackRateChanged=n2.prototype.playbackRateChanged,n2.prototype.setVariants=n2.prototype.setVariants,n2.prototype.getBandwidthEstimate=n2.prototype.getBandwidthEstimate,n2.prototype.trySuggestStreams=n2.prototype.trySuggestStreams,n2.prototype.segmentDownloaded=n2.prototype.segmentDownloaded,n2.prototype.disable=n2.prototype.disable,n2.prototype.enable=n2.prototype.enable,n2.prototype.chooseVariant=n2.prototype.chooseVariant,n2.prototype.init=n2.prototype.init,n2.prototype.release=n2.prototype.release,n2.prototype.stop=n2.prototype.stop;var n6=1;function n8(e,t,n,i,r){if(i>=r)return null;for(var a=-1,o=-1,s=0;s<n.length;s++)if(n[s].some(function(e){return null!=e&&""!=e.g.trim()})){a=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some(function(e){return null!=e&&""!=e.g.trim()})){o=s;break}if(-1===a||-1===o)return null;for(var u=s=!1,l="white",c="black",h=n7(i,r,s,u,l,c);a<=o;a++){for(var d=n[a],f=-1,p=-1,g=0;g<d.length;g++)if(null!=d[g]&&""!==d[g].g.trim()){f=g;break}for(g=d.length-1;0<=g;g--)if(null!=d[g]&&""!==d[g].g.trim()){p=g;break}if(-1===f||-1===p)d=n9(i,r),e.nestedCues.push(d);else{for(;f<=p;f++)if(g=d[f]){var m=g.l,v=g.i,y=g.j,b=g.h;(m!=s||v!=u||y!=l||b!=c)&&(h.payload&&e.nestedCues.push(h),h=n7(i,r,m,v,y,b),s=m,u=v,l=y,c=b),h.payload+=g.g}else h.payload+=" ";h.payload&&e.nestedCues.push(h),a!==o&&(h=n9(i,r),e.nestedCues.push(h)),h=n7(i,r,s,u,l,c)}}return e.nestedCues.length?{cue:e,stream:t}:null}function n7(e,t,n,i,r,a){return e=new eM(e,t,""),n&&e.textDecoration.push("underline"),i&&(e.fontStyle="italic"),e.color=r,e.backgroundColor=a,e}function n9(e,t){return(e=new eM(e,t,"")).lineBreak=!0,e}function ie(e,t,n,i,r){this.g=e,this.l=t,this.i=n,this.h=i,this.j=r}function it(e,t){this.i=[],this.g=1,this.h=0,this.A=e,this.s=t,this.j=this.m=!1,this.l="white",this.o="black",ir(this)}function ii(e,t,n){var i="CC"+((e.A<<1|e.s)+1),r=new eM(t,n,"");r.lineInterpretation=1;var a=id.get(e.g);return a&&(r.line=a),(t=n8(r,i,e.i,t,n))&&15<e.g+t.cue.nestedCues.length-3&&(a=id.get(e.g+3-t.cue.nestedCues.length))&&(r.line=a),t}function ir(e){is(e,0,15),e.g=1}function ia(e,t,n){if(!(32>n||127<n)){var i="";switch(t){case 0:i=iu.has(n)?iu.get(n):String.fromCharCode(n);break;case 1:i=il.get(n);break;case 2:e.i[e.g].pop(),i=ic.get(n);break;case 3:e.i[e.g].pop(),i=ih.get(n)}i&&e.i[e.g].push(new ie(i,e.m,e.j,e.o,e.l))}}function io(e,t,n,i){if(!(0>n||0>t))if(t>=n)for(--i;0<=i;i--)e.i[t+i]=e.i[n+i].map(function(e){return e});else for(var r=0;r<i;r++)e.i[t+r]=e.i[n+r].map(function(e){return e})}function is(e,t,n){for(var i=0;i<=n;i++)e.i[t+i]=[]}var iu=new Map([[39,"â"],[42,"\xe1"],[92,"\xe9"],[92,"\xe9"],[94,"\xed"],[95,"\xf3"],[96,"\xfa"],[123,"\xe7"],[124,"\xf7"],[125,"\xd1"],[126,"\xf1"],[127,"â"]]),il=new Map([[48,"\xae"],[49,"\xb0"],[50,"\xbd"],[51,"\xbf"],[52,"â¢"],[53,"\xa2"],[54,"\xa3"],[55,"âª"],[56,"\xe0"],[57," "],[58,"\xe8"],[59,"\xe2"],[60,"\xea"],[61,"\xee"],[62,"\xf4"],[63,"\xfb"]]),ic=new Map([[32,"\xc1"],[33,"\xc9"],[34,"\xd3"],[35,"\xda"],[36,"\xdc"],[37,"\xfc"],[38,"â"],[39,"\xa1"],[40,"*"],[41,"'"],[42,"â"],[43,"\xa9"],[44,"â "],[45,"\xb7"],[46,"â"],[47,"â"],[48,"\xc0"],[49,"\xc2"],[50,"\xc7"],[51,"\xc8"],[52,"\xca"],[53,"\xcb"],[54,"\xeb"],[55,"\xce"],[56,"\xcf"],[57,"\xef"],[58,"\xd4"],[59,"\xd9"],[60,"\xf9"],[61,"\xdb"],[62,"\xab"],[63,"\xbb"]]),ih=new Map([[32,"\xc3"],[33,"\xe3"],[34,"\xcd"],[35,"\xcc"],[36,"\xec"],[37,"\xd2"],[38,"\xf2"],[39,"\xd5"],[40,"\xf5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\xc4"],[49,"\xe4"],[50,"\xd6"],[51,"\xf6"],[52,"\xdf"],[53,"\xa5"],[54,"\xa4"],[55,"â"],[56,"\xc5"],[57,"\xe5"],[58,"\xd8"],[59,"\xf8"],[60,"â"],[61,"â"],[62,"â"],[63,"â"]]),id=new Map([[1,10],[2,15.33],[3,20.66],[4,26],[5,31.33],[6,36.66],[7,42],[8,47.33],[9,52.66],[10,58],[11,63.33],[12,68.66],[13,74],[14,79.33],[15,84.66]]);function ip(e,t){this.h=0,this.o=new it(e,t),this.i=new it(e,t),this.g=this.j=new it(e,t),this.l=0,this.m=null}
1function ig(e,t,n){e.g=e.i;var i=e.g,r=null;return 3!==e.h&&4!==e.h&&(r=ii(i,e.l,n),(n=e.i).g=0<n.h?n.h:0,is(n,0,15),(n=e.j).g=0<n.h?n.h:0,is(n,0,15),i.g=15),e.h=3,i.h=t,r}function im(e){e.h=1,e.g=e.j,e.g.h=0}function iv(e){J("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.o,e.h=4}var iy="black green blue cyan red yellow magenta black".split(" "),ib="white green blue cyan red yellow magenta white_italics".split(" ");function iw(e,t){this.I=t,this.N=e,this.K=this.l=!1,this.m=this.o=this.F=this.M=this.H=0,this.D=2,this.i=[],this.g=this.h=this.j=0,this.C=this.A=!1,this.B="white",this.s="black",ix(this)}function ix(e){e.i=[];for(var t=0;16>t;t++)e.i.push(iS())}function iS(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function iT(e,t){ik(e)&&(e.i[e.h][e.g]=new ie(t,e.C,e.A,e.s,e.B),e.g++)}function ik(e){var t=e.g<e.m&&0<=e.g;return e.h<e.o&&0<=e.h&&t}function iA(e,t,n){var i=new eM(e.j,t,"");i.textAlign=0===e.D?"left":1===e.D?"right":eL;var r=i.region;switch(e.I&&(r.id+="svc"+e.I),r.id+="win"+e.N,r.height=e.o,r.width=e.m,r.heightUnits=2,r.widthUnits=2,r.viewportAnchorX=e.H,r.viewportAnchorY=e.M,r.viewportAnchorUnits=e.K?eA:2,e.F){case 0:r.regionAnchorX=0,r.regionAnchorY=0;break;case 1:r.regionAnchorX=50,r.regionAnchorY=0;break;case 2:r.regionAnchorX=100,r.regionAnchorY=0;break;case 3:r.regionAnchorX=0,r.regionAnchorY=50;break;case 4:r.regionAnchorX=50,r.regionAnchorY=50;break;case 5:r.regionAnchorX=100,r.regionAnchorY=50;break;case 6:r.regionAnchorX=0,r.regionAnchorY=100;break;case 7:r.regionAnchorX=50,r.regionAnchorY=100;break;case 8:r.regionAnchorX=100,r.regionAnchorY=100}return(n=n8(i,"svc"+n,e.i,e.j,t))&&(e.j=t),n}function iE(){this.i=[],this.h=null,this.g=0}function iC(e){this.g=0,this.h=e}function iI(e){if(!e.oa())throw new tr(2,2,3e3);return e.h[e.g++]}function iM(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function iD(e,t){for(var n=[],i=0;8>i;i++)1==(1&t)&&e.h[i]&&n.push(i),t>>=1;return n}function iR(e,t,n){var i=[];t=h(iD(e,t));for(var r=t.next();!r.done;r=t.next()){r=r.value;var a=e.h[r];a.isVisible()&&(a=iA(a,n,e.i))&&i.push(a),e.h[r]=null}return i}function iP(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function iL(e,t,n){var i={0:0,1:0,2:1,3:1};return e=i[e],t=i[t],ij[e<<2|t<<1|(n=i[n])]}iw.prototype.isVisible=function(){return this.l},iC.prototype.oa=function(){return this.g<this.h.length},iC.prototype.la=function(){return this.g},iC.prototype.skip=function(e){if(this.g+e>this.h.length)throw new tr(2,2,3e3);this.g+=e};var iN=new Map([[32," "],[33,"\xa0"],[37,"â¦"],[42,"Å "],[44,"Å"],[48,"â"],[49,"â"],[50,"â"],[51,"â"],[52,"â"],[53,"â¢"],[57,"â¢"],[58,"Å¡"],[60,"Å"],[61,"â "],[63,"Ÿ"],[118,"â
"],[119,"â
"],[120,"â
"],[121,"â
"],[122,"â"],[123,"â"],[124,"â"],[125,"â"],[126,"â"],[127,"â"]]),ij="black blue green cyan red magenta yellow white".split(" ");function i_(e,t){this.h=ey(e),this.i=t==iU,this.g=0}function iO(){return new tr(2,3,3e3)}(f=i_.prototype).oa=function(){return this.g<this.h.byteLength},f.la=function(){return this.g},f.getLength=function(){return this.h.byteLength},f.bb=function(){try{var e=this.h.getUint8(this.g);return this.g+=1,e}catch(e){throw iO()}},f.ab=function(){try{var e=this.h.getUint16(this.g,this.i);return this.g+=2,e}catch(e){throw iO()}},f.L=function(){try{var e=this.h.getUint32(this.g,this.i);return this.g+=4,e}catch(e){throw iO()}},f.bf=function(){try{var e=this.h.getInt32(this.g,this.i);return this.g+=4,e}catch(e){throw iO()}},f.Zb=function(){try{if(this.i)var e=this.h.getUint32(this.g,!0),t=this.h.getUint32(this.g+4,!0);else t=this.h.getUint32(this.g,!1),e=this.h.getUint32(this.g+4,!1)}catch(e){throw iO()}if(2097151<t)throw new tr(2,3,3001);return this.g+=8,0x100000000*t+e},f.kb=function(e){if(this.g+e>this.h.byteLength)throw iO();var t=em(this.h,this.g,e);return this.g+=e,t},f.skip=function(e){if(this.g+e>this.h.byteLength)throw iO();this.g+=e},f.Ug=function(e){if(this.g<e)throw iO();this.g-=e},f.seek=function(e){if(0>e||e>this.h.byteLength)throw iO();this.g=e},f.Db=function(){for(var e=this.g;this.oa()&&0!=this.h.getUint8(this.g);)this.g+=1;return e=em(this.h,e,this.g-e),this.g+=1,tB(e)},H("shaka.util.DataViewReader",i_),i_.prototype.readTerminatedString=i_.prototype.Db,i_.prototype.seek=i_.prototype.seek,i_.prototype.rewind=i_.prototype.Ug,i_.prototype.skip=i_.prototype.skip,i_.prototype.readBytes=i_.prototype.kb,i_.prototype.readUint64=i_.prototype.Zb,i_.prototype.readInt32=i_.prototype.bf,i_.prototype.readUint32=i_.prototype.L,i_.prototype.readUint16=i_.prototype.ab,i_.prototype.readUint8=i_.prototype.bb,i_.prototype.getLength=i_.prototype.getLength,i_.prototype.getPosition=i_.prototype.la,i_.prototype.hasMoreData=i_.prototype.oa;var iU=1;function iB(){this.h=[],this.g=[],this.i=new iE,this.l=0,this.m=new Map([["CC1",new ip(0,0)],["CC2",new ip(0,1)],["CC3",new ip(1,0)],["CC4",new ip(1,1)]]),this.s=this.o=0,this.j=new Map,this.B=!0,this.A=new Set,iF(this)}function iF(e){e.o=0,e.s=0;for(var t=h(e.m.values()),n=t.next();!n.done;n=t.next())(n=n.value).h=0,n.g=n.j,n.m=null,ir(n.i),ir(n.j),ir(n.o);e.B=!0}function iH(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function iV(){this.i=[],this.h=[],this.g=!1}function iG(e){for(var t=iY(e);e.reader.oa()&&!e.parser.g;)e.parser.Wb(e.start+t,e.reader,e.partialOkay)}function iK(e){for(var t=iY(e),n=e.reader.L(),i=0;i<n&&(e.parser.Wb(e.start+t,e.reader,e.partialOkay),!e.parser.g);i++);}function iq(e){var t=iY(e);for(e.reader.skip(78);e.reader.oa()&&!e.parser.g;)e.parser.Wb(e.start+t,e.reader,e.partialOkay)}function iW(e){return function(t){e(t.reader.kb(t.reader.getLength()-t.reader.la()))}}function iz(e){var t=0;e=h(e);for(var n=e.next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function iX(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function iY(e){return 8+8*!!e.has64BitSize+4*(null!=e.flags)}i_.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:1},iB.prototype.clear=function(){this.l=0,this.h=[],this.g=[];var e=this.i;e.i=[],e.h=[],e.g=0,iF(this),e=h(this.j.values());for(var t=e.next();!t.done;t=e.next())iP(t.value)},iB.prototype.extract=function(e,t){if(this.B){for(var n=h(this.m.values()),i=n.next();!i.done;i=n.next())i.value.l=t;this.B=!1}if(!(8>(e=new i_(e,0)).getLength())&&181===e.bb()&&49===e.ab()&&0x47413934===e.L()&&3===e.bb()&&0!=(64&(n=e.bb())))for(n&=31,e.skip(1),i=0;i<n;i++){var r=e.bb(),a=(4&r)>>2,o=e.bb(),s=e.bb();a&&(0==(r&=3)||1===r?this.h.push({pts:t,type:r,Ia:o,Va:s,order:this.h.length}):(this.g.push({pts:t,type:r,value:o,order:this.g.length}),this.g.push({pts:t,type:2,value:s,order:this.g.length})))}},iB.prototype.decode=function(){function e(e,t){return e.pts-t.pts||e.order-t.order}var t,n,i=[];this.h.sort(e),this.g.sort(e);for(var r=h(this.h),a=r.next();!a.done;a=r.next())(a=function(e,t){var n=t.type;if(16==(112&t.Ia)){var i=t.Ia>>3&1;0===n?e.o=i:e.s=i}if(i="CC"+((n<<1|(n?e.s:e.o))+1),n=e.m.get(i),255===t.Ia&&255===t.Va||!t.Ia&&!t.Va||!iH(t.Ia)||!iH(t.Va))return 45<=++e.l&&iF(e),null;e.l=0,t.Ia&=127,t.Va&=127;var r=t.Ia;if(1<=r&&15>
1=r||!t.Ia&&!t.Va)return null;if(r=null,16==(112&t.Ia))e:{if(e.A.add(i),i=t.Ia,e=t.Va,n.m===(i<<8|e))n.m=null;else if(n.m=i<<8|e,16==(240&i)&&64==(192&e)){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&i)<<1|e>>5&1];var a=(30&e)>>1;i="white",r=!1,7>a?i=ib[a]:7===a&&(r=!0),e=1==(1&e),4!==n.h&&(a=n.g,3===n.h&&t!==a.g&&(n=1+t-a.h,io(a,n,1+a.g-a.h,a.h),is(a,0,n-1),is(a,t+1,15-t)),a.g=t,a.m=e,a.j=r,a.l=i,a.o="black")}else if(17==(247&i)&&32==(240&e))n.g.m=!1,n.g.j=!1,n.g.l="white",ia(n.g,0,32),i=!1,"white_italics"===(t=ib[(14&e)>>1])&&(t="white",i=!0),n.g.m=1==(1&e),n.g.j=i,n.g.l=t;else if(16==(247&i)&&32==(240&e)||23==(247&i)&&45==(255&e))t="black",0==(7&i)&&(t=iy[(14&e)>>1]),n.g.o=t;else if(17==(247&i)&&48==(240&e))ia(n.g,1,e);else if(18==(246&i)&&32==(224&e))ia(n.g,1&i?3:2,e);else if(20==(246&i)&&32==(240&e)){switch(e=t.pts,i=null,t.Va){case 32:im(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:i=ig(n,2,e);break;case 38:i=ig(n,3,e);break;case 39:i=ig(n,4,e);break;case 40:ia(n.g,0,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.l=e;break;case 42:ir(n.o),iv(n);break;case 43:iv(n);break;case 44:t=n.i,i=null,4!==n.h&&(i=ii(t,n.l,e)),is(t,0,15);break;case 45:t=n.g,3!==n.h?i=null:(i=ii(t,n.l,e),r=t.g-t.h+1,io(t,r-1,r,t.h),is(t,0,r-1),is(t,t.g,15-t.g),n.l=e);break;case 46:is(n.j,0,15);break;case 47:t=null,4!==n.h&&(t=ii(n.i,n.l,e)),i=n.j,n.j=n.i,n.i=i,im(n),n.l=e,i=t}r=i;break e}r=null}else e=t.Va,ia(n.g,0,t.Ia),ia(n.g,0,e);return r}(this,a.value))&&i.push(a);for(a=(r=h(this.g)).next();!a.done;a=r.next())t=this.i,3===(n=a.value).type?(t.g=2*(63&n.value)-1,t.h=[]):t.h&&(0<t.g&&(t.h.push(n),t.g--),0===t.g&&(t.i.push(new iC(t.h)),t.h=null,t.g=0));for(a=(r=h(this.i.i)).next();!a.done;a=r.next())a=function(e,t){var n=[];try{for(;t.oa();){var i=iI(t).value,r=(224&i)>>5,a=31&i;if(7===r&&0!=a&&(r=63&iI(t).value),0!=r){e.A.add("svc"+r),e.j.has(r)||e.j.set(r,new iM(r));for(var o=e.j.get(r),s=t.la();t.la()-s<a;){r=o;var u=t,l=iI(u),c=l.value,f=l.pts;if(16===c){var p=iI(u);c=c<<16|p.value}if(0<=c&&31>=c){u=r;var g=c,m=f;if(u.g){var v=u.g;switch(r=null,g){case 8:!ik(v)||0>=v.g&&0>=v.h||(0>=v.g?(v.g=v.m-1,v.h--):v.g--,v.i[v.h][v.g]=null);break;case 13:if(v.isVisible()&&(r=iA(v,m,u.i)),v.h+1>=v.o){for(u=v,g=0,m=1;16>m;m++,g++)u.i[g]=u.i[m];for(m=0;1>m;m++,g++)u.i[g]=iS()}else v.h++;v.g=0;break;case 14:v.isVisible()&&(r=iA(v,m,u.i)),v.i[v.h]=iS(),v.g=0;break;case 12:v.isVisible()&&(r=iA(v,m,u.i)),ix(v),(u=v).h=0,u.g=0}var y=r?[r]:[]}else y=[]}else if(128<=c&&159>=c)y=function(e,t,n,i){if(128<=n&&135>=n)i=7&n,e.h[i]&&(e.g=e.h[i]);else{if(136===n){n=iI(t).value,t=[],n=h(iD(e,n));for(var r=n.next();!r.done;r=n.next()){if((r=e.h[r.value]).isVisible()){var a=iA(r,i,e.i);a&&t.push(a)}ix(r)}return t}if(137===n)for(n=(t=h(iD(e,t=iI(t).value))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=i),n.l=!0;else{if(138===n){for(n=iI(t).value,t=null,r=(n=h(iD(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=iA(r,i,e.i)),r.l=!1;return t?[t]:[]}if(139===n){for(n=iI(t).value,t=null,r=(n=h(iD(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()?t=iA(r,i,e.i):r.j=i,r.l=!r.l;return t?[t]:[]}if(140===n)return iR(e,t=iI(t).value,i);if(143===n)return i=iR(e,255,i),iP(e),i;if(144===n)t.skip(1),i=iI(t).value,e.g&&(e.g.A=0<(128&i),e.g.C=0<(64&i));
1else if(145===n)i=iI(t).value,n=iI(t).value,t.skip(1),e.g&&(t=iL((48&n)>>4,(12&n)>>2,3&n),e.g.B=iL((48&i)>>4,(12&i)>>2,3&i),e.g.s=t);else if(146===n)i=iI(t).value,t=iI(t).value,e.g&&((e=e.g).h=15&i,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),i=iI(t).value,t.skip(1),e.g&&(e.g.D=3&i);else if(152<=n&&159>=n){n=(15&n)-8,(r=null!==e.h[n])||((a=new iw(n,e.i)).j=i,e.h[n]=a),i=iI(t).value,a=iI(t).value;var o=iI(t).value,s=iI(t).value,u=iI(t).value;t=iI(t).value,r&&0==(7&t)||((t=e.h[n]).h=0,t.g=0,t.C=!1,t.A=!1,t.B="white",t.s="black"),(t=e.h[n]).l=0<(32&i),t.M=127&a,t.H=o,t.F=(240&s)>>4,t.K=0<(128&a),t.o=(15&s)+1,t.m=(63&u)+1,e.g=e.h[n]}}}return[]}(r,u,c,f);else{if(4096<=c&&4127>=c)r=u,u=255&c,8<=u&&15>=u?r.skip(1):16<=u&&23>=u?r.skip(2):24<=u&&31>=u&&r.skip(3);else if(4224<=c&&4255>=c)r=u,u=255&c,128<=u&&135>=u?r.skip(4):136<=u&&143>=u&&r.skip(5);else if(32<=c&&127>=c)u=c,r.g&&(127===u?iT(r.g,"âª"):iT(r.g,String.fromCharCode(u)));else if(160<=c&&255>=c)r.g&&iT(r.g,String.fromCharCode(c));else if(4128<=c&&4223>=c){if(u=255&c,r.g)if(iN.has(u)){var b=iN.get(u);iT(r.g,b)}else iT(r.g,"_")}else 4256<=c&&4351>=c&&r.g&&(160!=(255&c)?iT(r.g,"_"):iT(r.g,"[CC]"));y=[]}n.push.apply(n,d(y))}}}}catch(e){if(e instanceof tr&&3e3===e.code)J("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw e}return n}(this,a.value),i.push.apply(i,d(a));return this.i.i=[],this.h=[],this.g=[],i},iB.prototype.getStreams=function(){return Array.from(this.A)},H("shaka.cea.CeaDecoder",iB),eT=function(){return new iB},(f=iV.prototype).box=function(e,t){return e=iz(e),this.i[e]=iJ,this.h[e]=t,this},f.R=function(e,t){return e=iz(e),this.i[e]=i$,this.h[e]=t,this},f.stop=function(){this.g=!0},f.parse=function(e,t,n){for(e=new i_(e,0),this.g=!1;e.oa()&&!this.g;)this.Wb(0,e,t,n)},f.Wb=function(e,t,n,i){var r=t.la();if(i&&r+8>t.getLength())this.g=!0;else{var a=t.L(),o=t.L(),s=iX(o),u=!1;switch(a){case 0:a=t.getLength()-r;break;case 1:if(i&&t.la()+8>t.getLength()){this.g=!0;return}a=t.Zb(),u=!0}var l=this.h[o];if(l){var c=null,h=null;if(this.i[o]==i$){if(i&&t.la()+4>t.getLength()){this.g=!0;return}c=(h=t.L())>>>24,h&=0xffffff}o=r+a,n&&o>t.getLength()&&(o=t.getLength()),i&&o>t.getLength()?this.g=!0:l({name:s,parser:this,partialOkay:n||!1,version:c,flags:h,reader:t=new i_(t=0<(i=o-t.la())?t.kb(i):new Uint8Array(0),0),size:a,start:r+e,has64BitSize:u})}else t.skip(Math.min(r+a-t.la(),t.getLength()-t.la()))}},H("shaka.util.Mp4Parser",iV),iV.headerSize=iY,iV.typeToString=iX,iV.allData=iW,iV.audioSampleEntry=function(e){var t=iY(e);e.reader.skip(8);var n=e.reader.ab();for(e.reader.skip(6),2==n?e.reader.skip(48):e.reader.skip(12),1==n&&e.reader.skip(16);e.reader.oa()&&!e.parser.g;)e.parser.Wb(e.start+t,e.reader,e.partialOkay)},iV.visualSampleEntry=iq,iV.sampleDescription=iK,iV.children=iG,iV.prototype.parseNext=iV.prototype.Wb,iV.prototype.parse=iV.prototype.parse,iV.prototype.stop=iV.prototype.stop,iV.prototype.fullBox=iV.prototype.R,iV.prototype.box=iV.prototype.box;var iJ=0,i$=1;function iZ(e,t){var n=null,i=null,r=null,a=e.L();return 1&t&&(r=e.Zb()),2&t&&e.skip(4),8&t&&(n=e.L()),16&t&&(i=e.L()),{trackId:a,ic:n,Mc:i,th:r}}function iQ(e,t){return 1==t?{baseMediaDecodeTime:0x100000000*(t=e.L())+(e=e.L())}:{baseMediaDecodeTime:e.L()}}function i0(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),t=e.L(),e.skip(4),{timescale:t,language:String.fromCharCode(((e=e.ab())>>10)+96)+String.fromCharCode(((960&e)>>5)+96)+String.fromCharCode((31&e)+96)}}function i1(e,t,n){var i=e.L(),r=[],a=null;1&n&&(a=e.L()),4&n&&e.skip(4);for(var o=0;o<i;o++){var s={$d:null,sampleSize:null,ed:null};256&n&&(s.$d=e.L()),512&n&&(s.sampleSize=e.L()),1024&n&&e.skip(4),2048&n&&(s.ed=0==t?e.L():e.bf()),r.push(s)}return{xh:i,df:r,Lf:a}}function i2(){this.j=new Map,this.i=this.h=0,this.g=i3}i2.prototype.init=function(e){function t(e){(e=e.name)in i8&&(n.g=i8[e])}var n=this,i=[],r=[];if((new iV).box("moov",iG).box("mvex",iG).R("trex",function(e){var t=e.reader;t.skip(4),t.skip(4),e=t.L(),t=t.L(),n.h=e,n.i=t}).box("trak",iG).R("tkhd",function(e){var t=e.reader;1==(e=e.version)?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4));var n=t.L();1==e?t.skip(8):t.skip(4),t.skip(4),t.skip(8),t.skip(2),t.skip(2),t.skip(2),t.skip(2),t.skip(36),t.ab(),t.ab(),t.ab(),t.ab(),i.push(n)}).box("mdia",iG).R("mdhd",function(e){e=i0(e.reader,e.version),r.push(e.timescale)}).box("minf",iG).box("stbl",iG).R("stsd",iK).box("avc1",t).box("avc3",t).box("dvav",t).box("dva1",t).box("hev1",t).box("hvc1",t).box("dvh1",t).box("dvhe",t).box("vvc1",t).box("vvi1",t).box("dvc1",t).box("dvi1",t).box("encv",iq).box("sinf",iG).box("frma",function(e){(e=iX(e=e.reader.L()))in i8&&(n.g=i8[e])}).parse(e,!0),!i.length||!r.length||i.length!=r.length)throw new tr(2,2,2010);this.g==i3&&Y("Unable to determine bitstream format for CEA parsing!"),i.forEac
1h(function(e,t){n.j.set(e,r[t])})},i2.prototype.parse=function(e){var t=this;if(this.g==i3)return[];var n=[],i=0,r=[];return(new iV).box("moof",function(e){i=e.start,r=[],iG(e)}).box("traf",function(e){r.push({baseMediaDecodeTime:null,ic:t.h,Mc:t.i,Ye:[],timescale:9e4}),iG(e)}).R("trun",function(e){var t=r[r.length-1];e=i1(e.reader,e.version,e.flags),t.Ye.push(e)}).R("tfhd",function(e){var n=r[r.length-1];n.ic=(e=iZ(e.reader,e.flags)).ic||t.h,n.Mc=e.Mc||t.i,e=e.trackId,t.j.has(e)&&(n.timescale=t.j.get(e))}).R("tfdt",function(e){var t=r[r.length-1];t.baseMediaDecodeTime=(e=iQ(e.reader,e.version)).baseMediaDecodeTime}).box("mdat",function(e){for(var a=i-e.start-8,o=e.reader.la(),s=h(r),u=s.next();!u.done;u=s.next()){if(null===(u=u.value).baseMediaDecodeTime)throw Y("Unable to find base media decode time for CEA captions!"),new tr(2,2,2010);e.reader.seek(o),function(e,t,n,i,r,a,o,s,u){var l=0,c=a,f=s.map(function(e){return e.df});for((f=[].concat.apply([],d(f))).length&&(c=f[0].sampleSize||a),t.skip(o+s[0].Lf);t.oa();){o=t.L();var p=t.bb(),g=null;switch(g=!1,s=1,e.g){case i4:g=6==(g=31&p);break;
1case i5:s=2,t.skip(1),g=39==(g=p>>1&63)||40==g;break;case i6:s=2,t.skip(1),g=23==(g=p>>1&63)||24==g;break;default:return}if(g)for(p=0,l<f.length&&(p=f[l].ed||0),p=(n+p)/i,g=(s=h(function(e){for(var t=[],n=e,i=e=0;i<n.length;)2==e&&3==n[i]?(e=0,(n=[].concat(d(n))).splice(i,1),n=new Uint8Array(n)):0==n[i]?e++:e=0,i++;for(e=n,i=0;i<e.length;){for(n=0;255==e[i];)n+=255,i++;n+=e[i++];for(var r=0;255==e[i];)r+=255,i++;r+=e[i++],4==n&&t.push(e.subarray(i,i+r)),i+=r}return t}(t.kb(o-s)))).next();!g.done;g=s.next())u.push({packet:g.value,pts:p});else try{t.skip(o-s)}catch(e){break}0==(c-=o+4)&&(n=l<f.length?n+(f[l].$d||r):n+r,c=++l<f.length&&f[l].sampleSize||a)}}(t,e.reader,u.baseMediaDecodeTime,u.timescale,u.ic,u.Mc,a,u.Ye,n)}}).parse(e,!1),n},H("shaka.cea.Mp4CeaParser",i2);var i3=0,i4=1,i5=2,i6=3,i8={avc1:1,avc3:1,dvav:1,dva1:1,hev1:2,hvc1:2,dvh1:2,dvhe:2,vvc1:3,vvi1:3,dvc1:3,dvi1:3};function i7(e){var t=this;this.h=[],this.g=[],this.data=[],(new iV).box("moov",iG).box("moof",iG).R("pssh",function(e){if(!(1<e.version)){var n=em(e.reader.h,-12,e.size);if(t.data.push(n),t.h.push(tZ(e.reader.kb(16))),0<e.version){n=e.reader.L();for(var i=0;i<n;i++){var r=tZ(e.reader.kb(16));t.g.push(r)}}}}).parse(e)}function i9(e,t,n,i){var r=e.length,a=t.length+16+r;0<i&&(a+=4+16*n.size);var o=new Uint8Array(a),s=ey(o),u=0;if(s.setUint32(u,a),u+=4,s.setUint32(u,0x70737368),u+=4,1>i?s.setUint32(u,0):s.setUint32(u,0x1000000),u+=4,o.set(t,u),u+=t.length,0<i)for(s.setUint32(u,n.size),u+=4,n=(t=h(n)).next();!n.done;n=t.next())n=t$(n.value),o.set(n,u),u+=n.length;return s.setUint32(u,r),o.set(e,u+4),o}function re(e,t){var n=void 0!==n&&n;return rt(e=tH(e),t,n)}function rt(e,t,n){return e=function(e,t){function n(){for(var t=i;-1==="\r\n >/= ".indexOf(e[i])&&e[i];)i++;return e.slice(t,i)}var i=0;return function r(a,o){o=void 0!==o&&o;for(var s=[];e[i];)if(60==e.charCodeAt(i)){if(47===e.charCodeAt(i+1)){o=i+2,i=e.indexOf(">",i);var u=(o=e.substring(o,i)).indexOf(a);if(-1==u){var l=a.indexOf(".");0<l&&(u=o.indexOf(a.substring(0,l)))}if(-1==u)throw Error("Unexpected close tag\nLine: "+((a=e.substring(0,i).split("\n")).length-1)+"\nColumn: "+(a[a.length-1].length+1)+"\nChar: "+e[i]);i+1&&(i+=1);break}
1if(33===e.charCodeAt(i+1)){if(45==e.charCodeAt(i+2)){for(;-1!==i&&(62!==e.charCodeAt(i)||45!=e.charCodeAt(i-1)||45!=e.charCodeAt(i-2)||-1==i);)i=e.indexOf(">",i+1);-1===i&&(i=e.length)}else if(91===e.charCodeAt(i+2)&&91===e.charCodeAt(i+8)&&"cdata"===e.substr(i+3,5).toLowerCase()){-1==(u=e.indexOf("]]>",i))?(s.push(e.substr(i+9)),i=e.length):(s.push(e.substring(i+9,u)),i=u+3);continue}i++;continue}e:{l=o,i++;var c=n(),h={};for(u=[];62!==e.charCodeAt(i)&&e[i];){var f=e.charCodeAt(i);if(64<f&&91>f||96<f&&123>f){f=n();for(var p=e.charCodeAt(i);p&&39!==p&&34!==p&&!(64<p&&91>p||96<p&&123>p)&&62!==p;)i++,p=e.charCodeAt(i);var g=i+1;if(i=e.indexOf(e[i],g),g=e.slice(g,i),39===p||34===p){if(-1===i){if(l={tagName:c,attributes:h,children:u,parent:null},t)for(c=0;c<u.length;c++)"string"!=typeof u[c]&&(u[c].parent=l);u=l;break e}}else g=null,i--;if(f.startsWith("xmlns:")){p=g;var m=f.split(":")[1];rC.set(p,m),rI.set(m,p)}"tt"===c&&"xml:space"===f&&"preserve"===g&&(l=!0),h[f]=g}i++}for(47!==e.charCodeAt(i-1)?(i++,u=r(c,l)):i++,l={tagName:c,attributes:h,children:u,parent:null},c=u.length,h=0;h<c;h++)"string"!=typeof(f=u[h])?t&&(f.parent=l):h==c-1&&"\n"==f&&u.pop();u=l}if(s.push(u),"string"==typeof u)break;"?"===u.tagName[0]&&u.children&&(s.push.apply(s,d(u.children)),u.children=[])}else u=i,-2==(i=e.indexOf("<",i)-1)&&(i=e.length),u=e.slice(u,i+1),o?0<u.length&&s.push(u):s.length&&1==u.length&&"\n"==u[0]?s.push(u):0<u.trim().length&&s.push(u),i++;return s}("")}(e,void 0!==n&&n),!t&&e.length?e[0]:(e=e.find(function(e){return e.tagName===t}))?e:null}function rn(e){return rC.has(e)?rC.get(e):""}function ri(e){var t=[];if(!e.children)return[];e=h(e.children);for(var n=e.next();!n.done;n=e.next())"string"!=typeof(n=n.value)&&t.push(n);return t}function rr(e,t){var n=[];if(!e.children)return[];e=h(e.children);for(var i=e.next();!i.done;i=e.next())(i=i.value).tagName===t&&n.push(i);return n}function ra(e){return"string"==typeof e?tq(e):""===(e=e.children.reduce(function(e,t){return"string"==typeof t?e+t:e},""))?null:tq(e)}function ro(e){return Array.from(e.children).every(function(e){return"string"==typeof e})?((e=ra(e))&&(e=e.trim()),e):null}function rs(e,t,n){if(n=void 0===n?[]:n,e.tagName===t&&n.push(e),e.children){e=h(e.children);for(var i=e.next();!i.done;i=e.next())rs(i.value,t,n)}return n}function ru(e,t){return 1!=(e=rr(e,t)).length?null:e[0]}function rl(e,t,n){return 1!=(e=rd(e,t,n)).length?null:e[0]}function rc(e,t,n,i){i=void 0===i?null:i;var r=null;return null!=(e=e.attributes[t])&&(r=n(e)),null==r?i:r}function rh(e,t,n){return t=rn(t),e.attributes[t+":"+n]||null}function rd(e,t,n){t=rn(t);var i=[];if(e.children){e=h(e.children);for(var r=e.next();!r.done;r=e.next())(r=r.value)&&r.tagName===t+":"+n&&i.push(r)}return i}function rf(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),isNaN(e=Date.parse(e))?null:e/1e3):null}function rp(e){return e&&(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(e))&&isFinite(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null))?e:null}function rg(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t&&isFinite(e=Number(t[1]))&&isFinite(t=Number(t[2]))?{start:e,end:t}:null}function rm(e){return 0==(e=Number(e))%1?e:null}function rv(e){return 0==(e=Number(e))%1&&0<e?e:null}function ry(e){return 0==(e=Number(e))%1&&0<=e?e:null}function rb(e){return isNaN(e=Number(e))?null:e}function rw(e){return!!e&&"true"===e.toLowerCase()}function rx(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function rS(e){var t=[];e=h(e=tq(e).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/));for(var n=e.next();!n.done;n=e.next()){var i=(n=n.value).match(/^([\w]+)/);if(i){var r=n.match(/(@id='(.*?)')/),a=n.match(/(@t='(\d+)')/),o=n.match(/(@n='(\d+)')/),s=n.match(/\[(\d+)\]/);t.push({name:i[0],id:r?r[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:a?Number(a[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:o?Number(o[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:s?Number(s[1])-1:null,gb:n.split("/@")[1]||null})}else n.startsWith("@")&&t.length&&(t[t.length-1].gb=n.slice(1))}return t}function rT(e,t){var n=rS(t.attributes.sel||"");if(n.length){var i=n[n.length-1],r=t.attributes.pos||null;null==(n=i.position)&&(null!==i.t&&(n=rk(e,"t",i.t)),null!==i.n&&(n=rk(e,"n",
1i.n))),null===n?n="prepend"===r?0:e.length:"prepend"===r?--n:"after"===r&&++n,r=t.tagName,(i=i.gb)&&e[n]?rA(e[n],r,i,ro(t)||""):("remove"!==r&&"replace"!==r||e.splice(n,1),"add"!==r&&"replace"!==r||e.splice.apply(e,[n,0].concat(d(t.children))))}}function rk(e,t,n){var i=0;e=h(e);for(var r=e.next();!r.done;r=e.next()){if(Number(r.value.attributes[t])===n)return i;i++}return null}function rA(e,t,n,i){"remove"===t?delete e.attributes[n]:("add"===t||"replace"===t)&&(e.attributes[n]=i)}function rE(e){if(!e)return null;var t={tagName:e.tagName,attributes:nD(e.attributes),children:[],parent:null};e=h(e.children);for(var n=e.next();!n.done;n=e.next())"string"==typeof(n=n.value)||((n=rE(n)).parent=t),t.children.push(n);return t}eS["video/mp4"]=function(){return new i2},H("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3}),H("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});var rC=new Map,rI=new Map;function rM(t,n,i){var r=function(e){var t=[];e=h(e);for(var n=e.next();!n.done;n=e.next())(n=function(e){var t=e.attributes.schemeIdUri,n=rh(e,"urn:mpeg:cenc:2013","default_KID"),i=rd(e,"urn:mpeg:cenc:2013","pssh").map(ro),r=e.attributes.value;if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new tr(2,4,4009);var a=[];try{a=i.map(function(e){return{initDataType:"cenc",initData:tJ(e),keyId:null}})}catch(e){throw new tr(2,4,4007)}return{node:e,$b:t,keyId:n,init:0<a.length?a:null,encryptionScheme:r}}(n.value))&&t.push(n);return t}(t),a=null;t=[];var o=[],s=null,u=new Set(r.map(function(e){return e.keyId}));u.delete(null);var l="cenc";if(1<u.size)throw new tr(2,4,4010);if(!n){if(1<(o=r.filter(function(e){return"urn:mpeg:dash:sea:2012"==e.$b})).length)throw new tr(2,4,4050);o.length&&(s=function(t){if(!e.crypto||!e.crypto.subtle)throw Y("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new tr(2,4,4042);var n=rl(t.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!n||"urn:mpeg:dash:sea:aes128-cbc:2013"!=n.attributes.schemeIdUri||!(n=rl(t.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod"))||(t=n.attributes.IV,n=tq(n.attributes.keyUriTemplate),!t||!n))throw new tr(2,4,4051);if(16!=(t=t$(t.substr(2))).byteLength)throw new tr(2,4,4048);return{Ag:n,iv:t}}(o[0])),(o=r.find(function(e){return"urn:mpeg:dash:mp4protection:2011"==e.$b}))&&o.encryptionScheme&&(l=o.encryptionScheme),(o=r.filter(function(e){return"urn:mpeg:dash:mp4protection:2011"==e.$b?(a=e.init||a,!1):"urn:mpeg:dash:sea:2012"!=e.$b})).length&&0==(t=function(e,t,n,i,r){var a=[];n=h(n);for(var o=n.next();!o.done;o=n.next()){var s,u=i[(o=o.value).$b];if(u){if((s=rl(o.node,"urn:microsoft:playready","pro"))&&ra(s)){s=tJ(s=ra(s));var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);s=[{initData:i9(s,l,new Set,0),initDataType:"cenc",keyId:o.keyId}]}else s=null;if(l=null,"urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===o.$b)if(l=o,0==r.size)l=null;else{var c=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75]);l=[{initData:i9(new Uint8Array([]),c,r,1),initDataType:"cenc",keyId:l.keyId}]}s=t1(u,t,o.init||e||s||l),(u=rP.get(u))&&(s.licenseServerUri=u(o)),a.push(s)}}return a}(a,l,o,i,u)).length&&(t=[t1("",l,a)])}if(r.length&&!s&&(n||!o.length))for(t=[],i=(n=h(Object.values(i))).next();!i.done;i=n.next())"org.w3.clearkey"!=(i=i.value)&&t.push(t1(i,l,a));if(u=Array.from(u)[0]||null)for(n=(l=h(t)).next();!n.done;n=l.next())for(i=(n=h(n.value.initData)).next();!i.done;i=n.next())i.value.keyId=u;return{xe:u,uh:a,drmInfos:t,td:s,De:!0}}function rD(e){var t=rl(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=ra(t))?t:(e=rl(e.node,"urn:microsoft:playready","pro"))&&ra(e)&&(e=(function(e){var t=0,n=ey(e),i=n.getUint32(t,!0);if(i!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){i=n.getUint16(e,!0),e+=2;var r=n.getUint16(e,!0);if(e+=2,0!=(1&r)||r+e>n.byteLength){n=[];break e}var a=em(n,e,r);t.push({type:i,value:a}),e+=r}n=t}return n})(e=tJ(e=ra(e))).filter(function(e){return e.type===rR})[0])&&(e=rt(e=tF(e.value,!0),"WRMHEADER"))?function(e){e=h(rs(e,"DATA"));for(var t=e.next();!t.done;t=e.next())if((t=t.value).children){t=h(t.children);for(var n=t.next();!n.done;n=t.next())if("LA_URL"==(n=n.value).tagName)return ra(n)}return""}(e):""}var rR=1,rP=(new Map).set("com.widevine.alpha",function(e){var t=rl(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=ra(t))?t:(e=rl(e.node,"urn:microsoft","laurl"))&&tq(e.attributes.licenseUrl)||""}).set("com.microsoft.playready",rD).set("com.microsoft.playready.recommendation",rD).set("com.microsoft.playready.softw
1are",rD).set("com.microsoft.playready.hardware",rD).set("org.w3.clearkey",function(e){var t=rl(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=ra(t))?t:(e=rl(e.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===e.attributes.Lic_type&&e&&(e=ra(e))?e:""});function rL(e,t){var n=rj();this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.o=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.m=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function rN(e){var t,n;return L(function(i){if(1==i.g){if(e.g>=e.l)if(e.i)e.g=1,e.h=e.j;else throw new tr(2,7,1010);return(t=e.g,e.g++,0==t)?i.return():(n=e.h*(1+(2*Math.random()-1)*e.o),S(i,new Promise(function(e){new td(e).ca(n/1e3)}),2))}e.h*=e.m,T(i)})}function rj(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function r_(){var e,t,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}function rO(e,t){this.promise=e,this.l=t,this.g=!1}function rU(e){return new rO(Promise.reject(e),function(){return Promise.resolve()})}function rB(){var e=Promise.reject(new tr(2,7,7001));return e.catch(function(){}),new rO(e,function(){return Promise.resolve()})}function rF(e){return new rO(Promise.resolve(e),function(){return Promise.resolve()})}function rH(e){return new rO(e,function(){return e.catch(function(){})})}function rV(e){return new rO(Promise.all(e.map(function(e){return e.promise})),function(){return Promise.all(e.map(function(e){return e.abort()}))})}function rG(t,n){if(n)if(n instanceof Map)for(var i=h(n.keys()),r=i.next();!r.done;r=i.next())Object.defineProperty(this,r=r.value,{value:n.get(r),writable:!0,enumerable:!0});else for(i in n)Object.defineProperty(this,i,{value:n[i],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function rK(){this.Ga=new Z,this.oe=this}function rq(){this.g=[]}function rW(e,t){e.g.push(t.finally(function(){var n=e.g,i=n.indexOf(t);-1<i&&n.splice(i,1)}))}function rz(e,t,n,i,r,a,o){rK.call(this),this.j=!1,this.m=new rq,this.g=new Set,this.h=new Set,this.i=e||null,this.l=t||null,this.B=n||null,this.C=i||null,this.F=r||null,this.D=a||null,this.A=o||null,this.o=this.s=!1}function rX(e,t,n,i){n=n||r0;var r=r1[e];(!r||n>=r.priority)&&(r1[e]={priority:n,ad:t,Lg:void 0!==i&&i})}function rY(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===n?null:n}}function rJ(e){if(e){var t=e.segment;if(e=e.stream,t&&e&&e.fastSwitching&&t.Ac)return!1}return!0}function r$(){this.g=0,this.h=!1}function rZ(e,t,n,i){rO.call(this,e,t),this.h=n,this.j=Date.now(),this.i=i}r_.prototype.resolve=function(){},r_.prototype.reject=function(){},rO.prototype.abort=function(){return this.g=!0,this.l()},rO.prototype.finally=function(e){return this.promise.then(function(){return e(!0)},function(){return e(!1)}),this},rO.prototype.Da=function(e,t){function n(n){return function(s){if(r.g&&n)a.reject(o);else{var u=n?e:t;u?i=function(e,t,n){try{var i=e(t);if(i&&i.promise&&i.abort)return n.resolve(i.promise),function(){return i.abort()};return n.resolve(i),function(){return Promise.resolve(i).then(function(){},function(){})}}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(u,s,a):(n?a.resolve:a.reject)(s)}}}function i(){return a.reject(o),r.abort()}var r=this,a=new r_;
1a.catch(function(){});var o=new tr(2,7,7001);return this.promise.then(n(!0),n(!1)),new rO(a,function(){return i()})},u.Object.defineProperties(rO.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),H("shaka.util.AbortableOperation",rO),rO.prototype.chain=rO.prototype.Da,rO.prototype.finally=rO.prototype.finally,rO.all=rV,rO.prototype.abort=rO.prototype.abort,rO.notAbortable=rH,rO.completed=rF,rO.aborted=rB,rO.failed=rU,rG.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},rG.prototype.stopImmediatePropagation=function(){this.g=!0},rG.prototype.stopPropagation=function(){},H("shaka.util.FakeEvent",rG),rK.prototype.addEventListener=function(e,t){this.Ga&&this.Ga.push(e,t)},rK.prototype.removeEventListener=function(e,t){this.Ga&&this.Ga.remove(e,t)},rK.prototype.dispatchEvent=function(e){if(!this.Ga)return!0;var t=this.Ga.get(e.type)||[],n=this.Ga.get("All");for(n&&(t=t.concat(n)),n=(t=h(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.oe,e.currentTarget=this.oe;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},rK.prototype.release=function(){this.Ga=null},rq.prototype.destroy=function(){for(var e=[],t=h(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch(function(){}),e.push(n.abort());return this.g=[],Promise.all(e)},y(rz,rK),(f=rz.prototype).be=function(e){this.s=e},f.ce=function(e){this.o=e},f.Og=function(e){this.g.add(e)},f.fh=function(e){this.g.delete(e)},f.If=function(){this.g.clear()},f.Pg=function(e){this.h.add(e)},f.gh=function(e){this.h.delete(e)},f.Jf=function(){this.h.clear()},f.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),rK.prototype.release.call(this),this.m.destroy()},f.request=function(e,t,n){var i=this,r=t.retryParameters=t.retryParameters?nM(t.retryParameters):rj(),a=new r$;if(this.j)return(r=Promise.reject(new tr(2,7,7001))).catch(function(){}),new rZ(r,function(){return Promise.resolve()},a,0);t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=r,t.uris=nM(t.uris);var o=function(e,t,n,i){function r(e){a=a.Da(function(){return n.body&&(n.body=eg(n.body)),e(t,n,i)})}var a=rF(void 0);e.C&&r(e.C),e=h(e.g);for(var o=e.next();!o.done;o=e.next())r(o.value);return a.Da(void 0,function(e){if(e instanceof tr&&7001==e.code)throw e;throw new tr(2,1,1006,e)})}(this,e,t,n),s=o.Da(function(){return function e(t,n,i,r,a,o,s,u){t.s&&(i.uris[o]=i.uris[o].replace("https://","http://")),t.o&&(i.uris[o]=i.uris[o].replace("http://","https://")),0<o&&t.F&&t.F(n,r,i.uris[o],i.uris[o-1]);var l=new eQ(i.uris[o]),c=l.Ra,h=!1;c||(e0(l,c=(c=location.protocol).slice(0,-1)),i.uris[o]=l.toString());var d=(c=r1[c=c.toLowerCase()])?c.ad:null;if(!d)return rU(new tr(2,1,1e3,l));var f,p=c.Lg,g=null,m=null,v=!1,y=!1;return rH(rN(a)).Da(function(){if(t.j)return rB();f=Date.now();var e=0;u.h&&new td(function(){t.i(0,-1,rJ(r))}).ca(0),i.requestStartTime=Date.now();var a=d(i.uris[o],i,n,function(a,o,s){g&&g.stop(),m&&m.ca(l/1e3),t.i&&n==rQ&&(i.packetNumber=++e,t.i(a,o,rJ(r),i),h=!0,u.g=s)},function(e){t.l&&t.l(e,i,n),y=!0,i.timeToFirstByte=Date.now()-i.requestStartTime});if(!p)return a;var s=i.retryParameters.connectionTimeout;s&&(g=new td(function(){v=!0,a.abort()})).ca(s/1e3);var l=i.retryParameters.stallTimeout;return l&&(m=new td(function(){v=!0,a.abort()})),a}).Da(function(e){g&&g.stop(),m&&m.stop(),void 0==e.timeMs&&(e.timeMs=Date.now()-f);var r={response:e,rg:h};return!y&&t.l&&t.l(e.headers,i,n),n==rQ&&t.A&&t.A(i,e),r},function(l){if(g&&g.stop(),m&&m.stop(),t.B){var c=null,h=0;l instanceof tr&&(c=l,1001==l.code&&(h=l.data[1])),t.B(i,c,h,v)}if(t.j)return rB();if(v&&(l=new tr(1,1,1003,i.uris[o],n)),l instanceof tr){if(7001==l.code)throw l;if(1010==l.code)throw s;if(1==l.severity)return c=new rG("retry",c=(new Map).set("error",l)),t.dispatchEvent(c),1==l.category&&1003==l.code&&n==rQ&&(u.h=!0),o=(o+1)%i.uris.length,e(t,n,i,r,a,o,l,u)}throw l})}(i,e,t,n,new rL(t.retryParameters,!1),0,null,a)}),u=s.Da(function(t){var r=i,a=e,o=t,s=n,u=rF(void 0);r=h(r.h);for(var l=r.next(),c={};!l.done;c={cf:void 0},l=r.next())c.cf=l.value,u=u.Da(function(e){return function(){var t=o.response;return t.data&&(t.data=eg(t.data)),(0,e.cf)(a,t,s)}}(c));return u.Da(function(){return o},function(e){var t=2;if(e instanceof tr){if(7001==e.code)throw e;t=e.severity}throw new tr(t,1,1007,e)})}),l=Date.now(),c=0;o.promise.then(function(){c=Date.now()-l},function(){});var d=0;s.promise.then(function(){d=Date.now()},function(){});var f=u.Da(function(r){var a=Date.now()-d,o=r.response;return o.timeMs+=c,o.timeMs+=a,r.rg||!i.i||o.fromCache||"HEAD"==t.method||e!=rQ||i.i(o.timeMs,o.data.byteLength,rJ(n)),i.D&&i.D(e,o,n),o},function(e){throw e&&(e.severity=2),e});return r=new rZ(f.promise,function(){return f.abort()},a,r.timeout/1e3),rW(this.m,r),r},H("shaka.net.NetworkingEngine",rz),rz.prototype.request=rz.prototype.request,rz.prototype.destroy=rz.prototype.destroy,rz.makeRequest=rY,rz.defaultRetryParameters=function(){return rj()},rz.prototype.clearAllResponseFilters=rz.prototype.Jf,rz.prototype.unregisterResponseFilter=rz.prototype.gh,rz.prototype.registerResponseFilter=rz.prototype.Pg,rz.prototype.clearAllRequestFilters=rz.prototype.If,rz.prototype.unregisterRequestFilter=rz.prototype.fh,rz.prototype.registerRequestFilter=rz.prototype.Og,rz.unregisterScheme=function(e){delete r1[e]},rz.registerScheme=rX,rz.prototype.setForceHTTPS=rz.prototype.ce,rz.prototype.setForceHTTP=rz.prototype.be,rz.NumBytesRemainingClass=r$,y(rZ,rO),rz.PendingRequest=rZ;var rQ=1;rz.RequestType={MANIFEST:0,SEGMENT:1,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8},rz.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6};var r0=3;rz.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:3};var r1={};function r2(t,n,i,r,a,o){var s={RepresentationID:n,Number:i,SubNumber:r,Bandwidth:a,Time:o};return t.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(t,n,i,r){if("$$"==t)return"$";var a=s[n];if(null==a)return t;switch("RepresentationID"==n&&i&&(i=void 0),"Time"==n&&"bigint"!=typeof a&&(.2<=Math.abs(a-Math.round(a))&&Y("Calculated $Time$ values must be close to integers"),a=Math.round(a)),r){case void 0:case"d":case"i":case"u":default:t=a.toString();break;case"o":t=a.toString(8);break;case"x":t=a.toString(16);break;case"X":t=a.toString(16).toUpperCase()}return Array(Math.max(0,(i=e.parseInt(i,10)||1)-t.length)+1).join("0")+t})}function r3(e,t){var n=r5(e,t,"timescale"),i=1;n&&(i=rv(n)||1),(n=rv((n=r5(e,t,"duration"))||""))&&(n/=i);var r=r5(e,t,"startNumber"),a=Number(r5(e,t,"presentationTimeOffset"))||0,o=ry(r||"");if((null==r||null==o)&&(o=1),r=null,t=r6(e,t,"SegmentTimeline")){t=rr(t,"S"),r=i,e=e.aa.duration||1/0;for(var s=o,u=[],l=-a,c=0;c<t.length;++c){var h=t[c],d=t[c+1],f=rc(h,"t",ry),p=rc(h,"d",ry),g=rc(h,"r",rm);if(h=rc(h,"k",rm)||0,null!=f&&(f-=a),p){if(f=null!=f?f:l,0>(g=g||0))if(d){if(null==(d=rc(d,"t",ry))||f>=d)break;
1g=Math.ceil((d-f)/p)-1}else{if(1/0==e||f/r>=e)break;g=Math.ceil((e*r-f)/p)-1}for(0<u.length&&f!=l&&(u[u.length-1].end=f/r),d=0;d<=g;++d)l=f+p,u.push({start:f/r,end:l/r,hh:f,$c:h,Vg:u.length+s}),f=l}}r=u}return{timescale:i,pa:n,Dc:o,Ma:a/i||0,je:a,timeline:r}}function r4(e,t){return[t(e.G),t(e.$),t(e.Z)].filter(ny)}function r5(e,t,n){t=r4(e,t),e=null,t=h(t);for(var i=t.next();!i.done&&!(e=i.value.attributes[n]);i=t.next());return e}function r6(e,t,n){t=r4(e,t),e=null,t=h(t);for(var i=t.next();!i.done&&!(e=ru(i.value,n));i=t.next());return e}function r8(e,t,n,i,r,a){if(a=void 0===a?0:a,rh(e,"http://www.w3.org/1999/xlink","href")){var o=function(e,t,n,i,r,a){for(var o=rh(e,"http://www.w3.org/1999/xlink","href"),s=rh(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",u=h(Object.keys(e.attributes)),l=u.next();!l.done;l=u.next()){var c=(l=l.value).split(":"),d=rn("http://www.w3.org/1999/xlink");c[0]==d&&delete e.attributes[l]}if(5<=a)return rU(new tr(2,4,4028));if("onLoad"!=s)return rU(new tr(2,4,4027));var f=t0([i],[o]);return r.request(0,rY(f,t)).Da(function(i){if(!(i=re(i.data,e.tagName)))return rU(new tr(2,4,4001,o));for(e.children=[];i.children.length;){var s=i.children.shift();e.children.push(s)}s=h(Object.keys(i.attributes));for(var u=s.next();!u.done;u=s.next())u=u.value,e.attributes[u]=i.attributes[u];return r8(e,t,n,f[0],r,a+1)})}(e,t,n,i,r,a);return n&&(o=o.Da(void 0,function(){return r8(e,t,n,i,r,a)})),o}o=[];for(var s=h(ri(e)),u=s.next(),l={};!u.done;l={ec:void 0},u=s.next())l.ec=u.value,"urn:mpeg:dash:resolve-to-zero:2013"==rh(l.ec,"http://www.w3.org/1999/xlink","href")?e.children=e.children.filter(function(e){return function(t){return t!==e.ec}}(l)):"SegmentTimeline"!=l.ec.tagName&&o.push(r8(l.ec,t,n,i,r,a));return rV(o).Da(function(){return e})}function r7(e,t,n,i,r,a,o){this.wa=e,this.i=t,this.h=n,this.Qd=void 0===i?null:i,this.timescale=void 0===r?null:r,this.g=void 0===a?null:a,this.aesKey=void 0===o?null:o,this.mimeType=this.codecs=null}function r9(e,t){return e===t||(e&&t?e.oc()==t.oc()&&e.kc()==t.kc()&&eI(e.wa().sort(),t.wa().sort())&&ef(e.nc(),t.nc()):e==t)}function ae(e,t,n,i,r,a,o,s,u,l,c,d,f,p,g,m){for(l=void 0===l?[]:l,p=void 0===p?at:p,this.startTime=e,this.j=this.endTime=t,this.K=n,this.i=i,this.h=r,this.ha=a,this.m=o,this.H=s,this.F=u,this.g=l,this.tilesLayout=void 0===c?"":c,this.D=void 0===d?null:d,this.B=void 0===f?null:f,this.status=p,this.preload=!1,this.l=!0,this.A=!1,this.aesKey=void 0===g?null:g,this.C=null,this.o=0,this.s=void 0!==m&&m,this.Tc=this.Ac=!1,t=(e=h(this.g)).next();!t.done;t=e.next())t.value.Se();this.s&&this.g.length&&this.g[this.g.length-1].Re(),this.I=this.mimeType=this.codecs=null}r7.prototype.oc=function(){return this.i},r7.prototype.kc=function(){return this.h},r7.prototype.nc=function(){return this.g},H("shaka.media.InitSegmentReference",r7),r7.prototype.getEndByte=r7.prototype.kc,r7.prototype.getStartByte=r7.prototype.oc,(f=ae.prototype).wa=function(){return this.K()},f.getStartTime=function(){return this.startTime},f.Uf=function(){return this.endTime},f.oc=function(){return this.i},f.kc=function(){return this.h},f.ng=function(){return this.tilesLayout},f.mg=function(){return this.D},f.pc=function(){return this.status},f.Fg=function(){this.status=an},f.Eg=function(){this.preload=!0},f.yg=function(){return this.preload},f.Pd=function(){this.l=!1},f.vg=function(){return this.l},f.Se=function(){this.Ac=!0},f.xg=function(){return this.Ac},f.Re=function(){this.Tc=!0},f.wg=function(){return this.Tc},f.Dg=function(){this.A=!0},f.sg=function(){return this.A},f.pf=function(e){this.C=e},f.kg=function(){return this.C},f.offset=function(e){this.startTime+=e,this.endTime+=e,this.j+=e;for(var t=h(this.g),n=t.next();!n.done;n=t.next())n=n.value,n.startTime+=e,n.endTime+=e,n.j+=e},f.dh=function(e){null==this.B?X("Sync attempted without sync time!"):.001<=Math.abs(e=this.B-e-this.startTime)&&this.offset(e)},f.$g=function(e){this.I=e},f.nc=function(){return this.I},H("shaka.media.SegmentReference",ae),ae.prototype.getSegmentData=ae.prototype.nc,ae.prototype.setSegmentData=ae.prototype.$g,ae.prototype.syncAgainst=ae.prototype.dh,ae.prototype.offset=ae.prototype.offset,ae.prototype.getThumbnailSprite=ae.prototype.kg,ae.prototype.setThumbnailSprite=ae.prototype.pf,ae.prototype.hasByterangeOptimization=ae.prototype.sg,ae.prototype.markAsByterangeOptimization=ae.prototype.Dg,ae.prototype.isLastParti
1al=ae.prototype.wg,ae.prototype.markAsLastPartial=ae.prototype.Re,ae.prototype.isPartial=ae.prototype.xg,ae.prototype.markAsPartial=ae.prototype.Se,ae.prototype.isIndependent=ae.prototype.vg,ae.prototype.markAsNonIndependent=ae.prototype.Pd,ae.prototype.isPreload=ae.prototype.yg,ae.prototype.markAsPreload=ae.prototype.Eg,ae.prototype.markAsUnavailable=ae.prototype.Fg,ae.prototype.getStatus=ae.prototype.pc,ae.prototype.getTileDuration=ae.prototype.mg,ae.prototype.getTilesLayout=ae.prototype.ng,ae.prototype.getEndByte=ae.prototype.kc,ae.prototype.getStartByte=ae.prototype.oc,ae.prototype.getEndTime=ae.prototype.Uf,ae.prototype.getStartTime=ae.prototype.getStartTime,ae.prototype.getUris=ae.prototype.wa;var at=0,an=1;function ai(e){this.g=e,this.m=null,this.i=0,this.o=!1}function ar(e,t,n){return new ai([e=new ae(e,e+t,function(){return n},0,null,null,e,e,e+t)])}function aa(e,t,n,i){this.i=e,this.h=t,this.g=n,this.reverse=i}function ao(){ai.call(this,[]),this.h=[]}function as(e){this.h=ey(e),this.g=new i_(this.h,0)}function au(e){var t=al(e);if(7<t.length)throw new tr(2,3,3002);var n=0;t=h(t);for(var i=t.next();!i.done;i=t.next())n=256*n+i.value;t=al(e);e:{i=h(ac);for(var r=i.next();!r.done;r=i.next())if(ef(t,new Uint8Array(r.value))){i=!0;break e}i=!1}if(i)t=e.h.byteLength-e.g.la();else{if(8==t.length&&224&t[1])throw new tr(2,3,3001);for(r=i=0;r<t.length;r++){var a=t[r];i=0==r?a&(1<<8-t.length)-1:256*i+a}t=i}return t=e.g.la()+t<=e.h.byteLength?t:e.h.byteLength-e.g.la(),i=ey(e.h,e.g.la(),t),e.g.skip(t),new ah(n,i)}function al(e){var t=e.g.la(),n=e.g.bb();if(0==n)throw new tr(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),em(e.h,t,n)}ae.Status={mh:0,rh:1,ph:2},(f=ai.prototype).getNumReferences=function(){return this.g.length},f.getNumEvicted=function(){return this.i},f.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)},f.Gg=function(){this.o=!0},f.Nb=function(e){for(var t=h(this.g),n=t.next();!n.done;n=t.next())e(n.value)},f.find=function(e){for(var t=this.g.length-1,n=t;0<=n;--n){var i=this.g[n],r=n<t?this.g[n+1].startTime:i.endTime;if(e>=i.startTime&&e<r)return n+this.i}return this.g.length&&e<this.g[0].startTime?this.i:null},f.get=function(e){return 0==this.g.length||0>(e-=this.i)||e>=this.g.length?null:this.g[e]},f.offset=function(e){if(!this.o)for(var t=h(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},f.Vc=function(e){if(!this.o&&e.length){var t=Math.round(1e3*e[0].startTime)/1e3;this.g=this.g.filter(function(e){return Math.round(1e3*e.startTime)/1e3<t}),this.g.push.apply(this.g,d(e))}},f.Wc=function(e,t){var n=this;e=e.filter(function(e){return e.endTime>t&&(0==n.g.length||e.endTime>n.g[0].startTime)}),this.Vc(e),this.ra(t)},f.ra=function(e){if(!this.o){var t=this.g.length;this.g=this.g.filter(function(t){return t.endTime>e}),this.i+=t-this.g.length}},f.jc=function(e,t,n){if(n=void 0!==n&&n,!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=t)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=e)this.g.shift(),n||this.i++;else break;0!=this.g.length&&((t=new ae((e=this.g[this.g.length-1]).startTime,t,e.K,e.i,e.h,e.ha,e.m,e.H,e.F,e.g,e.tilesLayout,e.D,e.B,e.status,e.aesKey)).mimeType=e.mimeType,t.codecs=e.codecs,t.o=e.o,this.g[this.g.length-1]=t)}},f.kd=function(e,t){var n=this;this.o||(this.m&&this.m.stop(),this.m=new td(function(){var e=t();e?n.g.push.apply(n.g,d(e)):(n.m.stop(),n.m=null)}),this.m.Aa(e))},ai.prototype[Symbol.iterator]=function(){return this.Xa(0)},ai.prototype.Xa=function(e,t,n){t=void 0!==t&&t,n=void 0!==n&&n;var i=this.find(e);if(null==i)return null;var r=this.get(i);n?i++:i--;var a=-1;if(r&&0<r.g.length)for(var o=r.g.length-1;0<=o;--o){var s=r.g[o];if(e>=s.startTime&&e<s.endTime){if(!t){for(;o&&!s.l;)o--,s=r.g[o];if(!s.l)return X("No independent partial segment found!"),null}n?i--:i++,a=o-1;break}}return new aa(this,i,a,n)},ai.prototype.Kc=function(){return -1},H("shaka.media.SegmentIndex",ai),ai.forSingleSegment=ar,ai.prototype.getIteratorForTime=ai.prototype.Xa,ai.prototype.updateEvery=ai.prototype.kd,ai.prototype.fit=ai.prototype.jc,ai.prototype.evict=ai.prototype.ra,ai.prototype.mergeAndEvict=ai.prototype.Wc,ai.prototype.offset=ai.prototype.offset,ai.prototype.get=ai.prototype.get,ai.prototype.find=ai.prototype.find,ai.prototype.markImmutable=ai.prototype.Gg,ai.prototype.release=ai.prototype.release,ai.prototype.getNumEvicted=ai.prototype.getNumEvicted,ai.prototype.getNumReferences=ai.prototype.getNumReferences,aa.prototype.cc=function(e){this.reverse=e},aa.prototype.Kf=function(){return this.h},aa.prototype.current=function(){var e=this.i.get(this.h);return e&&0<e.g.length&&e.s&&this.g>=e.g.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0<e.g.length?e.g[this.g]:e},aa.prototype.next=function(){var e=this.i.get(this.h);return this.reverse?e&&0<e.g.length?(this.g--,0>this.g&&(this.h--,this.g=(e=this.i.get(this.h))&&0<e.g.length?e.g.length-1:0)):(this.h--,this.g=0):e&&0<e.g.length?(this.g++,e.s&&this.g==e.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0),{value:e=this.current(),done:!e}},H("shaka.media.SegmentIterator",aa),aa.prototype.next=aa.prototype.next,aa.prototype.current=aa.prototype.current,aa.prototype.currentPosition=aa.prototype.Kf,aa.prototype.setReverse=aa.prototype.cc,y(ao,ai),(f=ao.prototype).clone=function(){var e=new ao;
1return e.h=this.h.slice(),e.i=this.i,e},f.release=function(){for(var e=h(this.h),t=e.next();!t.done;t=e.next())t.value.release();this.h=[]},f.Nb=function(e){for(var t=h(this.h),n=t.next();!n.done;n=t.next())n.value.Nb(e)},f.find=function(e){for(var t=this.i,n=h(this.h),i=n.next();!i.done;i=n.next()){var r=(i=i.value).find(e);if(null!=r)return r+t;t+=i.getNumEvicted()+i.getNumReferences()}return null},f.get=function(e){for(var t=this.i,n=h(this.h),i=n.next();!i.done;i=n.next()){var r=(i=i.value).get(e-t);if(r)return r;r=i.getNumReferences(),t+=i.getNumEvicted()+r}return null},f.offset=function(){},f.Vc=function(){},f.ra=function(e){for(var t=h(this.h),n=t.next();!n.done;n=t.next())n.value.ra(e);for(;1<this.h.length&&0==this.h[0].getNumReferences();)e=this.h.shift(),this.i+=e.getNumEvicted(),e.release()},f.Wc=function(){},f.jc=function(){},f.kd=function(){},H("shaka.media.MetaSegmentIndex",ao),ao.prototype.updateEvery=ao.prototype.kd,ao.prototype.fit=ao.prototype.jc,ao.prototype.mergeAndEvict=ao.prototype.Wc,ao.prototype.evict=ao.prototype.ra,ao.prototype.merge=ao.prototype.Vc,ao.prototype.offset=ao.prototype.offset,ao.prototype.get=ao.prototype.get,ao.prototype.find=ao.prototype.find,ao.prototype.forEachTopLevelReference=ao.prototype.Nb,ao.prototype.release=ao.prototype.release,as.prototype.oa=function(){return this.g.oa()};var ac=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function ah(e,t){this.id=e,this.g=t}function ad(e){if(8<e.g.byteLength)throw new tr(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new tr(2,3,3001);for(var t=0,n=0;n<e.g.byteLength;n++)t=256*t+e.g.getUint8(n);return t}function af(e,t,n){if(!(t=r6(e,t,"Initialization")))return null;var i=e.G.va(),r=t.attributes.sourceURL;r&&(i=t0(i,[tq(r)])),r=0;var a=null;return(t=rc(t,"range",rg))&&(r=t.start,a=t.end),(n=new r7(function(){return i},r,a,ay(e),null,null,n)).codecs=e.G.codecs,n.mimeType=e.G.mimeType,n}function ap(e,t,n,i,r,a,o){var s,u,l,c,d,f,p,g,m,v,y,b,w,x,T,k,A,E;return L(function(C){if(1==C.g)return s=e.presentationTimeline,u=!e.Oa||!e.aa.Ld,l=e.aa.start,c=e.aa.duration,d=e.G.mimeType.split("/")[1],p=null,g=[(f=t)(i,r,a,!1),"webm"==d?f(n.wa(),n.i,n.h,!0):null],f=null,S(C,Promise.all(g),2);if(v=(m=C.h)[0],y=m[1]||null,b=null,w=l-o,x=l,T=c?l+c:1/0,"mp4"==d)var I=function(e,t,n,i,r,a,o){var s,u=(new iV).R("sidx",function(e){s=function(e,t,n,i,r,a,o){var s=[];o.reader.skip(4);var u=o.reader.L();if(0==u)throw new tr(2,3,3005);if(0==o.version)var l=o.reader.L(),c=o.reader.L();else l=o.reader.Zb(),c=o.reader.Zb();o.reader.skip(2);var h=o.reader.ab();for(e=e+o.size+c,c=0;c<h;c++){var d=o.reader.L(),f=(0x80000000&d)>>>31;d&=0x7fffffff;var p=o.reader.L();if(o.reader.skip(4),1==f)throw new tr(2,3,3006);s.push(new ae(l/u+n,(l+p)/u+n,function(){return a},e,e+d-1,t,n,i,r)),l+=p,e+=d}return o.parser.stop(),s}(t,i,r,a,o,n,e)});if(e&&u.parse(e),s)return s;throw new tr(2,3,3004)}(v,r,i,n,w,x,T);else{I=v;var M=new as(y);if(0x1a45dfa3!=au(M).id)throw new tr(2,3,3008);var D=au(M);if(0x18538067!=D.id)throw new tr(2,3,3009);M=D.g.byteOffset,D=new as(D.g);for(var R=null;D.oa();){var P=au(D);if(0x1549a966==P.id){R=P;break}}if(!R)throw new tr(2,3,3010);for(R=new as(R.g),P=1e6,D=null;R.oa();){var L=au(R);if(2807729==L.id)P=ad(L);else if(17545==L.id)if(4==L.g.byteLength)D=L.g.getFloat32(0);else if(8==L.g.byteLength)D=L.g.getFloat64(0);else throw new tr(2,3,3003)}if(null==D)throw new tr(2,3,3011);if(D*=R=P/1e9,0x1c53bb6b!=(I=au(new as(I))).id)throw new tr(2,3,3007);I=function(e,t,n,i,r,a,o,s,u){function l(){return r}var c=[];e=new as(e.g);for(var h=null,d=null;e.oa();){var f=au(e);if(187==f.id){var p=function(e){var t=new as(e.g);if(179!=(e=au(t)).id)throw new tr(2,3,3013);if(e=ad(e),183!=(t=au(t)).id)throw new tr(2,3,3012);t=new as(t.g);for(var n=0;t.oa();){var i=au(t);if(241==i.id){n=ad(i);break}}return{ih:e,Qg:n}}(f);p&&(f=n*p.ih,p=t+p.Qg,null!=h&&c.push(new ae(h+o,f+o,l,d,p-1,a,o,s,u)),h=f,d=p)}}return null!=h&&c.push(new ae(h+o,i+o,l,d,null,a,o,s,u)),c}(I,M,R,D,i,n,w,x,T)}for(A=(k=h(b=I)).next();!A.done;A=k.next())(E=A.value).codecs=e.G.codecs,E.mimeType=e.G.mimeType;return s.Sd(b),p=new ai(b),u&&p.jc(x,T,!0),C.return(p)})}function ag(e){return e.bc}function am(e){var t=r6(e,ag,"RepresentationIndex");return e=rg((e=r5(e,ag,"indexRange"))||""),t&&(e=rc(t,"range",rg,e)),e}function av(e,t){var n=e.G.mimeType.split("/")[1];if(e.G.contentType!=t5&&"mp4"!=n&&"webm"!=n)throw new tr(2,4,4006);if("webm"==n&&!t)throw new tr(2,4,4005)}function ay(e){var t=e.G;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.Zc,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null,label:e.$.label||null,roles:e.roles||null,language:e.$.language||null}}function ab(e){return e.eb}function aw(t,n,i,r,a,o,s,u,l,c){l||t.G.Sc||(t.G.Sc=r5(t,ax,"initialization"));var d,f,p,g,m=t.G.Sc?function(e,t){var n=e.G.Sc;if(n||(n=r5(e,ax,"initialization")),!n)return null;n=tq(n);var i=e.G.id,r=e.bandwidth||null,a=e.G.va;return(t=new r7(function(){var e=r2(n,i,null,null,r,null);return t0(a(),[e])},0,null,ay(e),null,null,t)).codecs=e.G.codecs,t.mimeType=e.G.mimeType,t}(t,s):null,v=(f=r3(d=t,ax),p=r5(d,ax,"media"),g=r5(d,ax,"index"),{pa:f.pa,timescale:f.timescale,Dc:f.Dc,Ma:f.Ma,je:f.je,timeline:f.timeline,jb:p&&tq(p),rc:g,mimeType:d.G.mimeType,codecs:d.G.codecs});t.maxSegmentDuration||(t.maxSegmentDuration=v.pa||0),function(e){var t=+!!e.rc;if(0==(t+=+!!e.timeline+ +!!e.pa)||(1!=t&&(e.rc&&(e.timeline=null),e.pa=null),!e.rc&&!e.jb))throw new tr(2,4,4002)}(v);var y=nD(t);if(v.rc)return av(t,m),{endTime:-1,timeline:-1,wb:function(){var e=r2(v.rc,y.G.id,null,null,y.bandwidth||null,
1null);return e=t0(y.G.va(),[e]),ap(y,n,m,e,0,null,v.Ma)}};if(v.pa)return r||"image"===t.$.contentType||"text"===t.$.contentType||(r=t.aa.start,c=t.Z.id,i=t.aa.duration,c=(c=null!=c&&o[c]||i)?r+c:1/0,t.presentationTimeline.Rd(v.pa),t.presentationTimeline.Ve(r,c)),{endTime:-1,timeline:-1,wb:function(){return function(t,n,i,r,a,o,s){function u(i){var a=(i-v)*m,s=a+n.Ma,u=a+f,l=Math.min(a=u+m,c());return(u=new ae(u,l,function(){var t=s*y;return"BigInt"in e&&t>Number.MAX_SAFE_INTEGER&&(t=BigInt(s)*BigInt(y)),t=r2(b,x,i,null,w,t),t0(S(),[t])},0,null,r,T,f,c(),[],"",null,null,at,o)).codecs=t.G.codecs,u.mimeType=t.G.mimeType,u.j=a,u}function l(){var e=[Math.max(d.ib(),f),Math.min(d.hb(),c())].map(function(e){return e-f});return e=[Math.ceil(e[0]/m),Math.ceil(e[1]/m)-1],t.G.Ca&&e[1]++,e.map(function(e){return e+v})}function c(){var e=null!=p&&a[p]||g;return e?f+e:1/0}var d=t.presentationTimeline,f=t.aa.start,p=t.Z.id,g=t.aa.duration,m=n.pa,v=n.Dc,y=n.timescale,b=n.jb,w=t.bandwidth||null,x=t.G.id,S=t.G.va,T=f-n.Ma,k=l();i=t.Oa?Math.max(k[0],k[1]-i+1):k[0],s=s||k[1],k=[];for(var A=i;A<=s;++A){var E=u(A);k.push(E)}var C=new ai(k);if(k=d.hb()<c(),A=d.T(),k||A){var I=Math.max(i,s+1);i=m,t.G.Ca&&(i=.1),C.kd(i,function(){var e=d.ib();C.ra(e);var t=h(l());t.next(),t=t.next().value;for(var n=[];I<=t;){var i=u(I);n.push(i),I++}return e>c()&&!n.length?null:n})}return Promise.resolve(C)}(y,v,a,m,o,s,u)}};var b=null;r=r=null,t.Z.id&&t.G.id&&(r=i[r=t.Z.id+","+t.G.id])&&(b=r.segmentIndex);var w=t.aa.start,x=t.aa.duration?w+t.aa.duration:1/0,S=!(t.Oa&&t.aa.Ld);if(b)aT(c=b,v,w,x,S,m),c.ra(t.presentationTimeline.ib());else{if(i=0,l=-1,null!=t.Z.id&&null!=t.G.id){var T=c.get(t.Z.id);if(T)l=T.timeline;else for(T=(c=h(c.values())).next();!T.done;T=c.next())if(T=T.value,Math.abs(v.Ma-T.endTime)<=t8&&T.Yd.includes(t.G.id)){l=T.timeline;break}else T.timeline>=i&&(i=T.timeline+1)}-1==l&&(l=i),b=new aS(v,t.G.id,t.bandwidth,t.G.va,w,x,m,S,s,t.G.ae,l)}return v.timeline&&"image"!==t.$.contentType&&"text"!==t.$.contentType&&t.presentationTimeline.We(v.timeline,w),r&&t.Oa&&(r.segmentIndex=b),t=(t=(t=v.timeline)&&t[t.length-1])?t.end+v.Ma:-1,r=-1,b instanceof aS&&(r=b.Kc()),{endTime:t,timeline:r,wb:function(){return b instanceof aS&&0==b.getNumReferences()&&aT(b,v,w,x,S,m),Promise.resolve(b)}}}function ax(e){return e.nb}function aS(e,t,n,i,r,a,o,s,u,l,c){ai.call(this,[]),this.h=e,this.D=t,this.B=n,this.C=i,this.j=r,this.l=a,this.s=o,this.A=u,this.F=l,this.H=c,s&&ak(this)}function aT(e,t,n,i,r,a){if(function(e,t){if(e.s!==t){e.s=t,e=h(e.g);for(var n=e.next();!n.done;n=e.next())(n=n.value)&&function e(t,n){t.ha=n,t=h(t.g);for(var i=t.next();!i.done;i=t.next())e(i.value,n)}(n,t)}}(e,a),e.h){if(n=e.h.timeline,e.h.jb!==t.jb&&(e.h.jb=t.jb),n.length){var o=n[n.length-1];t=t.timeline.filter(function(e){return e.start>=o.end})}else t=t.timeline.slice();0<t.length&&e.h.timeline.push.apply(e.h.timeline,d(t)),e.l!==i&&(e.l=i)}else e.h=t,e.j=n,e.l=i;r&&ak(e)}function ak(e){if(e.h&&!e.o){for(var t=e.h.timeline;t.length;)if(t[t.length-1].start>=e.l)t.pop();else break;e.ra(e.j)}}function aA(e,t,n,i,r,a,o){return e=r2(e,t,n,a,i||null,r),t0(o(),[e]).map(function(e){return e.toString()})}function aE(){}function aC(e,t){if(t){var n=aI[t.toLowerCase()];if(n)return n}throw new tr(2,4,4e3,e,t)}y(aS,ai),(f=aS.prototype).getNumReferences=function(){return this.h?this.h.timeline.length:0},f.release=function(){ai.prototype.release.call(this),this.h=null},f.ra=function(e){if(this.h){for(var t=0,n=this.h.timeline,i=0;i<n.length;i+=1)if(n[i].end+this.j<=e)t+=1;else break;0<t&&(this.h.timeline=n.slice(t),this.g.length>=t&&(this.g=this.g.slice(t)),this.i+=t,0===this.getNumReferences()&&this.release())}},f.find=function(e){if(this.h&&this.h.timeline&&this.h.timeline.length&&e<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var t=this.h.timeline;if(e<this.j||e>=this.l)return null;for(var n=t.length-1,i=0;i<t.length;i++){var r=t[i],a=r.start+this.j;if(r=i<n?t[i+1].start+this.j:1/0===this.l?r.end+this.j:this.l,e>=a&&e<r)return i+this.i}return null},f.get=function(e){var t=this;if(0>(e-=this.i)||e>=this.getNumReferences()||!this.h)return null;var n=this.g[e];if(!n){var i=this.h.timeline[e],r=i.Vg,a=this.h.je+i.hh;n=this.j-this.h.Ma;var o=this.j+i.end,s=o;e===this.getNumReferences()-1&&1/0!==this.l&&(s=this.l);for(var u=this.h.codecs,l=this.h.mimeType,c=[],h=(i.end-i.start)/i.$c,d={},f=0;f<i.$c;d={md:void 0,tf:void 0},f++){var p=i.start+h*f,g=p+h;d.tf=f+1,d.md=null,(d=new ae(this.j+p,this.j+g,function(e){return function(){return t.h?(null==e.md&&(e.md=aA(t.h.jb,t.D,r,t.B,a,e.tf,t.C)),e.md):[]}}(d),0,null,this.s,n,this.j,this.l,[],"",null,null,at,this.A)).codecs=u,d.mimeType=l,0==this.F?0<f&&d.Pd():0!=f%this.F&&d.Pd(),c.push(d)}(n=new ae(this.j+i.start,s,function(){return 0<i.$c||!t.h?[]:aA(t.h.jb,t.D,r,t.B,a,null,t.C)},0,null,this.s,n,this.j,this.l,c,"",null,null,at,this.A,0<i.$c)).codecs=u,n.mimeType=l,n.j=o,this.g[e]=n}return n},f.Nb=function(e){ak(this);for(var t=0;t<this.getNumReferences();t++){var n=this.get(t+this.i);n&&e(n)}},f.Kc=function(){return this.H},H("shaka.media.ManifestParser",aE),aE.unregisterParserByMime=function(e){delete aI[e]},aE.registerParserByMime=function(e,t){aI[e]=t},aE.registerParserByExtension=function(){eo("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")}
1,aE.AccessibilityPurpose={sh:"visually impaired",nh:"hard of hearing"};var aI={};function aM(e,t,n){this.i=e,this.F=t,this.m=this.l=1/0,this.h=1,this.g=this.j=null,this.o=0,this.B=!0,this.I=!1,this.H=0,this.C=void 0===n||n,this.D=0,this.A=!1,this.s=e}function aD(e,t){if(this.j=e,void 0===t?0:t){t=new Uint8Array(e.byteLength);for(var n=0,i=0;i<e.byteLength;i++)2<=i&&3==e[i]&&0==e[i-1]&&0==e[i-2]||(t[n]=e[i],n++);this.j=em(t,0,n)}this.i=this.j.byteLength,this.g=this.h=0}function aR(e){var t=e.j.byteLength-e.i,n=new Uint8Array(4),i=Math.min(4,e.i);0!==i&&(n.set(e.j.subarray(t,t+i)),e.h=new i_(n,0).L(),e.g=8*i,e.i-=i)}function aP(e,t){if(e.g<=t){var n=Math.floor((t-=e.g)/8);t-=8*n,e.g-=n,aR(e)}e.h<<=t,e.g-=t}function aL(e,t){var n=Math.min(e.g,t),i=e.h>>>32-n;return e.g-=n,0<e.g?e.h<<=n:0<e.i&&aR(e),0<(n=t-n)?i<<n|aL(e,n):i}function aN(e){var t;for(t=0;t<e.g;++t)if(0!=(e.h&0x80000000>>>t))return e.h<<=t,e.g-=t,t;return aR(e),t+aN(e)}function aj(e){aP(e,1+aN(e))}function a_(e){var t=aN(e);return aL(e,t+1)-1}function aO(e){return 1===aL(e,1)}function aU(e,t){for(var n=8,i=8,r=0;r<t;r++)0!==i&&(i=(n+(1&(i=a_(e))?1+i>>>1:-1*(i>>>1))+256)%256),n=0===i?n:i}function aB(){}function aF(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]||!1}function aH(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]||!1}function aV(e,t){var n=(127&e[t])<<21;return n|=(127&e[t+1])<<14,(n|=(127&e[t+2])<<7)|127&e[t+3]}function aG(e){for(var t=0,n=[];aF(e,t);){var i=aV(e,t+6);for(e[t+5]>>6&1&&(t+=10),t+=10,i=t+i;t+10<i;){var r=e.subarray(t),a=aV(r,4);(a=function(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===e.type){if(2>e.size||3!==e.data[0])return null;var n=e.data.subarray(1).indexOf(0);if(-1===n)return null;var i=tB(em(e.data,1,n)),r=e.data[2+n],a=e.data.subarray(3+n).indexOf(0);if(-1===a)return null;var o,s=tB(em(e.data,3+n,a));return o="--\x3e"===i?tB(em(e.data,4+n+a)):eg(e.data.subarray(4+n+a)),t.mimeType=i,t.pictureType=r,t.description=s,t.data=o,t}return"TXXX"===e.type||"WXXX"===e.type?2>e.size||3!==e.data[0]||-1===(i=e.data.subarray(1).indexOf(0))?null:(n=tB(em(e.data,1,i)),e=tB(em(e.data,2+i)).replace(/\0*$/,""),t.description=n,t.data=e,t):"PRIV"===e.type?2>e.size||-1===(n=e.data.indexOf(0))?null:(t.description=n=tB(em(e.data,0,n)),"com.apple.streaming.transportStreamTimestamp"==n?(e=1&(n=e.data.subarray(n.length+1))[3],n=((n[4]<<23)+(n[5]<<15)+(n[6]<<7)+n[7])/45,e&&(n+=47721858.84),t.data=n):t.data=e=eg(e.data.subarray(n.length+1)),t):"T"===e.type[0]?2>e.size||3!==e.data[0]?null:(t.data=e=tB(e.data.subarray(1)).replace(/\0*$/,""),t):"W"===e.type[0]?(t.data=e=tB(e.data).replace(/\0*$/,""),t):e.data?(t.data=eg(e.data),t):null}(r={type:String.fromCharCode(r[0],r[1],r[2],r[3]),size:a,data:r.subarray(10,10+a)}))&&n.push(a),t+=r.size+10}aH(e,t)&&(t+=10)}return n}function aK(){this.D=null,this.F=!1,this.m=this.H=null,this.j=[],this.g=[],this.A=this.B=null,this.i=[],this.h=[],this.C=null,this.l=[],this.o=this.s=null}function aq(e,t){if(1!=(t[0]<<16|t[1]<<8|t[2]))return null;var n={data:new Uint8Array(0),packetLength:t[4]<<8|t[5],pts:null,dts:null,nalus:[]};if(n.packetLength&&n.packetLength>t.byteLength-6)return null;var i=t[7];if(192&i){var r=0x20000000*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2;null==e.s&&(e.s=r),n.pts=aW(r,e.s),e.s=n.pts,n.dts=n.pts,64&i&&(i=0x20000000*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2,null==e.o&&(e.o=i),n.dts=aW(i,e.o)),e.o=n.dts}return(e=t[8]+9,t.byteLength<=e)?null:(n.data=t.subarray(e),n)}function aW(e,t){var n=1;for(e>t&&(n=-1);0x100000000<Math.abs(t-e);)e+=0x200000000*n;return e}function az(e){return!(0>aX(e))}function aX(e){for(var t=Math.min(1e3,e.length-564),n=0;n<t;){if(71==e[n]&&71==e[n+188]&&71==e[n+376])return n;n++}return -1}(f=aM.prototype).getDuration=function(){return this.l},f.ag=function(){return this.h},f.Zg=function(e){this.i=e},f.ob=function(e){this.l=e},f.fg=function(){return this.i},f.lf=function(e){this.o=e},f.ee=function(e){e&&!this.B&&(this.I=!0),this.B=e},f.nf=function(e){this.m=e},f.Qc=function(){return this.m},f.mf=function(e){this.F=e},f.Tf=function(){return this.F},f.We=function(e,t){if(0!=e.length){var n=(Date.now()+this.o)/1e3;if(0!=(e=e.filter(function(e){return e.start+t<n}
1)).length){var i=e[e.length-1].end+t;this.Yc(e[0].start+t),this.h=e.reduce(function(e,t){return Math.max(e,t.end-t.start)},this.h),this.g=Math.max(this.g,i),null!=this.i&&this.C&&!this.A&&(this.i=n-this.g-this.h)}}},f.Sd=function(e){if(0!=e.length){var t=e[0].startTime,n=e[0].endTime,i=(Date.now()+this.o)/1e3;e=h(e);for(var r=e.next();!r.done;r=e.next())i<(r=r.value).startTime||(t=Math.min(t,r.startTime),n=Math.max(n,r.endTime),this.h=Math.max(this.h,r.endTime-r.startTime));this.Yc(t),this.g=Math.max(this.g,n),null!=this.i&&this.C&&!this.A&&(this.i=i-this.g-this.h)}},f.Ve=function(e,t){this.Yc(e),1/0==t||this.T()||(this.g=Math.max(this.g,t))},f.bg=function(){return this.g},f.Pe=function(){this.A=!0},f.zg=function(){return this.A},f.Xg=function(e){this.s=e},f.Xf=function(){return this.s},f.Yc=function(e){null==this.j?this.j=e:this.I||(this.j=Math.min(this.j,e))},f.Rd=function(e){this.h=Math.max(this.h,e)},f.offset=function(e){null!=this.j&&(this.j+=e),null!=this.g&&(this.g+=e)},f.T=function(){return 1/0==this.l&&!this.B},f.Tb=function(){return 1/0!=this.l&&!this.B},f.ib=function(){return Math.max(this.H,this.hb()-this.m)},f.rf=function(e){this.H=e},f.hb=function(){return this.T()||this.Tb()?Math.min(Math.max(0,(Date.now()+this.o)/1e3-this.h-this.i)+this.D,this.l):this.g?Math.min(this.g,this.l):this.l},f.mc=function(e){var t=Math.max(this.j,this.H);return 1/0==this.m?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.hb()-this.m+e,this.Qa()))},f.Ya=function(){return this.mc(0)},f.Qa=function(){return Math.max(0,this.hb()-(this.T()||this.Tb()?this.F:0))},f.wf=function(){return null!=this.i&&(null==this.g||!this.C)},f.kf=function(e){this.D=e},f.Qf=function(){return this.D},H("shaka.media.PresentationTimeline",aM),aM.prototype.getAvailabilityTimeOffset=aM.prototype.Qf,aM.prototype.setAvailabilityTimeOffset=aM.prototype.kf,aM.prototype.usingPresentationStartTime=aM.prototype.wf,aM.prototype.getSeekRangeEnd=aM.prototype.Qa,aM.prototype.getSeekRangeStart=aM.prototype.Ya,aM.prototype.getSafeSeekRangeStart=aM.prototype.mc,aM.prototype.getSegmentAvailabilityEnd=aM.prototype.hb,aM.prototype.setUserSeekStart=aM.prototype.rf,aM.prototype.getSegmentAvailabilityStart=aM.prototype.ib,aM.prototype.isInProgress=aM.prototype.Tb,aM.prototype.isLive=aM.prototype.T,aM.prototype.offset=aM.prototype.offset,aM.prototype.notifyMaxSegmentDuration=aM.prototype.Rd,aM.prototype.notifyMinSegmentStartTime=aM.prototype.Yc,aM.prototype.getInitialProgramDateTime=aM.prototype.Xf,aM.prototype.setInitialProgramDateTime=aM.prototype.Xg,aM.prototype.isStartTimeLocked=aM.prototype.zg,aM.prototype.lockStartTime=aM.prototype.Pe,aM.prototype.getMaxSegmentEndTime=aM.prototype.bg,aM.prototype.notifyPeriodDuration=aM.prototype.Ve,aM.prototype.notifySegments=aM.prototype.Sd,aM.prototype.notifyTimeRange=aM.prototype.We,aM.prototype.getDelay=aM.prototype.Tf,aM.prototype.setDelay=aM.prototype.mf,aM.prototype.getSegmentAvailabilityDuration=aM.prototype.Qc,aM.prototype.setSegmentAvailabilityDuration=aM.prototype.nf,aM.prototype.setStatic=aM.prototype.ee,aM.prototype.setClockOffset=aM.prototype.lf,aM.prototype.getPresentationStartTime=aM.prototype.fg,aM.prototype.setDuration=aM.prototype.ob,aM.prototype.setPresentationStartTime=aM.prototype.Zg,aM.prototype.getMaxSegmentDuration=aM.prototype.ag,aM.prototype.getDuration=aM.prototype.getDuration,H("shaka.util.ExpGolomb",aD),H("shaka.util.Id3Utils",aB),aB.getID3Data=function(e,t){for(var n=t=void 0===t?0:t,i=0;aF(e,t);)e[t+5]>>6&1&&(i+=10),i+=10,i+=aV(e,t+6),aH(e,t+10)&&(i+=10),t+=i;return 0<i?e.subarray(n,n+i):new Uint8Array([])},aB.getID3Frames=aG,(f=aK.prototype).clearData=function(){this.j=[],this.g=[],this.i=[],this.h=[],this.l=[]},f.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,aX(e)),n=e.length-(e.length+t)%188,i=!1,r=t;r<n;r+=188)if(71==e[r]){var a=!!(64&e[r+1]),o=((31&e[r+1])<<8)+e[r+2];if(1<(48&e[r+3])>>4){var s=r+5+e[r+4];if(s==r+188)continue}else s=r+4;switch(o){case 0:a&&(s+=e[s]+1),this.D=(31&e[s+10])<<8|e[s+11];break;case 17:case 8191:break;case this.D:a&&(s+=e[s]+1),o={audio:-1,video:-1,Rc:-1,audioCodec:"",videoCodec:""};var u=s+3+((15&(a=e)[s+1])<<8|a[s+2])-4;for(s+=12+((15&a[s+10])<<8|a[s+11]);s<u;
1){var l=(31&a[s+1])<<8|a[s+2],c=(15&a[s+3])<<8|a[s+4];switch(a[s]){case 6:if(0<c)for(var h=s+5,d=c;2<d;){var f=a[h+1]+2;switch(a[h]){case 5:var p=tK(a.subarray(h+2,h+f));-1==o.audio&&"Opus"===p?(o.audio=l,o.audioCodec="opus"):-1==o.video&&"AV01"===p&&(o.video=l,o.videoCodec="av1");break;case 106:-1==o.audio&&(o.audio=l,o.audioCodec="ac3");break;case 122:-1==o.audio&&(o.audio=l,o.audioCodec="ec3");break;case 124:-1==o.audio&&(o.audio=l,o.audioCodec="aac")}h+=f,d-=f}break;case 15:-1==o.audio&&(o.audio=l,o.audioCodec="aac");break;case 17:-1==o.audio&&(o.audio=l,o.audioCodec="aac-loas");break;case 21:-1==o.Rc&&(o.Rc=l);break;case 27:-1==o.video&&(o.video=l,o.videoCodec="avc");break;case 3:case 4:-1==o.audio&&(o.audio=l,o.audioCodec="mp3");break;case 36:-1==o.video&&(o.video=l,o.videoCodec="hvc");break;case 129:-1==o.audio&&(o.audio=l,o.audioCodec="ac3");break;case 132:case 135:-1==o.audio&&(o.audio=l,o.audioCodec="ec3")}s+=c+5}-1!=(a=o).video&&(this.H=a.video,this.m=a.videoCodec),-1!=a.audio&&(this.B=a.audio,this.A=a.audioCodec),-1!=a.Rc&&(this.C=a.Rc),i&&!this.F&&(i=!1,r=t-188),this.F=!0;break;case this.H:s=e.subarray(s,r+188),a?this.j.push([s]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(s);break;case this.B:s=e.subarray(s,r+188),a?this.i.push([s]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(s);break;case this.C:s=e.subarray(s,r+188),a?this.l.push([s]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(s);break;default:i=!0}}return this},f.Kg=function(e){return eo("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Vd(e)},f.Vd=function(e,t,n){var i=e.pts?e.pts/9e4:null,r=(e=e.data).byteLength,a=1;"hvc"==this.m&&(a=2);for(var o,s=n||0,u=[],l=-1,c=0,h=0;h<r;++h){var d=e[h];if(d){if(2<=s&&1==d){if(t&&!u.length&&-1==l&&(d=h-(3<s?3:s),n&&0!=d&&(d=e.subarray(0,d),t.data=tQ(t.data,d),t.fullData=tQ(t.fullData,d))),0<=l?(s=h-((3<s?3:s)+1),u.push({data:e.subarray(l+a,s+1),fullData:e.subarray(l,s+1),type:c,time:i})):t&&!u.length&&0<(l=h-s)&&(l=e.subarray(0,l),t.data=tQ(t.data,l),t.fullData=tQ(t.fullData,l)),h>=r-a)return u;l=++h,c="hvc"==this.m?e[h]>>1&63:31&e[h]}s=0}else s++;h>=r-1&&0<=l&&0<=s&&(o={data:e.subarray(l+a,r),fullData:e.subarray(l,r),type:c,time:i})}return o&&u.push(o),!u.length&&t&&(t.data=tQ(t.data,e),t.fullData=tQ(t.fullData,e)),u},f.getMetadata=function(){for(var e=[],t=h(this.l),n=t.next();!n.done;n=t.next())(n=aq(this,n=tQ.apply(tz,d(n.value))))&&e.push({cueTime:n.pts?n.pts/9e4:null,data:n.data,frames:aG(n.data),dts:n.dts,pts:n.pts});return e},f.Ee=function(){if(this.i.length&&!this.h.length){for(var e=!1,t=h(this.i),n=t.next();!n.done;n=t.next()){var i=tQ.apply(tz,d(n.value)),r=aq(this,i);n=this.h.length?this.h[this.h.length-1]:null,r&&null!=r.pts&&null!=r.dts&&(!n||n.pts!=r.pts&&n.dts!=r.dts)?(this.h.length&&r.dts<(n.dts||0)&&(e=!0),this.h.push(r)):this.h.length&&(i=r?r.data:i)&&((n=this.h.pop()).data=tQ(n.data,i),this.h.push(n))}e&&(this.h=this.h.sort(function(e,t){var n=(e.pts||0)-(t.pts||0);return(e.dts||0)-(t.dts||0)||n}))}return this.h},f.Gd=function(e){if(e=void 0===e||e,this.j.length&&!this.g.length){for(var t=!1,n=h(this.j),i=n.next();!i.done;i=n.next()){var r=tQ.apply(tz,d(i.value)),a=aq(this,r);i=this.g.length?this.g[this.g.length-1]:null,a&&null!=a.pts&&null!=a.dts&&(!i||i.pts!=a.pts&&i.dts!=a.dts)?(this.g.length&&a.dts<(i.dts||0)&&(t=!0),this.g.push(a)):this.g.length&&(r=a?a.data:r)&&((i=this.g.pop()).data=tQ(i.data,r),this.g.push(i))}if(e){for(n=[],r=(i=h(this.g)).next();!r.done;r=i.next())if((r=r.value).nalus=this.Vd(r,o,void 0),r.nalus.length){n.push(r);var o=r.nalus[r.nalus.length-1]}this.g=n}t&&(this.g=this.g.sort(function(e,t){var n=(e.pts||0)-(t.pts||0);return(e.dts||0)-(t.dts||0)||n}))}return e?this.g:(e=this.g,this.g=[],e)},f.getStartTime=function(e){if("audio"==e){e=null;var t=this.Ee();return t.length&&(e=Math.min((e=t[0]).dts,e.pts)/9e4),e}return"video"==e?(e=null,(t=this.Gd(!1)).length&&(e=Math.min((e=t[0]).dts,e.pts)/9e4),e):null},f.Sf=function(){return{audio:this.A,video:this.m}},f.Hd=function(){for(var e=[],t=h(this.Gd()),n=t.next();!n.done;n=t.next())e.push.apply(e,d(n.value.nalus));return e},f.pg=function(){eo("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var e=this.Ke();return{height:e.height,width:e.width}},f.Ke=function(){return"hvc"==this.m?function(e){var t={height:null,width:null,codec:null};if(!(e=e.Hd()).length||!(e=e.find(function(e){return 33==e.type})))return t;var n=new aD(e.fullData,!0);aL(n,8),aL(n,8),aL(n,4);var i=aL(n,3);aO(n);var r=aL(n,2),a=aL(n,1),o=aL(n,5),s=aL(n,32);e=aL(n,8);for(var u=aL(n,8),l=aL(n,8),c=aL(n,8),h=aL(n,8),d=aL(n,8),f=aL(n,8),p=[],g=[],m=0;m<i;
1m++)p.push(aO(n)),g.push(aO(n));if(0<i)for(m=i;8>m;m++)aL(n,2);for(m=0;m<i;m++)p[m]&&aL(n,88),g[m]&&aL(n,8);a_(n),3==(i=a_(n))&&aL(n,1),p=a_(n),g=a_(n);var v=m=0,y=0,b=0;return aO(n)&&(m+=a_(n),v+=a_(n),y+=a_(n),b+=a_(n)),t.width=String(p-(m+v)*(1===i||2===i?2:1)),t.height=String(g-(y+b)*(1===i?2:1)),n=function(e){for(var t=0,n=0;32>n;n++)t|=(e>>n&1)<<31-n;return t>>>0}(s),a=1==a?"H":"L",r="hvc1."+["","A","B","C"][r]+o+"."+n.toString(16).toUpperCase()+("."+a)+f,d&&(r+="."+d.toString(16).toUpperCase()),h&&(r+="."+h.toString(16).toUpperCase()),c&&(r+="."+c.toString(16).toUpperCase()),l&&(r+="."+l.toString(16).toUpperCase()),u&&(r+="."+u.toString(16).toUpperCase()),e&&(r+="."+e.toString(16).toUpperCase()),t.codec=r,t}(this):function(e){var t={height:null,width:null,codec:null};if(!(e=e.Hd()).length||!(e=e.find(function(e){return 7==e.type})))return t;var n=aL(e=new aD(e.data),8),i=aL(e,8),r=aL(e,8);if(aj(e),aY.includes(n)){var a=a_(e);if(3===a&&aP(e,1),aj(e),aj(e),aP(e,1),aO(e)){a=3!==a?8:12;for(var o=0;o<a;o++)aO(e)&&(6>o?aU(e,16):aU(e,64))}}if(aj(e),0===(a=a_(e)))a_(e);else if(1===a)for(aP(e,1),aj(e),aj(e),a=a_(e),o=0;o<a;o++)aj(e);aj(e),aP(e,1),a=a_(e),o=a_(e);var s=aL(e,1);0===s&&aP(e,1),aP(e,1);var u=0,l=0,c=0,h=0;return aO(e)&&(u=a_(e),l=a_(e),c=a_(e),h=a_(e)),t.height=String((2-s)*(o+1)*16-2*c-2*h),t.width=String(16*(a+1)-2*u-2*l),t.codec="avc1."+("0"+n.toString(16).toUpperCase()).slice(-2)+("0"+i.toString(16).toUpperCase()).slice(-2)+("0"+r.toString(16).toUpperCase()).slice(-2),t}(this)},H("shaka.util.TsParser",aK),aK.syncOffset=aX,aK.probe=az,aK.prototype.getVideoInfo=aK.prototype.Ke,aK.prototype.getVideoResolution=aK.prototype.pg,aK.prototype.getVideoNalus=aK.prototype.Hd,aK.prototype.getCodecs=aK.prototype.Sf,aK.prototype.getStartTime=aK.prototype.getStartTime,aK.prototype.getVideoData=aK.prototype.Gd,aK.prototype.getAudioData=aK.prototype.Ee,aK.prototype.getMetadata=aK.prototype.getMetadata,aK.prototype.parseNalus=aK.prototype.Vd,aK.prototype.parseAvcNalus=aK.prototype.Kg,aK.prototype.parse=aK.prototype.parse,aK.prototype.clearData=aK.prototype.clearData,aK.Timescale=9e4;var aY=[100,110,122,244,44,83,86,118,128,138,139,134];function aJ(e){this.o=null,this.A=e,this.F=new rq,this.j=[],this.h=null,this.m=[],this.B=null,this.D=[],this.C=300,this.l=new Map,this.i=new Map,this.g=null,this.s="UNKNOWN"}function a$(e,t){var n,i,r,a,o;return L(function(s){var u,l,c,h;return 1==s.g?(n=rY(t0(e.j,[function(e,t){if(!e.m.length)return t;t=new eQ(t);var n=e.B||e.m[0],i=Math.round(e.A.getBandwidthEstimate()),r=t.g;return"DASH"==e.s?(r.add("_DASH_pathway",n),r.add("_DASH_throughput",String(i))):"HLS"==e.s&&(r.add("_HLS_pathway",n),r.add("_HLS_throughput",String(i))),ti(r),r.hc&&e3(t,r),t.toString()}(e,t)]),e.o.retryParameters),i=e.A.networkingEngine.request(8,n),rW(e.F,i),k(s,2),S(s,i.promise,4)):2!=s.g?(1==(a=JSON.parse(tB((r=s.h).data))).VERSION&&(u=e,l=a,c=r.uri,null!=u.g&&(u.g.stop(),u.g=null),h=l["RELOAD-URI"]||c,u.g=new td(function(){a$(u,h)}),(c=l.TTL)&&(u.C=c),u.g.ca(u.C),u.m=l["PATHWAY-PRIORITY"]||[],u.D=l["PATHWAY-CLONES"]||[]),A(s,0)):(o=E(s))&&7001==o.code?s.return():void(null!=e.g&&(e.g.stop(),e.g=null),e.g=new td(function(){a$(e,t)}),e.g.ca(e.C),T(s))})}function aZ(e,t,n,i){var r=e.l.get(t);r||(r=new Map),r.set(n,i),e.l.set(t,r)}function aQ(e,t,n){n=void 0!==n&&n,t=e.l.get(t)||new Map;for(var i=[],r=h(e.m),a=r.next(),o={};!a.done;o={Xb:void 0},a=r.next())if(o.Xb=a.value,a=t.get(o.Xb))i.push({Wd:o.Xb,location:a});else if(a=e.D.find(function(e){return function(t){return t.oh==e.Xb}}(o))){var s=t.get(a["BASE-ID"]);s&&(a["URI-REPLACEMENT"].Af?(e1(s=new eQ(s),a["URI-REPLACEMENT"].Af),i.push({Wd:o.Xb,location:s.toString()})):i.push({Wd:o.Xb,location:s}))}for(r=Date.now(),a=(o=h(e.i.keys())).next();!a.done;a=o.next())a=a.value,r>(s=e.i.get(a))&&e.i.delete(a);if((i=i.filter(function(t){for(var n=h(e.i.keys()),i=n.next();!i.done;i=n.next())if(i.value.includes(new eQ(t.location).Wa))return!1;return!0})).length&&(e.B=i[0].Wd),!(i=i.map(function(e){return e.location})).length&&e.h)for(o=(r=h(e.h.split(","))).next();!o.done;o=r.next())(o=t.get(o.value))&&(e.B=e.h,i.push(o));
1if(!i.length)for(r=(t=h(t.values())).next();!r.done;r=t.next())i.push(r.value);return n?i:t0(e.j,i)}function a0(e,t,n,i,r){return e=rY(e,i,r),(0!=t||null!=n)&&(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function a1(){this.l=[],this.h=[],this.g=[],this.j=[],this.i=[],this.s=this.o=!1,this.m=new Set}function a2(e,t){var n=[],i=[],r=[],a=[];e=h(e);for(var o=e.next();!o.done;o=e.next()){var s=o.value;o=new Map(s.audioStreams.map(function(e){return[od(e),e]}));var u=new Map(s.videoStreams.map(function(e){return[oh(e),e]})),l=new Map(s.textStreams.map(function(e){return[of(e),e]}));if(s=new Map(s.imageStreams.map(function(e){return[op(e),e]})),t){var c=os(t5);l.set(of(c),c),c=os("image"),s.set(op(c),c)}n.push(o),i.push(u),r.push(l),a.push(s)}return{ue:n,yf:i,uf:r,Me:a}}function a3(e,t,n,i,r){var a,o,s,u,l,c,d,f,p,g,m,v,y,b;return L(function(w){switch(w.g){case 1:for(o=0,a=[];o<n.length;o++)o>=i?a.push(new Set(n[o].values())):a.push(new Set);u=(s=h(t)).next();case 2:var x,T,k,A,E,C,I;if(u.done){w.u(4);break}return S(w,(x=e,T=u.value,k=n,A=i,E=a8,C=a,I=r,L(function(e){return 1==e.g?(a7(x,k,T,0<I),T.matchedStreams?T.segmentIndex?S(e,a4(T,A+I),2):e.u(2):e.return(!1)):(a5(T,A,E,C,I),e.return(!0))})),5);case 5:if(!w.h)throw new tr(2,4,4037);u=s.next(),w.u(2);break;case 4:for(c=(l=h(a)).next();!c.done;c=l.next())for(f=(d=h(c.value)).next();!f.done;f=d.next())(p=function(e,t,n,i,r,a){if(oc(t))return null;var o=i(t);return(a7(e,n,o),o.createSegmentIndex&&(o.createSegmentIndex=function(){return L(function(e){return o.segmentIndex?e.u(0):(o.segmentIndex=new ao,S(e,a4(o,0),0))})}),o.matchedStreams&&o.matchedStreams.length)?(a5(o,0,r,a,0),o):null}(e,f.value,n,a6,a8,a))&&t.push(p);for(m=(g=h(a)).next();!m.done;m=g.next())for(y=(v=h(m.value)).next(),b={};!y.done;b={fe:void 0},y=v.next())if(b.fe=y.value,!oc(b.fe)&&t.some(function(t){return function(n){return oe(e,t.fe,n)}}(b)))throw new tr(2,4,4037);return w.return(t)}})}function a4(e,t){var n,i,r,a,o,s;return L(function(u){if(1==u.g){for(n=[],i=e.matchedStreams,r=t;r<i.length;r++)a=i[r],n.push(a.createSegmentIndex()),a.trickModeVideo&&!a.trickModeVideo.segmentIndex&&n.push(a.trickModeVideo.createSegmentIndex());return S(u,Promise.all(n),2)}if(e.segmentIndex instanceof ao)for(o=t;o<i.length;o++)(s=i[o]).segmentIndex&&e.segmentIndex.h.push(s.segmentIndex);T(u)})}function a5(e,t,n,i,r){var a=e.matchedStreams;for(t+=r;t<a.length;t++){var o=a[t];n(e,o);var s=!0;if("audio"==e.type&&0==nk(e.language,o.language)&&(s=!1),s&&(i[t-r].delete(o),o.fullMimeTypes))for(s=(o=h(o.fullMimeTypes.values())).next();!s.done;s=o.next())e.fullMimeTypes.add(s.value)}}function a6(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=h(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.roles=t.roles.slice(),t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=e.closedCaptions?new Map(e.closedCaptions):null,t.trickModeVideo=null,t}function a8(e,t){function n(e,t){e||(e=[]),t=h(t);for(var n=t.next();!n.done;n=t.next())n=n.value,e.includes(n)||e.push(n);return e}e.roles=n(e.roles,t.roles),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=n(e.emsgSchemeIdUris,t.emsgSchemeIdUris));for(var i=h(t.keyIds),r=i.next();!r.done;r=i.next())e.keyIds.add(r.value);if(null==e.originalId?e.originalId=t.originalId:(i=t.originalId||"")&&!e.originalId.endsWith(i)&&(e.originalId+=","+i),i=ts(e.drmInfos,t.drmInfos),t.drmInfos.length&&e.drmInfos.length&&!i.length)throw new tr(2,4,4038);if(e.drmInfos=i,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),r=(i=h(t.closedCaptions)).next();!r.done;r=i.next()){var a=h(r.value);r=a.next().value,a=a.next().value,e.closedCaptions.set(r,a)}e.bandwidth&&t.bandwidth&&(e.bandwidth=Math.max(e.bandwidth,t.bandwidth)),t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=a6(t.trickModeVideo),e.trickModeVideo.matchedStreams=[],e.trickModeVideo.createSegmentIndex=function(){if(e.trickModeVideo.segmentIndex)return Promise.resolve();for(var t=new ao,n=h(e.trickModeVideo.matchedStreams),i=n.next();!i.done;i=n.next())t.h.push(i.value.segmentIndex);return e.trickModeVideo.segmentIndex=t,Promise.resolve()}),e.trickModeVideo.matchedStreams.push(t.trickModeVideo),a8(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&(e.trickModeVideo.matchedStreams.push(t),a8(e.trickModeVideo,t))}function a7(e,t,n,i){i=(void 0===i?0:i)?n.matchedStreams:[],t=h(t);for(var r=t.next();!r.done;r=t.next()){if(!(r=function(e,t,n){var i={audio:od,video:oh,text:of,image:op}[n.type],r=null,a=i(n);if(t.has(a))r=t.get(a);else{a=({audio:function(t,n){return oe(e,t,n)},video:function(t,n){return oe(e,t,n)},text:ot,image:on})[n.type];for(var o={audio:oi,video:or,text:oa,image:oo}[n.type],s=h(t.values()),u=s.next();!u.done;u=s.next())a(n,u=u.value)&&n.fastSwitching==u.fastSwitching&&(!r||o(n,r,u))&&(r=u)}return e.s&&!oc(r)&&t.delete(i(r)),r}(e,r.value,n)))return;i.push(r)}n.matchedStreams=i}function a9(e,t){return e.mimeType==t.mimeType&&og(e.codecs)===og(t.codecs)}function oe(e,t,n){return!(e=!a9(t,n)&&!e.o)&&(e=t.drmInfos)&&(t=t.drmInfos,n=n.drmInfos,e=!(t.length&&n.length&&t!==n?0<ts(t,
1n).length:1)),!e}function ot(e,t){return!t.language||e.forced===t.forced&&0!=nk(e.language,t.language)&&t.kind==e.kind}function on(){return!0}function oi(e,t,n){var i=a9(e,t),r=a9(e,n);if(i&&!r)return!1;if(!i&&r||(i=nk(e.language,t.language),(r=nk(e.language,n.language))>i))return!0;if(r<i)return!1;if(t.label!==n.label){if(e.label===t.label)return!1;if(e.label===n.label)return!0}if(e.roles.length){if(i=t.roles.filter(function(t){return e.roles.includes(t)}),(r=n.roles.filter(function(t){return e.roles.includes(t)})).length>i.length)return!0;if(r.length<i.length)return!1;if(n.roles.length!==t.roles.length)return n.roles.length<t.roles.length}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return!t.primary&&!!n.primary||(!t.primary||!!n.primary)&&((i=ou(e.channelsCount,t.channelsCount,n.channelsCount))==om||i!=oy&&((i=ou(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==om||i!=oy&&!!e.bandwidth&&ol(e.bandwidth,t.bandwidth,n.bandwidth)==om))}function or(e,t,n){var i=a9(e,t),r=a9(e,n);if(i&&!r)return!1;if(!i&&r||(i=ou(e.width*e.height,t.width*t.height,n.width*n.height))==om)return!0;if(i==oy)return!1;if(e.frameRate){if((i=ou(e.frameRate,t.frameRate,n.frameRate))==om)return!0;if(i==oy)return!1}return!!e.bandwidth&&ol(e.bandwidth,t.bandwidth,n.bandwidth)==om}function oa(e,t,n){var i=nk(e.language,t.language),r=nk(e.language,n.language);if(r>i)return!0;if(r<i)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(t.label!==n.label){if(e.label===t.label)return!1;if(e.label===n.label)return!0}if(e.roles.length){if(i=t.roles.filter(function(t){return e.roles.includes(t)}),(r=n.roles.filter(function(t){return e.roles.includes(t)})).length>i.length)return!0;if(r.length<i.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function oo(e,t,n){return ou(e.width*e.height,t.width*t.height,n.width*n.height)==om}function os(e){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ai([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set}}function ou(e,t,n){if(t==e&&e!=n)return oy;if(n==e&&e!=t)return om;if(t>e){if(n<=e||n-e<t-e)return om;if(n-e>t-e)return oy}else{if(n>e)return oy;if(e-n<e-t)return om;if(e-n>e-t)return oy}return ov}function ol(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?om:t<e?oy:ov}function oc(e){switch(e.type){case t5:return!e.language;case"image":return!e.tilesLayout;default:return!1}}function oh(e){return JSON.stringify([e.fastSwitching,e.width,e.frameRate,og(e.codecs),e.mimeType,e.label,e.roles,e.closedCaptions?Array.from(e.closedCaptions.entries()):null,e.bandwidth])}function od(e){return JSON.stringify([e.fastSwitching,e.channelsCount,e.language,e.bandwidth,e.label,og(e.codecs),e.mimeType,e.roles,e.audioSamplingRate,e.primary])}function of(e){return JSON.stringify([e.language,e.label,e.codecs,e.mimeType,e.bandwidth,e.roles])}function op(e){return JSON.stringify([e.width,e.codecs,e.mimeType])}function og(e){if(!ob.has(e)){var t=nr(e);ob.set(e,t)}return ob.get(e)}aJ.prototype.configure=function(e){this.o=e},aJ.prototype.destroy=function(){return this.A=this.o=null,this.j=[],this.h=null,this.m=[],this.D=[],this.l.clear(),null!=this.g&&(this.g.stop(),this.g=null),this.F.destroy()},aJ.prototype.setManifestType=function(e){this.s=e},aJ.prototype.banLocation=function(e){this.i.set(e,Date.now()+6e4)},(f=a1.prototype).release=function(){for(var e=h(this.h.concat(this.g,this.j,this.i)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.h=[],this.g=[],this.j=[],this.i=[],this.l=[],this.s=this.o=!1,this.m.clear()},f.og=function(){return this.l},f.Fd=function(){return this.j.slice()},f.Vf=function(){return this.i},f.ye=function(e,t){if(e){if("audio"==e.type)for(var n=h(this.h),i=n.next();!i.done;i=n.next())(i=i.value).matchedStreams=i.matchedStreams.filter(function(t){return t!==e});else if("video"==e.type)for(i=(n=h(this.g)).next();!i.done;i=n.next())(i=i.value).matchedStreams=i.matchedStreams.filter(function(t){return t!==e}),i.trickModeVideo&&(i.trickModeVideo.matchedStreams=i.trickModeVideo.matchedStreams.filter(function(t){return t!==e}));else if(e.type==t5)for(i=(n=h(this.j)).next();!i.done;i=n.next())(i=i.value).matchedStreams=i.matchedStreams.filter(function(t){return t!==e});else if("image"==e.type)for(i=(n=h(this.i)).next();!i.done;i=n.next())(i=i.value).matchedStreams=i.matchedStreams.filter(function(t){return t!==e});e.segmentIndex&&e.closeSegmentIndex(),this.m.delete(t)}},f.ud=function(e,t,n){n=void 0!==n&&n;var i,r,a,o,s,u,l,c,d,f,p,g,m,v,y,b,w,x,k,A,E,C,I,M,D,R,P,N,j,_=this;return L(function(L){if(1==L.g){if(i=t6,!t&&1==e.length)return a=(r=a2(e,!1)).ue,o=r.yf,s=r.uf,u=r.Me,_.h=Array.from(a[0].values()),_.g=Array.from(o[0].values()),_.j=Array.from(s[0].values()),_.i=Array.from(u[0].values()),L.u(2);for(l=n?_.m.size:0,c=-1,d=0;d<e.length;d++)f=e[d],_.m.has(f.id)||(_.m.add(f.id),-1==c&&(c=d));return -1==c?L.return():(g=(p=a2(e,!0)).ue,m=p.yf,v=p.uf,y=p.Me,S(L,Promise.all([a3(_,_.h,g,c,l),a3(_,_.g,m,c,l),a3(_,_.j,v,c,l),a3(_,_.i,y,c,l)]),2))}if(b=0,w=[],_.g.length&&_.h.length)for(I=(C=h(_.h)).next();!I.done;I=C.next())for(M=I.value,R=(D=h(_.g)).next();!R.done;R=D.next())P=R.value,N=ts(M.drmInfos,P.drmInfos),M.drmInfos.length&&P.drmInfos.length&&!N.length||(j=b++,w.push({id:j,language:M.language,disabledUntilTime:0,primary:M.primary,audio:M,video:P,bandwidth:(M.bandwidth||0)+(P.bandwidth||0),drmInfos:N,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(k=(x=h(_.g.length?_.g:_.h)).next();!k.done;k=x.next())A=k.value,E=b++,w.push({id:E,language:A.language,disabledUntilTime:0,primary:A.primary,audio:A.type==i.U?A:null,video:A.type==i.ga?A:null,bandwidth:A.bandwidth||0,drmInfos:A.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});_.l=w,T(L)})},f.jf=function(e){this.o=e},f.qf=function(e){this.s=e},H("shaka.util.PeriodCombiner",a1),a1.prototype.setUseStreamOnce=a1.prototype.qf,a1.prototype.setAllowMultiT
1ypeVariants=a1.prototype.jf,a1.prototype.combinePeriods=a1.prototype.ud,a1.prototype.deleteStream=a1.prototype.ye,a1.prototype.getImageStreams=a1.prototype.Vf,a1.prototype.getTextStreams=a1.prototype.Fd,a1.prototype.getVariants=a1.prototype.og;var om=1,ov=0,oy=-1,ob=new Map;function ow(){}function ox(e,t,n,i,r){var a,o=r in i,s=o?n.constructor==Object&&0==Object.keys(i).length:n.constructor==Object&&0==Object.keys(n).length,u=o||s,l=!0;for(a in t){var c=r+"."+a,h=o?i[r]:n[a];u||a in n?void 0===t[a]?void 0===h||u?delete e[a]:e[a]=nM(h):s?e[a]=t[a]:h.constructor==Object&&t[a]&&t[a].constructor==Object?(e[a]||(e[a]=nM(h)),c=ox(e[a],t[a],h,i,c),l=l&&c):typeof t[a]!=typeof h||null==t[a]||"function"!=typeof t[a]&&t[a].constructor!=h.constructor?(X("Invalid config, wrong type for "+c),l=!1):("function"==typeof n[a]&&n[a].length!=t[a].length&&Y("Unexpected number of arguments for "+c),e[a]=t[a]):(X("Invalid config, unrecognized key "+c),l=!1)}return l}function oS(e,t){for(var n={},i=n,r=0,a=0;!(0>(r=e.indexOf(".",r)));)(0==r||"\\"!=e[r-1])&&(i[a=e.substring(a,r).replace(/\\\./g,".")]={},i=i[a],a=r+1),r+=1;return i[e.substring(a).replace(/\\\./g,".")]=t,n}function oT(e,t){function n(e){return Array.isArray(e)&&0===e.length}function i(e){return e&&"object"==typeof e&&!Array.isArray(e)}return!function e(t){for(var r=h(Object.keys(t)),a=r.next();!a.done;a=r.next())i(t[a=a.value])&&0===Object.keys(t[a]).length||n(t[a])||"function"==typeof t[a]?delete t[a]:i(t[a])&&(e(t[a]),0===Object.keys(t[a]).length&&delete t[a])}(e=function e(t,r){return Object.keys(t).reduce(function(a,o){var s=t[o];return r.hasOwnProperty(o)?i(s)&&i(r[o])?(0<Object.keys(s=e(s,r[o])).length||!i(s))&&(a[o]=s):n(s)&&n(r[o])||Number.isNaN(s)&&Number.isNaN(r[o])||s!==r[o]&&(a[o]=s):a[o]=s,a},{})}(e,t)),e}function ok(){}function oA(e){return new eQ(e=tH(e)).Wa}function oE(e,t,n){function i(e){ey(a).setUint32(o,e.byteLength,!0),o+=4,a.set(em(e),o),o+=e.byteLength}if(!n||!n.byteLength)throw new tr(2,6,6015);var r="string"==typeof t?tG(t,!0):t,a=new Uint8Array(12+(e=tG(e=tH(e),!0)).byteLength+r.byteLength+n.byteLength),o=0;return i(e),i(r),i(n),a}function oC(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,n=tH(e).split("skd://").pop(),oE(e,n,t))}function oI(e,t){2===e&&(t.headers["Content-Type"]="application/octet-stream")}function oM(){}function oD(){var t=1/0;navigator.connection&&navigator.connection.saveData&&(t=360);var n={retryParameters:rj(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(e,t,n){return tN()&&"skd"==t&&(t=n.serverCertificate,n=oA(e),e=oE(e,n,t)),e},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:tm(),minHdcpVersion:"",ignoreDuplicateInitData:!tP("Tizen 2"),additionalRestrictedStatuses:[]};(tm()||tA())&&n.preferredKeySystems.push("com.microsoft.playready");var i="reload",r=!1;tv()||!(!tx()||tx()&&tR()||tx()&&tP("Fuchsia"))||tD()&&tg()||(i="smooth",r=!0),r={retryParameters:rj(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,overrideDolbyVisionCodecs:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"},manifestPreprocessor:oP,manifestPreprocessorTXml:oL,sequenceMode:!1,enableAudioGroups:!1,multiTypeVariantsAllowed:r,useStreamOnceInPeriodFlattening:!1,updatePeriod:-1,enableFastSwitching:!0}
1,hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3,sequenceMode:!(ty()||tP("Tizen 2")||tw()&&38===tS()||tA()),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,restrictedManifestParsing:!1},mss:{manifestPreprocessor:oP,manifestPreprocessorTXml:oL,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}};var a={additionalHdcpCheck:tg(),retryParameters:rj(),failureCallback:function(e){},rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:.01,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTP:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1,segmentPrefetchLimit:0,prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5,infiniteLiveStreamDuration:!1,preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:tA()||tk(),dontChooseCodecs:!1,shouldFixTimestampOffset:tw()||tv()};(tw()||tv()||tx()||tE())&&(a.stallSkip=0),tv()&&(a.gapPadding=2);var o={trackSelectionCallback:function(e){return L(function(t){return t.return(e)})},downloadSizeCallback:function(e){var t;return L(function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?S(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))})},progressCallback:function(e,t){},usePersistentLicense:!0,numberOfParallelDownloads:5};t={enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,forceLowestRateOnTimeout:!1,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:t,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:20,minTimeToSwitch:.5*!!tT()},i={codecSwitchingStrategy:i,addExtraFeaturesToSourceBuffer:function(e){return""},forceTransmux:!1,insertFakeEncryptionInInit:!0,modifyCueCallback:function(e,t){}};var s=!1,u=!1,l=!0;(tv()||tw()||tm()||tA()||tk()||tP("AFT")||tP("PC=EOS")||tP("PC=APL")||tP("VirginMedia")||tC()||tP("WPE")||tx()||tE()||tP("DT_STB_BCM")||tP("PC=APPSTB")||tI()||tb())&&(u=s=!0,l=!1);var c={drm:n,manifest:r,streaming:a,mediaSource:i,offline:o,abrFactory:function(){return new n2},abr:t,autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayer:{captionsUpdatePeriod:.25},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:s,skipPlayDetection:u,supportsMultipleMediaElements:l},restrictVariantsByBandwidth:!1};return o.trackSelectionCallback=function(t){return L(function(n){return n.return(function(t,n,i){var r=i;"AUTO"==r&&(r=e.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");var a=t.filter(function(e){return"variant"==e.type&&(!e.hdr||e.hdr==r)});i=[];var o=nC(n,a.map(function(e){return e.language}));o&&(i=a.filter(function(e){return nT(e.language)==o})),0==i.length&&(i=a.filter(function(e){return e.primary})),0==i.length&&(a.map(function(e){return e.language}),i=a);var s=i.filter(function(e){return e.height&&480>
1=e.height});for(s.length&&(s.sort(function(e,t){return t.height-e.height}),i=s.filter(function(e){return e.height==s[0].height})),n=[],i.length&&(a=Math.floor(i.length/2),i.sort(function(e,t){return e.bandwidth-t.bandwidth}),n.push(i[a])),i=(t=h(t)).next();!i.done;i=t.next())(i=i.value).type!=t5&&"image"!=i.type||n.push(i);return n}(t,c.preferredAudioLanguage,c.preferredVideoHdrLevel))})},c}function oR(e,t,n){var i={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return ox(e,t,n||oD(),i,"")}function oP(e){var t,n;return t=[e],n=e,t&&n}function oL(e){var t,n;return t=[e],n=e,t&&n}H("shaka.util.ConfigUtils",ow),ow.getDifferenceFromConfigObjects=oT,ow.convertToConfigObject=oS,ow.mergeConfigObjects=ox,H("shaka.util.FairPlayUtils",ok),ok.commonFairPlayResponse=function(e,t){if(2===e){try{var n=tB(t.data)}catch(e){return}e=!1,"<ckc>"===(n=n.trim()).substr(0,5)&&"</ckc>"===n.substr(-6)&&(n=n.slice(5,-6),e=!0);try{var i=JSON.parse(n);i.ckc&&(n=i.ckc,e=!0),i.CkcMessage&&(n=i.CkcMessage,e=!0),i.License&&(n=i.License,e=!0)}catch(e){}e&&(t.data=eg(tJ(n)))}},ok.expressplayFairPlayRequest=function(e,t){oI(e,t)},ok.conaxFairPlayRequest=function(e,t){oI(e,t)},ok.ezdrmFairPlayRequest=function(e,t){oI(e,t)},ok.verimatrixFairPlayRequest=function(e,t){2===e&&(e=tY(e=em(t.body)),t.headers["Content-Type"]="application/x-www-form-urlencoded",t.body=tV("spc="+e))},ok.expressplayInitDataTransform=function(e,t,n){return oC(e,t,n)},ok.conaxInitDataTransform=function(t,n,i){if("skd"!==n)return t;n=i.serverCertificate,i=tH(t).split("skd://").pop().split("?").shift();var r=new ArrayBuffer(2*(i=e.atob(i)).length);r=ev(r);for(var a=0,o=i.length;a<o;a++)r[a]=i.charCodeAt(a);return oE(t,r,n)},ok.ezdrmInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,n=tH(e).split(";").pop(),oE(e,n,t))},ok.verimatrixInitDataTransform=function(e,t,n){return oC(e,t,n)},ok.initDataTransform=oE,ok.defaultGetContentId=oA,ok.isFairPlaySupported=function(){var e;return L(function(t){return 1==t.g?(e={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},k(t,2),S(t,navigator.requestMediaKeySystemAccess("com.apple.fps",[e]),4)):2!=t.g?t.return(!0):(E(t),t.return(!1))})},H("shaka.util.PlayerConfiguration",oM),oM.mergeConfigObjects=oR,oM.createDefault=oD;var oN=new to(function(){if("u">typeof trustedTypes){var e=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(e){return e}});return function(t){return e.createHTML(t)}}return function(e){return e}});function oj(){var e=this;this.j=this.g=null,this.A=[],this.h=null,this.ka=1,this.D=[],this.l={Xc:"",type:"",profiles:[],Za:null,Ca:0,va:null,Bc:0},this.s=new Map,this.K=new Map,this.o={},this.B={},this.fa={},this.m=new a1,this.S=0,this.ja=new K(5),this.I=new td(function(){e.H&&!e.g.continueLoadingWhenPaused&&(e.F.qb(e.H,"timeupdate"),e.H.paused)?e.F.ma(e.H,"timeupdate",function(){return oG(e)}):oG(e)}),this.W=new rq,this.N=null,this.C=[],this.Y=1/0,this.P=!1,this.i=null,this.M=0,this.ba=!1,this.F=new Q,this.H=null,this.ea=!1,this.X=[]}function o_(e){var t,n,i,r,a,o,s,u,l,c,f,p;return L(function(g){if(1==g.g)return t=4,n="MPD",i=function(e){var t=e.l.Bc;if(!e.l.Xc||!t||!e.D.length)return[];var n=Date.now()/1e3,i=e.D.filter(function(e){return!(e=ry(e.attributes.ttl))||t+e>n}).map(ro).filter(ny);return i.length?t0(e.A,i):[]}(e),r=e.A,i.length?(r=i,n="Patch",t=6):1<e.A.length&&e.i&&(a=aQ(e.i,"Location",!0)).length&&(r=a),o=rY(r,e.g.retryParameters),s=Date.now()/1e3,S(g,oY(e,o,0,{type:t}),2);if(3!=g.g){var m,v,y,b,w,x,k,A,E,C,I,M;return(u=g.h,l=Date.now()/1e3,e.j)?(u.uri&&u.uri!=u.originalUri&&!e.A.includes(u.uri)&&e.A.unshift(u.uri),c=Date.now()/1e3,S(g,(m=e,v=u.data,y=u.uri,b=n,L(function(e){if(1==e.g){if(w=v,(x=m.g.dash.manifestPreprocessor)!=oP){eo("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");var t,n,i,r,a,o,s,u,l,c,f,p,g,D,R,P,N,j,_,O,U,B,F,H,V,G=w;try{var K=tH(G),q=function(e,t){var n=new DOMParser,i=oN.value()(e);e=null;try{e=n.parseFromString(i,"text/xml")}catch(e){return null}if(!(n=e.documentElement)||n.getElementsByTagName("parsererror").length||n.tagName!=t)return null;if(!("createNodeIterator"in document))return n;for(t=document.createNodeIterator(e,NodeFilter.SHOW_ALL);e=t.nextNode();)if(e instanceof HTMLElement||e instanceof SVGElement)return null;return n}(K,b)}catch(e){q=null}if(!(k=q))throw new tr(2,4,4001,y);x(k),w=tV(k.outerHTML)}if(!(A=re(w,b)))throw new tr(2,4,4001,y);return((E=m.g.dash.manifestPreprocessorTXml)!=oL&&E(A),"Patch"===b)?e.return((t=m,n=A,L(function(e){if(1==e.g){if(i=n.attributes.mpdId,r=rc(n,"originalPublishTime",rf),!i||i!==t.l.Xc||r!==t.l.Bc)throw t.D=[],new tr(1,4,4052);for(a=[],o=[],s=new Set,l=(u=h(ri(n))).next();!l.done;l=u.next())if(p=(f=rS((c=l.value).attributes.sel||""))[f.length-1],g=ro(c)||"","MPD"===p.name)if("mediaPresentationDuration"===p.gb){var m=rp(ro(c)||"");if(null!=m){t.l.Za=m;for(var v=h(t.s.values()),y=v.next();!y.done;y=v.next())y.value.Za=m}}else if("type"===p.gb){for(t.h.presentationTimeline.ee("static"==g),t.l.type=g,v=(m=h(t.s.values())
1).next();!v.done;v=m.next())v.value.Oa="dynamic"==g;"static"==g&&(t.S=-1)}else"publishTime"===p.gb?t.l.Bc=rf(g)||0:null===p.gb&&"add"===c.tagName&&o.push(c);else if("PatchLocation"===p.name)rT(t.D,c);else if("Period"===p.name)"add"===c.tagName?o.push(c):"remove"===c.tagName&&p.id&&function(e,t){e.h.periodCount--;for(var n=h(e.s.keys()),i=n.next();!i.done;i=n.next())(i=i.value).startsWith(t)&&(r6(e.s.get(i),ax,"SegmentTimeline").children=[],oF(e,i),e.s.delete(i));e.C=e.C.filter(function(e){return e!==t})}(t,p.id);else if("SegmentTemplate"===p.name){if((m=(v=rS(c.attributes.sel||""))[v.length-1]).gb){v=oB(t,v),y=ro(c)||"";for(var b=h(v),w=b.next();!w.done;w=b.next())rA((w=t.s.get(w.value)).G.nb,c.tagName,m.gb,y);m=v}else m=[];for(R=(D=h(m)).next();!R.done;R=D.next())P=R.value,s.add(P)}else if("SegmentTimeline"===p.name||"S"===p.name){for(y=(v=h(m=oB(t,m=rS(c.attributes.sel||"")))).next();!y.done;y=v.next())rT(b=rr(y=r6(y=t.s.get(y.value),ax,"SegmentTimeline"),"S"),c),y.children=b;for(j=(N=h(m)).next();!j.done;j=N.next())_=j.value,s.add(_)}for(U=(O=h(s)).next();!U.done;U=O.next())oF(t,U.value);for(F=(B=h(o)).next();!F.done;F=B.next())H=F.value,a.push.apply(a,d(oH(t,{Oa:"dynamic"==t.l.type,presentationTimeline:t.h.presentationTimeline,Z:null,aa:null,$:null,G:null,bandwidth:0,Id:!1,Ca:t.l.Ca,profiles:t.l.profiles,Za:t.l.Za,roles:null},t.l.va,H,!0).periods));return a.length?(t.h.periodCount+=a.length,t.h.gapCount=t.M,S(e,oU(t,a,!0),2)):e.u(2)}"static"==t.l.type&&(V=t.l.Za,t.h.presentationTimeline.ob(V||1/0)),T(e)}))):m.g.dash.disableXlinkProcessing?e.return(oO(m,A,y)):(C=m.g.dash.xlinkFailGracefully,I=r8(A,m.g.retryParameters,C,y,m.j.networkingEngine),rW(m.W,I),S(e,I.promise,2))}return M=e.h,e.return(oO(m,M,y))})),3)):g.return(0)}return p=(f=Date.now()/1e3)-s,e.h.manifestDownloadTimeSeconds=l-s,e.h.manifestParseTimeSeconds=f-c,e.ja.sample(1,p),g.return(p)})}function oO(e,t,n){var i,r,a,o,s,u,l,c,d,f,p,g,m,v,y,b,w,x,C,I,M,D,R,P,N,j,_,O,U,B,F,H,V,G,K,q,W,z,X,J,$,Z,Q,ee,et,en,ei,er,ea,eo;return L(function(es){switch(es.g){case 1:for(e.i&&e.i.l.clear(),i=[n],r=[],a=new Map,s=(o=h(rr(t,"Location"))).next();!s.done;s=o.next())l=(u=s.value).attributes.serviceLocation,(c=ro(u))&&(d=t0(i,[c])[0],l&&(e.i?aZ(e.i,"Location",l,d):a.set(l,d)),r.push(d));if(e.i?0<(f=aQ(e.i,"Location",!0)).length&&(i=e.A=f):r.length&&(i=e.A=r),e.l.Xc=t.attributes.id||"",e.l.Bc=rc(t,"publishTime",rf)||0,e.D=rr(t,"PatchLocation"),p=Promise.resolve(),(g=ru(t,"ContentSteering"))&&e.j)for(m=g.attributes.defaultServiceLocation,e.i?(e.i.j=i,e.i.h=m):(e.i=new aJ(e.j),e.i.configure(e.g),e.i.setManifestType("DASH"),e.i.j=i,e.i.h=m,(v=ro(g))&&(rc(g,"queryBeforeStart",rw,!1)?p=a$(e.i,v):a$(e.i,v))),b=(y=h(a.keys())).next();!b.done;b=y.next())w=b.value,x=a.get(w),aZ(e.i,"Location",w,x);if(C=rr(t,"BaseURL"),I=!1,e.i)for(D=(M=h(C)).next();!D.done;D=M.next())P=(R=D.value).attributes.serviceLocation,N=ro(R),P&&N&&(aZ(e.i,"BaseURL",P,N),I=!0);if(e.X=null,I&&e.i||(j=C.map(ro),e.X=t0(i,j)),_=function(){return e.i&&I?aQ(e.i,"BaseURL"):e.X?e.X:[]},e.l.va=_,O=0,C&&C.length&&(O=rc(C[0],"availabilityTimeOffset",rb)||0),e.l.Ca=O,U=e.g.dash.ignoreMinBufferTime,B=0,U||(B=rc(t,"minBufferTime",rp)||0),e.S=rc(t,"minimumUpdatePeriod",rp,-1),F=rc(t,"availabilityStartTime",rf),H=rc(t,"timeShiftBufferDepth",rp),V=e.g.dash.ignoreSuggestedPresentationDelay,G=null,V||(G=rc(t,"suggestedPresentationDelay",rp)),K=e.g.dash.ignoreMaxSegmentDuration,q=null,K||(q=rc(t,"maxSegmentDuration",rp)),W=t.attributes.type||"static",e.h&&e.h.presentationTimeline&&(e.ea=e.h.presentationTimeline.T()&&"static"==W),e.l.type=W,function(e){var t=Object.keys(e.B).filter(function(t){return!e.C.includes(t)});t=h(t);for(var n=t.next();!n.done;n=t.next()){n=n.value;for(var i=h(e.B[n]),r=i.next();!r.done;r=i.next())r=r.value,e.m&&e.m.ye(e.o[r],n),delete e.o[r];delete e.B[n]}}(e),e.h)for(z=e.h.presentationTimeline,J=(X=h(Object.values(e.o))).next();!J.done;J=X.next())($=J.value).segmentIndex&&$.segmentIndex.ra(z.ib());else Z=e.g.defaultPresentationDelay||1.5*B,z=new aM(F,null!=G?G:Z,e.g.dash.autoCorrectDrift);return z.ee("static"==W),z.T()&&!isNaN(e.g.availabilityWindowOverride)&&(H=e.g.availabilityWindowOverride),null==H&&(H=1/0),z.nf(H),Q=t.attributes.profiles||"",e.l.profiles=Q.split(","),ee={Oa:"static"!=W,presentationTimeline:z,Z:null,aa:null,$:null,G:null,bandwidth:0,Id:!1,Ca:O,Za:null,profiles:Q.split(","),roles:null},e.M=0,en=(et=oH(e,ee,_,t,!1)).duration,ei=et.periods,("static"!=W||e.ea)&&et.Be||z.ob(en||1/0),e.ba&&!e.P&&e.j.isAutoLowLatencyMode()&&(e.j.enableLowLatencyMode(),e.P=e.j.isLowLatencyMode()),e.P&&z.kf(e.Y),z.Rd(q||1),S(es,p,2);case 2:if(e.P&&(B=0,er=null!=G?G:e.g.defaultPresentationDelay,z.mf(er)),!e.h)return S(es,e.m.ud(ei,ee.Oa),6);return e.h.periodCount=ei.length,e.h.gapCount=e.M,S(es,oU(e,ei,!1),4);case 6:var eu,el,ec,eh,ed,ef,ep,eg,em,ev,ey;if(e.h={presentationTimeline:z,variants:e.m.l,textStreams:e.m.Fd(),imageStreams:e.m.i,offlineSessionIds:[],minBufferTime:B||0,sequenceMode:e.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:function(e){var t=ru(e,"ServiceDescription");if(!t||(e=ru(t,"Latency"),t=ru(t,"PlaybackRate"),!e&&!t))return null;var n={};return e&&("target"in e.attributes&&(n.targetLatency=parseInt(e.attributes.target,10)/1e3),"max"in e.attributes&&(n.maxLatency=parseInt(e.attributes.max,10)/1e3),"min"in e.attributes&&(n.minLatency=parseInt(e.attributes.min,10)/1e3)),t&&("max"in t.attributes&&(n.maxPlaybackRate=parseFloat(t.attributes.max)),"min"in t.attributes&&(n.minPlaybackRate=parseFloat(t.attributes.min))),n}(t),nextUrl:function(e){if(!(e=rr(e,"SupplementalProperty")).length)return null;e=h(e);for(var t=e.next();!t.done;t=e.next())if("urn:mpeg:dash:chaining:2016"==(t=t.value).attributes.schemeIdUri)return t.attributes.value;return null}(t),periodCount:ei.length,gapCount:e.M,isLowLatency:e.ba,lowestVideoBitrate:0,manifestDownloadTimeSeconds:NaN,manifestParseTimeSeconds:NaN},!z.wf()){es.u(7);break}return ea=rr(t,"UTCTiming"),S(es,(eu=e,el=_,ec=ea,L(function(e){switch(e.g){case 1:eh=ec.map(function(e){return{scheme:e.attributes.schemeIdUri,value:e.attributes.value}}),ed=eu.g.dash.clockSyncUri,!eh.length&&ed&&eh.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:ed}),ep=(ef=h(eh)).next();case 2:if(ep.done){e.u(4);break}switch(eg=ep.value,k(e,5),em=eg.scheme,ev=eg.value,em){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return e.u(7);case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":return e.u(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return ey=Date.parse(ev),e.return(isNaN(ey)?0:ey-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":Y("NTP UTCTiming scheme is not supported");break;default:Y("Unrecognized scheme in UTCTiming element",em)}e.u(9);break;case 7:return S(e,oW(eu,el,ev,"HEAD"),10);case 10:case 11:return e.return(e.h);case 8:return S(e,oW(eu,el,ev,"GET"),11);case 9:A(e,3);break;case 5:E(e);case 3:ep=ef.next(),e.u(2);break;case 4:return Y("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),e.return(0)}})),8);case 8:if(eo=es.h,!e.j)return es.return();z.lf(eo);case 7:z.Pe();case 4:e.h.lowestVideoBitrate=function(e){e=h(e.h.variants);for(var t=e.next();!t.done;t=e.next())if((t=t.value).video&&"number"==typeof t.video.bandwidth&&(!n||t.video.bandwidth<n))var n=t.video.bandwidth;return n||0}(e),e.j.makeTextStreamsForClosedCaptions(e.h),T(es)}})}function oU(e,t,n){var i;return L(function(r){if(1==r.g)return S(r,e.m.ud(t,!0,n),2);e.h.variants=e.m.l,0<(i=e.m.Fd()).length&&(e.h.textStreams=i),e.h.imageStreams=e.m.i,e.j.filter(e.h),T(r)})}function oB(e,t){var n="",i="",r=-1,a="";t=h(t);for(var o=t.next();!o.done;o=t.next())"Period"===(o=o.value).name?n=o.id:"AdaptationSet"===o.name?(i=o.id,null!==o.position&&(r=o.position)):"Representation"===o.name&&(a=o.id);if(t=[],a)t.push(n+","+a);
1else if(i)for(e=(r=h(e.s.values())).next();!e.done;e=r.next())(e=e.value).Z.id===n&&e.$.id===i&&e.G.id&&t.push(n+","+e.G.id);else if(-1<r)for(e=(i=h(e.s.values())).next();!e.done;e=i.next())(e=e.value).Z.id===n&&e.$.position===r&&e.G.id&&t.push(n+","+e.G.id);return t}function oF(e,t){var n=e.s.get(t),i=e.o[t];i.segmentIndex&&i.segmentIndex.ra(e.h.presentationTimeline.ib());try{var r=aw(n,function(t,n,i,r){return oz(e,t,n,i,r)},e.o,!0,e.g.dash.initialSegmentLimit,e.fa,n.G.aesKey,null,!0,e.K);i.createSegmentIndex=function(){return L(function(e){if(1==e.g)return i.segmentIndex?e.u(0):S(e,r.wb(),3);i.segmentIndex=e.h,T(e)})}}catch(e){if((t=n.G.contentType)!=t5&&"application"!=t&&"image"!=t||4002!=e.code)throw e}}function oH(t,n,i,r,a){var o=n.Za;o||(o=rc(r,"mediaPresentationDuration",rp),t.l.Za=o);var s=0;t.h&&t.h.presentationTimeline&&t.ea&&(s=t.h.presentationTimeline.Ya());var u=[],l=s;r=rr(r,"Period");for(var c=0;c<r.length;c++){var f=r[c],p=r[c+1],g=rc(f,"start",rp,l),m=f.attributes.id,v=rc(f,"duration",rp),y=null;if(p){var b=rc(p,"start",rp);null!=b&&(y=b-g)}else null!=o&&(y=o-g+s);if(b=t8,y&&v&&Math.abs(y-v)>b&&y>v&&t.M++,null==y&&(y=v),!(null!==t.N&&null!==m&&null!==g&&g<t.N)||t.C.includes(m)||c+1==r.length){if(null!==g&&(null===t.N||g>t.N)&&(t.N=g),l=function(t,n,i,r){n.Z=oq(t,r.node,null,i),n.aa=r,n.Z.Ca=n.Ca,n.Z.id||(n.Z.id="__shaka_period_"+r.start);var a=rr(r.node,"EventStream");i=n.presentationTimeline.ib(),a=h(a);for(var o=a.next();!o.done;o=a.next())!function(e,t,n,i,r){var a=i.attributes.schemeIdUri||"",o=i.attributes.value||"",s=rc(i,"timescale",ry)||1,u=rc(i,"presentationTimeOffset",ry)||0;i=h(rr(i,"Event"));for(var l=i.next();!l.done;l=i.next()){var c=rc(l=l.value,"presentationTime",ry)||0,d=rc(l,"duration",ry)||0;d=(c=Math.max((c-u)/s+t,t))+d/s,null!=n&&(c=Math.min(c,t+n),d=Math.min(d,t+n)),d<r||(l={schemeIdUri:a,value:o,startTime:c,endTime:d,id:l.attributes.id||"",eventElement:function e(t){var n="",i=t.tagName.split(":");for(var r in 0<i.length&&(n=i[0],n=rI.has(n)?rI.get(n):""),n=document.createElementNS(n,t.tagName),t.attributes)n.setAttribute(r,t.attributes[r]);for(r=(t=h(t.children)).next();!r.done;r=t.next())r=r.value,i=void 0,i="string"==typeof r?new Text(r):e(r),n.appendChild(i);return n}(l),eventNode:rE(l)},e.j.onTimelineRegionAdded(l))}}(t,r.start,r.duration,o.value,i);if(i=rr(r.node,"AdaptationSet").map(function(i,r){return function(t,n,i,r){function a(e){switch(e){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function o(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}n.$=oq(t,r,n.Z,null),n.$.position=i;var s=!1,u=(i=rr(r,"Role")).map(function(e){return e.attributes.value}).filter(ny),l=void 0,c=n.$.contentType==t5;c&&(l="subtitle"),i=h(i);for(var f=i.next();!f.done;f=i.next()){var p=(f=f.value).attributes.schemeIdUri;if(null==p||"urn:mpeg:dash:role:2011"==p)switch(f=f.attributes.value){case"main":s=!0;break;case"caption":case"subtitle":l=f}}p=rr(r,"EssentialProperty"),i=null;var g=!1;f=!1,p=h(p);for(var m=p.next();!m.done;m=p.next()){var v=(m=m.value).attributes.schemeIdUri;"http://dashif.org/guidelines/trickmode"==v?i=m.attributes.value:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==v?b=o(parseInt(m.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==v?w=a(parseInt(m.attributes.value,10)):"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=v&&("urn:mpeg:dash:ssr:2023"==v&&t.g.dash.enableFastSwitching?g=!0:f=!0)}var y=null;for(m=(p=h(p=rr(r,"SupplementalProperty"))).next();!m.done;m=p.next())"http://dashif.org/guidelines/last-segment-number"==(v=(m=m.value).attributes.schemeIdUri)?y=parseInt(m.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==v?b=o(parseInt(m.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==v&&(w=a(parseInt(m.attributes.value,10)));p=rr(r,"Accessibility");var b,w,x,k=new Map;for(m=(p=h(p)).next();!m.done;m=p.next())if(m=(v=m.value).attributes.schemeIdUri,v=v.attributes.value,"urn:scte:dash:cc:cea-608:2015"!=m||t.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!=m||t.g.disableText)"urn:mpeg:dash:role:2011"==m?null!=v&&(u.push(v),"captions"==v&&(l="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==m&&("1"==v?x="visually impaired":"2"==v&&(x="hard of hearing"));else if(m=1,null!=v){v=h(v.split(";"));for(var A=v.next();!A.done;
1A=v.next()){var E=A.value,C=A=void 0;E.includes("=")?(A="svc"+(E=E.split("="))[0],C=E[1].split(",")[0].split(":").pop()):(A="svc"+m,m++,C=E),k.set(A,nT(C))}}else k.set("svc1","und");else if(m=1,null!=v)for(E=(A=h(v=v.split(";"))).next();!E.done;E=A.next()){C=E.value;var I=E=void 0;C.includes("=")?(E=(C=C.split("="))[0].startsWith("CC")?C[0]:"CC"+C[0],I=C[1]||"und"):(E="CC"+m,2==v.length?m+=2:m++,I=C),k.set(E,nT(I))}else k.set("CC1","und");if(f)return null;var M=rM(f=rr(r,"ContentProtection"),t.g.dash.ignoreDrmInfo,t.g.dash.keySystemsByURI),D=nT(n.$.language||"und"),R=n.$.label;if(0==(r=(f=rr(r,"Representation")).map(function(i){return(i=function(t,n,i,r,a,o,s,u,l,c,d,f){n.G=oq(t,c,n.$,null);var p,g,m=n.G.id;if(t.Y=Math.min(t.Y,n.G.Ca),t.ba=0<t.Y,!function(e){var t=+!!e.bc;return 0==(t+=+!!e.eb+ +!!e.nb)?e.contentType==t5||"application"==e.contentType:(1!=t&&(e.bc&&(e.eb=null),e.nb=null),!0)}(n.G))return null;var v=n.aa.start;n.bandwidth=rc(c,"bandwidth",rv)||0,n.roles=u;var y=n.G.contentType,b=y==t5||"application"==y;y="image"==y;try{var w=void 0;if(i.td){var x=n.G.va,k=t0(x(),[i.td.Ag]),A=rY(k,t.g.retryParameters);w={bitsKey:128,blockCipherMode:"CBC",iv:i.td.iv,firstMediaSequenceNumber:0,fetchKey:function(){var n,i,r;return L(function(a){if(1==a.g)return S(a,oY(t,A,6),2);if(3!=a.g){if(!(n=a.h).data||16!=n.data.byteLength)throw new tr(2,4,4049);return i={name:"AES-CBC"},r=w,S(a,e.crypto.subtle.importKey("raw",n.data,i,!0,["decrypt"]),3)}r.cryptoKey=a.h,w.fetchKey=void 0,T(a)})}}}if(n.G.aesKey=w,x=function(e,n,i,r){return oz(t,e,n,i,r)},n.G.bc)var E,C,I,M,D,R,P,N,j,_=(E=n,C=x,I=w,M=Number(r5(E,ag,"presentationTimeOffset"))||0,D=r5(E,ag,"timescale"),R=1,D&&(R=rv(D)||1),P=M/R||0,N=af(E,ag,I),function(e,t){if(av(e,t),!am(e))throw new tr(2,4,4002)}(E,N),j=nD(E),{endTime:-1,timeline:-1,wb:function(){var e=r6(j,ag,"RepresentationIndex"),t=j.G.va();return e&&(e=tq(e.attributes.sourceURL))&&(t=t0(t,[e])),e=am(j),ap(j,C,N,t,e.start,e.end,P)}});else if(n.G.eb)_=function(e,t,n){var i=af(e,ab,n),r=function(e){var t=function(e){return[e.G.eb,e.$.eb,e.Z.eb].filter(ny).map(function(e){return rr(e,"SegmentURL")}).reduce(function(e,t){return 0<e.length?e:t}).map(function(t){t.attributes.indexRange&&!e.Id&&(e.Id=!0);var n=tq(t.attributes.media);return{Hg:n,start:(t=rc(t,"mediaRange",rg,{start:0,end:null})).start,end:t.end}})}(e),n=(e=r3(e,ab)).Dc;0==n&&(n=1);var i=0;return e.pa?i=e.pa*(n-1):e.timeline&&0<e.timeline.length&&(i=e.timeline[0].start),{pa:e.pa,startTime:i,Dc:n,Ma:e.Ma,timeline:e.timeline,Vb:t}}(e);if(!r.pa&&!r.timeline&&1<r.Vb.length||!r.pa&&!e.aa.duration&&!r.timeline&&1==r.Vb.length||r.timeline&&0==r.timeline.length)throw new tr(2,4,4002);var a=null,o=null;e.Z.id&&e.G.id&&(o=t[e.Z.id+","+e.G.id])&&(a=o.segmentIndex);var s=function(e,t,n,i,r,a,o,s){var u=i.Vb.length;i.timeline&&i.timeline.length!=i.Vb.length&&(u=Math.min(i.timeline.length,i.Vb.length));for(var l=e-i.Ma,c=t?e+t:1/0,h=[],d=i.startTime,f={},p=0;p<u;f={ld:void 0,fd:void 0},p++){f.fd=i.Vb[p];var g=d;d=void 0,d=null!=i.pa?g+i.pa:i.timeline?i.timeline[p].end:g+t,f.ld=null,(f=new ae(e+g,e+d,function(e){return function(){return null==e.ld&&(e.ld=t0(n(),[e.fd.Hg])),e.ld}}(f),f.fd.start,f.fd.end,r,l,e,c,[],"",null,null,at,a)).codecs=s,f.mimeType=o,h.push(f)}return h}(e.aa.start,e.aa.duration,e.G.va,r,i,n,e.G.mimeType,e.G.codecs);return t=!a,a?a.Wc(s,e.presentationTimeline.ib()):a=new ai(s),e.presentationTimeline.Sd(s),e.Oa&&e.aa.Ld||a.jc(e.aa.start,e.aa.duration?e.aa.start+e.aa.duration:1/0,t),o&&(o.segmentIndex=a),{endTime:-1,timeline:-1,wb:function(){return a&&0!=a.getNumReferences()||a.Vc(s),Promise.resolve(a)}}}(n,t.o,w);else if(n.G.nb)_=aw(n,x,t.o,!!t.h,t.g.dash.initialSegmentLimit,t.fa,w,f,!1,t.K);else{var O=n.aa.duration||0,U=n.G.va,B=n.G.mimeType,F=n.G.codecs;_={endTime:-1,timeline:-1,wb:function(){var e=ar(v,O,U());return e.Nb(function(e){e.mimeType=B,e.codecs=F}),Promise.resolve(e)}}}}catch(e){if((b||y)&&4002==e.code)return null;throw e}if(f=new Set((f=function(e,t,n,i){var r=rM(e,n,i);
1if(t.De)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==r.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=r.drmInfos),t.De=!1;else if(0<r.drmInfos.length&&(t.drmInfos=t.drmInfos.filter(function(e){return r.drmInfos.some(function(t){return t.keySystem==e.keySystem})}),0==t.drmInfos.length))throw new tr(2,4,4008);return r.xe||t.xe}(f=rr(c,"ContentProtection"),i,t.g.dash.ignoreDrmInfo,t.g.dash.keySystemsByURI))?[f]:[]),x=!1,rr(c,"SupplementalProperty").some(function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.attributes.schemeIdUri&&"JOC"==e.attributes.value})&&(x=!0),k=!1,b&&(k=u.includes("forced_subtitle")||u.includes("forced-subtitle")),y&&((c=rr(c,"EssentialProperty").find(function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.attributes.schemeIdUri)}))&&(p=c.attributes.value),!p))return null;if(t.g.overrideDolbyVisionCodecs&&(n.G.codecs=function(e){for(var t={dvav:"avc3",dva1:"avc1",dvhe:"hev1",dvh1:"hvc1"},n=h(Object.keys(t)),i=n.next();!i.done;i=n.next())if(i=i.value,e.includes(i))return t[i];return e}(n.G.codecs)),b=n.G.codecs,n.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(b.includes("hvc1.2.4.L153.B0")||b.includes("hev1.2.4.L153.B0"))&&(g="PQ"),c=n.G.id?n.Z.id+","+n.G.id:"",t.D.length&&m&&t.s.set(n.Z.id+","+m,function(e){function t(e){return e?((e=nD(e)).bc=null,e.eb=null,e.nb=rE(e.nb),e):null}return(e=nD(e)).Z=t(e.Z),e.$=t(e.$),e.G=t(e.G),e.aa&&(e.aa=nD(e.aa),e.aa.node=null),e}(n)),-1!=_.endTime&&null!=n.Z.id&&null!=n.G.id&&((m=t.K.get(n.Z.id))?(m.endTime=_.endTime,m.Yd.includes(n.G.id)||m.Yd.push(n.G.id),t.K.set(n.Z.id,m)):t.K.set(n.Z.id,{endTime:_.endTime,timeline:_.timeline,Yd:[n.G.id]})),n.maxSegmentDuration)var H=n.maxSegmentDuration;var V=c&&t.o[c]?t.o[c]:{id:t.ka++,originalId:n.G.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){V.segmentIndex&&(V.segmentIndex.release(),V.segmentIndex=null)},segmentIndex:null,mimeType:n.G.mimeType,codecs:b,frameRate:n.G.frameRate,pixelAspectRatio:n.G.pixelAspectRatio,bandwidth:n.bandwidth,width:n.G.width,height:n.G.height,kind:r,encrypted:0<i.drmInfos.length,drmInfos:i.drmInfos,keyIds:f,language:a,originalLanguage:n.$.language,label:o,type:n.$.contentType,primary:s,trickModeVideo:null,emsgSchemeIdUris:n.G.emsgSchemeIdUris,roles:u,forced:k,channelsCount:n.G.Zc,audioSamplingRate:n.G.audioSamplingRate,spatialAudio:x,closedCaptions:l,hdr:g,colorGamut:void 0,videoLayout:void 0,tilesLayout:p,accessibilityPurpose:d,external:!1,fastSwitching:!1,fullMimeTypes:new Set([ne(n.G.mimeType,n.G.codecs)]),maxSegmentDuration:H};return V.createSegmentIndex=function(){var e;return L(function(t){if(1==t.g)return V.segmentIndex?t.u(0):(e=V,S(t,_.wb(),3));e.segmentIndex=t.h,T(t)})},c&&n.Oa&&!t.o[c]&&(n=n.Z.id||"",t.B[n]||(t.B[n]=[]),t.o[c]=V,t.B[n].push(c)),V}(t,n,M,l,D,R,s,u,k,i,x,y))&&(i.hdr=i.hdr||b,i.colorGamut=i.colorGamut||w,i.fastSwitching=g),i}).filter(function(e){return!!e})).length){if(i="image"==n.$.contentType,t.g.dash.ignoreEmptyAdaptationSet||c||i)return null;throw new tr(2,4,4003)}if(!n.$.contentType||"application"==n.$.contentType)for(n.$.contentType=oX(r[0].mimeType,r[0].codecs),p=(c=h(r)).next();!p.done;p=c.next())p.value.type=n.$.contentType;for(c=n.$.id||"__fake__"+t.ka++,m=(p=h(r)).next();!m.done;m=p.next()){for(m=m.value,A=(v=h(M.drmInfos)).next();!A.done;A=v.next())(A=A.value).keyIds=A.keyIds&&m.keyIds?new Set([].concat(d(A.keyIds),d(m.keyIds))):A.keyIds||m.keyIds;t.g.dash.enableAudioGroups&&(m.groupId=c)}return f=f.map(function(e){return e.attributes.id}).filter(ny),{id:c,contentType:n.$.contentType,language:D,vh:s,streams:r,drmInfos:M.drmInfos,ie:i,Sg:f}}(t,n,r,i)}).filter(ny),n.Oa){for(r=[],o=(a=h(i)).next();!o.done;o=a.next()){o=h(o.value.Sg);for(var s=o.next();!s.done;s=o.next())r.push(s.value)}if(r.length!=new Set(r).size)throw new tr(2,4,4018)}for(r=i.filter(function(e){return!e.ie}),a=(i=h(i=i.filter(function(e){return e.ie}))).next();!a.done;a=i.next()){o=(a=a.value).ie.split(" "),s=h(r);for(var u=s.next();!u.done;u=s.next())if(u=u.value,o.includes(u.id)){u=h(u.streams);for(var l=u.next(),c={};!l.done;c={ge:void 0},l=u.next())c.ge=l.value,c.ge.trickModeVideo=a.streams.find(function(e){return function(t){return nr(e.ge.codecs)==nr(t.codecs)}}(c))}}if(i=oV(t.g.disableAudio,r,"audio"),a=oV(t.g.disableVideo,r,"video"),o=oV(t.g.disableText,r,t5),r=oV(t.g.disableThumbnails,r,"image"),0===a.length&&0===i.length)throw new tr(2,4,4004);return{id:n.Z.id,audioStreams:i,videoStreams:a,textStreams:o,imageStreams:r}}(t,n,i,{start:g,duration:y,node:f,Ld:null==y||!p}),u.push(l),n.Z.id&&y&&(t.fa[n.Z.id]=y),null==y){l=null;break}l=g+y}}if(a)for(i=(n=h(u)).next();!i.done;i=n.next())i=i.value.id,t.C.includes(i)||t.C.push(i);else t.C=u.map(function(e){return e.id});return null!=o?{periods:u,duration:o+s,Be:!1}:{periods:u,duration:l,Be:!0}}function oV(e,t,n){return e||!t.length?[]:t.reduce(function(e,t){return t.contentType!=n||e.push.apply(e,d(t.streams)),e},[])}function oG(e){var t,n;return L(function(i){switch(i.g){case 1:return t=0,k(i,2),S(i,o_(e),4);case 4:t=i.h,A(i,3);break;case 2:if(n=E(i),e.j){if(e.g.raiseFatalErrorOnManifestUpdateRequestFailure)return e.j.onError(n),i.return();n.severity=1,e.j.onError(n)}case 3:if(!e.j)return i.return();e.j.onManifestUpdated(),oK(e,t),T(i)}})}function oK(e,t){if(!(0>e.S)){var n=e.S;0<=e.g.dash.updatePeriod&&(n=e.g.dash.updatePeriod),e.I.ca(Math.max(n-t,q(e.ja)))}}function oq(e,t,n,i){n=n||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Zc:null,audioSamplingRate:null,Ca:0,ae:0},i=i||n.va;var r,a=t.attributes.id,o=rr(t,"BaseURL"),s=!1;if(e.i)for(var u=h(o),l=u.next();!l.done;l=u.next()){var c=l.value;l=c.attributes.serviceLocation,c=ro(c),l&&c&&(aZ(e.i,a,l,c),s=!0)}s&&e.i||(r=o.map(ro)),u=t.attributes.contentType||n.contentType,l=t.attributes.mimeType||n.mimeType,c=[t.attributes.codecs||n.c
1odecs];var d=rh(t,"urn:scte:dash:scte214-extensions","supplementalCodecs");d&&c.push(d),c=(function(e){var t=new Set,n=[];e=h(e);for(var i=e.next();!i.done;i=e.next()){var r=na(i=i.value);t.has(r)||(n.push(i),t.add(r))}return t=t4("audio",n),i=t4("video",n),e=t4(t5,n),i=function(e){if(1>=e.length)return e;var t=e.find(function(e){return e.startsWith("dvav.")||e.startsWith("dva1.")||e.startsWith("dvh1.")||e.startsWith("dvhe.")||e.startsWith("dav1.")||e.startsWith("dvc1.")||e.startsWith("dvi1.")});return t?en('video/mp4; codecs="'+t+'"')?[t]:e.filter(function(e){return e!=t}):e}(i),t=t.concat(i).concat(e),n.length&&!t.length?n:t})(c).join(","),d=rc(t,"frameRate",rx)||n.frameRate;var f=t.attributes.sar||n.pixelAspectRatio,p=function(e,t){t=t.slice(),e=h(e);for(var n=e.next();!n.done;n=e.next())n=n.value.attributes.schemeIdUri,t.includes(n)||t.push(n);return t}(rr(t,"InbandEventStream"),n.emsgSchemeIdUris),g=rr(t,"AudioChannelConfiguration");g=function(e){e=h(e);for(var t=e.next();!t.done;t=e.next()){var n=t.value;if((t=n.attributes.schemeIdUri)&&(n=n.attributes.value))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(g)||n.Zc;var m=rc(t,"audioSamplingRate",ry)||n.audioSamplingRate;u||(u=oX(l,c));var v=ru(t,"SegmentBase"),y=ru(t,"SegmentTemplate"),b=v&&rc(v,"availabilityTimeOffset",rb)||0,w=y&&rc(y,"availabilityTimeOffset",rb)||0,x=o&&o.length&&rc(o[0],"availabilityTimeOffset",rb)||0;b=n.Ca+x+b+w,w=null,(x=ru(t,"SegmentSequenceProperties"))&&(x=ru(x,"SAP"))&&(w=rc(x,"cadence",rm)),x=t.attributes.label;var S=rr(t,"Label");return S&&S.length&&ra(S=S[0])&&(x=ra(S)),{va:function(){return t0(i(),o.length?e.i&&s?aQ(e.i,a):r||[]:[])},bc:v||n.bc,eb:ru(t,"SegmentList")||n.eb,nb:y||n.nb,width:rc(t,"width",ry)||n.width,height:rc(t,"height",ry)||n.height,contentType:u,mimeType:l,codecs:c,frameRate:d,pixelAspectRatio:f,emsgSchemeIdUris:p,id:a,language:t.attributes.lang,Zc:g,audioSamplingRate:m,Ca:b,Sc:null,ae:w||n.ae,label:x||null}}function oW(e,t,n,i){var r,a,o,s,u,l;return L(function(c){if(1==c.g)return r=[tq(n)],(a=rY(t0(t(),r),e.g.retryParameters)).method=i,o=e.j.networkingEngine.request(4,a),rW(e.W,o),S(c,o.promise,2);if(s=c.h,"HEAD"==i){if(!s.headers||!s.headers.date)return c.return(0);u=s.headers.date}else u=tB(s.data);return isNaN(l=Date.parse(u))?c.return(0):c.return(l-Date.now())})}function oz(e,t,n,i,r){var a,o,s,u;return L(function(l){return 1==l.g?(a=rQ,o=+!r,s=a0(t,n,i,e.g.retryParameters),S(l,oY(e,s,a,{type:o}),2)):(u=l.h,l.return(u.data))})}function oX(e,t){return nf(t=ne(e,t))?t5:e.split("/")[0]}function oY(e,t,n,i){return t=e.j.networkingEngine.request(n,t,i),rW(e.W,t),t.promise}function oJ(){}(f=oj.prototype).configure=function(e){var t=this.j&&e.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=e.dash.updatePeriod;this.g=e,t&&this.h&&this.h.presentationTimeline.T()&&this.I.hd(),this.i&&this.i.configure(this.g),this.m&&(this.m.jf(this.g.dash.multiTypeVariantsAllowed&&ei()),this.m.qf(this.g.dash.useStreamOnceInPeriodFlattening))},f.start=function(e,t){var n,i=this;return L(function(r){if(1==r.g)return i.P=t.isLowLatencyMode(),i.A=[e],i.j=t,S(r,o_(i),2);if(n=r.h,i.j&&oK(i,n),!i.j)throw new tr(2,7,7001);return r.return(i.h)})},f.stop=function(){for(var e=h(Object.values(this.o)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.m&&this.m.release(),this.g=this.j=null,this.A=[],this.h=null,this.o={},this.B={},this.s.clear(),this.l={Xc:"",type:"",profiles:[],Za:null,Ca:0,va:null,Bc:0},this.m=null,null!=this.I&&(this.I.stop(),this.I=null),this.i&&this.i.destroy(),this.F&&(this.F.release(),this.F=null),this.W.destroy()},f.update=function(){var e,t=this;return L(function(n){return 1==n.g?(k(n,2),S(n,o_(t),4)):2!=n.g?A(n,0):(e=E(n),t.j&&e)?void(t.j.onError(e),T(n)):n.return()})},f.onExpirationUpdated=function(){},f.onInitialVariantChosen=function(e){if(this.h&&this.h.presentationTimeline.T()){var t=e.video||e.audio;if(t&&t.segmentIndex){e=this.h.presentationTimeline.hb();var n=t.segmentIndex.find(e);
1null!=n&&(t=t.segmentIndex.get(n))&&(this.S=t.endTime-e,oK(this,0))}}},f.banLocation=function(e){this.i&&this.i.banLocation(e)},f.setMediaElement=function(e){this.H=e},H("shaka.dash.DashParser",oj),aI["application/dash+xml"]=function(){return new oj},aI["video/vnd.mpeg.dash.mpd"]=function(){return new oj},H("shaka.dependencies",oJ),oJ.has=function(e){return oQ.has(e)},oJ.add=function(e,t){if(!oZ[e])throw Error(e+" is not supported");e==o$?eo("mux.js","mux.js is no longer used in Shaka Player."):oQ.set(e,function(){return t})};var o$="muxjs",oZ={wh:o$,ISOBoxer:"ISOBoxer"};oJ.Allowed=oZ;var oQ=new Map([["ISOBoxer",function(){return e.ISOBoxer}]]);function o0(e,t,n){this.g=null,this.o=-1,this.l=e,this.i=t,this.m=n,this.j=!1;e:{if("u"<typeof libDPIModule&&Y("Could not find LCEVC Library dependencies on this page"),"u">typeof LCEVCdec)this.h=LCEVCdec;else if("u">typeof LcevcDil)this.h=LcevcDil,this.j=!0,eo("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Y("Could not find LCEVC Library on this page"),e=!1;break e}void 0===this.h.SupportObject?(Y("Could not find LCEVC Library on this page"),e=!1):(this.h.SupportObject.SupportStatus||Y(this.h.SupportObject.SupportError),e=void 0!==this.h&&"u">typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}e&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function o1(e){e.g&&e.i.classList.add("shaka-hidden")}function o2(e,t,n){var i=0,r=-1;switch(t.mimeType){case"video/webm":i=1;break;case"video/mp4":i=2}switch(n){case"DASH":r=1;break;case"HLS":r=0}e.g&&(e.o=t.id,e.g.setLevelSwitching(t.id,!0),e.g.setContainerFormat(i),e.j||e.g.setStreamingFormat(r))}function o3(e,t,n,i){for(n=void 0===n||n,i=void 0!==i&&i,this.h=e,this.g=new Set([e]),t=(e=h(t=t||[])).next();!t.done;t=e.next())this.add(t.value,n,i)}function o4(e,t,n,i){var r;if(!(r=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(r=e.audio&&t.audio)){r=e.audio;var a=t.audio;r=!!((!r.channelsCount||!a.channelsCount||2<r.channelsCount||2<a.channelsCount)&&r.channelsCount!=a.channelsCount||r.spatialAudio!==a.spatialAudio||n&&!o5(r,a)||!o6(r.roles,a.roles)||i&&r.groupId!==a.groupId)}return!(i=r)&&(i=e.video&&t.video)&&(e=e.video,t=t.video,i=!((!n||o5(e,t))&&o6(e.roles,t.roles))),!i}function o5(e,t){if(e.mimeType!=t.mimeType||(e=e.codecs.split(",").map(function(e){return na(e)}),t=t.codecs.split(",").map(function(e){return na(e)}),e.length!=t.length))return!1;e.sort(),t.sort();for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function o6(e,t){if(e=new Set(e),t=new Set(t),e.delete("main"),t.delete("main"),e.size!=t.size)return!1;e=h(e);for(var n=e.next();!n.done;n=e.next())if(!t.has(n.value))return!1;return!0}function o8(){this.g=se,this.i=(new Map).set(se,2).set(o9,1),this.h=0}function o7(e,t,n){e.i.set(se,n).set(o9,t)}o0.prototype.release=function(){this.g&&(this.g.close(),this.g=null)},H("shaka.lcevc.Dec",o0),o0.prototype.release=o0.prototype.release,o3.prototype.add=function(e,t,n){return!!o4(this.h,e,void 0===t||t,void 0!==n&&n)&&(this.g.add(e),!0)},o3.prototype.values=function(){return this.g.values()};var o9=0,se=1;function st(e,t,n){0!=(t=(e=ey(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,0|n)):e.setUint32(0,n))}var sn=new to(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function si(e){this.g=!1,this.h=new r_,this.i=e}function sr(e,t){if(e.g){if(t instanceof tr&&7003==t.code)throw t;throw new tr(2,7,7003,t)}}function sa(e){for(var t=new Map,n=h(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function so(e){var t={};return e.forEach(function(e,n){t[n]=e}),t}function ss(e){var t=this;this.C=e,this.H=new Set,this.m=this.s=null,this.ea=!1,this.I=0,this.g=null,this.A=new Q,this.i=new Map,this.S=[],this.B=new Map,this.M=!1,this.l=new r_,this.h=null,this.o=function(n){2==n.severity&&t.l.reject(n),e.onError(n)},this.X=new Map,this.fa=new Map,this.N=new td(function(){var e,n,i;
1return n=(e=t).X,void((i=e.fa).clear(),n.forEach(function(e,t){return i.set(t,e)}),(n=Array.from(i.values())).length&&n.every(function(e){return"expired"==e})&&e.o(new tr(2,6,6014)),e.C.Xe(so(i)))}),this.ba=!1,this.P=[],this.W=!1,this.K=new td(function(){var e;(e=t).i.forEach(function(t,n){var i=t.Td,r=n.expiration;isNaN(r)&&(r=1/0),r!=i&&(e.C.onExpirationUpdated(n.sessionId,r),t.Td=r)})}),this.l.catch(function(){}),this.j=new si(function(){var e;return e=t,L(function(t){switch(t.g){case 1:return e.A.release(),e.A=null,e.l.reject(),e.K.stop(),e.K=null,e.N.stop(),e.N=null,S(t,sg(e),2);case 2:if(!e.m){t.u(3);break}return k(t,4),S(t,e.m.setMediaKeys(null),6);case 6:A(t,5);break;case 4:E(t);case 5:e.m=null;case 3:e.g=null,e.H.clear(),e.s=null,e.B=new Map,e.h=null,e.o=function(){},e.C=null,e.Y=!1,e.F=null,T(t)}})}),this.Y=!1,this.D=this.F=null}function su(t,n,i){t.B=new Map,i=h(i);for(var r,a,o,s,u,l,c,d,f,p,g,m,v,y,b,w,x,T,C,I,M=i.next();!M.done;M=i.next())t.B.set(M.value,{initData:null,initDataType:null});for(M=(i=h(t.h.persistentSessionsMetadata)).next();!M.done;M=i.next())M=M.value,t.B.set(M.sessionId,{initData:M.initData,initDataType:M.initDataType});return t.ba=0<t.B.size,r=t,a=n,L(function(t){var n,i,M,D,R,P,N,j,_,O,U,B,F,H,V,G,K,q,W,z,X,Y,J,$;if(1==t.g){if(o=0==(n=sa((n=r).h.clearKeys)).size?null:(M=void 0===M?"cenc":M,D=[],R=[],P=[],(i=n).forEach(function(e,t){var n=t;22!=n.length&&(n=tY(t$(t),!1));var i=e;22!=i.length&&(i=tY(t$(e),!1)),e={kty:"oct",kid:n,k:i},D.push(e),R.push(e.kid),P.push(t)}),i=JSON.stringify({keys:D}),N=[{initData:em(tV(N=JSON.stringify({kids:R}))),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",encryptionScheme:M,licenseServerUri:"data:application/json;base64,"+e.btoa(i),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:N,keyIds:new Set(P)}))for(u=(s=h(a)).next();!u.done;u=s.next())(l=u.value).video&&(l.video.drmInfos=[o]),l.audio&&(l.audio.drmInfos=[o]);for((c=a.some(function(e){return!!e.video&&!!e.video.drmInfos.length||!!e.audio&&!!e.audio.drmInfos.length}))||function(e,t){var n=[];for(t.forEach(function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}),t=(e=h(e)).next();!t.done;t=e.next())(t=t.value).video&&(t.video.drmInfos=n),t.audio&&(t.audio.drmInfos=n)}(a,sa(r.h.servers)),d=new Set,p=(f=h(a)).next();!p.done;p=f.next())for(m=(g=h(sm(p.value))).next();!m.done;m=g.next())v=m.value,d.add(v);for(b=(y=h(d)).next();!b.done;b=y.next())!function(t,n,i,r){var a=t.keySystem;a&&("org.w3.clearkey"!=a||!t.licenseServerUri)&&(n.size&&(t.licenseServerUri=n=n.get(a)||""),t.keyIds||(t.keyIds=new Set),(i=i.get(a))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=i.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=i.persistentStateRequired),t.videoRobustness||(t.videoRobustness=i.videoRobustness),t.audioRobustness||(t.audioRobustness=i.audioRobustness),t.serverCertificate||(t.serverCertificate=i.serverCertificate),i.sessionType&&(t.sessionType=i.sessionType),t.serverCertificateUri||(t.serverCertificateUri=i.serverCertificateUri)),r[a]&&(t.keySystem=r[a]),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==a&&(t.keySystem="com.chromecast.playready"))}(b.value,sa(r.h.servers),sa(r.h.advanced||{}),r.h.keySystemsMapping);for(w=function(e,t){var n=[];e=h(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var r=h(i[t].split(",")),a=r.next();!a.done;a=r.next()){var o={};n.push(Object.assign({},i,(o[t]=a.value,o)))}}return n},T=(x=h(a)).next();!T.done;T=x.next())(C=T.value).video&&(C.video.drmInfos=w(C.video.drmInfos,"videoRobustness"),C.video.drmInfos=w(C.video.drmInfos,"audioRobustness")),C.audio&&(C.audio.drmInfos=w(C.audio.drmInfos,"videoRobustness"),C.audio.drmInfos=w(C.audio.drmInfos,"audioRobustness"));return S(t,n_(a,r.ba,r.Y,r.h.preferredKeySystems),2)}return(sr(r.j),c||Object.keys(r.h.servers).length)?(j=r,_=a,I=L(function(e){switch(e.g){case 1:var t,n,i,r,a,o,s,u,l,c,d,f,p,g,m,v;if(O=new Map,_.length){U=function(e,t,n){for(var i=h(t),r=i.next();!r.done;r=i.next()){r=h(sm(r.value));for(var a=r.next();!a.done;a=r.next())a=a.value,n.has(a.keySystem)||n.set(a.keySystem,[]),n.get(a.keySystem).push(a)}if(1==n.size&&n.has(""))throw new tr(2,6,6e3);for(r=(e=h(e.h.preferredKeySystems)).next(),i={};!r.done;i={af:void 0},r=e.next())for(i.af=r.value,a=(r=h(t)).next();!a.done;a=r.next())if(a=a.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.af}}(i)))return a.keySystemAccess;for(i=(e=h([!0,!1])).next();!i.done;i=e.next())for(i=i.value,a=(r=h(t)).next();!a.done;a=r.next()){a=h(a.value.decodingInfos);for(var o=a.next();!o.done;o=a.next())if((o=o.value).supported&&o.keySystemAccess){var s=n.get(o.keySystemAccess.keySystem);s=h(s);for(var u=s.next();!u.done;u=s.next())if(!!u.value.licenseServerUri==i)return o.keySystemAccess}}return null}(j,_,O),e.u(2);break}return S(e,(t=j,L(function(e){switch(e.g){case 1:if(1==(void 0).size&&(void 0).has(""))throw new tr(2,6,6e3);
1for(r=(i=h((void 0).values())).next();!r.done;r=i.next())0==(a=r.value).audioCapabilities.length&&delete a.audioCapabilities,0==a.videoCapabilities.length&&delete a.videoCapabilities;s=(o=h(t.h.preferredKeySystems)).next();case 2:if(s.done){e.u(4);break}if(u=s.value,!(void 0).has(u)){e.u(3);break}return l=(void 0).get(u),k(e,6),S(e,navigator.requestMediaKeySystemAccess(u,[l]),8);case 8:return n=e.h,e.return(n);case 6:E(e);case 7:sr(t.j);case 3:s=o.next(),e.u(2);break;case 4:d=(c=h([!0,!1])).next();case 9:if(d.done){e.u(11);break}f=d.value,g=(p=h((void 0).keys())).next();case 12:if(g.done){d=c.next(),e.u(9);break}if(m=g.value,(v=(void 0).get(m)).drmInfos.some(function(e){return!!e.licenseServerUri})!=f){e.u(13);break}return k(e,15),S(e,navigator.requestMediaKeySystemAccess(m,[v]),17);case 17:return n=e.h,e.return(n);case 15:E(e);case 16:sr(t.j);case 13:g=p.next(),e.u(12);break;case 11:return e.return(n)}})),3);case 3:U=e.h;case 2:if(!(B=U))throw new tr(2,6,6001);for(sr(j.j),k(e,4),j.H.clear(),H=(F=B.getConfiguration()).audioCapabilities||[],V=F.videoCapabilities||[],K=(G=h(H)).next();!K.done;K=G.next())q=K.value,j.H.add(q.contentType.toLowerCase());for(z=(W=h(V)).next();!z.done;z=W.next())X=z.value,j.H.add(X.contentType.toLowerCase());if(_.length){var y,b,w,x=B.keySystem,T=O.get(B.keySystem),C=[],I=[],M=[],D=[],R=[],P=new Set,N=new Set;sy(T,C,I,D,M,R,P,N);var Z=j.ba?"persistent-license":"temporary";for(x={keySystem:x,encryptionScheme:C[0],licenseServerUri:I[0],distinctiveIdentifierRequired:T[0].distinctiveIdentifierRequired,persistentStateRequired:T[0].persistentStateRequired,sessionType:T[0].sessionType||Z,audioRobustness:T[0].audioRobustness||"",videoRobustness:T[0].videoRobustness||"",serverCertificate:D[0],serverCertificateUri:M[0],initData:R,keyIds:P},0<N.size&&(x.keySystemUris=N),N=(T=h(T)).next();!N.done;N=T.next())(N=N.value).distinctiveIdentifierRequired&&(x.distinctiveIdentifierRequired=N.distinctiveIdentifierRequired),N.persistentStateRequired&&(x.persistentStateRequired=N.persistentStateRequired);T=x}else T=B.keySystem,N=(void 0).get(B.keySystem),x=[],C=[],I=[],M=[],D=[],R=new Set,sy(N.drmInfos,x,C,M,I,D,R),T={keySystem:T,encryptionScheme:x[0],licenseServerUri:C[0],distinctiveIdentifierRequired:"required"==N.distinctiveIdentifier,persistentStateRequired:"required"==N.persistentState,sessionType:N.sessionTypes[0]||"temporary",audioRobustness:(N.audioCapabilities?N.audioCapabilities[0].robustness:"")||"",videoRobustness:(N.videoCapabilities?N.videoCapabilities[0].robustness:"")||"",serverCertificate:M[0],serverCertificateUri:I[0],initData:D,keyIds:R};if(j.g=T,!j.g.licenseServerUri)throw new tr(2,6,6012,j.g.keySystem);return S(e,B.createMediaKeys(),6);case 6:if(Y=e.h,sr(j.j),j.s=Y,!(""!=j.h.minHdcpVersion&&"getStatusForPolicy"in j.s)){e.u(7);break}return k(e,8),S(e,j.s.getStatusForPolicy({minHdcpVersion:j.h.minHdcpVersion}),10);case 10:if("usable"!=e.h)throw new tr(2,6,6018);sr(j.j),A(e,7,4);break;case 8:if((J=E(e,4))instanceof tr)throw J;throw new tr(2,6,6019,J.message);case 7:return j.ea=!0,S(e,(y=j,L(function(e){switch(e.g){case 1:if(!y.s||!y.g)return e.return();if(!y.g.serverCertificateUri||y.g.serverCertificate&&y.g.serverCertificate.length){e.u(2);break}return b=rY([y.g.serverCertificateUri],y.h.retryParameters),k(e,3),S(e,y.C.Cb.request(5,b).promise,5);case 5:w=e.h,y.g.serverCertificate=em(w.data),A(e,4);break;case 3:throw new tr(2,6,6017,E(e));case 4:if(y.j.g)return e.return();case 2:if(!y.g.serverCertificate||!y.g.serverCertificate.length)return e.return();return k(e,6),S(e,y.s.setServerCertificate(y.g.serverCertificate),8);case 8:A(e,0);break;case 6:throw new tr(2,6,6004,E(e).message)}})),11);case 11:sr(j.j),A(e,0);break;case 4:if($=E(e),sr(j.j,$),j.g=null,j.H.clear(),$ instanceof tr)throw $;throw new tr(2,6,6002,$.message)}}),t.return(c?I:I.catch(function(){}))):(r.ea=!0,t.return(Promise.resolve()))})}function sl(e){var t;return L(function(n){switch(n.g){case 1:if(e.m.mediaKeys)return n.return();if(!e.F){n.u(2);break}return S(n,e.F,3);case 3:return sr(e.j),n.return();case 2:return k(n,4),e.F=e.m.setMediaKeys(e.s),S(n,e.F,6);case 6:A(n,5);break;case 4:t=E(n),e.o(new tr(2,6,6003,t.message));case 5:sr(e.j),T(n)}})}function sc(e,t,n){if(n.length){if(e.h.ignoreDuplicateInitData){var i=e.i.values();i=h(i);for(var r=i.next();!r.done;r=i.next())if(ef(n,r.value.initData))return}
1e.M=!0,0<e.i.size&&sv(e)&&(e.l.resolve(),e.M=!1,e.l=new r_,e.l.catch(function(){})),function(e,t,n,i){try{var r=e.s.createSession(i)}catch(t){e.o(new tr(2,6,6005,t.message));return}e.A.J(r,"message",function(t){e.m&&e.h.delayLicenseRequestUntilPlayed&&e.m.paused&&!e.W?e.P.push(t):sf(e,t)}),e.A.J(r,"keystatuseschange",function(t){return sp(e,t)}),e.i.set(r,{initData:n,initDataType:t,loaded:!1,Td:1/0,Sa:null,type:i});try{n=e.h.initDataTransform(n,t,e.g)}catch(n){t=n,n instanceof tr||(t=new tr(2,6,6016,n)),e.o(t);return}e.h.logLicenseExchange&&tY(n),r.generateRequest(t,n).catch(function(t){if(!e.j.g){e.i.delete(r);var n=t.errorCode;if(n&&n.systemCode){var i=n.systemCode;0>i&&(i+=0x100000000),i="0x"+i.toString(16)}e.o(new tr(2,6,6006,t.message,t,i))}})}(e,t,n,e.g.sessionType)}}function sh(e){sv(e)&&e.l.resolve()}function sd(e,t){new td(function(){t.loaded=!0,sh(e)}).ca(sw)}function sf(e,t){var n,i,r,a,o,s,u,l,c,d,f,p,g;L(function(m){switch(m.g){case 1:if(n=t.target,e.h.logLicenseExchange&&tY(t.message),i=e.i.get(n),r=e.g.licenseServerUri,a=e.h.advanced[e.g.keySystem],"individualization-request"==t.messageType&&a&&a.individualizationServer&&(r=a.individualizationServer),(o=rY([r],e.h.retryParameters)).body=t.message,o.method="POST",o.licenseRequestType=t.messageType,o.sessionId=n.sessionId,o.drmInfo=e.g,i&&(o.initData=i.initData,o.initDataType=i.initDataType),a&&a.headers)for(s in a.headers)o.headers[s]=a.headers[s];if(tu(e.g.keySystem)){var v=tF(o.body,!0,!0);if(v.includes("PlayReadyKeyMessage")){var y=rs(v=rt(v,"PlayReadyKeyMessage"),"HttpHeader");y=h(y);for(var b=y.next();!b.done;b=y.next()){var w=b.value;b=rs(w,"name")[0],w=rs(w,"value")[0],o.headers[ra(b)]=ra(w)}o.body=tJ(ra(v=rs(v,"Challenge")[0]))}else o.headers["Content-Type"]="text/xml; charset=utf-8"}return u=Date.now(),k(m,2),c=e.C.Cb.request(2,o),e.S.push(c),S(m,c.promise,4);case 4:l=m.h,-1<(y=(v=e.S).indexOf(c))&&v.splice(y,1),A(m,3);break;case 2:if(d=E(m),e.j.g)return m.return();return f=new tr(2,6,6007,d),1==e.i.size?(e.o(f),i&&i.Sa&&i.Sa.reject(f)):(i&&i.Sa&&i.Sa.reject(f),e.i.delete(n),sv(e)&&(e.l.resolve(),e.N.ca(.1))),m.return();case 3:if(e.j.g)return m.return();return e.I+=(Date.now()-u)/1e3,e.h.logLicenseExchange&&tY(l.data),k(m,5),S(m,n.update(l.data),7);case 7:A(m,6);break;case 5:return p=new tr(2,6,6008,E(m).message),e.o(p),i&&i.Sa&&i.Sa.reject(p),m.return();case 6:if(e.j.g)return m.return();g=new rG("drmsessionupdate"),e.C.onEvent(g),i&&(i.Sa&&i.Sa.resolve(),sd(e,i)),T(m)}})}function sp(e,t){t=t.target;var n=e.i.get(t),i=!1;t.keyStatuses.forEach(function(t,r){if("string"==typeof r){var a=r;r=t,t=a}if(tu(e.g.keySystem)&&16==r.byteLength&&(tg()||tA())){var o=(a=ey(r)).getUint32(0,!0),s=a.getUint16(4,!0),u=a.getUint16(6,!0);a.setUint32(0,o,!1),a.setUint16(4,s,!1),a.setUint16(6,u,!1)}"status-pending"!=t&&(n.loaded=!0),"expired"==t&&(i=!0),r=tZ(r).slice(0,32),e.X.set(r,t)});var r=t.expiration-Date.now();(0>r||i&&1e3>r)&&n&&!n.Sa&&(e.i.delete(t),t.close().catch(function(){})),sv(e)&&(e.l.resolve(),e.N.ca(sx))}function sg(e){var t;return L(function(n){return t=Array.from(e.i.entries()),e.i.clear(),S(n,Promise.all(t.map(function(t){var n=(t=h(t)).next().value,i=t.next().value;return L(function(t){if(1==t.g){var r,a;return k(t,2),e.B.has(n.sessionId)||"persistent-license"!==i.type||e.h.persistentSessionOnlinePlayback?S(t,(r=n,L(function(e){return 1==e.g?(a=new Promise(function(e,t){new td(t).ca(sb)}),k(e,2),S(e,Promise.race([Promise.all([r.close(),r.closed]),a]),4)):2!=e.g?A(e,0):void(E(e),T(e))})),5):S(t,n.remove(),5)}if(2!=t.g)return A(t,0);E(t),T(t)})})),0)})}function sm(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function sv(e){var t,n=e=e.i.values();n=h(n);for(var i=n.next();!i.done;i=n.next()){if(!(t=i.value).loaded)return!1}return!0}function sy(t,n,i,r,a,o,s,u){var l=[];t=h(t);for(var c=t.next(),f={};!c.done;f={ia:void 0},c=t.next()){if(f.ia=c.value,n.includes(f.ia.encryptionScheme)||n.push(f.ia.encryptionScheme),"org.w3.clearkey"==f.ia.keySystem&&f.ia.licenseServerUri.startsWith("data:application/json;base64,")?l.includes(f.ia.licenseServerUri)||l.push(f.ia.licenseServerUri):i.includes(f.ia.licenseServerUri)||i.push(f.ia.licenseServerUri),a.includes(f.ia.serverCertificateUri)||a.push(f.ia.serverCertificateUri),f.ia.serverCertificate&&(r.some(function(e){return function(t){return ef(t,e.ia.serverCertificate)}}(f))||r.push(f.ia.serverCertificate)),f.ia.initData){c=h(f.ia.initData);for(var p=c.next(),g={};!p.done;g={Jd:void 0},p=c.next())g.Jd=p.value,o.some(function(e){return function(t){var n=e.Jd;return!!t.keyId&&t.keyId==n.keyId||t.initDataType==n.initDataType&&ef(t.initData,n.initData)}}(g))||o.push(g.Jd)}if(f.ia.keyIds)for(p=(c=h(f.ia.keyIds)).next();!p.done;p=c.next())s.add(p.value);if(f.ia.keySystemUris&&u)for(c=(f=h(f.ia.keySystemUris)).next();!c.done;c=f.next())u.add(c.value)}if(1==l.length)i.push(l[0]);else if(0<l.length){for(n=[],r=(l=h(l)).next();!r.done;r=l.next())r=JSON.parse(r=e.atob(r.value.split("data:application/json;base64,").pop())),n.push.apply(n,d(r.keys));l=JSON.stringify({keys:n}),i.push("data:application/json;base64,"+e.btoa(l))}}si.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then(function(){e.h.resolve()},function(){e.h.resolve()}))},(f=ss.prototype).destroy=function(){return this.j.destroy()},f.configure=function(e){this.h=e,this.K&&this.K.Aa(this.h.updateExpirationTime)},f.fb=function(e){var t=this;return L(function(n){var i,r,a,o;if(1==n.g)return t.m===e?n.return():t.s?(t.m=e,t.A.ma(t.m,"play",function(){for(var e=h(t.P),n=e.next();!n.done;n=e.next())sf(t,n.value);t.W=!0,t.P=[]}),"webkitCurrentPlaybackTargetIsWireless"in t.m&&t.A.J(t.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return sg(t)}),t.D=t.g&&t.g.initData.find(function(e){return 0<e.initData.length})||null,t.D||"com.apple.fps"!==t.g.keySystem||t.B.size?S(n,sl(t),2):n.u(2)):(t.A.ma(e,"encrypted",function(){t.o(new tr(2,6,6010))}),n.return());(i=t,L(function(e){if(1==e.g)return i.B.size?(i.B.forEach(function(e,t){var n,r,a,o,s,u,l,c,h,d;n=i,r=t,a=e,L(function(e){switch(e.g){case 1:try{o=n.s.createSession("persistent-license")}catch(t){return s=new tr(2,6,6005,t.message),n.o(s),e.return(Promise.reject(s))}return n.A.J(o,"message",function(e){n.m&&n.h.delayLicenseRequestUntilPlayed&&n.m.paused&&!n.W?n.P.push(e):sf(n,e)}),n.A.J(o,"keystatuseschange",function(e){return sp(n,e)}),u={initData:a.initData,initDataType:a.initDataType,loaded:!1,Td:1/0,Sa:null,type:"persistent-license"},n.i.set(o,u),k(e,2),S(e,o.load(r),4);case 4:return l=e.h,sr(n.j),l||(n.i.delete(o),c=n.h.persistentSessionOnlinePlayback?1:2,n.o(new tr(c,6,6013)),u.loaded=!0),sd(n,u),sh(n),e.return(o);case 2:h=E(e),sr(n.j,h),n.i.delete(o),d=n.h.persistentSessionOnlinePlayback?1:2,n.o(new tr(d,6,6005,h.message)),u.loaded=!0,sh(n);case 3:return e.return(Promise.resolve())}})}),S(e,i.l,3)):e.u(2);if(2!=e.g){if(0<(i.g&&i.g.keyIds||new Set([])).size&&function(e){for(var t=h(e.g&&e.g.keyIds||new Set([])),n=t.next();!n.done;n=t.next())if("usable"!==e.X.get(n.value))return!1;return!0}(i))return e.return(i.l);i.M=!1,i.l=new r_,i.l.catch(function(){})}for(a=(r=h((i.g?i.g.initData:[])||[])).next();!a.done;a=r.next())sc(i,(o=a.value).initDataType,o.initData);return sv(i)&&i.l.resolve(),e.return(i.l)})).catch(function(){}),t.D||t.B.size||t.h.parseInbandPsshEnabled||t.A.J(t.m,"encrypted",function(e){var n,i;return n=t,i=e,L(function(e){if(1==e.g)return S(e,sl(n),2);sc(n,i.initDataType,em(i.initData)),T(e)})}),T(n)})},f.zd=function(){var e=this,t=this.i.keys();return Array.from(t=function(e,t){var n=[];e=h(e);for(var i=e.next();!i.done;i=e.next())n.push(t(i.value));return n}(t,function(t){var n=e.i.get(t);return{sessionId:t.sessionId,sessionType:n.type,initData:n.initData,initDataType:n.initDataType}}))},f.Bd=function(){var e=1/0,t=this.i.keys();t=h(t);for(var n=t.next();!n.done;n=t.next())isNaN((n=n.value).expiration)||(e=Math.min(e,n.expiration));return e},f.Oc=function(){return so(this.fa)};var sb=1,sw=5,sx=.5;function sS(e,t,n,i,r,a,o,s,u,l,c){c=void 0===c?[]:c,this.A=e,this.B=t,this.g=n,this.l=i,this.C=r,this.o=a,this.j=void 0===o?"":o,this.m=void 0===s?"":s,this.s=void 0===u?"reload":u,this.h=void 0!==l&&l,this.i=c}function sT(e){return e.reduce(function(e,t){return(e.audio.bandwidth||e.bandwidth)>(t.audio.bandwidth||t.bandwidth)?e:t})}function sk(e){var t=[],n=0;e=h(e);for(var i=e.next();!i.done;i=e.next()){var r=(i=i.value).video.bandwidth||0;r>n?(n=r,t=[i]):r===n&&t.push(i)}return t}function sA(e,t){return e.filter(function(e){return!e.audio||!e.audio.channelsCount||e.audio.channelsCount==t})}function sE(e,t,n){t=void 0===t?"reload":t,n=void 0!==n&&n,this.i=e,this.h=t,this.g=n,this.j=new sS(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"",!1,"","","",t,n
1)}function sC(e){return 1==e.length&&1e-4>e.end(0)-e.start(0)}function sI(e){return!e||sC(e)?null:e.length?e.end(e.length-1):null}function sM(e,t){return!(!e||!e.length||sC(e)||t>e.end(e.length-1))&&t>=e.start(0)}function sD(e,t){if(!e||!e.length||sC(e))return 0;var n=0;e=h(sR(e));for(var i=e.next();!i.done;i=e.next()){var r=i.value;i=r.start,(r=r.end)>t&&(n+=r-Math.max(i,t))}return n}function sR(e){if(!e)return[];for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}function sP(e,t,n){this.j=n,this.l=e,this.s=sN(e),this.g=e.g.currentTime,this.m=Date.now()/1e3,this.h=!1,this.o=0,this.A=t,this.i=function(){}}function sL(e){this.g=e}function sN(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime,e=h(sR(e.g.buffered));for(var n=e.next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function sj(e,t,n,i,r){var a=this;this.A=r,this.g=e,this.C=t,this.o=n,this.m=new Q,this.l=this.B=!1,this.F=e.readyState,this.D=this.i=0,this.h=i,this.s=!1,this.m.J(e,"waiting",function(){return s_(a)}),this.j=new td(function(){s_(a)})}function s_(e){if(0!=e.g.readyState&&e.B){if(e.g.seeking){if(!e.l)return}else e.l=!1;if(!e.g.paused||e.g.currentTime==e.i&&(e.g.autoplay||e.g.currentTime!=e.i)){if(e.g.readyState!=e.F&&(e.F=e.g.readyState),!(r=!e.h)){var t,n,i,r=e.h,a=r.l,o=sN(a),s=a.g.currentTime,u=Date.now()/1e3;
1(r.g!=s||r.s!=o)&&(r.m=u,r.g=s,r.s=o,r.h=!1),(o=(s=u-r.m)>=r.A&&o&&!r.h)&&(r.i(r.g,s),r.h=!0,r.g=a.g.currentTime,r.o++,r.j(new rG("stalldetected"))),r=!o}r&&(r=e.g.currentTime,t=a=e.g.buffered,n=r,i=e.o.gapDetectionThreshold,null!=(o=!t||!t.length||sC(t)?null:0<=(t=sR(t).findIndex(function(e,t,r){return e.start>n&&(0==t||r[t-1].end-n<=i)}))?t:null)&&(0!=o||e.s))&&(s=a.start(o),(navigator.userAgent.match(/Edge\//)||tm()||tv())&&(s=Math.ceil(100*(s+e.o.gapPadding))/100),s>=e.C.Qa()||.001>s-r||(0!=o&&a.end(o-1),e.g.currentTime=s,r==e.i&&(e.i=s),e.D++,e.A(new rG("gapjumped"))))}}}function sO(e,t,n){this.g=e,this.i=t,this.h=n}function sU(e,t){return L(function(n){if(1==n.g){var i,r,a;return S(n,(i=e.h,r=t,a=void 0===(a=e.g.drm.preferredKeySystems)?[]:a,L(function(e){var t,n,o,s,u,l,c,d,f,p,g,m,v,y,b;return 1==e.g?S(e,(t=i,n=r,o=0<r.offlineSessionIds.length,s=a,L(function(e){if(1==e.g)return tm()&&function(e){var t={dvav:"avc3",dva1:"avc1",dvhe:"hev1",dvh1:"hvc1",dvc1:"vvc1",dvi1:"vvi1"},n=new Set;e=h(e);for(var i=e.next();!i.done;i=e.next())(i=i.value).video&&n.add(i.video);for(e=(n=h(n)).next();!e.done;e=n.next()){e=e.value,i=h(Object.keys(t));for(var r=i.next();!r.done;r=i.next())if(r=r.value,e.codecs.includes(r)){e.codecs=e.codecs.replace(r,t[r]);break}}}(n.variants),S(e,n_(n.variants,o,!1,s),2);u=null,t&&(l=t.g)&&(u=l.keySystem),n.variants=n.variants.filter(function(e){var t=function(e,t){if(!e.decodingInfos.some(function(e){return!!e.supported&&(!t||!(e=e.keySystemAccess)||e.keySystem==t)}))return!1;var n=tm(),i=tP("Firefox")&&tR(),r=e.video,a=r&&r.width||0,o=r&&r.height||0;return!(n&&r&&(1920<a||1080<o)&&(r.codecs.includes("avc1.")||r.codecs.includes("avc3.")))&&(e=e.audio,!(i&&e&&e.encrypted&&e.codecs.toLowerCase().includes("opus")))}(e,u);if(!t){var n=[];e.audio&&n.push(n$(e.audio)),e.video&&n.push(n$(e.video))}return t}),T(e)})),2):((c=r).textStreams=c.textStreams.filter(function(e){return nf(e=ne(e.mimeType,e.codecs))}),S(e,(d=r,L(function(e){switch(e.g){case 1:f=[],g=(p=h(d.imageStreams)).next();case 2:var t;if(g.done){e.u(4);break}if("application/mp4"==(v=(m=g.value).mimeType)&&"mjpg"==m.codecs&&(v="image/jpg"),n0.has(v)){e.u(5);break}if(!(y=n1.get(v))){n0.set(v,!1),e.u(5);break}return S(e,(t=y,new Promise(function(e){var n=new Image;n.src=t,"decode"in n?n.decode().then(function(){e(!0)}).catch(function(){e(!1)}):n.onload=n.onerror=function(){e(2===n.height)}})),7);case 7:b=e.h,n0.set(v,b);case 5:n0.get(v)&&f.push(m),g=p.next(),e.u(2);break;case 4:d.imageStreams=f,T(e)}})),0))})),2)}if(e.g.streaming.dontChooseCodecs||function(e,t,n,i){var r=e.variants;if((t.length||n.length)&&(r=nP(r,t,n)),i.length){for(t=new Z,n=(r=h(r)).next();!n.done;n=r.next())n=n.value,t.push(String(n.video.width||0),n);var a=[];t.forEach(function(e,t){e=0;var n=[];t=h(t);for(var r=t.next(),o={};!r.done;o={pd:void 0},r=t.next())o.pd=r.value,(r=i.filter(function(e){return function(t){return e.pd.decodingInfos[0][t]}}(o)).length)>e?(e=r,n=[o.pd]):r==e&&n.push(o.pd);a.push.apply(a,d(n))}),r=a}n=new Set,t=new Set,r=h(r);for(var o=r.next();!o.done;o=r.next())(o=o.value).audio&&n.add(o.audio),o.video&&t.add(o.video);n=Array.from(n).sort(function(e,t){return e.bandwidth-t.bandwidth});var s=[];for(r=new Map,o=(n=h(n)).next();!o.done;o=n.next()){var u=(o=o.value).language+(o.channelsCount||0)+(o.audioSamplingRate||0)+o.roles.join(",")+o.label+o.groupId+o.fastSwitching,l=r.get(u)||[];if(l.length){var c=l[l.length-1],f=nr(c.codecs),p=nr(o.codecs);f!=p||o.bandwidth&&c.bandwidth&&!(o.bandwidth>c.bandwidth)||(l.push(o),s.push(o.id))}else l.push(o),s.push(o.id);r.set(u,l)}n=Array.from(t).sort(function(e,t){return e.bandwidth&&t.bandwidth?e.bandwidth-t.bandwidth:e.width-t.width}),t=ei();var g=[];for(r=new Map,o=(n=h(n)).next();!o.done;o=n.next()){if(u=Math.round((o=o.value).frameRate||0)+(o.hdr||"")+o.fastSwitching,(l=r.get(u)||[]).length){if(c=l[l.length-1],!t&&(f=nr(c.codecs))!==(p=nr(o.codecs)))continue;o.width>c.width||o.height>c.height?(l.push(o),g.push(o.id)):o.width==c.width&&o.height==c.height&&((f=nr(c.codecs))!=(p=nr(o.codecs))||o.bandwidth&&c.bandwidth&&!(o.bandwidth>
1c.bandwidth)||(l.push(o),g.push(o.id)))}else l.push(o),g.push(o.id);r.set(u,l)}e.variants=e.variants.filter(function(e){var t=e.audio;return e=e.video,(!t||!!s.includes(t.id))&&(!e||!!g.includes(e.id))})}(t,e.g.preferredVideoCodecs,e.g.preferredAudioCodecs,e.g.preferredDecodingAttributes),!t.variants.some(nz))throw new tr(2,4,4032);return n.return(sB(e,t))})}function sB(e,t){var n=nN(t.variants,e.g.restrictions,e.i);if(t){var i=e.h?e.h.g:null;if(i&&e.h.s)for(var r=h(t.variants),a=r.next();!a.done;a=r.next())a=a.value,sF(e,i.keySystem,a.video),sF(e,i.keySystem,a.audio);sH(e,t)}return n}function sF(e,t,n){if(n){n=h(n.drmInfos);for(var i=n.next();!i.done;i=n.next())if((i=i.value).keySystem==t){i=h(i.initData||[]);for(var r=i.next();!r.done;r=i.next())r=r.value,sc(e.h,r.initDataType,r.initData)}}}function sH(e,t){var n=sV(e),i=Object.keys(e=e.h?e.h.Oc():{});i=i.length&&"00"==i[0];var r=!1,a=!1,o=new Set,s=new Set;t=h(t.variants);for(var u=t.next();!u.done;u=t.next()){u=u.value;var l=[];u.audio&&l.push(u.audio),u.video&&l.push(u.video),l=h(l);for(var c=l.next();!c.done;c=l.next())if((c=c.value).keyIds.size){c=h(c.keyIds);for(var d=c.next();!d.done;d=c.next()){d=d.value;var f=e[i?"00":d];f?n.includes(f)&&s.add(f):o.add(d)}}u.allowedByApplication?u.allowedByKeySystem&&(r=!0):a=!0}if(!r)throw new tr(2,4,4012,n={hasAppRestrictions:a,missingKeys:Array.from(o),restrictedKeyStatuses:Array.from(s)})}function sV(e){return[].concat(d(sG),d(e.g.drm.additionalRestrictedStatuses))}sS.prototype.create=function(t,n){n=void 0===n?{min:0,max:1/0}:n;var i,r,a,o,s,u,l,c,d,f,p,g,m,v,y,b,w,x,S,T,k,A,E,C="smooth"==this.s&&ei(),I=[];i=t,r=this.A,I=(a=nC(r=nT(r),i.map(function(e){return nE(e)})))?i.filter(function(e){return a==nE(e)}):[];var M=t.filter(function(e){return e.primary});return(I=I.length?I:M.length?M:t,M=n.min||0,k=I,A=n.max||1/0,E=M,t=(n=k.filter(function(e){return e.bandwidth<=A&&e.bandwidth>=E})).length!==I.length,n.length)?(I=n,M=this.g,n=this.i,t&&(o=I,s=this.i,u=this.g,o=sk(o),l=s||[],s||(s=sT(o))&&s.audio.codecs&&(l=[s.audio.codecs]),s=nP(o,[],l),void 0!==u&&0<(u=sA(s,u)).length&&(s=u),t=0<s.length?s[0]:void 0)&&(n=[t.audio.codecs],M=t.audio.channelsCount),(c=I,f="main"===(d=this.B),t=c.filter(function(e){if(!e.audio)return!1;var t=0==e.audio.roles.length;return d?e.audio.roles.includes(d)||f&&t:t})).length&&(I=t),M&&(t=sA(I,this.g)).length&&(I=t),(p=I,g=this.C,t=p.filter(function(e){return!e.audio||e.audio.spatialAudio==g})).length&&(I=t),n&&(n=nP(I,[],n)).length&&(I=n),this.o&&(m=I,v=this.o,n=m.filter(function(e){return!e.video||!e.video.videoLayout||e.video.videoLayout==v})).length&&(I=n),this.l&&(y=I,"AUTO"==(b=this.l)&&(b=e.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR"),n=y.filter(function(e){return!e.video||!e.video.hdr||e.video.hdr==b})).length&&(I=n),this.j&&(w=I,x=this.j,n=w.filter(function(e){return!!e.audio&&!!e.audio.label&&e.audio.label.toLowerCase()==x.toLowerCase()})).length&&(I=n),this.m&&(S=I,T=this.m,n=S.filter(function(e){return!!e.video&&!!e.video.label&&e.video.label.toLowerCase()==T.toLowerCase()})).length&&(I=n),0<(n=function(e){if(!e||0===e.length||!e[0].audio||!e[0].audio.groupId)return e;var t=sT(sk(e));return t&&t.audio&&void 0!==t.audio.groupId?e.filter(function(e){return e.audio.groupId===t.audio.groupId}):e}(I)).length&&(I=n),new o3(I[0],I,!C,this.h)):(I=function(e,t){var n=void 0;e=h(e);for(var i=e.next();!i.done;i=e.next())(i=i.value).bandwidth>=t&&(void 0===n||i.bandwidth<n.bandwidth)&&(n=i);return n}(I,M))?new o3(I,[I],!C,this.h):new o3},sE.prototype.create=function(e,t){var n=this,i="smooth"==this.h&&ei(),r=e.filter(function(e){return o4(n.i,e,!i,n.g)});return r.length?new o3(r[0],r,!i,this.g):this.j.create(e,t)},sP.prototype.release=function(){this.j=this.l=null,this.i=function(){}},sj.prototype.release=function(){this.m&&(this.m.release(),this.m=null),null!=this.j&&(this.j.stop(),this.j=null),this.h&&(this.h.release(),this.h=null),this.g=this.C=this.A=null},sj.prototype.Ud=function(){this.s=!0,s_(this)};var sG=["output-restricted","internal-error"];function sK(e,t,n,i){var r=this;this.i=e,this.Y=n,this.B=null,this.D=t,this.h={},this.H={},this.Fa={},this.g=null,this.ea=!1,this.W=i||null,this.m={},this.o=new Q,this.j={},this.F=null,this.K=new r_,this.N="",this.qa=!1,this.l=sq(this,this.K),this.A=!1,this.I=new si(function(){var e,t,n,i,a,o,s,u;return e=r,L(function(r){if(1==r.g){for(n in t=[],e.m)for(a=(i=e.m[n])[0],e.m[n]=i.slice(0,1),a&&t.push(a.p.catch(nv)),s=(o=h(i.slice(1))).next();!s.done;s=o.next())s.value.p.reject(new tr(2,7,7003,void 0));return e.g&&t.push(e.g.destroy()),e.D&&t.push(e.D.destroy()),S(r,Promise.all(t),2)}for(u in e.j)e.j[u].destroy();e.o&&(e.o.release(),e.o=null),e.i&&(e.i.removeAttribute("src"),e.i.load(),e.i=null),e.B=null,e.l=null,e.g=null,e.D=null,e.h={},e.j={},e.F=null,e.m={},e.W=null,e.M=null,e.Y=null,T(r)})}),this.C=!1,this.X="UNKNOWN",this.Ba=this.Ha=!1,this.Ga=new r_,this.s=!1,this.ua=!0,this.ja=this.P=this.ka=this.S=this.M=this.ba=null,this.fa=new r_}function sq(t,n){if(e.ManagedMediaSource){t.i.disableRemotePlayback=!0;var i=new ManagedMediaSource;return t.o.J(i,"startstreaming",function(){t.ua=!0}
1),t.o.J(i,"endstreaming",function(){t.ua=!1}),t.o.ma(i,"sourceopen",function(){URL.revokeObjectURL(t.N),n.resolve()}),t.o.ma(t.i,"playing",function(){t.qa=!0}),t.N=s9(i),t.i.src=t.N,i}return i=new MediaSource,t.o.ma(i,"sourceopen",function(){URL.revokeObjectURL(t.N),n.resolve()}),t.o.ma(t.i,"playing",function(){t.qa=!0}),t.N=s9(i),t.i.src=t.N,i}function sW(e,t,n,i){var r,a,o,s,u,l,c,d,f,p,g,m;return L(function(v){switch(v.g){case 1:var y,b,w,x,k,A,E,C,I,M,D,R;return r=t6,a=V,o=G,S(v,(y=n,b=t,L(function(e){if(1==e.g)return y.createSegmentIndex?S(e,y.createSegmentIndex(),2):e.u(2);if(!y.segmentIndex)return e.return(!1);if(0==y.segmentIndex.getNumReferences())return e.return(!0);for(w=t6,x=new Set,A=(k=h(y.segmentIndex)).next();!A.done;A=k.next())if(C=(E=A.value).mimeType||y.mimeType||"",I=E.codecs||y.codecs||"",(C!=y.mimeType||I!=y.codecs)&&(M=C+":"+I,!x.has(M))){if(x.add(M),b==w.na){if(!nf(ne(C,I)))return e.return(!1)}else if(b==w.ga?I=nB(I):b==w.U&&(I=nU(I,C)),D=function(e,t,n){var i=[t];return nc.forEach(function(t,r){var a=e[r];"codecs"==r?nh.includes(e.mimeType)||i.push('codecs="'+n+'"'):a&&i.push(t+'="'+a+'"')}),"PQ"==e.hdr&&i.push('eotf="smpte2084"'),i.join(";")}(y,C,I),R=nt(C,I),!en(D)&&!eW(R))return e.return(!1)}return e.return(!0)})),2);case 2:if(o.call(a,v.h,"Type negotiation should happen before MediaSourceEngine.init!"),s=ne(n.mimeType,i),t==r.na){sz(e,s,e.C,n.external),v.u(0);break}if(u=e.B.forceTransmux,(!en(s)||!e.C&&nh.includes(s))&&(u=!0),l=nt(n.mimeType,i),!u){v.u(4);break}if(c=t3(r.U,(i||"").split(",")),d=t3(r.ga,(i||"").split(",")),!c||!d){v.u(5);break}return e.s=!0,S(v,sW(e,r.U,n,c),6);case 6:return S(v,sW(e,r.ga,n,d),7);case 7:return v.return();case 5:(f=eW(l))&&(p=f(),e.j[t]=p,s=p.convertCodecs(t,l));case 4:g=s+e.B.addExtraFeaturesToSourceBuffer(s),sr(e.I);try{m=e.l.addSourceBuffer(g)}catch(t){throw new tr(2,3,3015,t,"The mediaSource_ status was "+e.l.readyState+" expected 'open'",null)}e.C&&(m.mode=ue),e.o.J(m,"error",function(){var n=e.m[t][0];n.p.reject(new tr(2,3,3014,e.i.error?e.i.error.code:0,n.uri))}),e.o.J(m,"updateend",function(){return s3(e,t)}),e.h[t]=m,e.H[t]=s,e.Fa[t]=!!n.drmInfos.length,T(v)}})}function sz(e,t,n,i){e.g||(e.g=new nd(e.D),e.g&&(e.g.A=e.B.modifyCueCallback));var r=e.g;i=i||e.ea,e=e.X,"application/cea-608"==t||"application/cea-708"==t?r.i=null:(r.i=(0,ng[t])(),r.i.setSequenceMode?r.i.setSequenceMode(n):eo("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),r.i.setManifestType?r.i.setManifestType(e):eo("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),r.B=i)}function sX(e){return!e.A&&(!e.l||"ended"==e.l.readyState)}function sY(e,t){return e=e.A||!Object.keys(e.h).length?null:t==t5?e.g.g:!(e=s$(e,t))||sC(e)?null:1==e.length&&0>e.start(0)?0:e.length?e.start(0):null}function sJ(e,t){return e.A?null:t==t5?e.g.h:sI(s$(e,t))}function s$(e,t){try{return e.h[t].buffered}catch(e){return null}}function sZ(e,t,n,i,r,a,o,s,u,l,c){var d,f,p,g,m,v,y,b,w,x,k,A;return o=void 0!==o&&o,s=void 0!==s&&s,u=void 0!==u&&u,l=void 0!==l&&l,L(function(E){var C,I,M,D,R,P,N,j,_,O,U,B,F,H,V,G,K,q,W;switch(E.g){case 1:if(t!=(d=t6).na){E.u(2);break}if(!e.C){E.u(3);break}return S(E,e.Ga,4);case 4:f=E.h,e.g.s=f;case 3:return S(E,(C=e.g,I=n,M=i?i.startTime:null,D=i?i.endTime:null,R=i?i.wa()[0]:null,L(function(e){if(1==e.g)return S(e,Promise.resolve(),2);if(!C.i||!C.j)return e.return();if(null==M||null==D)return C.i.parseInit(em(I)),e.return();for(P=C.B?M:C.s,N={periodStart:C.s,segmentStart:M,segmentEnd:D,vttOffset:P},O=(_=h(j=C.i.parseMedia(em(I),N,R))).next();!O.done;O=_.next())U=O.value,C.A(U,R||null,N);B=j.filter(function(e){return e.startTime>=C.l&&e.startTime<C.m}),C.j.append(B),null==C.g&&(C.g=Math.max(M,C.l)),C.h=Math.min(D,C.m),T(e)})),5);case 5:case 8:return E.return();case 2:if(l||!e.s){E.u(6);break}return S(E,sZ(e,d.U,n,i,r,a,o,s,u,!0),7);case 7:return S(E,sZ(e,d.ga,n,i,r,a,o,s,u,!0),8);case 6:if(!e.h[t])return E.return();if(p=e.h[t].timestampOffset,g=e.H[t],e.j[t]&&(g=e.j[t].getOriginalMimeType()),i&&null!=(m=function(e,t,n,i,r,a){var o=null,s=em(n);if(nh.includes(r))(a=aG(s)).length&&i&&((t=a.find(function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description}))&&t.data&&(o=Math.round(t.data)/1e3),e.Y.onMetadata([{cueTime:i.startTime,data:s,frames:a,dts:i.startTime,pts:i.startTime}],0,i.endTime));else if(r.includes("/mp4")&&i&&0==i.m&&i.ha&&i.ha.timescale){var u=i.ha.timescale;if(!isNaN(u)){var l=0,c=!1;(new iV).box("moof",iG).box("traf",iG).R("tfdt",function(e){l=iQ(e.reader,e.version).baseMediaDecodeTime/u,c=!0,e.parser.stop()}).parse(n,!0),c&&(o=l)}}else!r.includes("/mp4")&&!r.includes("/webm")&&az(s)&&(e.M?e.M.clearData():e.M=new aK,null!=(t=(s=e.M.parse(s)).getStartTime(t))&&(o=t),(s=s.getMetadata()).length)&&e.Y.onMetadata(s,a,i?i.endTime:null);return o}(e,t,n,i,g,p))&&(null==e.S&&t==d.ga&&(e.S=m,e.ka=i.startTime,null!=e.P&&(v=0,e.ka==e.ja&&(v=e.S-e.P),e.fa.resolve(v))),null==e.P&&t==d.U&&(e.P=m,e.ja=i.startTime,null!=e.S&&(y=0,e.ka==e.ja&&(y=e.S-e.P),e.fa.resolve(y))),b=i.startTime-m,(.001<=Math.abs(p-b)||o||s)&&(!u||0<b||!p)&&(p=b,e.Ba&&(s4(e,t,function(){return s1(e,t)},null),s4(e,t,function(){return s2(e,t,p)},null))),w=t==d.ga||!(d.ga in e.h),e.C&&w&&e.Ga.resolve(p)),a&&t==d.ga&&(e.g||sz(e,"application/cea-608",e.C,!1),e.F||(e.F=new ex(g.split(";",1)[0])),i?(x=e.F.m(n)).length&&function(e,t,n,i,r){var a=n+" "+i,o=new Map;t=h(t);for(var s=t.next();!s.done;s=t.next()){var u=s.value;s=u.stream,u=u.cue,o.has(s)||o.set(s,new Map),o.get(s).has(a)||o.get(s).set(a,[]),function e(t,n,i){n.startTime+=i,n.endTime+=i,n=h(n.nestedCues);for(var r=n.next();!r.done;r=n.next())e(t,r.value,i)}(e,u,r),u.startTime>=e.l&&u.startTime<e.m&&(o.get(s).get(a).push(u),s==e.C&&e.j.append([u]))}for(a=(r=h(o.keys())).next();!a.done;a=r.next())for(a=a.value,e.o.has(a)||e.o.set(a,new Map),s=(t=h(o.get(a).keys())).next();!s.done;s=t.next())s=s.value,u=o.get(a).get(s),e.o.get(a).set(s,u);e.g=null==e.g?Math.max(n,e.l):Math.min(e.g,Math.max(n,e.l)),e.h=Math.max(e.h,Math.min(i,e.m))}(e.g,x,i.startTime,i.endTime,p):e.F.init(n,s,c)),!e.j[t]){E.u(9);break}return S(E,e.j[t].transmux(n,r,i,e.l.duration,t),10);case 10:n=E.h;case 9:if(F=e,H=n,V=i?i.startTime:null,G=t,K=i?i.wa()[0]:null,q=null==V,W=F.Fa[G],V=F.Y.Yf(),(q=F.B.insertFakeEncryptionInInit&&q&&W)&&(V=tu(V),q=tv()||tm()||tC()||tg()&&tD()&&V),q&&"mp4"==ni(F.H[G])&&(H=function(e,t){function n(){o=!0}function i(e){s.push(e),iG(e)}var r,a=e=em(e),o=!1,s=[],u=[];
1if((new iV).box("moov",i).box("trak",i).box("mdia",i).box("minf",i).box("stbl",i).R("stsd",function(e){r=e,s.push(e),iK(e)}).R("encv",n).R("enca",n).R("dvav",function(e){u.push({box:e,ya:0x656e6376})}).R("dva1",function(e){u.push({box:e,ya:0x656e6376})}).R("dvh1",function(e){u.push({box:e,ya:0x656e6376})}).R("dvhe",function(e){u.push({box:e,ya:0x656e6376})}).R("dvc1",function(e){u.push({box:e,ya:0x656e6376})}).R("dvi1",function(e){u.push({box:e,ya:0x656e6376})}).R("hev1",function(e){u.push({box:e,ya:0x656e6376})}).R("hvc1",function(e){u.push({box:e,ya:0x656e6376})}).R("avc1",function(e){u.push({box:e,ya:0x656e6376})}).R("avc3",function(e){u.push({box:e,ya:0x656e6376})}).R("ac-3",function(e){u.push({box:e,ya:0x656e6361})}).R("ec-3",function(e){u.push({box:e,ya:0x656e6361})}).R("ac-4",function(e){u.push({box:e,ya:0x656e6361})}).R("mp4a",function(e){u.push({box:e,ya:0x656e6361})}).parse(e),o)return e;if(0==u.length||!r)throw tZ(e),new tr(2,3,3019,t);u.reverse(),t=h(u);for(var l=t.next();!l.done;l=t.next())l=l.value,a=function(e,t,n,i,r){var a=sn.value(),o=e.subarray(n.start,n.start+n.size),s=ey(o),u=new Uint8Array(n.size+a.byteLength);for(u.set(o,0),(o=ey(u)).setUint32(4,r),u.set(a,n.size),r=s.getUint32(4),o.setUint32(n.size+16,r),st(u,0,u.byteLength),r=new
1Uint8Array(e.byteLength+u.byteLength),n=tm()||tg()?n.start:n.start+n.size,a=e.subarray(n),r.set(e.subarray(0,n)),r.set(u,n),r.set(a,n+u.byteLength),i=(e=h(i)).next();!i.done;i=e.next())st(r,(i=i.value).start,i.size+u.byteLength);return u=ey(r,t.start),t=iY(t),e=u.getUint32(t),u.setUint32(t,e+1),r}(a,r,l.box,s,l.ya);return tg()&&tD()?((t=new Uint8Array(e.byteLength+a.byteLength)).set(a),t.set(e,a.byteLength),t):a}(H,K)),n=H,!i||!e.C||t==d.na||!o&&!s){E.u(11);break}if(k=i.startTime,"HLS"!=e.X||e.s||t!=d.U||!e.h[d.ga]){E.u(13);break}return S(E,e.fa,14);case 14:.1<Math.abs(A=E.h)&&(k-=A);case 13:s4(e,t,function(){return s1(e,t)},null),s4(e,t,function(){return s2(e,t,k)},null);case 11:return S(E,s4(e,t,function(){var i=n;if("video"==t&&e.W){var r=e.W;r.g&&r.g.appendBuffer(i,"video",r.o,-p)}e.h[t].appendBuffer(i)},i?i.wa()[0]:null),15);case 15:T(E)}})}function sQ(e,t){var n;return L(function(i){return 1==i.g?t==(n=t6).na?e.g?S(i,e.g.remove(0,1/0),0):i.return():S(i,s4(e,t,function(){return s0(e,t,0,e.l.duration)},null),4):e.s?S(i,s4(e,n.U,function(){return s0(e,n.U,0,e.l.duration)},null),0):i.u(0)})}function s0(e,t,n,i){i<=n?s3(e,t):e.h[t].remove(n,i)}function s1(e,t){var n=e.h[t].appendWindowStart,i=e.h[t].appendWindowEnd;e.h[t].abort(),e.h[t].appendWindowStart=n,e.h[t].appendWindowEnd=i,s3(e,t)}function s2(e,t,n){0>n&&(n+=.001),e.h[t].timestampOffset=n,s3(e,t)}function s3(e,t){if(!e.A){var n=e.m[t][0];n&&(n.p.resolve(),s6(e,t))}}function s4(e,t,n,i){return sr(e.I),n={start:n,p:new r_,uri:i},e.m[t].push(n),1==e.m[t].length&&s8(e,t),n.p}function s5(e,t){var n,i,r,a,o,s,u,l,c;return L(function(d){switch(d.g){case 1:for(sr(e.I),n=[],a=(r=h(i=Object.keys(e.h))).next(),o={};!a.done;o={ready:void 0},a=r.next())s=a.value,o.ready=new r_,u={start:function(e){return function(){return e.ready.resolve()}}(o),p:o.ready,uri:null},e.m[s].push(u),n.push(o.ready),1==e.m[s].length&&u.start();return k(d,2),S(d,Promise.all(n),4);case 4:A(d,3);break;case 2:throw E(d);case 3:return k(d,5,6),S(d,t(),6);case 6:for(C(d),c=(l=h(i)).next();!c.done;c=l.next())s6(e,c.value);I(d,0);break;case 5:throw new tr(2,3,3015,E(d),e.i.error||"No error in the media element",null)}})}function s6(e,t){e.m[t].shift(),s8(e,t)}function s8(e,t){var n=e.m[t][0];if(n)try{n.start()}catch(i){"QuotaExceededError"==i.name?n.p.reject(new tr(2,3,3017,t)):n.p.reject(new tr(2,3,3015,i,e.i.error||"No error in the media element",n.uri,t)),s6(e,t)}}function s7(e,t){return s5(e,function(){var n,i,r,a,o,s,u,l,c,d,f,p,g,m,v,y,b,w;return n=e,i=t,L(function(e){switch(e.g){case 1:for(s in n.A=!0,n.s=!1,r=n.i.currentTime,a=n.i.autoplay,o=n.i.paused,n.qa&&(n.i.autoplay=!1),e.l=0,e.j=2,n.o.cb(),n.j)n.j[s].destroy();for(u in n.h){l=n.h[u];try{n.l.removeSourceBuffer(l)}catch(e){}}return n.j={},n.h={},c=n.l.duration,n.K=new r_,n.l=sq(n,n.K),S(e,n.K,4);case 4:!isNaN(c)&&c?n.l.duration=c:!isNaN(n.ba)&&n.ba&&(n.l.duration=n.ba),d=new r_,f=n.l.sourceBuffers,p=i.size,g=0,m=function(){++g===p&&(d.resolve(),n.o.qb(f,"addsourcebuffer",m))},n.o.J(f,"addsourcebuffer",m),y=(v=h(i.keys())).next();case 5:if(y.done)return n.i.currentTime=r,S(e,d,2);return b=y.value,w=i.get(b),S(e,sW(n,b,w,w.codecs),6);case 6:y=v.next(),e.u(5);break;case 2:C(e),n.A=!1,sr(n.I),n.o.ma(n.i,"canplaythrough",function(){n.I.g||(n.i.autoplay=a,o||n.i.play())}),I(e,0)}})})}(f=sK.prototype).destroy=function(){return this.I.destroy()},f.init=function(e,t,n,i){t=void 0!==t&&t,n=void 0===n?"UNKNOWN":n,i=void 0!==i&&i;var r,a,o,s,u,l=this;return L(function(c){switch(c.g){case 1:return r=t6,S(c,l.K,2);case 2:l.C=t,l.X=n,l.Ha=i,l.Ba=!l.C&&"HLS"==l.X&&!l.Ha,l.M=null,o=(a=h(e.keys())).next();case 3:if(o.done){c.u(0);break}return s=o.value,u=e.get(s),S(c,sW(l,s,u,u.codecs),6);case 6:l.s?(l.m[r.U]=[],l.m[r.ga]=[]):l.m[s]=[],o=a.next(),c.u(3)}})},f.configure=function(e){this.B=e,this.g&&(this.g.A=e.modifyCueCallback)},f.Pa=function(){var e={total:this.A?[]:sR(this.i.buffered),audio:this.A?[]:sR(s$(this,"audio")),video:this.A?[]:sR(s$(this,"video")),text:[]};if(this.g){var t=this.g.g,n=this.g.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},f.remove=function(e,t,n,i){var r,a=this;return L(function(o){return 1==o.g?(e==(r=t6).ga&&a.F&&a.F.remove(i),e==r.na?S(o,a.g.remove(t,n),0):S(o,s4(a,e,function(){return s0(a,e,t,n)},null),4)):a.s?S(o,s4(a,r.U,function(){return s0(a,r.U,t,n)},null),0):o.u(0)})},f.flush=function(e){var t,n=this;return L(function(i){return 1==i.g?e==(t=t6).na?i.return():S(i,s4(n,e,function(){n.i.currentTime-=.001,s3(n,e)},null),2):n.s?S(i,s4(n,t.U,function(){var e=t.U;n.i.currentTime-=.001,s3(n,e)},null),0):i.u(0)})},f.endOfStream=function(e){var t=this;return L(function(n){return S(n,s5(t,function(){sX(t)||"closed"===t.l.readyState||(e?t.l.endOfStream(e):t.l.endOfStream())}),0)})},f.ob=function(e){var t=this;return L(function(n){return S(n,s5(t,function(){if(e<t.l.duration)for(var n in t.h){var i={start:function(){},p:new r_,uri:null};t.m[n].unshift(i)}t.l.duration=e,t.ba=e}),0)})},f.getDuration=function(){return this.l.duration};var s9=e.URL.createObjectURL,ue="sequence";function ut(e){var t=this;this.g=e,this.j=!1,this.i=this.g.Pc(),this.h=new td(function(){t.g.Te(.25*t.i)})}function un(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{e.g.Pc()!=t&&e.g.de(t);return}catch(e){}e.h.Aa(.25),0!=e.g.Pc()&&e.g.de(0)}function ui(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?i():(t=ur.value().get(t),n.ma(e,t,i))}ut.prototype.release=function(){this.set(this.xb()),this.h&&(this.h.stop(),this.h=null),this.g=null},ut.prototype.set=function(e){this.i=e,un(this)},ut.prototype.xb=function(){return this.g.xb()};var ur=new to(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function ua(e,t,n,i){var r=this;this.g=e,this.m=t,this.s=n,this.l=null,this.j=function(){return null==r.l&&(r.l=i()),r.l},this.o=!1,this.h=new Q,this.i=new uc(e),ui(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){uu(r,r.j())})}function uo(e){return e.o?e.g.currentTime:e.j()}function us(e,t){0<e.g.readyState?uh(e.i,t):ui(e.g,HTMLMediaElement.HAVE_METADATA,e.h,function(){uu(e,e.j())})}function uu(e,t){.001>Math.abs(e.g.currentTime-t)?ul(e):(e.h.ma(e.g,"seeking",function(){ul(e)}),uh(e.i,e.g.currentTime&&0!=e.g.currentTime?e.g.currentTime:t))}function ul(e){e.o=!0,e.h.J(e.g,"seeking",function(){return e.m()}),e.s(e.g.currentTime)}function uc(e){var t=this;this.g=e,this.m=10,this.j=this.l=this.i=0,this.h=new td(function(){0>=t.i||t.g.currentTime!=t.l||t.g.currentTime===t.j?t.h.stop():(t.g.currentTime=t.j,t.i--)})}function uh(e,t){e.l=e.g.currentTime,e.j=t,e.i=e.m,e.g.currentTime=t,e.h.Aa(.1)}function ud(e){this.h=e,this.j=!1,this.g=null,this.i=new Q}function uf(e,t,n,i,r,a){var o=this;this.i=e,this.g=t.presentationTimeline,this.B=t.minBufferTime||0,this.l=n,this.A=r,this.s=null,this.o=function(e,t,n){if(!t.stallEnabled)return null;var i=t.stallSkip;return(t=new sP(new sL(e),t.stallThreshold,n)).i=function(){i?e.currentTime+=i:(e.pause(),e.play())},t}(e,n,a),this.j=new sj(e,t.presentationTimeline,n,this.o,a),this.h=new ua(e,function(){e:{var e=o.j;e.l=!0,e.s=!1,s_(e);var t=uo(o.h);if(.001<Math.abs((e=ug(o,t))-t)){if(t=!1,!tx()||tx()&&tR())t=!0;else{var n=Date.now()/1e3;(!o.s||o.s<n-1)&&(o.s=n,t=!0)}if(t){us(o.h,e),e=void 0;break e}}o.A(),e=void 0}return e},function(e){var t=o.j;t.B=!0,t.g.seeking&&!t.l&&(t.l=!0,t.i=e),t.j&&t.j.Aa(t.o.gapJumpTimerTime),s_(t)},function(){var e=i;return null==e?e=1/0>o.g.getDuration()?o.g.Ya():o.g.Qa():0>e&&(e=o.g.Qa()+e),up(o,um(o,e))}),this.m=new td(function(){if(0!=o.i.readyState&&!o.i.paused){var e=uo(o.h),t=o.g.Ya(),n=o.g.Qa();3>n-t&&(t=n-3),e<t&&(e=ug(o,e),o.i.currentTime=e)}})}function up(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function ug(e,t){var n=Math.max(e.B,e.l.rebufferingGoal),i=e.l.safeSeekOffset,r=e.g.Ya(),a=e.g.Qa(),o=e.g.getDuration();3>a-r&&(r=a-3);var s=e.g.mc(n),u=e.g.mc(i);return n=e.g.mc(n+i),t>=o?up(e,t):t>a?a:t<r?sM(e.i.buffered,u)?u:n:t>=s||sM(e.i.buffered,t)?t:n}function um(e,t){var n=e.g.Ya();return t<n?n:t>(e=e.g.Qa())?e:t}function uv(e){var t=this;this.h=e,this.g=new Set,this.i=new td(function(){uy(t,!1)}).Aa(.25)}function uy(e,t){for(var n=h(e.g),i=n.next();!i.done;i=n.next())i.value.j(e.h.currentTime,t)}function ub(e){rK.call(this),this.g=new Map,this.h=e}
1function uw(e,t,n){return!!(e=e.h()[n])&&0<e.length&&(n=e[e.length-1].end,t>=e[0].start&&t<n)}function ux(e){rK.call(this);var t=this;this.g=new Set,this.i=e,this.h=new td(function(){for(var e=t.i(),n=h(t.g),i=n.next();!i.done;i=n.next())(i=i.value).endTime<e.start&&(t.g.delete(i),i=new rG("regionremove",new Map([["region",i]])),t.dispatchEvent(i))}).Aa(2)}function uS(e,t,n,i){this.m=e,this.i=t,this.l=n,this.h=new Map,this.j=new Map,this.g=null,this.o=i}function uT(e,t,n){if(n=void 0!==n&&n,!e.i.segmentIndex||(e.g||(e.g=e.i.segmentIndex.Xa(t,!0,e.o)),!e.g))return Promise.resolve();for(n&&e.g.next(),t=[];e.h.size<e.m&&(n=e.g.next().value);){var i=!0;if(n.preload&&null!=n.h&&(i=!1),2==n.pc()&&(i=!1),i&&n.ha&&t.push(uk(e,n.ha)),i&&!e.h.has(n)&&(i=new uD(e.l),t.push(uR(i,n,e.i)),e.h.set(n,i)),e.i.fastSwitching&&n.Ac&&n.Tc)break}return uC(e),Promise.all(t)}function uk(e,t){if(!e.i.segmentIndex||Array.from(e.j.keys()).some(function(e){return r9(e,t)}))return Promise.resolve();var n=new uD(e.l),i=uR(n,t,e.i);return e.j.set(t,n),i}function uA(e,t){t=h(t.keys());for(var n=t.next();!n.done;n=t.next())(n=n.value)&&uM(e,n)}function uE(e){uA(e,e.h),uA(e,e.j),e.g=null}function uC(e){for(var t=Array.from(e.h.keys()),n=h(e.j.keys()),i=n.next(),r={};!i.done;r={Kd:void 0},i=n.next())r.Kd=i.value,t.some(function(e){return function(t){return r9(t.ha,e.Kd)}}(r))||uM(e,r.Kd)}function uI(e,t){e.m=t;for(var n=Array.from(e.h.keys());n.length>t;){var i=n.pop();i&&uM(e,i)}uC(e)}function uM(e,t){var n=e.h;t instanceof r7&&(n=e.j),e=n.get(t),n.delete(t),e&&e.abort()}function uD(e){this.g=e,this.yc=this.he=null}function uR(e,t,n){var i=new Uint8Array(0);return e.yc=e.g(t,n,function(t){return L(function(n){if(1==n.g)return i=0<i.byteLength?tQ(i,t):t,e.he?S(n,e.he(i),3):n.u(0);i=new Uint8Array(0),T(n)})}),e.yc.promise.catch(function(e){return e instanceof tr&&7001==e.code?Promise.resolve():Promise.reject(e)})}function uP(e,t){var n=this;this.g=t,this.l=e,this.h=null,this.F=new Map,this.B=1,this.s=this.j=null,this.K=0,this.H=!1,this.i=new Map,this.D=!1,this.M=null,this.A=!1,this.m=new si(function(){var e,t,i,r,a,o,s;return e=n,L(function(n){if(1==n.g){for(t=[],r=(i=h(e.i.values())).next();!r.done;r=i.next())uX(a=r.value),t.push(uY(a)),a.O&&(uE(a.O),a.O=null);for(s=(o=h(e.o.values())).next();!s.done;s=o.next())uE(s.value);return S(n,Promise.all(t),2)}e.i.clear(),e.o.clear(),e.g=null,e.l=null,e.h=null,T(n)})}),this.N=Date.now()/1e3,this.o=new Map,this.I={projection:null,hfov:null},this.S=0,this.P=1/0,this.C=null}function uL(e,t){for(var n=0>e.g.Ja(),i=h(e.i.values()),r=i.next();!r.done;r=i.next())(r=r.value).da&&r.da.cc(n),r.O&&r.O.cc(n);for(r=(i=h(e.o.values())).next();!r.done;r=i.next())r.value.cc(n);(n=e.i.get("video"))&&(i=n.stream)&&(t?(t=i.trickModeVideo)&&!n.lb&&(u_(e,t,!1,0,!1),n.lb=i):(t=n.lb)&&(n.lb=null,u_(e,t,!0,0,!1)))}function uN(e,t,n,i,r,a,o){n=void 0!==n&&n,i=void 0===i?0:i,r=void 0!==r&&r,a=void 0!==a&&a,e.j=t,e.D&&(t.video&&u_(e,t.video,(void 0===o||o)&&n,i,r,a),t.audio&&u_(e,t.audio,n,i,r,a))}function uj(e,t){L(function(n){if(1==n.g)return e.C=null,e.s=t,e.D?t.segmentIndex?n.u(2):S(n,t.createSegmentIndex(),2):n.return();u_(e,t,!0,0,!1),T(n)})}function u_(e,t,n,i,r,a){var o,s,u,l,c,h,d,f,p,g,m,v,y,b=e.i.get(t.type);b||t.type!=t5?b&&(b.lb&&(t.trickModeVideo?(b.lb=t,t=t.trickModeVideo):b.lb=null),b.stream!=t||r)&&(e.o.has(t)?b.O=e.o.get(t):b.O&&(c=b.O,(h=t)&&h!==c.i&&(uE(c),c.i=h)),t.type==t5&&(r=ne(t.mimeType,t.codecs),sz(e.g.V,r,e.l.sequenceMode,t.external)),!e.o.has(b.stream)&&b.stream.closeSegmentIndex&&(b.ta?(r="("+b.type+":"+b.stream.id+")",e.F.has(r)||e.F.set(r,b.stream.closeSegmentIndex)):b.stream.closeSegmentIndex()),b.stream=t,b.da=null,b.se=!!a,n?b.fc?b.qd=!0:b.ta?(b.rb=!0,b.Jc=i,b.qd=!0):(uX(b),uW(e,b,!0,i).catch(function(t){e.g&&e.g.onError(t)})):b.ta||b.Na||uz(e,b,0),(o=e,s=b,L(function(e){if(1==e.g)return s.za?(u=s.stream,l=s.za,u.segmentIndex?e.u(2):S(e,u.createSegmentIndex(),2)):e.return();if(s.za!=l||s.stream!=u)return e.return();var t=o.g.lc(),n=sJ(o.g.V,s.type),i=s.stream.segmentIndex.find(s.xa?s.xa.endTime:t),r=null==i?null:s.stream.segmentIndex.get(i);if(i=r&&r.h?r.h-r.i:null,r&&!i&&(i=(r.endTime-r.getStartTime())*(s.stream.bandwidth||0)/8),i)if((r=r.ha)&&(i+=(r.h?r.h-r.i:null)||0),8*i/(r=o.g.getBandwidthEstimate())<(n||0)-t-Math.max(o.l.minBufferTime||0,o.h.rebufferingGoal))i=!0;else{t=s.za.h.h,n=s.za;var a=Date.now()/1e3-n.j/1e3;
1r=8*n.h.g/r,n=0<n.i&&a+r>=n.i,i=s.za.h.g>i||!!t||!!n||"video"==s.type&&s.stream.bandwidth===o.l.lowestVideoBitrate}else i=!1;i&&s.za.abort(),T(e)})).catch(function(t){e.g&&e.g.onError(t)})):(d=e,f=t,L(function(e){switch(e.g){case 1:return p=t6,d.K++,g=d.K,k(e,2),S(e,sQ(d.g.V,p.na),4);case 4:A(e,3);break;case 2:m=E(e),d.g&&d.g.onError(m);case 3:v=ne(f.mimeType,f.codecs),sz(d.g.V,v,d.l.sequenceMode,f.external),(d.g.V.D.isTextVisible()||d.h.alwaysStreamText)&&d.K==g&&(y=uU(d,f),d.i.set(p.na,y),uz(d,y,0)),T(e)}}))}function uO(e,t){t.fc||t.rb||(t.ta?(t.rb=!0,t.Jc=0):null==sY(e.g.V,t.type)?null==t.Na&&uz(e,t,0):(uX(t),uW(e,t,!1,0).catch(function(t){e.g&&e.g.onError(t)})))}function uU(e,t){return{stream:t,type:t.type,da:null,O:uB(e,t),xa:null,Ub:null,Uc:null,Bb:null,Ab:null,lb:null,endOfStream:!1,ta:!1,Na:null,rb:!1,Jc:0,qd:!1,fc:!1,ac:!0,Xd:!1,qc:!1,za:null}}function uB(e,t){if("video"===t.type&&e.h.disableVideoPrefetch||"audio"===t.type&&e.h.disableAudioPrefetch||t.type===t5&&("application/cea-608"==t.mimeType||"application/cea-708"==t.mimeType)||t.type===t5&&e.h.disableTextPrefetch)return null;if(e.o.has(t))return e.o.get(t);var n=e.i.get(t.type);return(n=n&&n.O)&&t===n.i?n:0<e.h.segmentPrefetchLimit?new uS(e.h.segmentPrefetchLimit,t,function(t,n,i){return uq(t,n,i||null,e.h.retryParameters,e.g.Cb)},0>e.g.Ja()):null}function uF(e,t,n,i,r,a,o,s){var u,l,c,h;return L(function(d){if(1==d.g){var f,p,g,m,v,y,b,w,x,T,C;return u=t6,l=new Map,e.j.audio&&l.set(u.U,e.j.audio),e.j.video&&l.set(u.ga,e.j.video),k(d,2),t.Bb=i,t.Ab=r,o&&(t.Nd=o),s&&(t.Od=s),t.Uc=n,c=e.l.sequenceMode||"HLS"==e.l.type,S(d,(f=e.g.V,p=t.type,g=n,m=i,v=r,y=c,b=a.mimeType||t.stream.mimeType,w=a.codecs||t.stream.codecs,x=l,L(function(e){if(1==e.g){var t,n,i,r,a,o,s,u,l,c,h,d,k,A,E,I,M,D,R,P,N,j,_;if(p==(T=t6).na){return y||(f.g.s=g),t=f.g,n=m,i=v,t.l=n,t.m=i,e.return()}return C=[],S(e,(r=f,a=p,o=b,s=w,u=x,L(function(e){if(1==e.g){if(a==(l=t6).na)return e.return(!1);if(c=nr(ns(r.H[a])),h=no(r.H[a]),k=!1,A=ne(o,s),E=r.B.forceTransmux,(!en(A)||!r.C&&nh.includes(A))&&(E=!0),E&&(M=eW(I=nt(o,s)))&&(d=M(),D=t3(l.U,(s||"").split(",")),R=t3(l.ga,(s||"").split(",")),D&&R?(k=!0,P=R,a==l.U&&(P=D),A=d.convertCodecs(a,nt(o,P))):A=d.convertCodecs(a,I)),N=nr(ns(A)),j=no(A),c===N&&h===j)return r.j[a]&&!d?(r.j[a].destroy(),delete r.j[a]):!r.j[a]&&d?r.j[a]=d:d&&(r.j[a]&&r.j[a].transmux!=d.transmux?(r.j[a].destroy(),delete r.j[a],r.j[a]=d):d.destroy()),e.return(!1);if(_=!0,(r.s||k&&d&&!r.j[a])&&(_=!1),_&&"smooth"===r.B.codecSwitchingStrategy&&ei()){var t,n,i,f;return S(e,(t=r,n=a,i=A,f=d,s4(t,n,function(){n!==t5&&(ei()&&(t.j[n]&&(t.j[n].destroy(),delete t.j[n]),f&&(t.j[n]=f),t.h[n].changeType(i+t.B.addExtraFeaturesToSourceBuffer(i)),t.H[n]=i),s3(t,n))},null)),3)}return d&&d.destroy(),S(e,s7(r,u),3)}return e.return(!0)})),2)}return e.h||(C.push(s4(f,p,function(){return s1(f,p)},null)),f.s&&C.push(s4(f,T.U,function(){return s1(f,T.U)},null))),y||(C.push(s4(f,p,function(){return s2(f,p,g)},null)),f.s&&C.push(s4(f,T.U,function(){return s2(f,T.U,g)},null))),C.push(s4(f,p,function(){f.h[p].appendWindowStart=0,f.h[p].appendWindowEnd=v,f.h[p].appendWindowStart=m,s3(f,p)},null)),f.s&&C.push(s4(f,T.U,function(){var e=T.U;f.h[e].appendWindowStart=0,f.h[e].appendWindowEnd=v,f.h[e].appendWindowStart=m,s3(f,e)},null)),S(e,Promise.all(C),0)})),4)}if(2!=d.g)return A(d,0);throw h=E(d),t.Bb=null,t.Ab=null,t.Nd=null,t.Od=null,t.Uc=null,h})}function uH(e,t,n,i,r,a,o,s){var u,l,c,h,d,f,p,g;return o=void 0!==o&&o,s=void 0!==s&&s,L(function(m){switch(m.g){case 1:return u=i.closedCaptions&&0<i.closedCaptions.size,c=null!=i.emsgSchemeIdUris&&0<i.emsgSchemeIdUris.length||e.h.dispatchAllEmsgBoxes,h=e.h.parsePrftBox&&!e.H,d="video/mp4"==i.mimeType||"audio/mp4"==i.mimeType,f=null,r.ha&&(f=r.ha.timescale),p=d&&f&&"video"===i.type&&"DASH"==e.l.type&&e.h.shouldFixTimestampOffset,(c||h||p)&&(l=new iV),c&&l.R("emsg",function(t){var n=i.emsgSchemeIdUris;if(0===t.version)var a=t.reader.Db(),o=t.reader.Db(),s=t.reader.L(),u=t.reader.L(),l=t.reader.L(),c=t.reader.L(),h=r.startTime+u/s;else s=t.reader.L(),u=(h=t.reader.Zb()/s+r.m)-r.startTime,l=t.reader.L(),c=t.reader.L(),a=t.reader.Db(),o=t.reader.Db();t=t.reader.kb(t.reader.getLength()-t.reader.la()),(n&&n.includes(a)||e.h.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==a?e.g.Jg():(n=h+l/s,(s=new rG("emsg",s=(new Map).set("detail",{startTime:h,endTime:n,schemeIdUri:a,value:o,timescale:s,presentationTimeDelta:u,eventDuration:l,id:c,messageData:t}))).cancelable=!0,e.g.onEvent(s),!s.defaultPrevented&&("https://aomedia.org/emsg/ID3"==a||"https://developer.apple.com/streaming/emsg-id3"==a)&&(a=aG(t)).length&&e.g.onMetadata([{cueTime:h,data:t,frames:a,dts:h,pts:h}],0,n)))}),h&&l.R("prft",function(t){if(!e.H&&r.ha.timescale){var n=t.reader,i=t.version;n.L(),t=1e3*(t=n.L())+n.L()/0x100000000*1e3,n=0===i?n.L():0x100000000*(i=n.L())+(n=n.L()),t=new Date(new Date(Date.UTC(1900,0,1,0,0,0)).getTime()+t).getTime(),n=new rG("prft",n=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-n/r.ha.timescale*1e3)})),e.g.onEvent(n),e.H=!0}}),p&&l.box("moof",iG).box("traf",iG).R("tfdt",function(n){var i,a,o,s;return L(function(u){return(i=iQ(n.reader,n.version).baseMediaDecodeTime)?(a=-i/f,(Number(t.Uc)||0)<a)?(o=t.Bb,s=t.Ab,S(u,uF(e,t,a,o,s,r),0)):u.u(0):u.return()})}),(c||h||p)&&l.parse(a,!1,o),S(m,uV(e,t,n),2);case 2:return sr(e.m),g=t.ac,t.ac=!1,S(m,e.g.ve(t.type,a),3);case 3:return S(m,sZ(e.g.V,t.type,a,r,i,u,g,s,o),4);case 4:sr(e.m),T(m)}})}function uV(e,t,n){var i,r,a,o,s;return L(function(u){return 1==u.g?((i=t.stream.segmentIndex)instanceof ao&&(i.ra(e.l.presentationTimeline.Ya()),r
1=[],function(e,t){e=h(e.h);for(var n=e.next();!n.done;n=e.next())t(n.value)}(i,function(e){r.push(e.Kc())})),a=Math.max(e.h.bufferBehind*e.B,e.l.presentationTimeline.h),null==(o=sY(e.g.V,t.type)))?(e.C==t&&(e.C=null),u.return()):(s=n-o-a)<=e.h.evictionGoal?u.return():S(u,e.g.V.remove(t.type,o,o+s,r),2):4!=u.g?(sr(e.m),e.C?S(u,uV(e,e.C,n),4):u.u(0)):void(sr(e.m),T(u))})}function uG(e){return e&&e.type==t5&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function uK(t,n,i,r){var a,o,s,u,l;return L(function(c){switch(c.g){case 1:if(a=i.nc())return c.return(a);if(o=null,n.O){var h,d,f,p,g,m,v,y,b=n.O,w=b.h;i instanceof r7&&(w=b.j),w.has(i)?(b=w.get(i),r&&(b.he=r),o=b.yc):o=null}return o||(o=uq(i,n.stream,r||null,t.h.retryParameters,t.g.Cb)),s=0,n.da&&(s=n.da.h),n.za=o,S(c,o.promise,2);case 2:if(u=c.h,n.za=null,l=u.data,!i.aesKey){c.u(3);break}return S(c,(h=l,d=i.aesKey,f=s,L(function(t){if(1==t.g)return(p=d).cryptoKey?t.u(2):S(t,p.fetchKey(),3);if(!(g=p.iv))for(g=em(new ArrayBuffer(16)),m=p.firstMediaSequenceNumber+f,v=g.byteLength-1;0<=v;v--)g[v]=255&m,m>>=8;return y="CBC"==d.blockCipherMode?{name:"AES-CBC",iv:g}:{name:"AES-CTR",counter:g,length:64},t.return(e.crypto.subtle.decrypt(y,p.cryptoKey,h))})),4);case 4:l=c.h;case 3:return c.return(l)}})}function uq(e,t,n,i,r){var a=e instanceof ae?e:void 0;return(e=a0(e.wa(),e.i,e.h,i,n)).contentType=t.type,r.request(rQ,e,{type:+!!a,stream:t,segment:a})}function uW(e,t,n,i){var r,a;return L(function(o){return 1==o.g?(t.rb=!1,t.qd=!1,t.Jc=0,t.fc=!0,t.xa=null,t.da=null,t.O&&!e.o.has(t.stream)&&uE(t.O),i?(r=e.g.lc(),a=e.g.V.getDuration(),S(o,e.g.V.remove(t.type,r+i,a),3)):S(o,sQ(e.g.V,t.type),4)):3!=o.g?(sr(e.m),n?S(o,e.g.V.flush(t.type),3):o.u(3)):void(sr(e.m),t.fc=!1,t.endOfStream=!1,t.ta||t.Na||uz(e,t,0),T(o))})}function uz(t,n,i){var r=n.type;(r!=t5||t.i.has(r))&&(n.Na=new th(function(){var i;return L(function(r){if(1==r.g){var a,o,s,u,l,c,d,f;return k(r,2),S(r,(a=t,o=n,L(function(t){switch(t.g){case 1:if(sr(a.m),o.ta||null==o.Na||o.fc)return t.return();if(o.Na=null,!o.rb){t.u(2);break}return S(t,uW(a,o,o.qd,o.Jc),3);case 3:case 8:return t.return();case 2:for(var n=a,i=o,r=h(n.F.entries()),p=r.next();!p.done;p=r.next()){var g=h(p.value);p=g.next().value,g=g.next().value,p.includes(i.type)&&(g(),n.F.delete(p))}if(o.stream.segmentIndex){t.u(4);break}return s=o.stream,k(t,5),S(t,o.stream.createSegmentIndex(),7);case 7:A(t,6);break;case 5:return u=E(t),S(t,uJ(a,o,u),8);case 6:if(s!=o.stream)return s.closeSegmentIndex&&s.closeSegmentIndex(),o.ta||o.Na||uz(a,o,0),t.return();case 4:k(t,9),null!=(l=function(t,n){if(uG(n))return C=t.g.V,I=n.stream.originalId||"",M=sJ(C,"video")||0,np(C.g,I,M),null;if(n.type==t5&&(D=t.g.V).g&&np(D.g,"",0),!((R=t.g.V).ua&&!R.A)&&n.type!=t5)return t.h.updateIntervalSeconds/2;var i,r,a,o,s,u,l,c,d,f,p,g,m,v,y,b,w,x,C,I,M,D,R,P,N,j,_=t.g.lc();if("audio"===n.type)for(var O=h(t.o.keys()),U=O.next();!U.done;U=O.next())(U=t.o.get(U.value)).ra(_,!0),uT(U,_);O=n.xa?n.xa.endTime:_;var B=(P=t.g.V,N=n.type,j=_,P.A?0:N==t5?null==(P=P.g).h||P.h<j?0:P.h-Math.max(j,P.g):sD(P=s$(P,N),j)),F=Math.max(1,Math.max(t.l.minBufferTime||0,t.h.rebufferingGoal,t.h.bufferingGoal)*t.B),H=t.l.presentationTimeline.getDuration()-O;if(U=sJ(t.g.V,n.type),1e-6>H&&U)return n.endOfStream=!0,"video"==n.type&&(t=t.i.get(t5))&&uG(t)&&(t.endOfStream=!0),null;if(n.endOfStream=!1,B>=F)return t.h.updateIntervalSeconds/2;if(F=!n.da,!(U=function(e,t,n,i){if(t.da)return t.da.current();if(t.xa||i)return n=t.xa?t.xa.endTime:i,e=0>e.g.Ja(),t.stream.segmentIndex&&(t.da=t.stream.segmentIndex.Xa(n,!1,e)),t.da&&t.da.next().value;var r=Math.max(n-(i=e.l.sequenceMode?0:e.h.inaccurateManifestTolerance),0);e=0>e.g.Ja();var a=null;return i&&(t.stream.segmentIndex&&(t.da=t.stream.segmentIndex.Xa(r,!1,e)),a=t.da&&t.da.next().value),a||(t.stream.segmentIndex&&(t.da=t.stream.segmentIndex.Xa(n,!1,e)),a=t.da&&t.da.next().value),a}(t,n,_,U)))return t.h.updateIntervalSeconds;B=!1,F&&n.se&&(B=!0,n.se=!1),F=1/0,H=h(H=Array.from(t.i.values()));for(var V=H.next();!V.done;V=H.next())uG(V=V.value)||V.da&&!V.da.current()||(F=Math.min(F,V.xa?V.xa.endTime:_));return O>=F+t.l.presentationTimeline.h?t.h.updateIntervalSeconds:(n.O&&n.da&&!t.o.has(n.stream)&&(n.O.ra(U.startTime),uT(n.O,U.startTime).catch(function(){})),(i=t,r=n,a=_,o=U,s=B,L(function(t){var n,C,I,M,D,R,P,N,j,_,O,U,B,F,H,V,G,K,q,W,z,X,Y,J,$;switch(t.g){case 1:if(u=t6,l=r.stream,c=r.da,r.ta=!0,k(t,2),2==o.pc())throw new tr(1,1,1011);return S(t,(n=i,C=r,I=o,M=s,L(function(e){switch(e.g){case 1:if(D=t6,R=null==C.xa,P=[],N=Math.max(0,Math.max(I.H,n.S)-.1),j=Math.min(I.F,n.P)+.01,O=na(_=I.codecs||C.stream.codecs),U=no(I.mimeType||C.stream.mimeType),(B=I.m)==C.Uc&&N==C.Bb&&j==C.Ab&&O==C.Nd&&U==C.Od){e.u(2);break}if(!(C.Nd&&C.Od&&function(e,t,n,i){if(t==t5)var r=!1;else{r=nr(ns(e.H[t]));var a=no(e.H[t]),o=ne(n,i),s=e.B.forceTransmux;(!en(o)||!e.C&&nh.includes(o))&&(s=!0),n=nt(n,i),s&&(s=eW(n))&&(o=(s=s()).convertCodecs(t,n),s.destroy()),t=nr(ns(o)),o=no(o),r=r!==t||a!==o}return!!r&&("smooth"!==e.B.codecSwitchingStrategy||!ei()||e.s)}(n.g.V,C.type,U,_))||(F=null,C.type===D.ga?F=n.i.get(D.U):C.type===D.U&&(F=n.i.get(D.ga)),!F)){e.u(3);break}return S(e,uY(F).catch(function(){}),5);case 5:F.Ub=null,F.Bb=null,F.Ab=null,uO(n,F);case 3:return S(e,uF(n,C,B,N,j,I,O,U),2);case 2:var t,i,r,a;return!r9(I.ha,C.Ub)&&(C.Ub=I.ha,I.l&&I.ha)&&(H=uK(n,C,I.ha),V=function(){var e,t,i,r,a,o,s,u;return L(function(l){switch(l.g){case 1:return k(l,2),S(l,H,4);case 4:return e=l.h,sr(n.m),t=null,i=new Map,r={projection:null,hfov:null},(new iV).box("moov",iG).box("trak",iG).box("mdia",iG).R("mdhd",function(e){t=i0(e.reader,e.version).timescale}).box("hdlr",function(e){switch((e=e.reader).skip(8),e.Db()){case"soun":i.set(D.U,t);break;case"vide":i.set(D.ga,t)}t=null}).box("minf",iG).box("stbl",iG).R("stsd",iK).box("encv",iq).box("avc1",iq).box("avc3",iq).box("hev1",iq).box("hvc1",iq).box("dvav",iq).box("dva1",iq).box("dvh1",iq).box("dvhe",iq).box("dvc1",iq).box("dvi1",iq).box("vexu",iG).box("proj",iG).R("prji",function(e){r.projection=e.reader.Db()}).box("hfov",function(e){r.hfov=e.reader.L()/1e3}).parse(e),function(e,t){if(e.I.projection!=t.projection||e.I.hfov!=t.hfov){if(null!=t.projection||null!=t.hfov){var n=(new Map).set("detail",t);n=new rG("spatialvideoinfo",n)}else n=new rG("nospatialvideoinfo");n.cancelable=!0,e.g.onEvent(n),e.I=t}}(n,r),i.has(C.type)?I.ha.timescale=i.get(C.type):null!=t&&(I.ha.timescale=t),(a=C.stream.segmentIndex)&&a instanceof ao&&(o=function(e,t){e=h(e.h);for(var n=e.next();!n.done;n=e.next())if(null!=(n=n.value).find(t))return n.Kc();return -1}(a,I.startTime)),s=C.stream.closedCaptions&&0<C.stream.closedCaptions.size,S(l,n.g.ve(C.type,e),5);case 5:return S(l,sZ(n.g.V,C.type,e,null,C.stream,s,C.ac,M,!1,!1,o),6);case 6:A(l,0);break;case 2:throw u=E(l),C.Ub=null,u}})},G=I.startTime,R&&(null!=(K=sJ(n.g.V,C.type))&&(G=K),tv()||tb()||tw())&&(tv()&&null!=K&&1>I.endTime-K?G=I.endTime+2:null!=K&&.1<=Math.abs(K-I.startTime)&&(G=I.endTime),ty()&&--G),n.g.Ig(G,I.ha),P.push(V())),n.l.sequenceMode&&(q=C.xa?C.xa.o:null,I.o!=q&&P.push((t=n.g.V,i=C.type,r=I.startTime,L(function(e){return 1==e.g?i==(a=t6).na?e.return():(i==a.ga&&(t.Ga=new r_),s4(t,i,function(){return s1(t,i)},null),t.s&&s4(t,a.U,function(){return s1(t,a.U)},null),S(e,s4(t,i,function(){return s2(t,i,r)},null),2)):t.s?S(e,s4(t,a.U,function(){return s2(t,a.U,r)},null),0):e.u(0)})))),S(e,Promise.all(P),0)}})),4);case 4:if(sr(i.m),i.A)return t.return();if(d="video/mp4"==l.mimeType||"audio/mp4"==l.mimeType,f=e.ReadableStream,i.h.lowLatencyMode&&i.l.isLowLatency&&f&&d&&("HLS"!=i.l.type||o.A))return g=new Uint8Array(0),v=m=!1,b=function(e){var t,n,u;return L(function(c){switch(c.g){case 1:var h,d,f;if(m||(v=!0,sr(i.m),i.A))return c.return();if(k(c,2),h=g,d=e,(f=new Uint8Array(h.length+d.length)).set(h),f.set(d,h.length),g=f,t=!1,n=0,(new iV).box("mdat",function(e){n=e.size+e.start,t=!0}).parse(g,!1,!0),!t){c.u(4);break}return u=g.subarray(0,n),g=g.subarray(n),S(c,uH(i,r,a,l,o,u,!0,s),5);case 5:r.O&&r.da&&uT(r.O,o.startTime,!0);case 4:A(c,0);break;case 2:y=E(c),T(c)}})},S(t,uK(i,r,o,b),9);return S(t,uK(i,r,o),7);case 7:if(p=t.h,sr(i.m),i.A)return t.return();return sr(i.m),r.rb?(r.ta=!1,uz(i,r,0),t.return()):S(t,uH(i,r,a,l,o,p,!1,s),6);case 9:if(w=t.h,y)throw y;if(v){t.u(10);break}return m=!0,sr(i.m),i.A?t.return():r.rb?(r.ta=!1,uz(i,r,0),t.return()):S(t,uH(i,r,a,l,o,w,!1,s),10);case 10:r.O&&r.da&&uT(r.O,o.startTime,!0);case 6:if(sr(i.m),i.A)return t.return();r.xa=o,c.next(),r.ta=!1,r.Xd=!1,JSON.stringify(i.g.V.Pa()[r.type]),r.rb||i.g.Ud(o,r.stream),uz(i,r,0),A(t,0);break;case 2:if(x=E(t),sr(i.m,x),i.A)return t.return();if(r.ta=!1,7001==x.code)r.ta=!1,uX(r),uz(i,r,0),t.u(0);else if(r.type==u.na&&i.h.ignoreTextStreamFailures)i.i.delete(u.na),t.u(0);else{if(3017==x.code){return S(t,(W=i,z=r,X=x,L(function(e){if(1==e.g){if(Array.from(W.i.values()).some(function(e){return e!=z&&e.Xd}))return e.u(2);if(Y=0===W.h.maxDisabledTime&&1011==X.code?1:W.h.maxDisabledTime,W.g.disableStream(z.stream,Y))return e.return();if(20<(J=Math.round(100*W.B)))W.B-=.2;else{if(!(4<J))return z.qc=!0,W.A=!0,W.g.onError(X),e.return();W.B-=.04}return z.Xd=!0,$=W.g.lc(),S(e,uV(W,z,$),2)}uz(W,z,4),T(e)}
1)),0)}return r.qc=!0,1==x.category&&r.O&&uM(r.O,o),x.severity=2,S(t,uJ(i,r,x),0)}}})).catch(function(){}),null)}(a,o))&&(uz(a,o,l),o.qc=!1),A(t,10);break;case 9:return c=E(t),S(t,uJ(a,o,c),11);case 11:return t.return();case 10:if(d=Array.from(a.i.values()),!a.D||!d.every(function(e){return e.endOfStream})){t.u(0);break}return S(t,a.g.V.endOfStream(),13);case 13:sr(a.m),0!=(f=a.g.V.getDuration())&&f<a.l.presentationTimeline.getDuration()&&a.l.presentationTimeline.ob(f),T(t)}})),4)}if(2!=r.g)return A(r,0);i=E(r),t.g&&t.g.onError(i),T(r)})}).ca(i))}function uX(e){null!=e.Na&&(e.Na.stop(),e.Na=null)}function uY(e){return L(function(t){return e.za?S(t,e.za.abort(),0):t.u(0)})}function uJ(e,t,n){var i;return L(function(r){if(1==r.g)return S(r,rN(e.M),2);if(sr(e.m),1===n.category&&1003!=n.code){if(t.lb)return uL(e,!1),r.return();i=0===e.h.maxDisabledTime&&1011==n.code?1:e.h.maxDisabledTime,n.handled=e.g.disableStream(t.stream,i),n.handled&&(n.severity=1)}n.handled&&1011==n.code||e.g.onError(n),n.handled||e.h.failureCallback(n),T(r)})}function u$(){this.g=null,this.h=[]}function uZ(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration),e=h(e.h);for(var i=e.next();!i.done;i=e.next())n+=(i=i.value).state==t?i.duration:0;return n}function uQ(){this.i=this.h=null,this.g=[]}function u0(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function u1(){this.sb=this.Qe=this.A=this.B=this.M=this.C=this.s=this.j=this.H=this.D=this.K=this.m=this.i=this.X=this.Y=this.P=this.S=this.W=this.l=this.o=NaN,this.N=0,this.F=this.I=NaN,this.g=new u$,this.h=new uQ}function u2(e,t,n,i){rK.call(this),this.M=e,this.S=t,this.ua=i.networkingEngine,this.A=n,this.o=null,this.qa=0,this.Ta=i.Lc,this.C=i.Bg,this.Ua=i.Cg,this.g=i.config,this.l=this.D=this.i=null,this.ea=!1,this.F=i.Ng,this.ja=!1,this.h=null,this.Y=!1,this.j=this.B=null,this.X=!1,this.K=new Map,this.ka=!1,this.Ba=i.Mg,this.W=new u1,this.ba=new r_,this.m=new r_,this.N=null,this.s=!1,this.Ha=i.Gf,this.fa=null,this.Fa=i.Ff,this.P=!1,this.I=[],this.H=[]}function u3(e,t,n){(e=t?e.H:e.I)?e.push(n):n()}function u4(e,t){if(e.N=t,e.P=!0,e.I){t=h(e.I);for(var n=t.next();!n.done;n=t.next())(n=n.value)()}e.I=null}function u5(e){if(e.s)throw new tr(2,7,7003)}function u6(e,t){e.dispatchEvent(new rG("onstatechange",(new Map).set("state",t)))}function u8(e,t){var n,i,r;return L(function(a){switch(a.g){case 1:if(!e.i||e.h)return a.return();u6(e,"drm-engine"),e.qa=Date.now()/1e3,e.h=e.Ta(),e.C.h=e.h,e.h.configure(e.g.drm);var o=e.C;if(!nN(e.i.variants,o.g.restrictions,o.i)){a.u(2);break}return n=new rG("trackschanged",void 0),S(a,Promise.resolve(),3);case 3:u5(e),e.dispatchEvent(n);case 2:return i=nX(e.i.variants),S(a,su(e.h,i,e.i.offlineSessionIds),4);case 4:if(u5(e),!t){a.u(5);break}return S(a,e.h.fb(t),6);case 6:u5(e);case 5:return S(a,sU(e.C,e.i),7);case 7:if(!a.h){a.u(0);break}return r=new rG("trackschanged",void 0),S(a,Promise.resolve(),9);case 9:e.dispatchEvent(r),T(a)}})}function u7(e,t,n){var i,r,a,o;return L(function(s){return 1==s.g?(i=new uS(e.g.streaming.segmentPrefetchLimit||2,t,function(t,n,i){return uq(t,n,i||null,e.g.streaming.retryParameters,e.ua)},!1),e.K.set(t.id,i),S(s,t.createSegmentIndex(),2)):(r=e.A||0,(o=(a=t.segmentIndex.Xa(r))?a.current():null)||(o=t.segmentIndex.g[0]||null),o?n?o.ha?S(s,uk(i,o.ha),0):s.u(0):S(s,uT(i,o.startTime),0):s.u(0))})}function u9(e,t){rK.call(this);var n=this;this.i=e,this.l=t,this.g=new Map,this.m=[{Hb:null,Gb:ln,zb:function(e,t){return le(n,"enter",e,t)}},{Hb:lt,Gb:ln,zb:function(e,t){return le(n,"enter",e,t)}},{Hb:li,Gb:ln,zb:function(e,t){return le(n,"enter",e,t)}},{Hb:ln,Gb:lt,zb:function(e,t){return le(n,"exit",e,t)}},{Hb:ln,Gb:li,zb:function(e,t){return le(n,"exit",e,t)}},{Hb:lt,Gb:li,zb:function(e,t){return le(n,"skip",e,t)}},{Hb:li,Gb:lt,zb:function(e,t){return le(n,"skip",e,t)}}],this.h=new Q,this.h.J(this.i,"regionremove",function(e){n.g.delete(e.region)})}function le(e,t,n,i){t=new rG(t,new Map([["region",n],["seeking",i]])),e.dispatchEvent(t)}ua.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.m=function(){},this.g=null},uc.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},(f=ud.prototype).ready=function(){var e=this;ui(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){if(null==e.g||0==e.g&&1/0!=e.h.duration)e.j=!0;else{var t=e.h.currentTime,n=e.g;0>e.g&&(n=Math.max(0,t+e.g)),t!=n?(e.i.ma(e.h,"seeking",function(){e.j=!0}),e.h.currentTime=n):e.j=!0}})},f.release=function(){this.i&&(this.i.release(),this.i=null),this.h=null},f.sd=function(e){this.g=this.j?this.g:e},f.Gc=function(){return(this.j?this.h.currentTime:this.g)||0},f.re=function(){return 0},f.qe=function(){return 0},f.Ue=function(){},(f=uf.prototype).ready=function(){this.m.Aa(.25)},f.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.m&&(this.m.stop(),this.m=null),this.i=this.h=this.g=this.l=null,this.A=function(){}},f.sd=function(e){us(this.h,e)},f.Gc=function(){var e=uo(this.h);return 0<this.i.readyState&&!this.i.paused?um(this,e):e},f.re=function(){return this.o?this.o.o:0},f.qe=function(){return this.j.D},f.Ue=function(){this.j.Ud()},uv.prototype.release=function(){this.i.stop();for(var e=h(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},y(ub,rK),ub.prototype.release=function(){this.g.clear(),rK.prototype.release.call(this)},ub.prototype.j=function(e){for(var t=h(this.g.values()),n=t.next();!n.done;n=t.next()){var i=(n=n.value).yd;e:{for(var r=n.Cc,a=r.length-1;0<=a;a--){var o=r[a];if(o.position<=e){r=o.Qd;break e}}r=null}a=r&&!(i===r||i&&r&&i.bandwidth==r.bandwidth&&i.audioSamplingRate==r.audioSamplingRate&&i.codecs==r.codecs&&i.contentType==r.contentType&&i.frameRate==r.frameRate&&i.height==r.height&&i.mimeType==r.mimeType&&i.channelsCount==r.channelsCount&&i.pixelAspectRatio==r.pixelAspectRatio&&i.width==r.width),o=r&&i&&r.label&&i.label&&i.label!==r.label;var s=r&&i&&r.language&&i.language&&i.language!==r.language;i=r&&i&&r.roles&&i.roles&&!eI(i.roles,r.roles),(o||s||i)&&uw(this,e,r.contentType)&&(n.yd=r,i=new rG("audiotrackchange",new Map([["quality",r],["position",e]])),this.dispatchEvent(i)),a&&uw(this,e,r.contentType)&&(n.yd=r,JSON.stringify(r),n=new rG("qual
1itychange",new Map([["quality",r],["position",e]])),this.dispatchEvent(n))}},y(ux,rK),ux.prototype.release=function(){this.g.clear(),this.h.stop(),rK.prototype.release.call(this)},uS.prototype.ra=function(e,t){t=void 0!==t&&t;for(var n=h(this.h.keys()),i=n.next();!i.done;i=n.next())e>(i=i.value).endTime&&uM(this,i);t&&uC(this)},uS.prototype.cc=function(e){this.o=e,this.g&&this.g.cc(e)},uD.prototype.abort=function(){this.yc&&this.yc.abort()},(f=uP.prototype).destroy=function(){return this.m.destroy()},f.configure=function(e){if(this.h=e,this.M=new rL({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0),e.disableAudioPrefetch){var t=this.i.get("audio");t&&t.O&&(uE(t.O),t.O=null),t=h(this.o.keys());for(var n=t.next();!n.done;n=t.next())n=n.value,uE(this.o.get(n)),this.o.delete(n)}for(e.disableTextPrefetch&&(t=this.i.get(t5))&&t.O&&(uE(t.O),t.O=null),e.disableVideoPrefetch&&(t=this.i.get("video"))&&t.O&&(uE(t.O),t.O=null),n=(t=h(this.i.keys())).next();!n.done;n=t.next())(n=this.i.get(n.value)).O?(uI(n.O,e.segmentPrefetchLimit),0<e.segmentPrefetchLimit||(uE(n.O),n.O=null)):0<e.segmentPrefetchLimit&&(n.O=uB(this,n.stream));e.disableAudioPrefetch||function(e){for(var t=e.h.segmentPrefetchLimit,n=e.h.prefetchAudioLanguages,i=h(e.l.variants),r=i.next(),a={};!r.done;a={Ka:void 0},r=i.next())if(a.Ka=r.value,a.Ka.audio)if(e.o.has(a.Ka.audio)){if(uI(r=e.o.get(a.Ka.audio),t),!(0<t&&n.some(function(e){return function(t){return nw(e.Ka.audio.language,t)}}(a)))){var o=e.i.get(a.Ka.audio.type);r!==(o&&o.O)&&uE(r),e.o.delete(a.Ka.audio)}}else!(0>=t)&&n.some(function(e){return function(t){return nw(e.Ka.audio.language,t)}}(a))&&(r=uB(e,a.Ka.audio))&&(a.Ka.audio.segmentIndex||a.Ka.audio.createSegmentIndex(),e.o.set(a.Ka.audio,r))}(this)},f.start=function(e){var t=this;return L(function(n){if(1==n.g){var i,r,a,o,s,u,l,c,d,f,p;return S(n,(i=t,r=e||new Map,L(function(e){if(1==e.g){if(a=t6,!i.j)throw new tr(2,5,5006);return o=new Map,s=new Set,i.j.audio&&(o.set(a.U,i.j.audio),s.add(i.j.audio)),i.j.video&&(o.set(a.ga,i.j.video),s.add(i.j.video)),i.s&&(o.set(a.na,i.s),s.add(i.s)),S(e,i.g.V.init(o,i.l.sequenceMode,i.l.type,i.l.ignoreManifestTimestampsInSegmentsMode),2)}for(sr(i.m),i.updateDuration(),l=(u=h(o.keys())).next();!l.done;l=u.next())c=l.value,d=o.get(c),i.i.has(c)||(f=uU(i,d),r.has(d.id)&&(function(e,t){e.l=t,e=h(e.h.values());for(var n=e.next();!n.done;n=e.next())n.value.g=t}(p=r.get(d.id),function(e,t,n){return uq(e,t,n||null,i.h.retryParameters,i.g.Cb)}),f.O=p),i.i.set(c,f),uz(i,f,0));T(e)})),2)}sr(t.m),t.D=!0,T(n)})},f.ac=function(){if(this.g)for(var e=this.g.lc(),t=h(this.i.keys()),n=t.next();!n.done;n=t.next()){var i=n.value;n=this.i.get(i);var r=this.g.V;if(!(r=!r.A&&(i==t5?null!=(r=r.g).g&&null!=r.h&&e>=r.g&&e<r.h:sM(r=s$(r,i),e)))){if(n.O&&(n.O.g=null),"audio"===n.type){r=h(this.o.values());for(var a=r.next();!a.done;a=r.next())a.value.g=null}n.da=null,(null!=sJ(this.g.V,i)||n.ta)&&uO(this,n),n.za&&(n.za.abort(),n.za=null),i===t5&&(i=this.g.V).F&&i.F.j(),n.ac=!0}}},f.updateDuration=function(){var e=this.l.presentationTimeline.getDuration();1/0>e?this.g.V.ob(e):this.g.V.ob(this.h.infiniteLiveStreamDuration?1/0:0x100000000)},y(u2,rK),(f=u2.prototype).getStartTime=function(){return this.A},f.Nc=function(){return this.M},f.Cd=function(){return this.i},f.getStats=function(){return this.W},f.start=function(){var e,t=this;L(function(n){var i,r,a,o,s,u,l,c,h,d,f,p;switch(n.g){case 1:return S(n,Promise.resolve(),2);case 2:return k(n,3),S(n,(i=t,L(function(e){switch(e.g){case 1:if(u6(i,"manifest-parser"),i.l||(i.D=aC(i.M,i.S),i.l=i.D(),i.l.configure(i.g.manifest)),r=Date.now()/1e3,u6(i,"manifest"),i.i){e.u(2);break}return S(e,i.l.start(i.M,i.Ua),3);case 3:i.i=e.h;case 2:return i.ba.resolve(),a=new rG("manifestparsed",void 0),S(e,Promise.resolve(),4);case 4:if(i.dispatchEvent(a),0==i.i.variants.length)throw new tr(2,4,4036);(function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))})(i.i),o=Date.now()/1e3-r,i.W.K=o,T(e)}})),5);case 5:if(u5(t),tN("webkit")){n.u(6);break}return S(n,u8(t),7);case 7:u5(t);case 6:return S(n,(s=t,L(function(e){return(s.o||(s.o=new sS(s.g.preferredAudioLanguage,s.g.preferredVariantRole,s.g.preferredAudioChannelCount,s.g.preferredVideoHdrLevel,s.g.preferSpatialAudio,s.g.preferredVideoLayout,s.g.preferredAudioLabel,s.g.preferredVideoLabel,s.g.mediaSource.codecSwitchingStrategy,s.g.manifest.dash.enableAudioGroups)),s.Fa&&(u=s.g.abrFactory,s.B=u,s.j=u(),s.j.configure(s.g.abr)),s.Ha&&(l=s.i.presentationTimeline.T(),c=nX(s.i.variants),h=s.o.create(c),s.j.configure(s.g.abr),s.j.setVariants(Array.from(h.values())
1),d=s.j.chooseVariant(!0)))?(f=[],s.fa=d,d.video&&f.push(u7(s,d.video,l)),d.audio&&f.push(u7(s,d.audio,l)),S(e,Promise.all(f),0)):e.u(0)})),8);case 8:if(u5(t),!t.h){n.u(9);break}return S(n,(p=t.h,L(function(e){return 1==e.g?p.M?S(e,p.l,3):e.u(0):S(e,Promise.all(p.S.map(function(e){return e.promise})),0)})),10);case 10:u5(t);case 9:t.m.resolve(),A(n,0);break;case 3:e=E(n),t.m.reject(e),T(n)}})},f.dispatchEvent=function(e){return this.N?this.N.dispatchEvent(e):rK.prototype.dispatchEvent.call(this,e)},f.onError=function(e){2===e.severity&&(this.m.reject(e),this.destroy());var t=(new Map).set("detail",e);t=new rG("error",t),this.dispatchEvent(t),t.defaultPrevented&&(e.handled=!0)},f.configure=function(e,t){e=oS(e,t),oR(this.g,e)},f.getConfiguration=function(){return nM(this.g)},f.kh=function(){return this.m},f.destroy=function(){var e,t,n=this;return L(function(i){switch(i.g){case 1:if(n.s=!0,!n.l||n.ea){i.u(2);break}return S(i,n.l.stop(),2);case 2:if(!n.j||n.X){i.u(4);break}return S(i,n.j.stop(),4);case 4:if(n.F&&!n.ja&&n.F.release(),!n.h||n.Y){i.u(6);break}return S(i,n.h.destroy(),6);case 6:if(0<n.K.size&&!n.ka)for(t=(e=h(n.K.values())).next();!t.done;t=e.next())uE(t.value);T(i)}})},H("shaka.media.PreloadManager",u2),u2.prototype.destroy=u2.prototype.destroy,u2.prototype.waitForFinish=u2.prototype.kh,y(u9,rK),u9.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,rK.prototype.release.call(this)},u9.prototype.j=function(e,t){if(!this.l||0!=e){this.l=!1;for(var n=h(this.i.g),i=n.next();!i.done;i=n.next()){i=i.value;var r=this.g.get(i),a=e<i.startTime?lt:e>i.endTime?li:ln;this.g.set(i,a);for(var o=h(this.m),s=o.next();!s.done;s=o.next())(s=s.value).Hb==r&&s.Gb==a&&s.zb(i,t)}}};var lt=1,ln=2,li=3;function lr(){}function la(t){try{var n,i=t.split(":");if(2>i.length||"data"!=i[0])throw new tr(2,1,1004,t);var r=i.slice(1).join(":").split(",");if(2>r.length)throw new tr(2,1,1004,t);var a=r[0],o=e.decodeURIComponent(r.slice(1).join(",")),s=a.split(";"),u=s[0];return i=!1,1<s.length&&"base64"==s[s.length-1]&&(i=!0,s.pop()),n=i?tJ(o):tV(o),rF({uri:t,originalUri:t,data:n,headers:{"content-type":u}})}catch(e){return rU(e)}}function lo(e,t,n,i,r,a){if(200<=n&&299>=n&&202!=n)return{uri:r||i,originalUri:i,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};var o=null;try{o=tH(t)}catch(e){}throw new tr(401==n||403==n?2:1,1,1001,i,n,o,e,a,r||i)}function ls(){}function lu(e,t,n,i,r){var a,o,s,u,l,c,h,d,f,p,g,m,v,y,b,w,x,C,I,M=new lp;sa(t.headers).forEach(function(e,t){M.append(t,e)});var D=new ld,R={we:!1,vf:!1};if(e=new rO((a=e,o=n,s={body:t.body||void 0,headers:M,method:t.method,signal:D.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},u=R,l=i,c=r,h=t.streamDataCallback,e=L(function(e){switch(e.g){case 1:return d=lh,f=lf,v=m=0,y=Date.now(),k(e,2),S(e,d(a,s),4);case 4:if(c(ll((p=e.h).headers)),"HEAD"==s.method){e.u(5);break}return b=p.clone().body.getReader(),x=(w=p.headers.get("Content-Length"))?parseInt(w,10):0,new f({start:function(e){!function t(){var n,i,r;return L(function(a){switch(a.g){case 1:return k(a,2),S(a,b.read(),4);case 4:n=a.h,A(a,3);break;case 2:return E(a),a.return();case 3:if(n.done||(m+=n.value.byteLength,!h)){a.u(5);break}return S(a,h(n.value),5);case 5:(100<(i=Date.now())-y||n.done)&&(r=n.done?0:x-m,l(i-y,m-v,r),v=m,y=i),n.done?e.close():(e.enqueue(n.value),t()),T(a)}})}()}}),S(e,p.arrayBuffer(),6);case 6:g=e.h;case 5:A(e,3);break;case 2:if(C=E(e),u.we)throw new tr(1,1,7001,a,o);if(u.vf)throw new tr(1,1,1003,a,o);throw new tr(1,1,1002,a,C,o);case 3:return I=ll(p.headers),e.return(lo(I,g,p.status,a,p.url,o))}})),function(){return R.we=!0,D.abort(),Promise.resolve()}),t=t.retryParameters.timeout){var P=new td(function(){R.vf=!0,D.abort()});P.ca(t/1e3),e.finally(function(){P.stop()})}return e}function ll(e){var t={};return e.forEach(function(e,n){t[n.trim()]=e}),t}function lc(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!!e.Response&&!!new Response("").body&&!(!e.fetch||"polyfill"in e.fetch||!e.AbortController)}H("shaka.net.DataUriPlugin",lr),lr.parse=la,rX("data",la),H("shaka.net.HttpFetchPlugin",ls),ls.isSupported=lc,ls.parse=lu;var lh=e.fetch,ld=e.AbortController,lf=e.ReadableStream,lp=e.Headers;function lg(){}function lm(e,t,n,i,r){var a=new ly,o=Date.now(),s=0;return new rO(new Promise(function(u,l){a.open(t.method,e,!0),a.responseType="arraybuffer",a.timeout=t.retryParameters.timeout,a.withCredentials=t.allowCrossSiteCredentials,a.onabort=function(){l(new tr(1,1,7001,e,
1n))};var c=!1;for(var h in a.onreadystatechange=function(){2!=a.readyState||c||(r(lv(a)),c=!0)},a.onload=function(t){var r=lv(a),c=a.response;try{i(Date.now()-o,t.loaded-s,0);var h=lo(r,c,a.status,e,a.responseURL,n);u(h)}catch(e){l(e)}},a.onerror=function(t){l(new tr(1,1,1002,e,t,n))},a.ontimeout=function(){l(new tr(1,1,1003,e,n))},a.onprogress=function(e){var t=Date.now();(100<t-o||e.lengthComputable&&e.loaded==e.total)&&(i(t-o,e.loaded-s,4==a.readyState?0:e.total-e.loaded),s=e.loaded,o=t)},t.headers)a.setRequestHeader(h.toLowerCase(),t.headers[h]);a.send(t.body)}),function(){return a.abort(),Promise.resolve()})}function lv(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={},t=h(t);for(var n=t.next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}lc()&&(rX("http",lu,2,!0),rX("https",lu,2,!0),rX("blob",lu,2,!0)),H("shaka.net.HttpXHRPlugin",lg),lg.parse=lm;var ly=e.XMLHttpRequest;function lb(e,t,n){var i,r,a,o;return L(function(s){switch(s.g){case 1:var u=new eQ(e).La.split("/").pop().split(".");if(i=lw[1==u.length?"":u.pop().toLowerCase()])return s.return(i);return r=0,a=rY([e],n),k(s,2),a.method="HEAD",S(s,t.request(r,a).promise,4);case 4:i=s.h.headers["content-type"],A(s,3);break;case 2:if(!(o=E(s))||1002!=o.code&&1001!=o.code){s.u(3);break}return a.method="GET",S(s,t.request(r,a).promise,6);case 6:i=s.h.headers["content-type"];case 3:return s.return(i?i.toLowerCase().split(";").shift():"")}})}rX("http",lm,1,!0),rX("https",lm,1,!0),rX("blob",lm,1,!0);var lw={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"};function lx(e){var t=(e=e.toLowerCase()).replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(t?e="#"+(256|parseInt(t[1],10)).toString(16).slice(1)+(256|parseInt(t[2],10)).toString(16).slice(1)+(256|parseInt(t[3],10)).toString(16).slice(1):e.startsWith("#")&&7<e.length&&(e=e.slice(0,7)),e){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function lS(e,t){var n=[];e=h(lT(e));for(var i=e.next();!i.done;i=e.next())if((i=i.value).isContainer)n.push.apply(n,d(lS(i.nestedCues,i)));else{var r=i.clone();r.nestedCues=[],r.payload=function e(t,n){if(t.lineBreak)return"\n";if(t.nestedCues.length)return t.nestedCues.map(function(n){return e(n,t)}).join("");if(!t.payload)return t.payload;var i=[],r=700<=t.fontWeight,a="italic"==t.fontStyle,o=t.textDecoration.includes("underline");return r&&i.push(["b"]),a&&i.push(["i"]),o&&i.push(["u"]),""==(a=t.color)&&n&&(a=n.color),r="",(a=lx(a))&&(r+="."+a),""==(a=t.backgroundColor)&&n&&(a=n.backgroundColor),(n=lx(a))&&(r+=".bg_"+n),r&&i.push(["c",r]),i.reduceRight(function(e,t){var n=h(t);return"<"+(t=n.next().value)+(void 0===(n=n.next().value)?"":n)+">"+e+"</"+t+">"},t.payload)}(i,t),n.push(r)}return n}function lT(e){var t=[];e=h(e);for(var n=e.next(),i={};!n.done;i={vd:void 0},n=e.next())i.vd=n.value,t.some(function(e){return function(t){return eR(e.vd,t)}}(i))||t.push(i.vd);return t}function lk(e,t){this.g=null;for(var n=h(Array.from(e.textTracks)),i=n.next();!i.done;i=n.next())"metadata"!==(i=i.value).kind&&"chapters"!==i.kind&&(i.mode="disabled",i.label==t&&(this.g=i));this.g||(this.g=e.addTextTrack("subtitles",t)),this.g.mode="hidden"}function lA(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var i=h(Array.from(e.cues)),r=i.next();!r.done;r=i.next())(r=r.value)&&t(r)&&e.removeCue(r);e.mode=n}function lE(){}function lC(){}function lI(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function lM(t,n,i){var r=this;this.m=!1,this.h=[],this.A=t,this.s=n,this.l=null,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.s.appendChild(this.g),i&&i.captionsUpdatePeriod||eo("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config."),this.C=new td(function(){r.A.paused||lD(r)}).Aa(i&&i.captionsUpdatePeriod?i.captionsUpdatePeriod:.25),this.i=new Map,this.j=new Q,this.j.J(document,"fullscreenchange",function(){lD(r,!0)}),this.j.J(this.A,"seeking",function(){lD(r,!0)}),this.j.J(this.A,"resize",function(){var e=r.A,t=e.videoWidth;e=e.videoHeight,t&&e?r.l=t/e:r.l=null}),this.o=null,"ResizeObserver"in e&&(this.o=new ResizeObserver(function(){lD(r,!0)}),this.o.observe(this.g)),this.B=new Map}function lD(e,t){if(e.g){var n=e.A.currentTime;if(!e.m||(void 0===t?0:t)){t=h(e.B.values());for(var i=t.next();!i.done;i=t.next())lI(i.value);lI(e.g),e.i.clear(),e.B.clear()}e.m&&function e(t,n,i,r,a){var o=!1,s=[],u=[];n=h(n);for(var l=n.next();!l.done;l=n.next()){l=l.value,a.push(l);var c=t.i.get(l),d=l.startTime<=r&&l.endTime>r,f=c?c.zf:null;c&&(s.push(c.xd),c.Eb&&s.push(c.Eb),d||(o=!0,t.i.delete(l),c=null)),d&&(u.pu
1sh(l),c?function(e,t){for(;null!=t;){if(t==e.g)return!0;t=t.parentElement}return!1}(t,f)||(o=!0):(function(e,t,n){var i=1<n.length,r=i?"span":"div";t.lineBreak&&(r="br"),t.rubyTag&&(r=t.rubyTag),i=!i&&0<t.nestedCues.length;var a=document.createElement(r);if("br"!=r&&function(e,t,n,i,r){var a,o,s,u=t.style,l=0==n.nestedCues.length,c=1<i.length;u.whiteSpace="pre-wrap";var h=n.payload.replace(/\s+$/g,function(e){return"\xa0".repeat(e.length)});if(u.webkitTextStrokeColor=n.textStrokeColor,u.webkitTextStrokeWidth=n.textStrokeWidth,u.color=n.color,u.direction=n.direction,u.opacity=n.opacity,u.paddingLeft=lR(n.linePadding,n,e.s),u.paddingRight=lR(n.linePadding,n,e.s),u.textCombineUpright=n.textCombineUpright,u.textShadow=n.textShadow,n.backgroundImage)u.backgroundImage="url('"+n.backgroundImage+"')",u.backgroundRepeat="no-repeat",u.backgroundSize="contain",u.backgroundPosition="center",n.backgroundColor&&(u.backgroundColor=n.backgroundColor),u.width="100%",u.height="100%";else{if(n.nestedCues.length)var d=t;else d=document.createElement("span"),t.appendChild(d);n.border&&(d.style.border=n.border),r||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var i=t(e[n]);if(i||0===i)return i}return null}(i,function(e){return e.backgroundColor}))?d.style.backgroundColor=t:h&&(d.style.backgroundColor="rgba(0, 0, 0, 0.8)")),h&&(d.textContent=h)}c&&!i[i.length-1].isContainer?u.display="inline":(u.display="flex",u.flexDirection="column",u.alignItems="center","left"==n.textAlign||"start"==n.textAlign?(u.width="100%",u.alignItems="start"):("right"==n.textAlign||"end"==n.textAlign)&&(u.width="100%",u.alignItems="end"),u.justifyContent="before"==n.displayAlign?"flex-start":"center"==n.displayAlign?"center":"flex-end"),l||(u.margin="0"),u.fontFamily=n.fontFamily,u.fontWeight=n.fontWeight.toString(),u.fontStyle=n.fontStyle,u.letterSpacing=n.letterSpacing,u.fontSize=lR(n.fontSize,n,e.s),null!=(i=n.line)&&((l=n.lineInterpretation)==eU&&(l=1,c=16,e.l&&1>e.l&&(c=32),i=0>i?100+i/c*100:i/c*100),1==l&&(u.position="absolute",n.writingMode==eO?(u.width="100%",n.lineAlign==eB?u.top=i+"%":"end"==n.lineAlign&&(u.bottom=100-i+"%")):"vertical-lr"==n.writingMode?(u.height="100%",n.lineAlign==eB?u.left=i+"%":"end"==n.lineAlign&&(u.right=100-i+"%")):(u.height="100%",n.lineAlign==eB?u.right=i+"%":"end"==n.lineAlign&&(u.left=100-i+"%")))),u.lineHeight=n.lineHeight,o=(a=n).direction,s=a.positionAlign,a=a.textAlign,"line-left"==(e=s!==eP?s:"left"===a||"start"===a&&o===e_||"end"===a&&"rtl"===o?"line-left":"right"===a||"start"===a&&"rtl"===o||"end"===a&&o===e_?"line-right":"center")?(u.cssFloat="left",null!==n.position&&(u.position="absolute",n.writingMode==eO?(u.left=n.position+"%",u.width="auto"):u.top=n.position+"%")):"line-right"==e?(u.cssFloat="right",null!==n.position&&(u.position="absolute",n.writingMode==eO?(u.right=100-n.position+"%",u.width="auto"):u.bottom=n.position+"%")):null!==n.position&&50!=n.position&&(u.position="absolute",n.writingMode==eO?(u.left=n.position+"%",u.width="auto"):u.top=n.position+"%"),u.textAlign=n.textAlign,u.textDecoration=n.textDecoration.join(" "),u.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&u.writingMode==n.writingMode||(u.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==eO?u.width=n.size+"%":u.height=n.size+"%")}(e,a,t,n,i),n=null,t.region&&t.region.id){var o=t.region,s=e.l===4/3?2.5:1.9;if(n=o.id+"_"+o.width+"x"+o.height+(o.heightUnits==eA?"%":"px")+"-"+o.viewportAnchorX+"x"+o.viewportAnchorY+(o.viewportAnchorUnits==eA?"%":"px"),e.B.has(n))n=e.B.get(n);else{r=document.createElement("span");var u=o.heightUnits==eA?"%":"px",l=o.widthUnits==eA?"%":"px",c=o.viewportAnchorUnits==eA?"%":"px";r.id="shaka-text-region---"+n,r.classList.add("shaka-text-region"),r.style.position="absolute";var h=o.height,d=o.width;2===o.heightUnits&&(h=5.33*o.height,u="%"),2===o.widthUnits&&(d=o.width*s,l="%"),r.style.height=h+u,r.style.width=d+l,2===o.viewportAnchorUnits?(s=o.viewportAnchorY/75*100,u=o.viewportAnchorX/(e.l===4/3?160:210)*100,s-=o.regionAnchorY*h/100,u-=o.regionAnchorX*d/100,r.style.top=s+"%",r.style.left=u+"%"):(r.style.top=o.viewportAnchorY-o.regionAnchorY*h/100+c,r.style.left=o.viewportAnchorX-o.regionAnchorX*d/100+c),0!==o.heightUnits&&0!==o.widthUnits&&0!==o.viewportAnchorUnits&&(o=Math.max(0,Math.min(100-(parseInt(r.style.width.slice(0,-1),10)||0),parseInt(r.style.left.slice(0,-1),10)||0)),r.style.top=Math.max(0,Math.min(100-(parseInt(r.style.height.slice(0,-1),10)||0),parseInt(r.style.top.slice(0,-1),10)||0))+"%",r.style.left=o+"%"),r.style.display="flex",r.style.flexDirection="column",r.style.alignItems="center",r.style.justifyContent="before"==t.displayAlign?"flex-start":"center"==t.displayAlign?"center":"flex-end",e.B.set(n,r),n=r}}r=a,i&&((r=document.createElement("span")).classList.add("shaka-text-wrapper"),r.style.backgroundColor=t.backgroundColor,r.style.lineHeight="normal",a.appendChild(r)),e.i.set(t,{xd:a,zf:r,Eb:n})}(t,l,a),f=(c=t.i.get(l)).zf,o=!0)),0<l.nestedCues.length&&f&&e(t,l.nestedCues,f,r,a),a.pop()}if(o){for(a=(r=h(s)).next();!a.done;a=r.next())(a=a.value).parentElement&&a.parentElement.removeChild(a);for(u.sort(function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime}),r=(u=h(u)).next();!r.done;r=u.next())(r=t.i.get(r.value)).Eb?(r.Eb.contains(i)&&r.Eb.removeChild(i),i.appendChild(r.Eb),r.Eb.appendChild(r.xd)):i.appendChild(r.xd)}}(e,e.h,e.g,n,[])}}function lR(e,t,n){var i=(i=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(i[1]),unit:i[2]}:null;if(!i)return e;var r=i.value;switch(i.unit){case"%":return r/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*r/t.cellResolution.rows+"px";default:return e}}function lP(e,t){this.h=e,this.g=t,this.m=void 0,this.i=!1,this.l=!0,this.j=!1}
1function lL(t){return t.g.sessionId||(t.g.sessionId=e.crypto.randomUUID()),{v:1,sf:t.m,sid:t.g.sessionId,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}function lN(e,t,n){n=void 0===n?{}:n;var i=void 0===i?e.g.useHeaders:i;if(e.g.enabled){Object.assign(n,lL(e)),n.pr=e.h.Ja();var r,a,o,s=n.ot===lF||n.ot===lH;if(e.j&&s&&(n.bs=!0,n.su=!0,e.j=!1),null==n.su&&(n.su=e.l),r=e,a=n,e=(o=r.g.includeKeys).length?Object.keys(a).reduce(function(e,t){return o.includes(t)&&(e[t]=a[t]),e},{}):a,i)Object.keys(i=function(e){var t=Object.keys(e),n={},i=["Object","Request","Session","Status"],r=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};t=h(t);for(var o=t.next();!o.done;o=t.next())r[null!=a[o=o.value]?a[o]:1][o]=e[o];for(e=0;e<r.length;e++)(a=l_(r[e]))&&(n["CMCD-"+i[e]]=a);return n}(e)).length&&Object.assign(t.headers,i);else{var u=l_(e);u&&(t.uris=t.uris.map(function(e){return lO(e,u)}))}}}function lj(e,t){if(!(t=e.h.Pa()[t]).length)return 0;var n=e.h.getCurrentTime();return(e=t.find(function(e){return e.start<=n&&e.end>=n}))?1e3*(e.end-n):0}function l_(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}var i=[],r={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},a=Object.keys(e||{}).sort();a=h(a);for(var o=a.next();!o.done;o=a.next()){var s,u=e[o=o.value];if(!Number.isNaN(s=u)&&null!=s&&""!==s&&!1!==s&&("v"!==o||1!==u)&&("pr"!=o||1!==u)){var l=r[o];l&&(u=l(u));var c=void 0;c="string"==(l=typeof u)&&"ot"!==o&&"sf"!==o&&"st"!==o?o+"="+JSON.stringify(u):"boolean"===l?o:"symbol"===l?o+"="+u.description:o+"="+u,i.push(c)}}return i.join(",")}function lO(e,t){return!t||e.includes("offline:")?e:((e=new eQ(e)).g.set("CMCD",t),e.toString())}(f=lk.prototype).configure=function(){},f.remove=function(e,t){return!!this.g&&(lA(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0)},f.append=function(e){var t=lS(e),n=[];e=this.g.cues?Array.from(this.g.cues):[],t=h(t);for(var i=t.next(),r={};!i.done;r={Sb:void 0},i=t.next())r.Sb=i.value,!e.some(function(e){return function(t){return t.startTime==e.Sb.startTime&&t.endTime==e.Sb.endTime&&t.text==e.Sb.payload}}(r))&&r.Sb.payload&&(i=function(e){function t(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()}if(e.startTime>=e.endTime)return null;var n=new VTTCue(e.startTime,e.endTime,e.payload);n.id=t(e.startTime.toString())+t(e.endTime.toString())+t(e.payload),n.lineAlign=e.lineAlign,n.positionAlign=e.positionAlign,e.size&&(n.size=e.size);try{n.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=n.align&&(n.align="middle"),"vertical-lr"==e.writingMode?n.vertical="lr":"vertical-rl"==e.writingMode&&(n.vertical="rl"),1==e.lineInterpretation&&(n.snapToLines=!1),null!=e.line&&(n.line=e.line),null!=e.position&&(n.position=e.position),n}(r.Sb))&&n.push(i);for(t=(e=h(e=n.slice().sort(function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?n.indexOf(t)-n.indexOf(e):n.indexOf(e)-n.indexOf(t)}))).next();!t.done;t=e.next())this.g.addCue(t.value)},f.destroy=function(){return this.g&&(lA(this.g,function(){return!0}),this.g.mode="disabled"),this.g=null,Promise.resolve()},f.isTextVisible=function(){return"showing"==this.g.mode},f.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},H("shaka.text.SimpleTextDisplayer",lk),lk.prototype.setTextVisibility=lk.prototype.setTextVisibility,lk.prototype.isTextVisible=lk.prototype.isTextVisible,lk.prototype.destroy=lk.prototype.destroy,lk.prototype.append=lk.prototype.append,lk.prototype.remove=lk.prototype.remove,lk.prototype.configure=lk.prototype.configure,(f=lE.prototype).configure=function(){},f.remove=function(){},f.append=function(){},f.destroy=function(){},f.isTextVisible=function(){return!1},f.setTextVisibility=function(){},H("shaka.text.StubTextDisplayer",lE),lE.prototype.setTextVisibility=lE.prototype.setTextVisibility,lE.prototype.isTextVisible=lE.prototype.isTextVisible,lE.prototype.destroy=lE.prototype.destroy,lE.prototype.append=lE.prototype.append,lE.prototype.remove=lE.prototype.remove,lE.prototype.configure=lE.prototype.configure,H("shaka.util.Dom",lC),lC.removeAllChildren=lI,(f=lM.prototype).configure=function(e){this.C&&this.C.Aa(e.captionsUpdatePeriod)},f.append=function(e){var t=[].concat(d(this.h));e=h(lT(e));for(var n=e.next(),i={};!n.done;i={wd:void 0},n=e.next())i.wd=n.value,t.some(function(e){return function(t){return eR(t,e.wd)}}(i))||this.h.push(i.wd);lD(this)},f.destroy=function(){return this.g&&(this.s.removeChild(this.g),this.g=null,this.m=!1,this.h=[],this.C&&this.C.stop(),this.i.clear(),this.j&&(this.j.release(),this.j=null),this.o&&(this.o.disconnect(),this.o=null)),Promise.resolve()},f.remove=function(e,t){if(!this.g)return!1;var n=this.h.length;return this.h=this.h.filter(function(n){return n.startTime<e||n.endTime>=t}),lD(this,n>this.h.length),!0},f.isTextVisible=function(){return this.m},f.setTextVisibility=function(e){this.m=e},H("shaka.text.UITextDisplayer",lM),lM.prototype.setTextVisibility=lM.prototype.setTextVisibility,lM.prototype.isTextVisible=lM.prototype.isTextVisible,lM.prototype.remove=lM.prototype.remove,lM.prototype.destroy=lM.prototype.destroy,lM.prototype.append=lM.prototype.append,lM.prototype.configure=lM.prototype.configure,H("shaka.text.WebVttGenerator",function(){}),lP.prototype.configure=function(e){this.g=e};var lU="m",lB="a",lF="v",lH="av",lV="i",lG="c",lK="tt";function lq(e){this.h=e,this.g=null}
1function lW(e){return!e||"false"!==e.toLowerCase()&&(/^[-0-9]/.test(e)?parseInt(e,10):e.replace(/["]+/g,""))}H("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",qh:"s",OTHER:"o"}),(f=lq.prototype).configure=function(e){this.h=e},f.Ie=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(lX)?1e3*this.g.get(lX):null},f.He=function(){return this.h.enabled&&this.g&&this.g.has(lz)?1e3*this.g.get(lz):null},f.gg=function(){return this.h.enabled&&this.g&&this.g.has(lY)?this.g.get(lY):null},f.hg=function(){return this.h.enabled&&this.g&&this.g.has(lJ)?this.g.get(lJ):null},f.getBandwidthEstimate=function(e){var t=this.He();if(!t)return e;var n=this.h.estimatedThroughputWeightRatio;return 0<n&&1>=n?e*(1-n)+t*n:e},H("shaka.util.CmsdManager",lq),lq.prototype.getBandwidthEstimate=lq.prototype.getBandwidthEstimate,lq.prototype.getRoundTripTime=lq.prototype.hg,lq.prototype.getResponseDelay=lq.prototype.gg,lq.prototype.getEstimatedThroughput=lq.prototype.He,lq.prototype.getMaxBitrate=lq.prototype.Ie;var lz="etp",lX="mb",lY="rd",lJ="rtt";function l$(){this.g=null,this.h=[]}function lZ(e,t){return L(function(n){if(1==n.g)return e.g?S(n,new Promise(function(t){return e.h.push(t)}),2):n.u(2);e.g=t,T(n)})}function lQ(t,n){rK.call(this);var i,r=this;this.K=!1,this.m=cH,this.bd=this.h=null,this.ja=!1,this.gd=new Q,this.uc=new Q,this.l=new Q,this.ub=new Q,this.Mb=new Q,this.D=this.H=this.B=this.F=null,this.jd=0,this.Y=new l$,this.qa=this.ke=this.W=this.i=this.ka=this.C=this.j=this.sc=this.M=this.pe=this.ea=this.P=this.tc=this.N=this.ua=this.I=this.Qb=null,this.Ta=!1,this.Fa=this.s=null,this.me=1e9,this.zc=[],this.X=NaN,this.g=cg(this),this.S=null,this.od=-1,this.Ua=null,this.fa={width:1/0,height:1/0},this.Lb=new sO(this.g,this.fa,null),this.dd=[],this.o=null,this.Ha=new sS(this.g.preferredAudioLanguage,this.g.preferredVariantRole,this.g.preferredAudioChannelCount,this.g.preferredVideoHdrLevel,this.g.preferSpatialAudio,this.g.preferredVideoLayout,this.g.preferredAudioLabel,this.g.preferredVideoLabel,this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,this.g.preferredAudioCodecs),this.Ob=this.g.preferredTextLanguage,this.xc=this.g.preferredTextRole,this.wc=this.g.preferForcedSubs,this.vc=[],n&&n(this),this.P=(i=this,new lP({getBandwidthEstimate:function(){return i.s?i.s.getBandwidthEstimate():NaN},Pa:function(){return i.Pa()},getCurrentTime:function(){return i.h?i.h.currentTime:0},Ja:function(){return i.Ja()},Ed:function(){return i.Ed()},yb:function(){return i.yb()},T:function(){return i.T()}},i.g.cmcd)),this.ea=new lq(this.g.cmsd),this.F=ci(this),this.F.be(this.g.streaming.forceHTTP),this.F.ce(this.g.streaming.forceHTTPS),this.Rb=this.ba=this.A=null,this.rd=!1,this.ne=new td(function(){return L(function(e){return 1==e.g?r.ba?S(e,r.fb(r.Rb,!0),3):e.u(0):4!=e.g?S(e,r.load(r.ba),4):void(r.rd?r.Rb.pause():r.Rb.play(),r.ba=null,r.rd=!1,T(e))})}),cq&&(this.A=cq(),this.A.configure(this.g.ads),this.Mb.J(this.A,"ad-content-pause-requested",function(e){var t;return L(function(n){if(1==n.g)return(r.ne.stop(),r.ba)?n.u(0):(r.Rb=r.h,r.rd=r.h.ended,t=e.saveLivePosition||!1,S(n,r.Ae(!0,t),3));r.ba=n.h,T(n)})}),this.Mb.J(this.A,"ad-content-resume-requested",function(e){if(e=e.offset||0,r.ba){var t=r.ba;t.A&&e&&(t.A+=e)}r.ne.ca(.1)}),this.Mb.J(this.A,"ad-content-attach-requested",function(){return L(function(e){return r.h||!r.Rb?e.u(0):S(e,r.fb(r.Rb,!0),0)})})),this.gd.J(e,"online",function(){cR(r),r.Zd()}),this.cd=new td(function(){for(var e=Date.now()/1e3,t=!1,n=!0,i=h(r.i.variants),a=i.next();!a.done;a=i.next())0<(a=a.value).disabledUntilTime&&a.disabledUntilTime<=e&&(a.disabledUntilTime=0,t=!0),0<a.disabledUntilTime&&(n=!1);n&&r.cd.stop(),t&&cT(r,!1,void 0,!1,!1)}),this.Ba=null,t&&(eo("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fb(t,!0))}function l0(e){null!=e.M&&(o1(e.M),e.M.release(),e.M=null)}function l1(e,t){return new rG(e,t)}function l2(e,t){e.dispatchEvent(l1("onstatechange",(new Map).set("state",t)))}function l3(e,t){var n;return L(function(i){return 1==i.g?(n=++e.jd,S(i,lZ(e.Y,t),2)):n!=e.jd?(e.Y.release(),i.return(!0)):i.return(!1)})}function l4(e,t){var n,i;return t=void 0!==t&&t,L(function(r){if(1==r.g)return(n=null,!(e.i&&e.C&&e.ka&&e.W)||e.K)?r.u(2):(i=e.h.currentTime,e.T()&&!t&&(i=null),S(r,l6(e,e.W,i,e.ke,!0,!1,!1),3));if(2!=r.g){n=r.h,e.dd.push(n),e.C&&e.C.setMediaElement&&e.C.setMediaElement(null);var a=n,o=e.C,s=e.ka;a.i=e.i,a.l=o,a.D=s,a=n,o=e.Fa,a.j=e.s,a.B=o,n.o=e.Ha,n.start(),e.i=null,e.C=null,e.ka=null,e.s=null,e.Fa=null}return r.return(n)})}function l5(e,t,n,i,r){var a,o,s;return r=void 0!==r&&r,L(function(u){return 1==u.g?i?u.u(2):S(u,l7(e,t),3):(2!=u.g&&(i=u.h),e.K=function(e,t){if(!tf())return!0;
1if(t){if(""==(e.h||tL()).canPlayType(t))return!1;if(!(tf()&&t in aI))return!0;if(nu(t))return tT()&&(e.g.drm.servers["com.apple.fps"]||e.g.drm.servers["com.apple.fps.1_0"])?e.g.streaming.useNativeHlsForFairPlay:e.g.streaming.preferNativeHls}return!1}(e,i),e.K)?u.return(null):(a=!1,o=!0,r&&(e.s&&e.Fa==e.g.abrFactory&&(o=!1),e.h&&"AUDIO"===e.h.nodeName&&(a=!0)),s=l6(e,t,n,i||null,!r,a,o),r||(s=s.then(function(t){return e.dd.push(t),t})),u.return(s))})}function l6(e,t,n,i,r,a,o){var s,u,l,c,d,f,p,g,m,v,y,b,w;return r=void 0===r||r,a=void 0!==a&&a,o=void 0===o||o,L(function(x){if(1==x.g)return s=null,u=nM(e.g),a&&(u.manifest.disableVideo=!0),l=function(){return s.P&&s.s?null:s},c=function(){return l()?l().getConfiguration():e.g},d=function(t,n){l()?s.configure(t,n):e.configure(t,n)},1/0!=e.fa.width||1/0!=e.fa.height?x.u(2):S(x,tj(),3);2!=x.g&&(f=x.h,e.fa.width=f.width,e.fa.height=f.height),p=new sO(u,e.fa,null),g={networkingEngine:e.F,filter:function(e){var t;return L(function(n){return 1==n.g?S(n,sU(p,e),2):4!=n.g?n.h?(t=l1("trackschanged"),S(n,Promise.resolve(),4)):n.u(0):void(s.dispatchEvent(t),T(n))})},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,i=h(t.textStreams),r=i.next();!r.done;r=i.next())"application/cea-608"!=(r=r.value).mimeType&&"application/cea-708"!=r.mimeType||n.add(r.originalId);for(r=(i=h(t.variants)).next();!r.done;r=i.next())if((r=r.value.video)&&r.closedCaptions){for(var a=h(r.closedCaptions.keys()),o=a.next();!o.done;o=a.next())if(o=o.value,!n.has(o)){var s=o.startsWith("CC")?"application/cea-608":"application/cea-708",u=new ao,l=r.closedCaptions.get(o);s={id:e.me++,originalId:o,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:u,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:t5,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:r.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set([ne(s,"")])},t.textStreams.push(s),n.add(o)}}}(e,t)},onTimelineRegionAdded:function(e){var t=s.F;e:{for(var n=h(t.g),i=n.next();!i.done;i=n.next())if((i=i.value).schemeIdUri==e.schemeIdUri&&i.id==e.id&&i.startTime==e.startTime&&i.endTime==e.endTime){n=i;break e}n=null}null==n&&(t.g.add(e),e=new rG("regionadd",new Map([["region",e]])),t.dispatchEvent(e))},onEvent:function(e){return s.dispatchEvent(e)},onError:function(e){return s.onError(e)},isLowLatencyMode:function(){return c().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return c().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){d("streaming.lowLatencyMode",!0)},updateDuration:function(){e.j&&s.P&&e.j.updateDuration()},newDrmInfo:function(e){var t=s.h,n=t?t.g:null;n&&t.s&&sF(p,n.keySystem,e)},onManifestUpdated:function(){var t=(new Map).set("isLive",e.T());s.dispatchEvent(l1("manifestupdated",t)),u3(s,!1,function(){e.A&&e.A.onManifestUpdated(e.T())})},getBandwidthEstimate:function(){return e.s.getBandwidthEstimate()},onMetadata:function(t,n,i,r){var a=t;"com.apple.hls.interstitial"==t&&(a="com.apple.quicktime.HLS",t={startTime:n,endTime:i,values:r},e.A)&&e.A.onInterstitialMetadata(e,e.h,t),t=(r=h(r)).next();for(var o={};!t.done;o={Ze:void 0},t=r.next())o.Ze=t.value,u3(s,!1,function(t){return function(){ct(e,n,i,a,t.Ze)}}(o))},disableStream:function(t){return e.disableStream(t,e.g.streaming.maxDisabledTime)}},(m=new ux(function(){return e.mb()})).addEventListener("regionadd",function(t){var n=t.region;cL(e,"timelineregionadded",n,s),u3(s,!1,function(){e.A&&e.A.onDashTimedMetadata(n)})}),v=null,u.streaming.observeQualityChanges&&((v=new ub(function(){return e.Pa()})).addEventListener("qualitychange",function(t){cN(e,t.quality,t.position)}),v.addEventListener("audiotrackchange",function(t){cN(e,t.quality,t.position,!0)})),y=!0,b={Cb:e.F,onError:function(e){return s.onError(e)},Xe:function(t){u3(s,!0,function(){e:{var n=t,i=l1("keystatuschanged");e.dispatchEvent(i);var r=Object.keys(n);1==r.length&&""==r[0]&&(r=["00"],n={"00":n[""]}),i=1==r.length&&"00"==r[0];var a=sV(e.Lb),o=!1;if(r.length){r=h(e.i.variants);for(var s=r.next();!s.done;s=r.next()){s=s.value;var u=[];s.audio&&u.push(s.audio),s.video&&u.push(s.video),u=h(u);for(var l=u.next();!l.done;l=u.next()){var c=l.value;if(l=s.allowedByKeySystem,c.keyIds.size){s.allowedByKeySystem=!0,c=h(c.keyIds);for(var d=c.next();!d.done;d=c.next())d=d.value,((d=n[i?"00":d])||e.B.D)&&(s.allowedByKeySystem=s.allowedByKeySystem&&!!d&&!a.includes(d))}l!=s.allowedByKeySystem&&(o=!0)}}}if(o&&(cE(e),!cx(e)))break e;(n=e.j.j)&&!n.allowedByKeySystem&&cT(e)}})},onExpirationUpdated:function(e,t){var n=l1("expirationupdated");s.dispatchEvent(n),(n=s.l)&&n.onExpirationUpdated&&n.onExpirationUpdated(e,t)},onEvent:function(t){s.dispatchEvent(t),"drmsessionupdate"==t.type&&y&&(y=!1,t=Date.now()/1e3-s.qa,(e.o||s.getStats()).j=t,e.M&&o1(e.M))}},w=ci(e,l);for(var k=e.F,A=w,E=h(k.g),C=E.next();!C.done;C=E.next())A.g.add(C.value);for(E=(k=h(k.h)).next();!E.done;E=k.next())A.h.add(E.value);return s=new u2(t,i,n,{config:u,Cg:g,Ng:m,Mg:v,Lc:function(){return e.Lc(b)},Bg:p,networkingEngine:w,Gf:r,Ff:o}),x.return(s)})}function l8(e){var t=e.g.abr;return{max:(e=e.g.restrictVariantsByBandwidth&&t.enabled)?t.restrictions.maxBandwidth:1/0,min:e?t.restrictions.minBandwidth:0}}function l7(e,t){var n,i;
1return L(function(r){return 1==r.g?(n=e.g.manifest.retryParameters,S(r,lb(t,e.F,n),2)):("application/x-mpegurl"==(i=r.h)&&tT()&&(i="application/vnd.apple.mpegurl"),r.return(i))})}function l9(e){var t,n,i,r;return L(function(a){if(1==a.g){var o,s,u,l;return l2(e,"media-source"),(n=(t=e.g.textDisplayFactory)()).configure?n.configure(e.g.textDisplayer):eo("Text displayer w/ configure",'Text displayer should have a "configure" method!'),e.le=t,(o=e.h,s=n,u={Yf:function(){return e.keySystem()},onMetadata:function(t,n,i){ce(e,t,n,i)}},l=e.M,i=new sK(o,s,u,l)).configure(e.g.mediaSource),r=e.g.manifest.segmentRelativeVttTiming,i.ea=r,S(a,i.K,2)}e.H=i,T(a)})}function ce(e,t,n,i){t=h(t);for(var r=t.next();!r.done;r=t.next())if((r=r.value).data&&"number"==typeof r.cueTime&&r.frames){var a=r.cueTime+n,o=i;o&&a>o&&(o=a);for(var s=h(r.frames),u=s.next();!u.done;u=s.next())ct(e,a,o,"org.id3",u.value);e.A&&e.A.onHlsTimedMetadata(r,a)}}function ct(e,t,n,i,r){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",i).set("payload",r),e.dispatchEvent(l1("metadata",t))}function cn(e,t){if(t&&"chapters"==t.kind){t.mode="hidden";var n=new td(function(){t.mode="hidden"}).hd().ca(.5);e.vc.push(function(){n.stop()})}}function ci(e,t){function n(n){t()?t().dispatchEvent(n):e.dispatchEvent(n)}function i(e){t()?u3(t(),!0,e):e()}return t||(t=function(){return null}),new rz(function(n,i,r,a){var o=t()?t().j:e.s;o&&o.segmentDownloaded(n,i,r,a)},function(t,r,a){n(l1("downloadheadersreceived",r=(new Map).set("headers",t).set("request",r).set("requestType",a))),i(function(){if(e.ea){var n=e.ea;if(n.h.enabled){var i=t["cmsd-static"];if(i)try{var r=new Map,a=i.split(",");for(i=0;i<a.length;i++){var o=a[i].split("=");r.set(o[0],lW(o[1]))}}catch(e){}if(r=t["cmsd-dynamic"]){try{var s=new Map,u=r.split(";");for(r=1;r<u.length;r++){var l=u[r].split("=");s.set(l[0],lW(l[1]))}var c=s}catch(e){c=null}c&&(n.g=c)}}}})},function(e,t,i,r){n(l1("downloadfailed",e=(new Map).set("request",e).set("error",t).set("httpResponseCode",i).set("aborted",r)))},function(t,n,r){i(function(){var i=e.P,a=r;if(a=void 0===a?{}:a,i.g.enabled)if("HEAD"===n.method)lN(i,n);else switch(t){case 0:try{if(i.g.enabled){if(a.type){e:{switch(a.type){case 4:var o="d";break e;case 3:case 2:o="h";break e;case 5:o="s";break e}o=void 0}i.m=o}lN(i,n,{ot:lU,su:!i.i})}}catch(e){J("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}break;case rQ:try{if(i.g.enabled){var s=a.segment;o=0,s&&(o=s.endTime-s.startTime);var u={d:1e3*o,st:i.h.T()?"l":"v"};u.ot=function(e){if(0===e.type)return lV;if(e=e.stream){var t=e.type;if("video"==t)return e.codecs&&e.codecs.includes(",")?lH:lF;if("audio"==t)return lB;if("text"==t)return"application/mp4"===e.mimeType?lK:lG}}(a);var l=u.ot===lF||u.ot===lB||u.ot===lH||u.ot===lK,c=a.stream;if(c){var d=i.h.Ja();if(l&&(u.bl=function(e,t){if(!(t=e.h.Pa()[t]).length)return NaN;var n=e.h.getCurrentTime();return(e=t.find(function(e){return e.start<=n&&e.end>=n}))?1e3*(e.end-n):NaN}(i,c.type),u.ot!==lK)){var f=lj(i,c.type);u.dl=d?f/Math.abs(d):f}if(c.bandwidth&&(u.br=c.bandwidth/1e3),c.segmentIndex&&s){var p=c.segmentIndex.Xa(s.endTime,!0,0>d);if(p){var g=p.next().value;if(g&&g!=s){if(!eI(s.wa(),g.wa())){var m=g.wa()[0],v=n.uris[0],y=new URL(m),b=new URL(v);if(y.origin!==b.origin)var w=m;else{for(var x=y.pathname.split("/").slice(1),S=b.pathname.split("/").slice(1,-1);x[0]===S[0];)x.shift(),S.shift();for(;S.length;)S.shift(),x.unshift("..");w=x.join("/")}u.nor=w}if((g.i||g.h)&&(s.i!=g.i||s.h!=g.h)){var T=g.i+"-";g.h&&(T+=g.h),u.nrr=T}}}var k=i.h.Ja()||1,A=lj(i,c.type)||500,E=c.bandwidth,C=E?E*(s.endTime-s.startTime)/1e3/(A/k/1e3)*i.g.rtpSafetyFactor:NaN;isNaN(C)||(u.rtp=C)}}l&&u.ot!==lK&&(u.tb=function(e,t){var n=e.h.yb();if(!n.length)return NaN;e=n[0],n=h(n);for(var i=n.next();!i.done;i=n.next())"variant"===(i=i.value).type&&i.bandwidth>e.bandwidth&&(e=i);switch(t){case lF:return e.videoBandwidth||NaN;case lB:return e.audioBandwidth||NaN;default:return e.bandwidth}}(i,u.ot)/1e3),lN(i,n,u)}}catch(e){J("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}break;
1case 2:case 5:case 6:lN(i,n,{ot:"k"});break;case 4:lN(i,n,{ot:"o"})}})},function(n,i,r,a){(n=t()?t().l:e.C)&&n.banLocation&&n.banLocation(a)},function(n,i){if(i.data){i=i.data.byteLength;var r=t()?t().getStats():e.o;r&&(r.sb=isNaN(r.sb)?i:r.sb+i,0===n&&(r.Qe=i))}},function(t,n){cO(e,t=l1("segmentdownloaded",t=(new Map).set("detail",{response:n,request:t})))})}function cr(e,t,n){e.N=new o8,e.N.g=o9,o7(e.N,n,Math.min(.5,n/2)),cm(e),e.ua=new td(function(){ca(e)}),e.g.streaming.rebufferingGoal&&e.ua.Aa(.25),e.l.J(t,"waiting",function(){return ca(e)}),e.l.J(t,"stalled",function(){return ca(e)}),e.l.J(t,"canplaythrough",function(){return ca(e)}),e.l.J(t,"progress",function(){return ca(e)}),e.l.J(t,"seeked",function(){return ca(e)})}function ca(e){switch(e.m){case cG:if(e.h.ended)var t=!0;else{var n=sI(e.h.buffered);t=null!=n&&n>=e.h.duration-1}break;case cV:e:if(e.h.ended||sX(e.H))t=!0;else{if(e.i.presentationTimeline.T()){n=e.i.presentationTimeline.hb();var i=sI(e.h.buffered);if(null!=i&&i>=n){t=!0;break e}}t=!1}break;default:t=!1}i=sD(e.h.buffered,e.h.currentTime),n=e.N;var r=t,a=n.i.get(n.g);t=n.g,i=r||i>=a&&0<i?se:o9,n.g=i,(t=t!=i)&&i===se&&(n.h=Date.now()),t&&cm(e)}function co(e){if(e.Lb=new sO(e.g,e.fa,e.B),e.C){var t=nM(e.g.manifest);e.h&&"AUDIO"===e.h.nodeName&&(t.disableVideo=!0),e.C.configure(t)}if(e.B&&e.B.configure(e.g.drm),e.j){e.j.configure(e.g.streaming);try{e.m!=cF&&sB(e.Lb,e.i)&&cE(e)}catch(t){cP(e,t)}e.s&&cx(e),(t=e.j.j)&&(!t.allowedByApplication||!t.allowedByKeySystem)&&cT(e)}if(e.F&&(e.F.be(e.g.streaming.forceHTTP),e.F.ce(e.g.streaming.forceHTTPS)),e.H)if(e.H.configure(e.g.mediaSource),e.H.ea=e.g.manifest.segmentRelativeVttTiming,t=e.g.textDisplayFactory,e.le!=t){var n=t();n.configure?n.configure(e.g.textDisplayer):eo("Text displayer w/ configure",'Text displayer should have a "configure" method!');var i=e.H,r=i.D;i.D=n,r&&(n.setTextVisibility(r.isTextVisible()),r.destroy()),i.g&&(i.g.j=n),e.le=t,e.j&&(n=(t=e.j).i.get(t5))&&u_(t,n.stream,!0,0,!0)}else(t=e.H.D).configure&&t.configure(e.g.textDisplayer);e.s&&(e.s.configure(e.g.abr),e.g.abr.enabled?e.s.enable():e.s.disable(),cD(e)),e.N&&(t=e.g.streaming.rebufferingGoal,e.i&&(t=Math.max(t,e.i.minBufferTime)),o7(e.N,t,Math.min(.5,t/2))),e.ua&&(e.g.streaming.rebufferingGoal?e.ua.Aa(.25):e.ua.stop()),e.i&&c_(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.A&&e.A.configure(e.g.ads),e.P&&e.P.configure(e.g.cmcd),e.ea&&e.ea.configure(e.g.cmsd)}function cs(e){return e&&(e=/(\d+)x(\d+)/.exec(e))?{Ib:parseInt(e[1],10),rows:parseInt(e[2],10)}:null}function cu(e,t){var n=e.segmentIndex.find(t);if(null==n)return null;var i=cs((n=e.segmentIndex.get(n)).tilesLayout||e.tilesLayout);if(!i)return null;var r=e.width||0;e=e.height||0;var a=r/i.Ib,o=e/i.rows,s=i.Ib*i.rows,u=n.j-n.startTime;u=n.D||u/s;var l=n.startTime,c=0,h=0;return 1<s&&(t=Math.floor((t-n.startTime)/u),l=n.startTime+t*u,c=t%i.Ib*a,h=Math.floor(t/i.Ib)*o),t=!1,(i=n.C)&&(t=!0,o=i.height,c=i.positionX,h=i.positionY,a=i.width),{segment:n,imageHeight:e,imageWidth:r,height:o,positionX:c,positionY:h,startTime:l,duration:u,uris:n.wa(),width:a,sprite:t}}function cl(e){return Array.from(e.h.textTracks).filter(function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label})}function cc(e){return Array.from(e.h.textTracks).filter(function(e){return"chapters"==e.kind})}function ch(e,t){var n;return L(function(i){switch(i.g){case 1:return k(i,2),S(i,lb(t,e.F,e.g.streaming.retryParameters),4);case 4:n=i.h,A(i,3);break;case 2:E(i);case 3:if(n)return i.return(n);throw new tr(1,2,2011,t)}})}function cd(e,t,n,i,r,a,o){var s;return L(function(u){if(1==u.g)return"text/vtt"!=r||o.length?S(u,cf(e,t,e.F,e.g.streaming.retryParameters),3):u.u(2);2!=u.g&&(t=s9(new Blob([cp(e,u.h,r,o)],{type:"text/vtt"})),r="text/vtt"),s=document.createElement("track");var l=e.P,c=t;try{if(l.g.enabled){var h=lL(l);h.ot=lG,h.su=!0;var d=l_(h),f=lO(c,d)}else f=c}catch(e){J("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),f=c}return s.src=f,s.label=a,s.kind=i,s.srclang=n,e.h.getAttribute("crossorigin")||e.h.setAttribute("crossorigin","anonymous"),e.h.appendChild(s),u.return(s)})}function cf(e,t,n,i){var r,a,o;return L(function(s){if(1==s.g){r=rQ,(a=rY([t],i)).method="GET";var u=e.P;try{u.g.enabled&&lN(u,a,{ot:lG,su:!0})}catch(e){J("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return S(s,n.request(r,a).promise,2)}return o=s.h,s.return(o.data)})}function cp(e,t,n,i){var r=ng[n];if(r)return n=r(),e={periodStart:0,segmentStart:0,segmentEnd:e.h.duration,vttOffset:0}
1,t=em(t),function(e,t){function n(e){for(var n=e,i=h(t),r=i.next();!r.done;r=i.next())(r=r.value).end&&r.start<e&&(n+=r.end-r.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(i=Math.floor(n/60%60))?"0":"")+i+":"+(10>(r=Math.floor(n%60))?"0":"")+r+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}var i=lS(e);e="WEBVTT\n\n",i=h(i);for(var r=i.next();!r.done;r=i.next())e+=n((r=r.value).startTime)+" --\x3e "+n(r.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case eL:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(r)+"\n",e+=r.payload+"\n\n";return e}(t=n.parseMedia(t,e,null),i);throw new tr(2,2,2014,n)}function cg(e){var t=oD();return t.streaming.failureCallback=function(t){if(e.T()){var n=null;1001==t.code||1002==t.code?(n=1,e.g.streaming.lowLatencyMode&&(n=.1)):1003==t.code&&(n=.1),null!=n&&(t.severity=1,e.Zd(n))}},t.textDisplayFactory=function(){if(e.bd){var t=e.getConfiguration();return new lM(e.h,e.bd,t.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new lk(e.h,"Shaka Player TextTrack"):new lE},t}function cm(e){var t=e.Ne();if(e.o&&e.N&&e.D){if(0==e.g.streaming.rebufferingGoal){var n=e.I;n.j=!1,un(n)}else(n=e.I).j=t,un(n);if(e.P&&(n=e.P,t||n.i||(n.i=!0),n.i&&t&&(n.j=!0),n.l=t),cy(e),n=e.g.streaming.liveSync.dynamicTargetLatency.maxAttempts,e.g.streaming.liveSync.dynamicTargetLatency.enabled&&t&&e.od<n){n=e.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var i=e.g.streaming.liveSync.targetLatencyTolerance,r=e.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;e.S&&(e.S=Math.min(e.S+ ++e.od*r,n-i))}}t=(new Map).set("buffering",t),e.dispatchEvent(l1("buffering",t))}function cv(e){var t=e.h.playbackRate;0!=t&&(e.I&&e.I.set(t),t=l1("ratechange"),e.dispatchEvent(t))}function cy(e){if(e.o&&e.N){var t=e.o.g,n="playing";e.N.g==o9?n="buffering":e.h.ended?n="ended":e.h.paused&&(n="paused");var i=n;if(null==t.g)t.g={timestamp:Date.now()/1e3,state:i,duration:0},t=!0;else{var r=Date.now()/1e3;t.g.duration=r-t.g.timestamp,t.g.state==i?t=!1:(t.h.push(t.g),t.g={timestamp:r,state:i,duration:0},t=!0)}t&&(n=(new Map).set("newstate",n),e.dispatchEvent(l1("statechanged",n)))}}function cb(e){var t=e.h.playbackRate,n=e.T();if(e.g.streaming.vodDynamicPlaybackRate&&!n){var i=e.g.streaming.vodDynamicPlaybackRateLowBufferRate,r=e.Fe();r<=e.g.streaming.vodDynamicPlaybackRateBufferRatio?t!=i&&e.Ec(i,!1):1==r&&t!==e.I.xb()&&e.dc()}if(n&&Number.isFinite((n=e.mb()).end)&&!(e.h.currentTime<n.start)){i=e.g.streaming.liveSync.targetLatencyTolerance,r=e.g.streaming.liveSync.dynamicTargetLatency.enabled;var a=e.g.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;if(e.g.streaming.liveSync&&e.g.streaming.liveSync.enabled)var o=e.g.streaming.liveSync.targetLatency,s=o+i,u=Math.max(0,o-i),l=e.g.streaming.liveSync.maxPlaybackRate,c=e.g.streaming.liveSync.minPlaybackRate;else e.i&&e.i.serviceDescription&&(o=e.i.serviceDescription.targetLatency,null!=e.i.serviceDescription.targetLatency?s=e.i.serviceDescription.targetLatency+i:null!=e.i.serviceDescription.maxLatency&&(s=e.i.serviceDescription.maxLatency),null!=e.i.serviceDescription.targetLatency?u=Math.max(0,e.i.serviceDescription.targetLatency-i):null!=e.i.serviceDescription.minLatency&&(u=e.i.serviceDescription.minLatency),l=e.i.serviceDescription.maxPlaybackRate||e.g.streaming.liveSync.maxPlaybackRate,c=e.i.serviceDescription.minPlaybackRate||e.g.streaming.liveSync.minPlaybackRate);e.S||"number"!=typeof o||(e.S=o);var h=e.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;r&&e.Ua&&null!==e.S&&"number"==typeof o&&e.od<h&&Date.now()-e.Ua>1e3*a&&(a=e.g.streaming.liveSync.dynamicTargetLatency.minLatency,e.S=Math.max(e.S-(o-a)/2,a+i),e.Ua=Date.now()),r&&null!==e.S&&(s=e.S+i,u=e.S-i),o=n.end-e.h.currentTime,i=0,e.m==cG&&0<(r=e.h.buffered).length&&(i=Math.max(l,(i=r.end(r.length-1))-n.end)),n=e.g.streaming.liveSync.panicMode,r=1e3*e.g.streaming.liveSync.panicThreshold,a=Date.now()-e.N.h,n&&!c&&(c=e.g.streaming.liveSync.minPlaybackRate),n&&c&&a<=r?t!=c&&e.Ec(c,!1):s&&l&&o-i>s?(t!=l&&e.Ec(l,!1),e.Ua=null):u&&c&&o-i<u?(t!=c&&e.Ec(c,!1),e.Ua=null):t!==e.I.xb()&&(e.dc(),e.Ua=Date.now())}}function cw(e){if(e.h){var t,n=!1,i=e.h.currentTime/e.h.duration;isNaN(i)||(i=Math.round(100*i),isNaN(e.X)?(e.X=i,n=!0):(i=Math.max(e.X,i),e.X!=i&&(e.X=i,n=!0))),n&&(0==e.X?t=l1("started"):25==e.X?t=l1("firstquartile"):50==e.X?t=l1("midpoint"):75==e.X?t=l1("thirdquartile"):100==e.X&&(t=l1("complete")),t&&e.dispatchEvent(t))}}function cx(e){try{sH(e.Lb,e.i)}catch(t){return cP(e,t),!1}var t=nX(e.i.variants);return t=e.Ha.create(t,l8(e)),e.s.setVariants(Array.from(t.values())
1),!0}function cS(e,t){return t=void 0!==t&&t,cx(e)?e.s.chooseVariant(t):null}function cT(e,t,n,i,r,a){t=void 0===t||t,n=void 0===n?0:n,i=void 0!==i&&i,r=void 0===r||r,a=void 0===a||a;var o=cS(e);o&&ck(e,o,r,t,n,i,a)}function ck(e,t,n,i,r,a,o){if(a=void 0!==a&&a,o=void 0===o||o,!nz(t))return!1;var s=e.j.j;if(t==s)return!!i&&(uN(e.j,t,i,r,!0,!1,o),!0);var u=e.o.h;return u.h!=t&&(u.h=t,u.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),uN(e.j,t,i,r,a,n,o),i=null,s&&(i=nF(s)),(t=nF(t)).active=!0,n?(n=(new Map).set("oldTrack",i).set("newTrack",t),e.M&&o2(e.M,t,e.Dd()),cO(e,n=l1("adaptation",n))):cC(e,i,t),!0}function cA(e,t){var n=Array.from(e.h.audioTracks).find(function(e){return e.enabled});t.enabled=!0,n&&(t.id!==n.id&&(n.enabled=!1),n=nq(n),cC(e,n,t=nq(t)))}function cE(e){cO(e,l1("trackschanged"))}function cC(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),e.M&&o2(e.M,n,e.Dd()),cO(e,n=l1("variantchanged",t))}function cI(e){cO(e,l1("textchanged"))}function cM(e){cO(e,l1("texttrackvisibility"))}function cD(e){e.g.abr.enabled||cR(e);var t=(new Map).set("newStatus",e.g.abr.enabled);cO(e,l1("abrstatuschanged",t))}function cR(e,t){if(t=void 0===t||t,e.m==cV){e.cd.stop();for(var n=h(e.i.variants),i=n.next();!i.done;i=n.next())i.value.disabledUntilTime=0;t&&cx(e)}}function cP(e,t){var n,i;return L(function(r){switch(r.g){case 1:var a,o,s,u,l,c,h;if(e.m==cF)return r.return();if(1===t.severity&&e.o.N++,n=!0,!(e.Ta&&e.i&&e.j)||3016!=t.code&&3014!=t.code&&3015!=t.code&&3018!=t.code){r.u(2);break}return k(r,3),S(r,(a=e.j,L(function(e){return 1==e.g?(o=Date.now()/1e3,s=a.h.minTimeBetweenRecoveries,!a.h.allowMediaSourceRecoveries||o-a.N<s)?e.return(!1):(a.N=o,u=t6,(l=a.i.get(u.U))&&(l.Ub=null,l.Bb=null,l.Ab=null,uO(a,l),uY(l).catch(function(){})),(c=a.i.get(u.ga))&&(c.Ub=null,c.Bb=null,c.Ab=null,uO(a,c),uY(c).catch(function(){})),h=new Map,a.j.audio&&h.set(u.U,a.j.audio),a.j.video&&h.set(u.ga,a.j.video),S(e,s7(a.g.V,h),2)):e.return(!0)})),5);case 5:n=!r.h,A(r,2);break;case 3:E(r),n=!0;case 2:if(!n)return r.return();2===t.severity&&cR(e,!1),i=l1("error",(new Map).set("detail",t)),e.dispatchEvent(i),i.defaultPrevented&&(t.handled=!0),T(r)}})}function cL(e,t,n,i){i=void 0===i?e:i,e=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement,eventNode:n.eventNode}),i.dispatchEvent(l1(t,e))}function cN(e,t,n,i){i=void 0!==i&&i,t=(new Map).set("mediaQuality",{bandwidth:t.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate,height:t.height,mimeType:t.mimeType,channelsCount:t.channelsCount,pixelAspectRatio:t.pixelAspectRatio,width:t.width,label:t.label,roles:t.roles,language:t.language}).set("position",n),e.dispatchEvent(l1(i?"audiotrackchanged":"mediaqualitychanged",t))}function cj(e){var t,n,i,r;return L(function(a){return 1==a.g?e.h.error&&1!=(t=e.h.error.code)?((n=e.h.error.msExtendedCode)&&(0>n&&(n+=0x100000000),n=n.toString(16)),i=e.h.error.message,e.g.streaming.additionalHdcpCheck&&"PIPELINE_ERROR_DECODE"===i&&e.h.mediaKeys&&e.h.mediaKeys.getStatusForPolicy?S(a,e.h.mediaKeys.getStatusForPolicy({minHdcpVersion:"1.0"}),3):a.u(2)):a.return(null):2!=a.g&&(r=a.h,sV(e.Lb).includes(r))?a.return(new tr(2,4,4012,{restrictedKeyStatuses:[r]})):a.return(new tr(2,3,3016,t,n,i))})}function c_(e,t,n){0<t&&(e.T()||e.rf(t)),n<(t=e.getDuration())&&(e.T()||e.ob(n))}function cO(e,t){L(function(n){if(1==n.g)return S(n,Promise.resolve(),2);e.m!=cF&&e.dispatchEvent(t),T(n)})}function cU(e){var t=new Set;e=h(e);for(var n=e.next();!n.done;n=e.next())(n=n.value).language?t.add(nT(n.language)):t.add("und");return t}function cB(e){var t=new Map,n=new Map;e=h(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;var r="und",a=[];i.language&&(r=nT(i.language)),(a="variant"==i.type?i.audioRoles:i.roles)&&a.length||(a=[""]),t.has(r)||t.set(r,new Set),a=h(a);for(var o=a.next();!o.done;o=a.next())o=o.value,t.get(r).add(o),i.label&&(n.has(r)||n.set(r,new Map),n.get(r).set(o,i.label))}var s=[];return t.forEach(function(e,t){e=h(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;var r=null;n.has(t)&&n.get(t).has(i)&&(r=n.get(t).get(i)),s.push({language:t,role:i,label:r})}}),s}l$.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null},y(lQ,rK),(f=lQ.prototype).destroy=function(){var e,t=this;return L(function(n){switch(n.g){case 1:if(t.m==cF)return n.return();return l0(t),e=t.detach(),t.m=cF,S(n,e,2);case 2:return S(n,t.ze(),3);case 3:if(t.gd&&(t.gd.release(),t.gd=null),t.uc&&(t.uc.release(),t.uc=null),t.l&&(t.l.release(),t.l=null),t.ub&&(t.ub.release(),t.ub=null),t.Mb&&(t.Mb.release(),t.Mb=null),t.Fa=null,t.g=null,t.o=null,t.bd=null,t.P=null,t.ea=null,!t.F){n.u(4);break}return S(n,t.F.destroy(),5);case 5:t.F=null;case 4:t.s&&(t.s.release(),t.s=null),rK.prototype.release.call(t),T(n)}})},f.fb=function(e,t){t=void 0===t||t;var n,i,r,a=this;return L(function(o){switch(o.g){case 1:if(a.m==cF)throw new tr(2,7,7e3);if(n=a.h&&a.h==e,!a.h||a.h==e){o.u(2);break}return S(o,a.detach(),2);case 2:return S(o,l3(a,"attach"),4);case 4:if(o.h)return o.return();if(k(o,5,6),n||(l2(a,"attach"),i=function(){var e;cj(e=a).then(function(t){t&&cP(e,t)})}
1,a.uc.J(e,"error",i),a.h=e),!t||!tf()||a.H){o.u(6);break}return S(o,l9(a),6);case 6:C(o),a.Y.release(),I(o,0);break;case 5:return r=E(o),S(o,a.detach(),10);case 10:throw r}})},f.Hf=function(e){this.pe=e},f.detach=function(e){e=void 0!==e&&e;var t=this;return L(function(n){if(1==n.g){if(t.m==cF)throw new tr(2,7,7e3);return S(n,t.Fc(!1,e),2)}if(3!=n.g)return S(n,l3(t,"detach"),3);if(n.h)return n.return();try{t.h&&(t.uc.cb(),t.h=null),l2(t,"detach"),t.A&&!e&&t.A.release()}finally{t.Y.release()}T(n)})},f.Fc=function(e,t){e=void 0===e||e,t=void 0!==t&&t;var n,i,r,a,o,s,u,l,c,d,f=this;return L(function(p){switch(p.g){case 1:return f.m!=cF&&(f.m=cH),S(p,l3(f,"unload"),2);case 2:if(p.h)return p.return();return p.l=0,p.j=3,f.Ta=!1,l2(f,"unload"),e&&!tf()&&(e=!1),l0(f),n=f.vc.map(function(e){return e()}),f.vc=[],S(p,Promise.all(n),5);case 5:if(f.dispatchEvent(l1("unloading")),f.tc&&(f.tc.release(),f.tc=null),f.h&&(f.l.cb(),f.ub.cb()),f.cd.stop(),f.Qb&&(f.Qb.release(),f.Qb=null),f.ua&&(f.ua.stop(),f.ua=null),!f.C){p.u(6);break}return S(p,f.C.stop(),7);case 7:f.C=null,f.ka=null;case 6:if(!f.s){p.u(8);break}return S(p,f.s.stop(),8);case 8:if(!f.j){p.u(10);break}return S(p,f.j.destroy(),11);case 11:f.j=null;case 10:if(f.I&&(f.I.release(),f.I=null),f.D&&(f.D.release(),f.D=null),!tN("webkit")||!f.B){p.u(12);break}return S(p,f.B.destroy(),13);case 13:f.B=null;case 12:if(!f.H){p.u(14);break}return S(p,f.H.destroy(),15);case 15:f.H=null;case 14:var g;if(f.A&&!t&&f.A.onAssetUnload(),f.ba&&!t&&(f.ba.destroy(),f.ba=null),t||f.ne.stop(),f.P&&((g=f.P).i=!1,g.l=!0,g.j=!1),f.ea&&(f.ea.g=null),f.h&&lI(f.h),f.h&&f.h.src&&(f.h.removeAttribute("src"),f.h.load()),!f.B){p.u(16);break}return S(p,f.B.destroy(),17);case 17:f.B=null;case 16:if(f.Ba&&f.W!=f.Ba.Nc()&&(f.Ba.s||f.Ba.destroy(),f.Ba=null),f.W=null,f.ke=null,f.N=null,f.i&&!f.K){for(r=(i=h(f.i.variants)).next();!r.done;r=i.next())for(s=(o=h([(a=r.value).audio,a.video])).next();!s.done;s=o.next())(u=s.value)&&u.segmentIndex&&u.segmentIndex.release();for(c=(l=h(f.i.textStreams)).next();!c.done;c=l.next())(d=c.value).segmentIndex&&d.segmentIndex.release()}f.g.streaming.clearDecodingCache&&(nZ={},tc.clear()),f.i=null,f.o=new u1,f.le=null,f.Ua=null,f.S=null,f.od=-1,f.zc=[],f.X=NaN,cm(f);case 3:C(p),f.Y.release(),I(p,4);break;case 4:if(e&&tf()&&!f.H&&f.h)return S(p,l9(f),0);p.u(0)}})},f.jh=function(e){this.qa=e},f.load=function(e,t,n){t=void 0===t?null:t;var i,r,a,o,s,u,l,c,d,f,p,g,m=this;return L(function(v){switch(v.g){case 1:if(m.m==cF)throw new tr(2,7,7e3);return i=null,r="",r=e instanceof u2?(i=e).Nc()||"":e||"",S(v,lZ(m.Y,"load"),2);case 2:if(m.Y.release(),!m.h)throw new tr(2,7,7002);if(!m.W){v.u(3);break}return m.W=r,S(v,m.Fc(!1),3);case 3:if(a=++m.jd,o=function(){return L(function(e){if(1==e.g)return m.jd==a?e.u(0):i?S(e,i.destroy(),3):e.u(3);throw new tr(2,7,7e3)})},s=function(e,t){return L(function(n){switch(n.g){case 1:return n.l=0,n.j=2,S(n,lZ(m.Y,t),4);case 4:return S(n,o(),5);case 5:return S(n,e(),6);case 6:return S(n,o(),7);case 7:i&&m.g&&(i.g=m.g);case 2:C(n),m.Y.release(),I(n,0)}})},k(v,5,6),null==t&&i&&(t=i.getStartTime()),m.qa=t,m.Ta=!1,m.dispatchEvent(l1("loading")),i){n=i.S,v.u(8);break}if(n){v.u(8);break}return S(v,s(function(){return L(function(e){if(1==e.g)return S(e,l7(m,r),2);n=e.h,T(e)})},"guessMimeType_"),8);case 8:if(u=!!i,i){u4(i,m),m.o=i.getStats(),v.u(11);break}return S(v,l5(m,r,t,n,!0),12);case 12:(i=v.h)?(u4(i,m),m.o=i.getStats(),i.start(),i.m.catch(function(){})):m.o=new u1;case 11:return m.K=!i,l=Date.now()/1e3,m.o=i?i.getStats():new u1,m.W=r,m.ke=n||null,m.K?S(v,s(function(){return L(function(e){var t,i,r,a,o,s,u;return S(e,(t=m,i=n,L(function(e){return 1==e.g?(r=t6,a=Date.now()/1e3,o=!0,t.B=t.Lc({Cb:t.F,onError:function(e){cP(t,e)},Xe:function(){},onExpirationUpdated:function(){var e=l1("expirationupdated");t.dispatchEvent(e)},onEvent:function(e){t.dispatchEvent(e),"drmsessionupdate"==e.type&&o&&(o=!1,t.o.j=Date.now()/1e3-a)}}),t.B.configure(t.g.drm),s={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},(u={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:i?no(i):"",codecs:i?ns(i):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:r.ga,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set}).fullMimeTypes.add(ne(u.mimeType,u.codecs)),i.startsWith("audio/")?(u.type=r.U,s.audio=u):s.video=u,t.B.Y=!0,S(e,su(t.B,[s],[]),2)):S(e,t.B.fb(t.h),0)})),0)})},"initializeSrcEqualsDrmInner_"),23):S(v,s(function(){return L(function(e){if(1==e.g)return S(e,Promise.race([i.ba,i.m]),2);m.ka=i.D;var t=i;t.ea=!0,m.C=t.l,m.i=i.Cd(),T(e)})},"waitForFinish"),15);case 15:if(m.H){v.u(16);break}return S(v,s(function(){return L(function(e){return S(e,l9(m),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return S(v,s(function(){return L(function(e){return S(e,i.m,0)})},"waitForFinish"),18);case 18:if(m.g=i.getConfiguration(),m.Lb=i.C,m.C&&m.C.setMediaElement&&m.h&&m.C.setMediaElement(m.h),(y=i).ja=!0,m.tc=y.F,m.sc=i.Ba,(c=i.o)&&(m.Ha=c),u&&m.h&&"AUDIO"===m.h.nodeName&&(function(e){for(var t=h(e.i.variants),n=t.next();!n.done;n=t.next())(n=n.value).video&&(n.video.closeSegmentIndex(),n.video=null),n.bandwidth=n.audio&&n.audio.bandwidth?n.audio.bandwidth:0;e.i.variants=e.i.variants.filter(function(e){return e.audio})}(m),m.configure("manifest.disableVideo",!0)),i.h){v.u(19);break}return S(v,s(function(){return L(function(e){return S(e,u8(i,m.h),0)})},"drmEngine_.init"),19);case 19:return(b=i).Y=!0,m.B=b.h,S(v,s(function(){return L(function(e){return S(e,m.B.fb(m.h),0)})},"drmEngine_.attach"),21);case 21:return(d=i.B)&&(!m.Fa||m.Fa!=d)&&((w=i).X=!0,m.s=w.j,m.Fa=i.B,"function"!=typeof m.s.setMediaElement&&(eo("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),m.s.setMediaElement=function(){}),"function"!=typeof m.s.setCmsdManager&&(eo("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),m.s.setCmsdManager=function(){}),"function"!=typeof m.s.trySuggestStreams&&(eo("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),m.s.trySuggestStreams=function(){})),(x=i).ka=!0,f=x.K,p=i.fa,S(v,s(function(){return L(function(e){var t,n,i,r,a,o,s,u,c,d,g,v,y,b,w,x,k,A,E,C,I,M,D,R,P;return S(e,(t=m,n=l,i=p,r=f,L(function(e){var l,f,p,m,N,j,_,O,U,B,F,H,V;switch(e.g){case 1:l2(t,"load"),a=t.h,t.I=new ut({Pc:function(){return a.playbackRate},xb:function(){return a.defaultPlaybackRate},de:function(e){a.playbackRate=e},Te:function(e){a.currentTime+=e}}),o=function(){return cy(t)},s=function(){return cv(t)},t.l.J(a,"playing",o),t.l.J(a,"pause",o),t.l.J(a,"ended",o),t.l.J(a,"ratechange",s),l=t,(f=t.g).lcevc.enabled?(l0(l),null==l.M&&(l.M=new o0(l.h,l.pe,f.lcevc),l.H&&(l.H.W=l.M))):l0(l),t.Ob=t.g.preferredTextLanguage,t.xc=t.g.preferredTextRole,t.wc=t.g.preferForcedSubs,c_(t.i.presentationTimeline,t.g.playRangeStart,t.g.playRangeEnd),t.s.init(function(e,n,i){t.i&&t.j&&e!=t.j.j&&ck(t,e,!0,void 0!==n&&n,void 0===i?0:i)}),t.s.setMediaElement(a),t.s.setCmsdManager(t.ea),t.j=new uP((j=t).i,{lc:function(){return j.D?j.D.Gc():0},getBandwidthEstimate:function(){return j.s.getBandwidthEstimate()},Ja:function(){return j.Ja()},V:j.H,Cb:j.F,onError:function(e){return cP(j,e)},onEvent:function(e){return j.dispatchEvent(e)},Jg:function(){j.C&&j.C.update&&j.C.update()},Ud:function(e,t){var n=e.startTime,i=e.endTime,r=t.type,a=t.codecs.includes(",");if(r!=t5){if(j.D){j.D.Ue();var o=sY(j.H,r);!j.T()&&j.h.paused&&!j.h.seeking&&null!=o&&0<o&&j.D.Gc()<o&&j.D.sd(o)}ca(j)}n=(new Map).set("start",n).set("end",i).set("contentType",r).set("isMuxed",a),j.dispatchEvent(l1("segmentappended",n)),j.s&&t.fastSwitching&&e.Ac&&e.Tc&&j.s.trySuggestStreams()},Ig:function(e,t){var n,i,r,a,o,s,u;(t=t.Qd)&&j.sc&&(n=j.sc,i=t,r=e,a=n,o=i.contentType,(s=a.g.get(o))||(s={Cc:[],yd:null,contentType:o},a.g.set(o,s)),function(e,t){if((e=e.h()[t.contentType])&&0<e.length){var n=e[0].start,i=e[e.length-1].end,r
1=t.Cc;t.Cc=r.filter(function(e,t){return(!(e.position<=n)||!(t+1<r.length)||!(r[t+1].position<=n))&&!(e.position>=i)})}else t.Cc=[]}(n,u=s),n={Qd:i,position:r},0<=(i=(u=u.Cc).findIndex(function(e){return e.position>=r}))?u.splice(i,+(u[i].position==r),n):u.push(n))},ve:function(e,t){var n=j.B;if(n.h.parseInbandPsshEnabled&&!n.D&&["audio","video"].includes(e)){e=new i7(em(t)),t=0;for(var i=h(e.data),r=i.next();!r.done;r=i.next())t+=r.value.length;if(0==t)n=Promise.resolve();else{for(t=new Uint8Array(t),i=0,r=(e=h(e.data)).next();!r.done;r=e.next())r=r.value,t.set(r,i),i+=r.length;sc(n,"cenc",t),n=n.l}}else n=Promise.resolve();return n},onMetadata:function(e,t,n){ce(j,e,t,n)},disableStream:function(e,t){return j.disableStream(e,t)}}),t.j.configure(t.g.streaming),t.m=cV,a.textTracks&&t.l.J(a.textTracks,"addtrack",function(e){e.track&&"chapters"===(e=e.track).kind&&cn(t,e)}),t.dispatchEvent(l1("streaming")),u=i;case 2:for((d=t.j.j)||u||(u=cS(t,!0)),g=[],y=(v=h([(c=d||u).video,c.audio])).next();!y.done;y=v.next())(b=y.value)&&!b.segmentIndex&&g.push(b.createSegmentIndex());if(!(0<g.length)){e.u(4);break}return S(e,Promise.all(g),4);case 4:if(!c||0!=c.disabledUntilTime){e.u(2);break}if(t.C&&t.C.onInitialVariantChosen&&t.C.onInitialVariantChosen(c),t.i.isLowLatency&&!t.g.streaming.lowLatencyMode&&Y("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),c_(t.i.presentationTimeline,t.g.playRangeStart,t.g.playRangeEnd),p=t.j,m=t.g.playRangeStart,N=t.g.playRangeEnd,p.l.presentationTimeline.T()||(p.S=m,p.P=N),w=function(e){var n,i,r,o,s;n=t,i=e,t.D=new uf(n.h,n.i,n.g.streaming,i,function(){n.Qb&&uy(n.Qb,!0),n.j&&n.j.ac(),n.N&&ca(n)},function(e){return n.dispatchEvent(e)}),r=t,o=e,(o=new u9(r.tc,r.T()||0<o)).addEventListener("enter",function(e){cL(r,"timelineregionenter",e.region)}),o.addEventListener("exit",function(e){cL(r,"timelineregionexit",e.region)}),o.addEventListener("skip",function(e){var t=e.region;e.seeking||(cL(r,"timelineregionenter",t),cL(r,"timelineregionexit",t))}),(s=new uv(r.h)).g.add(o),r.sc&&s.g.add(r.sc),t.Qb=s,cr(t,a,Math.max(t.i.minBufferTime,t.g.streaming.rebufferingGoal))},t.g.streaming.startAtSegmentBoundary||w(t.qa),d){e.u(7);break}if(!t.g.streaming.startAtSegmentBoundary){e.u(8);break}return x=t.i.presentationTimeline,k=t.qa||t.h.currentTime,A=x.Ya(),E=x.Qa(),k<A?k=A:k>E&&(k=E),S(e,(_=u,O=k,L(function(e){return 1==e.g?(U=_.audio,B=_.video,F=function(e,t){var n,i,r;return L(function(a){return 1==a.g?e?S(a,e.createSegmentIndex(),2):a.return(null):(i=(n=e.segmentIndex.Xa(t))?n.next().value:null)?(r=i.startTime,a.return(r)):a.return(null)})},S(e,F(U,O),2)):3!=e.g?(H=e.h,S(e,F(B,O),3)):null!=(V=e.h)&&null!=H?e.return(Math.max(V,H)):null!=V?e.return(V):null!=H?e.return(H):e.return(O)})),9);case 9:C=e.h,w(C);case 8:ck(t,u,!0,!1,0);case 7:return t.D.ready(),t.Pb().find(function(e){return e.active})||((I=nY(t.i.textStreams,t.Ob,t.xc,t.wc)[0]||null)&&u0(t.o.h,I,!0),u&&(I?(function(e,t,n){if(0==e.g.autoShowText)return!1;if(1==e.g.autoShowText)return!0;var i=nT(e.g.preferredTextLanguage);return(n=nT(n.language),2==e.g.autoShowText)?nw(n,i):3==e.g.autoShowText?!!t&&(e=nT(t.language),nw(n,i)&&!nw(e,n)):(Y("Invalid autoShowText setting!"),!1)}(t,u.audio,I)&&(t.ja=!0),t.ja&&t.H.D.setTextVisibility(!0),cM(t)):t.ja=!1),I&&(t.g.streaming.alwaysStreamText||t.Md())&&uj(t.j,I)),S(e,t.j.start(r),10);case 10:t.g.abr.enabled&&(t.s.enable(),cD(t)),cE(t),cx(t),t.i.variants.some(function(e){return e.primary}),((M=t.T())&&(t.g.streaming.liveSync&&t.g.streaming.liveSync.enabled||t.i.serviceDescription||t.g.streaming.liveSync.panicMode)||t.g.streaming.vodDynamicPlaybackRate)&&(D=function(){return cb(t)},t.l.J(a,"timeupdate",D)),M||(R=function(){return cw(t)},t.l.J(a,"timeupdate",R),cw(t),t.i.nextUrl&&(0<t.g.streaming.preloadNextUrlWindow&&(P=function(){var e;return L(function(n){if(1==n.g)return isNaN(e=t.h.duration-t.h.currentTime)||!(e<=t.g.streaming.preloadNextUrlWindow)?n.u(0):(t.l.qb(a,"timeupdate",P),S(n,t.preload(t.i.nextUrl),4));t.Ba=n.h,T(n)})},t.l.J(a,"timeupdate",P)),t.l.J(a,"ended",function(){t.load(t.Ba||t.i.nextUrl)}))),t.A&&t.A.onManifestUpdated(M),t.Ta=!0,t.l.ma(a,"loadedmetadata",function(){t.o.m=Date.now()/1e3-n}),T(e)}})),0)})},"loadInner_"),22);case 22:var y,b,w,x,A=i;if(A.H)for(var M=h(A.H),D=M.next();!D.done;D=M.next())(D=D.value)();A.H=null,v.u(14);break;case 23:return S(v,s(function(){return L(function(e){var t,i,r,a,o,s,u,c,d,f,p,g,v,y,b,w;return S(e,(t=m,i=l,r=n,L(function(e){switch(e.g){case 1:return l2(t,"src-equals"),a=t.h,t.D=new ud(a),o=!1,t.vc.push(function(){o=!0}),null!=t.qa&&t.D.sd(t.qa),t.I=new ut({Pc:function(){return a.playbackRate},xb:function(){return a.defaultPlaybackRate},de:function(e){a.playbackRate=e},Te:function(e){a.currentTime+=e}}),s=t.g.streaming.rebufferingGoal,cr(t,a,s),u=function(){return cy(t)},c=function(){return cv(t)},t.l.J(a,"playing",u),t.l.J(a,"pause",u),t.l.J(a,"ended",u),t.l.J(a,"ratechange",c),"none"!=a.preload&&t.l.ma(a,"loadedmetadata",function(){t.o.m=Date.now()/1e3-i}),a.audioTracks&&(t.l.J(a.audioTracks,"addtrack",function(){return cE(t)}),t.l.J(a.audioTracks,"removetrack",function(){return cE(t)}),t.l.J(a.audioTracks,"change",function(){return cE(t)})),a.textTracks&&(t.l.J(a.textTracks,"addtrack",function(e){if(e.track)switch((e=e.track).kind){case"metadata":var n=t,i=e;
1if("metadata"==i.kind){i.mode="hidden",n.l.J(i,"cuechange",function(){if(i.activeCues){for(var e=[],t=h(i.activeCues),r=t.next(),a={};!r.done;a={Ea:void 0},r=t.next())a.Ea=r.value,ct(n,a.Ea.startTime,a.Ea.endTime,a.Ea.type,a.Ea.value),n.A&&n.A.onCueMetadataChange(a.Ea.value),"com.apple.quicktime.HLS"==a.Ea.type&&null!=a.Ea.startTime&&((r=e.find(function(e){return function(t){return t.startTime==e.Ea.startTime&&t.endTime==e.Ea.endTime}}(a)))||(r={startTime:a.Ea.startTime,endTime:a.Ea.endTime,values:[]},e.push(r)),r.values.push(a.Ea.value));for(t=(e=h(e)).next();!t.done;t=e.next())(t=t.value).values.some(function(e){return"X-ASSET-URI"==e.key||"X-ASSET-LIST"==e.key})&&n.A&&(t.values.push({key:"CUE",description:"",data:"ONCE",mimeType:null,pictureType:null}),n.A.onInterstitialMetadata(n,n.h,t))}});var r=new td(function(){var e,t=Array.from((e=n).h.textTracks).filter(function(e){return"metadata"==e.kind});t=h(t);for(var i=t.next();!i.done;i=t.next())i.value.mode="hidden"}).hd().ca(.5);n.vc.push(function(){r.stop()})}break;case"chapters":cn(t,e);break;default:cE(t)}}),t.l.J(a.textTracks,"removetrack",function(){return cE(t)}),t.l.J(a.textTracks,"change",function(){return cE(t)})),!(d=function(e,t,n){try{if(!e.g.enabled)return t;var i=lL(e);e:{switch(n.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var r=lB;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":r=lH;break e;case"application/x-mpegurl":case"application/vnd.apple.mpegurl":case"application/dash+xml":case"video/vnd.mpeg.dash.mpd":case"application/vnd.ms-sstr+xml":r=lU;break e}r=void 0}i.ot=r,i.su=!0;var a=l_(i);return lO(t,a)}catch(e){return J("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(t.P,t.W,r)).includes("#t=")&&(0<t.g.playRangeStart||isFinite(t.g.playRangeEnd))&&(d+="#t=",0<t.g.playRangeStart&&(d+=t.g.playRangeStart),isFinite(t.g.playRangeEnd)&&(d+=","+t.g.playRangeEnd)),a.src=d,(tv()||tw())&&a.load(),"none"!=a.preload&&!a.autoplay&&nu(r)&&tM()&&a.load(),t.m=cG,t.dispatchEvent(l1("streaming")),f=new r_,ui(a,HTMLMediaElement.HAVE_METADATA,t.l,function(){t.D.ready(),f.resolve()}),ui(a,HTMLMediaElement.HAVE_CURRENT_DATA,t.l,function(){var e;return L(function(n){var i,r,s,u;return 1==n.g?(""!=(r=(i=t).g.preferredAudioLanguage)&&i.ef(r,i.g.preferredVariantRole),(e=cl(t)).find(function(e){return"disabled"!=e.mode})?(0<e.length&&(t.ja=!0),n.u(2)):S(n,new Promise(function(e){t.l.ma(a.textTracks,"change",e),new td(e).ca(1)}),2)):o?n.return():void(""!=(u=(s=t).g.preferredTextLanguage)&&s.ff(u,s.g.preferredTextRole,s.g.preferForcedSubs),T(n))})}),a.error?cj(t).then(function(e){f.reject(e)}):"none"==a.preload&&(Y('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),f.resolve()),t.l.ma(t.h,"error",function(){cj(t).then(function(e){f.reject(e)})}
1),S(e,Promise.race([f,new Promise(function(e,n){new td(n).ca(t.g.streaming.loadTimeout)})]),2);case 2:if(!(tf()&&r in aI)||((p=nM(t.g.manifest)).hls.restrictedManifestParsing=!0,t.g.manifest=p,t.C||(t.ka=aC(t.W,r),t.C=t.ka(),t.C.configure(t.g.manifest)),t.i)){e.u(3);break}return g={networkingEngine:t.F,filter:function(){return L(function(e){T(e)})},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(){},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return 0},onMetadata:function(){},disableStream:function(){}},S(e,t.C.start(t.W,g),5);case 5:t.i=e.h;case 3:((v=t.T())&&(t.g.streaming.liveSync&&t.g.streaming.liveSync.enabled||t.g.streaming.liveSync.panicMode)||t.g.streaming.vodDynamicPlaybackRate)&&(y=function(){return cb(t)},t.l.J(a,"timeupdate",y)),v||(b=function(){return cw(t)},t.l.J(a,"timeupdate",b),cw(t)),t.A&&(t.A.onManifestUpdated(v),v&&(w=t.mb().end,t.l.J(a,"progress",function(){var e=t.mb().end;w!=e&&(t.A.onManifestUpdated(t.T()),w=e)}))),t.Ta=!0,T(e)}})),0)})},"srcEqualsInner_"),14);case 14:m.dispatchEvent(l1("loaded"));case 6:if(C(v),!i){v.u(25);break}return S(v,i.destroy(),25);case 25:m.Ba=null,I(v,0);break;case 5:if(!(g=E(v))||7e3==g.code){v.u(27);break}return S(v,m.Fc(!1),27);case 27:throw g}})},f.eh=function(e,t){e=void 0===e||e,t=void 0!==t&&t;var n,i=this;return L(function(r){return 1==r.g?S(r,l4(i),2):3!=r.g?(n=r.h,S(r,i.Fc(e,t),3)):r.return(n)})},f.Ae=function(e,t){e=void 0!==e&&e,t=void 0!==t&&t;var n,i=this;return L(function(r){return 1==r.g?S(r,l4(i,t),2):3!=r.g?(n=r.h,S(r,i.detach(e),3)):r.return(n)})},f.preload=function(e,t,n){t=void 0===t?null:t;var i,r=this;return L(function(a){return 1==a.g?S(a,l5(r,e,t,n),2):((i=a.h)?i.start():cP(r,new tr(2,7,7005)),a.return(i))})},f.ze=function(){var e,t,n,i,r=this;return L(function(a){for(e=[],n=(t=h(r.dd)).next();!n.done;n=t.next())(i=n.value).s||e.push(i.destroy());return r.dd=[],S(a,Promise.all(e),0)})},f.Rg=function(){for(var e=this.Y;e.g;)e.release()},f.Lc=function(e){return new ss(e)},f.configure=function(e,t){if(2==arguments.length&&"string"==typeof e&&(e=oS(e,t)),e.streaming&&"forceTransmuxTS"in e.streaming&&(eo("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmuxTS,delete e.streaming.forceTransmuxTS),e.streaming&&"forceTransmux"in e.streaming&&(eo("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmux,delete e.streaming.forceTransmux),e.streaming&&"useNativeHlsOnSafari"in e.streaming&&(eo("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead."),e.streaming.preferNativeHls=e.streaming.useNativeHlsOnSafari&&tT(),delete e.streaming.useNativeHlsOnSafari),e.streaming&&"boolean"==typeof e.streaming.liveSync){eo("streaming.liveSync","Please Use streaming.liveSync.enabled instead.");var n=e.streaming.liveSync;e.streaming.liveSync={},e.streaming.liveSync.enabled=n}if(e.streaming&&!(e.streaming.liveSync&&"targetLatency"in e.streaming.liveSync)&&("liveSyncMinLatency"in e.streaming||"liveSyncMaxLatency"in e.streaming)){n=e.streaming.liveSyncMinLatency||0;var i=Math.abs((e.streaming.liveSyncMaxLatency||1)-n)/2;e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatency=n+i,e.streaming.liveSync.targetLatencyTolerance=i}if(e.streaming&&"liveSyncMaxLatency"in e.streaming&&(eo("streaming.liveSyncMaxLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete e.streaming.liveSyncMaxLatency),e.streaming&&"liveSyncMinLatency"in e.streaming&&(eo("streaming.liveSyncMinLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete e.streaming.liveSyncMinLatency),e.streaming&&"liveSyncTargetLatency"in e.
1streaming&&(eo("streaming.liveSyncTargetLatency","Please Use streaming.liveSync.targetLatency instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatency=e.streaming.liveSyncTargetLatency,delete e.streaming.liveSyncTargetLatency),e.streaming&&"liveSyncTargetLatencyTolerance"in e.streaming&&(eo("streaming.liveSyncTargetLatencyTolerance","Please Use streaming.liveSync.targetLatencyTolerance instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatencyTolerance=e.streaming.liveSyncTargetLatencyTolerance,delete e.streaming.liveSyncTargetLatencyTolerance),e.streaming&&"liveSyncPlaybackRate"in e.streaming&&(eo("streaming.liveSyncPlaybackRate","Please Use streaming.liveSync.maxPlaybackRate instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.maxPlaybackRate=e.streaming.liveSyncPlaybackRate,delete e.streaming.liveSyncPlaybackRate),e.streaming&&"liveSyncMinPlaybackRate"in e.streaming&&(eo("streaming.liveSyncMinPlaybackRate","Please Use streaming.liveSync.minPlaybackRate instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.minPlaybackRate=e.streaming.liveSyncMinPlaybackRate,delete e.streaming.liveSyncMinPlaybackRate),e.streaming&&"liveSyncPanicMode"in e.streaming&&(eo("streaming.liveSyncPanicMode","Please Use streaming.liveSync.panicMode instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.panicMode=e.streaming.liveSyncPanicMode,delete e.streaming.liveSyncPanicMode),e.streaming&&"liveSyncPanicThreshold"in e.streaming&&(eo("streaming.liveSyncPanicThreshold","Please Use streaming.liveSync.panicThreshold instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.panicThreshold=e.streaming.liveSyncPanicThreshold,delete e.streaming.liveSyncPanicThreshold),e.mediaSource&&"sourceBufferExtraFeatures"in e.mediaSource){eo("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");var r=e.mediaSource.sourceBufferExtraFeatures;e.mediaSource.addExtraFeaturesToSourceBuffer=function(){return r},delete e.mediaSource.sourceBufferExtraFeatures}return e.streaming&&e.streaming.lowLatencyMode&&(void 0==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),void 0==e.streaming.segmentPrefetchLimit&&(e.streaming.segmentPrefetchLimit=2),void 0==e.streaming.updateIntervalSeconds&&(e.streaming.updateIntervalSeconds=.1),void 0==e.streaming.maxDisabledTime&&(e.streaming.maxDisabledTime=1),void 0==e.streaming.retryParameters&&(e.streaming.retryParameters={}),void 0==e.streaming.retryParameters.baseDelay&&(e.streaming.retryParameters.baseDelay=100),void 0==e.manifest&&(e.manifest={}),void 0==e.manifest.dash&&(e.manifest.dash={}),void 0==e.manifest.dash.autoCorrectDrift&&(e.manifest.dash.autoCorrectDrift=!1),void 0==e.manifest.retryParameters&&(e.manifest.retryParameters={}),void 0==e.manifest.retryParameters.baseDelay&&(e.manifest.retryParameters.baseDelay=100),void 0==e.drm&&(e.drm={}),void 0==e.drm.retryParameters&&(e.drm.retryParameters={}),void 0==e.drm.retryParameters.baseDelay&&(e.drm.retryParameters.baseDelay=100)),n=oR(this.g,e,cg(this)),co(this),n},f.getConfiguration=function(){var e=cg(this);return oR(e,this.g,cg(this)),e},f.dg=function(){return oR(cg(this),this.g,cg(this)),oT(this.g,cg(this))},f.Fe=function(){if(this.h){var e=this.h.buffered.length;e=e?this.h.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.h.currentTime+t,this.mb().end)))return 1;if(!(e<=this.h.currentTime)&&e<t)return(e-this.h.currentTime)/(t-this.h.currentTime)}return 0},f.Tg=function(){for(var e in this.g)delete this.g[e];oR(this.g,cg(this),cg(this)),co(this)},f.Zf=function(){return this.m},f.Dd=function(){return this.i?this.i.type:null},f.cg=function(){return this.h},f.Ed=function(){return this.F},f.Nc=function(){return this.W},f.Mf=function(){return this.A?this.A:null},f.T=function(){return this.i&&!this.K?this.i.presentationTimeline.T():!!this.h&&!!this.h.src&&1/0==this.h.duration},f.Tb=function(){return!!this.i&&this.i.presentationTimeline.Tb()},f.tg=function(){if(this.i&&!this.K){var e=this.i.variants;return!!e.length&&!e[0].video}return!!this.h&&!!this.h.src&&(this.h.videoTracks?0==this.h.videoTracks.length:0==this.h.videoHeight)},f.mb=function(){if(this.i&&!this.K){if(!this.Ta&&"HLS"==this.i.type)return{start:0,end:0};var e=this.i.presentationTimeline;return{start:e.Ya(),end:e.Qa()}}return this.h&&this.h.src&&(e=this.h.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},f.qg=function(){this.T()&&(this.h.currentTime=this.mb().end)},f.ug=function(){return this.Ta},f.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},f.drmInfo=function(){return this.B?this.B.g:null},f.Bd=function(){return this.B?this.B.Bd():1/0},f.zd=function(){return this.B?this.B.zd():[]},f.Oc=function(){return this.B?this.B.Oc():{}},f.Ne=function(){return!!this.N&&this.N.g==o9},f.Ja=function(){return this.h?this.I?this.I.i:1:0},f.Ec=function(e,t){var n=this;t=void 0===t||t,0==e?Y("A trick play rate of 0 is unsupported!"):(this.ub.cb(),this.h.paused&&this.h.play(),this.I.set(e),this.m==cV&&(this.s.playbackRateChanged(e),uL(this.j,t&&1<Math.abs(e))),this.T()&&this.ub.J(this.h,"timeupdate",function(){var t=n.h.currentTime,i=n.mb(),r=n.g.streaming.safeSeekOffset;0<e?Math.floor(t)>=Math.floor(i.end)&&n.dc():Math.floor(t)<=Math.floor(i.start+r)&&n.dc()}))},f.dc=function(){var e=this.I.xb();this.m==cG&&this.I.set(e),this.m==cV&&(this.I.set(e),this.s.playbackRateChanged(e),uL(this.j,!1)),this.ub.cb()},f.yb=function(){if(this.i&&!this.K){for(var e=this.j?this.j.j:null,t=[],n=0,i=h(this.i.variants),r=i.next();!r.done;r=i.next())if(nz(r=r.value)){var a=nF(r);a.active=r==e,a.active||1==n||null==e||r.video!=e.video||r.audio!=e.audio||(a.active=!0),a.active&&n++,t.push(a)}return t}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map(function(e){return nq(e)}):[]},f.Pb=function(){if(this.i&&!this.K){for(var e=this.j?this.j.s:null,t=[],n=h(this.i.textStreams),i=n.next();!i.done;i=n.next()){var r=nH(i=i.value);r.active=i==e,t.push(r)}return t}return this.h&&this.h.src&&this.h.textTracks?cl(this).map(function(e){return nK(e)}):[]},f.Wf=function(){var e=this.zc;return this.i&&(e=this.i.imageStreams),e.map(function(e){return nV(e)})}
1,f.Nf=function(e){var t,n,i,r=this;return L(function(a){return 1==a.g?r.m!=cV&&r.m!=cG?a.return(null):(t=r.zc,r.i&&(t=r.i.imageStreams),(n=t.find(function(t){return t.id==e}))?n.segmentIndex?a.u(2):S(a,n.createSegmentIndex(),2):a.return(null)):(i=[],n.segmentIndex.Nb(function(e){var t=cs(e.tilesLayout||n.tilesLayout);if(t){t=t.rows*t.Ib;for(var r=e.j-e.startTime,a=0;a<t;a++){var o=cu(n,e.startTime+r*a/t);o&&i.push(o)}}}),a.return(i))})},f.lg=function(e,t){var n,i,r=this;return L(function(a){return 1==a.g?r.m!=cV&&r.m!=cG?a.return(null):(n=r.zc,r.i&&(n=r.i.imageStreams),(i=n.find(function(t){return t.id==e}))?i.segmentIndex?a.u(2):S(a,i.createSegmentIndex(),2):a.return(null)):a.return(cu(i,t))})},f.gf=function(e){if(this.i&&this.j&&!this.K){var t=this.i.textStreams.find(function(t){return t.id==e.id});t&&t!=this.j.s&&(u0(this.o.h,t,!1),uj(this.j,t),cI(this),this.Ob=t.language)}else if(this.h&&this.h.src&&this.h.textTracks){t=h(t=cl(this));for(var n=t.next();!n.done;n=t.next())nG(n=n.value)==e.id?n.mode=this.ja?"showing":"hidden":n.mode="disabled";cI(this)}},f.hf=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.i&&this.j&&!this.K){var i=this.i.variants.find(function(t){return t.id==e.id});if(i&&ck(this,i,!1,t,n)){var r=this.j.j;this.g.abr.enabled&&(r.video!=i.video||r.audio&&i.audio&&r.audio.language==i.audio.language&&r.audio.channelsCount==i.audio.channelsCount)&&Y("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack()."),ck(this,i,!1,t,n),this.Ha=new sE(i,this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups),cx(this)}}else if(this.h&&this.h.audioTracks){for(n=(t=h(t=Array.from(this.h.audioTracks))).next();!n.done;n=t.next())if(nG(n=n.value)==e.id){cA(this,n);break}}},f.Pf=function(){return cB(this.yb())},f.jg=function(){return cB(this.Pb())},f.Of=function(){return Array.from(cU(this.yb()))},f.ig=function(){return Array.from(cU(this.Pb()))},f.ef=function(e,t,n,i,r){if(n=void 0===n?0:n,i=void 0===i?0:i,r=void 0===r?"":r,this.i&&this.D&&!this.K){this.Ha=new sS(e,t||"",n,"",!1,"","","",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,[r]),e=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},t=this.j.j,r=this.Ha.create(this.i.variants,l8(this)),n=null,r=h(r.values());for(var a=r.next();!a.done;a=r.next())nz(a=a.value)&&(!n||e(n,t)>e(a,t))&&(n=a);n==t||(n?ck(this,n,!1,!0,i)&&cx(this):cT(this))}else this.h&&this.h.audioTracks&&(i=nY(this.yb(),e,t||"",!1)[0])&&this.hf(i)},f.ff=function(e,t,n){n=void 0!==n&&n,this.i&&this.D&&!this.K?(this.Ob=e,this.xc=t||"",this.wc=n,(e=nY(this.i.textStreams,this.Ob,this.xc,this.wc)[0]||null)&&e!=this.j.s&&(u0(this.o.h,e,!1),this.g.streaming.alwaysStreamText||this.Md())&&(uj(this.j,e),cI(this))):(e=nY(this.Pb(),e,t||"",n)[0])&&this.gf(e)},f.Wg=function(e,t,n,i){if(t=void 0===t||t,n=void 0===n?0:n,i=void 0===i||i,this.i&&this.D&&!this.K){for(var r=null,a=h(this.i.variants),o=a.next();!o.done;o=a.next())if((o=o.value).audio.label==e){r=o;break}null!=r&&(this.Ha=new sS(r.language,"",0,"",!1,"",e,"",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,this.g.preferredAudioCodecs),cT(this,t,n,!1,!0,i))}else if(this.h&&this.h.audioTracks){for(n=Array.from(this.h.audioTracks),t=null,i=(n=h(n)).next();!i.done;i=n.next())(i=i.value).label==e&&(t=i);t&&cA(this,t)}},f.Md=function(){var e=this.ja;return this.H&&this.m==cV?this.H.D.isTextVisible():this.h&&this.h.src&&this.h.textTracks?cl(this).some(function(e){return"showing"==e.mode}):e},f.Ge=function(){return this.h&&this.h.src&&this.h.textTracks?cc(this).map(function(e){return nK(e)}):[]},f.Rf=function(e){if(!this.h||!this.h.src||!this.h.textTracks)return[];var t=nT(e),n=cc(this).filter(function(e){return nT(e.language)==t});if(!n||!n.length)return[];e=[];var i=new Set;n=h(n);for(var r=n.next();!r.done;r=n.next())if((r=r.value)&&r.cues){r=h(r.cues);for(var a=r.next();!a.done;a=r.next()){var o=a.value;
1(a=o.id)&&""!=a||(a=o.startTime+"-"+o.endTime+"-"+o.text),o={id:a,title:o.text,startTime:o.startTime,endTime:o.endTime},i.has(a)||(e.push(o),i.add(a))}}return e},f.ah=function(e){if(e=!!e,this.ja!=e){if(this.ja=e,this.m==cV){var t,n;this.H.D.setTextVisibility(e),this.g.streaming.alwaysStreamText||(e?this.j.s||0<(e=nY(this.i.textStreams,this.Ob,this.xc,this.wc)).length&&(uj(this.j,e[0]),cI(this)):((n=(t=this.j).i.get(t5))&&(uX(n),uY(n).catch(function(){}),t.C=t.i.get(t5),t.i.delete(t5)),t.s=null))}else if(this.h&&this.h.src&&this.h.textTracks){var i=cl(this);i=h(i);for(var r=i.next();!r.done;r=i.next())"disabled"!=(r=r.value).mode&&(r.mode=e?"showing":"hidden")}cM(this)}},f.eg=function(){if(this.D)var e=this.D.Gc();else{if(null==this.qa)return new Date;e=this.qa}if(this.i&&!this.K){var t=this.i.presentationTimeline;return new Date(1e3*((t.s||t.i)+e))}return this.h&&this.h.getStartDate?isNaN((t=this.h.getStartDate()).getTime())?null:new Date(t.getTime()+1e3*e):null},f.Je=function(){if(this.i&&!this.K){var e=this.i.presentationTimeline;return new Date(1e3*(e.s||e.i))}return this.h&&this.h.getStartDate?isNaN((e=this.h.getStartDate()).getTime())?null:e:null},f.Qc=function(){return this.T()&&this.i?this.i.presentationTimeline.Qc():null},f.Pa=function(){if(this.m==cV)return this.H.Pa();var e={total:[],audio:[],video:[],text:[]};return this.m==cG&&(e.total=sR(this.h.buffered)),e},f.getStats=function(){if(this.m!=cV&&this.m!=cG)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,manifestDownloadTimeSeconds:NaN,manifestParseTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,manifestSizeBytes:NaN,bytesDownloaded:NaN,nonFatalErrorCount:NaN,manifestPeriodCount:NaN,manifestGapCount:NaN,switchHistory:[],stateHistory:[]};cy(this);var e=this.h,t=e.currentTime/e.duration;if(!isNaN(t)&&!this.T()){var n=this.o;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}if(this.D&&(this.o.X=this.D.qe(),this.o.Y=this.D.re()),e.getVideoPlaybackQuality){n=e.getVideoPlaybackQuality(),t=this.o;var i=Number(n.totalVideoFrames);t.W=Number(n.droppedVideoFrames),t.S=i,this.o.P=Number(n.corruptedVideoFrames)}if(n=this.B&&(n=this.B).I?n.I:NaN,this.o.s=n,this.m==cV){if(n=this.j.j,t=this.j.s,n){var r=(i=this.I?this.I.i:1)*n.bandwidth;t&&t.bandwidth&&(r+=i*t.bandwidth),this.o.B=r}n&&n.video&&(t=this.o,i=n.video.height||NaN,t.o=n.video.width||NaN,t.l=i),this.T()&&(n=this.Je().valueOf()+1e3*e.currentTime,this.o.C=(Date.now()-n)/1e3),this.i&&!this.K&&(this.o.I=this.i.periodCount,this.o.F=this.i.gapCount,this.o.D=this.i.manifestDownloadTimeSeconds,this.o.H=this.i.manifestParseTimeSeconds,this.i.presentationTimeline&&(this.o.M=this.i.presentationTimeline.h)),n=this.s.getBandwidthEstimate(),this.o.A=n}this.m==cG&&((n=this.o).sb=isNaN(n.sb)?NaN:n.sb+NaN,n=this.o,t=e.videoHeight||NaN,n.o=e.videoWidth||NaN,n.l=t);var a=this.o;e=a.o,n=a.l,t=a.B,i=a.S,r=a.W;var o=a.P,s=a.Y,u=a.X,l=a.A,c=a.i,d=a.m,f=a.K,p=a.D,g=a.H,m=a.j,v=uZ(a.g,"playing"),y=uZ(a.g,"paused"),b=uZ(a.g,"buffering"),w=a.s,x=a.C,S=a.M,T=a.Qe,k=a.sb,A=a.N,E=a.I,C=a.F,I=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],i=h(e.h),r=i.next();!r.done;r=i.next())n.push(t(r.value));return e.g&&n.push(t(e.g)),n}(a.g),M=[];a=h(a.h.g);for(var D=a.next();!D.done;D=a.next())M.push({timestamp:(D=D.value).timestamp,id:D.id,type:D.type,fromAdaptation:D.fromAdaptation,bandwidth:D.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:i,droppedFrames:r,corruptedFrames:o,stallsDetected:s,gapsJumped:u,estimatedBandwidth:l,completionPercent:c,loadLatency:d,manifestTimeSeconds:f,manifestDownloadTimeSeconds:p,manifestParseTimeSeconds:g,drmTimeSeconds:m,playTime:v,pauseTime:y,bufferingTime:b,licenseTime:w,liveLatency:x,maxSegmentDuration:S,manifestSizeBytes:T,bytesDownloaded:k,nonFatalErrorCount:A,manifestPeriodCount:E,manifestGapCount:C,stateHistory:I,switchHistory:M}},f.Df=function(e,t,n,i,r,a,o){o=void 0!==o&&o;var s,u,l,c,h,d,f=this;return L(function(p){switch(p.g){case 1:if(f.m!=cV&&f.m!=cG)throw new tr(1,7,7004);if("subtitles"!=n&&"captions"!=n&&Y("Using a kind value different of `subtitles` or `captions` can cause unwanted issues."),i){p.u(2);break}return S(p,ch(f,e),3);case 3:i=p.h;case 2:if(s=[],f.A&&(s=f.A.getCuePoints()),f.m!=cG){p.u(4);break}return o&&(n="forced"),S(p,cd(f,e,t,n,i,a||"",s),5);case 5:if(u=nT(t),l=f.Pb().find(function(e){return nT(e.language)==u&&e.label==(a||"")&&e.kind==n}))return cE(f),p.return(l);throw new tr(1,2,2012);case 4:if(c=t6,h=f.h.duration,f.i&&(h=f.i.presentationTimeline.getDuration()),1/0==h)throw new tr(1,4,4033);if(!s.length){p.u(6);break}return S(p,cf(f,e,f.F,f.g.streaming.retryParameters),7);case 7:e=s9(new Blob([cp(f,p.h,i,s)],{type:"text/vtt"})),i="text/vtt";case 6:if(d={id:f.me++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:ar(0,h,[e]),mimeType:i||"",codecs:r||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,originalLanguage:t,label:a||null,type:c.na,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([ne(i||"",r||"")])},!nf(ne(d.mimeType,d.codecs)))throw new tr(2,2,2014,i);return f.i.textStreams.push(d),cE(f),p.return(nH(d))}})},f.Ef=function(e,t){var n,i,r,a,o,s,u,l,c,d,f,p,g,m,v,y,b,w=this;return L(function(x){switch(x.g){case 1:if(w.m!=cV&&w.m!=cG)throw new tr(1,7,7004);if(t){x.u(2);break}return S(x,ch(w,e),3);case 3:t=x.h;case 2:if("text/vtt"!=t)throw new tr(1,2,2017,e);if(n=t6,i=w.h.duration,w.i&&(i=w.i.presentationTimeline.getDuration()),1/0==i)throw new tr(1,4,4045);return S(x,cf(w,e,w.F,w.g.streaming.retryParameters),4);case 4:if(r=x.h,!(a=ng[t]))throw new tr(2,2,2014,t);for(o=a(),s={periodStart:0,segmentStart:0,segmentEnd:i,vttOffset:0},u=em(r),l=o.parseMedia(u,s,e),c=[],f=(d=h(l)).next(),p={};!f.done;p={nd:void 0,Kb:void 0},f=d.next())p.Kb=f.value,p.nd=null,g=function(t){return function(){return null==t.nd&&(t.nd=t0([e],[t.Kb.payload])),t.nd||[]}}(p),m=new ae(p.Kb.startTime,p.Kb.endTime,g,0,null,null,0,0,1/0),p.Kb.payload.includes("#xywh")&&4===(v=p.Kb.payload.split("#xywh=")[1].split(",")).length&&m.pf({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)}),c.push(m);if(y=t,!c.length){x.u(5);break}return S(x,lb(c[0].wa()[0],w.F,w.g.manifest.retryParameters),6);case 6:y=x.h;case 5:return b={id:w.me++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ai(c),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:n.Bf,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([ne(y||"","")])},w.m==cG?w.zc.push(b):w.i.imageStreams.push(b),cE(w),x.return(nV(b))}})},f.Cf=function(e,t,n){var i,r,a,o=this;return L(function(s){switch(s.g){case 1:if(o.m!=cV&&o.m!=cG)throw new tr(1,7,7004);if(n){s.u(2);break}return S(s,ch(o,e),3);case 3:n=s.h;
1case 2:return i=[],o.A&&(i=o.A.getCuePoints()),S(s,cd(o,e,t,"chapters",n,"",i),4);case 4:if(r=s.h,!(a=o.Ge().find(function(e){return e.language==t}))){s.u(5);break}return S(s,new Promise(function(e,t){o.l.ma(r,"load",e),o.l.ma(r,"error",function(){t(new tr(1,2,2015))})}),6);case 6:return cE(o),s.return(a);case 5:throw new tr(1,2,2012)}})},f.Yg=function(e,t){this.fa.width=e,this.fa.height=t},f.Zd=function(e){if(this.m==cV){var t=this.j;if(e=void 0===e?.1:e,t.m.g)t=!1;else if(t.A)t=!1;else{for(var n=h(t.i.values()),i=n.next();!i.done;i=n.next())!(i=i.value).qc||i.ta||i.Na||(i.qc=!1,uz(t,i,e));t=!0}}else t=!1;return t},f.Cd=function(){return Y("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.i},f.$f=function(){return this.ka},f.bh=function(e){this.bd=e},f.disableStream=function(e,t){if(!this.g.abr.enabled||this.m===cF||!navigator.onLine||0==t)return!1;if(this.i.variants.some(function(t){var n=t[e.type];return!!n&&n.id!==e.id&&!t.disabledUntilTime&&("audio"!=e.type||e.language===n.language)})){for(var n=!1,i=!1,r=h(this.i.variants),a=r.next();!a.done;a=r.next()){var o=(a=a.value)[e.type];o&&(o.id===e.id?(a.disabledUntilTime=Date.now()/1e3+t,n=!0):o.trickModeVideo&&o.trickModeVideo.id==e.id&&(i=!0))}return(!!n||!i)&&(this.cd.Aa(1),cT(this,!1,t=this.Pa().video.reduce(function(e,t){return e+t.end-t.start},0),!0,!1),!0)}return!1},H("shaka.Player",lQ),lQ.prototype.setVideoContainer=lQ.prototype.bh,lQ.prototype.getManifestParserFactory=lQ.prototype.$f,lQ.prototype.getManifest=lQ.prototype.Cd,lQ.prototype.retryStreaming=lQ.prototype.Zd,lQ.prototype.setMaxHardwareResolution=lQ.prototype.Yg,lQ.prototype.addChaptersTrack=lQ.prototype.Cf,lQ.prototype.addThumbnailsTrack=lQ.prototype.Ef,lQ.prototype.addTextTrackAsync=lQ.prototype.Df,lQ.prototype.getStats=lQ.prototype.getStats,lQ.prototype.getBufferedInfo=lQ.prototype.Pa,lQ.prototype.getSegmentAvailabilityDuration=lQ.prototype.Qc,lQ.prototype.getPresentationStartTimeAsDate=lQ.prototype.Je,lQ.prototype.getPlayheadTimeAsDate=lQ.prototype.eg,lQ.prototype.setTextTrackVisibility=lQ.prototype.ah,lQ.prototype.getChapters=lQ.prototype.Rf,lQ.prototype.getChaptersTracks=lQ.prototype.Ge,lQ.prototype.isTextTrackVisible=lQ.prototype.Md,lQ.prototype.selectVariantsByLabel=lQ.prototype.Wg,lQ.prototype.selectTextLanguage=lQ.prototype.ff,lQ.prototype.selectAudioLanguage=lQ.prototype.ef,lQ.prototype.getTextLanguages=lQ.prototype.ig,lQ.prototype.getAudioLanguages=lQ.prototype.Of,lQ.prototype.getTextLanguagesAndRoles=lQ.prototype.jg,lQ.prototype.getAudioLanguagesAndRoles=lQ.prototype.Pf,lQ.prototype.selectVariantTrack=lQ.prototype.hf,lQ.prototype.selectTextTrack=lQ.prototype.gf,lQ.prototype.getThumbnails=lQ.prototype.lg,lQ.prototype.getAllThumbnails=lQ.prototype.Nf,lQ.prototype.getImageTracks=lQ.prototype.Wf,lQ.prototype.getTextTracks=lQ.prototype.Pb,lQ.prototype.getVariantTracks=lQ.prototype.yb,lQ.prototype.cancelTrickPlay=lQ.prototype.dc,lQ.prototype.trickPlay=lQ.prototype.Ec,lQ.prototype.getPlaybackRate=lQ.prototype.Ja,lQ.prototype.isBuffering=lQ.prototype.Ne,lQ.prototype.getKeyStatuses=lQ.prototype.Oc,lQ.prototype.getActiveSessionsMetadata=lQ.prototype.zd,lQ.prototype.getExpiration=lQ.prototype.Bd,lQ.prototype.drmInfo=lQ.prototype.drmInfo,lQ.prototype.keySystem=lQ.prototype.keySystem,lQ.prototype.isFullyLoaded=lQ.prototype.ug,lQ.prototype.goToLive=lQ.prototype.qg,lQ.prototype.seekRange=lQ.prototype.mb,lQ.prototype.isAudioOnly=lQ.prototype.tg,lQ.prototype.isInProgress=lQ.prototype.Tb,lQ.prototype.isLive=lQ.prototype.T,lQ.prototype.getAdManager=lQ.prototype.Mf,lQ.prototype.getAssetUri=lQ.prototype.Nc,lQ.prototype.getNetworkingEngine=lQ.prototype.Ed,lQ.prototype.getMediaElement=lQ.prototype.cg,lQ.prototype.getManifestType=lQ.prototype.Dd,lQ.prototype.getLoadMode=lQ.prototype.Zf,lQ.prototype.resetConfiguration=lQ.prototype.Tg,lQ.prototype.getBufferFullness=lQ.prototype.Fe,lQ.prototype.getNonDefaultConfiguration=lQ.prototype.dg,lQ.prototype.getConfiguration=lQ.prototype.getConfiguration,lQ.prototype.configure=lQ.prototype.configure,lQ.prototype.releaseAllMutexes=lQ.prototype.Rg,lQ.prototype.destroyAllPreloads=lQ.prototype.ze,lQ.prototype.preload=lQ.prototype.preload,lQ.prototype.detachAndSavePreload=lQ.prototype.Ae,lQ.prototype.unloadAndSavePreload=lQ.prototype.eh,lQ.prototype.load=lQ.prototype.load,lQ.prototype.updateStartTime=lQ.prototype.jh,lQ.prototype.unload=lQ.prototype.Fc,lQ.prototype.detach=lQ.prototype.detach,lQ.prototype.attachCanvas=lQ.prototype.Hf,lQ.prototype.attach=lQ.prototype.fb,lQ.probeSupport=function(e){var t,n,i,r,a,o,s;return e=void 0===e||e,L(function(u){switch(u.g){case 1:var l,c,f,p,g,m,v,y,b,w,x,C,I,M,D,R,P,N,j,_,O,U,B,F,H,V;if(t={},!e){u.u(2);break}return S(u,L(function(e){if(1==e.g){for(l="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.chromecast.playready com.apple.fps.1_0 com.apple.fps".split(" "),c={"com.widevine.alpha":["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],"com.microsoft.playready.recommendation":["150","2000","3000"]},g={videoCapabilities:f=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],audioCapabilities:p=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],initDataTypes:["cenc","sinf","skd","keyids"]},m=[null,"cenc","cbcs","cbcs-1-9"],v=new Map,y=function(e,t){var n,i,r,a,o,s,u,l;return L(function(c){switch(c.g){case 1:return k(c,2),S(c,t.createMediaKeys(),4);case 4:A(c,3);break;case 2:return E(c),c.return();case 3:i=!!(n=t.getConfiguration().sessionTypes)&&n.includes("persistent-license"),ty()&&(i=!1),r=t.getConfiguration().videoCapabilities,a=t.getConfiguration().audioCapabilities,o={persistentState:i,encryptionSchemes:[],videoRobustnessLevels:[],audioR
1obustnessLevels:[]},v.has(e)&&v.get(e)?o=v.get(e):v.set(e,o),(s=r[0].encryptionScheme)&&!o.encryptionSchemes.includes(s)&&o.encryptionSchemes.push(s),(u=r[0].robustness)&&!o.videoRobustnessLevels.includes(u)&&o.videoRobustnessLevels.push(u),(l=a[0].robustness)&&!o.audioRobustnessLevels.includes(l)&&o.audioRobustnessLevels.push(l),T(c)}})},b=function(e,t,n,i){var r,a,o,s,u,l,c,d,f,p;return L(function(m){switch(m.g){case 1:for(k(m,2),o=(a=h((r=nM(g)).videoCapabilities)).next();!o.done;o=a.next())(s=o.value).encryptionScheme=t,s.robustness=n;for(l=(u=h(r.audioCapabilities)).next();!l.done;l=u.next())(c=l.value).encryptionScheme=t,c.robustness=i;return(d=nM(r)).persistentState="required",d.sessionTypes=["persistent-license"],f=[d,r],S(m,navigator.requestMediaKeySystemAccess(e,f),4);case 4:return p=m.h,S(m,y(e,p),5);case 5:A(m,0);break;case 2:E(m),T(m)}})},w=function(e,t,n,i){var r,a;return L(function(o){switch(o.g){case 1:return k(o,2),r={type:"media-source",video:{contentType:f[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:p[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:e,video:{encryptionScheme:t,robustness:n},audio:{encryptionScheme:t,robustness:i}}},S(o,navigator.mediaCapabilities.decodingInfo(r),4);case 4:return a=o.h.keySystemAccess,S(o,y(e,a),5);case 5:A(o,0);break;case 2:E(o),T(o)}})},C=(x=h(l)).next();!C.done;C=x.next())I=C.value,v.set(I,null);for(M=[],R=(D=h(m)).next();!R.done;R=D.next())for(P=R.value,j=(N=h(l)).next();!j.done;j=N.next())"org.w3.clearkey"===(_=j.value)&&tM()||(M.push(b(_,P,"","")),M.push(w(_,P,"","")));for(U=(O=h(l)).next();!U.done;U=O.next())for(H=(F=h(c[B=U.value]||[])).next();!H.done;H=F.next())V=H.value,M.push(b(B,null,V,"")),M.push(b(B,null,"",V)),M.push(w(B,null,V,"")),M.push(w(B,null,"",V));return S(e,Promise.all(M),2)}return e.return(so(v))}),3);case 3:t=u.h;case 2:var G={};if(tf())for(var K in aI)G[K]=!0;K=h(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var q=K.next();!q.done;q=K.next())G[q=q.value]=tf()?!!aI[q]:tp(q);for(n=G,K='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(d(nh)),G={},q=(K=h(K)).next();!q.done;q=K.next()){G[q=q.value]=!!nf(q)||(tf()?en(q)||!!eW(q):tp(q));var W=q.split(";")[0];G[W]=G[W]||G[q]}return i=G,S(u,tj(),4);case 4:for(s in r=u.h,a={manifest:n,media:i,drm:t,hardwareResolution:r},o=cK)a[s]=o[s]();return u.return(a)}})},lQ.isBrowserSupported=function(){if(e.Promise||Y("A Promise implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&Array.prototype.forEach)||tP("Trident/"))return!1;var t=tM();return(!t||!(9>t))&&!!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration)&&(!!tf()||tp("application/x-mpegurl"))},lQ.setAdManagerFactory=function(e){cq=e},lQ.registerSupportPlugin=function(e,t){cK[e]=t},lQ.prototype.destroy=lQ.prototype.destroy;var cF=0,cH=1,cV=2,cG=3;lQ.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3},lQ.version="v41000.0.6";el=new function(e){this.g=e,this.i=es,this.h=eu}(new ea(Number("41000"),Number("0")));var cK={},cq=null;function cW(){}function cz(e,t){for(e={priority:t||0,callback:e},t=0;t<cX.length;t++)if(cX[t].priority<e.priority)return void cX.splice(t,0,e);cX.push(e)}H("shaka.polyfill",cW),cW.register=cz,cW.installAll=function(){for(var e=h(cX),t=e.next();!t.done;t=e.next()){t=t.value;try{t.callback()}catch(e){Y("Error installing polyfill!",e)}}};var cX=[];function cY(){}function cJ(){tA()||tP("Sky_STB")||h1()}function c$(){}function cZ(){var e=!0;!tx()||tx()&&tR()||tx()&&tP("Fuchsia")||(e=!1),(tT()||tk()||tA()||tw()||tv()||tP("PC=EOS")||tE())&&(e=!1),e&&navigator.mediaCapabilities||
1(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=cQ)}function cQ(t){var n,i,r,a,o;return L(function(s){switch(s.g){case 1:if(n={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:t},i=t.video,r=t.audio,"media-source"!=t.type){if("file"!=t.type||i&&!tp(i.contentType)||r&&!tp(r.contentType))return s.return(n);s.u(2);break}if(!tf())return s.return(n);if(!i){s.u(3);break}return S(s,(u=i,L(function(t){var n,i,r;return 1==t.g?tx()?S(t,(n=u,L(function(t){return 1==t.g?e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?(i=n.contentType,n.width&&n.height&&(i+="; width="+n.width+"; height="+n.height),n.framerate&&(i+="; framerate="+n.framerate),"pq"===n.transferFunction&&(i+="; eotf=smpte2084"),r=!1,i in c0?(r=c0[i],t.u(2)):S(t,cast.__platform__.canDisplayType(i),3)):t.return(en(n.contentType)):(2!=t.g&&(r=t.h,c0[i]=r),t.return(r))})),3):tv()?(l=u.contentType,u.width&&u.height&&(l+="; width="+u.width,l+="; height="+u.height),u.framerate&&(l+="; framerate="+u.framerate),u.bitrate&&(l+="; bitrate="+u.bitrate),t.return(en(l))):t.u(2):2!=t.g?(c=t.h,t.return(c)):t.return(en(u.contentType))})),4);case 4:if(!s.h)return s.return(n);case 3:if(r){var u,l,c,h,d,f,p,g,m,v,y,b,w,x,T,C,I,M=r.contentType;if(tx()&&r.spatialRendering&&(M+="; spatialRendering=true"),!en(M))return s.return(n)}case 2:if(!t.keySystemConfiguration)return n.supported=!0,s.return(n);return a=t.keySystemConfiguration,S(s,(h=i,d=r,f=a,L(function(e){switch(e.g){case 1:if(p=[],g=[],f.audio&&(m={robustness:f.audio.robustness||"",contentType:d.contentType},tv()&&d.contentType.includes('codecs="ac-3"')&&(m.contentType='audio/mp4; codecs="ec-3"'),f.audio.encryptionScheme&&(m.encryptionScheme=f.audio.encryptionScheme),p.push(m)),f.video&&(v={robustness:f.video.robustness||"",contentType:h.contentType},f.video.encryptionScheme&&(v.encryptionScheme=f.video.encryptionScheme),g.push(v)),y={initDataTypes:[f.initDataType],distinctiveIdentifier:f.distinctiveIdentifier,persistentState:f.persistentState,sessionTypes:f.sessionTypes},p.length&&(y.audioCapabilities=p),g.length&&(y.videoCapabilities=g),b=h?h.contentType:"",w=d?d.contentType:"",x=no(b)+";"+na(b),T=no(w)+";"+na(w),C=f.keySystem,I=null,k(e,2),tc.has(x+"#"+T+"#"+C)){I=tc.get(x+"#"+T+"#"+C)||null,e.u(4);break}return S(e,navigator.requestMediaKeySystemAccess(f.keySystem,[y]),5);case 5:I=e.h,tc.set(x+"#"+T+"#"+C,I);case 4:A(e,3);break;case 2:E(e);case 3:return e.return(I)}})),6);case 6:(o=s.h)&&(n.supported=!0,n.keySystemAccess=o);case 5:return s.return(n)}})}cW.EncryptionScheme=cY,cY.install=cJ,cz(cJ,-2),cW.MediaCapabilities=c$,c$.install=cZ;c$.originalMcap=null;var c0={};function c1(){}function c2(){var t,n=tM();(e.MediaSource||e.ManagedMediaSource)&&(n&&e.MediaSource?10>=n?e.MediaSource=null:12>=n?(c3(),c4()):15>=n&&c3():tP("DT_STB_BCM")?(c3(),c4()):(tP("Tizen 2")||ty()||tP("Tizen 4"))&&function(){var t=MediaSource.isTypeSupported.bind(MediaSource);if(MediaSource.isTypeSupported=function(e){return"opus"!=na(e)&&t(e)},e.ManagedMediaSource){var n=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);e.ManagedMediaSource.isTypeSupported=function(e){return"opus"!=na(e)&&n(e)}}}()),(e.MediaSource||e.ManagedMediaSource)&&function(){if(e.MediaSource){var t=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(e){return"mp2t"!=ni(e)&&t(e)}}if(e.ManagedMediaSource){var n=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);e.ManagedMediaSource.isTypeSupported=function(e){return"mp2t"!=ni(e)&&n(e)}}}(),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&(t=MediaSource.isTypeSupported,tw()||(MediaSource.isTypeSupported=function(e){var n=e.split(/ *; */),i=n.findIndex(function(e){return e.startsWith("codecs=")});if(0>i)return t(e);var r=n[i].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),a=r.findIndex(function(e){return e.startsWith("vp09")});return 0<=a&&(r[a]="vp9",n[i]='codecs="'+r.join(",")+'"',e=n.join("; ")),t(e)}))}function c3(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,N.apply(0,arguments));return t.abort=function(){},t}}function c4(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}function c5(){}function c6(){e.MediaKeys&&(!MediaKeys.prototype.setServerCertificate||ty()||tP("Tizen 4")||tP("Tizen 5.0")||tw()&&38===tS())&&(MediaKeys.prototype.setServerCertificate=c8)}function c8(){return Promise.resolve(!1)}function c7(){}function c9(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if
1(HTMLMediaElement.prototype.webkitGenerateKeyRequest)hh="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=ht,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=hn,e.MediaKeys=hr,e.MediaKeySystemAccess=hi,e.shakaMediaKeysPolyfill=hd}}function he(e){var t=hh;return t?t+e.charAt(0).toUpperCase()+e.slice(1):e}function ht(e,t){try{var n=new hi(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function hn(e){var t=this.mediaKeys;return t&&t!=e&&ha(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&ha(e,this),Promise.resolve()}function hi(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var i=!1,r=document.getElementsByTagName("video");r=r.length?r[0]:document.createElement("video"),t=h(t);for(var a=t.next();!a.done;a=t.next()){var o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(a=a.value).initDataTypes,sessionTypes:["temporary"],label:a.label},s=!1;if(a.audioCapabilities)for(var u=h(a.audioCapabilities),l=u.next();!l.done;l=u.next())(l=l.value).contentType&&(s=!0,r.canPlayType(l.contentType.split(";")[0],this.g)&&(o.audioCapabilities.push(l),i=!0));if(a.videoCapabilities)for(l=(u=h(a.videoCapabilities)).next();!l.done;l=u.next())(l=l.value).contentType&&(s=!0,r.canPlayType(l.contentType,this.g)&&(o.videoCapabilities.push(l),i=!0));if(s||(i=r.canPlayType("video/mp4",this.g)||r.canPlayType("video/webm",this.g)),"required"==a.persistentState&&(n?(o.persistentState="required",o.sessionTypes=["persistent-license"]):i=!1),i){this.h=o;return}}throw n="Unsupported keySystem",("org.w3.clearkey"==e||"com.widevine.alpha"==e)&&(n="None of the requested configurations were supported."),(e=Error(n)).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function hr(e){this.l=e,this.h=null,this.g=new Q,this.i=[],this.j=new Map}function ha(e,t){e.h=t,e.g.cb();var n=hh;t&&(e.g.J(t,n+"needkey",function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=eg(t.initData),e.h.dispatchEvent(n)}),e.g.J(t,n+"keymessage",function(t){var n=ho(e,t.sessionId);n&&(t=new rG("message",t=(new Map).set("messageType",void 0==n.keyStatuses.pc()?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))}),e.g.J(t,n+"keyadded",function(t){(t=ho(e,t.sessionId))&&t.ready()}),e.g.J(t,n+"keyerror",function(t){var n=ho(e,t.sessionId);if(n){var i=Error("EME v0.1b key error"),r=t.errorCode;r.systemCode=t.systemCode,i.errorCode=r,!t.sessionId&&n.h?(45==t.systemCode&&(i.message="Unsupported session type."),n.h.reject(i),n.h=null):t.sessionId&&n.g?(n.g.reject(i),n.g=null):(i=t.systemCode,t.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?hl(n,"output-restricted"):1==i?hl(n,"expired"):hl(n,"internal-error"))}}))}function ho(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function hs(e,t,n){rK.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new r_,this.keyStatuses=new hc}function hu(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if("persistent-license"==e.l)if(n)var i=em(tV("LOAD_SESSION|"+n));else{var r=tV("PERSISTENT|");i=tQ(r,t)}else i=em(t)}catch(e){return Promise.reject(e)}e.h=new r_;var a=he("generateKeyRequest");try{e.j[a](e.i,i)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new td(function(){try{e.j[a](e.i,i)}catch(t){e.h.reject(t),e.h=null}}).ca(.01)}return e.h}function hl(e,t){var n=e.keyStatuses;n.size=+(void 0!=t),n.g=t,t=new rG("keystatuseschange"),e.dispatchEvent(t)}function hc(){this.size=0,this.g=void 0}c$.memoizedCanDisplayTypeRequests_=c0,cz(cZ,-1),cW.MediaSource=c1,c1.install=c2,cz(c2),cW.PatchedMediaKeysCert=c5,c5.install=c6,cz(c6),cW.PatchedMediaKeysWebkit=c7,c7.install=c9,hi.prototype.createMediaKeys=function(){return Promise.resolve(new hr(this.g))},hi.prototype.getConfiguration=function(){return this.h},hr.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new hs(t,this.l,e),this.i.push(e),e},hr.prototype.setServerCertificate=function(){return Promise.resolve(!1)},hr.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},y(hs,rK),(f=hs.prototype).ready=function(){hl(this,"usable"),this.g&&this.g.resolve(),this.g=null},f.generateRequest=function(e,t){return hu(this,t,null)},f.load=function(e){return"persistent-license"==this.l?hu(this,null,e):Prom
1ise.reject(Error("Not a persistent session."))},f.update=function(e){var t=new r_;return!function e(t,n,i){if(t.g)t.g.then(function(){return e(t,n,i)}).catch(function(){return e(t,n,i)});else{if(t.g=n,"webkit-org.w3.clearkey"==t.i){var r=tB(i),a=JSON.parse(r);"oct"!=a.keys[0].kty&&(t.g.reject(Error("Response is not a valid JSON Web Key Set.")),t.g=null),r=tJ(a.keys[0].k),a=tJ(a.keys[0].kid)}else r=em(i),a=null;var o=he("addKey");try{t.j[o](t.i,r,a,t.sessionId)}catch(e){t.g.reject(e),t.g=null}}}(this,t,e),t},f.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=he("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},f.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(f=hc.prototype).pc=function(){return this.g},f.forEach=function(e){this.g&&e(this.g,tl.value())},f.get=function(e){if(this.has(e))return this.g},f.has=function(e){var t=tl.value();return!!(this.g&&ef(e,t))},f.entries=function(){},f.keys=function(){},f.values=function(){};var hh="",hd="webkit";function hf(){}function hp(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=hg))}function hg(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function hm(){}function hv(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:hy})}function hy(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}function hb(){}function hw(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch(function(){}),e}}}function hx(){}function hS(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in t||tw()&&38===tS())&&(t.getVideoPlaybackQuality=hT)}}function hT(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function hk(){}function hA(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=hE;else if(6==n)t=hC;else{try{var i=!!hE(1,2,"")}catch(e){i=!1}i&&(t=hE)}t&&(e.VTTCue=function(e,n,i){return t(e,n,i)})}}function hE(t,n,i){return new e.TextTrackCue(t,n,i)}function hC(t,n,i){return new e.TextTrackCue(t+"-"+n+"-"+i,t,n,i)}function hI(e){this.h=e||"",this.g=0}function hM(e){hD(e,/[ \t]+/gm)}function hD(e,t){return(t.lastIndex=e.g,t=null==(t=t.exec(e.h))?null:{position:t.index,length:t[0].length,results:t},e.g==e.h.length||null==t||t.position!=e.g)?null:(e.g+=t.length,t.results)}function hR(e){return e.g==e.h.length?null:(e=hD(e,/[^ \t\n]*/gm))?e[0]:null}function hP(){this.h=!1,this.g="UNKNOWN"}function hL(e){for(var t=h(Object.entries(eH)),n=t.next();!n.done;n=t.next()){var i=h(n.value);n=i.next().value,i=i.next().value;var r=new eM(0,0,"");r.color=i,e.set("."+n,r)}for(n=(t=h(Object.entries(eV))).next();!n.done;n=t.next())n=(i=h(n.value)).next().value,i=i.next().value,(r=new eM(0,0,"")).backgroundColor=i,e.set("."+n,r)}function hN(e,t,n){if(e.includes("<")){0===n.size&&hL(n);var i,r,a,o,s=e;e=[];for(var u=-1,l=0;l<s.length;l++)"<"===s[l]?u=l+1:">"===s[l]&&0<u&&((u=s.substr(u,l-u)).match(hU)&&e.push(u),u=-1);for(l=(e=h(e)).next();!l.done;l=e.next())l=l.value,s=s.replace("<"+l+">",'<div time="'+l+'">')+"</div>";e=s;e:{l=e,u=[];var c=-1;e="",s=!1;for(var d=0;d<l.length;d++)if("/"===l[d]){var f=l.indexOf(">",d);if(-1===f){e=l;break e}if((f=l.substring(d+1,f))&&"v"==f){s=!0;var p=null;if(u.length&&(p=u[u.length-1]),p){if(p===f)e+="/"+f+">";else{if(!p.startsWith("v")){e+=l[d];continue}e+="/"+p+">"}d+=f.length+1}else e+=l[d]}else e+=l[d]}else"<"===l[d]?"v"!=l[c=d+1]&&(c=-1):">"===l[d]&&0<c&&(u.push(l.substr(c,d-c)),c=-1),e+=l[d];for(u=(l=h(u)).next();!u.done;u=l.next())c=(u=u.value).replace(" ",".voice-"),e=(e=e.replace("<"+u+">","<"+c+">")).replace("</"+u+">","</"+c+">"),s||(e+="</"+c+">")}i=e,r={"< ":""," >":" >"},o=RegExp((a=/(< +>|<\s|\s>)/g).source),e=i&&o.test(i)?i.replace(a,function(e){return r[e]||""}):i||"";try{var g=rt("<span>"+e+"</span>","span")}catch(e){}if(g)if(1!=(g=g.children).length||g[0].tagName)for(e=(g=h(g)).next();!e.done;e=g.next())!function e(t,n,i){var r=n.clone();if(r.nestedCues=[],r.payload="",r.rubyTag="",r.line=null,r.region=new ek,r.position=null,r.size=0,t.tagName)for(var a=h(t.tagName.split(/(?=[ .])+/g)),o=a.next();!o.done;o=a.next()){var s=o=o.value;if(s.startsWith(".voice-")){var u=s.split("-").pop();s='v[voice="'+u+'"]',i.has(s)||(s="v[voice="+u+"]")}switch(i.has(s)&&(u=r,s=i.get(s))&&(u.backgroundColor=hj(s.backgroundColor,u.backgroundColor),u.color=hj(s.color,u.color),u.fontFamily=hj(s.fontFamily,u.fontFamily),u.fontSize=hj(s.fontSize,u.fontSize),u.textShadow=hj(s.textShadow,u.textShadow),u.fontWeight=s.fontWeight,u.fontStyle=s.fontStyle,u.opacity=s.opacity,u.rubyTag=s.rubyTag,u.textCombineUpright=s.textCombineUpright,u.wrapLine=s.wrapLine),o){case"br":r=eD(r.startTime,r.endTime),n.nestedCues.push(r);return;case"b":r.fontWeight=700;break;case"i":r.fontStyle="italic";break;case"u":r.textDecoration.push("underline");break;case"font":(o=t.attributes.color)&&(r.color=o);break;case"div":if(!(o=t.attributes.time))break;
1(o=hO(new hI(o)))&&(r.startTime=o);break;case"ruby":case"rp":case"rt":r.rubyTag=o}}if(a=t.children,"string"==typeof t||1==a.length&&"string"==typeof a[0])for(i=ra(t).split("\n"),t=!0,a=(i=h(i)).next();!a.done;a=i.next())a=a.value,t||(t=eD(r.startTime,r.endTime),n.nestedCues.push(t)),0<a.length&&((t=r.clone()).payload=tq(a),n.nestedCues.push(t)),t=!1;else for(n.nestedCues.push(r),t=(n=h(a)).next();!t.done;t=n.next())e(t.value,r,i)}(e.value,t,n);else t.payload=tq(e);else t.payload=tq(e)}else t.payload=tq(e)}function hj(e,t){return e&&0<e.length?e:t}function h_(e,t,n){var i,r,a;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?"middle"==(t=i[1])?e.textAlign=eL:e.textAlign=eN[t.toUpperCase()]:(i=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==i[1]?"vertical-lr":"vertical-rl":(i=/^size:([\d.]+)%$/.exec(t))?e.size=Number(i[1]):(i=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(t))?(e.position=Number(i[1]),i[2]&&(e.positionAlign="line-left"==(t=i[2])||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center"==t||"middle"==t?"center":eP)):(i=/^regi
1on:(.*)$/.exec(t))?(r=n,a=i[1],(t=(r=r.filter(function(e){return e.id==a})).length?r[0]:null)&&(e.region=t)):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=eF[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=eU,e.line=Number(n[1]),n[2]&&(e.lineAlign=eF[n[2].toUpperCase()]))}function hO(e){if(null==(e=hD(e,hU)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}cz(c9),cW.RandomUUID=hf,hf.install=hp,cz(hp),cW.Symbol=hm,hm.install=hv,cz(hv),cW.VideoPlayPromise=hb,hb.install=hw,cz(hw),cW.VideoPlaybackQuality=hx,hx.install=hS,cz(hS),cW.VTTCue=hk,hk.install=hA,cz(hA),hP.prototype.parseInit=function(){},hP.prototype.setSequenceMode=function(e){this.h=e},hP.prototype.setManifestType=function(e){this.g=e},hP.prototype.parseMedia=function(e,t){var n=(e=(e=tB(e)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new tr(2,2,2e3);if(e=t.vttOffset,n[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g)if(this.h){var i=n[0];if(e=i.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),i=i.match(/MPEGTS:(\d+)/m),!e||!i||null==(e=hO(new hI(e[1]))))throw new tr(2,2,2e3);i=Number(i[1]);for(var r=t.segmentStart-t.periodStart;95443.7176888889<=r;)r-=95443.7176888889,i+=0x200000000;e=t.periodStart+i/9e4-e}else e=t.segmentStart;for(t=[],r=(i=h(n[0].split("\n"))).next();!r.done;r=i.next())if(r=r.value,/^Region:/.test(r)){r=new hI(r);var a=new ek;hR(r),hM(r);for(var o=hR(r);o;){var s=a,u=o;(o=/^id=(.*)$/.exec(u))?s.id=o[1]:(o=/^width=(\d{1,2}|100)%$/.exec(u))?s.width=Number(o[1]):(o=/^lines=(\d+)$/.exec(u))?(s.height=Number(o[1]),s.heightUnits=2):(o=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(s.regionAnchorX=Number(o[1]),s.regionAnchorY=Number(o[2])):(o=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(s.viewportAnchorX=Number(o[1]),s.viewportAnchorY=Number(o[2])):/^scroll=up$/.exec(u)&&(s.scroll="up"),hM(r),o=hR(r)}t.push(a)}for(hL(i=new Map),r=[],a=(n=h(n.slice(1))).next();!a.done;a=n.next()){if((1!=(a=a.value.split("\n")).length||a[0])&&!/^NOTE($|[ \t])/.test(a[0])&&"STYLE"==a[0]){for(u=1,s=[],o=-1;u<a.length;u++)a[u].includes("::cue")&&(s.push([]),o=s.length-1),-1!=o&&(s[o].push(a[u]),a[u].includes("}")&&(o=-1));for(o=(s=h(s)).next();!o.done;o=s.next()){var l=o.value;o="global",(u=l[0].match(/\((.*)\)/))&&(o=u.pop()),u=l.slice(1,-1),l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(u=l[1].split(";")),(l=i.get(o))||(l=new eM(0,0,""));for(var c=!1,d=0;d<u.length;d++){var f=/^\s*([^:]+):\s*(.*)/.exec(u[d]);if(f){var p=f[2].trim().replace(";","");switch(f[1].trim()){case"background-color":case"background":c=!0,l.backgroundColor=p;break;case"color":c=!0,l.color=p;break;case"font-family":c=!0,l.fontFamily=p;break;case"font-size":c=!0,l.fontSize=p;break;case"font-weight":(700<=parseInt(p,10)||"bold"==p)&&(c=!0,l.fontWeight=700);break;case"font-style":switch(p){case"normal":c=!0,l.fontStyle=eK;break;case"italic":c=!0,l.fontStyle="italic";break;case"oblique":c=!0,l.fontStyle="oblique"}break;case"opacity":c=!0,l.opacity=parseFloat(p);break;case"text-combine-upright":c=!0,l.textCombineUpright=p;break;case"text-shadow":c=!0,l.textShadow=p;break;case"white-space":c=!0,l.wrapLine="noWrap"!=p}}}c&&i.set(o,l)}}if(l=a,c=e,1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||"STYLE"==l[0]||"REGION"==l[0])a=null;else if(a=null,l[0].includes("--\x3e")||(a=l[0],l.splice(0,1)),o=hO(s=new hI(l[0])),d=hD(s,/[ \t]+--\x3e[ \t]+/g),u=hO(s),null==o||null==d||null==u)Y("Failed to parse VTT time code. Cue skipped:",a,l),a=null;else{for(o+=c,u+=c,l=l.slice(1).join("\n").trim(),i.has("global")?((c=i.get("global").clone()).startTime=o,c.endTime=u,c.payload=""):c=new eM(o,u,""),hM(s),o=hR(s);o;)h_(c,o,t),hM(s),o=hR(s);hN(l,c,i),null!=a&&(c.id=a),a=c}a&&r.push(a)}return r},H("shaka.text.VttTextParser",hP),hP.prototype.parseMedia=hP.prototype.parseMedia,hP.prototype.setManifestType=hP.prototype.setManifestType,hP.prototype.setSequenceMode=hP.prototype.setSequenceMode,hP.prototype.parseInit=hP.prototype.parseInit;var hU=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function hB(){this.g=null}function hF(){}function hH(){a||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(a=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=hV,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function hV(e,t){var n,i=this;
1return L(function(r){return 1==r.g?(console.assert(i==navigator,'bad "this" for requestMediaKeySystemAccess'),S(r,a.call(i,e,t),2)):hZ(n=r.h)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=a,r.return(n)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=hG,r.return(hG.call(i,e,t)))})}function hG(e,t){var n,i,r,o,s,u,l,c,d,f,p,g,m=this;return L(function(v){if(1==v.g){for(console.assert(m==navigator,'bad "this" for requestMediaKeySystemAccess'),n=h$(e),i=[],o=(r=h(t)).next();!o.done;o=r.next())u=hK((s=o.value).videoCapabilities,n),l=hK(s.audioCapabilities,n),s.videoCapabilities&&s.videoCapabilities.length&&!u.length||s.audioCapabilities&&s.audioCapabilities.length&&!l.length||((c=Object.assign({},s)).videoCapabilities=u,c.audioCapabilities=l,i.push(c));if(!i.length)throw(d=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",d.code=DOMException.NOT_SUPPORTED_ERR,d;return S(v,a.call(m,e,i),2)}return f=v.h,g=p=null,i[0]&&(i[0].videoCapabilities&&(p=i[0].videoCapabilities[0].encryptionScheme),i[0].audioCapabilities&&(g=i[0].audioCapabilities[0].encryptionScheme)),v.return(new hJ(f,p,g))})}function hK(e,t){return e?e.filter(function(e){return hQ(e.encryptionScheme,t)}):e}function hq(){}function hW(){o||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(o=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=hz,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function hz(e){var t,n,i=this;return L(function(r){switch(r.g){case 1:return console.assert(i==navigator.mediaCapabilities,'bad "this" for decodingInfo'),S(r,o.call(i,e),2);case 2:if(t=r.h,!e.keySystemConfiguration)return r.return(t);if((n=t.keySystemAccess)&&hZ(n))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=o,r.return(t);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=hX,n){r.u(3);break}return S(r,hY(e),4);case 4:return t.keySystemAccess=r.h,r.return(t);case 3:return r.return(hX.call(i,e))}})}function hX(e){var t,n,i,r,a,s,u,l=this;return L(function(c){switch(c.g){case 1:return console.assert(l==navigator.mediaCapabilities,'bad "this" for decodingInfo'),n=t=null,!e.keySystemConfiguration||(r=(i=e.keySystemConfiguration).keySystem,
1n=i.audio&&i.audio.encryptionScheme,t=i.video&&i.video.encryptionScheme,a=h$(r),s={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},hQ(n,a)&&hQ(t,a))?S(c,o.call(l,e),2):c.return(s);case 2:if((u=c.h).keySystemAccess){u.keySystemAccess=new hJ(u.keySystemAccess,t,n),c.u(3);break}if(!e.keySystemConfiguration){c.u(3);break}return S(c,hY(e),5);case 5:u.keySystemAccess=c.h;case 3:return c.return(u)}})}function hY(e){var t,n;return L(function(i){if(1==i.g){var r=e.keySystemConfiguration,a=[],o=[];return r.audio&&a.push({robustness:r.audio.robustness||"",contentType:e.audio.contentType,encryptionScheme:r.audio.encryptionScheme}),r.video&&o.push({robustness:r.video.robustness||"",contentType:e.video.contentType,encryptionScheme:r.video.encryptionScheme}),r={initDataTypes:r.initDataType?[r.initDataType]:[],distinctiveIdentifier:r.distinctiveIdentifier,persistentState:r.persistentState,sessionTypes:r.sessionTypes},a.length&&(r.audioCapabilities=a),o.length&&(r.videoCapabilities=o),t=r,S(i,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[t]),2)}return n=i.h,i.return(n)})}function hJ(e,t,n){this.g=e,this.i=t||null,this.h=n||null,this.keySystem=e.keySystem}function h$(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.chromecast")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs":(console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function hZ(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)&&void 0!==e.encryptionScheme}function hQ(e,t){return!e||e==t||("cbcs"==e||"cbcs-1-9"==e)&&(!!h3||!!h2)}function h0(){}function h1(){hH(),hW()}ng["text/vtt"]=function(){return new hP},ng['text/vtt; codecs="vtt"']=function(){return new hP},ng['text/vtt; codecs="wvtt"']=function(){return new hP},hB.prototype.parseInit=function(e){var t=this,n=!1;if((new iV).box("moov",iG).box("trak",iG).box("mdia",iG).R("mdhd",function(e){t.g=(e=i0(e.reader,e.version)).timescale}).box("minf",iG).box("stbl",iG).R("stsd",iK).box("wvtt",function(){n=!0}).parse(e),!this.g||!n)throw new tr(2,2,2008)},hB.prototype.setSequenceMode=function(){},hB.prototype.setManifestType=function(){},hB.prototype.parseMedia=function(e,t){if(!e.length)return[];if(!this.g)throw new tr(2,2,2008);var n,i=0,r=[],a=[],o=!1,s=!1,u=!1,l=null;if((new iV).box("moof",iG).box("traf",iG).R("tfdt",function(e){o=!0,i=iQ(e.reader,e.version).baseMediaDecodeTime}).R("tfhd",function(e){l=iZ(e.reader,e.flags).ic}).R("trun",function(e){s=!0,r=i1(e.reader,e.version,e.flags).df}).box("mdat",iW(function(e){u=!0,n=e})).parse(e,!1),!u&&!o&&!s)throw new tr(2,2,2008);e=i;for(var c=new i_(n,0),d=h(r),f=d.next();!f.done;f=d.next()){var p=(f=f.value).$d||l,g=f.ed?i+f.ed:e;e=g+(p||0);var m=0;do{var v=c.L();m+=v;var y=c.L(),b=null;"vttc"==iX(y)?8<v&&(b=c.kb(v-8)):c.skip(v-8),p&&b&&(v=function(e,t,n){var i,r,a;return(new iV).box("payl",iW(function(e){i=tB(e)})).box("iden",iW(function(e){r=tB(e)})).box("sttg",iW(function(e){a=tB(e)})).parse(e),i?function(e,t,n,i,r){if(hN(e,i=new eM(i,r,""),new Map),t&&(i.id=t),n)for(t=hR(e=new hI(n));t;)h_(i,t,[]),hM(e),t=hR(e);return i}(i,r,a,t,n):null}(b,t.periodStart+g/this.g,t.periodStart+e/this.g),a.push(v))}while(f.sampleSize&&m<f.sampleSize)}return a.filter(ny)},H("shaka.text.Mp4VttParser",hB),hB.prototype.parseMedia=hB.prototype.parseMedia,hB.prototype.setManifestType=hB.prototype.setManifestType,hB.prototype.setSequenceMode=hB.prototype.setSequenceMode,hB.prototype.parseInit=hB.prototype.parseInit,ng['application/mp4; codecs="wvtt"']=function(){return new hB},new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),new Uint8Array([0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,1]),new Uint8Array([]),new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),new Uint8Array([]),H("EmeEncryptionSchemePolyfill",hF),hF.install=hH,H("McEncryptionSchemePolyfill",hq),hq.install=hW,hJ.prototype.getConfiguration=function(){var e=this.g.getConfiguration();if(e.videoCapabilities)for(var t=h(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.i;if(e.audioCapabilities)for(n=(t=h(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.h;return e},hJ.prototype.createMediaKeys=function(){return this.g.createMediaKeys()},H("EncryptionSchemePolyfills",h0),h0.install=h1;var h2=navigator.userAgent.includes("CrKey"),h3=100<=parseInt(navigator.userAgent.
1split("Firefox/").pop(),10);void 0!==n&&n.exports&&(n.exports=h0)}).call(r,i,i,void 0),r.shaka)t[a]=r.shaka[a]}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.