shaka-player 4.7.3 → 4.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +3 -1
  2. package/dist/locales.js +32 -32
  3. package/dist/shaka-player.compiled.d.ts +4 -0
  4. package/dist/shaka-player.compiled.debug.d.ts +4 -0
  5. package/dist/shaka-player.compiled.debug.externs.js +5 -0
  6. package/dist/shaka-player.compiled.debug.js +121 -119
  7. package/dist/shaka-player.compiled.debug.map +3 -3
  8. package/dist/shaka-player.compiled.externs.js +5 -0
  9. package/dist/shaka-player.compiled.js +689 -687
  10. package/dist/shaka-player.compiled.map +3 -3
  11. package/dist/shaka-player.ui.d.ts +4 -0
  12. package/dist/shaka-player.ui.debug.d.ts +4 -0
  13. package/dist/shaka-player.ui.debug.externs.js +5 -0
  14. package/dist/shaka-player.ui.debug.js +145 -142
  15. package/dist/shaka-player.ui.debug.map +3 -3
  16. package/dist/shaka-player.ui.externs.js +5 -0
  17. package/dist/shaka-player.ui.js +831 -829
  18. package/dist/shaka-player.ui.map +3 -3
  19. package/lib/ads/client_side_ad.js +4 -2
  20. package/lib/ads/client_side_ad_manager.js +5 -3
  21. package/lib/cast/cast_proxy.js +18 -0
  22. package/lib/cea/cea608_memory.js +1 -1
  23. package/lib/cea/cea_decoder.js +1 -1
  24. package/lib/hls/hls_parser.js +16 -0
  25. package/lib/hls/hls_utils.js +5 -5
  26. package/lib/media/media_source_engine.js +4 -4
  27. package/lib/media/play_rate_controller.js +1 -0
  28. package/lib/media/presentation_timeline.js +11 -0
  29. package/lib/offline/session_deleter.js +0 -8
  30. package/lib/player.js +41 -6
  31. package/lib/polyfill/patchedmediakeys_apple.js +0 -6
  32. package/lib/text/ttml_text_parser.js +5 -0
  33. package/lib/text/vtt_text_parser.js +5 -0
  34. package/lib/util/language_utils.js +7 -8
  35. package/lib/util/periods.js +3 -1
  36. package/package.json +1 -1
  37. package/ui/play_button.js +17 -0
  38. package/ui/playback_rate_selection.js +4 -0
  39. package/ui/small_play_button.js +2 -2
@@ -10,45 +10,45 @@
10
10
  SPDX-License-Identifier: Apache-2.0
11
11
  */
12
12
  var p;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
13
- function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ea=da(this);function fa(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}}
14
- fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ca(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
15
- fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(ba(this))}})}return a});function ha(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
13
+ function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ea=da(this);function ha(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}}
14
+ ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ca(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
15
+ ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(ba(this))}})}return a});function ia(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
16
  function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function w(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ka;
17
17
  if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
18
- function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.qk=b.prototype}function qa(){this.s=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function ra(a){if(a.s)throw new TypeError("Generator is already running");a.s=!0}qa.prototype.u=function(a){this.h=a};
19
- function sa(a,b){a.i={Jg:b,Tg:!0};a.g=a.m||a.j}qa.prototype.return=function(a){this.i={return:a};this.g=this.j};function D(a,b,c){a.g=c;return{value:b}}qa.prototype.F=function(a){this.g=a};function F(a){a.g=0}function ta(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a,b){a.m=0;a.j=b||0}function va(a,b,c){a.g=b;a.m=c||0}function wa(a,b){a.m=b||0;b=a.i.Jg;a.i=null;return b}function xa(a){a.C=[a.i];a.m=0;a.j=0}
20
- function ya(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Tg?a.g=a.m||a.j:void 0!=c.F&&a.j<c.F?(a.g=c.F,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new qa;this.h=a}function Aa(a,b){ra(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ca(a)}
21
- function Ba(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.s=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.s=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.s=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Tg)throw b.Jg;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
22
- function Ea(a){this.next=function(b){ra(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.u):(a.g.u(b),b=Ca(a));return b};this.throw=function(b){ra(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.u):(sa(a.g,b),b=Ca(a));return b};this.return=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}function Fa(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
23
- function K(a){return Fa(new Ea(new za(a)))}function Ga(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
24
- fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.s=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=ea.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
18
+ function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.wk=b.prototype}function qa(){this.s=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function ra(a){if(a.s)throw new TypeError("Generator is already running");a.s=!0}qa.prototype.u=function(a){this.h=a};
19
+ function sa(a,b){a.i={Og:b,Yg:!0};a.g=a.m||a.j}qa.prototype.return=function(a){this.i={return:a};this.g=this.j};function D(a,b,c){a.g=c;return{value:b}}qa.prototype.F=function(a){this.g=a};function F(a){a.g=0}function ta(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a,b){a.m=0;a.j=b||0}function va(a,b,c){a.g=b;a.m=c||0}function wa(a,b){a.m=b||0;b=a.i.Og;a.i=null;return b}function xa(a){a.C=[a.i];a.m=0;a.j=0}
20
+ function ya(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Yg?a.g=a.m||a.j:void 0!=c.F&&a.j<c.F?(a.g=c.F,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new qa;this.h=a}function Aa(a,b){ra(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ca(a)}
21
+ function Ba(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.s=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.s=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.s=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Yg)throw b.Og;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
22
+ function Da(a){this.next=function(b){ra(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.u):(a.g.u(b),b=Ca(a));return b};this.throw=function(b){ra(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.u):(sa(a.g,b),b=Ca(a));return b};this.return=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}function Fa(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
23
+ function K(a){return Fa(new Da(new za(a)))}function Ga(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
24
+ ha("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.s=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=ea.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
25
25
  g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.H),reject:g(this.l)}};b.prototype.H=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.J(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.G(g):this.m(g)}};
26
26
  b.prototype.G=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.K(h,g):this.m(g)};b.prototype.l=function(g){this.u(2,g)};b.prototype.m=function(g){this.u(1,g)};b.prototype.u=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.I();this.C()};b.prototype.I=function(){var g=this;e(function(){if(g.D()){var h=ea.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.D=
27
27
  function(){if(this.s)return!1;var g=ea.CustomEvent,h=ea.Event,k=ea.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=ea.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.C=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
28
- b.prototype.J=function(g){var h=this.j();g.Td(h.resolve,h.reject)};b.prototype.K=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(r,q){return"function"==typeof r?function(u){try{l(r(u))}catch(v){m(v)}}:q}var l,m,n=new b(function(r,q){l=r;m=q});this.Td(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.Td=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
29
- break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).Td(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(u){return function(v){r[u]=v;q--;0==q&&l(r)}}var r=[],q=0;do r.push(void 0),q++,d(k.value).Td(n(r.length-1),m),k=h.next();
28
+ b.prototype.J=function(g){var h=this.j();g.Wd(h.resolve,h.reject)};b.prototype.K=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(r,q){return"function"==typeof r?function(u){try{l(r(u))}catch(v){m(v)}}:q}var l,m,n=new b(function(r,q){l=r;m=q});this.Wd(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.Wd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
29
+ break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).Wd(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(u){return function(v){r[u]=v;q--;0==q&&l(r)}}var r=[],q=0;do r.push(void 0),q++,d(k.value).Wd(n(r.length-1),m),k=h.next();
30
30
  while(!k.done)})};return b});function Ha(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
31
- fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ha(k,g)){var l=new c;ca(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
31
+ ha("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ha(k,g)){var l=new c;ca(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
32
32
  m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m.delete(k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ha(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ha(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Ha(k,
33
33
  g)&&Ha(k[g],this.g)};b.prototype.delete=function(k){return d(k)&&Ha(k,g)&&Ha(k[g],this.g)?delete k[g][this.g]:!1};return b});
34
- fa("Map",function(a){function b(){var h={};return h.Jb=h.next=h.head=h}function c(h,k){var l=h.g;return ha(function(){if(l){for(;l.head!=h.g;)l=l.Jb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ha(h.h,l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:h,entry:n}}return{id:l,
34
+ ha("Map",function(a){function b(){var h={};return h.Mb=h.next=h.head=h}function c(h,k){var l=h.g;return ia(function(){if(l){for(;l.head!=h.g;)l=l.Mb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ha(h.h,l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:h,entry:n}}return{id:l,
35
35
  list:m,index:-1,entry:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
36
- "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.entry?l.entry.value=k:(l.entry={next:this.g,Jb:this.g.Jb,head:this.g,key:h,value:k},l.list.push(l.entry),this.g.Jb.next=l.entry,this.g.Jb=l.entry,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.entry.Jb.next=h.entry.next,
37
- h.entry.next.Jb=h.entry.Jb,h.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.Jb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).entry};e.prototype.get=function(h){return(h=d(this,h).entry)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=
38
- function(h,k){for(var l=this.entries(),m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ia(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}fa("Array.prototype.keys",function(a){return a?a:function(){return Ia(this,function(b){return b})}});
39
- fa("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
36
+ "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.entry?l.entry.value=k:(l.entry={next:this.g,Mb:this.g.Mb,head:this.g,key:h,value:k},l.list.push(l.entry),this.g.Mb.next=l.entry,this.g.Mb=l.entry,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.entry.Mb.next=h.entry.next,
37
+ h.entry.next.Mb=h.entry.Mb,h.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.Mb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).entry};e.prototype.get=function(h){return(h=d(this,h).entry)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=
38
+ function(h,k){for(var l=this.entries(),m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ia(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ha("Array.prototype.keys",function(a){return a?a:function(){return Ia(this,function(b){return b})}});
39
+ ha("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
40
40
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
41
- b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
42
- function Ja(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Qg:e,v:f}}return{Qg:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ja(this,b,c).Qg}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
43
- fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Ka(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
44
- fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ka(this,b,"includes").indexOf(b,c||0)}});fa("Array.prototype.find",function(a){return a?a:function(b,c){return Ja(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ka(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
45
- fa("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
46
- var La="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ha(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||La});fa("Array.prototype.values",function(a){return a?a:function(){return Ia(this,function(b,c){return c})}});
47
- fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});fa("Array.prototype.entries",function(a){return a?a:function(){return Ia(this,function(b,c){return[b,c]})}});
48
- fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ka(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
49
- fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push(b[d]);return c}});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});fa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
50
- fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push([d,b[d]]);return c}});function Ma(a){a=Math.trunc(a)||0;0>a&&(a+=this.length);if(!(0>a||a>=this.length))return this[a]}fa("Array.prototype.at",function(a){return a?a:Ma});function Na(a){return a?a:Ma}fa("Int8Array.prototype.at",Na);fa("Uint8Array.prototype.at",Na);fa("Uint8ClampedArray.prototype.at",Na);fa("Int16Array.prototype.at",Na);fa("Uint16Array.prototype.at",Na);fa("Int32Array.prototype.at",Na);
51
- fa("Uint32Array.prototype.at",Na);fa("Float32Array.prototype.at",Na);fa("Float64Array.prototype.at",Na);fa("String.prototype.at",function(a){return a?a:Ma});var Oa=this||self;function L(a,b){a=a.split(".");var c=Oa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};/*
41
+ b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});ha("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
42
+ function Ja(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Vg:e,v:f}}return{Vg:-1,v:void 0}}ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ja(this,b,c).Vg}});ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
43
+ ha("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Ka(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
44
+ ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ka(this,b,"includes").indexOf(b,c||0)}});ha("Array.prototype.find",function(a){return a?a:function(b,c){return Ja(this,b,c).v}});ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ka(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
45
+ ha("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
46
+ var La="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ha(d,e)&&(a[e]=d[e])}return a};ha("Object.assign",function(a){return a||La});ha("Array.prototype.values",function(a){return a?a:function(){return Ia(this,function(b,c){return c})}});
47
+ ha("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});ha("Array.prototype.entries",function(a){return a?a:function(){return Ia(this,function(b,c){return[b,c]})}});
48
+ ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Ka(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});ha("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
49
+ ha("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push(b[d]);return c}});ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});ha("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});ha("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
50
+ ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push([d,b[d]]);return c}});function Ma(a){a=Math.trunc(a)||0;0>a&&(a+=this.length);if(!(0>a||a>=this.length))return this[a]}ha("Array.prototype.at",function(a){return a?a:Ma});function Na(a){return a?a:Ma}ha("Int8Array.prototype.at",Na);ha("Uint8Array.prototype.at",Na);ha("Uint8ClampedArray.prototype.at",Na);ha("Int16Array.prototype.at",Na);ha("Uint16Array.prototype.at",Na);ha("Int32Array.prototype.at",Na);
51
+ ha("Uint32Array.prototype.at",Na);ha("Float32Array.prototype.at",Na);ha("Float64Array.prototype.at",Na);ha("String.prototype.at",function(a){return a?a:Ma});var Oa=this||self;function L(a,b){a=a.split(".");var c=Oa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};/*
52
52
  @license
53
53
  Shaka Player
54
54
  Copyright 2016 Google LLC
@@ -56,9 +56,9 @@ fa("Uint32Array.prototype.at",Na);fa("Float32Array.prototype.at",Na);fa("Float64
56
56
  */
57
57
  function N(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
58
58
  function Pa(a){var b=new N(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}N.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};N.prototype.stopImmediatePropagation=function(){this.g=!0};N.prototype.stopPropagation=function(){};L("shaka.util.FakeEvent",N);
59
- var Qa={rj:"abrstatuschanged",sj:"adaptation",tj:"buffering",uj:"complete",vj:"downloadfailed",wj:"downloadheadersreceived",xj:"drmsessionupdate",zj:"emsg",Pj:"prft",Error:"error",Aj:"expirationupdated",Bj:"firstquartile",Cj:"gapjumped",Fj:"keystatuschanged",Hj:"loaded",Ij:"loading",Kj:"manifestparsed",Lj:"manifestupdated",Mj:"mediaqualitychanged",Metadata:"metadata",Nj:"midpoint",Oj:"onstatechange",Rj:"ratechange",Sj:"segmentappended",Tj:"sessiondata",Uj:"stalldetected",Vj:"started",Wj:"statechanged",
60
- Xj:"streaming",Yj:"textchanged",Zj:"texttrackvisibility",$j:"thirdquartile",bk:"timelineregionadded",ck:"timelineregionenter",dk:"timelineregionexit",ek:"trackschanged",gk:"unloading",ik:"variantchanged"};function Ra(){}function Sa(){}function Ta(){}function Ua(a){var b=Ga.apply(1,arguments);Va.has(a)||(Va.add(a),Ta.apply(Ra,w(b)))}function Xa(){}function Ya(){}function Za(){}function $a(){}var Va=new Set;window.console&&(Ta=function(){return console.warn.apply(console,w(Ga.apply(0,arguments)))},Sa=function(){console.error.apply(console,w(Ga.apply(0,arguments)))});function ab(){this.g={}}p=ab.prototype;p.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};p.get=function(a){return(a=this.g[a])?a.slice():null};p.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};p.forEach=function(a){for(var b in this.g)a(b,this.g[b])};p.size=function(){return Object.keys(this.g).length};p.keys=function(){return Object.keys(this.g)};function bb(){this.ya=new ab;this.ke=this}bb.prototype.addEventListener=function(a,b){this.ya&&this.ya.push(a,b)};bb.prototype.removeEventListener=function(a,b){this.ya&&this.ya.remove(a,b)};bb.prototype.dispatchEvent=function(a){if(!this.ya)return!0;var b=this.ya.get(a.type)||[],c=this.ya.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.ke;a.currentTarget=this.ke;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
61
- bb.prototype.release=function(){this.ya=null};function cb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function db(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function eb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function fb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
59
+ var Qa={vj:"abrstatuschanged",wj:"adaptation",xj:"buffering",yj:"complete",zj:"downloadfailed",Aj:"downloadheadersreceived",Bj:"drmsessionupdate",Dj:"emsg",Tj:"prft",Error:"error",Ej:"expirationupdated",Fj:"firstquartile",Gj:"gapjumped",Jj:"keystatuschanged",Lj:"loaded",Mj:"loading",Oj:"manifestparsed",Pj:"manifestupdated",Qj:"mediaqualitychanged",Metadata:"metadata",Rj:"midpoint",Sj:"onstatechange",Vj:"ratechange",Wj:"segmentappended",Xj:"sessiondata",Yj:"stalldetected",Zj:"started",$j:"statechanged",
60
+ bk:"streaming",ck:"textchanged",dk:"texttrackvisibility",ek:"thirdquartile",fk:"timelineregionadded",gk:"timelineregionenter",hk:"timelineregionexit",ik:"trackschanged",kk:"unloading",nk:"variantchanged"};function Ra(){}function Sa(){}function Ta(){}function Ua(a){var b=Ga.apply(1,arguments);Va.has(a)||(Va.add(a),Ta.apply(Ra,w(b)))}function Xa(){}function Ya(){}function Za(){}function $a(){}var Va=new Set;window.console&&(Ta=function(){return console.warn.apply(console,w(Ga.apply(0,arguments)))},Sa=function(){console.error.apply(console,w(Ga.apply(0,arguments)))});function ab(){this.g={}}p=ab.prototype;p.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};p.get=function(a){return(a=this.g[a])?a.slice():null};p.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};p.forEach=function(a){for(var b in this.g)a(b,this.g[b])};p.size=function(){return Object.keys(this.g).length};p.keys=function(){return Object.keys(this.g)};function bb(){this.Aa=new ab;this.qe=this}bb.prototype.addEventListener=function(a,b){this.Aa&&this.Aa.push(a,b)};bb.prototype.removeEventListener=function(a,b){this.Aa&&this.Aa.remove(a,b)};bb.prototype.dispatchEvent=function(a){if(!this.Aa)return!0;var b=this.Aa.get(a.type)||[],c=this.Aa.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.qe;a.currentTarget=this.qe;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
61
+ bb.prototype.release=function(){this.Aa=null};function cb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function db(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function eb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function fb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
62
62
  @license
63
63
  Copyright 2008 The Closure Library Authors
64
64
  SPDX-License-Identifier: Apache-2.0
@@ -68,14 +68,14 @@ var gb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
68
68
  Copyright 2006 The Closure Library Authors
69
69
  SPDX-License-Identifier: Apache-2.0
70
70
  */
71
- function hb(a){var b;a instanceof hb?(jb(this,a.qb),this.wc=a.wc,kb(this,a.Fb),lb(this,a.Pc),this.Va=a.Va,mb(this,a.g.clone()),this.jc=a.jc):a&&(b=String(a).match(gb))?(jb(this,b[1]||"",!0),this.wc=nb(b[2]||""),kb(this,b[3]||"",!0),lb(this,b[4]),this.Va=nb(b[5]||"",!0),mb(this,b[6]||"",!0),this.jc=nb(b[7]||"")):this.g=new ob(null)}p=hb.prototype;p.qb="";p.wc="";p.Fb="";p.Pc=null;p.Va="";p.jc="";
72
- p.toString=function(){var a=[],b=this.qb;b&&a.push(pb(b,qb,!0),":");if(b=this.Fb){a.push("//");var c=this.wc;c&&a.push(pb(c,qb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Pc;null!=b&&a.push(":",String(b))}if(b=this.Va)this.Fb&&"/"!=b.charAt(0)&&a.push("/"),a.push(pb(b,"/"==b.charAt(0)?rb:ub,!0));(b=this.g.toString())&&a.push("?",b);(b=this.jc)&&a.push("#",pb(b,vb));return a.join("")};
73
- p.resolve=function(a){var b=this.clone();"data"===b.qb&&(b=new hb);var c=!!a.qb;c?jb(b,a.qb):c=!!a.wc;c?b.wc=a.wc:c=!!a.Fb;c?kb(b,a.Fb):c=null!=a.Pc;var d=a.Va;if(c)lb(b,a.Pc);else if(c=!!a.Va){if("/"!=d.charAt(0))if(this.Fb&&!this.Va)d="/"+d;else{var e=b.Va.lastIndexOf("/");-1!=e&&(d=b.Va.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
74
- h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Va=d:c=""!==a.g.toString();c?mb(b,a.g.clone()):c=!!a.jc;c&&(b.jc=a.jc);return b};p.clone=function(){return new hb(this)};function jb(a,b,c){a.qb=c?nb(b,!0):b;a.qb&&(a.qb=a.qb.replace(/:$/,""))}function kb(a,b,c){a.Fb=c?nb(b,!0):b}function lb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Pc=b}else a.Pc=null}
75
- function mb(a,b,c){b instanceof ob?a.g=b:(c||(b=pb(b,wb)),a.g=new ob(b))}function nb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function pb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,xb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function xb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var qb=/[#\/\?@]/g,ub=/[#\?:]/g,rb=/[#\?]/g,wb=/[#\?@]/g,vb=/#/g;function ob(a){this.g=a||null}
76
- function yb(a){if(!a.Ka&&(a.Ka={},a.md=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}p=ob.prototype;p.Ka=null;p.md=null;function zb(a){yb(a);return a.md}p.add=function(a,b){yb(this);this.g=null;var c=this.Ka.hasOwnProperty(a)?this.Ka[a]:null;c||(this.Ka[a]=c=[]);c.push(b);this.md++;return this};
77
- p.set=function(a,b){yb(this);this.g=null;this.Ka.hasOwnProperty(a)?this.Ka[a]=[b]:this.add(a,b);return this};p.get=function(a){yb(this);return this.Ka[a]||[]};p.toString=function(){if(this.g)return this.g;if(!this.Ka)return"";var a=[],b;for(b in this.Ka)for(var c=encodeURIComponent(b),d=this.Ka[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
78
- p.clone=function(){var a=new ob;a.g=this.g;if(this.Ka){var b={},c;for(c in this.Ka)b[c]=this.Ka[c].concat();a.Ka=b;a.md=this.md}return a};function P(a,b,c){var d=Ga.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1;this.message="Shaka Error "+this.code;if(Ab)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}P.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};L("shaka.util.Error",P);var Ab=!0;P.Severity={RECOVERABLE:1,CRITICAL:2};P.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
71
+ function hb(a){var b;a instanceof hb?(jb(this,a.sb),this.zc=a.zc,kb(this,a.Hb),lb(this,a.Sc),this.Wa=a.Wa,mb(this,a.g.clone()),this.lc=a.lc):a&&(b=String(a).match(gb))?(jb(this,b[1]||"",!0),this.zc=nb(b[2]||""),kb(this,b[3]||"",!0),lb(this,b[4]),this.Wa=nb(b[5]||"",!0),mb(this,b[6]||"",!0),this.lc=nb(b[7]||"")):this.g=new ob(null)}p=hb.prototype;p.sb="";p.zc="";p.Hb="";p.Sc=null;p.Wa="";p.lc="";
72
+ p.toString=function(){var a=[],b=this.sb;b&&a.push(pb(b,qb,!0),":");if(b=this.Hb){a.push("//");var c=this.zc;c&&a.push(pb(c,qb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Sc;null!=b&&a.push(":",String(b))}if(b=this.Wa)this.Hb&&"/"!=b.charAt(0)&&a.push("/"),a.push(pb(b,"/"==b.charAt(0)?tb:ub,!0));(b=this.g.toString())&&a.push("?",b);(b=this.lc)&&a.push("#",pb(b,vb));return a.join("")};
73
+ p.resolve=function(a){var b=this.clone();"data"===b.sb&&(b=new hb);var c=!!a.sb;c?jb(b,a.sb):c=!!a.zc;c?b.zc=a.zc:c=!!a.Hb;c?kb(b,a.Hb):c=null!=a.Sc;var d=a.Wa;if(c)lb(b,a.Sc);else if(c=!!a.Wa){if("/"!=d.charAt(0))if(this.Hb&&!this.Wa)d="/"+d;else{var e=b.Wa.lastIndexOf("/");-1!=e&&(d=b.Wa.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
74
+ h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Wa=d:c=""!==a.g.toString();c?mb(b,a.g.clone()):c=!!a.lc;c&&(b.lc=a.lc);return b};p.clone=function(){return new hb(this)};function jb(a,b,c){a.sb=c?nb(b,!0):b;a.sb&&(a.sb=a.sb.replace(/:$/,""))}function kb(a,b,c){a.Hb=c?nb(b,!0):b}function lb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Sc=b}else a.Sc=null}
75
+ function mb(a,b,c){b instanceof ob?a.g=b:(c||(b=pb(b,wb)),a.g=new ob(b))}function nb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function pb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,xb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function xb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var qb=/[#\/\?@]/g,ub=/[#\?:]/g,tb=/[#\?]/g,wb=/[#\?@]/g,vb=/#/g;function ob(a){this.g=a||null}
76
+ function yb(a){if(!a.La&&(a.La={},a.qd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}p=ob.prototype;p.La=null;p.qd=null;function zb(a){yb(a);return a.qd}p.add=function(a,b){yb(this);this.g=null;var c=this.La.hasOwnProperty(a)?this.La[a]:null;c||(this.La[a]=c=[]);c.push(b);this.qd++;return this};
77
+ p.set=function(a,b){yb(this);this.g=null;this.La.hasOwnProperty(a)?this.La[a]=[b]:this.add(a,b);return this};p.get=function(a){yb(this);return this.La[a]||[]};p.toString=function(){if(this.g)return this.g;if(!this.La)return"";var a=[],b;for(b in this.La)for(var c=encodeURIComponent(b),d=this.La[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
78
+ p.clone=function(){var a=new ob;a.g=this.g;if(this.La){var b={},c;for(c in this.La)b[c]=this.La[c].concat();a.La=b;a.qd=this.qd}return a};function P(a,b,c){var d=Ga.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1;this.message="Shaka Error "+this.code;if(Ab)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}P.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};L("shaka.util.Error",P);var Ab=!0;P.Severity={RECOVERABLE:1,CRITICAL:2};P.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
79
79
  P.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,
80
80
  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,
81
81
  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_CODEC_UNKNOWN:3021,MSS_TRANSMUXING_FAILED:3022,TRANSMUXING_NO_VIDEO_DATA:3023,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,
@@ -86,8 +86,9 @@ NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CE
86
86
  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,
87
87
  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};function Bb(a,b){if(0==b.length)return a;if(1==a.length&&1==b.length){var c=new hb(a[0]);b=new hb(b[0]);return[c.resolve(b).toString()]}b=b.map(function(g){return new hb(g)});c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=new hb(d.value);for(var e=t(b),f=e.next();!f.done;f=e.next())c.push(d.resolve(f.value).toString())}return c}
88
88
  function Cb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}function Db(a,b){if(1==b.length)return b[0];a=Gb(a,b);if(null!=a)return a;throw new P(2,4,4025,b);}
89
- function Gb(a,b){for(var c=t(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}var Ib="text",Jb={ia:"video",T:"audio",Ba:Ib,Se:"image",pj:"application"},Hb={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Lb(){}function Mb(a,b){a=Nb(a);b=Nb(b);return a.split("-")[0]==b.split("-")[0]}function Ob(a,b){a=Nb(a);b=Nb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Pb(a,b){a=Nb(a);b=Nb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function Nb(a){var b=a.split("-x-"),c=b[0].split("-");a=c[0]||"";c=c[1]||"";b=b[1]?"x-"+b[1]:"";a=a.toLowerCase();a=Qb.get(a)||a;c=c.toUpperCase();return(c?a+"-"+c:a)+(b?"-"+b:"")}
90
- function Rb(a,b){var c=Sb(a),d=Sb(b);return a!=c&&b!=d&&c==d}function Tb(a,b){a=Nb(a);b=Nb(b);return b==a?4:Ob(b,a)?3:Pb(b,a)?2:Ob(a,b)?1:0}function Sb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Qb.get(a)||a}function Ub(a){return a.language?Nb(a.language):a.audio&&a.audio.language?Nb(a.audio.language):a.video&&a.video.language?Nb(a.video.language):"und"}
89
+ function Gb(a,b){for(var c=t(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}var Ib="text",Jb={ia:"video",T:"audio",Da:Ib,Xe:"image",tj:"application"},Hb={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Lb(){}function Mb(a,b){a=Nb(a);b=Nb(b);return a.split("-")[0]==b.split("-")[0]}function Ob(a,b){a=Nb(a);b=Nb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Pb(a,b){a=Nb(a);b=Nb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}
90
+ function Nb(a){a=t(a.split("-x-"));var b=a.next().value;b=void 0===b?"":b;a=a.next().value;a=void 0===a?"":a;var c=t(b.split("-"));b=c.next().value;b=void 0===b?"":b;c=c.next().value;c=void 0===c?"":c;a=a?"x-"+a:"";b=b.toLowerCase();b=Qb.get(b)||b;c=c.toUpperCase();return(c?b+"-"+c:b)+(a?"-"+a:"")}function Rb(a,b){var c=Sb(a),d=Sb(b);return a!=c&&b!=d&&c==d}function Tb(a,b){a=Nb(a);b=Nb(b);return b==a?4:Ob(b,a)?3:Pb(b,a)?2:Ob(a,b)?1:0}
91
+ function Sb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Qb.get(a)||a}function Ub(a){return a.language?Nb(a.language):a.audio&&a.audio.language?Nb(a.audio.language):a.video&&a.video.language?Nb(a.video.language):"und"}
91
92
  function Vb(a,b){a=Nb(a);var c=new Set,d=t(b);for(b=d.next();!b.done;b=d.next())c.add(Nb(b.value));d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Ob(b,a))return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Pb(b,a))return b;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,Ob(a,b))return b;return null}L("shaka.util.LanguageUtils",Lb);Lb.findClosestLocale=Vb;Lb.getLocaleForVariant=Ub;
92
93
  Lb.getLocaleForText=function(a){return Nb(a.language||"und")};Lb.getBase=Sb;Lb.relatedness=Tb;Lb.areSiblings=Rb;Lb.normalize=Nb;Lb.isSiblingOf=Pb;Lb.isParentOf=Ob;Lb.areLanguageCompatible=Mb;Lb.areLocaleCompatible=function(a,b){a=Nb(a);b=Nb(b);return a==b};
93
94
  var Qb=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",
@@ -96,21 +97,21 @@ var Qb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
96
97
  "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",
97
98
  "sa"],["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",
98
99
  "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Wb(a){bb.call(this);this.j=Nb(a);this.i=new Map;this.g=new Set;this.h=new Map}pa(Wb,bb);p=Wb.prototype;p.release=function(){bb.prototype.release.call(this)};
99
- p.Bg=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Nb(c.value));Xb(this);a=fb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new N("unknown-locales",(new Map).set("locales",a)));a=fb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new N("locale-changed",a))};
100
- p.wa=function(a,b,c){a=Nb(a);void 0===c&&(c=Yb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Yb||d.set(f,e)});this.h.set(a,d);Xb(this);this.dispatchEvent(new N("locale-updated"));return this};p.bj=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};p.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new N("unknown-localization",a));return""};
101
- p.Wh=function(){return this.g};
102
- function Xb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={Ac:f.Ac},h=g.next()){f.Ac=h.value;e.add(f.Ac);e.add(Sb(f.Ac));h=fb(b.keys(),function(l){return function(m){return Rb(m,l.Ac)}}(f));h.sort();var k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=fb(b.keys(),function(l){return function(m){return Sb(m)==l.Ac}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
103
- c.reverse();a.i.clear();b=t(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=t(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Zb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new N("missing-localizations",d)))}function Zb(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}L("shaka.ui.Localization",Wb);Wb.prototype.getCurrentLocales=Wb.prototype.Wh;
104
- Wb.prototype.resolve=Wb.prototype.resolve;Wb.prototype.resolveDictionary=Wb.prototype.bj;Wb.prototype.insert=Wb.prototype.wa;Wb.prototype.changeLocale=Wb.prototype.Bg;Wb.prototype.release=Wb.prototype.release;var Yb=1;Wb.ConflictResolution={USE_OLD:0,USE_NEW:Yb};Wb.UNKNOWN_LOCALES="unknown-locales";Wb.UNKNOWN_LOCALIZATION="unknown-localization";Wb.MISSING_LOCALIZATIONS="missing-localizations";Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";function $b(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$b.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function dc(a){return a.h/(1-Math.pow(a.g,a.i))};function ec(){this.h=new $b(2);this.j=new $b(5);this.g=0;this.i=128E3;this.l=16E3}ec.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};ec.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};ec.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(dc(this.h),dc(this.j))};function fc(a){if(gc.has(a))return gc.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);gc.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),gc.set(a,b),b):!1}function hc(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var gc=new Map;function ic(){}ic.prototype.extract=function(){};ic.prototype.decode=function(){return[]};ic.prototype.clear=function(){};ic.prototype.getStreams=function(){return[]};function jc(){}jc.prototype.init=function(){};jc.prototype.parse=function(){return[]};function kc(){}function lc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(mc(a)==mc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=nc(a);b=nc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function mc(a){return a instanceof ArrayBuffer?a:a.buffer}function oc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
100
+ p.Gg=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Nb(c.value));Xb(this);a=fb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new N("unknown-locales",(new Map).set("locales",a)));a=fb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new N("locale-changed",a))};
101
+ p.ya=function(a,b,c){a=Nb(a);void 0===c&&(c=Yb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Yb||d.set(f,e)});this.h.set(a,d);Xb(this);this.dispatchEvent(new N("locale-updated"));return this};p.fj=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};p.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new N("unknown-localization",a));return""};
102
+ p.Zh=function(){return this.g};
103
+ function Xb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={Dc:f.Dc},h=g.next()){f.Dc=h.value;e.add(f.Dc);e.add(Sb(f.Dc));h=fb(b.keys(),function(l){return function(m){return Rb(m,l.Dc)}}(f));h.sort();var k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=fb(b.keys(),function(l){return function(m){return Sb(m)==l.Dc}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
104
+ c.reverse();a.i.clear();b=t(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=t(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Zb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new N("missing-localizations",d)))}function Zb(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}L("shaka.ui.Localization",Wb);Wb.prototype.getCurrentLocales=Wb.prototype.Zh;
105
+ Wb.prototype.resolve=Wb.prototype.resolve;Wb.prototype.resolveDictionary=Wb.prototype.fj;Wb.prototype.insert=Wb.prototype.ya;Wb.prototype.changeLocale=Wb.prototype.Gg;Wb.prototype.release=Wb.prototype.release;var Yb=1;Wb.ConflictResolution={USE_OLD:0,USE_NEW:Yb};Wb.UNKNOWN_LOCALES="unknown-locales";Wb.UNKNOWN_LOCALIZATION="unknown-localization";Wb.MISSING_LOCALIZATIONS="missing-localizations";Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";function $b(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$b.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function ac(a){return a.h/(1-Math.pow(a.g,a.i))};function ec(){this.h=new $b(2);this.j=new $b(5);this.g=0;this.i=128E3;this.l=16E3}ec.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};ec.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};ec.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(ac(this.h),ac(this.j))};function fc(a){if(gc.has(a))return gc.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);gc.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),gc.set(a,b),b):!1}function hc(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var gc=new Map;function ic(){}ic.prototype.extract=function(){};ic.prototype.decode=function(){return[]};ic.prototype.clear=function(){};ic.prototype.getStreams=function(){return[]};function jc(){}jc.prototype.init=function(){};jc.prototype.parse=function(){return[]};function kc(){}function lc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(mc(a)==mc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=nc(a);b=nc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function mc(a){return a instanceof ArrayBuffer?a:a.buffer}function oc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
105
106
  function nc(a,b,c){c=void 0===c?Infinity:c;return pc(a,void 0===b?0:b,c,Uint8Array)}function qc(a,b,c){c=void 0===c?Infinity:c;return pc(a,void 0===b?0:b,c,Uint16Array)}function rc(a,b,c){c=void 0===c?Infinity:c;return pc(a,void 0===b?0:b,c,DataView)}function pc(a,b,c,d){var e=mc(a),f=1;"BYTES_PER_ELEMENT"in d&&(f=d.BYTES_PER_ELEMENT);var g=((a.byteOffset||0)+a.byteLength)/f;a=Math.floor(Math.max(0,Math.min(((a.byteOffset||0)+b)/f,g)));return new d(e,a,Math.floor(Math.min(a+Math.max(c,0),g))-a)}
106
107
  L("shaka.util.BufferUtils",kc);kc.toDataView=rc;kc.toUint16=qc;kc.toUint8=nc;kc.toArrayBuffer=oc;kc.equal=lc;function sc(){}sc.prototype.init=function(){};sc.prototype.i=function(){};sc.prototype.h=function(){};sc.prototype.j=function(){};L("shaka.media.IClosedCaptionParser",sc);function tc(a){this.l=new jc;if(a=uc[a.toLowerCase()])this.l=a();this.g=new ic;if(a=vc)this.g=a()}tc.prototype.init=function(a){this.l.init(a)};tc.prototype.i=function(a){a=this.l.parse(a);a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=nc(b.packet);0<c.length&&this.g.extract(c,b.pts)}return this.g.decode()};
107
- tc.prototype.h=function(){this.g.clear()};tc.prototype.j=function(){return this.g.getStreams()};L("shaka.media.ClosedCaptionParser",tc);tc.findDecoder=function(){return vc};tc.unregisterDecoder=function(){vc=null};tc.registerDecoder=function(a){vc=a};tc.findParser=function(a){return uc[a]};tc.unregisterParser=function(a){delete uc[a]};tc.registerParser=function(a,b){uc[a]=b};var uc={},vc=null;function wc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function xc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function yc(a,b,c){c||(c=wc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Ke:d.Ke},e=a.next()){d.Ke=e.value;e=b.findIndex(function(f){return function(g){return c(f.Ke,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
108
- function zc(a,b,c){c||(c=wc);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function Ac(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Bc;this.position=null;this.positionAlign=Cc;this.size=0;this.textAlign=Dc;this.direction=Fc;this.writingMode=Gc;this.lineInterpretation=Hc;this.line=null;this.lineHeight="";this.lineAlign=Ic;this.displayAlign=Jc;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Kc;this.fontStyle=Mc;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
109
- "";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={hc:32,rows:15}}function Nc(a,b){a=new Ac(a,b,"");a.lineBreak=!0;return a}Ac.prototype.clone=function(){var a=new Ac(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
108
+ tc.prototype.h=function(){this.g.clear()};tc.prototype.j=function(){return this.g.getStreams()};L("shaka.media.ClosedCaptionParser",tc);tc.findDecoder=function(){return vc};tc.unregisterDecoder=function(){vc=null};tc.registerDecoder=function(a){vc=a};tc.findParser=function(a){return uc[a]};tc.unregisterParser=function(a){delete uc[a]};tc.registerParser=function(a,b){uc[a]=b};var uc={},vc=null;function wc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function xc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function yc(a,b,c){c||(c=wc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Pe:d.Pe},e=a.next()){d.Pe=e.value;e=b.findIndex(function(f){return function(g){return c(f.Pe,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
109
+ function zc(a,b,c){c||(c=wc);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function Ac(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Bc;this.position=null;this.positionAlign=Cc;this.size=0;this.textAlign=Ec;this.direction=Fc;this.writingMode=Gc;this.lineInterpretation=Hc;this.line=null;this.lineHeight="";this.lineAlign=Ic;this.displayAlign=Jc;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Kc;this.fontStyle=Mc;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
110
+ "";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={jc:32,rows:15}}function Nc(a,b){a=new Ac(a,b,"");a.lineBreak=!0;return a}Ac.prototype.clone=function(){var a=new Ac(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
110
111
  function Oc(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!zc(a.nestedCues,b.nestedCues,Oc))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!zc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}L("shaka.text.Cue",Ac);Ac.equal=Oc;Ac.prototype.clone=Ac.prototype.clone;var Cc="auto";
111
- Ac.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Cc};var Dc="center",Pc={LEFT:"left",RIGHT:"right",CENTER:Dc,START:"start",END:"end"};Ac.textAlign=Pc;var Jc="after",Qc={BEFORE:"before",CENTER:"center",AFTER:Jc};Ac.displayAlign=Qc;var Fc="ltr";Ac.direction={HORIZONTAL_LEFT_TO_RIGHT:Fc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Gc="horizontal-tb";Ac.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Gc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Hc=0;
112
+ Ac.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Cc};var Ec="center",Pc={LEFT:"left",RIGHT:"right",CENTER:Ec,START:"start",END:"end"};Ac.textAlign=Pc;var Jc="after",Qc={BEFORE:"before",CENTER:"center",AFTER:Jc};Ac.displayAlign=Qc;var Fc="ltr";Ac.direction={HORIZONTAL_LEFT_TO_RIGHT:Fc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Gc="horizontal-tb";Ac.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Gc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Hc=0;
112
113
  Ac.lineInterpretation={LINE_NUMBER:Hc,PERCENTAGE:1};var Ic="start",Rc={CENTER:"center",START:Ic,END:"end"};Ac.lineAlign=Rc;var Sc={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Ac.defaultTextColor=Sc;var Tc={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Ac.defaultTextBackgroundColor=Tc;var Kc=400;Ac.fontWeight={NORMAL:Kc,BOLD:700};
113
- var Mc="normal",Uc={NORMAL:Mc,ITALIC:"italic",OBLIQUE:"oblique"};Ac.fontStyle=Uc;Ac.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function Bc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Vc;this.scroll=Wc}L("shaka.text.CueRegion",Bc);var Vc=1;Bc.units={PX:0,PERCENTAGE:Vc,LINES:2};var Wc="";Bc.scrollMode={NONE:Wc,UP:"up"};function Xc(){}Xc.prototype.destroy=function(){};function Yc(a,b,c){Zc[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,ye:b}}function $c(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([ad,bd,cd,dd]),e=d.next();!e.done;e=d.next())if(e=Zc[c+"-"+e.value]){var f=e.ye(),g=f.isSupported(a,b);f.destroy();if(g)return e.ye}return null}L("shaka.transmuxer.TransmuxerEngine",Xc);Xc.findTransmuxer=$c;Xc.unregisterTransmuxer=function(a,b){delete Zc[a.toLowerCase().split(";")[0]+"-"+b]};
114
+ var Mc="normal",Uc={NORMAL:Mc,ITALIC:"italic",OBLIQUE:"oblique"};Ac.fontStyle=Uc;Ac.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function Bc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Vc;this.scroll=Wc}L("shaka.text.CueRegion",Bc);var Vc=1;Bc.units={PX:0,PERCENTAGE:Vc,LINES:2};var Wc="";Bc.scrollMode={NONE:Wc,UP:"up"};function Xc(){}Xc.prototype.destroy=function(){};function Yc(a,b,c){Zc[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,Be:b}}function $c(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([ad,bd,cd,dd]),e=d.next();!e.done;e=d.next())if(e=Zc[c+"-"+e.value]){var f=e.Be(),g=f.isSupported(a,b);f.destroy();if(g)return e.Be}return null}L("shaka.transmuxer.TransmuxerEngine",Xc);Xc.findTransmuxer=$c;Xc.unregisterTransmuxer=function(a,b){delete Zc[a.toLowerCase().split(";")[0]+"-"+b]};
114
115
  Xc.registerTransmuxer=Yc;Xc.prototype.destroy=Xc.prototype.destroy;var Zc={},dd=1,cd=2,bd=3,ad=4;Xc.PluginPriority={FALLBACK:dd,PREFERRED_SECONDARY:cd,PREFERRED:bd,APPLICATION:ad};function ed(){}function fd(a,b){var c=a;b&&!gd.includes(a)&&(c+='; codecs="'+b+'"');return c}function hd(a,b){b&&(a+='; codecs="'+b+'"');return a}function id(a,b,c){var d=fd(a,b);b=hd(a,b);$c(b)?(a=$c(b))?(a=a(),c=a.convertCodecs(c,b),a.destroy()):c=b:c="video/mp2t"!=a&&"audio"==c?d.replace("video","audio"):d;return c}
115
116
  function ld(a){var b=md(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:case "mp4a"===a&&"40.34"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"===
116
117
  a&&"b2"===b:return"dtsx";case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function nd(a){var b=[];a=t(a.split(","));for(var c=a.next();!c.done;c=a.next())c=md(c.value),b.push(c[0]);return b.sort().join(",")}function od(a){return a.split(";")[0]}
@@ -120,25 +121,25 @@ function td(a,b,c,d,e){var f,g,h,k;return K(function(l){if(1==l.g)return D(l,Pro
120
121
  qd.prototype.remove=function(a,b){var c=this;return K(function(d){if(1==d.g)return D(d,Promise.resolve(),2);!c.j||!c.j.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));F(d)})};function ud(a,b,c){a.l=b;a.m=c}function vd(a,b,c){a.D=b;if(b=a.s.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)}
121
122
  function xd(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())xd(a,d.value,c)}
122
123
  function yd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);xd(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.D&&a.j.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.s.has(f)||a.s.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.s.get(f).set(h,k);a.g=null==a.g?Math.max(c,
123
- a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}L("shaka.text.TextEngine",qd);qd.prototype.destroy=qd.prototype.destroy;qd.findParser=function(a){return sd[a]};qd.unregisterParser=function(a){delete sd[a]};qd.registerParser=function(a,b){sd[a]=b};var sd={};function zd(a,b){return a.concat(b)}function Ad(){}function Bd(a){return null!=a};function Cd(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function Dd(a){var b={},c;for(c in a)b[c]=a[c];return b};function Ed(a){this.h=a;this.g=null}Ed.prototype.R=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Ed.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Fd(a){this.h=a;this.g=null}Fd.prototype.Ma=function(){this.stop();this.h();return this};Fd.prototype.R=function(a){var b=this;this.stop();this.g=(new Ed(function(){b.h()})).R(a);return this};Fd.prototype.xa=function(a){var b=this;this.stop();this.g=(new Ed(function(){b.g.R(a);b.h()})).R(a);return this};Fd.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};L("shaka.util.Timer",Fd);Fd.prototype.stop=Fd.prototype.stop;Fd.prototype.tickEvery=Fd.prototype.xa;
124
- Fd.prototype.tickAfter=Fd.prototype.R;Fd.prototype.tickNow=Fd.prototype.Ma;function Gd(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Hd(a){return""!=Id().canPlayType(a)}function Jd(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Kd(){return Ld("Xbox One")}function Md(){return Ld("Tizen")}function Nd(){return Ld("Tizen 3")}function Od(){return Ld("Tizen 2")}function Pd(){return Ld("Web0S")&&Ld("Chrome/38.0.2125.122 Safari/537.36")}
124
+ a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}L("shaka.text.TextEngine",qd);qd.prototype.destroy=qd.prototype.destroy;qd.findParser=function(a){return sd[a]};qd.unregisterParser=function(a){delete sd[a]};qd.registerParser=function(a,b){sd[a]=b};var sd={};function zd(a,b){return a.concat(b)}function Ad(){}function Bd(a){return null!=a};function Cd(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function Dd(a){var b={},c;for(c in a)b[c]=a[c];return b};function Ed(a){this.h=a;this.g=null}Ed.prototype.S=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Ed.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Fd(a){this.h=a;this.g=null}Fd.prototype.Na=function(){this.stop();this.h();return this};Fd.prototype.S=function(a){var b=this;this.stop();this.g=(new Ed(function(){b.h()})).S(a);return this};Fd.prototype.za=function(a){var b=this;this.stop();this.g=(new Ed(function(){b.g.S(a);b.h()})).S(a);return this};Fd.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};L("shaka.util.Timer",Fd);Fd.prototype.stop=Fd.prototype.stop;Fd.prototype.tickEvery=Fd.prototype.za;
125
+ Fd.prototype.tickAfter=Fd.prototype.S;Fd.prototype.tickNow=Fd.prototype.Na;function Gd(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Hd(a){return""!=Id().canPlayType(a)}function Jd(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Kd(){return Ld("Xbox One")}function Md(){return Ld("Tizen")}function Nd(){return Ld("Tizen 3")}function Od(){return Ld("Tizen 2")}function Pd(){return Ld("Web0S")&&Ld("Chrome/38.0.2125.122 Safari/537.36")}
125
126
  function Qd(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Md()&&!Ld("PC=EOS")&&!Ld("PC=APL")&&!Ld("VirginMedia")&&!Ld("SOPOpenBrowser")&&!Rd()&&!Ld("AFT")&&!Ld("WPE")}function Rd(){return Ld("PlayStation 4")}function Sd(){if(!Qd())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Ld(a){return(navigator.userAgent||"").includes(a)}
126
- function Id(){if(Td)return Td;Yd||(Yd=new Fd(function(){Td=null}));(Td=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Td=document.createElement("video"));Yd.R(1);return Td}var Yd=null,Td=null;function Zd(){}
127
- function $d(a,b,c,d){var e=a.variants;if(b.length||c.length)e=ae(e,b,c);if(d.length){b=new ab;c=t(e);for(e=c.next();!e.done;e=c.next())e=e.value,b.push(String(e.video.width||0),e);var f=[];b.forEach(function(u,v){u=0;var y=[],z={};v=t(v);for(var x=v.next();!x.done;z={hd:z.hd},x=v.next())z.hd=x.value,x=d.filter(function(B){return function(A){return B.hd.decodingInfos[0][A]}}(z)).length,x>u?(u=x,y=[z.hd]):x==u&&y.push(z.hd);f.push.apply(f,w(y))});e=f}c=new Set;b=new Set;var g=t(e);for(e=g.next();!e.done;e=
127
+ function Id(){if(Td)return Td;Yd||(Yd=new Fd(function(){Td=null}));(Td=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Td=document.createElement("video"));Yd.S(1);return Td}var Yd=null,Td=null;function Zd(){}
128
+ function $d(a,b,c,d){var e=a.variants;if(b.length||c.length)e=ae(e,b,c);if(d.length){b=new ab;c=t(e);for(e=c.next();!e.done;e=c.next())e=e.value,b.push(String(e.video.width||0),e);var f=[];b.forEach(function(u,v){u=0;var y=[],z={};v=t(v);for(var x=v.next();!x.done;z={ld:z.ld},x=v.next())z.ld=x.value,x=d.filter(function(B){return function(A){return B.ld.decodingInfos[0][A]}}(z)).length,x>u?(u=x,y=[z.ld]):x==u&&y.push(z.ld);f.push.apply(f,w(y))});e=f}c=new Set;b=new Set;var g=t(e);for(e=g.next();!e.done;e=
128
129
  g.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);c=Array.from(c).sort(function(u,v){return u.bandwidth-v.bandwidth});var h=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;var k=g.language+(g.channelsCount||0)+(g.audioSamplingRate||0)+g.roles.join(",")+g.label+g.groupId+g.fastSwitching,l=e.get(k)||[];if(l.length){var m=l[l.length-1],n=ld(m.codecs),r=ld(g.codecs);n==r&&g.bandwidth>m.bandwidth&&(l.push(g),h.push(g.id))}else l.push(g),h.push(g.id);e.set(k,l)}c=Array.from(b).sort(function(u,
129
130
  v){return u.bandwidth&&v.bandwidth?u.bandwidth-v.bandwidth:u.width-v.width});b=hc();var q=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;k=Math.round(g.frameRate||0)+(g.hdr||"")+g.fastSwitching;l=e.get(k)||[];if(l.length){m=l[l.length-1];if(!b&&(n=ld(m.codecs),r=ld(g.codecs),n!==r))continue;g.width>m.width||g.height>m.height?(l.push(g),q.push(g.id)):g.width==m.width&&g.height==m.height&&(n=ld(m.codecs),r=ld(g.codecs),n==r&&g.bandwidth<m.bandwidth&&(l.push(g),q.push(g.id)))}else l.push(g),
130
131
  q.push(g.id);e.set(k,l)}a.variants=a.variants.filter(function(u){var v=u.audio;u=u.video;return v&&!h.includes(v.id)||u&&!q.includes(u.id)?!1:!0})}
131
- function ae(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={Re:d.Re},e=b.next())if(d.Re=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Re)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Ie:d.Ie},b=c.next())if(d.Ie=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Ie)}}(d)),b.length){a=b;break}return a}function be(a,b,c){a.variants=a.variants.filter(function(d){return ce(d,b,c)})}
132
+ function ae(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={We:d.We},e=b.next())if(d.We=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.We)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Ne:d.Ne},b=c.next())if(d.Ne=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Ne)}}(d)),b.length){a=b;break}return a}function be(a,b,c){a.variants=a.variants.filter(function(d){return ce(d,b,c)})}
132
133
  function ce(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
133
134
  function de(a,b){return K(function(c){if(1==c.g)return D(c,ee(a,b,0<b.offlineSessionIds.length),2);fe(b);return D(c,ge(b),0)})}
134
135
  function ee(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return D(h,he(b.variants,c,!1,[]),2);d=null;a&&(e=a.g)&&(d=e.keySystem);f=Jb;g=Kd();b.variants=b.variants.filter(function(k){var l=k.video,m=l&&l.width||0,n=l&&l.height||0;if(g&&l&&(1920<m||1080<n)&&(l.codecs.includes("avc1.")||l.codecs.includes("avc3.")))return Ya(ie(k)),!1;if(l){m=je(l.codecs);if(l.codecs.includes(",")){n=l.codecs.split(",");m=Db(f.ia,n);m=je(m);n=Db(f.T,n);n=ke(n);var r=id(l.mimeType,n,f.T);if(!fc(r))return!1;m=[m,n].join()}n=
135
136
  id(l.mimeType,m,f.ia);if(!fc(n))return!1;l.codecs=m}if(l=k.audio){m=ke(l.codecs);n=id(l.mimeType,m,f.T);if(!fc(n))return!1;l.codecs=m}(l=k.decodingInfos.some(function(q){return!q.supported||d&&(q=q.keySystemAccess)&&q.keySystem!=d?!1:!0}))||Ya(ie(k));return l});F(h)})}
136
137
  function le(a){var b=[];for(c in a)b.push(c);b.sort();var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=JSON.stringify(e);e=a[e];e instanceof Object?(e=le(e),c.push(d+":"+e)):(e=JSON.stringify(e),c.push(d+":"+e))}return"{"+c.join(",")+"}"}
137
138
  function me(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=le(b),d=ne,d[c]?(a.decodingInfos.push(d[c]),l.F(0)):D(l,oe(b),3);if((e=l.h)&&e.length){f=null;g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,f?(f.supported=f.supported&&k.supported,f.powerEfficient=f.powerEfficient&&k.powerEfficient,f.smooth=f.smooth&&k.smooth,k.keySystemAccess||(f.keySystemAccess=null)):f=k;f&&(d[c]=f,a.decodingInfos.push(f))}F(l)})}
138
- function oe(a){var b=[""];a.video&&(b=pd(a.video.contentType).split(","));var c=[""];a.audio&&(c=pd(a.audio.contentType).split(","));var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f={},g=t(c),h=g.next();!h.done;f={dc:f.dc},h=g.next())h=h.value,f.dc=Cd(a),a.video&&(f.dc.video.contentType=fd(od(f.dc.video.contentType),e)),a.audio&&(f.dc.audio.contentType=fd(od(f.dc.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.dc).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a);
139
+ function oe(a){var b=[""];a.video&&(b=pd(a.video.contentType).split(","));var c=[""];a.audio&&(c=pd(a.audio.contentType).split(","));var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f={},g=t(c),h=g.next();!h.done;f={ec:f.ec},h=g.next())h=h.value,f.ec=Cd(a),a.video&&(f.ec.video.contentType=fd(od(f.ec.video.contentType),e)),a.audio&&(f.ec.audio.contentType=fd(od(f.ec.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.ec).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a);
139
140
  return null})}
140
- function he(a,b,c,d){var e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:if(e=a.some(function(E){return E.decodingInfos.length}))return C.return();f={};g=t(d);h=g.next();case 2:if(h.done){C.F(4);break}f.Me=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){C.F(7);break}n=m.value;r=pe(n,b,c).filter(function(E){return function(H){return(H.keySystemConfiguration&&H.keySystemConfiguration.keySystem)===E.Me}}(f));q=t(r);u=q.next();case 8:if(u.done){C.F(10);break}v=u.value;return D(C,
141
- me(n,v),9);case 9:u=q.next();C.F(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();C.F(5);break;case 7:if(k)return C.return();f={Me:f.Me};h=g.next();C.F(2);break;case 4:y=t(a),m=y.next();case 12:if(m.done){C.F(0);break}z=m.value;x=pe(z,b,c).filter(function(E){E=E.keySystemConfiguration&&E.keySystemConfiguration.keySystem;return!E||!d.includes(E)});B=t(x);u=B.next();case 15:if(u.done){m=y.next();C.F(12);break}A=u.value;return D(C,me(z,A),16);case 16:u=B.next(),C.F(15)}})}
141
+ function he(a,b,c,d){var e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:if(e=a.some(function(E){return E.decodingInfos.length}))return C.return();f={};g=t(d);h=g.next();case 2:if(h.done){C.F(4);break}f.Re=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){C.F(7);break}n=m.value;r=pe(n,b,c).filter(function(E){return function(H){return(H.keySystemConfiguration&&H.keySystemConfiguration.keySystem)===E.Re}}(f));q=t(r);u=q.next();case 8:if(u.done){C.F(10);break}v=u.value;return D(C,
142
+ me(n,v),9);case 9:u=q.next();C.F(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();C.F(5);break;case 7:if(k)return C.return();f={Re:f.Re};h=g.next();C.F(2);break;case 4:y=t(a),m=y.next();case 12:if(m.done){C.F(0);break}z=m.value;x=pe(z,b,c).filter(function(E){E=E.keySystemConfiguration&&E.keySystemConfiguration.keySystem;return!E||!d.includes(E)});B=t(x);u=B.next();case 15:if(u.done){m=y.next();C.F(12);break}A=u.value;return D(C,me(z,A),16);case 16:u=B.next(),C.F(15)}})}
142
143
  function pe(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Db("video",g);f=je(f);g=Db("audio",g);g=ke(g);g=id(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=je(f);f=id(e.mimeType,f,"video");c.video={contentType:f,width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.transferFunction=
143
144
  "srgb";break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=ke(d.codecs),f=id(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,
144
145
  []);f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=t(f.keys());for(var l=k.next();!l.done;l=k.next()){var m=l.value;l=Object.assign({},c);var n=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};n=t(n);for(h=n.next();!h.done;h=n.next()){h=h.value;if(h.initData&&h.initData.length){for(var r=new Set,q=t(h.initData),u=q.next();!u.done;u=q.next())r.add(u.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&
@@ -167,47 +168,47 @@ this.m);d=e;a&&e.length!=this.m.length&&(d=this.m.filter(function(l){return l.au
167
168
  a[d];for(var f=isNaN(this.G)?1:Math.abs(this.G),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;b>=g&&b<=f&&c.bandwidth!=e.bandwidth&&(c=e)}this.C=Date.now();return c};p.enable=function(){this.s=!0};p.disable=function(){this.s=!1};
168
169
  p.segmentDownloaded=function(a,b,c){this.i.sample(a,b);if(c&&null!=this.C&&this.s)a:{if(!this.I){a=this.i;if(!(a.g>=a.i))break a;this.I=!0}else if(Date.now()-this.C<1E3*this.g.switchInterval)break a;a=this.chooseVariant();this.getBandwidthEstimate();a&&this.u(a,this.g.clearBufferSwitch,this.g.safeMarginSwitch)}};
169
170
  p.getBandwidthEstimate=function(){var a=this.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(a=1E6*navigator.connection.downlink);a=this.i.getBandwidthEstimate(a);return this.j?this.j.getBandwidthEstimate(a):a};p.setVariants=function(a){this.m=a};p.playbackRateChanged=function(a){this.G=a};
170
- p.setMediaElement=function(a){var b=this;this.l=a;this.h&&(this.h.disconnect(),this.h=null);this.l&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.H.R(Je)}),this.h.observe(this.l))};p.setCmsdManager=function(a){this.j=a};p.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};
171
- function He(a,b,c,d,e){if(a.j){var f=a.j.Ng();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return ce(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function Ie(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}L("shaka.abr.SimpleAbrManager",Ge);Ge.prototype.configure=Ge.prototype.configure;
171
+ p.setMediaElement=function(a){var b=this;this.l=a;this.h&&(this.h.disconnect(),this.h=null);this.l&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.H.S(Je)}),this.h.observe(this.l))};p.setCmsdManager=function(a){this.j=a};p.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};
172
+ function He(a,b,c,d,e){if(a.j){var f=a.j.Sg();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return ce(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function Ie(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}L("shaka.abr.SimpleAbrManager",Ge);Ge.prototype.configure=Ge.prototype.configure;
172
173
  Ge.prototype.setCmsdManager=Ge.prototype.setCmsdManager;Ge.prototype.setMediaElement=Ge.prototype.setMediaElement;Ge.prototype.playbackRateChanged=Ge.prototype.playbackRateChanged;Ge.prototype.setVariants=Ge.prototype.setVariants;Ge.prototype.getBandwidthEstimate=Ge.prototype.getBandwidthEstimate;Ge.prototype.segmentDownloaded=Ge.prototype.segmentDownloaded;Ge.prototype.disable=Ge.prototype.disable;Ge.prototype.enable=Ge.prototype.enable;Ge.prototype.chooseVariant=Ge.prototype.chooseVariant;
173
- Ge.prototype.init=Ge.prototype.init;Ge.prototype.release=Ge.prototype.release;Ge.prototype.stop=Ge.prototype.stop;var Je=1;function Ke(a,b){this.g=a;this.h=b}Ke.prototype.toString=function(){return"v"+this.g+"."+this.h};function Le(a,b){var c=new Ke(5,0),d=Me,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Ne(a,b,c,d){Ta([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Oe(a,b,c,d){Sa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Me=null;L("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});L("shaka.config.CodecSwitchingStrategy",{Qj:"reload",yh:"smooth"});function Pe(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Pe.prototype.add=function(a,b,c){return Qe(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
174
+ Ge.prototype.init=Ge.prototype.init;Ge.prototype.release=Ge.prototype.release;Ge.prototype.stop=Ge.prototype.stop;var Je=1;function Ke(a,b){this.g=a;this.h=b}Ke.prototype.toString=function(){return"v"+this.g+"."+this.h};function Le(a,b){var c=new Ke(5,0),d=Me,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Ne(a,b,c,d){Ta([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Oe(a,b,c,d){Sa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Me=null;L("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});L("shaka.config.CodecSwitchingStrategy",{Uj:"reload",Ch:"smooth"});function Pe(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Pe.prototype.add=function(a,b,c){return Qe(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
174
175
  function Qe(a,b,c,d){var e;if(!(e=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(e=a.audio&&b.audio)){e=a.audio;var f=b.audio;e=!!((!e.channelsCount||!f.channelsCount||2<e.channelsCount||2<f.channelsCount)&&e.channelsCount!=f.channelsCount||c&&!Re(e,f)||!Se(e.roles,f.roles)||d&&e.groupId!==f.groupId)}!(d=e)&&(d=a.video&&b.video)&&(a=a.video,b=b.video,d=!((!c||Re(a,b))&&Se(a.roles,b.roles)));return d?!1:!0}Pe.prototype.values=function(){return this.g.values()};
175
176
  function Re(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return nd(d)});b=b.codecs.split(",").map(function(d){return nd(d)});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function Se(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Te(a,b,c){b=void 0===b?"reload":b;c=void 0===c?!1:c;this.i=a;this.h=b;this.g=c;this.j=new Ue(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"",!1,"","","",b,c)}Te.prototype.create=function(a){var b=this,c="smooth"==this.h&&hc(),d=a.filter(function(e){return Qe(b.i,e,!c,b.g)});return d.length?new Pe(d[0],d,!c,this.g):this.j.create(a)};
176
177
  function Ue(a,b,c,d,e,f,g,h,k,l){this.u=a;this.C=b;this.h=c;this.i=d;this.D=e;this.l=f;this.g=void 0===g?"":g;this.j=void 0===h?"":h;this.m=void 0===k?"reload":k;this.s=void 0===l?!1:l}
177
178
  Ue.prototype.create=function(a){var b=[];b=Ve(a,this.u);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=We(b,this.C);a.length&&(b=a);this.l&&(a=Xe(b,this.l),a.length&&(b=a));this.i&&(a=Ze(b,this.i),a.length&&(b=a));this.h&&(a=$e(b,this.h),a.length&&(b=a));this.g&&(a=af(b,this.g),a.length&&(b=a));this.j&&(a=bf(b,this.j),a.length&&(b=a));a=cf(b,this.D);a.length&&(b=a);return new Pe(b[0],b,!("smooth"==this.m&&hc()),this.s)};
178
179
  function Ve(a,b){b=Nb(b);var c=Vb(b,a.map(function(d){return Ub(d)}));return c?a.filter(function(d){return c==Ub(d)}):[]}function We(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function af(a,b){return a.filter(function(c){return c.audio&&c.audio.label?c.audio.label.toLowerCase()==b.toLowerCase():!1})}function bf(a,b){return a.filter(function(c){return c.video&&c.video.label?c.video.label.toLowerCase()==b.toLowerCase():!1})}
179
180
  function $e(a,b){return a.filter(function(c){return c.audio&&c.audio.channelsCount&&c.audio.channelsCount!=b?!1:!0})}function Ze(a,b){"AUTO"==b&&(b=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");return a.filter(function(c){return c.video&&c.video.hdr&&c.video.hdr!=b?!1:!0})}function Xe(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function cf(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})};function df(){this.g=ef;this.h=(new Map).set(ef,2).set(ff,1)}function gf(a,b,c){a.h.set(ef,c).set(ff,b)}var ff=0,ef=1;function hf(a,b){var c=jf();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.s=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
180
- function kf(a){var b,c;return K(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new P(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return D(d,new Promise(function(e){(new Fd(e)).R(c/1E3)}),2)}a.h*=a.m;F(d)})}function jf(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function lf(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}lf.prototype.resolve=function(){};lf.prototype.reject=function(){};function mf(a,b){this.promise=a;this.i=b;this.g=!1}function nf(a){return new mf(Promise.reject(a),function(){return Promise.resolve()})}function of(){var a=Promise.reject(new P(2,7,7001));a.catch(function(){});return new mf(a,function(){return Promise.resolve()})}function pf(a){return new mf(Promise.resolve(a),function(){return Promise.resolve()})}function qf(a){return new mf(a,function(){return a.catch(function(){})})}mf.prototype.abort=function(){this.g=!0;return this.i()};
181
+ function kf(a){var b,c;return K(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new P(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return D(d,new Promise(function(e){(new Fd(e)).S(c/1E3)}),2)}a.h*=a.m;F(d)})}function jf(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function lf(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}lf.prototype.resolve=function(){};lf.prototype.reject=function(){};function mf(a,b){this.promise=a;this.i=b;this.g=!1}function nf(a){return new mf(Promise.reject(a),function(){return Promise.resolve()})}function of(){var a=Promise.reject(new P(2,7,7001));a.catch(function(){});return new mf(a,function(){return Promise.resolve()})}function pf(a){return new mf(Promise.resolve(a),function(){return Promise.resolve()})}function qf(a){return new mf(a,function(){return a.catch(function(){})})}mf.prototype.abort=function(){this.g=!0;return this.i()};
181
182
  function rf(a){return new mf(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}mf.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
182
- mf.prototype.Da=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=sf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new lf,g=new P(2,7,7001);this.promise.then(c(!0),c(!1));return new mf(f,function(){return d()})};
183
- function sf(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}L("shaka.util.AbortableOperation",mf);mf.prototype.chain=mf.prototype.Da;mf.prototype["finally"]=mf.prototype.finally;mf.all=rf;mf.prototype.abort=mf.prototype.abort;mf.notAbortable=qf;mf.completed=pf;mf.aborted=of;mf.failed=nf;function tf(){this.g=[]}function uf(a,b){a.g.push(b.finally(function(){xc(a.g,b)}))}tf.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function vf(a,b,c,d,e){bb.call(this);this.i=!1;this.m=new tf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.u=c||null;this.C=d||null;this.D=e||null;this.s=!1}pa(vf,bb);p=vf.prototype;p.gg=function(a){this.s=a};function wf(a,b,c,d){c=c||xf;var e=yf[a];if(!e||c>=e.priority)yf[a]={priority:c,ye:b,Ti:void 0===d?!1:d}}p.Ui=function(a){this.g.add(a)};p.lj=function(a){this.g.delete(a)};p.Gh=function(){this.g.clear()};p.Vi=function(a){this.h.add(a)};p.mj=function(a){this.h.delete(a)};
184
- p.Hh=function(){this.h.clear()};function zf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}p.destroy=function(){this.i=!0;this.g.clear();this.h.clear();bb.prototype.release.call(this);return this.m.destroy()};
185
- p.request=function(a,b,c){var d=this,e=new Af;if(this.i){var f=Promise.reject(new P(2,7,7001));f.catch(function(){});return new Bf(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Cd(b.retryParameters):jf();b.uris=Cd(b.uris);f=Cf(this,a,b,c);var g=f.Da(function(){return Df(d,a,b,c,new hf(b.retryParameters,!1),0,null,e)}),h=g.Da(function(r){return Ef(d,a,r,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
186
- var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.Da(function(r){var q=Date.now()-m,u=r.response;u.timeMs+=l;u.timeMs+=q;r.Ai||!d.l||u.fromCache||"HEAD"==b.method||a!=Ff||d.l(u.timeMs,u.data.byteLength,Gf(c));return u},function(r){r&&(r.severity=2);throw r;});f=new Bf(n.promise,function(){return n.abort()},e);uf(this.m,f);return f};
187
- function Cf(a,b,c,d){function e(h){f=f.Da(function(){c.body&&(c.body=oc(c.body));return h(b,c,d)})}var f=pf(void 0);a.C&&e(a.C);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.Da(void 0,function(h){if(h instanceof P&&7001==h.code)throw h;throw new P(2,1,1006,h);})}
188
- function Df(a,b,c,d,e,f,g,h){a.s&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.D&&a.D(b,d,c.uris[f],c.uris[f-1]);var k=new hb(c.uris[f]),l=k.qb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),jb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=yf[l])?l.ye:null;if(!n)return nf(new P(2,1,1E3,k));var r=l.Ti,q=null,u=null,v=!1,y=!1,z;return qf(kf(e)).Da(function(){if(a.i)return of();z=Date.now();var x=n(c.uris[f],c,b,function(C,E,H){q&&q.stop();u&&u.R(A/1E3);a.l&&b==Ff&&(a.l(C,E,Gf(d)),
189
- m=!0,h.g=H)},function(C){a.j&&a.j(C,c,b);y=!0});if(!r)return x;var B=c.retryParameters.connectionTimeout;B&&(q=new Fd(function(){v=!0;x.abort()}),q.R(B/1E3));var A=c.retryParameters.stallTimeout;A&&(u=new Fd(function(){v=!0;x.abort()}));return x}).Da(function(x){q&&q.stop();u&&u.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-z);var B={response:x,Ai:m};!y&&a.j&&a.j(x.headers,c,b);return B},function(x){q&&q.stop();u&&u.stop();if(a.u){var B=null,A=0;x instanceof P&&(B=x,1001==x.code&&(A=x.data[1]));a.u(c,
183
+ mf.prototype.Fa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=sf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new lf,g=new P(2,7,7001);this.promise.then(c(!0),c(!1));return new mf(f,function(){return d()})};
184
+ function sf(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}L("shaka.util.AbortableOperation",mf);mf.prototype.chain=mf.prototype.Fa;mf.prototype["finally"]=mf.prototype.finally;mf.all=rf;mf.prototype.abort=mf.prototype.abort;mf.notAbortable=qf;mf.completed=pf;mf.aborted=of;mf.failed=nf;function tf(){this.g=[]}function uf(a,b){a.g.push(b.finally(function(){xc(a.g,b)}))}tf.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function vf(a,b,c,d,e){bb.call(this);this.i=!1;this.m=new tf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.u=c||null;this.C=d||null;this.D=e||null;this.s=!1}pa(vf,bb);p=vf.prototype;p.kg=function(a){this.s=a};function wf(a,b,c,d){c=c||xf;var e=yf[a];if(!e||c>=e.priority)yf[a]={priority:c,Be:b,Xi:void 0===d?!1:d}}p.Yi=function(a){this.g.add(a)};p.pj=function(a){this.g.delete(a)};p.Jh=function(){this.g.clear()};p.Zi=function(a){this.h.add(a)};p.qj=function(a){this.h.delete(a)};
185
+ p.Kh=function(){this.h.clear()};function zf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}p.destroy=function(){this.i=!0;this.g.clear();this.h.clear();bb.prototype.release.call(this);return this.m.destroy()};
186
+ p.request=function(a,b,c){var d=this,e=new Af;if(this.i){var f=Promise.reject(new P(2,7,7001));f.catch(function(){});return new Bf(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Cd(b.retryParameters):jf();b.uris=Cd(b.uris);f=Cf(this,a,b,c);var g=f.Fa(function(){return Df(d,a,b,c,new hf(b.retryParameters,!1),0,null,e)}),h=g.Fa(function(r){return Ef(d,a,r,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
187
+ var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.Fa(function(r){var q=Date.now()-m,u=r.response;u.timeMs+=l;u.timeMs+=q;r.Di||!d.l||u.fromCache||"HEAD"==b.method||a!=Ff||d.l(u.timeMs,u.data.byteLength,Gf(c));return u},function(r){r&&(r.severity=2);throw r;});f=new Bf(n.promise,function(){return n.abort()},e);uf(this.m,f);return f};
188
+ function Cf(a,b,c,d){function e(h){f=f.Fa(function(){c.body&&(c.body=oc(c.body));return h(b,c,d)})}var f=pf(void 0);a.C&&e(a.C);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.Fa(void 0,function(h){if(h instanceof P&&7001==h.code)throw h;throw new P(2,1,1006,h);})}
189
+ function Df(a,b,c,d,e,f,g,h){a.s&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.D&&a.D(b,d,c.uris[f],c.uris[f-1]);var k=new hb(c.uris[f]),l=k.sb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),jb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=yf[l])?l.Be:null;if(!n)return nf(new P(2,1,1E3,k));var r=l.Xi,q=null,u=null,v=!1,y=!1,z;return qf(kf(e)).Fa(function(){if(a.i)return of();z=Date.now();var x=n(c.uris[f],c,b,function(C,E,H){q&&q.stop();u&&u.S(A/1E3);a.l&&b==Ff&&(a.l(C,E,Gf(d)),
190
+ m=!0,h.g=H)},function(C){a.j&&a.j(C,c,b);y=!0});if(!r)return x;var B=c.retryParameters.connectionTimeout;B&&(q=new Fd(function(){v=!0;x.abort()}),q.S(B/1E3));var A=c.retryParameters.stallTimeout;A&&(u=new Fd(function(){v=!0;x.abort()}));return x}).Fa(function(x){q&&q.stop();u&&u.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-z);var B={response:x,Di:m};!y&&a.j&&a.j(x.headers,c,b);return B},function(x){q&&q.stop();u&&u.stop();if(a.u){var B=null,A=0;x instanceof P&&(B=x,1001==x.code&&(A=x.data[1]));a.u(c,
190
191
  B,A,v)}if(a.i)return of();v&&(x=new P(1,1,1003,c.uris[f],b));if(x instanceof P){if(7001==x.code)throw x;if(1010==x.code)throw g;if(1==x.severity)return B=(new Map).set("error",x),B=new N("retry",B),a.dispatchEvent(B),f=(f+1)%c.uris.length,Df(a,b,c,d,e,f,x,h)}throw x;})}
191
- function Ef(a,b,c,d){var e=pf(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={Oe:f.Oe},g=a.next())f.Oe=g.value,e=e.Da(function(h){return function(){var k=c.response;k.data&&(k.data=oc(k.data));return h.Oe(b,k,d)}}(f));return e.Da(function(){return c},function(h){var k=2;if(h instanceof P){if(7001==h.code)throw h;k=h.severity}throw new P(k,1,1007,h);})}function Gf(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.D&&!b.C)return!1}return!0}L("shaka.net.NetworkingEngine",vf);
192
- vf.prototype.request=vf.prototype.request;vf.prototype.destroy=vf.prototype.destroy;vf.makeRequest=zf;vf.defaultRetryParameters=function(){return jf()};vf.prototype.clearAllResponseFilters=vf.prototype.Hh;vf.prototype.unregisterResponseFilter=vf.prototype.mj;vf.prototype.registerResponseFilter=vf.prototype.Vi;vf.prototype.clearAllRequestFilters=vf.prototype.Gh;vf.prototype.unregisterRequestFilter=vf.prototype.lj;vf.prototype.registerRequestFilter=vf.prototype.Ui;vf.unregisterScheme=function(a){delete yf[a]};
193
- vf.registerScheme=wf;vf.prototype.setForceHTTPS=vf.prototype.gg;function Af(){this.g=0}vf.NumBytesRemainingClass=Af;function Bf(a,b,c){mf.call(this,a,b);this.h=c}pa(Bf,mf);vf.PendingRequest=Bf;var Ff=1;vf.RequestType={MANIFEST:0,SEGMENT:Ff,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};vf.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var xf=3;vf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:xf};var yf={};function Hf(a){this.g=!1;this.h=new lf;this.i=a}Hf.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function If(a,b){if(a.g){if(b instanceof P&&7003==b.code)throw b;throw new P(2,7,7003,b);}};function Jf(){this.g=new ab}p=Jf.prototype;p.release=function(){this.Lb();this.g=null};p.o=function(a,b,c,d){this.g&&(a=new Kf(a,b,c,d),this.g.push(b,a))};p.na=function(a,b,c,d){function e(g){f.cc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};p.cc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.cc(),this.g.remove(b,e))}};
194
- p.Lb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,w(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.cc();this.g.g={}}};L("shaka.util.EventManager",Jf);Jf.prototype.removeAll=Jf.prototype.Lb;Jf.prototype.unlisten=Jf.prototype.cc;Jf.prototype.listenOnce=Jf.prototype.na;Jf.prototype.listen=Jf.prototype.o;Jf.prototype.release=Jf.prototype.release;function Kf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Lf(a,d);this.target.addEventListener(b,c,this.g)}
195
- Kf.prototype.cc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function Lf(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return Mf(a)?b:b.capture||!1}
192
+ function Ef(a,b,c,d){var e=pf(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={Te:f.Te},g=a.next())f.Te=g.value,e=e.Fa(function(h){return function(){var k=c.response;k.data&&(k.data=oc(k.data));return h.Te(b,k,d)}}(f));return e.Fa(function(){return c},function(h){var k=2;if(h instanceof P){if(7001==h.code)throw h;k=h.severity}throw new P(k,1,1007,h);})}function Gf(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.C&&!b.u)return!1}return!0}L("shaka.net.NetworkingEngine",vf);
193
+ vf.prototype.request=vf.prototype.request;vf.prototype.destroy=vf.prototype.destroy;vf.makeRequest=zf;vf.defaultRetryParameters=function(){return jf()};vf.prototype.clearAllResponseFilters=vf.prototype.Kh;vf.prototype.unregisterResponseFilter=vf.prototype.qj;vf.prototype.registerResponseFilter=vf.prototype.Zi;vf.prototype.clearAllRequestFilters=vf.prototype.Jh;vf.prototype.unregisterRequestFilter=vf.prototype.pj;vf.prototype.registerRequestFilter=vf.prototype.Yi;vf.unregisterScheme=function(a){delete yf[a]};
194
+ vf.registerScheme=wf;vf.prototype.setForceHTTPS=vf.prototype.kg;function Af(){this.g=0}vf.NumBytesRemainingClass=Af;function Bf(a,b,c){mf.call(this,a,b);this.h=c}pa(Bf,mf);vf.PendingRequest=Bf;var Ff=1;vf.RequestType={MANIFEST:0,SEGMENT:Ff,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};vf.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var xf=3;vf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:xf};var yf={};function Hf(a){this.g=!1;this.h=new lf;this.i=a}Hf.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function If(a,b){if(a.g){if(b instanceof P&&7003==b.code)throw b;throw new P(2,7,7003,b);}};function Jf(){this.g=new ab}p=Jf.prototype;p.release=function(){this.bb();this.g=null};p.o=function(a,b,c,d){this.g&&(a=new Kf(a,b,c,d),this.g.push(b,a))};p.na=function(a,b,c,d){function e(g){f.dc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};p.dc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.dc(),this.g.remove(b,e))}};
195
+ p.bb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,w(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.dc();this.g.g={}}};L("shaka.util.EventManager",Jf);Jf.prototype.removeAll=Jf.prototype.bb;Jf.prototype.unlisten=Jf.prototype.dc;Jf.prototype.listenOnce=Jf.prototype.na;Jf.prototype.listen=Jf.prototype.o;Jf.prototype.release=Jf.prototype.release;function Kf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Lf(a,d);this.target.addEventListener(b,c,this.g)}
196
+ Kf.prototype.dc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function Lf(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return Mf(a)?b:b.capture||!1}
196
197
  function Mf(a){var b=Nf;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}Nf=b}return b||!1}var Nf=void 0;function Of(a){this.h=a;this.g=void 0}Of.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Pf(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Qf(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Rf(){}
197
198
  function Sf(a){if(!a)return"";a=nc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Rd())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Sa('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128==
198
199
  (a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b}
199
200
  function Tf(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new P(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=rc(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Uf.value()(d)}
200
201
  function Vf(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=nc(a);if(239==c[0]&&187==c[1]&&191==c[2])return Sf(c);if(254==c[0]&&255==c[1])return Tf(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Tf(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Tf(a,!1);if(0==c[1]&&0==c[3])return Tf(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Sf(a);throw new P(2,2,2003);}
201
202
  function Wf(a){if(window.TextEncoder&&!Rd()){var b=new TextEncoder;return oc(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return oc(b)}function Xf(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}L("shaka.util.StringUtils",Rf);Rf.resetFromCharCode=function(){Uf.g=void 0};Rf.toUTF16=Xf;Rf.toUTF8=Wf;Rf.fromBytesAutoDetect=Vf;Rf.fromUTF16=Tf;
202
- Rf.fromUTF8=Sf;var Uf=new Of(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={Pb:65536};0<b.Pb;b={Pb:b.Pb},b.Pb/=2)if(a(b.Pb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Pb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Pb));return e}}(b);return null});function Yf(a,b){this.h=rc(a);this.i=b==Zf;this.g=0}p=Yf.prototype;p.va=function(){return this.g<this.h.byteLength};p.Ea=function(){return this.g};p.getLength=function(){return this.h.byteLength};p.qa=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw $f();}};p.Ra=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw $f();}};p.O=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw $f();}};
203
- p.ah=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw $f();}};p.Qc=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw $f();}if(2097151<b)throw new P(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};p.Kb=function(a){if(this.g+a>this.h.byteLength)throw $f();var b=nc(this.h,this.g,a);this.g+=a;return b};
204
- p.skip=function(a){if(this.g+a>this.h.byteLength)throw $f();this.g+=a};p.cj=function(a){if(this.g<a)throw $f();this.g-=a};p.seek=function(a){if(0>a||a>this.h.byteLength)throw $f();this.g=a};p.Cd=function(){for(var a=this.g;this.va()&&0!=this.h.getUint8(this.g);)this.g+=1;a=nc(this.h,a,this.g-a);this.g+=1;return Sf(a)};function $f(){return new P(2,3,3E3)}L("shaka.util.DataViewReader",Yf);Yf.prototype.readTerminatedString=Yf.prototype.Cd;Yf.prototype.seek=Yf.prototype.seek;Yf.prototype.rewind=Yf.prototype.cj;
205
- Yf.prototype.skip=Yf.prototype.skip;Yf.prototype.readBytes=Yf.prototype.Kb;Yf.prototype.readUint64=Yf.prototype.Qc;Yf.prototype.readInt32=Yf.prototype.ah;Yf.prototype.readUint32=Yf.prototype.O;Yf.prototype.readUint16=Yf.prototype.Ra;Yf.prototype.readUint8=Yf.prototype.qa;Yf.prototype.getLength=Yf.prototype.getLength;Yf.prototype.getPosition=Yf.prototype.Ea;Yf.prototype.hasMoreData=Yf.prototype.va;var Zf=1;Yf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Zf};function ag(){this.i=[];this.h=[];this.g=!1}p=ag.prototype;p.box=function(a,b){a=bg(a);this.i[a]=cg;this.h[a]=b;return this};p.W=function(a,b){a=bg(a);this.i[a]=dg;this.h[a]=b;return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new Yf(a,0);for(this.g=!1;a.va()&&!this.g;)this.zd(0,a,b,c)};
206
- p.zd=function(a,b,c,d){var e=b.Ea();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.O(),g=b.O(),h=eg(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ea()+8>b.getLength()){this.g=!0;return}f=b.Qc();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==dg){if(d&&b.Ea()+4>b.getLength()){this.g=!0;return}n=b.O();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Ea(),b=0<d?b.Kb(d):new Uint8Array(0),b=new Yf(b,0),l({name:h,parser:this,
207
- partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Ea(),b.getLength()-b.Ea()))}};function fg(a){for(var b=gg(a);a.reader.va()&&!a.parser.g;)a.parser.zd(a.start+b,a.reader,a.partialOkay)}function hg(a){for(var b=gg(a),c=a.reader.O(),d=0;d<c&&(a.parser.zd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function ig(a){var b=gg(a);for(a.reader.skip(78);a.reader.va()&&!a.parser.g;)a.parser.zd(a.start+b,a.reader,a.partialOkay)}
208
- function jg(a){return function(b){a(b.reader.Kb(b.reader.getLength()-b.reader.Ea()))}}function bg(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function eg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function gg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}L("shaka.util.Mp4Parser",ag);ag.headerSize=gg;ag.typeToString=eg;ag.allData=jg;ag.visualSampleEntry=ig;ag.sampleDescription=hg;ag.children=fg;ag.prototype.parseNext=ag.prototype.zd;
203
+ Rf.fromUTF8=Sf;var Uf=new Of(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={Rb:65536};0<b.Rb;b={Rb:b.Rb},b.Rb/=2)if(a(b.Rb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Rb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Rb));return e}}(b);return null});function Yf(a,b){this.h=rc(a);this.i=b==Zf;this.g=0}p=Yf.prototype;p.xa=function(){return this.g<this.h.byteLength};p.Ga=function(){return this.g};p.getLength=function(){return this.h.byteLength};p.ra=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw $f();}};p.Sa=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw $f();}};p.O=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw $f();}};
204
+ p.gh=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw $f();}};p.Tc=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw $f();}if(2097151<b)throw new P(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};p.Nb=function(a){if(this.g+a>this.h.byteLength)throw $f();var b=nc(this.h,this.g,a);this.g+=a;return b};
205
+ p.skip=function(a){if(this.g+a>this.h.byteLength)throw $f();this.g+=a};p.gj=function(a){if(this.g<a)throw $f();this.g-=a};p.seek=function(a){if(0>a||a>this.h.byteLength)throw $f();this.g=a};p.Fd=function(){for(var a=this.g;this.xa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=nc(this.h,a,this.g-a);this.g+=1;return Sf(a)};function $f(){return new P(2,3,3E3)}L("shaka.util.DataViewReader",Yf);Yf.prototype.readTerminatedString=Yf.prototype.Fd;Yf.prototype.seek=Yf.prototype.seek;Yf.prototype.rewind=Yf.prototype.gj;
206
+ Yf.prototype.skip=Yf.prototype.skip;Yf.prototype.readBytes=Yf.prototype.Nb;Yf.prototype.readUint64=Yf.prototype.Tc;Yf.prototype.readInt32=Yf.prototype.gh;Yf.prototype.readUint32=Yf.prototype.O;Yf.prototype.readUint16=Yf.prototype.Sa;Yf.prototype.readUint8=Yf.prototype.ra;Yf.prototype.getLength=Yf.prototype.getLength;Yf.prototype.getPosition=Yf.prototype.Ga;Yf.prototype.hasMoreData=Yf.prototype.xa;var Zf=1;Yf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Zf};function ag(){this.i=[];this.h=[];this.g=!1}p=ag.prototype;p.box=function(a,b){a=bg(a);this.i[a]=cg;this.h[a]=b;return this};p.W=function(a,b){a=bg(a);this.i[a]=dg;this.h[a]=b;return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new Yf(a,0);for(this.g=!1;a.xa()&&!this.g;)this.Dd(0,a,b,c)};
207
+ p.Dd=function(a,b,c,d){var e=b.Ga();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.O(),g=b.O(),h=eg(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ga()+8>b.getLength()){this.g=!0;return}f=b.Tc();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==dg){if(d&&b.Ga()+4>b.getLength()){this.g=!0;return}n=b.O();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Ga(),b=0<d?b.Nb(d):new Uint8Array(0),b=new Yf(b,0),l({name:h,parser:this,
208
+ partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Ga(),b.getLength()-b.Ga()))}};function fg(a){for(var b=gg(a);a.reader.xa()&&!a.parser.g;)a.parser.Dd(a.start+b,a.reader,a.partialOkay)}function hg(a){for(var b=gg(a),c=a.reader.O(),d=0;d<c&&(a.parser.Dd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function ig(a){var b=gg(a);for(a.reader.skip(78);a.reader.xa()&&!a.parser.g;)a.parser.Dd(a.start+b,a.reader,a.partialOkay)}
209
+ function jg(a){return function(b){a(b.reader.Nb(b.reader.getLength()-b.reader.Ga()))}}function bg(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function eg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function gg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}L("shaka.util.Mp4Parser",ag);ag.headerSize=gg;ag.typeToString=eg;ag.allData=jg;ag.visualSampleEntry=ig;ag.sampleDescription=hg;ag.children=fg;ag.prototype.parseNext=ag.prototype.Dd;
209
210
  ag.prototype.parse=ag.prototype.parse;ag.prototype.stop=ag.prototype.stop;ag.prototype.fullBox=ag.prototype.W;ag.prototype.box=ag.prototype.box;var cg=0,dg=1;function kg(){}function ng(a){a=nc(a);a=Uf.value()(a);return btoa(a)}function og(a,b){b=void 0==b?!0:b;a=ng(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function pg(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}function qg(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c}
210
- function rg(a){var b=nc(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function sg(){for(var a=Ga.apply(0,arguments),b=0,c=0;c<a.length;++c)b+=a[c].byteLength;b=new Uint8Array(b);for(var d=c=0;d<a.length;++d){var e=a[d];e instanceof Uint8Array?b.set(e,c):b.set(nc(e),c);c+=e.byteLength}return b}L("shaka.util.Uint8ArrayUtils",kg);kg.concat=sg;kg.toHex=rg;kg.fromHex=qg;kg.fromBase64=pg;kg.toBase64=og;kg.toStandardBase64=ng;function tg(a){var b=this;this.g=[];this.h=[];this.data=[];(new ag).box("moov",fg).box("moof",fg).W("pssh",function(c){if(!(1<c.version)){var d=nc(c.reader.h,-12,c.size);b.data.push(d);b.g.push(rg(c.reader.Kb(16)));if(0<c.version){d=c.reader.O();for(var e=0;e<d;e++){var f=rg(c.reader.Kb(16));b.h.push(f)}}}}).parse(a)}
211
+ function rg(a){var b=nc(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function sg(){for(var a=Ga.apply(0,arguments),b=0,c=0;c<a.length;++c)b+=a[c].byteLength;b=new Uint8Array(b);for(var d=c=0;d<a.length;++d){var e=a[d];e instanceof Uint8Array?b.set(e,c):b.set(nc(e),c);c+=e.byteLength}return b}L("shaka.util.Uint8ArrayUtils",kg);kg.concat=sg;kg.toHex=rg;kg.fromHex=qg;kg.fromBase64=pg;kg.toBase64=og;kg.toStandardBase64=ng;function tg(a){var b=this;this.g=[];this.h=[];this.data=[];(new ag).box("moov",fg).box("moof",fg).W("pssh",function(c){if(!(1<c.version)){var d=nc(c.reader.h,-12,c.size);b.data.push(d);b.g.push(rg(c.reader.Nb(16)));if(0<c.version){d=c.reader.O();for(var e=0;e<d;e++){var f=rg(c.reader.Nb(16));b.h.push(f)}}}}).parse(a)}
211
212
  function ug(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=rc(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=qg(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function vg(a,b){a=wg(a,b);return 1!=a.length?null:a[0]}function xg(a,b,c){a=yg(a,b,c);return 1!=a.length?null:a[0]}function wg(a,b){var c=[];a=t(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function zg(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
212
213
  function yg(a,b,c){var d=[];a=t(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function Ag(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function Bg(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function Cg(a){return Array.from(a.childNodes).every(Dg)?a.textContent.trim():null}
213
214
  function Dg(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function Eg(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function Fg(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}
@@ -215,62 +216,62 @@ function Gg(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-
215
216
  function Hg(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function Ig(a){a=Number(a);return 0===a%1?a:null}function Jg(a){a=Number(a);return 0===a%1&&0<a?a:null}function Kg(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Lg(a){a=Number(a);return isNaN(a)?null:a}function Mg(a){return a?"true"===a.toLowerCase():!1}
216
217
  function Ng(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
217
218
  function Og(a,b){var c=new DOMParser,d=Pg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function Qg(a,b){try{var c=Vf(a);return Og(c,b)}catch(d){return null}}
218
- var Pg=new Of(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Rg(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.m=this.u=null;this.ha=this.$=!1;this.J=0;this.g=null;this.D=new Jf;this.i=new Map;this.C=new Map;this.l=new lf;this.h=null;this.s=function(d){2==d.severity&&c.l.reject(d);a.onError(d)};this.U=new Map;this.aa=new Map;this.V=new Fd(function(){return Sg(c)});this.M=!1;this.L=[];this.N=!1;this.ya=(new Fd(function(){Tg(c)})).xa(b);this.l.catch(function(){});this.j=new Hf(function(){return Ug(c)});this.Z=!1;this.K=this.H=null}p=Rg.prototype;
219
- p.destroy=function(){return this.j.destroy()};function Ug(a){return K(function(b){switch(b.g){case 1:return a.D.release(),a.D=null,a.l.reject(),a.ya.stop(),a.ya=null,a.V.stop(),a.V=null,D(b,Vg(a),2);case 2:if(!a.m){b.F(3);break}ta(b,4);return D(b,a.m.setMediaKeys(null),6);case 6:va(b,5);break;case 4:wa(b);case 5:a.m=null;case 3:a.g=null,a.I.clear(),a.u=null,a.C=new Map,a.h=null,a.s=function(){},a.G=null,a.Z=!1,a.H=null,F(b)}})}p.configure=function(a){this.h=a};
219
+ var Pg=new Of(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Rg(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.m=this.u=null;this.ha=this.$=!1;this.J=0;this.g=null;this.D=new Jf;this.i=new Map;this.C=new Map;this.l=new lf;this.h=null;this.s=function(d){2==d.severity&&c.l.reject(d);a.onError(d)};this.U=new Map;this.aa=new Map;this.V=new Fd(function(){return Sg(c)});this.M=!1;this.L=[];this.N=!1;this.Aa=(new Fd(function(){Tg(c)})).za(b);this.l.catch(function(){});this.j=new Hf(function(){return Ug(c)});this.Z=!1;this.K=this.H=null}p=Rg.prototype;
220
+ p.destroy=function(){return this.j.destroy()};function Ug(a){return K(function(b){switch(b.g){case 1:return a.D.release(),a.D=null,a.l.reject(),a.Aa.stop(),a.Aa=null,a.V.stop(),a.V=null,D(b,Vg(a),2);case 2:if(!a.m){b.F(3);break}ta(b,4);return D(b,a.m.setMediaKeys(null),6);case 6:va(b,5);break;case 4:wa(b);case 5:a.m=null;case 3:a.g=null,a.I.clear(),a.u=null,a.C=new Map,a.h=null,a.s=function(){},a.G=null,a.Z=!1,a.H=null,F(b)}})}p.configure=function(a){this.h=a};
220
221
  function Wg(a,b,c){a.ha=!0;a.C=new Map;a.M=c;return Xg(a,b)}function Yg(a,b,c){a.C=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.C.set(d.value,{initData:null,initDataType:null});c=t(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.C.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.M=0<a.C.size;return Xg(a,b)}
221
222
  function Zg(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return $g(a,g,[])}
222
223
  function Xg(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x;return K(function(B){if(1==B.g){if(c=ah(a))for(d=t(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(A){return A.video&&A.video.drmInfos.length||A.audio&&A.audio.drmInfos.length?!0:!1});g||(h=Pf(a.h.servers),bh(b,h));k=new Set;l=t(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=ch(m),r=t(n),q=r.next();!q.done;q=r.next())u=q.value,k.add(u);v=t(k);for(q=v.next();!q.done;q=
223
224
  v.next())y=q.value,dh(y,Pf(a.h.servers),Pf(a.h.advanced||{}),a.h.keySystemsMapping);return D(B,he(b,a.M,a.Z,a.h.preferredKeySystems),2)}z=g||Object.keys(a.h.servers).length;if(!z)return a.$=!0,B.return(Promise.resolve());x=$g(a,void 0,b);return B.return(g?x:x.catch(function(){}))})}
224
225
  function eh(a){var b;return K(function(c){switch(c.g){case 1:if(a.m.mediaKeys)return c.return();if(!a.H){c.F(2);break}return D(c,a.H,3);case 3:return If(a.j),c.return();case 2:return ta(c,4),a.H=a.m.setMediaKeys(a.u),D(c,a.H,6);case 6:va(c,5);break;case 4:b=wa(c),a.s(new P(2,6,6003,b.message));case 5:If(a.j),F(c)}})}function fh(a,b){return K(function(c){if(1==c.g)return D(c,eh(a),2);gh(a,b.initDataType,nc(b.initData));F(c)})}
225
- p.Bc=function(a){var b=this;return K(function(c){if(1==c.g){if(!b.u)return b.D.na(a,"encrypted",function(){b.s(new P(2,6,6010))}),c.return();b.m=a;b.D.na(b.m,"play",function(){for(var d=t(b.L),e=d.next();!e.done;e=d.next())hh(b,e.value);b.N=!0;b.L=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.D.o(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Vg(b)});b.K=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.K||"com.apple.fps"!==b.g.keySystem||
226
+ p.Ec=function(a){var b=this;return K(function(c){if(1==c.g){if(!b.u)return b.D.na(a,"encrypted",function(){b.s(new P(2,6,6010))}),c.return();b.m=a;b.D.na(b.m,"play",function(){for(var d=t(b.L),e=d.next();!e.done;e=d.next())hh(b,e.value);b.N=!0;b.L=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.D.o(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Vg(b)});b.K=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.K||"com.apple.fps"!==b.g.keySystem||
226
227
  b.C.size?D(c,eh(b),2):c.F(2)}ih(b).catch(function(){});b.K||b.C.size||b.h.parseInbandPsshEnabled||b.D.o(b.m,"encrypted",function(d){return fh(b,d)});F(c)})};
227
- function jh(a){var b,c,d,e,f;return K(function(g){switch(g.g){case 1:if(!a.u||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.F(2);break}b=zf([a.g.serverCertificateUri],a.h.retryParameters);ta(g,3);c=a.G.uc.request(5,b);return D(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=nc(d.data);va(g,4);break;case 3:throw e=wa(g),new P(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
228
- ta(g,6);return D(g,a.u.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=wa(g),new P(2,6,6004,f.message);}})}function kh(a,b){var c,d,e;return K(function(f){if(1==f.g)return D(f,lh(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.xb=new lf,d.push(e.xb);d.push(c.remove());return D(f,Promise.all(d),3)}a.i.delete(c);F(f)})}
228
+ function jh(a){var b,c,d,e,f;return K(function(g){switch(g.g){case 1:if(!a.u||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.F(2);break}b=zf([a.g.serverCertificateUri],a.h.retryParameters);ta(g,3);c=a.G.xc.request(5,b);return D(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=nc(d.data);va(g,4);break;case 3:throw e=wa(g),new P(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
229
+ ta(g,6);return D(g,a.u.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=wa(g),new P(2,6,6004,f.message);}})}function kh(a,b){var c,d,e;return K(function(f){if(1==f.g)return D(f,lh(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Ab=new lf,d.push(e.Ab);d.push(c.remove());return D(f,Promise.all(d),3)}a.i.delete(c);F(f)})}
229
230
  function ih(a){var b,c,d,e,f;return K(function(g){if(1==g.g){if(!a.C.size)return g.F(2);a.C.forEach(function(h,k){lh(a,k,h)});return D(g,a.l,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&mh(a))return g.return(a.l);a.l=new lf;a.l.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=t(c);for(e=d.next();!e.done;e=d.next())f=e.value,gh(a,f.initDataType,f.initData);c.length||a.l.resolve();return g.return(a.l)})}
230
231
  function gh(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(lc(c,e.value.initData)&&a.h.ignoreDuplicateInitData)return;0<a.i.size&&nh(a)&&(a.l.resolve(),a.l=new lf,a.l.catch(function(){}));oh(a,b,c,a.g.sessionType)}}function ph(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function qh(a){a=a.i.keys();a=cb(a,function(b){return b.sessionId});return Array.from(a)}
231
- p.wf=function(){var a=this,b=this.i.keys();b=cb(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};p.pd=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};p.ae=function(){return Qf(this.aa)};
232
+ p.Af=function(){var a=this,b=this.i.keys();b=cb(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};p.sd=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};p.ee=function(){return Qf(this.aa)};
232
233
  function $g(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z;return K(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=rh(a,c,d);x.F(2);break}return D(x,sh(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new P(2,6,6001);If(a.j);ta(x,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.I.add(n.contentType.toLowerCase());r=t(k);for(m=r.next();!m.done;m=r.next())q=m.value,a.I.add(q.contentType.toLowerCase());if(c.length){var B=
233
234
  f.keySystem;var A=d.get(f.keySystem);var C=[],E=[],H=[],G=[],I=new Set;th(A,C,H,E,G,I);var J=a.M?"persistent-license":"temporary";B={keySystem:B,licenseServerUri:C[0],distinctiveIdentifierRequired:A[0].distinctiveIdentifierRequired,persistentStateRequired:A[0].persistentStateRequired,sessionType:A[0].sessionType||J,audioRobustness:A[0].audioRobustness||"",videoRobustness:A[0].videoRobustness||"",serverCertificate:H[0],serverCertificateUri:E[0],initData:G,keyIds:I};A=t(A);for(C=A.next();!C.done;C=
234
235
  A.next())C=C.value,C.distinctiveIdentifierRequired&&(B.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(B.persistentStateRequired=C.persistentStateRequired);A=B}else A=f.keySystem,B=b.get(f.keySystem),C=[],E=[],H=[],G=[],I=new Set,th(B.drmInfos,C,H,E,G,I),A={keySystem:A,licenseServerUri:C[0],distinctiveIdentifierRequired:"required"==B.distinctiveIdentifier,persistentStateRequired:"required"==B.persistentState,sessionType:B.sessionTypes[0]||"temporary",audioRobustness:(B.audioCapabilities?
235
236
  B.audioCapabilities[0].robustness:"")||"",videoRobustness:(B.videoCapabilities?B.videoCapabilities[0].robustness:"")||"",serverCertificate:H[0],serverCertificateUri:E[0],initData:G,keyIds:I};a.g=A;if(!a.g.licenseServerUri)throw new P(2,6,6012,a.g.keySystem);return D(x,f.createMediaKeys(),6);case 6:u=x.h;If(a.j);a.u=u;if(!(""!=a.h.minHdcpVersion&&"getStatusForPolicy"in a.u)){x.F(7);break}ta(x,8);return D(x,a.u.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),10);case 10:v=x.h;if("usable"!=v)throw new P(2,
236
237
  6,6018);If(a.j);va(x,7,4);break;case 8:y=wa(x,4);if(y instanceof P)throw y;throw new P(2,6,6019,y.message);case 7:return a.$=!0,D(x,jh(a),11);case 11:If(a.j);va(x,0);break;case 4:z=wa(x);If(a.j,z);a.g=null;a.I.clear();if(z instanceof P)throw z;throw new P(2,6,6002,z.message);}})}
237
- function rh(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(ch(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new P(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Ne:d.Ne},e=a.next())for(d.Ne=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
238
- l.Ne}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
238
+ function rh(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(ch(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new P(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Se:d.Se},e=a.next())for(d.Se=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
239
+ l.Se}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
239
240
  function sh(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y;return K(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new P(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){z.F(4);break}k=h.value;if(!b.has(k)){z.F(3);break}l=b.get(k);ta(z,6);return D(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
240
241
  z.h,z.return(c);case 6:wa(z);case 7:If(a.j);case 3:h=g.next();z.F(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.F(11);break}r=n.value;q=t(b.keys());h=q.next();case 12:if(h.done){n=m.next();z.F(9);break}u=h.value;v=b.get(u);y=v.drmInfos.some(function(x){return!!x.licenseServerUri});if(y!=r){z.F(13);break}ta(z,15);return D(z,navigator.requestMediaKeySystemAccess(u,[v]),17);case 17:return c=z.h,z.return(c);case 15:wa(z);case 16:If(a.j);case 13:h=q.next();z.F(12);break;case 11:return z.return(c)}})}
241
242
  function ah(a){a=Pf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=og(qg(f),!1));f=e;22!=f.length&&(f=og(qg(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:nc(Wf(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",
242
- videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}function uh(a){nh(a)&&a.l.resolve()}function vh(a,b){(new Fd(function(){b.loaded=!0;uh(a)})).R(wh)}
243
- function lh(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:try{d=a.u.createSession("persistent-license")}catch(n){return e=new P(2,6,6005,n.message),a.s(e),m.return(Promise.reject(e))}a.D.o(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.L.push(n):hh(a,n)});a.D.o(d,"keystatuseschange",function(n){return xh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Rf:Infinity,xb:null,type:"persistent-license"};a.i.set(d,f);ta(m,2);return D(m,
243
+ videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}function uh(a){nh(a)&&a.l.resolve()}function vh(a,b){(new Fd(function(){b.loaded=!0;uh(a)})).S(wh)}
244
+ function lh(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:try{d=a.u.createSession("persistent-license")}catch(n){return e=new P(2,6,6005,n.message),a.s(e),m.return(Promise.reject(e))}a.D.o(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.L.push(n):hh(a,n)});a.D.o(d,"keystatuseschange",function(n){return xh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Vf:Infinity,Ab:null,type:"persistent-license"};a.i.set(d,f);ta(m,2);return D(m,
244
245
  d.load(b),4);case 4:return g=m.h,If(a.j),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.s(new P(h,6,6013)),f.loaded=!0),vh(a,f),uh(a),m.return(d);case 2:k=wa(m),If(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.s(new P(l,6,6005,k.message)),f.loaded=!0,uh(a);case 3:return m.return(Promise.resolve())}})}
245
- function oh(a,b,c,d){try{var e=a.u.createSession(d)}catch(f){a.s(new P(2,6,6005,f.message));return}a.D.o(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.L.push(f):hh(a,f)});a.D.o(e,"keystatuseschange",function(f){return xh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Rf:Infinity,xb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.s(b);return}a.h.logLicenseExchange&&og(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
246
+ function oh(a,b,c,d){try{var e=a.u.createSession(d)}catch(f){a.s(new P(2,6,6005,f.message));return}a.D.o(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.L.push(f):hh(a,f)});a.D.o(e,"keystatuseschange",function(f){return xh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Vf:Infinity,Ab:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.s(b);return}a.h.logLicenseExchange&&og(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
246
247
  var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.s(new P(2,6,6006,f.message,f,h))}})}
247
248
  function hh(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u;K(function(v){switch(v.g){case 1:c=b.target;a.h.logLicenseExchange&&og(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=zf([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(ph(a.g.keySystem)){var y=
248
- Tf(g.body,!0,!0);if(y.includes("PlayReadyKeyMessage")){y=Og(y,"PlayReadyKeyMessage");for(var z=t(y.getElementsByTagName("HttpHeader")),x=z.next();!x.done;x=z.next())x=x.value,g.headers[x.getElementsByTagName("name")[0].textContent]=x.getElementsByTagName("value")[0].textContent;g.body=pg(y.getElementsByTagName("Challenge")[0].textContent)}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ta(v,2);l=a.G.uc.request(2,g);return D(v,l.promise,4);case 4:k=v.h;va(v,3);break;case 2:return m=
249
- wa(v),n=new P(2,6,6007,m),a.s(n),d&&d.xb&&d.xb.reject(n),v.return();case 3:if(a.j.g)return v.return();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&og(k.data);ta(v,5);return D(v,c.update(k.data),7);case 7:va(v,6);break;case 5:return r=wa(v),q=new P(2,6,6008,r.message),a.s(q),d&&d.xb&&d.xb.reject(q),v.return();case 6:if(a.j.g)return v.return();u=new N("drmsessionupdate");a.G.onEvent(u);d&&(d.xb&&d.xb.resolve(),vh(a,d));F(v)}})}
250
- function xh(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(ph(a.g.keySystem)&&16==g.byteLength&&(Jd()||Rd())){h=rc(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=rg(g).slice(0,32);a.U.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.xb&&(a.i.delete(b),b.close().catch(function(){}));
251
- nh(a)&&(a.l.resolve(),a.V.R(yh))}function Sg(a){var b=a.U,c=a.aa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.s(new P(2,6,6014));a.G.xe(Qf(c))}
249
+ Tf(g.body,!0,!0);if(y.includes("PlayReadyKeyMessage")){y=Og(y,"PlayReadyKeyMessage");for(var z=t(y.getElementsByTagName("HttpHeader")),x=z.next();!x.done;x=z.next())x=x.value,g.headers[x.getElementsByTagName("name")[0].textContent]=x.getElementsByTagName("value")[0].textContent;g.body=pg(y.getElementsByTagName("Challenge")[0].textContent)}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ta(v,2);l=a.G.xc.request(2,g);return D(v,l.promise,4);case 4:k=v.h;va(v,3);break;case 2:return m=
250
+ wa(v),n=new P(2,6,6007,m),a.s(n),d&&d.Ab&&d.Ab.reject(n),v.return();case 3:if(a.j.g)return v.return();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&og(k.data);ta(v,5);return D(v,c.update(k.data),7);case 7:va(v,6);break;case 5:return r=wa(v),q=new P(2,6,6008,r.message),a.s(q),d&&d.Ab&&d.Ab.reject(q),v.return();case 6:if(a.j.g)return v.return();u=new N("drmsessionupdate");a.G.onEvent(u);d&&(d.Ab&&d.Ab.resolve(),vh(a,d));F(v)}})}
251
+ function xh(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(ph(a.g.keySystem)&&16==g.byteLength&&(Jd()||Rd())){h=rc(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=rg(g).slice(0,32);a.U.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Ab&&(a.i.delete(b),b.close().catch(function(){}));
252
+ nh(a)&&(a.l.resolve(),a.V.S(yh))}function Sg(a){var b=a.U,c=a.aa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.s(new P(2,6,6014));a.G.Ae(Qf(c))}
252
253
  function zh(){var a,b,c,d,e,f,g,h;return K(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,
253
254
  r;return K(function(q){switch(q.g){case 1:ta(q,2);if("org.w3.clearkey"===l&&Sd())throw Error("Unsupported keySystem");return D(q,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=q.h,r=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Nd()&&(r=!1),f.set(l,{persistentState:r}),D(q,m.createMediaKeys(),5);case 5:va(q,0);break;case 2:wa(q),f.set(l,null),F(q)}})},h=a.map(function(l){return g(l)}),D(k,Promise.all(h),2)):k.return(Qf(f))})}
254
- function Ah(a){var b;return K(function(c){if(1==c.g)return b=new Promise(function(d,e){(new Fd(e)).R(Bh)}),ta(c,2),D(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);wa(c);F(c)})}
255
+ function Ah(a){var b;return K(function(c){if(1==c.g)return b=new Promise(function(d,e){(new Fd(e)).S(Bh)}),ta(c,2),D(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);wa(c);F(c)})}
255
256
  function Vg(a){var b;return K(function(c){b=Array.from(a.i.entries());a.i.clear();return D(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return K(function(g){if(1==g.g)return ta(g,2),a.ha||a.C.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?D(g,Ah(e),5):D(g,e.remove(),5);if(2!=g.g)return va(g,0);wa(g);F(g)})})),0)})}function Ch(a,b){return a.length&&b.length&&a!==b?0<Dh(a,b).length:!0}
256
257
  function Dh(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(w(d.keyIds),w(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
257
258
  f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}}return c}
258
- function ch(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Tg(a){a.i.forEach(function(b,c){var d=b.Rf,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Rf=e)})}function nh(a){a=a.i.values();return db(a,function(b){return b.loaded})}function mh(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.U.get(c.value))return!1;return!0}
259
+ function ch(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Tg(a){a.i.forEach(function(b,c){var d=b.Vf,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Vf=e)})}function nh(a){a=a.i.values();return db(a,function(b){return b.loaded})}function mh(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.U.get(c.value))return!1;return!0}
259
260
  function bh(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)}
260
- function th(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Sa:g.Sa},h=a.next()){g.Sa=h.value;b.includes(g.Sa.licenseServerUri)||b.push(g.Sa.licenseServerUri);d.includes(g.Sa.serverCertificateUri)||d.push(g.Sa.serverCertificateUri);g.Sa.serverCertificate&&(c.some(function(m){return function(n){return lc(n,m.Sa.serverCertificate)}}(g))||c.push(g.Sa.serverCertificate));if(g.Sa.initData){h={};for(var k=t(g.Sa.initData),l=k.next();!l.done;h={Md:h.Md},l=k.next())h.Md=l.value,e.some(function(m){return function(n){var r=
261
- m.Md;return n.keyId&&n.keyId==r.keyId?!0:n.initDataType==r.initDataType&&lc(n.initData,r.initData)}}(h))||e.push(h.Md)}if(g.Sa.keyIds)for(h=t(g.Sa.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
261
+ function th(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ta:g.Ta},h=a.next()){g.Ta=h.value;b.includes(g.Ta.licenseServerUri)||b.push(g.Ta.licenseServerUri);d.includes(g.Ta.serverCertificateUri)||d.push(g.Ta.serverCertificateUri);g.Ta.serverCertificate&&(c.some(function(m){return function(n){return lc(n,m.Ta.serverCertificate)}}(g))||c.push(g.Ta.serverCertificate));if(g.Ta.initData){h={};for(var k=t(g.Ta.initData),l=k.next();!l.done;h={Pd:h.Pd},l=k.next())h.Pd=l.value,e.some(function(m){return function(n){var r=
262
+ m.Pd;return n.keyId&&n.keyId==r.keyId?!0:n.initDataType==r.initDataType&&lc(n.initData,r.initData)}}(h))||e.push(h.Pd)}if(g.Ta.keyIds)for(h=t(g.Ta.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
262
263
  function dh(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
263
- c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var Bh=1,wh=5,yh=.5,Eh=new Of(function(){return oc(new Uint8Array([0]))});function Fh(){}function Gh(a,b){if(b&&(b=Hh[b.toLowerCase()]))return b;throw new P(2,4,4E3,a);}L("shaka.media.ManifestParser",Fh);Fh.unregisterParserByMime=function(a){delete Hh[a]};Fh.registerParserByMime=function(a,b){Hh[a]=b};Fh.registerParserByExtension=function(){Le("ManifestParser","Please use an ManifestParser with registerParserByMime function.")};Fh.AccessibilityPurpose={hk:"visually impaired",Dj:"hard of hearing"};var Hh={};function Ih(a){function b(){d=!0}function c(l){f.push(l);fg(l)}a=nc(a);var d=!1,e,f=[],g=[];(new ag).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).W("stsd",function(l){e=l;f.push(l);hg(l)}).W("encv",b).W("enca",b).W("hev1",function(l){g.push({box:l,ac:1701733238})}).W("hvc1",function(l){g.push({box:l,ac:1701733238})}).W("avc1",function(l){g.push({box:l,ac:1701733238})}).W("avc3",function(l){g.push({box:l,ac:1701733238})}).W("ac-3",function(l){g.push({box:l,ac:1701733217})}).W("ec-3",
264
- function(l){g.push({box:l,ac:1701733217})}).W("ac-4",function(l){g.push({box:l,ac:1701733217})}).W("mp4a",function(l){g.push({box:l,ac:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw $a(rg(a)),new P(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Jh(a,e,k.box,f,k.ac);return a}
264
+ c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var Bh=1,wh=5,yh=.5,Eh=new Of(function(){return oc(new Uint8Array([0]))});function Fh(){}function Gh(a,b){if(b&&(b=Hh[b.toLowerCase()]))return b;throw new P(2,4,4E3,a);}L("shaka.media.ManifestParser",Fh);Fh.unregisterParserByMime=function(a){delete Hh[a]};Fh.registerParserByMime=function(a,b){Hh[a]=b};Fh.registerParserByExtension=function(){Le("ManifestParser","Please use an ManifestParser with registerParserByMime function.")};Fh.AccessibilityPurpose={lk:"visually impaired",Hj:"hard of hearing"};var Hh={};function Ih(a){function b(){d=!0}function c(l){f.push(l);fg(l)}a=nc(a);var d=!1,e,f=[],g=[];(new ag).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).W("stsd",function(l){e=l;f.push(l);hg(l)}).W("encv",b).W("enca",b).W("hev1",function(l){g.push({box:l,bc:1701733238})}).W("hvc1",function(l){g.push({box:l,bc:1701733238})}).W("avc1",function(l){g.push({box:l,bc:1701733238})}).W("avc3",function(l){g.push({box:l,bc:1701733238})}).W("ac-3",function(l){g.push({box:l,bc:1701733217})}).W("ec-3",
265
+ function(l){g.push({box:l,bc:1701733217})}).W("ac-4",function(l){g.push({box:l,bc:1701733217})}).W("mp4a",function(l){g.push({box:l,bc:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw $a(rg(a)),new P(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Jh(a,e,k.box,f,k.bc);return a}
265
266
  function Jh(a,b,c,d,e){var f=Kh.value(),g=a.subarray(c.start,c.start+c.size),h=rc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=rc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Lh(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Kd()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Lh(e,d.start,d.size+k.byteLength);k=rc(e,b.start);b=gg(b);a=k.getUint32(b);
266
- k.setUint32(b,a+1);return e}function Lh(a,b,c){a=rc(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Kh=new Of(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 Mh(a,b,c,d,e,f,g){this.ba=a;this.cb=b;this.Ja=c;this.Nf=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aes128Key=void 0===g?null:g;this.mimeType=this.codecs=null}Mh.prototype.Wb=function(){return this.cb};Mh.prototype.Sb=function(){return this.Ja};function Nh(a,b){return a&&b?a.Wb()==b.Wb()&&a.Sb()==b.Sb()&&zc(a.ba().sort(),b.ba().sort())&&lc(a.g,b.g):a==b}L("shaka.media.InitSegmentReference",Mh);Mh.prototype.getEndByte=Mh.prototype.Sb;
267
- Mh.prototype.getStartByte=Mh.prototype.Wb;
268
- function Oh(a,b,c,d,e,f,g,h,k,l,m,n,r,q,u,v){l=void 0===l?[]:l;q=void 0===q?Ph:q;this.startTime=a;this.i=this.endTime=b;this.I=c;this.cb=d;this.Ja=e;this.ka=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.H=void 0===n?null:n;this.h=void 0===r?null:r;this.status=q;this.m=!1;this.l=!0;this.s=!1;this.aes128Key=void 0===u?null:u;this.G=null;this.j=0;this.u=void 0===v?!1:v;this.C=this.D=!1;a=t(this.g);for(b=a.next();!b.done;b=a.next())b.value.Xg();
269
- this.u&&this.g.length&&this.g[this.g.length-1].Wg();this.mimeType=this.codecs=null}p=Oh.prototype;p.ba=function(){return this.I()};p.getStartTime=function(){return this.startTime};p.Yh=function(){return this.endTime};p.Wb=function(){return this.cb};p.Sb=function(){return this.Ja};p.si=function(){return this.tilesLayout};p.ri=function(){return this.H};p.nc=function(){return this.status};p.Mi=function(){this.status=Qh};p.Mf=function(){this.m=!0};p.Hi=function(){return this.m};
270
- p.oe=function(){this.l=!1};p.Ei=function(){return this.l};p.Xg=function(){this.D=!0};p.Gi=function(){return this.D};p.Wg=function(){this.C=!0};p.Fi=function(){return this.C};p.Vg=function(){this.s=!0};p.Bi=function(){return this.s};p.mh=function(a){this.G=a};p.pi=function(){return this.G};p.offset=function(a){this.startTime+=a;this.endTime+=a;this.i+=a;for(var b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.i+=a};
271
- p.mg=function(a){null==this.h?Sa("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};L("shaka.media.SegmentReference",Oh);Oh.prototype.syncAgainst=Oh.prototype.mg;Oh.prototype.offset=Oh.prototype.offset;Oh.prototype.getThumbnailSprite=Oh.prototype.pi;Oh.prototype.setThumbnailSprite=Oh.prototype.mh;Oh.prototype.hasByterangeOptimization=Oh.prototype.Bi;Oh.prototype.markAsByterangeOptimization=Oh.prototype.Vg;Oh.prototype.isLastPartial=Oh.prototype.Fi;
272
- Oh.prototype.markAsLastPartial=Oh.prototype.Wg;Oh.prototype.isPartial=Oh.prototype.Gi;Oh.prototype.markAsPartial=Oh.prototype.Xg;Oh.prototype.isIndependent=Oh.prototype.Ei;Oh.prototype.markAsNonIndependent=Oh.prototype.oe;Oh.prototype.isPreload=Oh.prototype.Hi;Oh.prototype.markAsPreload=Oh.prototype.Mf;Oh.prototype.markAsUnavailable=Oh.prototype.Mi;Oh.prototype.getStatus=Oh.prototype.nc;Oh.prototype.getTileDuration=Oh.prototype.ri;Oh.prototype.getTilesLayout=Oh.prototype.si;
273
- Oh.prototype.getEndByte=Oh.prototype.Sb;Oh.prototype.getStartByte=Oh.prototype.Wb;Oh.prototype.getEndTime=Oh.prototype.Yh;Oh.prototype.getStartTime=Oh.prototype.getStartTime;Oh.prototype.getUris=Oh.prototype.ba;var Ph=0,Qh=1;Oh.Status={qj:Ph,fk:Qh,Jj:2};function Rh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Sh(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Th(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Uh(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}
267
+ k.setUint32(b,a+1);return e}function Lh(a,b,c){a=rc(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Kh=new Of(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 Mh(a,b,c,d,e,f,g){this.ba=a;this.fb=b;this.Ka=c;this.Rf=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aes128Key=void 0===g?null:g;this.mimeType=this.codecs=null}Mh.prototype.Xb=function(){return this.fb};Mh.prototype.Ub=function(){return this.Ka};function Nh(a,b){return a&&b?a.Xb()==b.Xb()&&a.Ub()==b.Ub()&&zc(a.ba().sort(),b.ba().sort())&&lc(a.g,b.g):a==b}L("shaka.media.InitSegmentReference",Mh);Mh.prototype.getEndByte=Mh.prototype.Ub;
268
+ Mh.prototype.getStartByte=Mh.prototype.Xb;
269
+ function Oh(a,b,c,d,e,f,g,h,k,l,m,n,r,q,u,v){l=void 0===l?[]:l;q=void 0===q?Ph:q;this.startTime=a;this.h=this.endTime=b;this.H=c;this.fb=d;this.Ka=e;this.ka=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.G=void 0===n?null:n;this.oa=void 0===r?null:r;this.status=q;this.l=!1;this.j=!0;this.m=!1;this.aes128Key=void 0===u?null:u;this.D=null;this.i=0;this.s=void 0===v?!1:v;this.u=this.C=!1;a=t(this.g);for(b=a.next();!b.done;b=a.next())b.value.bh();
270
+ this.s&&this.g.length&&this.g[this.g.length-1].ah();this.mimeType=this.codecs=null}p=Oh.prototype;p.ba=function(){return this.H()};p.getStartTime=function(){return this.startTime};p.ai=function(){return this.endTime};p.Xb=function(){return this.fb};p.Ub=function(){return this.Ka};p.xi=function(){return this.tilesLayout};p.wi=function(){return this.G};p.qc=function(){return this.status};p.Qi=function(){this.status=Qh};p.Qf=function(){this.l=!0};p.Ki=function(){return this.l};
271
+ p.re=function(){this.j=!1};p.Hi=function(){return this.j};p.bh=function(){this.C=!0};p.Ji=function(){return this.C};p.ah=function(){this.u=!0};p.Ii=function(){return this.u};p.$g=function(){this.m=!0};p.Ei=function(){return this.m};p.ph=function(a){this.D=a};p.ti=function(){return this.D};p.offset=function(a){this.startTime+=a;this.endTime+=a;this.h+=a;for(var b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.h+=a};
272
+ p.qg=function(a){null==this.oa?Sa("Sync attempted without sync time!"):(a=this.oa-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};L("shaka.media.SegmentReference",Oh);Oh.prototype.syncAgainst=Oh.prototype.qg;Oh.prototype.offset=Oh.prototype.offset;Oh.prototype.getThumbnailSprite=Oh.prototype.ti;Oh.prototype.setThumbnailSprite=Oh.prototype.ph;Oh.prototype.hasByterangeOptimization=Oh.prototype.Ei;Oh.prototype.markAsByterangeOptimization=Oh.prototype.$g;Oh.prototype.isLastPartial=Oh.prototype.Ii;
273
+ Oh.prototype.markAsLastPartial=Oh.prototype.ah;Oh.prototype.isPartial=Oh.prototype.Ji;Oh.prototype.markAsPartial=Oh.prototype.bh;Oh.prototype.isIndependent=Oh.prototype.Hi;Oh.prototype.markAsNonIndependent=Oh.prototype.re;Oh.prototype.isPreload=Oh.prototype.Ki;Oh.prototype.markAsPreload=Oh.prototype.Qf;Oh.prototype.markAsUnavailable=Oh.prototype.Qi;Oh.prototype.getStatus=Oh.prototype.qc;Oh.prototype.getTileDuration=Oh.prototype.wi;Oh.prototype.getTilesLayout=Oh.prototype.xi;
274
+ Oh.prototype.getEndByte=Oh.prototype.Ub;Oh.prototype.getStartByte=Oh.prototype.Xb;Oh.prototype.getEndTime=Oh.prototype.ai;Oh.prototype.getStartTime=Oh.prototype.getStartTime;Oh.prototype.getUris=Oh.prototype.ba;var Ph=0,Qh=1;Oh.Status={uj:Ph,jk:Qh,Nj:2};function Rh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Sh(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Th(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Uh(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}
274
275
  function Vh(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Uh(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Uh(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/*
275
276
  @license
276
277
  Shaka Player
@@ -282,10 +283,10 @@ function $h(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureTyp
282
283
  d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Sf(nc(a.data,1,d));a=Sf(nc(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Sf(nc(a.data,1,d));a=Sf(nc(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=Sf(nc(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==
283
284
  c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=oc(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=Sf(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=Sf(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=oc(a.data),b):null}
284
285
  function ai(a){for(var b=0,c=[];Xh(a,b);){var d=Zh(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=Zh(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=$h(e))&&c.push(f);b+=e.size+10}Yh(a,b)&&(b+=10)}return c}function bi(a,b){for(var c=b=void 0===b?0:b,d=0;Xh(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=Zh(a,b+6),Yh(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}L("shaka.util.Id3Utils",Wh);Wh.getID3Data=bi;
285
- Wh.getID3Frames=ai;function ci(a,b){var c=null,d=null,e=null,f=a.O();b&1&&(e=a.Qc());b&2&&a.skip(4);b&8&&(c=a.O());b&16&&(d=a.O());return{trackId:f,Hg:c,Lh:d,jk:e}}function di(a,b){return 1==b?(b=a.O(),a=a.O(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.O()}}function ei(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.O();a.skip(4);a=a.Ra();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
286
- function fi(a,b,c){var d=a.O(),e=[],f=null;c&1&&(f=a.O());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={ag:null,sampleSize:null,Ae:null};c&256&&(h.ag=a.O());c&512&&(h.sampleSize=a.O());c&1024&&a.skip(4);c&2048&&(h.Ae=0==b?a.O():a.ah());e.push(h)}return{pk:d,eh:e,Kh:f}}
287
- function gi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.O();1==b?a.skip(8):a.skip(4);a.skip(4);a.skip(8);a.skip(2);a.skip(2);a.skip(2);a.skip(2);a.skip(36);b=a.Ra()+a.Ra()/16;a=a.Ra()+a.Ra()/16;return{trackId:c,width:b,height:a}}
288
- function ii(a){for(var b="mp4a",c,d;a.va();){c=a.qa();for(var e=a.qa();e&128;)e=a.qa();if(3==c)a.Ra(),e=a.qa(),e&128&&a.Ra(),e&64&&a.skip(a.qa()),e&32&&a.Ra();else if(4==c)d=a.qa(),a.skip(12);else if(5==c)break}d&&(b+="."+this.g(d),5==c&&a.va()&&(c=a.qa(),d=(c&248)>>3,31===d&&a.va()&&(d=32+((c&7)<<3)+((a.qa()&224)>>5)),b+="."+d));return{ua:b}}function ji(a,b){a.skip(87);return{ua:b+"."+this.g(a.qa())+this.g(a.qa())+this.g(a.qa())}}function ki(a){a=a.O();return{ua:eg(a)}};/*
286
+ Wh.getID3Frames=ai;function ci(a,b){var c=null,d=null,e=null,f=a.O();b&1&&(e=a.Tc());b&2&&a.skip(4);b&8&&(c=a.O());b&16&&(d=a.O());return{trackId:f,Mg:c,Oh:d,pk:e}}function di(a,b){return 1==b?(b=a.O(),a=a.O(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.O()}}function ei(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.O();a.skip(4);a=a.Sa();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
287
+ function fi(a,b,c){var d=a.O(),e=[],f=null;c&1&&(f=a.O());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={eg:null,sampleSize:null,Ee:null};c&256&&(h.eg=a.O());c&512&&(h.sampleSize=a.O());c&1024&&a.skip(4);c&2048&&(h.Ee=0==b?a.O():a.gh());e.push(h)}return{vk:d,jh:e,Nh:f}}
288
+ function gi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.O();1==b?a.skip(8):a.skip(4);a.skip(4);a.skip(8);a.skip(2);a.skip(2);a.skip(2);a.skip(2);a.skip(36);b=a.Sa()+a.Sa()/16;a=a.Sa()+a.Sa()/16;return{trackId:c,width:b,height:a}}
289
+ function ii(a){for(var b="mp4a",c,d;a.xa();){c=a.ra();for(var e=a.ra();e&128;)e=a.ra();if(3==c)a.Sa(),e=a.ra(),e&128&&a.Sa(),e&64&&a.skip(a.ra()),e&32&&a.Sa();else if(4==c)d=a.ra(),a.skip(12);else if(5==c)break}d&&(b+="."+this.g(d),5==c&&a.xa()&&(c=a.ra(),d=(c&248)>>3,31===d&&a.xa()&&(d=32+((c&7)<<3)+((a.ra()&224)>>5)),b+="."+d));return{wa:b}}function ji(a,b){a.skip(87);return{wa:b+"."+this.g(a.ra())+this.g(a.ra())+this.g(a.ra())}}function ki(a){a=a.O();return{wa:eg(a)}};/*
289
290
 
290
291
  Copyright Brightcove, Inc.
291
292
 
@@ -304,130 +305,130 @@ function ii(a){for(var b="mp4a",c,d;a.va();){c=a.qa();for(var e=a.qa();e&128;)e=
304
305
  function li(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=nc(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function mi(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new Yf(c,0)).O(),a.g=8*d,a.i-=d)}function ni(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;mi(a)}a.h<<=b;a.g-=b}
305
306
  function oi(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&mi(a);c=b-c;return 0<c?d<<c|oi(a,c):d}function pi(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;mi(a);return b+pi(a)}function qi(a){ni(a,1+pi(a))}function Q(a){var b=pi(a);return oi(a,b+1)-1}function ri(a){a=Q(a);return 1&a?1+a>>>1:-1*(a>>>1)}function R(a){return 1===oi(a,1)}function si(a){return oi(a,8)}
306
307
  function ti(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=ri(a),d=(c+d+256)%256),c=0===d?c:d}function ui(a){si(a);Q(a);return Q(a)}L("shaka.util.ExpGolomb",li);function vi(){this.D=null;this.G=!1;this.m=this.H=null;this.j=[];this.g=[];this.s=this.u=null;this.i=[];this.h=[];this.C=null;this.l=[]}p=vi.prototype;p.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
307
- p.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,wi(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.D=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.D:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,je:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
308
- k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(-1==g.audio&&0<m)for(var n=h+5,r=m;2<r;){switch(f[n]){case 106:g.audio=l;g.audioCodec="ac3";break;case 122:g.audio=l,g.audioCodec="ec3"}var q=f[n+1]+2;n+=q;r-=q}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1==g.je&&(g.je=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec=
309
- "hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.H=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.u=f.audio,this.s=f.audioCodec);-1!=f.je&&(this.C=f.je);d&&!this.G&&(d=!1,e=b-188);this.G=!0;break;case this.H:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.u:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&
308
+ p.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,wi(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.D=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.D:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,me:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
309
+ k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(-1==g.audio&&0<m)for(var n=h+5,r=m;2<r;){switch(f[n]){case 106:g.audio=l;g.audioCodec="ac3";break;case 122:g.audio=l,g.audioCodec="ec3"}var q=f[n+1]+2;n+=q;r-=q}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1==g.me&&(g.me=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec=
310
+ "hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.H=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.u=f.audio,this.s=f.audioCodec);-1!=f.me&&(this.C=f.me);d&&!this.G&&(d=!1,e=b-188);this.G=!0;break;case this.H:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.u:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&
310
311
  this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);break;case this.C:h=a.subarray(h,e+188);f?this.l.push([h]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(h);break;default:d=!0}}return this};
311
312
  function xi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),packetLength:a[4]<<8|a[5],pts:null,dts:null,nalus:[]};if(b.packetLength&&b.packetLength>a.byteLength-6)return null;var c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));c=a[8]+9;if(a.byteLength<=c)return null;b.data=a.subarray(c);return b}
312
- p.Si=function(a){Le("TsParser","Please use parseNalus function instead.");return this.Uf(a)};
313
- p.Uf=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;"hvc"==this.m&&(e=2);for(var f=0,g=[],h=-1,k=0,l,m=0;m<d;++m){var n=a[m];if(n){if(2<=f&&1==n){b&&!g.length&&-1==h&&(n=m-(3<f?3:f),0!=n&&(n=a.subarray(0,n),b.data=sg(b.data,n),b.fullData=sg(b.fullData,n)));0<=h?(f=m-((3<f?3:f)+1),g.push({data:a.subarray(h+e,f+1),fullData:a.subarray(h,f+1),type:k,time:c})):b&&!g.length&&(h=m-f,0<h&&(h=a.subarray(0,h),b.data=sg(b.data,h),b.fullData=sg(b.fullData,h)));if(m>=d-e)return g;m++;
313
+ p.Wi=function(a){Le("TsParser","Please use parseNalus function instead.");return this.Yf(a)};
314
+ p.Yf=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;"hvc"==this.m&&(e=2);for(var f=0,g=[],h=-1,k=0,l,m=0;m<d;++m){var n=a[m];if(n){if(2<=f&&1==n){b&&!g.length&&-1==h&&(n=m-(3<f?3:f),0!=n&&(n=a.subarray(0,n),b.data=sg(b.data,n),b.fullData=sg(b.fullData,n)));0<=h?(f=m-((3<f?3:f)+1),g.push({data:a.subarray(h+e,f+1),fullData:a.subarray(h,f+1),type:k,time:c})):b&&!g.length&&(h=m-f,0<h&&(h=a.subarray(0,h),b.data=sg(b.data,h),b.fullData=sg(b.fullData,h)));if(m>=d-e)return g;m++;
314
315
  h=m;k="hvc"==this.m?a[m]>>1&63:a[m]&31}f=0}else f++;m>=d-1&&0<=h&&0<=f&&(l={data:a.subarray(h+e,d),fullData:a.subarray(h,d),type:k,time:c})}l&&g.push(l);!g.length&&b&&(b.data=sg(b.data,a),b.fullData=sg(b.fullData,a));return g};p.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=sg.apply(kg,w(c.value)),(c=xi(c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:ai(c.data),dts:c.dts,pts:c.pts});return a};
315
- p.kc=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=sg.apply(kg,w(c.value)),e=xi(d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=sg(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h};
316
- p.Ic=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=sg.apply(kg,w(d.value)),f=xi(e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=sg(d.data,e),this.g.push(d))}if(a){var g;c=t(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.Uf(d,g),d.nalus.length&&
317
- (g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.length})}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};p.getStartTime=function(a){if("audio"==a){a=null;var b=this.kc();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Ic(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};p.nd=function(){return{audio:this.s,video:this.m}};
318
- p.fe=function(){for(var a=[],b=t(this.Ic()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};p.xi=function(){Le("TsParser","Please use getVideoInfo function instead.");var a=this.Df();return{height:a.height,width:a.width}};p.Df=function(){return"hvc"==this.m?yi(this):zi(this)};
319
- function zi(a){var b={height:null,width:null,ua:null};a=a.fe();if(!a.length)return b;a=a.find(function(r){return 7==r.type});if(!a)return b;a=new li(a.data);var c=si(a),d=si(a),e=si(a);qi(a);if(Ai.includes(c)){var f=Q(a);3===f&&ni(a,1);qi(a);qi(a);ni(a,1);if(R(a)){f=3!==f?8:12;for(var g=0;g<f;g++)R(a)&&(6>g?ti(a,16):ti(a,64))}}qi(a);f=Q(a);if(0===f)Q(a);else if(1===f)for(ni(a,1),qi(a),qi(a),f=Q(a),g=0;g<f;g++)qi(a);qi(a);ni(a,1);f=Q(a);g=Q(a);var h=oi(a,1);0===h&&ni(a,1);ni(a,1);var k=0,l=0,m=0,n=
320
- 0;R(a)&&(k=Q(a),l=Q(a),m=Q(a),n=Q(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.ua="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
321
- function yi(a){var b={height:null,width:null,ua:null};a=a.fe();if(!a.length)return b;a=a.find(function(A){return 33==A.type});if(!a)return b;var c=new li(a.fullData,!0);si(c);si(c);oi(c,4);var d=oi(c,3);R(c);var e=oi(c,2),f=oi(c,1),g=oi(c,5),h=oi(c,32);a=si(c);for(var k=si(c),l=si(c),m=si(c),n=si(c),r=si(c),q=si(c),u=[],v=[],y=0;y<d;y++)u.push(R(c)),v.push(R(c));if(0<d)for(y=d;8>y;y++)oi(c,2);for(y=0;y<d;y++)u[y]&&oi(c,88),v[y]&&si(c);Q(c);d=Q(c);3==d&&oi(c,1);u=Q(c);v=Q(c);var z=y=0,x=0,B=0;R(c)&&
316
+ p.mc=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=sg.apply(kg,w(c.value)),e=xi(d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=sg(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h};
317
+ p.Mc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=sg.apply(kg,w(d.value)),f=xi(e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=sg(d.data,e),this.g.push(d))}if(a){var g;c=t(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.Yf(d,g),d.nalus.length&&
318
+ (g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.length})}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};p.getStartTime=function(a){if("audio"==a){a=null;var b=this.mc();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Mc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};p.rd=function(){return{audio:this.s,video:this.m}};
319
+ p.je=function(){for(var a=[],b=t(this.Mc()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};p.Bi=function(){Le("TsParser","Please use getVideoInfo function instead.");var a=this.Hf();return{height:a.height,width:a.width}};p.Hf=function(){return"hvc"==this.m?yi(this):zi(this)};
320
+ function zi(a){var b={height:null,width:null,wa:null};a=a.je();if(!a.length)return b;a=a.find(function(r){return 7==r.type});if(!a)return b;a=new li(a.data);var c=si(a),d=si(a),e=si(a);qi(a);if(Ai.includes(c)){var f=Q(a);3===f&&ni(a,1);qi(a);qi(a);ni(a,1);if(R(a)){f=3!==f?8:12;for(var g=0;g<f;g++)R(a)&&(6>g?ti(a,16):ti(a,64))}}qi(a);f=Q(a);if(0===f)Q(a);else if(1===f)for(ni(a,1),qi(a),qi(a),f=Q(a),g=0;g<f;g++)qi(a);qi(a);ni(a,1);f=Q(a);g=Q(a);var h=oi(a,1);0===h&&ni(a,1);ni(a,1);var k=0,l=0,m=0,n=
321
+ 0;R(a)&&(k=Q(a),l=Q(a),m=Q(a),n=Q(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.wa="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
322
+ function yi(a){var b={height:null,width:null,wa:null};a=a.je();if(!a.length)return b;a=a.find(function(A){return 33==A.type});if(!a)return b;var c=new li(a.fullData,!0);si(c);si(c);oi(c,4);var d=oi(c,3);R(c);var e=oi(c,2),f=oi(c,1),g=oi(c,5),h=oi(c,32);a=si(c);for(var k=si(c),l=si(c),m=si(c),n=si(c),r=si(c),q=si(c),u=[],v=[],y=0;y<d;y++)u.push(R(c)),v.push(R(c));if(0<d)for(y=d;8>y;y++)oi(c,2);for(y=0;y<d;y++)u[y]&&oi(c,88),v[y]&&si(c);Q(c);d=Q(c);3==d&&oi(c,1);u=Q(c);v=Q(c);var z=y=0,x=0,B=0;R(c)&&
322
323
  (y+=Q(c),z+=Q(c),x+=Q(c),B+=Q(c));b.width=String(u-(y+z)*(1===d||2===d?2:1));b.height=String(v-(x+B)*(1===d?2:1));c=function(A){for(var C=0,E=0;32>E;E++)C|=(A>>E&1)<<31-E;return C>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+q;r&&(e+="."+r.toString(16).toUpperCase());n&&(e+="."+n.toString(16).toUpperCase());m&&(e+="."+m.toString(16).toUpperCase());l&&(e+="."+l.toString(16).toUpperCase());k&&(e+="."+k.toString(16).toUpperCase());a&&(e+="."+
323
- a.toString(16).toUpperCase());b.ua=e;return b}function Bi(a){return 0>wi(a)?!1:!0}function wi(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}L("shaka.util.TsParser",vi);vi.syncOffset=wi;vi.probe=Bi;vi.prototype.getVideoInfo=vi.prototype.Df;vi.prototype.getVideoResolution=vi.prototype.xi;vi.prototype.getVideoNalus=vi.prototype.fe;vi.prototype.getCodecs=vi.prototype.nd;vi.prototype.getStartTime=vi.prototype.getStartTime;
324
- vi.prototype.getVideoData=vi.prototype.Ic;vi.prototype.getAudioData=vi.prototype.kc;vi.prototype.getMetadata=vi.prototype.getMetadata;vi.prototype.parseNalus=vi.prototype.Uf;vi.prototype.parseAvcNalus=vi.prototype.Si;vi.prototype.parse=vi.prototype.parse;vi.prototype.clearData=vi.prototype.clearData;vi.Timescale=9E4;var Ai=[100,110,122,244,44,83,86,118,128,138,139,134];function Ci(a,b,c){this.g=null;this.s=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ta("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,Le("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ta("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ta("Could not find LCEVC Library on this page"),
324
+ a.toString(16).toUpperCase());b.wa=e;return b}function Bi(a){return 0>wi(a)?!1:!0}function wi(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}L("shaka.util.TsParser",vi);vi.syncOffset=wi;vi.probe=Bi;vi.prototype.getVideoInfo=vi.prototype.Hf;vi.prototype.getVideoResolution=vi.prototype.Bi;vi.prototype.getVideoNalus=vi.prototype.je;vi.prototype.getCodecs=vi.prototype.rd;vi.prototype.getStartTime=vi.prototype.getStartTime;
325
+ vi.prototype.getVideoData=vi.prototype.Mc;vi.prototype.getAudioData=vi.prototype.mc;vi.prototype.getMetadata=vi.prototype.getMetadata;vi.prototype.parseNalus=vi.prototype.Yf;vi.prototype.parseAvcNalus=vi.prototype.Wi;vi.prototype.parse=vi.prototype.parse;vi.prototype.clearData=vi.prototype.clearData;vi.Timescale=9E4;var Ai=[100,110,122,244,44,83,86,118,128,138,139,134];function Ci(a,b,c){this.g=null;this.s=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ta("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,Le("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ta("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ta("Could not find LCEVC Library on this page"),
325
326
  a=!1):(this.h.SupportObject.SupportStatus||Ta(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!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 Di(a){a.g&&a.i.classList.add("shaka-hidden")}
326
- Ci.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Ei(a,b,c){var d=Fi,e=Gi;switch(b.mimeType){case "video/webm":d=Hi;break;case "video/mp4":d=Ii}switch(c){case "DASH":e=Ji;break;case "HLS":e=Ki}a.g&&(a.s=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}L("shaka.lcevc.Dec",Ci);Ci.prototype.release=Ci.prototype.release;var Fi=0,Hi=1,Ii=2,Ki=0,Ji=1,Gi=-1;function Li(a,b,c,d){var e=this;this.i=a;this.G=null;this.H=b;this.g={};this.I={};this.ha={};this.h=null;this.Z=!1;this.sa=c||function(){};this.N=d||null;this.j={};this.u=new Jf;this.m={};this.J=null;this.L=new lf;this.M="";this.$=!1;this.l=Mi(this,this.L);this.D=!1;this.K=new Hf(function(){return Ni(e)});this.C=!1;this.V="UNKNOWN";this.ya=this.ra=!1;this.za=new lf;this.s=!1;this.aa=!0;this.U=null}
327
- function Mi(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.u.na(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.u.o(c,"startstreaming",function(){a.aa=!0});a.u.o(c,"endstreaming",function(){a.aa=!1});a.u.na(a.i,"playing",function(){a.$=!0});a.M=Oi(c);a.i.src=a.M;return c}c=new MediaSource;a.u.na(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.u.na(a.i,"playing",function(){a.$=!0});a.M=Oi(c);a.i.src=a.M;return c}
327
+ Ci.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Ei(a,b,c){var d=Fi,e=Gi;switch(b.mimeType){case "video/webm":d=Hi;break;case "video/mp4":d=Ii}switch(c){case "DASH":e=Ji;break;case "HLS":e=Ki}a.g&&(a.s=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}L("shaka.lcevc.Dec",Ci);Ci.prototype.release=Ci.prototype.release;var Fi=0,Hi=1,Ii=2,Ki=0,Ji=1,Gi=-1;function Li(a,b,c,d){var e=this;this.i=a;this.G=null;this.H=b;this.g={};this.I={};this.ha={};this.h=null;this.Z=!1;this.ua=c||function(){};this.N=d||null;this.j={};this.u=new Jf;this.m={};this.J=null;this.L=new lf;this.M="";this.$=!1;this.l=Mi(this,this.L);this.D=!1;this.K=new Hf(function(){return Ni(e)});this.C=!1;this.V="UNKNOWN";this.Aa=this.sa=!1;this.va=new lf;this.s=!1;this.aa=!0;this.U=null}
328
+ function Mi(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.u.o(c,"startstreaming",function(){a.aa=!0});a.u.o(c,"endstreaming",function(){a.aa=!1});a.u.na(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.u.na(a.i,"playing",function(){a.$=!0});a.M=Oi(c);a.i.src=a.M;return c}c=new MediaSource;a.u.na(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.u.na(a.i,"playing",function(){a.$=!0});a.M=Oi(c);a.i.src=a.M;return c}
328
329
  p=Li.prototype;p.destroy=function(){return this.K.destroy()};
329
330
  function Ni(a){var b,c,d,e,f,g,h,k;return K(function(l){if(1==l.g){b=[];for(c in a.j)for(d=a.j[c],e=d[0],a.j[c]=d.slice(0,1),e&&b.push(e.p.catch(Ad)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new P(2,7,7003,void 0));a.h&&b.push(a.h.destroy());a.H&&b.push(a.H.destroy());for(k in a.m)b.push(a.m[k].destroy());return D(l,Promise.all(b),2)}a.u&&(a.u.release(),a.u=null);a.i&&(a.i.removeAttribute("src"),a.i.load(),a.i=null);a.G=null;a.l=null;a.h=null;a.H=null;a.g={};a.m={};a.J=null;
330
- a.j={};a.N=null;F(l)})}p.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return K(function(m){if(1==m.g)return f=Jb,D(m,e.L,2);e.C=b;e.V=c;e.ra=d;e.ya=!e.C&&"HLS"==e.V&&!e.ra;g=t(a.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=a.get(k),Pi(e,k,l,l.codecs),e.s?(e.j[f.T]=[],e.j[f.ia]=[]):e.j[k]=[];F(m)})};
331
+ a.j={};a.N=null;F(l)})}p.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return K(function(m){if(1==m.g)return f=Jb,D(m,e.L,2);e.C=b;e.V=c;e.sa=d;e.Aa=!e.C&&"HLS"==e.V&&!e.sa;g=t(a.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=a.get(k),Pi(e,k,l,l.codecs),e.s?(e.j[f.T]=[],e.j[f.ia]=[]):e.j[k]=[];F(m)})};
331
332
  function Pi(a,b,c,d,e){e=void 0===e?!1:e;var f=fd(c.mimeType,d);if(b==Ib)Qi(a,f,a.C,c.external);else{var g=a.G.forceTransmux||e;if(!fc(f)||!a.C&&gd.includes(f))g=!0;e=hd(c.mimeType,d);if(g){g=Gb("audio",(d||"").split(","));d=Gb("video",(d||"").split(","));if(g&&d){a.s=!0;Pi(a,"audio",c,g,!0);Pi(a,"video",c,d,!0);return}if(d=$c(e))f=d(),a.m[b]=f,f=f.convertCodecs(b,e)}e=f+a.G.sourceBufferExtraFeatures;If(a.K);try{var h=a.l.addSourceBuffer(e)}catch(k){throw new P(2,3,3015,k,"The mediaSource_ status was "+
332
333
  a.l.readyState+" expected 'open'");}a.C&&(h.mode=Ri);a.u.o(h,"error",function(){a.j[b][0].p.reject(new P(2,3,3014,a.i.error?a.i.error.code:0))});a.u.o(h,"updateend",function(){return Si(a,b)});a.g[b]=h;a.I[b]=f;a.ha[b]=!!c.drmInfos.length}}p.configure=function(a){this.G=a};
333
334
  function Qi(a,b,c,d){a.h||(a.h=new qd(a.H));var e=a.h;d=d||a.Z;a=a.V;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,sd[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):Ta('Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):Ta('Text parsers should have a "setManifestType" method!'),e.C=d)}function Ti(a){return a.D?!1:a.l?"ended"==a.l.readyState:!0}
334
335
  function Ui(a,b){a.D||!Object.keys(a.g).length?a=null:b==Ib?a=a.h.g:(a=Vi(a,b),a=!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null);return a}function Wi(a,b){return a.D?null:b==Ib?a.h.h:Rh(Vi(a,b))}function Xi(a,b,c){if(a.D)return 0;if(b==Ib)return a=a.h,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Vi(a,b);return Th(a,c)}
335
- p.Gb=function(){var a={total:this.D?[]:Uh(this.i.buffered),audio:this.D?[]:Uh(Vi(this,"audio")),video:this.D?[]:Uh(Vi(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Vi(a,b){try{return a.g[b].buffered}catch(c){return null}}
336
- function Yi(a,b,c,d,e,f){var g=null,h=nc(c);if(gd.includes(e))f=ai(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.sa([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.ka&&d.ka.timescale){var k=d.ka.timescale;if(!isNaN(k)){var l=0,m=!1;(new ag).box("moof",fg).box("traf",fg).W("tfdt",function(n){l=di(n.reader,
337
- n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!Bi(h)||(h=(new vi).parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.sa(h,f,d?d.endTime:null));return g}
338
- function Zi(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:m=Jb;if(b!=m.Ba){C.F(2);break}if(!a.C){C.F(3);break}return D(C,a.za,4);case 4:n=C.h,a.h.u=n;case 3:return D(C,td(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.ba()[0]:null),5);case 5:return C.return();case 2:if(l||!a.s){C.F(6);break}return D(C,Zi(a,m.T,c,d,e,f,g,h,k,!0),7);case 7:return D(C,Zi(a,m.ia,c,d,e,f,g,h,k,!0),8);case 8:return C.return();
339
- case 6:if(!a.g[b])return C.return();r=a.g[b].timestampOffset;q=a.I[b];a.m[b]&&(q=a.m[b].getOriginalMimeType());d&&(u=Yi(a,b,c,d,q,r),null!=u&&(v=d.startTime-u,y=Math.abs(r-v),(.001<=y||g||h)&&(!k||0<v||!r)&&(r=v,a.ya&&($i(a,b,function(){return aj(a,b)}),$i(a,b,function(){return bj(a,b,r)}))),z=b==m.ia||!(m.ia in a.g),a.C&&z&&a.za.resolve(r)));f&&b==m.ia&&(a.h||Qi(a,"application/cea-608",a.C,!1),a.J||(x=q.split(";",1)[0],a.J=new tc(x)),d?(B=a.J.i(c),B.length&&yd(a.h,B,d.startTime,d.endTime,r)):a.J.init(c));
340
- if(!a.m[b]){C.F(9);break}return D(C,a.m[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=C.h;case 9:return c=cj(a,c,d?d.startTime:null,b),d&&a.C&&b!=m.Ba&&(g||h)&&(A=d.startTime,$i(a,b,function(){return aj(a,b)}),$i(a,b,function(){return bj(a,b,A)})),D(C,$i(a,b,function(){var E=c;if("video"==b&&a.N){var H=a.N;H.g&&H.g.appendBuffer(E,"video",H.s,-r)}a.g[b].appendBuffer(E)}),11);case 11:F(C)}})}function dj(a,b){var c=Wi(a,"video")||0;vd(a.h,b,c)}function ej(a){a.h&&vd(a.h,"",0)}
341
- p.remove=function(a,b,c){var d=this,e;return K(function(f){return 1==f.g?(e=Jb,a==e.Ba?D(f,d.h.remove(b,c),0):D(f,$i(d,a,function(){return fj(d,a,b,c)}),4)):d.s?D(f,$i(d,e.T,function(){return fj(d,e.T,b,c)}),0):f.F(0)})};function gj(a,b){var c;return K(function(d){return 1==d.g?(c=Jb,b==c.Ba?a.h?D(d,a.h.remove(0,Infinity),0):d.return():D(d,$i(a,b,function(){return fj(a,b,0,a.l.duration)}),4)):a.s?D(d,$i(a,c.T,function(){return fj(a,c.T,0,a.l.duration)}),0):d.F(0)})}
342
- p.flush=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Jb,a==c.Ba?d.return():D(d,$i(b,a,function(){b.i.currentTime-=.001;Si(b,a)}),2)):b.s?D(d,$i(b,c.T,function(){var e=c.T;b.i.currentTime-=.001;Si(b,e)}),0):d.F(0)})};
343
- function hj(a,b,c,d,e,f,g,h,k){var l,m,n;return K(function(r){if(1==r.g){l=Jb;if(b==l.Ba)return f||(a.h.u=c),ud(a.h,d,e),r.return();m=[];return D(r,ij(a,b,g,h,k),2)}n=r.h;n||(m.push($i(a,b,function(){return aj(a,b)})),a.s&&m.push($i(a,l.T,function(){return aj(a,l.T)})));f||(m.push($i(a,b,function(){return bj(a,b,c)})),a.s&&m.push($i(a,l.T,function(){return bj(a,l.T,c)})));m.push($i(a,b,function(){a.g[b].appendWindowStart=0;a.g[b].appendWindowEnd=e;a.g[b].appendWindowStart=d;Si(a,b)}));a.s&&m.push($i(a,
344
- l.T,function(){var q=l.T;a.g[q].appendWindowStart=0;a.g[q].appendWindowEnd=e;a.g[q].appendWindowStart=d;Si(a,q)}));return D(r,Promise.all(m),0)})}function jj(a,b,c){var d;return K(function(e){if(1==e.g){d=Jb;if(b==d.Ba)return e.return();$i(a,b,function(){return aj(a,b)});a.s&&$i(a,d.T,function(){return aj(a,d.T)});return D(e,$i(a,b,function(){return bj(a,b,c)}),2)}return a.s?D(e,$i(a,d.T,function(){return bj(a,d.T,c)}),0):e.F(0)})}
345
- p.endOfStream=function(a){var b=this;return K(function(c){return D(c,kj(b,function(){Ti(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};p.bb=function(a){var b=this;return K(function(c){return D(c,kj(b,function(){if(a<b.l.duration)for(var d in b.g){var e={start:function(){},p:new lf};b.j[d].unshift(e)}b.l.duration=a;b.U=a}),0)})};p.getDuration=function(){return this.l.duration};function fj(a,b,c,d){d<=c?Si(a,b):a.g[b].remove(c,d)}
336
+ p.Ib=function(){var a={total:this.D?[]:Uh(this.i.buffered),audio:this.D?[]:Uh(Vi(this,"audio")),video:this.D?[]:Uh(Vi(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Vi(a,b){try{return a.g[b].buffered}catch(c){return null}}
337
+ function Yi(a,b,c,d,e,f){var g=null,h=nc(c);if(gd.includes(e))f=ai(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.ua([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.ka&&d.ka.timescale){var k=d.ka.timescale;if(!isNaN(k)){var l=0,m=!1;(new ag).box("moof",fg).box("traf",fg).W("tfdt",function(n){l=di(n.reader,
338
+ n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!Bi(h)||(h=(new vi).parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.ua(h,f,d?d.endTime:null));return g}
339
+ function Zi(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:m=Jb;if(b!=m.Da){C.F(2);break}if(!a.C){C.F(3);break}return D(C,a.va,4);case 4:n=C.h,a.h.u=n;case 3:return D(C,td(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.ba()[0]:null),5);case 5:return C.return();case 2:if(l||!a.s){C.F(6);break}return D(C,Zi(a,m.T,c,d,e,f,g,h,k,!0),7);case 7:return D(C,Zi(a,m.ia,c,d,e,f,g,h,k,!0),8);case 8:return C.return();
340
+ case 6:if(!a.g[b])return C.return();r=a.g[b].timestampOffset;q=a.I[b];a.m[b]&&(q=a.m[b].getOriginalMimeType());d&&(u=Yi(a,b,c,d,q,r),null!=u&&(v=d.startTime-u,y=Math.abs(r-v),(.001<=y||g||h)&&(!k||0<v||!r)&&(r=v,a.Aa&&($i(a,b,function(){return aj(a,b)}),$i(a,b,function(){return bj(a,b,r)}))),z=b==m.ia||!(m.ia in a.g),a.C&&z&&a.va.resolve(r)));f&&b==m.ia&&(a.h||Qi(a,"application/cea-608",a.C,!1),a.J||(x=q.split(";",1)[0],a.J=new tc(x)),d?(B=a.J.i(c),B.length&&yd(a.h,B,d.startTime,d.endTime,r)):a.J.init(c));
341
+ if(!a.m[b]){C.F(9);break}return D(C,a.m[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=C.h;case 9:return c=cj(a,c,d?d.startTime:null,b),d&&a.C&&b!=m.Da&&(g||h)&&(A=d.startTime,$i(a,b,function(){return aj(a,b)}),$i(a,b,function(){return bj(a,b,A)})),D(C,$i(a,b,function(){var E=c;if("video"==b&&a.N){var H=a.N;H.g&&H.g.appendBuffer(E,"video",H.s,-r)}a.g[b].appendBuffer(E)}),11);case 11:F(C)}})}function dj(a,b){var c=Wi(a,"video")||0;vd(a.h,b,c)}function ej(a){a.h&&vd(a.h,"",0)}
342
+ p.remove=function(a,b,c){var d=this,e;return K(function(f){return 1==f.g?(e=Jb,a==e.Da?D(f,d.h.remove(b,c),0):D(f,$i(d,a,function(){return fj(d,a,b,c)}),4)):d.s?D(f,$i(d,e.T,function(){return fj(d,e.T,b,c)}),0):f.F(0)})};function gj(a,b){var c;return K(function(d){return 1==d.g?(c=Jb,b==c.Da?a.h?D(d,a.h.remove(0,Infinity),0):d.return():D(d,$i(a,b,function(){return fj(a,b,0,a.l.duration)}),4)):a.s?D(d,$i(a,c.T,function(){return fj(a,c.T,0,a.l.duration)}),0):d.F(0)})}
343
+ p.flush=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Jb,a==c.Da?d.return():D(d,$i(b,a,function(){b.i.currentTime-=.001;Si(b,a)}),2)):b.s?D(d,$i(b,c.T,function(){var e=c.T;b.i.currentTime-=.001;Si(b,e)}),0):d.F(0)})};
344
+ function hj(a,b,c,d,e,f,g,h,k){var l,m,n;return K(function(r){if(1==r.g){l=Jb;if(b==l.Da)return f||(a.h.u=c),ud(a.h,d,e),r.return();m=[];return D(r,ij(a,b,g,h,k),2)}n=r.h;n||(m.push($i(a,b,function(){return aj(a,b)})),a.s&&m.push($i(a,l.T,function(){return aj(a,l.T)})));f||(m.push($i(a,b,function(){return bj(a,b,c)})),a.s&&m.push($i(a,l.T,function(){return bj(a,l.T,c)})));m.push($i(a,b,function(){a.g[b].appendWindowStart=0;a.g[b].appendWindowEnd=e;a.g[b].appendWindowStart=d;Si(a,b)}));a.s&&m.push($i(a,
345
+ l.T,function(){var q=l.T;a.g[q].appendWindowStart=0;a.g[q].appendWindowEnd=e;a.g[q].appendWindowStart=d;Si(a,q)}));return D(r,Promise.all(m),0)})}function jj(a,b,c){var d;return K(function(e){if(1==e.g){d=Jb;if(b==d.Da)return e.return();$i(a,b,function(){return aj(a,b)});a.s&&$i(a,d.T,function(){return aj(a,d.T)});return D(e,$i(a,b,function(){return bj(a,b,c)}),2)}return a.s?D(e,$i(a,d.T,function(){return bj(a,d.T,c)}),0):e.F(0)})}
346
+ p.endOfStream=function(a){var b=this;return K(function(c){return D(c,kj(b,function(){Ti(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};p.eb=function(a){var b=this;return K(function(c){return D(c,kj(b,function(){if(a<b.l.duration)for(var d in b.g){var e={start:function(){},p:new lf};b.j[d].unshift(e)}b.l.duration=a;b.U=a}),0)})};p.getDuration=function(){return this.l.duration};function fj(a,b,c,d){d<=c?Si(a,b):a.g[b].remove(c,d)}
346
347
  function aj(a,b){var c=a.g[b].appendWindowStart,d=a.g[b].appendWindowEnd;a.g[b].abort();a.g[b].appendWindowStart=c;a.g[b].appendWindowEnd=d;Si(a,b)}function bj(a,b,c){0>c&&(c+=.001);a.g[b].timestampOffset=c;Si(a,b)}function Si(a,b){if(!a.D){var c=a.j[b][0];c&&(c.p.resolve(),lj(a,b))}}function $i(a,b,c){If(a.K);c={start:c,p:new lf};a.j[b].push(c);1==a.j[b].length&&mj(a,b);return c.p}
347
- function kj(a,b){var c,d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:If(a.K);c=[];d={};for(e in a.g)d.$c=new lf,f={start:function(m){return function(){return m.$c.resolve()}}(d),p:d.$c},a.j[e].push(f),c.push(d.$c),1==a.j[e].length&&f.start(),d={$c:d.$c};ta(l,2);return D(l,Promise.all(c),4);case 4:va(l,3);break;case 2:throw g=wa(l),g;case 3:return ta(l,5,6),D(l,b(),6);case 6:xa(l);for(h in a.g)lj(a,h);ya(l,0);break;case 5:throw k=wa(l),new P(2,3,3015,k,a.i.error||"No error in the media element");
348
+ function kj(a,b){var c,d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:If(a.K);c=[];d={};for(e in a.g)d.cd=new lf,f={start:function(m){return function(){return m.cd.resolve()}}(d),p:d.cd},a.j[e].push(f),c.push(d.cd),1==a.j[e].length&&f.start(),d={cd:d.cd};ta(l,2);return D(l,Promise.all(c),4);case 4:va(l,3);break;case 2:throw g=wa(l),g;case 3:return ta(l,5,6),D(l,b(),6);case 6:xa(l);for(h in a.g)lj(a,h);ya(l,0);break;case 5:throw k=wa(l),new P(2,3,3015,k,a.i.error||"No error in the media element");
348
349
  }})}function lj(a,b){a.j[b].shift();mj(a,b)}function mj(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new P(2,3,3017,b)):c.p.reject(new P(2,3,3015,d,a.i.error||"No error in the media element")),lj(a,b)}}function cj(a,b,c,d){var e=a.ha[d];a.G.insertFakeEncryptionInInit&&null==c&&e&&(Md()||Kd()||Ld("SOPOpenBrowser"))&&"mp4"==a.I[d].split(";")[0].split("/")[1]&&(b=Ih(b));return b}
349
350
  function nj(a,b,c,d){return $i(a,b,function(){b!==Ib&&(hc()&&(a.m[b]&&(a.m[b].destroy(),delete a.m[b]),d&&(a.m[b]=d),a.g[b].changeType(c+a.G.sourceBufferExtraFeatures),a.I[b]=c),Si(a,b))})}
350
- function oj(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G;return K(function(I){switch(I.g){case 1:c=Jb;a.D=!0;a.s=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.$&&(a.i.autoplay=!1);ua(I,2);a.u.Lb();g=[];for(h in a.m)g.push(a.m[h].destroy());for(k in a.j)for(l=a.j[k],m=l[0],a.j[k]=l.slice(0,1),m&&g.push(m.p.catch(Ad)),n=t(l.slice(1)),r=n.next();!r.done;r=n.next())q=r.value,q.p.reject(new P(2,7,7003,void 0));for(u in a.g){v=a.g[u];try{a.l.removeSourceBuffer(v)}catch(J){}}return D(I,Promise.all(g),
351
- 4);case 4:return a.m={},a.g={},y=a.l.duration,a.L=new lf,a.l=Mi(a,a.L),D(I,a.L,5);case 5:!isNaN(y)&&y?a.l.duration=y:!isNaN(a.U)&&a.U&&(a.l.duration=a.U);z=new lf;x=a.l.sourceBuffers;B=b.size;A=0;a.u.o(x,"addsourcebuffer",function(){A++;A===B&&z.resolve()});C=t(b.keys());for(E=C.next();!E.done;E=C.next())H=E.value,G=b.get(H),Pi(a,H,G,G.codecs),a.s?(a.j[c.T]=[],a.j[c.ia]=[]):a.j[H]=[];a.i.currentTime=d;return D(I,z,2);case 2:xa(I),a.D=!1,If(a.K),a.u.na(a.i,"canplay",function(){If(a.K);a.i.autoplay=
351
+ function oj(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G;return K(function(I){switch(I.g){case 1:c=Jb;a.D=!0;a.s=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.$&&(a.i.autoplay=!1);ua(I,2);a.u.bb();g=[];for(h in a.m)g.push(a.m[h].destroy());for(k in a.j)for(l=a.j[k],m=l[0],a.j[k]=l.slice(0,1),m&&g.push(m.p.catch(Ad)),n=t(l.slice(1)),r=n.next();!r.done;r=n.next())q=r.value,q.p.reject(new P(2,7,7003,void 0));for(u in a.g){v=a.g[u];try{a.l.removeSourceBuffer(v)}catch(J){}}return D(I,Promise.all(g),
352
+ 4);case 4:return a.m={},a.g={},y=a.l.duration,a.L=new lf,a.l=Mi(a,a.L),D(I,a.L,5);case 5:!isNaN(y)&&y?a.l.duration=y:!isNaN(a.U)&&a.U&&(a.l.duration=a.U);z=new lf;x=a.l.sourceBuffers;B=b.size;A=0;a.u.o(x,"addsourcebuffer",function(){A++;A===B&&z.resolve()});C=t(b.keys());for(E=C.next();!E.done;E=C.next())H=E.value,G=b.get(H),Pi(a,H,G,G.codecs),a.s?(a.j[c.T]=[],a.j[c.ia]=[]):a.j[H]=[];a.i.currentTime=d;return D(I,z,2);case 2:xa(I),a.D=!1,If(a.K),a.u.na(a.i,"canplaythrough",function(){If(a.K);a.i.autoplay=
352
353
  e;f||a.i.play()}),ya(I,0)}})}function pj(a,b){return kj(a,function(){return oj(a,b)})}
353
- function ij(a,b,c,d,e){var f,g,h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){if(1==A.g){f=Jb;if(b==f.Ba)return A.return(!1);g=nd(pd(a.I[b]));h=od(a.I[b]);l=!1;m=fd(c,d);n=a.G.forceTransmux;if(!fc(m)||!a.C&&gd.includes(m)||d.includes(","))n=!0;n&&(r=hd(c,d),q=$c(r))&&(k=q(),u=Gb(f.T,(d||"").split(",")),v=Gb(f.ia,(d||"").split(",")),u&&v?(l=!0,y=v,b==f.T&&(y=u),m=k.convertCodecs(b,hd(c,y))):m=k.convertCodecs(b,r));z=nd(pd(m));x=od(m);if(g===z&&h===x)return A.return(!1);B=!0;if(a.s||l&&k&&!a.m[b])B=
354
+ function ij(a,b,c,d,e){var f,g,h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){if(1==A.g){f=Jb;if(b==f.Da)return A.return(!1);g=nd(pd(a.I[b]));h=od(a.I[b]);l=!1;m=fd(c,d);n=a.G.forceTransmux;if(!fc(m)||!a.C&&gd.includes(m)||d.includes(","))n=!0;n&&(r=hd(c,d),q=$c(r))&&(k=q(),u=Gb(f.T,(d||"").split(",")),v=Gb(f.ia,(d||"").split(",")),u&&v?(l=!0,y=v,b==f.T&&(y=u),m=k.convertCodecs(b,hd(c,y))):m=k.convertCodecs(b,r));z=nd(pd(m));x=od(m);if(g===z&&h===x)return A.return(!1);B=!0;if(a.s||l&&k&&!a.m[b])B=
354
355
  !1;if(B&&"smooth"===a.G.codecSwitchingStrategy&&hc())return D(A,nj(a,b,m,k),3);k&&k.destroy();return D(A,pj(a,e),3)}return A.return(!0)})}
355
- function qj(a,b,c){if(b==Ib)var d=!1;else{d=nd(pd(a.I[b]));var e=od(a.I[b]),f=fd(c.mimeType,c.codecs),g=a.G.forceTransmux;if(!fc(f)||!a.C&&gd.includes(f)||c.codecs.includes(","))g=!0;c=hd(c.mimeType,c.codecs);g&&(g=$c(c))&&(g=g(),f=g.convertCodecs(b,c),g.destroy());b=nd(pd(f));f=od(f);d=d!==b||e!==f}return d?"smooth"!==a.G.codecSwitchingStrategy||!hc()||a.s:!1}var Oi=window.URL.createObjectURL,Ri="sequence";function rj(a,b,c){this.i=a;this.m=b;this.u=this.j=Infinity;this.g=1;this.h=this.l=null;this.s=0;this.G=!0;this.H=0;this.C=void 0===c?!0:c;this.I=0;this.D=!1}p=rj.prototype;p.getDuration=function(){return this.j};p.ei=function(){return this.g};p.lh=function(a){this.i=a};p.bb=function(a){this.j=a};p.ji=function(){return this.i};p.hh=function(a){this.s=a};p.Rc=function(a){this.G=a};p.De=function(a){this.u=a};p.ih=function(a){this.m=a};p.Xh=function(){return this.m};
356
- p.$g=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.ue(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.C&&!this.D&&(this.i=(Date.now()+this.s)/1E3-this.h-this.g)}};
357
- p.yd=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.s)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.ue(b);this.h=Math.max(this.h,c);null!=this.i&&this.C&&!this.D&&(this.i=d-this.h-this.g)}};p.le=function(){this.D=!0};p.ue=function(a){this.l=null==this.l?a:Math.min(this.l,a)};p.Pf=function(a){this.g=Math.max(this.g,a)};
358
- p.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};p.S=function(){return Infinity==this.j&&!this.G};p.rc=function(){return Infinity!=this.j&&!this.G};p.ub=function(){return Math.max(this.H,this.Vb()-this.u)};p.nh=function(a){this.H=a};p.Vb=function(){return this.S()||this.rc()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.i)+this.I,this.j):this.h?Math.min(this.h,this.j):this.j};
359
- p.qd=function(a){var b=Math.max(this.l,this.H);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Vb()-this.u+a,this.Hb()))};p.Hc=function(){return this.qd(0)};p.Hb=function(){return Math.max(0,this.Vb()-(this.S()||this.rc()?this.m:0))};p.sh=function(){return null==this.i||null!=this.h&&this.C?!1:!0};p.gh=function(a){this.I=a};L("shaka.media.PresentationTimeline",rj);rj.prototype.setAvailabilityTimeOffset=rj.prototype.gh;rj.prototype.usingPresentationStartTime=rj.prototype.sh;
360
- rj.prototype.getSeekRangeEnd=rj.prototype.Hb;rj.prototype.getSeekRangeStart=rj.prototype.Hc;rj.prototype.getSafeSeekRangeStart=rj.prototype.qd;rj.prototype.getSegmentAvailabilityEnd=rj.prototype.Vb;rj.prototype.setUserSeekStart=rj.prototype.nh;rj.prototype.getSegmentAvailabilityStart=rj.prototype.ub;rj.prototype.isInProgress=rj.prototype.rc;rj.prototype.isLive=rj.prototype.S;rj.prototype.offset=rj.prototype.offset;rj.prototype.notifyMaxSegmentDuration=rj.prototype.Pf;
361
- rj.prototype.notifyMinSegmentStartTime=rj.prototype.ue;rj.prototype.lockStartTime=rj.prototype.le;rj.prototype.notifySegments=rj.prototype.yd;rj.prototype.notifyTimeRange=rj.prototype.$g;rj.prototype.getDelay=rj.prototype.Xh;rj.prototype.setDelay=rj.prototype.ih;rj.prototype.setSegmentAvailabilityDuration=rj.prototype.De;rj.prototype.setStatic=rj.prototype.Rc;rj.prototype.setClockOffset=rj.prototype.hh;rj.prototype.getPresentationStartTime=rj.prototype.ji;rj.prototype.setDuration=rj.prototype.bb;
362
- rj.prototype.setPresentationStartTime=rj.prototype.lh;rj.prototype.getMaxSegmentDuration=rj.prototype.ei;rj.prototype.getDuration=rj.prototype.getDuration;function sj(a,b,c){this.j=c;this.l=a;this.u=tj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}sj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function uj(a,b){a.i=b}function vj(a){this.g=a}function tj(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Uh(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function wj(a,b,c,d,e){var f=this;this.C=e;this.g=a;this.D=b;this.u=c;this.l=new Jf;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.s=!1;this.l.o(a,"waiting",function(){return xj(f)});this.m=(new Fd(function(){xj(f)})).xa(this.u.gapJumpTimerTime)}wj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.D=this.C=null};wj.prototype.Sf=function(){this.s=!0;xj(this)};
356
+ function qj(a,b,c){if(b==Ib)var d=!1;else{d=nd(pd(a.I[b]));var e=od(a.I[b]),f=fd(c.mimeType,c.codecs),g=a.G.forceTransmux;if(!fc(f)||!a.C&&gd.includes(f)||c.codecs.includes(","))g=!0;c=hd(c.mimeType,c.codecs);g&&(g=$c(c))&&(g=g(),f=g.convertCodecs(b,c),g.destroy());b=nd(pd(f));f=od(f);d=d!==b||e!==f}return d?"smooth"!==a.G.codecSwitchingStrategy||!hc()||a.s:!1}var Oi=window.URL.createObjectURL,Ri="sequence";function rj(a,b,c){this.i=a;this.s=b;this.C=this.j=Infinity;this.g=1;this.h=this.l=null;this.u=0;this.G=!0;this.H=0;this.D=void 0===c?!0:c;this.I=0;this.m=!1}p=rj.prototype;p.getDuration=function(){return this.j};p.ji=function(){return this.g};p.mg=function(a){this.i=a};p.eb=function(a){this.j=a};p.mi=function(){return this.i};p.lh=function(a){this.u=a};p.Uc=function(a){this.G=a};p.He=function(a){this.C=a};p.mh=function(a){this.s=a};p.$h=function(){return this.s};
357
+ p.fh=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.xe(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.D&&!this.m&&(this.i=(Date.now()+this.u)/1E3-this.h-this.g)}};
358
+ p.Cd=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.u)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.xe(b);this.h=Math.max(this.h,c);null!=this.i&&this.D&&!this.m&&(this.i=d-this.h-this.g)}};p.pe=function(){this.m=!0};p.Mi=function(){return this.m};p.xe=function(a){this.l=null==this.l?a:Math.min(this.l,a)};
359
+ p.Tf=function(a){this.g=Math.max(this.g,a)};p.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};p.R=function(){return Infinity==this.j&&!this.G};p.uc=function(){return Infinity!=this.j&&!this.G};p.xb=function(){return Math.max(this.H,this.Wb()-this.C)};p.qh=function(a){this.H=a};p.Wb=function(){return this.R()||this.uc()?Math.min(Math.max(0,(Date.now()+this.u)/1E3-this.g-this.i)+this.I,this.j):this.h?Math.min(this.h,this.j):this.j};
360
+ p.td=function(a){var b=Math.max(this.l,this.H);return Infinity==this.C?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Wb()-this.C+a,this.Kb()))};p.Lc=function(){return this.td(0)};p.Kb=function(){return Math.max(0,this.Wb()-(this.R()||this.uc()?this.s:0))};p.wh=function(){return null==this.i||null!=this.h&&this.D?!1:!0};p.kh=function(a){this.I=a};L("shaka.media.PresentationTimeline",rj);rj.prototype.setAvailabilityTimeOffset=rj.prototype.kh;rj.prototype.usingPresentationStartTime=rj.prototype.wh;
361
+ rj.prototype.getSeekRangeEnd=rj.prototype.Kb;rj.prototype.getSeekRangeStart=rj.prototype.Lc;rj.prototype.getSafeSeekRangeStart=rj.prototype.td;rj.prototype.getSegmentAvailabilityEnd=rj.prototype.Wb;rj.prototype.setUserSeekStart=rj.prototype.qh;rj.prototype.getSegmentAvailabilityStart=rj.prototype.xb;rj.prototype.isInProgress=rj.prototype.uc;rj.prototype.isLive=rj.prototype.R;rj.prototype.offset=rj.prototype.offset;rj.prototype.notifyMaxSegmentDuration=rj.prototype.Tf;
362
+ rj.prototype.notifyMinSegmentStartTime=rj.prototype.xe;rj.prototype.isStartTimeLocked=rj.prototype.Mi;rj.prototype.lockStartTime=rj.prototype.pe;rj.prototype.notifySegments=rj.prototype.Cd;rj.prototype.notifyTimeRange=rj.prototype.fh;rj.prototype.getDelay=rj.prototype.$h;rj.prototype.setDelay=rj.prototype.mh;rj.prototype.setSegmentAvailabilityDuration=rj.prototype.He;rj.prototype.setStatic=rj.prototype.Uc;rj.prototype.setClockOffset=rj.prototype.lh;rj.prototype.getPresentationStartTime=rj.prototype.mi;
363
+ rj.prototype.setDuration=rj.prototype.eb;rj.prototype.setPresentationStartTime=rj.prototype.mg;rj.prototype.getMaxSegmentDuration=rj.prototype.ji;rj.prototype.getDuration=rj.prototype.getDuration;function sj(a,b,c){this.j=c;this.l=a;this.u=tj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}sj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function uj(a,b){a.i=b}function vj(a){this.g=a}function tj(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Uh(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function wj(a,b,c,d,e){var f=this;this.C=e;this.g=a;this.D=b;this.u=c;this.l=new Jf;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.s=!1;this.l.o(a,"waiting",function(){return xj(f)});this.m=(new Fd(function(){xj(f)})).za(this.u.gapJumpTimerTime)}wj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.D=this.C=null};wj.prototype.Wf=function(){this.s=!0;xj(this)};
363
364
  function xj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.H&&(a.H=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=tj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.u!=d)b.m=f,b.g=e,b.u=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.s++,b.j(new N("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Vh(c,b,a.u.gapDetectionThreshold),null==
364
- d||0==d&&!a.s||(e=c.start(d),e>=a.D.Hb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.G++,a.C(new N("gapjumped")))))}}};function yj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=zj.value().get(b),c.na(a,b,d))}var zj=new Of(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Aj(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.s=!1;this.h=new Jf;this.i=new Bj(a);yj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Cj(e,e.j())})}Aj.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};function Dj(a){return a.s?a.g.currentTime:a.j()}
365
+ d||0==d&&!a.s||(e=c.start(d),e>=a.D.Kb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.G++,a.C(new N("gapjumped")))))}}};function yj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=zj.value().get(b),c.na(a,b,d))}var zj=new Of(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Aj(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.s=!1;this.h=new Jf;this.i=new Bj(a);yj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Cj(e,e.j())})}Aj.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};function Dj(a){return a.s?a.g.currentTime:a.j()}
365
366
  function Ej(a,b){0<a.g.readyState?Fj(a.i,b):yj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Cj(a,a.j())})}function Cj(a,b){.001>Math.abs(a.g.currentTime-b)?Gj(a):(a.h.na(a.g,"seeking",function(){Gj(a)}),Fj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Gj(a){a.s=!0;a.h.o(a.g,"seeking",function(){return a.m()});a.u(a.g.currentTime)}
366
- function Bj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Fd(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Bj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function Fj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.xa(.1)};function Hj(a){this.g=a;this.j=!1;this.h=null;this.i=new Jf}p=Hj.prototype;p.Te=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.na(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;yj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};p.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};p.Ue=function(a){this.h=this.j?this.h:a};p.Sd=function(){return(this.j?this.g.currentTime:this.h)||0};p.vg=function(){return 0};
367
- p.ug=function(){return 0};p.Zg=function(){};
367
+ function Bj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Fd(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Bj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function Fj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.za(.1)};function Hj(a){this.g=a;this.j=!1;this.h=null;this.i=new Jf}p=Hj.prototype;p.Ye=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.na(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;yj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};p.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};p.Ze=function(a){this.h=this.j?this.h:a};p.Vd=function(){return(this.j?this.g.currentTime:this.h)||0};p.Ag=function(){return 0};
368
+ p.zg=function(){return 0};p.eh=function(){};
368
369
  function Ij(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.D=b.minBufferTime||0;this.l=c;this.C=e;this.u=null;this.s=Jj(a,c,f);this.j=new wj(a,b.presentationTimeline,c,this.s,f);this.h=new Aj(a,function(){a:{var h=g.j;h.j=!0;h.s=!1;var k=Dj(g.h);h=Kj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.u||g.u<k-1)){g.u=k;Ej(g.h,h);h=void 0;break a}g.C();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},function(){var h=d;null==h?h=Infinity>g.g.getDuration()?
369
- g.g.Hc():g.g.Hb():0>h&&(h=g.g.Hb()+h);return Lj(g,Mj(g,h))});this.m=new Fd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Dj(g.h),k=g.g.Hc(),l=g.g.Hb();3>l-k&&(k=l-3);h<k&&(h=Kj(g,h),g.i.currentTime=h)}})}p=Ij.prototype;p.Te=function(){this.m.xa(.25)};p.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.C=function(){}};p.Ue=function(a){Ej(this.h,a)};
370
- p.Sd=function(){var a=Dj(this.h);return 0<this.i.readyState&&!this.i.paused?Mj(this,a):a};p.vg=function(){return this.s?this.s.s:0};p.ug=function(){return this.j.G};p.Zg=function(){this.j.Sf()};function Lj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
371
- function Kj(a,b){var c=Math.max(a.D,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.Hc(),f=a.g.Hb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.qd(c),k=a.g.qd(d);c=a.g.qd(c+d);return b>=g?Lj(a,b):b>f?f:b<e?Sh(a.i.buffered,k)?k:c:b>=h||Sh(a.i.buffered,b)?b:c}function Mj(a,b){var c=a.g.Hc();if(b<c)return c;a=a.g.Hb();return b>a?a:b}
372
- function Jj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new sj(new vj(a),b.stallThreshold,c);uj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Nj(a){this.g=a;this.l=null;this.j=0;this.s=!1}p=Nj.prototype;p.mc=function(){return this.g.length};p.release=function(){this.s||(this.g=[],this.l&&this.l.stop(),this.l=null)};p.Ni=function(){this.s=!0};function Oj(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}p.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};
373
- p.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};p.offset=function(a){if(!this.s)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};p.qe=function(a){if(!this.s&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,w(a))}};
374
- p.xd=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.qe(a);this.rb(b)};p.rb=function(a){if(!this.s){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
375
- p.Dc=function(a,b,c){c=void 0===c?!1:c;if(!this.s){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new Oh(a.startTime,b,a.I,a.cb,a.Ja,a.ka,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.H,a.h,a.status,a.aes128Key),this.g[this.g.length-1].j=a.j)}};
376
- p.Ge=function(a,b){var c=this;this.s||(this.l&&this.l.stop(),this.l=new Fd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.l.stop(),c.l=null)}),this.l.xa(a))};Nj.prototype[Symbol.iterator]=function(){return this.lc(0)};
377
- Nj.prototype.lc=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.g.length)for(var e=c.g.length-1;0<=e;--e){var f=c.g[e];if(a>=f.startTime&&a<f.endTime){for(;e&&!f.l;)e--,f=c.g[e];if(!f.l)return Sa("No independent partial segment found!"),null;b++;d=e-1;break}}return new Pj(this,b,d)};function Qj(a,b,c){a=new Oh(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Nj([a])}L("shaka.media.SegmentIndex",Nj);Nj.forSingleSegment=Qj;
378
- Nj.prototype.getIteratorForTime=Nj.prototype.lc;Nj.prototype.updateEvery=Nj.prototype.Ge;Nj.prototype.fit=Nj.prototype.Dc;Nj.prototype.evict=Nj.prototype.rb;Nj.prototype.mergeAndEvict=Nj.prototype.xd;Nj.prototype.offset=Nj.prototype.offset;Nj.prototype.get=Nj.prototype.get;Nj.prototype.find=Nj.prototype.find;Nj.prototype.markImmutable=Nj.prototype.Ni;Nj.prototype.release=Nj.prototype.release;function Pj(a,b,c){this.i=a;this.g=b;this.h=c}Pj.prototype.Jh=function(){return this.g};
379
- Pj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.g.length&&a.u&&this.h>=a.g.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.g.length?a.g[this.h]:a};Pj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.g.length?(this.h++,a.u&&this.h==a.g.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};L("shaka.media.SegmentIterator",Pj);Pj.prototype.next=Pj.prototype.next;Pj.prototype.current=Pj.prototype.current;
380
- Pj.prototype.currentPosition=Pj.prototype.Jh;function Rj(){Nj.call(this,[]);this.h=[]}pa(Rj,Nj);p=Rj.prototype;p.clone=function(){var a=new Rj;a.h=this.h.slice();return a};p.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};p.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.j+d.mc()}return null};
381
- p.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.j+d.mc()}return null};p.offset=function(){};p.qe=function(){};p.rb=function(){};p.xd=function(){};p.Dc=function(){};p.Ge=function(){};L("shaka.media.MetaSegmentIndex",Rj);Rj.prototype.updateEvery=Rj.prototype.Ge;Rj.prototype.fit=Rj.prototype.Dc;Rj.prototype.mergeAndEvict=Rj.prototype.xd;Rj.prototype.evict=Rj.prototype.rb;Rj.prototype.merge=Rj.prototype.qe;Rj.prototype.offset=Rj.prototype.offset;
382
- Rj.prototype.get=Rj.prototype.get;Rj.prototype.find=Rj.prototype.find;Rj.prototype.release=Rj.prototype.release;function Sj(a){var b=this;this.g=a;this.h=this.g.ee();this.i=new Fd(function(){b.g.Yg(.25*b.h)})}Sj.prototype.release=function(){this.i&&(this.i.stop(),this.i=null);this.g=null};Sj.prototype.set=function(a){if(this.h!=a)a:{this.h=a,this.i.stop();if(0<=this.h)try{var b=this.h;this.g.ee()!=b&&this.g.ig(b);break a}catch(c){}this.i.xa(.25);0!=this.g.ee()&&this.g.ig(0)}};Sj.prototype.od=function(){return this.g.od()};function Tj(a){var b=this;this.h=a;this.g=new Set;this.i=(new Fd(function(){Uj(b,!1)})).xa(.25)}Tj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Uj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Vj(a){bb.call(this);this.g=new Map;this.h=a}pa(Vj,bb);Vj.prototype.release=function(){this.g.clear();bb.prototype.release.call(this)};function Wj(a,b){var c=a.g.get(b);c||(c={Bd:[],Fg:null,contentType:b},a.g.set(b,c));return c}function Xj(a,b,c){var d=Wj(a,b.contentType);Yj(a,d);a={Nf:b,position:c};d=d.Bd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
383
- Vj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Bd;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Nf;break a}}d=null}if(e=d)e=c.Fg,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
384
- if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Fg=d,JSON.stringify(d),c=new N("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Yj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Bd;b.Bd=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Bd=[]};function Zj(a){bb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Fd(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new N("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).xa(2)}pa(Zj,bb);Zj.prototype.release=function(){this.g.clear();this.h.stop();bb.prototype.release.call(this)};function ak(a,b){bb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{yc:null,xc:bk,qc:function(d,e){return ck(c,"enter",d,e)}},{yc:dk,xc:bk,qc:function(d,e){return ck(c,"enter",d,e)}},{yc:ek,xc:bk,qc:function(d,e){return ck(c,"enter",d,e)}},{yc:bk,xc:dk,qc:function(d,e){return ck(c,"exit",d,e)}},{yc:bk,xc:ek,qc:function(d,e){return ck(c,"exit",d,e)}},{yc:dk,xc:ek,qc:function(d,e){return ck(c,"skip",d,e)}},{yc:ek,xc:dk,qc:function(d,e){return ck(c,"skip",d,e)}}];this.h=new Jf;this.h.o(this.i,
385
- "regionremove",function(d){c.g.delete(d.region)})}pa(ak,bb);ak.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;bb.prototype.release.call(this)};ak.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?dk:a>d.endTime?ek:bk;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.yc==e&&h.xc==f&&h.qc(d,b)}}};
386
- function ck(a,b,c,d){b=new N(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var dk=1,bk=2,ek=3;function fk(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function gk(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.lc(Math.max(b.startTime,a.j));if(d){var e=b;c&&(e=d.next().value)&&e.startTime==b.startTime&&e.endTime==b.endTime&&(e=null);for(;a.g.size<a.i&&null!=e;)b=!0,e.m&&null!=e.Ja&&(b=!1),2==e.nc()&&(b=!1),b&&!a.g.has(e)&&(b=new hk(a.l),ik(b,e,a.h),a.g.set(e,b)),a.j=e.startTime,e=d.next().value}}}
370
+ g.g.Lc():g.g.Kb():0>h&&(h=g.g.Kb()+h);return Lj(g,Mj(g,h))});this.m=new Fd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Dj(g.h),k=g.g.Lc(),l=g.g.Kb();3>l-k&&(k=l-3);h<k&&(h=Kj(g,h),g.i.currentTime=h)}})}p=Ij.prototype;p.Ye=function(){this.m.za(.25)};p.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.C=function(){}};p.Ze=function(a){Ej(this.h,a)};
371
+ p.Vd=function(){var a=Dj(this.h);return 0<this.i.readyState&&!this.i.paused?Mj(this,a):a};p.Ag=function(){return this.s?this.s.s:0};p.zg=function(){return this.j.G};p.eh=function(){this.j.Wf()};function Lj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
372
+ function Kj(a,b){var c=Math.max(a.D,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.Lc(),f=a.g.Kb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.td(c),k=a.g.td(d);c=a.g.td(c+d);return b>=g?Lj(a,b):b>f?f:b<e?Sh(a.i.buffered,k)?k:c:b>=h||Sh(a.i.buffered,b)?b:c}function Mj(a,b){var c=a.g.Lc();if(b<c)return c;a=a.g.Kb();return b>a?a:b}
373
+ function Jj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new sj(new vj(a),b.stallThreshold,c);uj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Nj(a){this.g=a;this.l=null;this.j=0;this.s=!1}p=Nj.prototype;p.pc=function(){return this.g.length};p.release=function(){this.s||(this.g=[],this.l&&this.l.stop(),this.l=null)};p.Ri=function(){this.s=!0};function Oj(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}p.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};
374
+ p.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};p.offset=function(a){if(!this.s)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};p.ue=function(a){if(!this.s&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,w(a))}};
375
+ p.Bd=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.ue(a);this.vb(b)};p.vb=function(a){if(!this.s){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
376
+ p.Gc=function(a,b,c){c=void 0===c?!1:c;if(!this.s){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new Oh(a.startTime,b,a.H,a.fb,a.Ka,a.ka,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.G,a.oa,a.status,a.aes128Key),this.g[this.g.length-1].i=a.i)}};
377
+ p.Le=function(a,b){var c=this;this.s||(this.l&&this.l.stop(),this.l=new Fd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.l.stop(),c.l=null)}),this.l.za(a))};Nj.prototype[Symbol.iterator]=function(){return this.nc(0)};
378
+ Nj.prototype.nc=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.g.length)for(var e=c.g.length-1;0<=e;--e){var f=c.g[e];if(a>=f.startTime&&a<f.endTime){for(;e&&!f.j;)e--,f=c.g[e];if(!f.j)return Sa("No independent partial segment found!"),null;b++;d=e-1;break}}return new Pj(this,b,d)};function Qj(a,b,c){a=new Oh(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Nj([a])}L("shaka.media.SegmentIndex",Nj);Nj.forSingleSegment=Qj;
379
+ Nj.prototype.getIteratorForTime=Nj.prototype.nc;Nj.prototype.updateEvery=Nj.prototype.Le;Nj.prototype.fit=Nj.prototype.Gc;Nj.prototype.evict=Nj.prototype.vb;Nj.prototype.mergeAndEvict=Nj.prototype.Bd;Nj.prototype.offset=Nj.prototype.offset;Nj.prototype.get=Nj.prototype.get;Nj.prototype.find=Nj.prototype.find;Nj.prototype.markImmutable=Nj.prototype.Ri;Nj.prototype.release=Nj.prototype.release;function Pj(a,b,c){this.i=a;this.g=b;this.h=c}Pj.prototype.Mh=function(){return this.g};
380
+ Pj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.g.length&&a.s&&this.h>=a.g.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.g.length?a.g[this.h]:a};Pj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.g.length?(this.h++,a.s&&this.h==a.g.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};L("shaka.media.SegmentIterator",Pj);Pj.prototype.next=Pj.prototype.next;Pj.prototype.current=Pj.prototype.current;
381
+ Pj.prototype.currentPosition=Pj.prototype.Mh;function Rj(){Nj.call(this,[]);this.h=[]}pa(Rj,Nj);p=Rj.prototype;p.clone=function(){var a=new Rj;a.h=this.h.slice();return a};p.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};p.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.j+d.pc()}return null};
382
+ p.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.j+d.pc()}return null};p.offset=function(){};p.ue=function(){};p.vb=function(){};p.Bd=function(){};p.Gc=function(){};p.Le=function(){};L("shaka.media.MetaSegmentIndex",Rj);Rj.prototype.updateEvery=Rj.prototype.Le;Rj.prototype.fit=Rj.prototype.Gc;Rj.prototype.mergeAndEvict=Rj.prototype.Bd;Rj.prototype.evict=Rj.prototype.vb;Rj.prototype.merge=Rj.prototype.ue;Rj.prototype.offset=Rj.prototype.offset;
383
+ Rj.prototype.get=Rj.prototype.get;Rj.prototype.find=Rj.prototype.find;Rj.prototype.release=Rj.prototype.release;function Sj(a){var b=this;this.g=a;this.h=this.g.ie();this.i=new Fd(function(){b.g.dh(.25*b.h)})}Sj.prototype.release=function(){this.set(this.Jc());this.i&&(this.i.stop(),this.i=null);this.g=null};Sj.prototype.set=function(a){if(this.h!=a)a:{this.h=a,this.i.stop();if(0<=this.h)try{var b=this.h;this.g.ie()!=b&&this.g.ng(b);break a}catch(c){}this.i.za(.25);0!=this.g.ie()&&this.g.ng(0)}};Sj.prototype.Jc=function(){return this.g.Jc()};function Tj(a){var b=this;this.h=a;this.g=new Set;this.i=(new Fd(function(){Uj(b,!1)})).za(.25)}Tj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Uj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Vj(a){bb.call(this);this.g=new Map;this.h=a}pa(Vj,bb);Vj.prototype.release=function(){this.g.clear();bb.prototype.release.call(this)};function Wj(a,b){var c=a.g.get(b);c||(c={Ed:[],Kg:null,contentType:b},a.g.set(b,c));return c}function Xj(a,b,c){var d=Wj(a,b.contentType);Yj(a,d);a={Rf:b,position:c};d=d.Ed;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
384
+ Vj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Ed;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Rf;break a}}d=null}if(e=d)e=c.Kg,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
385
+ if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Kg=d,JSON.stringify(d),c=new N("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Yj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Ed;b.Ed=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Ed=[]};function Zj(a){bb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Fd(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new N("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).za(2)}pa(Zj,bb);Zj.prototype.release=function(){this.g.clear();this.h.stop();bb.prototype.release.call(this)};function ak(a,b){bb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Bc:null,Ac:bk,tc:function(d,e){return ck(c,"enter",d,e)}},{Bc:dk,Ac:bk,tc:function(d,e){return ck(c,"enter",d,e)}},{Bc:ek,Ac:bk,tc:function(d,e){return ck(c,"enter",d,e)}},{Bc:bk,Ac:dk,tc:function(d,e){return ck(c,"exit",d,e)}},{Bc:bk,Ac:ek,tc:function(d,e){return ck(c,"exit",d,e)}},{Bc:dk,Ac:ek,tc:function(d,e){return ck(c,"skip",d,e)}},{Bc:ek,Ac:dk,tc:function(d,e){return ck(c,"skip",d,e)}}];this.h=new Jf;this.h.o(this.i,
386
+ "regionremove",function(d){c.g.delete(d.region)})}pa(ak,bb);ak.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;bb.prototype.release.call(this)};ak.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?dk:a>d.endTime?ek:bk;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Bc==e&&h.Ac==f&&h.tc(d,b)}}};
387
+ function ck(a,b,c,d){b=new N(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var dk=1,bk=2,ek=3;function fk(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function gk(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.nc(Math.max(b.startTime,a.j));if(d){var e=b;c&&(e=d.next().value)&&e.startTime==b.startTime&&e.endTime==b.endTime&&(e=null);for(;a.g.size<a.i&&null!=e;)b=!0,e.l&&null!=e.Ka&&(b=!1),2==e.qc()&&(b=!1),b&&!a.g.has(e)&&(b=new hk(a.l),ik(b,e,a.h),a.g.set(e,b)),a.j=e.startTime,e=d.next().value}}}
387
388
  function jk(a,b){if(a.h.segmentIndex&&a.g.size<a.i&&!a.g.has(b)){var c=new hk(a.l);ik(c,b,a.h);a.g.set(b,c)}}function kk(a){if(0!==a.g.size){for(var b=t(a.g.keys()),c=b.next();!c.done;c=b.next())(c=c.value)&&lk(a,c);a.j=0}}function mk(a,b){b&&b!==a.h&&(kk(a),a.h=b)}function lk(a,b){var c=a.g.get(b);a.g.delete(b);c&&c.abort()}function hk(a){this.i=a;this.g=this.h=null}
388
389
  function ik(a,b,c){var d=new Uint8Array(0);a.g=a.i(b,c,function(e){return K(function(f){if(1==f.g)return 0<d.byteLength?d=sg(d,e):d=e,a.h?D(f,a.h(d),3):f.F(0);d=new Uint8Array(0);F(f)})})}hk.prototype.abort=function(){this.g&&this.g.abort()};function nk(a,b,c,d,e){a=zf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function ok(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.C=1;this.s=this.j=null;this.H=0;this.G=!1;this.i=new Map;this.D=!1;this.I=null;this.u=!1;this.l=new Hf(function(){return pk(c)});this.J=0}p=ok.prototype;p.destroy=function(){return this.l.destroy()};function pk(a){var b,c,d,e;return K(function(f){if(1==f.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,qk(e),b.push(rk(e));return D(f,Promise.all(b),2)}a.i.clear();a.g=null;a.m=null;a.h=null;F(f)})}
389
- p.configure=function(a){this.h=a;this.I=new hf({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);for(var b=t(this.i.keys()),c=b.next();!c.done;c=b.next())if(c=this.i.get(c.value),c.Ha){var d=c.Ha,e=a.segmentPrefetchLimit;d.i=e;for(var f=Array.from(d.g.keys());f.length>e;){var g=f.pop();g&&lk(d,g)}0<a.segmentPrefetchLimit||
390
- (c.Ha=null)}else 0<a.segmentPrefetchLimit&&(c.Ha=sk(this,c.stream))};p.start=function(){var a=this;return K(function(b){if(1==b.g)return D(b,tk(a),2);If(a.l);a.D=!0;F(b)})};
391
- function uk(a,b){var c,d,e,f,g,h,k;K(function(l){switch(l.g){case 1:return c=Jb,a.H++,d=a.H,ta(l,2),D(l,gj(a.g.Y,c.Ba),4);case 4:va(l,3);break;case 2:if(e=wa(l),a.g)a.g.onError(e);case 3:f=fd(b.mimeType,b.codecs),Qi(a.g.Y,f,a.m.sequenceMode,b.external),g=a.g.Y.H,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.H==d&&(k=vk(a,b),a.i.set(c.Ba,k),wk(a,k,0)),F(l)}})}function xk(a){var b=a.i.get(Ib);b&&(qk(b),rk(b).catch(function(){}),a.i.delete(Ib));a.s=null}
392
- function yk(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.vc&&(zk(a,b,!1,0,!1),c.vc=d);else if(d=c.vc)c.vc=null,zk(a,d,!0,0,!1)}}function Ak(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.j=b;a.D&&(b.video&&zk(a,b.video,c,d,e,f),b.audio&&zk(a,b.audio,c,d,e,f))}function Bk(a,b){K(function(c){if(1==c.g)return a.s=b,a.D?b.segmentIndex?c.F(2):D(c,b.createSegmentIndex(),2):c.return();zk(a,b,!0,0,!1);F(c)})}
393
- function zk(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Ib?g&&(g.vc&&(b.trickModeVideo?(g.vc=b,b=b.trickModeVideo):g.vc=null),g.stream!=b||e)&&(g.Ha&&mk(g.Ha,b),b.type==Ib&&(e=fd(b.mimeType,b.codecs),Qi(a.g.Y,e,a.m.sequenceMode,b.external)),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.ea=null,g.wg=!!f,c&&(g.kd?g.He=!0:g.Qa?(g.Nb=!0,g.Wd=d,g.He=!0):(qk(g),Ck(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),Dk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):uk(a,b)}
394
- function Dk(a,b){var c,d;return K(function(e){if(1==e.g){if(!b.$a)return e.return();c=b.stream;d=b.$a;return c.segmentIndex?e.F(2):D(e,c.createSegmentIndex(),2)}if(b.$a!=d||b.stream!=c)return e.return();var f=a.g.ce();var g=Wi(a.g.Y,b.type),h=b.stream.segmentIndex.find(b.Pa?b.Pa.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ja?k.Ja-k.cb:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ka)&&(h+=(k.Ja?k.Ja-k.cb:null)||0),k=a.g.getBandwidthEstimate(),
395
- f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.$a.h.g>h?!0:!1):f=!1;f&&b.$a.abort();F(e)})}
396
- p.Fd=function(){if(this.g)for(var a=this.g.ce(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=null;c.ea&&(e=c.ea.current());if(!e||e.startTime>a||e.endTime<a)c.ea=null;e=this.g.Y;e.D?e=!1:d==Ib?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Vi(e,d),e=Sh(e,a));e||((null!=Wi(this.g.Y,d)||c.Qa)&&Ek(this,c),c.$a&&(c.$a.abort(),c.$a=null),d===Ib&&(d=this.g.Y,d.J&&d.J.h()),c.Fd=!0)}};
397
- function Ek(a,b){b.kd||b.Nb||(b.Qa?(b.Nb=!0,b.Wd=0):null==Ui(a.g.Y,b.type)?null==b.yb&&wk(a,b,0):(qk(b),Ck(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
398
- function tk(a){var b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){b=Jb;if(!a.j)throw new P(2,5,5006);c=new Map;d=new Set;a.j.audio&&(c.set(b.T,a.j.audio),d.add(a.j.audio));a.j.video&&(c.set(b.ia,a.j.video),d.add(a.j.video));a.s&&(c.set(b.Ba,a.s),d.add(a.s));e=a.g.Y;return D(m,e.init(c,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}If(a.l);a.updateDuration();f=t(c.keys());for(g=f.next();!g.done;g=f.next())h=g.value,k=c.get(h),a.i.has(h)||(l=vk(a,k),a.i.set(h,l),wk(a,l,
399
- 0));F(m)})}function vk(a,b){return{stream:b,type:b.type,ea:null,Ha:sk(a,b),Pa:null,$b:null,Kf:null,If:null,Hf:null,vc:null,endOfStream:!1,Qa:!1,yb:null,Nb:!1,Wd:0,He:!1,kd:!1,Fd:!0,Of:!1,Yf:!1,sd:!1,$a:null}}function sk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.h.segmentPrefetchLimit?new fk(a.h.segmentPrefetchLimit,b,function(c,d,e){return Fk(a,c,d,e)}):null}p.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.Y.bb(a):this.g.Y.bb(Math.pow(2,32))};
400
- function Gk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:If(a.l);if(b.Qa||null==b.yb||b.kd)return h.return();b.yb=null;if(!b.Nb){h.F(2);break}return D(h,Ck(a,b,b.He,b.Wd),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.F(4);break}c=b.stream;return D(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Qa||b.yb||wk(a,b,0),h.return();case 4:ta(h,6);d=Hk(a,b);null!=d&&(wk(a,b,d),b.sd=!1);va(h,7);break;case 6:return e=
401
- wa(h),D(h,Ik(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.D||!f.every(function(k){return k.endOfStream})){h.F(0);break}return D(h,a.g.Y.endOfStream(),10);case 10:If(a.l),g=a.g.Y.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.bb(g),F(h)}})}
402
- function Hk(a,b){if(Jk(b))return dj(a.g.Y,b.stream.originalId||""),null;b.type==Ib&&ej(a.g.Y);if(!a.g.Y.aa&&b.type!=Ib)return a.h.updateIntervalSeconds/2;var c=a.g.ce(),d=b.Pa?b.Pa.endTime:c,e=Xi(a.g.Y,b.type,c),f=Math.max(1,Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.C),g=a.m.presentationTimeline.getDuration()-d,h=Wi(a.g.Y,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(Ib))&&Jk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/
403
- 2;e=Kk(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;f=Infinity;g=Array.from(a.i.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,Jk(h)||h.ea&&!h.ea.current()||(f=Math.min(f,h.Pa?h.Pa.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;b.Ha&&b.ea&&(d=e.ka,!d||b.Pa&&Nh(d,b.$b)||jk(b.Ha,d),gk(b.Ha,e));Lk(a,b,c,e).catch(function(){});return null}
404
- function Kk(a,b,c,d){if(b.ea)return b.ea.current();if(b.Pa||d)return c=b.Pa?b.Pa.endTime:d,b.Of=!0,b.ea=b.stream.segmentIndex.lc(c),b.ea&&b.ea.next().value;a=a.h.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.ea=b.stream.segmentIndex.lc(d),e=b.ea&&b.ea.next().value);e||(b.ea=b.stream.segmentIndex.lc(c),e=b.ea&&b.ea.next().value);return e}
405
- function Lk(a,b,c,d){var e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:e=Jb;f=b.stream;g=b.ea;b.Qa=!0;ta(A,2);if(2==d.nc())throw new P(1,1,1011);return D(A,Mk(a,b,d),4);case 4:If(a.l);if(a.u)return A.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.s))return n=new Uint8Array(0),q=r=!1,v=function(C){var E,H,G,I;return K(function(J){switch(J.g){case 1:if(r)return J.return();q=!0;If(a.l);if(a.u)return J.return();
406
- ta(J,2);n=Nk(n,C);E=!1;H=0;(new ag).box("mdat",function(M){H=M.size+M.start;E=!0}).parse(n,!1,!0);if(!E){J.F(4);break}G=n.subarray(0,H);n=n.subarray(H);return D(J,Ok(a,b,c,f,d,G,!0),5);case 5:b.Ha&&b.ea&&gk(b.Ha,d,!0);case 4:va(J,0);break;case 2:u=I=wa(J),F(J)}})},D(A,Pk(a,b,d,v),9);l=Pk(a,b,d);return D(A,l,7);case 7:m=A.h;If(a.l);if(a.u)return A.return();If(a.l);return b.Nb?(b.Qa=!1,wk(a,b,0),A.return()):D(A,Ok(a,b,c,f,d,m),6);case 9:y=A.h;if(u)throw u;if(q){A.F(10);break}r=!0;If(a.l);return a.u?
407
- A.return():b.Nb?(b.Qa=!1,wk(a,b,0),A.return()):D(A,Ok(a,b,c,f,d,y),10);case 10:b.Ha&&b.ea&&gk(b.Ha,d,!0);case 6:If(a.l);if(a.u)return A.return();b.Pa=d;g.next();b.Qa=!1;b.Yf=!1;z=a.g.Y.Gb();x=z[b.type];Za(JSON.stringify(x));b.Nb||a.g.Sf(d.startTime,d.endTime,b.type);wk(a,b,0);va(A,0);break;case 2:B=wa(A);If(a.l,B);if(a.u)return A.return();b.Qa=!1;if(7001==B.code)b.Qa=!1,qk(b),wk(a,b,0),A.F(0);else if(b.type==e.Ba&&a.h.ignoreTextStreamFailures)a.i.delete(e.Ba),A.F(0);else if(3017==B.code)Qk(a,b,B),
408
- A.F(0);else return b.sd=!0,B.severity=2,D(A,Ik(a,b,B),0)}})}function Rk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return d=b,d.cryptoKey?h.F(2):D(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=nc(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Nk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
409
- function Qk(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.Yf})){if(0<a.h.maxDisabledTime&&a.g.Xd(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.sd=!0;a.u=!0;a.g.onError(c);return}b.Yf=!0}wk(a,b,4)}
410
- function Mk(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v;return K(function(y){if(1==y.g){d=Jb;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=nd(b.stream.codecs);k=od(b.stream.mimeType);l=c.timestampOffset;if(l==b.Kf&&f==b.If&&g==b.Hf&&h==b.Jf&&k==b.Ug)return y.F(2);if(m=b.Jf&&b.Ug&&qj(a.g.Y,b.type,b.stream))n=null,b.type===d.ia?n=a.i.get(d.T):b.type===d.T&&(n=a.i.get(d.ia)),n&&(n.$b=null,Ek(a,n),rk(n).catch(function(){}));r=function(){var z,x,B,A;return K(function(C){if(1==C.g)return z=
411
- new Map,a.j.audio&&z.set(d.T,a.j.audio),a.j.video&&z.set(d.ia,a.j.video),ta(C,2),b.If=f,b.Hf=g,b.Jf=h,b.Ug=k,b.Kf=l,x=a.m.sequenceMode||"HLS"==a.m.type,D(C,hj(a.g.Y,b.type,l,f,g,x,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,z),4);if(2!=C.g)return m&&(B=null,b.type===d.ia?B=a.i.get(d.T):b.type===d.T&&(B=a.i.get(d.ia)),B&&(B.Nb=!1,B.Qa=!1,Ek(a,B))),va(C,0);A=wa(C);b.If=null;b.Hf=null;b.Jf=null;b.Kf=null;throw A;})};return D(y,r(),2)}Nh(c.ka,b.$b)||(b.$b=c.ka,c.l&&c.ka&&(q=Pk(a,b,c.ka),u=
412
- function(){var z,x,B,A,C,E;return K(function(H){switch(H.g){case 1:return ta(H,2),D(H,q,4);case 4:return z=H.h,If(a.l),x=null,B=new Map,A=new ag,A.box("moov",fg).box("trak",fg).box("mdia",fg).W("mdhd",function(G){x=ei(G.reader,G.version).timescale}).box("hdlr",function(G){G=G.reader;G.skip(8);G=G.Kb(4);var I=String.fromCharCode(G[0]);I+=String.fromCharCode(G[1]);I+=String.fromCharCode(G[2]);I+=String.fromCharCode(G[3]);switch(I){case "soun":B.set(d.T,x);break;case "vide":B.set(d.ia,x)}x=null}).parse(z),
413
- B.has(b.type)?c.ka.timescale=B.get(b.type):null!=x&&(c.ka.timescale=x),C=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,D(H,a.g.zg(b.type,z),5);case 5:return D(H,Zi(a.g.Y,b.type,z,null,b.stream,C),6);case 6:va(H,0);break;case 2:throw E=wa(H),b.$b=null,E;}})},a.g.Pi(c.startTime,c.ka),e.push(u())));a.m.sequenceMode&&(v=b.Pa?b.Pa.j:null,c.j!=v||b.Of)&&(b.Of=!1,e.push(jj(a.g.Y,b.type,c.startTime)));return D(y,Promise.all(e),0)})}
414
- function Ok(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,r;return K(function(q){switch(q.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;m=a.h.parsePrftBox&&!a.G;if(l||m)k=new ag;l&&k.W("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var y=u.reader.Cd();var z=u.reader.Cd();var x=u.reader.O();var B=u.reader.O();var A=u.reader.O();var C=u.reader.O();var E=e.startTime+B/x}else x=u.reader.O(),E=u.reader.Qc()/
415
- x+e.timestampOffset,B=E-e.startTime,A=u.reader.O(),C=u.reader.O(),y=u.reader.Cd(),z=u.reader.Cd();u=u.reader.Kb(u.reader.getLength()-u.reader.Ea());if(v&&v.includes(y)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.Qi():(v=(new Map).set("detail",{startTime:E,endTime:E+A/x,schemeIdUri:y,value:z,timescale:x,presentationTimeDelta:B,eventDuration:A,id:C,messageData:u}),v=new N("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
416
- y||(y=ai(u),y.length&&e&&a.g.Ri([{cueTime:e.startTime,data:u,frames:y,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.W("prft",function(u){if(!a.G&&e.ka.timescale){var v=u.reader,y=u.version;v.O();u=v.O();var z=v.O();u=1E3*u+z/Math.pow(2,32)*1E3;0===y?v=v.O():(y=v.O(),v=v.O(),v=y*Math.pow(2,32)+v);u=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+u)).getTime();v=(new Map).set("detail",{wallClockTime:u,programStartDate:new Date(u-v/e.ka.timescale*1E3)});v=new N("prft",v);a.g.onEvent(v);
417
- a.G=!0}});(l||m)&&k.parse(f);return D(q,Sk(a,b,c),2);case 2:return If(a.l),n=b.Fd,b.Fd=!1,r=b.wg,b.wg=!1,D(q,a.g.zg(b.type,f),3);case 3:return D(q,Zi(a.g.Y,b.type,f,e,d,h,n,r,g),4);case 4:If(a.l),F(q)}})}function Sk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Ui(a.g.Y,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():D(h,a.g.Y.remove(b.type,e,e+g),2)}If(a.l);F(h)})}
390
+ p.configure=function(a){this.h=a;this.I=new hf({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);for(var b=t(this.i.keys()),c=b.next();!c.done;c=b.next())if(c=this.i.get(c.value),c.Ia){var d=c.Ia,e=a.segmentPrefetchLimit;d.i=e;for(var f=Array.from(d.g.keys());f.length>e;){var g=f.pop();g&&lk(d,g)}0<a.segmentPrefetchLimit||
391
+ (c.Ia=null)}else 0<a.segmentPrefetchLimit&&(c.Ia=sk(this,c.stream))};p.start=function(){var a=this;return K(function(b){if(1==b.g)return D(b,tk(a),2);If(a.l);a.D=!0;F(b)})};
392
+ function uk(a,b){var c,d,e,f,g,h,k;K(function(l){switch(l.g){case 1:return c=Jb,a.H++,d=a.H,ta(l,2),D(l,gj(a.g.Y,c.Da),4);case 4:va(l,3);break;case 2:if(e=wa(l),a.g)a.g.onError(e);case 3:f=fd(b.mimeType,b.codecs),Qi(a.g.Y,f,a.m.sequenceMode,b.external),g=a.g.Y.H,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.H==d&&(k=vk(a,b),a.i.set(c.Da,k),wk(a,k,0)),F(l)}})}function xk(a){var b=a.i.get(Ib);b&&(qk(b),rk(b).catch(function(){}),a.i.delete(Ib));a.s=null}
393
+ function yk(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.yc&&(zk(a,b,!1,0,!1),c.yc=d);else if(d=c.yc)c.yc=null,zk(a,d,!0,0,!1)}}function Ak(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.j=b;a.D&&(b.video&&zk(a,b.video,c,d,e,f),b.audio&&zk(a,b.audio,c,d,e,f))}function Bk(a,b){K(function(c){if(1==c.g)return a.s=b,a.D?b.segmentIndex?c.F(2):D(c,b.createSegmentIndex(),2):c.return();zk(a,b,!0,0,!1);F(c)})}
394
+ function zk(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Ib?g&&(g.yc&&(b.trickModeVideo?(g.yc=b,b=b.trickModeVideo):g.yc=null),g.stream!=b||e)&&(g.Ia&&mk(g.Ia,b),b.type==Ib&&(e=fd(b.mimeType,b.codecs),Qi(a.g.Y,e,a.m.sequenceMode,b.external)),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.ea=null,g.Bg=!!f,c&&(g.od?g.Me=!0:g.Ra?(g.Pb=!0,g.Zd=d,g.Me=!0):(qk(g),Ck(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),Dk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):uk(a,b)}
395
+ function Dk(a,b){var c,d;return K(function(e){if(1==e.g){if(!b.ab)return e.return();c=b.stream;d=b.ab;return c.segmentIndex?e.F(2):D(e,c.createSegmentIndex(),2)}if(b.ab!=d||b.stream!=c)return e.return();var f=a.g.ge();var g=Wi(a.g.Y,b.type),h=b.stream.segmentIndex.find(b.Qa?b.Qa.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ka?k.Ka-k.fb:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ka)&&(h+=(k.Ka?k.Ka-k.fb:null)||0),k=a.g.getBandwidthEstimate(),
396
+ f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.ab.h.g>h?!0:!1):f=!1;f&&b.ab.abort();F(e)})}
397
+ p.Id=function(){if(this.g)for(var a=this.g.ge(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=null;c.ea&&(e=c.ea.current());if(!e||e.startTime>a||e.endTime<a)c.ea=null;e=this.g.Y;e.D?e=!1:d==Ib?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Vi(e,d),e=Sh(e,a));e||((null!=Wi(this.g.Y,d)||c.Ra)&&Ek(this,c),c.ab&&(c.ab.abort(),c.ab=null),d===Ib&&(d=this.g.Y,d.J&&d.J.h()),c.Id=!0)}};
398
+ function Ek(a,b){b.od||b.Pb||(b.Ra?(b.Pb=!0,b.Zd=0):null==Ui(a.g.Y,b.type)?null==b.Bb&&wk(a,b,0):(qk(b),Ck(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
399
+ function tk(a){var b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){b=Jb;if(!a.j)throw new P(2,5,5006);c=new Map;d=new Set;a.j.audio&&(c.set(b.T,a.j.audio),d.add(a.j.audio));a.j.video&&(c.set(b.ia,a.j.video),d.add(a.j.video));a.s&&(c.set(b.Da,a.s),d.add(a.s));e=a.g.Y;return D(m,e.init(c,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}If(a.l);a.updateDuration();f=t(c.keys());for(g=f.next();!g.done;g=f.next())h=g.value,k=c.get(h),a.i.has(h)||(l=vk(a,k),a.i.set(h,l),wk(a,l,
400
+ 0));F(m)})}function vk(a,b){return{stream:b,type:b.type,ea:null,Ia:sk(a,b),Qa:null,ac:null,Of:null,Mf:null,Lf:null,yc:null,endOfStream:!1,Ra:!1,Bb:null,Pb:!1,Zd:0,Me:!1,od:!1,Id:!0,Sf:!1,ag:!1,vd:!1,ab:null}}function sk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.h.segmentPrefetchLimit?new fk(a.h.segmentPrefetchLimit,b,function(c,d,e){return Fk(a,c,d,e)}):null}p.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.Y.eb(a):this.g.Y.eb(Math.pow(2,32))};
401
+ function Gk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:If(a.l);if(b.Ra||null==b.Bb||b.od)return h.return();b.Bb=null;if(!b.Pb){h.F(2);break}return D(h,Ck(a,b,b.Me,b.Zd),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.F(4);break}c=b.stream;return D(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Ra||b.Bb||wk(a,b,0),h.return();case 4:ta(h,6);d=Hk(a,b);null!=d&&(wk(a,b,d),b.vd=!1);va(h,7);break;case 6:return e=
402
+ wa(h),D(h,Ik(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.D||!f.every(function(k){return k.endOfStream})){h.F(0);break}return D(h,a.g.Y.endOfStream(),10);case 10:If(a.l),g=a.g.Y.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.eb(g),F(h)}})}
403
+ function Hk(a,b){if(Jk(b))return dj(a.g.Y,b.stream.originalId||""),null;b.type==Ib&&ej(a.g.Y);if(!a.g.Y.aa&&b.type!=Ib)return a.h.updateIntervalSeconds/2;var c=a.g.ge(),d=b.Qa?b.Qa.endTime:c,e=Xi(a.g.Y,b.type,c),f=Math.max(1,Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.C),g=a.m.presentationTimeline.getDuration()-d,h=Wi(a.g.Y,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(Ib))&&Jk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/
404
+ 2;e=Kk(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;f=Infinity;g=Array.from(a.i.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,Jk(h)||h.ea&&!h.ea.current()||(f=Math.min(f,h.Qa?h.Qa.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;b.Ia&&b.ea&&(d=e.ka,!d||b.Qa&&Nh(d,b.ac)||jk(b.Ia,d),gk(b.Ia,e));Lk(a,b,c,e).catch(function(){});return null}
405
+ function Kk(a,b,c,d){if(b.ea)return b.ea.current();if(b.Qa||d)return c=b.Qa?b.Qa.endTime:d,b.Sf=!0,b.ea=b.stream.segmentIndex.nc(c),b.ea&&b.ea.next().value;a=a.h.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.ea=b.stream.segmentIndex.nc(d),e=b.ea&&b.ea.next().value);e||(b.ea=b.stream.segmentIndex.nc(c),e=b.ea&&b.ea.next().value);return e}
406
+ function Lk(a,b,c,d){var e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:e=Jb;f=b.stream;g=b.ea;b.Ra=!0;ta(A,2);if(2==d.qc())throw new P(1,1,1011);return D(A,Mk(a,b,d),4);case 4:If(a.l);if(a.u)return A.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.m))return n=new Uint8Array(0),q=r=!1,v=function(C){var E,H,G,I;return K(function(J){switch(J.g){case 1:if(r)return J.return();q=!0;If(a.l);if(a.u)return J.return();
407
+ ta(J,2);n=Nk(n,C);E=!1;H=0;(new ag).box("mdat",function(M){H=M.size+M.start;E=!0}).parse(n,!1,!0);if(!E){J.F(4);break}G=n.subarray(0,H);n=n.subarray(H);return D(J,Ok(a,b,c,f,d,G,!0),5);case 5:b.Ia&&b.ea&&gk(b.Ia,d,!0);case 4:va(J,0);break;case 2:u=I=wa(J),F(J)}})},D(A,Pk(a,b,d,v),9);l=Pk(a,b,d);return D(A,l,7);case 7:m=A.h;If(a.l);if(a.u)return A.return();If(a.l);return b.Pb?(b.Ra=!1,wk(a,b,0),A.return()):D(A,Ok(a,b,c,f,d,m),6);case 9:y=A.h;if(u)throw u;if(q){A.F(10);break}r=!0;If(a.l);return a.u?
408
+ A.return():b.Pb?(b.Ra=!1,wk(a,b,0),A.return()):D(A,Ok(a,b,c,f,d,y),10);case 10:b.Ia&&b.ea&&gk(b.Ia,d,!0);case 6:If(a.l);if(a.u)return A.return();b.Qa=d;g.next();b.Ra=!1;b.ag=!1;z=a.g.Y.Ib();x=z[b.type];Za(JSON.stringify(x));b.Pb||a.g.Wf(d.startTime,d.endTime,b.type);wk(a,b,0);va(A,0);break;case 2:B=wa(A);If(a.l,B);if(a.u)return A.return();b.Ra=!1;if(7001==B.code)b.Ra=!1,qk(b),wk(a,b,0),A.F(0);else if(b.type==e.Da&&a.h.ignoreTextStreamFailures)a.i.delete(e.Da),A.F(0);else if(3017==B.code)Qk(a,b,B),
409
+ A.F(0);else return b.vd=!0,B.severity=2,D(A,Ik(a,b,B),0)}})}function Rk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return d=b,d.cryptoKey?h.F(2):D(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=nc(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Nk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
410
+ function Qk(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.ag})){if(0<a.h.maxDisabledTime&&a.g.$d(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.vd=!0;a.u=!0;a.g.onError(c);return}b.ag=!0}wk(a,b,4)}
411
+ function Mk(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v;return K(function(y){if(1==y.g){d=Jb;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=nd(b.stream.codecs);k=od(b.stream.mimeType);l=c.timestampOffset;if(l==b.Of&&f==b.Mf&&g==b.Lf&&h==b.Nf&&k==b.Zg)return y.F(2);if(m=b.Nf&&b.Zg&&qj(a.g.Y,b.type,b.stream))n=null,b.type===d.ia?n=a.i.get(d.T):b.type===d.T&&(n=a.i.get(d.ia)),n&&(n.ac=null,Ek(a,n),rk(n).catch(function(){}));r=function(){var z,x,B,A;return K(function(C){if(1==C.g)return z=
412
+ new Map,a.j.audio&&z.set(d.T,a.j.audio),a.j.video&&z.set(d.ia,a.j.video),ta(C,2),b.Mf=f,b.Lf=g,b.Nf=h,b.Zg=k,b.Of=l,x=a.m.sequenceMode||"HLS"==a.m.type,D(C,hj(a.g.Y,b.type,l,f,g,x,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,z),4);if(2!=C.g)return m&&(B=null,b.type===d.ia?B=a.i.get(d.T):b.type===d.T&&(B=a.i.get(d.ia)),B&&(B.Pb=!1,B.Ra=!1,Ek(a,B))),va(C,0);A=wa(C);b.Mf=null;b.Lf=null;b.Nf=null;b.Of=null;throw A;})};return D(y,r(),2)}Nh(c.ka,b.ac)||(b.ac=c.ka,c.j&&c.ka&&(q=Pk(a,b,c.ka),u=
413
+ function(){var z,x,B,A,C,E;return K(function(H){switch(H.g){case 1:return ta(H,2),D(H,q,4);case 4:return z=H.h,If(a.l),x=null,B=new Map,A=new ag,A.box("moov",fg).box("trak",fg).box("mdia",fg).W("mdhd",function(G){x=ei(G.reader,G.version).timescale}).box("hdlr",function(G){G=G.reader;G.skip(8);G=G.Nb(4);var I=String.fromCharCode(G[0]);I+=String.fromCharCode(G[1]);I+=String.fromCharCode(G[2]);I+=String.fromCharCode(G[3]);switch(I){case "soun":B.set(d.T,x);break;case "vide":B.set(d.ia,x)}x=null}).parse(z),
414
+ B.has(b.type)?c.ka.timescale=B.get(b.type):null!=x&&(c.ka.timescale=x),C=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,D(H,a.g.Eg(b.type,z),5);case 5:return D(H,Zi(a.g.Y,b.type,z,null,b.stream,C),6);case 6:va(H,0);break;case 2:throw E=wa(H),b.ac=null,E;}})},a.g.Ti(c.startTime,c.ka),e.push(u())));a.m.sequenceMode&&(v=b.Qa?b.Qa.i:null,c.i!=v||b.Sf)&&(b.Sf=!1,e.push(jj(a.g.Y,b.type,c.startTime)));return D(y,Promise.all(e),0)})}
415
+ function Ok(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,r;return K(function(q){switch(q.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;m=a.h.parsePrftBox&&!a.G;if(l||m)k=new ag;l&&k.W("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var y=u.reader.Fd();var z=u.reader.Fd();var x=u.reader.O();var B=u.reader.O();var A=u.reader.O();var C=u.reader.O();var E=e.startTime+B/x}else x=u.reader.O(),E=u.reader.Tc()/
416
+ x+e.timestampOffset,B=E-e.startTime,A=u.reader.O(),C=u.reader.O(),y=u.reader.Fd(),z=u.reader.Fd();u=u.reader.Nb(u.reader.getLength()-u.reader.Ga());if(v&&v.includes(y)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.Ui():(v=(new Map).set("detail",{startTime:E,endTime:E+A/x,schemeIdUri:y,value:z,timescale:x,presentationTimeDelta:B,eventDuration:A,id:C,messageData:u}),v=new N("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
417
+ y||(y=ai(u),y.length&&e&&a.g.Vi([{cueTime:e.startTime,data:u,frames:y,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.W("prft",function(u){if(!a.G&&e.ka.timescale){var v=u.reader,y=u.version;v.O();u=v.O();var z=v.O();u=1E3*u+z/Math.pow(2,32)*1E3;0===y?v=v.O():(y=v.O(),v=v.O(),v=y*Math.pow(2,32)+v);u=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+u)).getTime();v=(new Map).set("detail",{wallClockTime:u,programStartDate:new Date(u-v/e.ka.timescale*1E3)});v=new N("prft",v);a.g.onEvent(v);
418
+ a.G=!0}});(l||m)&&k.parse(f);return D(q,Sk(a,b,c),2);case 2:return If(a.l),n=b.Id,b.Id=!1,r=b.Bg,b.Bg=!1,D(q,a.g.Eg(b.type,f),3);case 3:return D(q,Zi(a.g.Y,b.type,f,e,d,h,n,r,g),4);case 4:If(a.l),F(q)}})}function Sk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Ui(a.g.Y,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():D(h,a.g.Y.remove(b.type,e,e+g),2)}If(a.l);F(h)})}
418
419
  function Jk(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
419
- function Pk(a,b,c,d){var e,f,g,h,k;return K(function(l){switch(l.g){case 1:if(c instanceof Mh&&(e=c.g))return l.return(e);f=null;if(b.Ha){var m=b.Ha;if(m.g.has(c)){var n=m.g.get(c);d&&(n.h=d);m.g.delete(c);f=n.g}else f=null}f||(f=Fk(a,c,b.stream,d));g=0;b.ea&&(g=b.ea.g);b.$a=f;return D(l,f.promise,2);case 2:h=l.h;b.$a=null;k=h.data;if(!c.aes128Key){l.F(3);break}return D(l,Rk(k,c.aes128Key,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
420
- function Fk(a,b,c,d){var e=b instanceof Oh?b:void 0,f=e?1:0;b=nk(b.ba(),b.cb,b.Ja,a.h.retryParameters,d);return a.g.uc.request(Ff,b,{type:f,stream:c,segment:e})}
421
- function Ck(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.Nb=!1,b.He=!1,b.Wd=0,b.kd=!0,b.Pa=null,b.$b=null,b.ea=null,b.Ha&&kk(b.Ha),d?(e=a.g.ce(),f=a.g.Y.getDuration(),D(g,a.g.Y.remove(b.type,e+d,f),3)):D(g,gj(a.g.Y,b.type),4);if(3!=g.g)return If(a.l),c?D(g,a.g.Y.flush(b.type),3):g.F(3);If(a.l);b.kd=!1;b.endOfStream=!1;b.Qa||b.yb||wk(a,b,0);F(g)})}
422
- function wk(a,b,c){var d=b.type;if(d!=Ib||a.i.has(d))b.yb=(new Ed(function(){var e;return K(function(f){if(1==f.g)return ta(f,2),D(f,Gk(a,b),4);if(2!=f.g)return va(f,0);e=wa(f);if(a.g)a.g.onError(e);F(f)})})).R(c)}function qk(a){null!=a.yb&&(a.yb.stop(),a.yb=null)}function rk(a){return K(function(b){return a.$a?D(b,a.$a.abort(),0):b.F(0)})}
423
- function Ik(a,b,c){var d;return K(function(e){if(1==e.g)return D(e,kf(a.I),2);If(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.Xd(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.h.failureCallback(c);F(e)})}
424
- function Tk(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.J<c)return h.return(!1);a.J=b;d=Jb;if(e=a.i.get(d.T))e.$b=null,Ek(a,e),rk(e).catch(function(){});if(f=a.i.get(d.ia))f.$b=null,Ek(a,f),rk(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.T,a.j.audio);a.j.video&&g.set(d.ia,a.j.video);return D(h,pj(a.g.Y,g),2)}return h.return(!0)})};function Uk(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:var n=(new hb(a)).Va.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Vk[d])return m.return(e);f=0;g=zf([a],c);ta(m,2);g.method="HEAD";return D(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];va(m,3);break;case 2:k=wa(m);if(!k||1002!=k.code&&1001!=k.code){m.F(3);break}g.method="GET";return D(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
420
+ function Pk(a,b,c,d){var e,f,g,h,k;return K(function(l){switch(l.g){case 1:if(c instanceof Mh&&(e=c.g))return l.return(e);f=null;if(b.Ia){var m=b.Ia;if(m.g.has(c)){var n=m.g.get(c);d&&(n.h=d);m.g.delete(c);f=n.g}else f=null}f||(f=Fk(a,c,b.stream,d));g=0;b.ea&&(g=b.ea.g);b.ab=f;return D(l,f.promise,2);case 2:h=l.h;b.ab=null;k=h.data;if(!c.aes128Key){l.F(3);break}return D(l,Rk(k,c.aes128Key,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
421
+ function Fk(a,b,c,d){var e=b instanceof Oh?b:void 0,f=e?1:0;b=nk(b.ba(),b.fb,b.Ka,a.h.retryParameters,d);return a.g.xc.request(Ff,b,{type:f,stream:c,segment:e})}
422
+ function Ck(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.Pb=!1,b.Me=!1,b.Zd=0,b.od=!0,b.Qa=null,b.ac=null,b.ea=null,b.Ia&&kk(b.Ia),d?(e=a.g.ge(),f=a.g.Y.getDuration(),D(g,a.g.Y.remove(b.type,e+d,f),3)):D(g,gj(a.g.Y,b.type),4);if(3!=g.g)return If(a.l),c?D(g,a.g.Y.flush(b.type),3):g.F(3);If(a.l);b.od=!1;b.endOfStream=!1;b.Ra||b.Bb||wk(a,b,0);F(g)})}
423
+ function wk(a,b,c){var d=b.type;if(d!=Ib||a.i.has(d))b.Bb=(new Ed(function(){var e;return K(function(f){if(1==f.g)return ta(f,2),D(f,Gk(a,b),4);if(2!=f.g)return va(f,0);e=wa(f);if(a.g)a.g.onError(e);F(f)})})).S(c)}function qk(a){null!=a.Bb&&(a.Bb.stop(),a.Bb=null)}function rk(a){return K(function(b){return a.ab?D(b,a.ab.abort(),0):b.F(0)})}
424
+ function Ik(a,b,c){var d;return K(function(e){if(1==e.g)return D(e,kf(a.I),2);If(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.$d(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.h.failureCallback(c);F(e)})}
425
+ function Tk(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.J<c)return h.return(!1);a.J=b;d=Jb;if(e=a.i.get(d.T))e.ac=null,Ek(a,e),rk(e).catch(function(){});if(f=a.i.get(d.ia))f.ac=null,Ek(a,f),rk(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.T,a.j.audio);a.j.video&&g.set(d.ia,a.j.video);return D(h,pj(a.g.Y,g),2)}return h.return(!0)})};function Uk(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:var n=(new hb(a)).Wa.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Vk[d])return m.return(e);f=0;g=zf([a],c);ta(m,2);g.method="HEAD";return D(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];va(m,3);break;case 2:k=wa(m);if(!k||1002!=k.code&&1001!=k.code){m.F(3);break}g.method="GET";return D(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
425
426
  e.toLowerCase().split(";").shift():"")}})}
426
427
  var Vk={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"};function Wk(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Wk(g,a)}).join("");var c=[],d=700<=a.fontWeight,e="italic"==a.fontStyle,f=a.textDecoration.includes("underline");d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Xk(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Xk(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value;k=k.next().value;
427
428
  return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
428
429
  function Xk(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7<a.length&&(a=a.slice(0,7));switch(a){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";
429
430
  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 Yk(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,w(Yk(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=Wk(d,b);c.push(e)}return c};function Zk(a,b){this.g=null;for(var c=t(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,d.mode="disabled",d.label==b&&(this.g=d);this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}p=Zk.prototype;p.remove=function(a,b){if(!this.g)return!1;$k(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
430
- p.append=function(a){var b=Yk(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={zc:d.zc},e=b.next())d.zc=e.value,a.some(function(f){return function(g){return g.startTime==f.zc.startTime&&g.endTime==f.zc.endTime&&g.text==f.zc.payload?!0:!1}}(d))||(e=al(d.zc))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
431
+ p.append=function(a){var b=Yk(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={Cc:d.Cc},e=b.next())d.Cc=e.value,a.some(function(f){return function(g){return g.startTime==f.Cc.startTime&&g.endTime==f.Cc.endTime&&g.text==f.Cc.payload?!0:!1}}(d))||(e=al(d.Cc))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
431
432
  c.indexOf(g)});a=t(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};p.destroy=function(){this.g&&($k(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};p.isTextVisible=function(){return"showing"==this.g.mode};p.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
432
433
  function al(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
433
434
  function $k(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}L("shaka.text.SimpleTextDisplayer",Zk);Zk.prototype.setTextVisibility=Zk.prototype.setTextVisibility;Zk.prototype.isTextVisible=Zk.prototype.isTextVisible;Zk.prototype.destroy=Zk.prototype.destroy;Zk.prototype.append=Zk.prototype.append;Zk.prototype.remove=Zk.prototype.remove;/*
@@ -436,15 +437,15 @@ function $k(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t
436
437
  Copyright 2023 Google LLC
437
438
  SPDX-License-Identifier: Apache-2.0
438
439
  */
439
- function bl(){}p=bl.prototype;p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};L("shaka.text.StubTextDisplayer",bl);bl.prototype.setTextVisibility=bl.prototype.setTextVisibility;bl.prototype.isTextVisible=bl.prototype.isTextVisible;bl.prototype.destroy=bl.prototype.destroy;bl.prototype.append=bl.prototype.append;bl.prototype.remove=bl.prototype.remove;function cl(){}function T(a){return document.createElement(a)}function dl(){var a=document.createElement("button");a.setAttribute("type","button");return a}function el(a){for(;a.firstChild;)a.removeChild(a.firstChild)}L("shaka.util.Dom",cl);cl.removeAllChildren=el;function fl(a,b){var c=this;this.m=!1;this.i=[];this.D=a;this.u=b;this.j=null;this.g=T("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.u.appendChild(this.g);this.G=(new Fd(function(){gl(c)})).xa(.25);this.h=new Map;this.l=new Jf;this.l.o(document,"fullscreenchange",function(){gl(c,!0)});this.l.o(this.D,"resize",function(){var d=
440
- c.D,e=d.videoWidth;d=d.videoHeight;e&&d?c.j=e/d:c.j=null});this.s=null;"ResizeObserver"in window&&(this.s=new ResizeObserver(function(){gl(c,!0)}),this.s.observe(this.g));this.C=new Map}p=fl.prototype;p.append=function(a){var b=[].concat(w(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={Ld:c.Ld},d=a.next())c.Ld=d.value,b.some(function(e){return function(f){return Oc(f,e.Ld)}}(c))||this.i.push(c.Ld);gl(this)};
440
+ function bl(){}p=bl.prototype;p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};L("shaka.text.StubTextDisplayer",bl);bl.prototype.setTextVisibility=bl.prototype.setTextVisibility;bl.prototype.isTextVisible=bl.prototype.isTextVisible;bl.prototype.destroy=bl.prototype.destroy;bl.prototype.append=bl.prototype.append;bl.prototype.remove=bl.prototype.remove;function cl(){}function T(a){return document.createElement(a)}function dl(){var a=document.createElement("button");a.setAttribute("type","button");return a}function el(a){for(;a.firstChild;)a.removeChild(a.firstChild)}L("shaka.util.Dom",cl);cl.removeAllChildren=el;function fl(a,b){var c=this;this.m=!1;this.i=[];this.D=a;this.u=b;this.j=null;this.g=T("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.u.appendChild(this.g);this.G=(new Fd(function(){gl(c)})).za(.25);this.h=new Map;this.l=new Jf;this.l.o(document,"fullscreenchange",function(){gl(c,!0)});this.l.o(this.D,"resize",function(){var d=
441
+ c.D,e=d.videoWidth;d=d.videoHeight;e&&d?c.j=e/d:c.j=null});this.s=null;"ResizeObserver"in window&&(this.s=new ResizeObserver(function(){gl(c,!0)}),this.s.observe(this.g));this.C=new Map}p=fl.prototype;p.append=function(a){var b=[].concat(w(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={Od:c.Od},d=a.next())c.Od=d.value,b.some(function(e){return function(f){return Oc(f,e.Od)}}(c))||this.i.push(c.Od);gl(this)};
441
442
  p.destroy=function(){if(!this.g)return Promise.resolve();this.u.removeChild(this.g);this.g=null;this.m=!1;this.i=[];this.G&&this.G.stop();this.h.clear();this.l&&(this.l.release(),this.l=null);this.s&&(this.s.disconnect(),this.s=null);return Promise.resolve()};p.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});gl(this,c>this.i.length);return!0};p.isTextVisible=function(){return this.m};
442
443
  p.setTextVisibility=function(a){this.m=a};function hl(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
443
- function il(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.wh:null;l&&(g.push(l.cf),l.Dd&&g.push(l.Dd),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?hl(a,n)||(f=!0):(jl(a,k,e),l=a.h.get(k),n=l.wh,f=!0));0<k.nestedCues.length&&n&&il(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(r,q){return r.startTime!=
444
- q.startTime?r.startTime-q.startTime:r.endTime-q.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Dd?(c.appendChild(d.Dd),d.Dd.appendChild(d.cf)):c.appendChild(d.cf)}}function gl(a,b){if(a.g){var c=a.D.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.C.values());for(var d=b.next();!d.done;d=b.next())el(d.value);el(a.g);a.h.clear();a.C.clear()}if(a.m){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));il(a,a.i,a.g,c,[])}}}
444
+ function il(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Ah:null;l&&(g.push(l.hf),l.Gd&&g.push(l.Gd),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?hl(a,n)||(f=!0):(jl(a,k,e),l=a.h.get(k),n=l.Ah,f=!0));0<k.nestedCues.length&&n&&il(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(r,q){return r.startTime!=
445
+ q.startTime?r.startTime-q.startTime:r.endTime-q.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Gd?(c.appendChild(d.Gd),d.Gd.appendChild(d.hf)):c.appendChild(d.hf)}}function gl(a,b){if(a.g){var c=a.D.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.C.values());for(var d=b.next();!d.done;d=b.next())el(d.value);el(a.g);a.h.clear();a.C.clear()}if(a.m){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));il(a,a.i,a.g,c,[])}}}
445
446
  function jl(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");b.rubyTag&&(e=b.rubyTag);d=!d&&0<b.nestedCues.length;var f=T(e);"br"!=e&&kl(a,f,b,c,d);c=null;if(b.region&&b.region.id){c=b.region;e=a.j===4/3?2.5:1.9;var g=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Vc?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Vc?"%":"px");if(a.C.has(g))c=a.C.get(g);else{var h=T("span"),k=c.heightUnits==Vc?"%":"px",l=c.widthUnits==Vc?"%":"px",m=c.viewportAnchorUnits==
446
447
  Vc?"%":"px";h.id="shaka-text-region---"+g;h.classList.add("shaka-text-region");h.style.position="absolute";2===c.heightUnits&&2===c.widthUnits?(h.style.height=5.33*c.height+"%",h.style.width=c.width*e+"%"):(h.style.height=c.height+k,h.style.width=c.width+l);2===c.viewportAnchorUnits?(k=c.viewportAnchorY/75*100,l=c.viewportAnchorX/(a.j===4/3?160:210)*100,k-=c.regionAnchorY*c.height*5.33/100,l-=c.regionAnchorX*c.width*e/100,h.style.top=k+"%",h.style.left=l+"%"):(h.style.top=c.viewportAnchorY-c.regionAnchorY*
447
- c.height/100+m,h.style.left=c.viewportAnchorX-c.regionAnchorX*c.width/100+m);h.style.display="flex";h.style.flexDirection="column";h.style.alignItems="center";h.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.C.set(g,h);c=h}}e=f;d&&(e=T("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,{cf:f,wh:e,Dd:c})}
448
+ c.height/100+m,h.style.left=c.viewportAnchorX-c.regionAnchorX*c.width/100+m);h.style.display="flex";h.style.flexDirection="column";h.style.alignItems="center";h.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.C.set(g,h);c=h}}e=f;d&&(e=T("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,{hf:f,Ah:e,Gd:c})}
448
449
  function ll(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Cc?c:"left"===a||"start"===a&&b===Fc||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Fc?"line-right":"center"}
449
450
  function kl(a,b,c,d,e){var f=b.style,g=0==c.nestedCues.length,h=1<d.length;f.whiteSpace="pre-wrap";var k=c.payload.replace(/\s+$/g,function(m){return"\u00a0".repeat(m.length)});f.webkitTextStrokeColor=c.textStrokeColor;f.webkitTextStrokeWidth=c.textStrokeWidth;f.color=c.color;f.direction=c.direction;f.opacity=c.opacity;f.paddingLeft=ml(c.linePadding,c,a.u);f.paddingRight=ml(c.linePadding,c,a.u);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage=
450
451
  "url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=T("span"),b.appendChild(l);c.border&&(l.style.border=c.border);!e&&((b=nl(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"),b=nl(d,function(m){return m.fontFamily}))&&(l.style.fontFamily=b);k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?
@@ -453,18 +454,18 @@ Gc?(f.width="100%",c.lineAlign==Ic?f.top=d+"%":"end"==c.lineAlign&&(f.bottom=100
453
454
  f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==Gc?f.width=c.size+"%":f.height=c.size+"%")}
454
455
  function ml(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),unit:d[2]}:null;if(!d)return a;var e=d.value;switch(d.unit){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}function nl(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}L("shaka.text.UITextDisplayer",fl);fl.prototype.setTextVisibility=fl.prototype.setTextVisibility;
455
456
  fl.prototype.isTextVisible=fl.prototype.isTextVisible;fl.prototype.remove=fl.prototype.remove;fl.prototype.destroy=fl.prototype.destroy;fl.prototype.append=fl.prototype.append;function ol(a,b){function c(f){for(var g=f,h=t(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.start<f&&(g+=k.end-k.start);f=Math.floor(g/3600);h=Math.floor(g/60%60);k=Math.floor(g%60);g=Math.floor(1E3*g%1E3);return(10>f?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=Yk(a);a="WEBVTT\n\n";d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left");
456
- break;case "right":g.push("align:right");break;case Dc:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}L("shaka.text.WebVttGenerator",function(){});function pl(a,b){this.h=a;this.g=b;this.j="";this.s=void 0;this.i=!1;this.m=!0;this.l=!1}pl.prototype.configure=function(a){this.g=a};
457
- function ql(a,b,c){try{if(!a.g.enabled)return b;var d=rl(a);a:{switch(c.toLowerCase()){case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":var e=sl;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":e=tl;break a}e=void 0}d.ot=e;d.su=!0;var f=ul(d);return wl(b,f)}catch(g){return Ua("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}
458
- function rl(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.s,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}function xl(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,rl(a));c.pr=a.h.Ub();var e=c.ot===yl||c.ot===sl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=zl(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=ul(c);f&&(b.uris=b.uris.map(function(g){return wl(g,f)}))}}}
459
- function Al(a){if(0===a.type)return Bl;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?sl:yl;if("audio"==b)return Cl;if("text"==b)return"application/mp4"===a.mimeType?Dl:El}}function Fl(a,b){b=a.h.Gb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
460
- function Gl(a,b){var c=a.h.hb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case yl:return a.videoBandwidth||NaN;case Cl:return a.audioBandwidth||NaN;default:return a.bandwidth}}
457
+ break;case "right":g.push("align:right");break;case Ec:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}L("shaka.text.WebVttGenerator",function(){});function pl(a,b){this.h=a;this.g=b;this.j="";this.s=void 0;this.i=!1;this.m=!0;this.l=!1}pl.prototype.configure=function(a){this.g=a};
458
+ function ql(a,b,c){try{if(!a.g.enabled)return b;var d=rl(a);a:{switch(c.toLowerCase()){case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":var e=sl;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":e=tl;break a}e=void 0}d.ot=e;d.su=!0;var f=ul(d);return vl(b,f)}catch(g){return Ua("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}
459
+ function rl(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.s,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}function xl(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,rl(a));c.pr=a.h.Jb();var e=c.ot===yl||c.ot===sl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=zl(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=ul(c);f&&(b.uris=b.uris.map(function(g){return vl(g,f)}))}}}
460
+ function Al(a){if(0===a.type)return Bl;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?sl:yl;if("audio"==b)return Cl;if("text"==b)return"application/mp4"===a.mimeType?Dl:El}}function Fl(a,b){b=a.h.Ib()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
461
+ function Gl(a,b){var c=a.h.jb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case yl:return a.videoBandwidth||NaN;case Cl:return a.audioBandwidth||NaN;default:return a.bandwidth}}
461
462
  function ul(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
462
463
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function zl(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={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};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=ul(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
463
- function wl(a,b){if(!b||a.includes("offline:"))return a;a=new hb(a);a.g.set("CMCD",b);return a.toString()}var tl="m",Cl="a",yl="v",sl="av",Bl="i",El="c",Dl="tt";L("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",yh:"s",OTHER:"o"});function Hl(a){this.h=a;this.g=null}p=Hl.prototype;p.configure=function(a){this.h=a};p.Ng=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(Il)?1E3*this.g.get(Il):null};p.Mg=function(){return this.h.enabled&&this.g&&this.g.has(Jl)?1E3*this.g.get(Jl):null};p.ki=function(){return this.h.enabled&&this.g&&this.g.has(Kl)?this.g.get(Kl):null};p.li=function(){return this.h.enabled&&this.g&&this.g.has(Ll)?this.g.get(Ll):null};
464
- p.getBandwidthEstimate=function(a){var b=this.Mg();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function Ml(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}L("shaka.util.CmsdManager",Hl);Hl.prototype.getBandwidthEstimate=Hl.prototype.getBandwidthEstimate;Hl.prototype.getRoundTripTime=Hl.prototype.li;Hl.prototype.getResponseDelay=Hl.prototype.ki;Hl.prototype.getEstimatedThroughput=Hl.prototype.Mg;
465
- Hl.prototype.getMaxBitrate=Hl.prototype.Ng;var Jl="etp",Il="mb",Kl="rd",Ll="rtt";function Nl(){}
464
+ function vl(a,b){if(!b||a.includes("offline:"))return a;a=new hb(a);a.g.set("CMCD",b);return a.toString()}var tl="m",Cl="a",yl="v",sl="av",Bl="i",El="c",Dl="tt";L("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Ch:"s",OTHER:"o"});function Hl(a){this.h=a;this.g=null}p=Hl.prototype;p.configure=function(a){this.h=a};p.Sg=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(Il)?1E3*this.g.get(Il):null};p.Rg=function(){return this.h.enabled&&this.g&&this.g.has(Jl)?1E3*this.g.get(Jl):null};p.ni=function(){return this.h.enabled&&this.g&&this.g.has(Kl)?this.g.get(Kl):null};p.oi=function(){return this.h.enabled&&this.g&&this.g.has(Ll)?this.g.get(Ll):null};
465
+ p.getBandwidthEstimate=function(a){var b=this.Rg();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function Ml(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}L("shaka.util.CmsdManager",Hl);Hl.prototype.getBandwidthEstimate=Hl.prototype.getBandwidthEstimate;Hl.prototype.getRoundTripTime=Hl.prototype.oi;Hl.prototype.getResponseDelay=Hl.prototype.ni;Hl.prototype.getEstimatedThroughput=Hl.prototype.Rg;
466
+ Hl.prototype.getMaxBitrate=Hl.prototype.Sg;var Jl="etp",Il="mb",Kl="rd",Ll="rtt";function Nl(){}
466
467
  function Ol(a,b,c,d,e){var f=e in d,g=!0,h;for(h in b){var k=e+"."+h,l=f?d[e]:c[h];f||h in c?void 0===b[h]?void 0===l||f?delete a[h]:a[h]=Cd(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=Cd(l)),k=Ol(a[h],b[h],l,d,k),g=g&&k):typeof b[h]!=typeof l||null==b[h]||"function"!=typeof b[h]&&b[h].constructor!=l.constructor?(Sa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ta("Unexpected number of arguments for "+k),a[h]=b[h]):(Sa("Invalid config, unrecognized key "+
467
- k),g=!1)}return g}function Pl(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function Ql(a,b){return a&&b}L("shaka.util.ConfigUtils",Nl);Nl.convertToConfigObject=Pl;Nl.mergeConfigObjects=Ol;function Rl(){this.g=null;this.h=[]}function Sl(a,b){return K(function(c){if(1==c.g)return a.g?D(c,new Promise(function(d){return a.h.push(d)}),2):c.F(2);a.g=b;F(c)})}Rl.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Tl(){}function Ul(a){a=Vf(a);return(new hb(a)).Fb}function Vl(a,b,c){function d(h){rc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(nc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new P(2,6,6015);var e;"string"==typeof b?e=Xf(b,!0):e=b;a=Vf(a);a=Xf(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Wl(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Vf(a).split("skd://").pop();return Vl(a,c,b)}
468
+ k),g=!1)}return g}function Pl(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function Ql(a,b){return a&&b}L("shaka.util.ConfigUtils",Nl);Nl.convertToConfigObject=Pl;Nl.mergeConfigObjects=Ol;function Rl(){this.g=null;this.h=[]}function Sl(a,b){return K(function(c){if(1==c.g)return a.g?D(c,new Promise(function(d){return a.h.push(d)}),2):c.F(2);a.g=b;F(c)})}Rl.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Tl(){}function Ul(a){a=Vf(a);return(new hb(a)).Hb}function Vl(a,b,c){function d(h){rc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(nc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new P(2,6,6015);var e;"string"==typeof b?e=Xf(b,!0):e=b;a=Vf(a);a=Xf(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Wl(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Vf(a).split("skd://").pop();return Vl(a,c,b)}
468
469
  function Xl(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")}L("shaka.util.FairPlayUtils",Tl);Tl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=Sf(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=oc(pg(c)))}};Tl.expressplayFairPlayRequest=function(a,b){Xl(a,b)};
469
470
  Tl.conaxFairPlayRequest=function(a,b){Xl(a,b)};Tl.ezdrmFairPlayRequest=function(a,b){Xl(a,b)};Tl.verimatrixFairPlayRequest=function(a,b){2===a&&(a=nc(b.body),a=og(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=Wf("spc="+a))};Tl.expressplayInitDataTransform=function(a,b,c){return Wl(a,b,c)};
470
471
  Tl.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Vf(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=qc(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Vl(a,d,b)};Tl.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Vf(a).split(";").pop();return Vl(a,c,b)};Tl.verimatrixInitDataTransform=function(a,b,c){return Wl(a,b,c)};Tl.initDataTransform=Vl;
@@ -482,141 +483,143 @@ preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restric
482
483
  logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:!1}};f.trackSelectionCallback=function(h){return K(function(k){return k.return($l(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return g}
483
484
  function am(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Ol(a,b,c||Zl(),d,"")}
484
485
  function $l(a,b,c){var d=c;"AUTO"==d&&(d=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=Vb(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return Nb(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height-
485
- h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Ib&&"image"!=c.type||b.push(c);return b}L("shaka.util.PlayerConfiguration",Yl);Yl.mergeConfigObjects=am;Yl.createDefault=Zl;function bm(){this.g=null;this.h=[]}function cm(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function dm(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function em(){this.i=this.h=null;this.g=[]}function fm(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function gm(){this.C=this.D=this.I=this.G=this.u=this.j=this.H=this.m=this.i=this.M=this.N=this.J=this.K=this.L=this.l=this.s=NaN;this.g=new bm;this.h=new em};function V(a,b){bb.call(this);var c=this;this.l=hm;this.Jc=this.g=null;this.$=!1;this.me=new Jf;this.Cb=new Jf;this.m=new Jf;this.G=this.I=this.s=this.J=null;this.se=0;this.V=new Rl;this.ha=this.aa=this.i=this.we=this.H=this.j=this.ra=this.L=this.uh=this.Z=this.U=this.sa=this.M=this.K=this.Ua=null;this.Ta=!1;this.Wf=this.u=null;this.qg=1E9;this.ic=[];this.N=NaN;this.h=im(this);this.$f={width:Infinity,height:Infinity};this.C=null;this.za=new Ue(this.h.preferredAudioLanguage,this.h.preferredVariantRole,
486
- this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferSpatialAudio,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.preferredVideoLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.Na=this.h.preferredTextLanguage;this.Qb=this.h.preferredTextRole;this.Db=this.h.preferForcedSubs;this.zb=[];b&&b(this);this.U=jm(this);this.Z=new Hl(this.h.cmsd);this.J=km(this);this.J.gg(this.h.streaming.forceHTTPS);this.D=null;lm&&(this.D=lm());
487
- this.me.o(window,"online",function(){mm(c);c.Zf()});this.ie=new Fd(function(){return nm(c)});a&&(Le("Player","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Bc(a,!0))}pa(V,bb);function om(a){null!=a.L&&(Di(a.L),a.L.release(),a.L=null)}
488
- function pm(a,b){if(b.lcevc.enabled){var c=a.hb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(Jd()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Ta("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));om(a);null==a.L&&(a.L=new Ci(a.g,a.uh,b.lcevc),a.I&&(a.I.N=a.L))}else om(a)}function qm(a,b){return new N(a,b)}p=V.prototype;
489
- p.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==rm)return c.return();om(a);b=a.detach();a.l=rm;return D(c,b,2);case 2:a.me&&(a.me.release(),a.me=null);a.Cb&&(a.Cb.release(),a.Cb=null);a.m&&(a.m.release(),a.m=null);a.Wf=null;a.h=null;a.C=null;a.Jc=null;a.U=null;a.Z=null;if(!a.J){c.F(3);break}return D(c,a.J.destroy(),4);case 4:a.J=null;case 3:a.u&&(a.u.release(),a.u=null),bb.prototype.release.call(a),F(c)}})};
486
+ h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Ib&&"image"!=c.type||b.push(c);return b}L("shaka.util.PlayerConfiguration",Yl);Yl.mergeConfigObjects=am;Yl.createDefault=Zl;function bm(){this.g=null;this.h=[]}function cm(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function dm(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function em(){this.i=this.h=null;this.g=[]}function fm(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function gm(){this.C=this.D=this.I=this.G=this.u=this.j=this.H=this.m=this.i=this.M=this.N=this.J=this.K=this.L=this.l=this.s=NaN;this.g=new bm;this.h=new em};function V(a,b){bb.call(this);var c=this;this.l=hm;this.le=this.g=null;this.$=!1;this.we=new Jf;this.Cb=new Jf;this.m=new Jf;this.va=new Jf;this.G=this.I=this.s=this.J=null;this.ze=0;this.V=new Rl;this.ha=this.aa=this.i=this.Ce=this.H=this.j=this.sa=this.L=this.yh=this.Z=this.U=this.ua=this.M=this.K=this.ub=null;this.Va=!1;this.$f=this.u=null;this.yg=1E9;this.rc=[];this.N=NaN;this.h=im(this);this.vg={width:Infinity,height:Infinity};this.C=null;this.Oa=new Ue(this.h.preferredAudioLanguage,this.h.preferredVariantRole,
487
+ this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferSpatialAudio,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.preferredVideoLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.Ua=this.h.preferredTextLanguage;this.kc=this.h.preferredTextRole;this.Sb=this.h.preferForcedSubs;this.Fb=[];b&&b(this);this.U=jm(this);this.Z=new Hl(this.h.cmsd);this.J=km(this);this.J.kg(this.h.streaming.forceHTTPS);this.D=null;lm&&(this.D=lm());
488
+ this.we.o(window,"online",function(){mm(c);c.cg()});this.oe=new Fd(function(){return nm(c)});a&&(Le("Player","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Ec(a,!0))}pa(V,bb);function om(a){null!=a.L&&(Di(a.L),a.L.release(),a.L=null)}
489
+ function pm(a,b){if(b.lcevc.enabled){var c=a.jb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(Jd()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Ta("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));om(a);null==a.L&&(a.L=new Ci(a.g,a.yh,b.lcevc),a.I&&(a.I.N=a.L))}else om(a)}function qm(a,b){return new N(a,b)}p=V.prototype;
490
+ p.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==rm)return c.return();om(a);b=a.detach();a.l=rm;return D(c,b,2);case 2:a.we&&(a.we.release(),a.we=null);a.Cb&&(a.Cb.release(),a.Cb=null);a.m&&(a.m.release(),a.m=null);a.va&&(a.va.release(),a.va=null);a.$f=null;a.h=null;a.C=null;a.le=null;a.U=null;a.Z=null;if(!a.J){c.F(3);break}return D(c,a.J.destroy(),4);case 4:a.J=null;case 3:a.u&&(a.u.release(),a.u=null),bb.prototype.release.call(a),F(c)}})};
490
491
  function sm(){window.Promise||Ta("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Ld("Trident/"))return!1;var a=Sd();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Gd()?!0:Hd("application/x-mpegurl")}function tm(a,b){a.dispatchEvent(qm("onstatechange",(new Map).set("state",b)))}
491
- p.Bc=function(a,b){b=void 0===b?!0:b;var c=this,d,e;return K(function(f){switch(f.g){case 1:if(c.l==rm)throw new P(2,7,7E3);if(!c.g||c.g==a){f.F(2);break}return D(f,c.detach(),2);case 2:return D(f,um(c,"attach"),4);case 4:if(f.h)return f.return();ta(f,5,6);tm(c,"attach");d=function(){var g=vm(c);g&&wm(c,g)};c.Cb.o(a,"error",d);c.g=a;if(!b||!Gd()||c.I){f.F(6);break}return D(f,xm(c),6);case 6:xa(f);c.V.release();ya(f,0);break;case 5:return e=wa(f),D(f,c.detach(),10);case 10:throw e;}})};
492
- p.xg=function(a){this.uh=a};p.detach=function(a){a=void 0===a?!1:a;var b=this;return K(function(c){if(1==c.g){if(b.l==rm)throw new P(2,7,7E3);return D(c,b.Sc(!1,a),2)}if(3!=c.g)return D(c,um(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.Cb.Lb(),b.g=null),tm(b,"detach"),b.D&&!a&&b.D.release()}finally{b.V.release()}F(c)})};function um(a,b){var c;return K(function(d){return 1==d.g?(c=++a.se,D(d,Sl(a.V,b),2)):c!=a.se?(a.V.release(),d.return(!0)):d.return(!1)})}
493
- p.Sc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:return c.l!=rm&&(c.l=hm),D(r,um(c,"unload"),2);case 2:if(r.h)return r.return();ua(r,3);c.Ta=!1;tm(c,"unload");a&&!Gd()&&(a=!1);om(c);d=c.zb.map(function(q){return q()});c.zb=[];return D(r,Promise.all(d),5);case 5:c.dispatchEvent(qm("unloading"));c.sa&&(c.sa.release(),c.sa=null);c.g&&c.m.Lb();c.ie.stop();c.Ua&&(c.Ua.release(),c.Ua=null);if(!c.H){r.F(6);break}return D(r,c.H.stop(),
494
- 7);case 7:c.H=null,c.we=null;case 6:if(!c.u){r.F(8);break}return D(r,c.u.stop(),8);case 8:if(!c.j){r.F(10);break}return D(r,c.j.destroy(),11);case 11:c.j=null;case 10:c.K&&(c.K.release(),c.K=null);c.G&&(c.G.release(),c.G=null);if(!c.I){r.F(12);break}return D(r,c.I.destroy(),13);case 13:c.I=null;case 12:if(c.D&&!b)c.D.onAssetUnload();c.Z&&(c.Z.g=null);c.g&&el(c.g);if(!c.g||!c.g.src){r.F(14);break}return D(r,new Promise(function(q){return(new Fd(q)).R(.1)}),15);case 15:c.g.removeAttribute("src"),c.g.load();
495
- case 14:if(!c.s){r.F(16);break}return D(r,c.s.destroy(),17);case 17:c.s=null;case 16:c.aa=null;c.M=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.C=new gm;c.Xf=null;c.ic=[];c.N=NaN;ym(c);case 3:xa(r);c.V.release();ya(r,4);break;case 4:if(a&&Gd()&&
496
- !c.I)return D(r,xm(c),0);r.F(0)}})};p.oj=function(a){this.ha=a};
497
- p.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:if(d.l==rm)throw new P(2,7,7E3);return D(m,Sl(d.V,"load"),2);case 2:d.V.release();if(!d.g)throw new P(2,7,7002);if(!d.aa){m.F(3);break}return D(m,d.Sc(!1),3);case 3:e=++d.se;f=function(){if(d.se!=e)throw new P(2,7,7E3);};g=function(n,r){return K(function(q){switch(q.g){case 1:return ua(q,2),D(q,Sl(d.V,r),4);case 4:return f(),D(q,n(),5);case 5:f();case 2:xa(q),d.V.release(),ya(q,0)}})};ta(m,5);
498
- d.ha=b;d.Ta=!1;d.dispatchEvent(qm("loading"));h=Date.now()/1E3;d.C=new gm;d.aa=a;if(c){m.F(7);break}return D(m,g(function(){return K(function(n){if(1==n.g)return D(n,zm(d),2);c=n.h;F(n)})},"guessMimeType_"),7);case 7:if(k=Am(d,c))return D(m,g(function(){return K(function(n){return D(n,Bm(d,c),0)})},"initializeSrcEqualsDrmInner_"),16);if(d.I){m.F(11);break}return D(m,g(function(){return K(function(n){return D(n,xm(d),0)})},"initializeMediaSourceEngineInner_"),11);case 11:return D(m,g(function(){return K(function(n){return D(n,
499
- Cm(d,c),0)})},"parseManifestInner_"),13);case 13:return D(m,g(function(){return K(function(n){return D(n,Dm(d),0)})},"initializeDrmInner_"),14);case 14:return D(m,g(function(){return K(function(n){return D(n,Em(d,h),0)})},"loadInner_"),10);case 16:return D(m,g(function(){return K(function(n){return D(n,Fm(d,h,c),0)})},"srcEqualsInner_"),10);case 10:d.dispatchEvent(qm("loaded"));va(m,0);break;case 5:l=wa(m);if(7E3==l.code){m.F(18);break}return D(m,d.Sc(!1),18);case 18:throw l;}})};
492
+ p.Ec=function(a,b){b=void 0===b?!0:b;var c=this,d,e;return K(function(f){switch(f.g){case 1:if(c.l==rm)throw new P(2,7,7E3);if(!c.g||c.g==a){f.F(2);break}return D(f,c.detach(),2);case 2:return D(f,um(c,"attach"),4);case 4:if(f.h)return f.return();ta(f,5,6);tm(c,"attach");d=function(){var g=vm(c);g&&wm(c,g)};c.Cb.o(a,"error",d);c.g=a;if(!b||!Gd()||c.I){f.F(6);break}return D(f,xm(c),6);case 6:xa(f);c.V.release();ya(f,0);break;case 5:return e=wa(f),D(f,c.detach(),10);case 10:throw e;}})};
493
+ p.Cg=function(a){this.yh=a};p.detach=function(a){a=void 0===a?!1:a;var b=this;return K(function(c){if(1==c.g){if(b.l==rm)throw new P(2,7,7E3);return D(c,b.Vc(!1,a),2)}if(3!=c.g)return D(c,um(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.Cb.bb(),b.g=null),tm(b,"detach"),b.D&&!a&&b.D.release()}finally{b.V.release()}F(c)})};function um(a,b){var c;return K(function(d){return 1==d.g?(c=++a.ze,D(d,Sl(a.V,b),2)):c!=a.ze?(a.V.release(),d.return(!0)):d.return(!1)})}
494
+ p.Vc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:return c.l!=rm&&(c.l=hm),D(r,um(c,"unload"),2);case 2:if(r.h)return r.return();ua(r,3);c.Va=!1;tm(c,"unload");a&&!Gd()&&(a=!1);om(c);d=c.Fb.map(function(q){return q()});c.Fb=[];return D(r,Promise.all(d),5);case 5:c.dispatchEvent(qm("unloading"));c.ua&&(c.ua.release(),c.ua=null);c.g&&(c.m.bb(),c.va.bb());c.oe.stop();c.ub&&(c.ub.release(),c.ub=null);if(!c.H){r.F(6);break}return D(r,
495
+ c.H.stop(),7);case 7:c.H=null,c.Ce=null;case 6:if(!c.u){r.F(8);break}return D(r,c.u.stop(),8);case 8:if(!c.j){r.F(10);break}return D(r,c.j.destroy(),11);case 11:c.j=null;case 10:c.K&&(c.K.release(),c.K=null);c.G&&(c.G.release(),c.G=null);if(!c.I){r.F(12);break}return D(r,c.I.destroy(),13);case 13:c.I=null;case 12:if(c.D&&!b)c.D.onAssetUnload();c.Z&&(c.Z.g=null);c.g&&el(c.g);if(!c.g||!c.g.src){r.F(14);break}return D(r,new Promise(function(q){return(new Fd(q)).S(.1)}),15);case 15:c.g.removeAttribute("src"),
496
+ c.g.load();case 14:if(!c.s){r.F(16);break}return D(r,c.s.destroy(),17);case 17:c.s=null;case 16:c.aa=null;c.M=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.C=new gm;c.dg=null;c.rc=[];c.N=NaN;ym(c);case 3:xa(r);c.V.release();ya(r,4);break;case 4:if(a&&
497
+ Gd()&&!c.I)return D(r,xm(c),0);r.F(0)}})};p.sj=function(a){this.ha=a};
498
+ p.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:if(d.l==rm)throw new P(2,7,7E3);return D(m,Sl(d.V,"load"),2);case 2:d.V.release();if(!d.g)throw new P(2,7,7002);if(!d.aa){m.F(3);break}return D(m,d.Vc(!1),3);case 3:e=++d.ze;f=function(){if(d.ze!=e)throw new P(2,7,7E3);};g=function(n,r){return K(function(q){switch(q.g){case 1:return ua(q,2),D(q,Sl(d.V,r),4);case 4:return f(),D(q,n(),5);case 5:f();case 2:xa(q),d.V.release(),ya(q,0)}})};ta(m,5);
499
+ d.ha=b;d.Va=!1;d.dispatchEvent(qm("loading"));h=Date.now()/1E3;d.C=new gm;d.aa=a;if(c){m.F(7);break}return D(m,g(function(){return K(function(n){if(1==n.g)return D(n,zm(d),2);c=n.h;F(n)})},"guessMimeType_"),7);case 7:if(k=Am(d,c))return D(m,g(function(){return K(function(n){return D(n,Bm(d,c),0)})},"initializeSrcEqualsDrmInner_"),16);if(d.I){m.F(11);break}return D(m,g(function(){return K(function(n){return D(n,xm(d),0)})},"initializeMediaSourceEngineInner_"),11);case 11:return D(m,g(function(){return K(function(n){return D(n,
500
+ Cm(d,c),0)})},"parseManifestInner_"),13);case 13:return D(m,g(function(){return K(function(n){return D(n,Dm(d),0)})},"initializeDrmInner_"),14);case 14:return D(m,g(function(){return K(function(n){return D(n,Em(d,h),0)})},"loadInner_"),10);case 16:return D(m,g(function(){return K(function(n){return D(n,Fm(d,h,c),0)})},"srcEqualsInner_"),10);case 10:d.dispatchEvent(qm("loaded"));va(m,0);break;case 5:l=wa(m);if(7E3==l.code){m.F(18);break}return D(m,d.Vc(!1),18);case 18:throw l;}})};
500
501
  function zm(a){var b,c;return K(function(d){if(1==d.g)return b=a.h.manifest.retryParameters,D(d,Uk(a.aa,a.J,b),2);c=d.h;"application/x-mpegurl"==c&&Qd()&&(c="application/vnd.apple.mpegurl");return d.return(c)})}function Am(a,b){if(!Gd())return!0;if(b){if(""==(a.g||Id()).canPlayType(b))return!1;if(!(Gd()&&b in Hh))return!0;if("application/x-mpegurl"===b||"application/vnd.apple.mpegurl"===b){if(a.h.streaming.preferNativeHls)return!0;if(Qd())return a.h.streaming.useNativeHlsOnSafari}}return!1}
501
- function xm(a){var b,c,d,e,f;return K(function(g){if(1==g.g)return tm(a,"media-source"),b=a.h.textDisplayFactory,c=b(),a.Xf=b,d=Gm(a.g,c,function(h,k,l){Hm(a,h,k,l)},a.L),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.Z=f,D(g,d.L,2);a.I=d;F(g)})}
502
- function Cm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.J,tm(a,"manifest-parser"),a.we=Gh(a.aa,b||null),a.H=a.we(),d=Cd(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.H.configure(d),a.sa=new Zj(function(){return a.Ga()}),a.sa.addEventListener("regionadd",function(n){n=n.region;Im(a,"timelineregionadded",n);if(a.D)a.D.onDashTimedMetadata(n)}),a.ra=null,a.h.streaming.observeQualityChanges&&(a.ra=new Vj(function(){return a.Gb()}),a.ra.addEventListener("qualitychange",
502
+ function xm(a){var b,c,d,e,f;return K(function(g){if(1==g.g)return tm(a,"media-source"),b=a.h.textDisplayFactory,c=b(),a.dg=b,d=Gm(a.g,c,function(h,k,l){Hm(a,h,k,l)},a.L),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.Z=f,D(g,d.L,2);a.I=d;F(g)})}
503
+ function Cm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.J,tm(a,"manifest-parser"),a.Ce=Gh(a.aa,b||null),a.H=a.Ce(),d=Cd(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.H.configure(d),a.ua=new Zj(function(){return a.Ba()}),a.ua.addEventListener("regionadd",function(n){n=n.region;Im(a,"timelineregionadded",n);if(a.D)a.D.onDashTimedMetadata(n)}),a.sa=null,a.h.streaming.observeQualityChanges&&(a.sa=new Vj(function(){return a.Ib()}),a.sa.addEventListener("qualitychange",
503
504
  function(n){var r=n.quality;n=n.position;r=(new Map).set("mediaQuality",{bandwidth:r.bandwidth,audioSamplingRate:r.audioSamplingRate,codecs:r.codecs,contentType:r.contentType,frameRate:r.frameRate,height:r.height,mimeType:r.mimeType,channelsCount:r.channelsCount,pixelAspectRatio:r.pixelAspectRatio,width:r.width}).set("position",n);a.dispatchEvent(qm("mediaqualitychanged",r))})),e={networkingEngine:c,filter:function(n){return Jm(a,n)},makeTextStreamsForClosedCaptions:function(n){return Km(a,n)},onTimelineRegionAdded:function(n){var r=
504
- a.sa;a:{var q=t(r.g);for(var u=q.next();!u.done;u=q.next())if(u=u.value,u.schemeIdUri==n.schemeIdUri&&u.id==n.id&&u.startTime==n.startTime&&u.endTime==n.endTime){q=u;break a}q=null}null==q&&(r.g.add(n),n=new N("regionadd",new Map([["region",n]])),r.dispatchEvent(n))},onEvent:function(n){return a.dispatchEvent(n)},onError:function(n){return wm(a,n)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",
505
- !0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(n){var r=a.s?a.s.g:null;r&&a.s.u&&Lm(a,r.keySystem,n)},onManifestUpdated:function(){var n=(new Map).set("isLive",a.S());a.dispatchEvent(qm("manifestupdated",n));if(a.D)a.D.onManifestUpdated(a.S())},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()}},f=Date.now()/1E3,tm(a,"manifest"),g=a,D(m,a.H.start(a.aa,e),2);g.i=m.h;h=qm("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new P(2,4,4036);
506
- Mm(a.i);k=Date.now()/1E3;l=k-f;a.C.H=l;F(m)})}function Dm(a){var b,c;return K(function(d){return 1==d.g?(tm(a,"drm-engine"),b=Date.now()/1E3,c=!0,a.s=Nm(a,{uc:a.J,onError:function(e){wm(a,e)},xe:function(e){Om(a,e)},onExpirationUpdated:function(e,f){Pm(a,e,f)},onEvent:function(e){a.dispatchEvent(e);"drmsessionupdate"==e.type&&c&&(c=!1,a.C.j=Date.now()/1E3-b,a.L&&Di(a.L))}}),a.s.configure(a.h.drm),D(d,Yg(a.s,a.i.variants,a.i.offlineSessionIds),2)):3!=d.g?D(d,a.s.Bc(a.g),3):D(d,Jm(a,a.i),0)})}
507
- function Em(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:tm(a,"load");c=a.g;a.K=new Sj({ee:function(){return c.playbackRate},od:function(){return c.defaultPlaybackRate},ig:function(E){c.playbackRate=E},Yg:function(E){c.currentTime+=E}});d=function(){return Qm(a)};e=function(){return Rm(a)};a.m.o(c,"playing",d);a.m.o(c,"pause",d);a.m.o(c,"ended",d);a.m.o(c,"ratechange",e);pm(a,a.h);f=a.h.abrFactory;a.u&&a.Wf==f||(a.Wf=f,a.u=f(),"function"!=typeof a.u.setMediaElement&&
508
- (Le("AbrManager","Please use an AbrManager with setMediaElement function."),a.u.setMediaElement=function(){}),"function"!=typeof a.u.setCmsdManager&&(Le("AbrManager","Please use an AbrManager with setCmsdManager function."),a.u.setCmsdManager=function(){}),a.u.configure(a.h.abr));a.za=new Ue(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount,a.h.preferredVideoHdrLevel,a.h.preferSpatialAudio,a.h.preferredVideoLayout,a.h.preferredAudioLabel,a.h.preferredVideoLabel,a.h.mediaSource.codecSwitchingStrategy,
509
- a.h.manifest.dash.enableAudioGroups);a.Na=a.h.preferredTextLanguage;a.Qb=a.h.preferredTextRole;a.Db=a.h.preferForcedSubs;Sm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.u.init(function(E,H,G){a.j&&E!=a.j.j&&Tm(a,E,!0,void 0===H?!1:H,void 0===G?0:G)});a.u.setMediaElement(c);a.u.setCmsdManager(a.Z);$d(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes);a.j=Um(a);a.j.configure(a.h.streaming);a.l=Vm;c.textTracks&&a.m.o(c.textTracks,"addtrack",function(E){if(E.track)switch(E=
510
- E.track,E.kind){case "chapters":Wm(a,E)}});a.dispatchEvent(qm("streaming"));g=null;(h=a.j.j)||(g=Xm(a,!0));k=[];l=h||g;m=t([l.video,l.audio]);for(n=m.next();!n.done;n=m.next())(r=n.value)&&!r.segmentIndex&&k.push(r.createSegmentIndex());if(!(0<k.length)){C.F(2);break}return D(C,Promise.all(k),2);case 2:if(a.H&&a.H.onInitialVariantChosen)a.H.onInitialVariantChosen(l);Sm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.G=Ym(a,a.ha);a.Ua=Zm(a,b);q=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);
511
- $m(a,c,q);if(h){C.F(4);break}Tm(a,g,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){C.F(4);break}u=a.G;v=u.Ue;return D(C,an(g,a.G.Sd()),6);case 6:v.call(u,C.h);case 4:return a.G.Te(),y=a.Xb().find(function(E){return E.active}),y||((z=De(a.i.textStreams,a.Na,a.Qb,a.Db)[0]||null)&&fm(a.C.h,z,!0),g&&(z?(g.audio&&bn(a,g.audio,z)&&(a.$=!0),a.$&&a.I.H.setTextVisibility(!0),cn(a)):a.$=!1),z&&(a.h.streaming.alwaysStreamText||a.sc())&&Bk(a.j,z)),D(C,a.j.start(),7);case 7:a.h.abr.enabled&&(a.u.enable(),
512
- dn(a));en(a);fn(a);a.i.variants.some(function(E){return E.primary});(x=a.S())&&(a.h.streaming.liveSync||a.i.serviceDescription)?(B=function(){return gn(a)},a.m.o(c,"timeupdate",B)):x||(A=function(){return hn(a)},a.m.o(c,"timeupdate",A),hn(a));if(a.D)a.D.onManifestUpdated(x);a.Ta=!0;a.m.na(c,"loadedmetadata",function(){a.C.m=Date.now()/1E3-b});F(C)}})}
513
- function Bm(a,b){var c,d,e,f;return K(function(g){return 1==g.g?(c=Jb,d=Date.now()/1E3,e=!0,a.s=Nm(a,{uc:a.J,onError:function(h){wm(a,h)},xe:function(h){Om(a,h)},onExpirationUpdated:function(h,k){Pm(a,h,k)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&e&&(e=!1,a.C.j=Date.now()/1E3-d)}}),a.s.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,
514
- mimeType:b?od(b):"",codecs:b?pd(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.ia,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},a.s.Z=!0,D(g,Yg(a.s,[f],[]),2)):D(g,a.s.Bc(a.g),0)})}
515
- function Fm(a,b,c){var d,e,f,g,h,k,l,m,n,r;return K(function(q){if(1==q.g)return tm(a,"src-equals"),d=a.g,a.G=new Hj(d),e=!1,a.zb.push(function(){e=!0}),null!=a.ha&&a.G.Ue(a.ha),a.K=new Sj({ee:function(){return d.playbackRate},od:function(){return d.defaultPlaybackRate},ig:function(u){d.playbackRate=u},Yg:function(u){d.currentTime+=u}}),f=a.h.streaming.rebufferingGoal,$m(a,d,f),g=function(){return Qm(a)},h=function(){return Rm(a)},a.m.o(d,"playing",g),a.m.o(d,"pause",g),a.m.o(d,"ended",g),a.m.o(d,
505
+ a.ua;a:{var q=t(r.g);for(var u=q.next();!u.done;u=q.next())if(u=u.value,u.schemeIdUri==n.schemeIdUri&&u.id==n.id&&u.startTime==n.startTime&&u.endTime==n.endTime){q=u;break a}q=null}null==q&&(r.g.add(n),n=new N("regionadd",new Map([["region",n]])),r.dispatchEvent(n))},onEvent:function(n){return a.dispatchEvent(n)},onError:function(n){return wm(a,n)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",
506
+ !0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(n){var r=a.s?a.s.g:null;r&&a.s.u&&Lm(a,r.keySystem,n)},onManifestUpdated:function(){var n=(new Map).set("isLive",a.R());a.dispatchEvent(qm("manifestupdated",n));if(a.D)a.D.onManifestUpdated(a.R())},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()}},f=Date.now()/1E3,tm(a,"manifest"),g=a,D(m,a.H.start(a.aa,e),2);g.i=m.h;h=qm("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new P(2,4,4036);
507
+ Mm(a.i);k=Date.now()/1E3;l=k-f;a.C.H=l;F(m)})}function Dm(a){var b,c;return K(function(d){return 1==d.g?(tm(a,"drm-engine"),b=Date.now()/1E3,c=!0,a.s=Nm(a,{xc:a.J,onError:function(e){wm(a,e)},Ae:function(e){Om(a,e)},onExpirationUpdated:function(e,f){Pm(a,e,f)},onEvent:function(e){a.dispatchEvent(e);"drmsessionupdate"==e.type&&c&&(c=!1,a.C.j=Date.now()/1E3-b,a.L&&Di(a.L))}}),a.s.configure(a.h.drm),D(d,Yg(a.s,a.i.variants,a.i.offlineSessionIds),2)):3!=d.g?D(d,a.s.Ec(a.g),3):D(d,Jm(a,a.i),0)})}
508
+ function Em(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:tm(a,"load");c=a.g;a.K=new Sj({ie:function(){return c.playbackRate},Jc:function(){return c.defaultPlaybackRate},ng:function(E){c.playbackRate=E},dh:function(E){c.currentTime+=E}});d=function(){return Qm(a)};e=function(){return Rm(a)};a.m.o(c,"playing",d);a.m.o(c,"pause",d);a.m.o(c,"ended",d);a.m.o(c,"ratechange",e);pm(a,a.h);f=a.h.abrFactory;a.u&&a.$f==f||(a.$f=f,a.u=f(),"function"!=typeof a.u.setMediaElement&&
509
+ (Le("AbrManager","Please use an AbrManager with setMediaElement function."),a.u.setMediaElement=function(){}),"function"!=typeof a.u.setCmsdManager&&(Le("AbrManager","Please use an AbrManager with setCmsdManager function."),a.u.setCmsdManager=function(){}),a.u.configure(a.h.abr));a.Oa=new Ue(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount,a.h.preferredVideoHdrLevel,a.h.preferSpatialAudio,a.h.preferredVideoLayout,a.h.preferredAudioLabel,a.h.preferredVideoLabel,a.h.mediaSource.codecSwitchingStrategy,
510
+ a.h.manifest.dash.enableAudioGroups);a.Ua=a.h.preferredTextLanguage;a.kc=a.h.preferredTextRole;a.Sb=a.h.preferForcedSubs;Sm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.u.init(function(E,H,G){a.j&&E!=a.j.j&&Tm(a,E,!0,void 0===H?!1:H,void 0===G?0:G)});a.u.setMediaElement(c);a.u.setCmsdManager(a.Z);$d(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes);a.j=Um(a);a.j.configure(a.h.streaming);a.l=Vm;c.textTracks&&a.m.o(c.textTracks,"addtrack",function(E){if(E.track)switch(E=
511
+ E.track,E.kind){case "chapters":Wm(a,E)}});a.dispatchEvent(qm("streaming"));g=null;(h=a.j.j)||(g=Xm(a,!0));k=[];l=h||g;m=t([l.video,l.audio]);for(n=m.next();!n.done;n=m.next())(r=n.value)&&!r.segmentIndex&&k.push(r.createSegmentIndex());if(!(0<k.length)){C.F(2);break}return D(C,Promise.all(k),2);case 2:if(a.H&&a.H.onInitialVariantChosen)a.H.onInitialVariantChosen(l);Sm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.G=Ym(a,a.ha);a.ub=Zm(a,b);q=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);
512
+ $m(a,c,q);if(h){C.F(4);break}Tm(a,g,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){C.F(4);break}u=a.G;v=u.Ze;return D(C,an(g,a.G.Vd()),6);case 6:v.call(u,C.h);case 4:return a.G.Ye(),y=a.Yb().find(function(E){return E.active}),y||((z=De(a.i.textStreams,a.Ua,a.kc,a.Sb)[0]||null)&&fm(a.C.h,z,!0),g&&(z?(g.audio&&bn(a,g.audio,z)&&(a.$=!0),a.$&&a.I.H.setTextVisibility(!0),cn(a)):a.$=!1),z&&(a.h.streaming.alwaysStreamText||a.vc())&&Bk(a.j,z)),D(C,a.j.start(),7);case 7:a.h.abr.enabled&&(a.u.enable(),
513
+ dn(a));en(a);fn(a);a.i.variants.some(function(E){return E.primary});(x=a.R())&&(a.h.streaming.liveSync||a.i.serviceDescription)?(B=function(){return gn(a)},a.m.o(c,"timeupdate",B)):x||(A=function(){return hn(a)},a.m.o(c,"timeupdate",A),hn(a));if(a.D)a.D.onManifestUpdated(x);a.Va=!0;a.m.na(c,"loadedmetadata",function(){a.C.m=Date.now()/1E3-b});F(C)}})}
514
+ function Bm(a,b){var c,d,e,f;return K(function(g){return 1==g.g?(c=Jb,d=Date.now()/1E3,e=!0,a.s=Nm(a,{xc:a.J,onError:function(h){wm(a,h)},Ae:function(h){Om(a,h)},onExpirationUpdated:function(h,k){Pm(a,h,k)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&e&&(e=!1,a.C.j=Date.now()/1E3-d)}}),a.s.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,
515
+ mimeType:b?od(b):"",codecs:b?pd(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.ia,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},a.s.Z=!0,D(g,Yg(a.s,[f],[]),2)):D(g,a.s.Ec(a.g),0)})}
516
+ function Fm(a,b,c){var d,e,f,g,h,k,l,m,n,r;return K(function(q){if(1==q.g)return tm(a,"src-equals"),d=a.g,a.G=new Hj(d),e=!1,a.Fb.push(function(){e=!0}),null!=a.ha&&a.G.Ze(a.ha),a.K=new Sj({ie:function(){return d.playbackRate},Jc:function(){return d.defaultPlaybackRate},ng:function(u){d.playbackRate=u},dh:function(u){d.currentTime+=u}}),f=a.h.streaming.rebufferingGoal,$m(a,d,f),g=function(){return Qm(a)},h=function(){return Rm(a)},a.m.o(d,"playing",g),a.m.o(d,"pause",g),a.m.o(d,"ended",g),a.m.o(d,
516
517
  "ratechange",h),"none"!=d.preload&&a.m.na(d,"loadedmetadata",function(){a.C.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.o(d.audioTracks,"addtrack",function(){return en(a)}),a.m.o(d.audioTracks,"removetrack",function(){return en(a)}),a.m.o(d.audioTracks,"change",function(){return en(a)})),d.textTracks&&(a.m.o(d.textTracks,"addtrack",function(u){if(u.track)switch(u=u.track,u.kind){case "metadata":jn(a,u);break;case "chapters":Wm(a,u);break;default:en(a)}}),a.m.o(d.textTracks,"removetrack",function(){return en(a)}),
517
- a.m.o(d.textTracks,"change",function(){return en(a)})),d.src=ql(a.U,a.aa,c),(Md()||Ld("Web0S"))&&d.load(),a.l=kn,a.dispatchEvent(qm("streaming")),k=new lf,yj(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.G.Te();k.resolve()}),yj(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var u;return K(function(v){if(1==v.g)return ln(a),u=mn(a),u.find(function(y){return"disabled"!=y.mode})?(0<u.length&&(a.$=!0),v.F(2)):D(v,new Promise(function(y){a.m.na(d.textTracks,"change",y);(new Fd(y)).R(1)}),2);if(e)return v.return();
518
- nn(a);F(v)})}),d.error?k.reject(vm(a)):"none"==d.preload&&(Ta('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.'),k.resolve()),a.m.na(d,"error",function(){k.reject(vm(a))}),D(q,k,2);(l=a.S())&&a.h.streaming.liveSync?(m=function(){return gn(a)},a.m.o(d,"timeupdate",m)):l||(n=function(){return hn(a)},a.m.o(d,"timeupdate",
519
- n),hn(a));a.D&&(a.D.onManifestUpdated(l),l&&(r=a.Ga().end,a.m.o(d,"progress",function(){var u=a.Ga().end;r!=u&&(a.D.onManifestUpdated(a.S()),r=u)})));a.Ta=!0;F(q)})}function ln(a){var b=a.h.preferredAudioLanguage;""!=b&&a.Be(b,a.h.preferredVariantRole)}function nn(a){var b=a.h.preferredTextLanguage;""!=b&&a.fh(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
520
- function jn(a,b){if("metadata"==b.kind){b.mode="hidden";a.m.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,on(a,e.startTime,e.endTime,e.type,e.value),a.D)a.D.onCueMetadataChange(e.value)});var c=(new Fd(function(){var d=pn(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ma().R(.5);a.zb.push(function(){c.stop()})}}
518
+ a.m.o(d.textTracks,"change",function(){return en(a)})),d.src=ql(a.U,a.aa,c),(Md()||Ld("Web0S"))&&d.load(),a.l=kn,a.dispatchEvent(qm("streaming")),k=new lf,yj(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.G.Ye();k.resolve()}),yj(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var u;return K(function(v){if(1==v.g)return ln(a),u=mn(a),u.find(function(y){return"disabled"!=y.mode})?(0<u.length&&(a.$=!0),v.F(2)):D(v,new Promise(function(y){a.m.na(d.textTracks,"change",y);(new Fd(y)).S(1)}),2);if(e)return v.return();
519
+ nn(a);F(v)})}),d.error?k.reject(vm(a)):"none"==d.preload&&(Ta('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.'),k.resolve()),a.m.na(d,"error",function(){k.reject(vm(a))}),D(q,k,2);(l=a.R())&&a.h.streaming.liveSync?(m=function(){return gn(a)},a.m.o(d,"timeupdate",m)):l||(n=function(){return hn(a)},a.m.o(d,"timeupdate",
520
+ n),hn(a));a.D&&(a.D.onManifestUpdated(l),l&&(r=a.Ba().end,a.m.o(d,"progress",function(){var u=a.Ba().end;r!=u&&(a.D.onManifestUpdated(a.R()),r=u)})));a.Va=!0;F(q)})}function ln(a){var b=a.h.preferredAudioLanguage;""!=b&&a.Fe(b,a.h.preferredVariantRole)}function nn(a){var b=a.h.preferredTextLanguage;""!=b&&a.gg(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
521
+ function jn(a,b){if("metadata"==b.kind){b.mode="hidden";a.m.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,on(a,e.startTime,e.endTime,e.type,e.value),a.D)a.D.onCueMetadataChange(e.value)});var c=(new Fd(function(){var d=pn(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Na().S(.5);a.Fb.push(function(){c.stop()})}}
521
522
  function Hm(a,b,c,d){b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=t(e.frames),k=h.next();!k.done;k=h.next())on(a,f,g,"org.id3",k.value);if(a.D)a.D.onHlsTimedMetadata(e,f)}}function on(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(qm("metadata",b))}
522
- function Wm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Fd(function(){b.mode="hidden"})).Ma().R(.5);a.zb.push(function(){c.stop()})}}function Mm(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}p.Xi=function(){for(var a=this.V;a.g;)a.release()};function Nm(a,b){return new Rg(b,a.h.drm.updateExpirationTime)}
523
+ function Wm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Fd(function(){b.mode="hidden"})).Na().S(.5);a.Fb.push(function(){c.stop()})}}function Mm(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}p.aj=function(){for(var a=this.V;a.g;)a.release()};function Nm(a,b){return new Rg(b,a.h.drm.updateExpirationTime)}
523
524
  function km(a){return new vf(function(b,c,d){a.u&&a.u.segmentDownloaded(b,c,d)},function(b,c,d){c=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(qm("downloadheadersreceived",c));if(a.Z&&(c=a.Z,c.h.enabled)){if(d=b["cmsd-static"])try{var e=new Map,f=d.split(",");for(d=0;d<f.length;d++){var g=f[d].split("=");e.set(g[0],Ml(g[1]))}}catch(n){}if(b=b["cmsd-dynamic"]){try{var h=new Map,k=b.split(";");for(b=1;b<k.length;b++){var l=k[b].split("=");h.set(l[0],Ml(l[1]))}var m=
524
525
  h}catch(n){m=null}m&&(c.g=m)}}},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(qm("downloadfailed",b))},function(b,c,d){var e=a.U;d=void 0===d?{}:d;if(e.g.enabled)if("HEAD"===c.method)xl(e,c);else switch(b){case 0:try{if(e.g.enabled){if(d.type){a:{switch(d.type){case 4:var f="d";break a;case 3:case 2:f="h";break a;case 5:f="s";break a}f=void 0}e.s=f}xl(e,c,{ot:tl,su:!e.i})}}catch(m){Ua("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",
525
- m)}break;case Ff:b=d;try{if(e.g.enabled){var g=b.segment;f=0;g&&(f=g.endTime-g.startTime);var h={d:1E3*f,st:e.h.S()?"l":"v"};h.ot=Al(b);var k=h.ot===yl||h.ot===Cl||h.ot===sl||h.ot===Dl,l=b.stream;l&&(k&&(h.bl=Fl(e,l.type)),l.bandwidth&&(h.br=l.bandwidth/1E3));k&&h.ot!==Dl&&(h.tb=Gl(e,h.ot)/1E3);xl(e,c,h)}}catch(m){Ua("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",m)}break;case 2:case 5:case 6:xl(e,c,{ot:"k"});break;case 4:xl(e,c,{ot:"o"})}},function(b,c,d,e){a.H&&a.H.banLocation&&a.H.banLocation(e)})}
526
- function Ym(a,b){return new Ij(a.g,a.i,a.h.streaming,b,function(){a.Ua&&Uj(a.Ua,!0);a.j&&a.j.Fd();a.M&&qn(a)},function(c){return a.dispatchEvent(c)})}
527
- function Zm(a,b){b=new ak(a.sa,a.S()||0<b);b.addEventListener("enter",function(d){Im(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){Im(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(Im(a,"timelineregionenter",e),Im(a,"timelineregionexit",e))});var c=new Tj(a.g);c.g.add(b);a.ra&&c.g.add(a.ra);return c}
526
+ m)}break;case Ff:b=d;try{if(e.g.enabled){var g=b.segment;f=0;g&&(f=g.endTime-g.startTime);var h={d:1E3*f,st:e.h.R()?"l":"v"};h.ot=Al(b);var k=h.ot===yl||h.ot===Cl||h.ot===sl||h.ot===Dl,l=b.stream;l&&(k&&(h.bl=Fl(e,l.type)),l.bandwidth&&(h.br=l.bandwidth/1E3));k&&h.ot!==Dl&&(h.tb=Gl(e,h.ot)/1E3);xl(e,c,h)}}catch(m){Ua("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",m)}break;case 2:case 5:case 6:xl(e,c,{ot:"k"});break;case 4:xl(e,c,{ot:"o"})}},function(b,c,d,e){a.H&&a.H.banLocation&&a.H.banLocation(e)})}
527
+ function Ym(a,b){return new Ij(a.g,a.i,a.h.streaming,b,function(){a.ub&&Uj(a.ub,!0);a.j&&a.j.Id();a.M&&qn(a)},function(c){return a.dispatchEvent(c)})}
528
+ function Zm(a,b){b=new ak(a.ua,a.R()||0<b);b.addEventListener("enter",function(d){Im(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){Im(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(Im(a,"timelineregionenter",e),Im(a,"timelineregionexit",e))});var c=new Tj(a.g);c.g.add(b);a.sa&&c.g.add(a.sa);return c}
528
529
  function $m(a,b,c){a.M=new df;a.M.g=ff;gf(a.M,c,Math.min(.5,c/2));ym(a);a.m.o(b,"waiting",function(){return qn(a)});a.m.o(b,"stalled",function(){return qn(a)});a.m.o(b,"canplaythrough",function(){return qn(a)});a.m.o(b,"progress",function(){return qn(a)})}
529
- function qn(a){switch(a.l){case kn:if(a.g.ended)var b=!0;else{var c=Rh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Vm:a:if(a.g.ended||Ti(a.I))b=!0;else{if(a.i.presentationTimeline.S()){c=a.i.presentationTimeline.Vb();var d=Rh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Th(a.g.buffered,a.g.currentTime);c=a.M;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?ef:ff;c.g=d;b!=d&&ym(a)}function Gm(a,b,c,d){return new Li(a,b,c,d)}
530
- function jm(a){return new pl({getBandwidthEstimate:function(){return a.u?a.u.getBandwidthEstimate():NaN},Gb:function(){return a.Gb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Ub:function(){return a.Ub()},Tb:function(){return a.Tb()},hb:function(){return a.hb()},S:function(){return a.S()}},a.h.cmcd)}
531
- function Um(a){return new ok(a.i,{ce:function(){return a.G?a.G.Sd():0},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()},Y:a.I,uc:a.J,onError:function(b){return wm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Qi:function(){a.H&&a.H.update&&a.H.update()},Sf:function(b,c,d){a.G&&a.G.Zg();qn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(qm("segmentappended",b))},Pi:function(b,c){(c=c.Nf)&&a.ra&&Xj(a.ra,c,b)},zg:function(b,c){var d=a.s;if(d.h.parseInbandPsshEnabled&&
532
- !d.K&&["audio","video"].includes(b)){c=new tg(nc(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;gh(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},Ri:function(b,c,d){Hm(a,b,c,d)},Xd:function(b,c){return a.Xd(b,c)}})}
530
+ function qn(a){switch(a.l){case kn:if(a.g.ended)var b=!0;else{var c=Rh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Vm:a:if(a.g.ended||Ti(a.I))b=!0;else{if(a.i.presentationTimeline.R()){c=a.i.presentationTimeline.Wb();var d=Rh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Th(a.g.buffered,a.g.currentTime);c=a.M;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?ef:ff;c.g=d;b!=d&&ym(a)}function Gm(a,b,c,d){return new Li(a,b,c,d)}
531
+ function jm(a){return new pl({getBandwidthEstimate:function(){return a.u?a.u.getBandwidthEstimate():NaN},Ib:function(){return a.Ib()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Jb:function(){return a.Jb()},Vb:function(){return a.Vb()},jb:function(){return a.jb()},R:function(){return a.R()}},a.h.cmcd)}
532
+ function Um(a){return new ok(a.i,{ge:function(){return a.G?a.G.Vd():0},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()},Y:a.I,xc:a.J,onError:function(b){return wm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Ui:function(){a.H&&a.H.update&&a.H.update()},Wf:function(b,c,d){a.G&&a.G.eh();qn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(qm("segmentappended",b))},Ti:function(b,c){(c=c.Rf)&&a.sa&&Xj(a.sa,c,b)},Eg:function(b,c){var d=a.s;if(d.h.parseInbandPsshEnabled&&
533
+ !d.K&&["audio","video"].includes(b)){c=new tg(nc(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;gh(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},Vi:function(b,c,d){Hm(a,b,c,d)},$d:function(b,c){return a.$d(b,c)}})}
533
534
  p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Le("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(Le("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
534
535
  a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01),void 0==a.streaming.segmentPrefetchLimit&&(a.streaming.segmentPrefetchLimit=2),void 0==a.streaming.retryParameters&&(a.streaming.retryParameters={}),void 0==a.streaming.retryParameters.baseDelay&&(a.streaming.retryParameters.baseDelay=100),void 0==a.manifest&&(a.manifest={}),void 0==a.manifest.retryParameters&&
535
536
  (a.manifest.retryParameters={}),void 0==a.manifest.retryParameters.baseDelay&&(a.manifest.retryParameters.baseDelay=100),void 0==a.drm&&(a.drm={}),void 0==a.drm.retryParameters&&(a.drm.retryParameters={}),void 0==a.drm.retryParameters.baseDelay&&(a.drm.retryParameters.baseDelay=100));var c=am(this.h,a,im(this));rn(this);return c};
536
- function rn(a){if(a.H){var b=Cd(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.H.configure(b)}a.s&&a.s.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{sn(a,a.i)}catch(f){wm(a,f)}a.u&&fn(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||tn(a)}a.J&&a.J.gg(a.h.streaming.forceHTTPS);if(a.I&&(a.I.configure(a.h.mediaSource),a.I.Z=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Xf!=b)){var c=b(),d=a.I,e=d.H;d.H=c;e&&(c.setTextVisibility(e.isTextVisible()),
537
- e.destroy());d.h&&(d.h.j=c);a.Xf=b;a.j&&(b=a.j,(c=b.i.get(Ib))&&zk(b,c.stream,!0,0,!0))}a.u&&(a.u.configure(a.h.abr),a.h.abr.enabled?a.u.enable():a.u.disable(),dn(a));a.M&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),gf(a.M,b,Math.min(.5,b/2)));a.i&&Sm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.D&&a.D.configure(a.h.ads);a.U&&a.U.configure(a.h.cmcd);a.Z&&a.Z.configure(a.h.cmsd)}p.getConfiguration=function(){var a=im(this);am(a,this.h,im(this));return a};
538
- p.Ph=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Ga().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};p.aj=function(){for(var a in this.h)delete this.h[a];am(this.h,im(this),im(this));rn(this)};p.be=function(){return this.l};p.Af=function(){return this.i?this.i.type:null};p.gi=function(){return this.g};
539
- p.Tb=function(){return this.J};p.xf=function(){return this.aa};p.Zd=function(){return this.D?this.D:null};p.S=function(){return this.i?this.i.presentationTimeline.S():this.g&&this.g.src?Infinity==this.g.duration:!1};p.rc=function(){return this.i?this.i.presentationTimeline.rc():!1};p.Kc=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
540
- p.Ga=function(){if(this.i){if(!this.Ta&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.Hc(),end:a.Hb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};p.zi=function(){this.S()&&(this.g.currentTime=this.Ga().end)};p.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};p.drmInfo=function(){return this.s?this.s.g:null};p.pd=function(){return this.s?this.s.pd():Infinity};
541
- p.wf=function(){return this.s?this.s.wf():[]};p.ae=function(){return this.s?this.s.ae():{}};p.ud=function(){return this.M?this.M.g==ff:!1};p.Ub=function(){return this.g?this.K?this.K.h:1:0};p.Jd=function(a){0==a?Ta("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.K.set(a),this.l==Vm&&(this.u.playbackRateChanged(a),yk(this.j,1<Math.abs(a))))};p.Ze=function(){var a=this.K.od();this.l==kn&&this.K.set(a);this.l==Vm&&(this.K.set(a),this.u.playbackRateChanged(a),yk(this.j,!1))};
542
- p.hb=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Be(e)){var f=te(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return Ae(g)}):[]};
543
- p.Xb=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=ue(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?mn(this).map(function(f){return ye(f)}):[]};p.$d=function(){var a=this.ic;this.i&&(a=this.i.imageStreams);return a.map(function(b){return ve(b)})};
544
- p.Mh=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Vm&&b.l!=kn)return g.return(null);c=b.ic;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.F(2):D(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],Oj(d.segmentIndex,function(h){var k=un(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.hc;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.Cf(a,h.startTime+l*m/k))}}),D(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
545
- function un(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{hc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
546
- p.Cf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){if(1==C.g){if(c.l!=Vm&&c.l!=kn)return C.return(null);d=c.ic;c.i&&(d=c.i.imageStreams);return(e=d.find(function(E){return E.id==a}))?e.segmentIndex?C.F(2):D(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=un(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.hc;n=l/h.rows;r=h.hc*h.rows;q=g.i-g.startTime;
547
- u=g.H||q/r;v=g.startTime;z=y=0;1<r&&(x=Math.floor((b-g.startTime)/u),v=g.startTime+x*u,y=x%h.hc*m,z=Math.floor(x/h.hc)*n);B=!1;if(A=g.G)B=!0,n=A.height,y=A.positionX,z=A.positionY,m=A.width;return C.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:y,positionY:z,startTime:v,duration:u,uris:g.ba(),width:m,sprite:B})})};
548
- p.dg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(fm(this.C.h,b,!1),Bk(this.j,b),vn(this),this.Na=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=mn(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,we(c)==a.id?c.mode=this.$?"showing":"hidden":c.mode="disabled";vn(this)}};
549
- p.Ce=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ta("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&Be(d)&&(Tm(this,d,!1,b,c),this.za=new Te(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),fn(this))}else if(this.g&&this.g.audioTracks)for(b=
550
- Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,we(c)==a.id){wn(this,c);break}};p.Oh=function(){return xn(this.hb())};p.oi=function(){return xn(this.Xb())};p.Nh=function(){return Array.from(yn(this.hb()))};p.ni=function(){return Array.from(yn(this.Xb()))};
551
- p.Be=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.G){this.za=new Ue(a,b||"",c,"",!1,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.za.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,
552
- b))c=f;c?(a=te(c),this.Ce(a,!0,d)):tn(this)}else this.g&&this.g.audioTracks&&(d=De(this.hb(),a,b||"",!1)[0])&&this.Ce(d)};p.fh=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.G){if(this.Na=a,this.Qb=b||"",this.Db=c,(a=De(this.i.textStreams,this.Na,this.Qb,this.Db)[0]||null)&&a!=this.j.s&&(fm(this.C.h,a,!1),this.h.streaming.alwaysStreamText||this.sc()))Bk(this.j,a),vn(this)}else(a=De(this.Xb(),a,b||"",c)[0])&&this.dg(a)};
553
- p.fj=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.G){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.za=new Ue(d.language,"",0,"",!1,"",a,"",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),tn(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&wn(this,b)}};
554
- p.sc=function(){var a=this.$;return this.I&&this.l==Vm?this.I.H.isTextVisible():this.g&&this.g.src&&this.g.textTracks?mn(this).some(function(b){return"showing"==b.mode}):a};p.Lg=function(){return this.g&&this.g.src&&this.g.textTracks?zn(this).map(function(a){return ye(a)}):[]};
555
- p.yf=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=Nb(a),c=zn(this).filter(function(h){return Nb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
537
+ function rn(a){if(a.H){var b=Cd(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.H.configure(b)}a.s&&a.s.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{sn(a,a.i)}catch(f){wm(a,f)}a.u&&fn(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||tn(a)}a.J&&a.J.kg(a.h.streaming.forceHTTPS);if(a.I&&(a.I.configure(a.h.mediaSource),a.I.Z=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.dg!=b)){var c=b(),d=a.I,e=d.H;d.H=c;e&&(c.setTextVisibility(e.isTextVisible()),
538
+ e.destroy());d.h&&(d.h.j=c);a.dg=b;a.j&&(b=a.j,(c=b.i.get(Ib))&&zk(b,c.stream,!0,0,!0))}a.u&&(a.u.configure(a.h.abr),a.h.abr.enabled?a.u.enable():a.u.disable(),dn(a));a.M&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),gf(a.M,b,Math.min(.5,b/2)));a.i&&Sm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.D&&a.D.configure(a.h.ads);a.U&&a.U.configure(a.h.cmcd);a.Z&&a.Z.configure(a.h.cmsd)}p.getConfiguration=function(){var a=im(this);am(a,this.h,im(this));return a};
539
+ p.Sh=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Ba().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};p.ej=function(){for(var a in this.h)delete this.h[a];am(this.h,im(this),im(this));rn(this)};p.fe=function(){return this.l};p.Ef=function(){return this.i?this.i.type:null};p.ki=function(){return this.g};
540
+ p.Vb=function(){return this.J};p.Bf=function(){return this.aa};p.be=function(){return this.D?this.D:null};p.R=function(){return this.i?this.i.presentationTimeline.R():this.g&&this.g.src?Infinity==this.g.duration:!1};p.uc=function(){return this.i?this.i.presentationTimeline.uc():!1};p.Nc=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
541
+ p.Ba=function(){if(this.i){if(!this.Va&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.Lc(),end:a.Kb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};p.Ci=function(){this.R()&&(this.g.currentTime=this.Ba().end)};p.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};p.drmInfo=function(){return this.s?this.s.g:null};p.sd=function(){return this.s?this.s.sd():Infinity};
542
+ p.Af=function(){return this.s?this.s.Af():[]};p.ee=function(){return this.s?this.s.ee():{}};p.xd=function(){return this.M?this.M.g==ff:!1};p.Jb=function(){return this.g?this.K?this.K.h:1:0};
543
+ p.Md=function(a){var b=this;0==a?Ta("A trick play rate of 0 is unsupported!"):(this.va.bb(),this.g.paused&&this.g.play(),this.K.set(a),this.l==Vm&&(this.u.playbackRateChanged(a),yk(this.j,1<Math.abs(a))),this.R()&&this.va.o(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.Ba(),e=b.h.streaming.safeSeekOffset;0<a?c>=d.end&&b.nd():c<=d.start+e&&b.nd()}))};p.nd=function(){var a=this.K.Jc();this.l==kn&&this.K.set(a);this.l==Vm&&(this.K.set(a),this.u.playbackRateChanged(a),yk(this.j,!1));this.va.bb()};
544
+ p.jb=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Be(e)){var f=te(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return Ae(g)}):[]};
545
+ p.Yb=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=ue(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?mn(this).map(function(f){return ye(f)}):[]};p.ce=function(){var a=this.rc;this.i&&(a=this.i.imageStreams);return a.map(function(b){return ve(b)})};
546
+ p.Ph=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Vm&&b.l!=kn)return g.return(null);c=b.rc;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.F(2):D(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],Oj(d.segmentIndex,function(h){var k=un(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.jc;for(var l=h.h-h.startTime,m=0;m<k;m++)e.push(b.Gf(a,h.startTime+l*m/k))}}),D(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
547
+ function un(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{jc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
548
+ p.Gf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){if(1==C.g){if(c.l!=Vm&&c.l!=kn)return C.return(null);d=c.rc;c.i&&(d=c.i.imageStreams);return(e=d.find(function(E){return E.id==a}))?e.segmentIndex?C.F(2):D(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=un(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.jc;n=l/h.rows;r=h.jc*h.rows;q=g.h-g.startTime;
549
+ u=g.G||q/r;v=g.startTime;z=y=0;1<r&&(x=Math.floor((b-g.startTime)/u),v=g.startTime+x*u,y=x%h.jc*m,z=Math.floor(x/h.jc)*n);B=!1;if(A=g.D)B=!0,n=A.height,y=A.positionX,z=A.positionY,m=A.width;return C.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:y,positionY:z,startTime:v,duration:u,uris:g.ba(),width:m,sprite:B})})};
550
+ p.hg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(fm(this.C.h,b,!1),Bk(this.j,b),vn(this),this.Ua=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=mn(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,we(c)==a.id?c.mode=this.$?"showing":"hidden":c.mode="disabled";vn(this)}};
551
+ p.Ge=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ta("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&Be(d)&&(Tm(this,d,!1,b,c),this.Oa=new Te(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),fn(this))}else if(this.g&&this.g.audioTracks)for(b=
552
+ Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,we(c)==a.id){wn(this,c);break}};p.Rh=function(){return xn(this.jb())};p.si=function(){return xn(this.Yb())};p.Qh=function(){return Array.from(yn(this.jb()))};p.ri=function(){return Array.from(yn(this.Yb()))};
553
+ p.Fe=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.G){this.Oa=new Ue(a,b||"",c,"",!1,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.Oa.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,
554
+ b))c=f;c?(a=te(c),this.Ge(a,!0,d)):tn(this)}else this.g&&this.g.audioTracks&&(d=De(this.jb(),a,b||"",!1)[0])&&this.Ge(d)};p.gg=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.G){if(this.Ua=a,this.kc=b||"",this.Sb=c,(a=De(this.i.textStreams,this.Ua,this.kc,this.Sb)[0]||null)&&a!=this.j.s&&(fm(this.C.h,a,!1),this.h.streaming.alwaysStreamText||this.vc()))Bk(this.j,a),vn(this)}else(a=De(this.Yb(),a,b||"",c)[0])&&this.hg(a)};
555
+ p.jj=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.G){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.Oa=new Ue(d.language,"",0,"",!1,"",a,"",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),tn(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&wn(this,b)}};
556
+ p.vc=function(){var a=this.$;return this.I&&this.l==Vm?this.I.H.isTextVisible():this.g&&this.g.src&&this.g.textTracks?mn(this).some(function(b){return"showing"==b.mode}):a};p.Qg=function(){return this.g&&this.g.src&&this.g.textTracks?zn(this).map(function(a){return ye(a)}):[]};
557
+ p.Cf=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=Nb(a),c=zn(this).filter(function(h){return Nb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
556
558
  function mn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function pn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function zn(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
557
- p.kg=function(a){a=!!a;if(this.$!=a){this.$=a;if(this.l==Vm)this.I.H.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=De(this.i.textStreams,this.Na,this.Qb,this.Db),0<a.length&&(Bk(this.j,a[0]),vn(this))):xk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=mn(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}cn(this)}};
558
- p.ii=function(){if(!this.S())return null;if(this.G)var a=this.G.Sd();else{if(null==this.ha)return new Date;a=this.ha}if(this.i)return new Date(1E3*(this.i.presentationTimeline.i+a));if(this.g&&this.g.getStartDate){var b=this.g.getStartDate();return isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)}return null};
559
- p.Og=function(){if(!this.S())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};p.Gb=function(){if(this.l==Vm)return this.I.Gb();var a={total:[],audio:[],video:[],text:[]};this.l==kn&&(a.total=Uh(this.g.buffered));return a};
559
+ p.Ie=function(a){a=!!a;if(this.$!=a){this.$=a;if(this.l==Vm)this.I.H.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=De(this.i.textStreams,this.Ua,this.kc,this.Sb),0<a.length&&(Bk(this.j,a[0]),vn(this))):xk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=mn(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}cn(this)}};
560
+ p.li=function(){if(!this.R())return null;if(this.G)var a=this.G.Vd();else{if(null==this.ha)return new Date;a=this.ha}if(this.i)return new Date(1E3*(this.i.presentationTimeline.i+a));if(this.g&&this.g.getStartDate){var b=this.g.getStartDate();return isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)}return null};
561
+ p.Tg=function(){if(!this.R())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};p.Ib=function(){if(this.l==Vm)return this.I.Ib();var a={total:[],audio:[],video:[],text:[]};this.l==kn&&(a.total=Uh(this.g.buffered));return a};
560
562
  p.getStats=function(){if(this.l!=Vm&&this.l!=kn)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,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};Qm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.C;b=
561
- Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.G&&(this.C.M=this.G.ug(),this.C.N=this.G.vg());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.C;var d=Number(c.totalVideoFrames);b.L=Number(c.droppedVideoFrames);b.K=d;this.C.J=Number(c.corruptedVideoFrames)}this.s?(c=this.s,c=c.J?c.J:NaN):c=NaN;this.C.u=c;if(this.l==Vm){if(c=this.j.j)this.C.D=(this.K?this.K.h:1)*c.bandwidth;c&&c.video&&(b=this.C,d=c.video.height||NaN,b.s=c.video.width||NaN,b.l=d);this.S()&&(c=this.Og().valueOf()+
563
+ Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.G&&(this.C.M=this.G.zg(),this.C.N=this.G.Ag());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.C;var d=Number(c.totalVideoFrames);b.L=Number(c.droppedVideoFrames);b.K=d;this.C.J=Number(c.corruptedVideoFrames)}this.s?(c=this.s,c=c.J?c.J:NaN):c=NaN;this.C.u=c;if(this.l==Vm){if(c=this.j.j)this.C.D=(this.K?this.K.h:1)*c.bandwidth;c&&c.video&&(b=this.C,d=c.video.height||NaN,b.s=c.video.width||NaN,b.l=d);this.R()&&(c=this.Tg().valueOf()+
562
564
  1E3*a.currentTime,this.C.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.C.I=this.i.presentationTimeline.g);c=this.u.getBandwidthEstimate();this.C.C=c}this.l==kn&&(c=this.C,b=a.videoHeight||NaN,c.s=a.videoWidth||NaN,c.l=b);var e=this.C;a=e.s;c=e.l;b=e.D;d=e.K;var f=e.L,g=e.J,h=e.N,k=e.M,l=e.C,m=e.i,n=e.m,r=e.H,q=e.j,u=cm(e.g,"playing"),v=cm(e.g,"paused"),y=cm(e.g,"buffering"),z=e.u,x=e.G,B=e.I,A=dm(e.g),C=[];e=t(e.h.g);for(var E=e.next();!E.done;E=e.next())E=E.value,C.push({timestamp:E.timestamp,
563
565
  id:E.id,type:E.type,fromAdaptation:E.fromAdaptation,bandwidth:E.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:r,drmTimeSeconds:q,playTime:u,pauseTime:v,bufferingTime:y,licenseTime:z,liveLatency:x,maxSegmentDuration:B,stateHistory:A,switchHistory:C}};
564
- p.Ch=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:if(h.l!=Vm&&h.l!=kn)throw new P(1,7,7004);if(d){A.F(2);break}return D(A,An(h,a),3);case 3:d=A.h;case 2:k=[];h.D&&(k=h.D.getCuePoints());if(h.l!=kn){A.F(4);break}g&&(c="forced");return D(A,Bn(h,a,b,c,d,f||"",k),5);case 5:l=Nb(b);m=h.Xb();if(n=m.find(function(C){return Nb(C.language)==l&&C.label==(f||"")&&C.kind==c}))return en(h),A.return(n);throw new P(1,2,2012);case 4:r=Jb;q=h.g.duration;
565
- h.i&&(q=h.i.presentationTimeline.getDuration());if(Infinity==q)throw new P(1,4,4033);if(!k.length){A.F(6);break}return D(A,Cn(h,a,h.J,h.h.streaming.retryParameters),7);case 7:u=A.h,v=Dn(h,u,d,k),y=new Blob([v],{type:"text/vtt"}),a=Oi(y),d="text/vtt";case 6:z={id:h.qg++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Qj(0,q,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:r.Ba,
566
+ p.Fh=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:if(h.l!=Vm&&h.l!=kn)throw new P(1,7,7004);if(d){A.F(2);break}return D(A,An(h,a),3);case 3:d=A.h;case 2:k=[];h.D&&(k=h.D.getCuePoints());if(h.l!=kn){A.F(4);break}g&&(c="forced");return D(A,Bn(h,a,b,c,d,f||"",k),5);case 5:l=Nb(b);m=h.Yb();if(n=m.find(function(C){return Nb(C.language)==l&&C.label==(f||"")&&C.kind==c}))return en(h),A.return(n);throw new P(1,2,2012);case 4:r=Jb;q=h.g.duration;
567
+ h.i&&(q=h.i.presentationTimeline.getDuration());if(Infinity==q)throw new P(1,4,4033);if(!k.length){A.F(6);break}return D(A,Cn(h,a,h.J,h.h.streaming.retryParameters),7);case 7:u=A.h,v=Dn(h,u,d,k),y=new Blob([v],{type:"text/vtt"}),a=Oi(y),d="text/vtt";case 6:z={id:h.yg++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Qj(0,q,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:r.Da,
566
568
  primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1};x=fd(z.mimeType,z.codecs);B=rd(x);if(!B)throw new P(2,2,2014,d);h.i.textStreams.push(z);en(h);return A.return(ue(z))}})};
567
- p.Dh=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x;return K(function(B){switch(B.g){case 1:if(c.l!=Vm&&c.l!=kn)throw new P(1,7,7004);if(b){B.F(2);break}return D(B,An(c,a),3);case 3:b=B.h;case 2:if("text/vtt"!=b)throw new P(1,2,2017,a);d=Jb;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new P(1,4,4045);return D(B,Cn(c,a,c.J,c.h.streaming.retryParameters),4);case 4:f=B.h;g=sd[b];if(!g)throw new P(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
568
- vttOffset:0};l=nc(f);m=h.parseMedia(l,k,a);n=[];r={};q=t(m);for(u=q.next();!u.done;r={Wc:r.Wc},u=q.next())v=u.value,r.Wc=Bb([a],[v.payload])[0],y=new Oh(v.startTime,v.endTime,function(A){return function(){return[A.Wc]}}(r),0,null,null,0,0,Infinity),r.Wc.includes("#xywh")&&(z=r.Wc.split("#xywh=")[1].split(","),4===z.length&&y.mh({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})),n.push(y);x={id:c.qg++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
569
- segmentIndex:new Nj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.Se,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};c.l==kn?c.ic.push(x):c.i.imageStreams.push(x);en(c);return B.return(ve(x))}})};
570
- p.Bh=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=Vm&&d.l!=kn)throw new P(1,7,7004);if(c){k.F(2);break}return D(k,An(d,a),3);case 3:c=k.h;case 2:return e=[],d.D&&(e=d.D.getCuePoints()),D(k,Bn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Lg();h=g.find(function(l){return l.language==b});if(!h){k.F(5);break}return D(k,new Promise(function(l,m){d.m.na(f,"load",l);d.m.na(f,"error",function(){m(new P(1,2,2015))})}),6);case 6:return en(d),k.return(h);case 5:throw new P(1,
569
+ p.Gh=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x;return K(function(B){switch(B.g){case 1:if(c.l!=Vm&&c.l!=kn)throw new P(1,7,7004);if(b){B.F(2);break}return D(B,An(c,a),3);case 3:b=B.h;case 2:if("text/vtt"!=b)throw new P(1,2,2017,a);d=Jb;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new P(1,4,4045);return D(B,Cn(c,a,c.J,c.h.streaming.retryParameters),4);case 4:f=B.h;g=sd[b];if(!g)throw new P(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
570
+ vttOffset:0};l=nc(f);m=h.parseMedia(l,k,a);n=[];r={};q=t(m);for(u=q.next();!u.done;r={hd:r.hd,fc:r.fc},u=q.next())r.fc=u.value,r.hd=null,v=function(A){return function(){null==A.hd&&(A.hd=Bb([a],[A.fc.payload]));return A.hd||[]}}(r),y=new Oh(r.fc.startTime,r.fc.endTime,v,0,null,null,0,0,Infinity),r.fc.payload.includes("#xywh")&&(z=r.fc.payload.split("#xywh=")[1].split(","),4===z.length&&y.ph({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})),
571
+ n.push(y);x={id:c.yg++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Nj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.Xe,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};c.l==kn?c.rc.push(x):
572
+ c.i.imageStreams.push(x);en(c);return B.return(ve(x))}})};
573
+ p.Eh=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=Vm&&d.l!=kn)throw new P(1,7,7004);if(c){k.F(2);break}return D(k,An(d,a),3);case 3:c=k.h;case 2:return e=[],d.D&&(e=d.D.getCuePoints()),D(k,Bn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Qg();h=g.find(function(l){return l.language==b});if(!h){k.F(5);break}return D(k,new Promise(function(l,m){d.m.na(f,"load",l);d.m.na(f,"error",function(){m(new P(1,2,2015))})}),6);case 6:return en(d),k.return(h);case 5:throw new P(1,
571
574
  2,2012);}})};function An(a,b){var c;return K(function(d){switch(d.g){case 1:return ta(d,2),D(d,Uk(b,a.J,a.h.streaming.retryParameters),4);case 4:c=d.h;va(d,3);break;case 2:wa(d);case 3:if(c)return d.return(c);throw new P(1,2,2011,b);}})}
572
- function Bn(a,b,c,d,e,f,g){var h,k,l,m;return K(function(n){if(1==n.g)return"text/vtt"!=e||g.length?D(n,Cn(a,b,a.J,a.h.streaming.retryParameters),3):n.F(2);2!=n.g&&(h=n.h,k=Dn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Oi(l),e="text/vtt");m=document.createElement("track");var r=a.U,q=b;try{if(r.g.enabled){var u=rl(r);u.ot=El;u.su=!0;var v=ul(u);var y=wl(q,v)}else y=q}catch(z){Ua("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",z),y=q}m.src=y;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
575
+ function Bn(a,b,c,d,e,f,g){var h,k,l,m;return K(function(n){if(1==n.g)return"text/vtt"!=e||g.length?D(n,Cn(a,b,a.J,a.h.streaming.retryParameters),3):n.F(2);2!=n.g&&(h=n.h,k=Dn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Oi(l),e="text/vtt");m=document.createElement("track");var r=a.U,q=b;try{if(r.g.enabled){var u=rl(r);u.ot=El;u.su=!0;var v=ul(u);var y=vl(q,v)}else y=q}catch(z){Ua("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",z),y=q}m.src=y;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
573
576
  a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function Cn(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){e=Ff;f=zf([b],d);f.method="GET";var k=a.U;try{k.g.enabled&&xl(k,f,{ot:El,su:!0})}catch(l){Ua("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return D(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
574
- function Dn(a,b,c,d){var e=sd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=nc(b),b=c.parseMedia(b,a,null),ol(b,d);throw new P(2,2,2014,c);}p.hg=function(a,b){this.$f.width=a;this.$f.height=b};p.Zf=function(a){if(this.l==Vm){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.u)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.sd||d.Qa||d.yb||(d.sd=!1,wk(b,d,a));b=!0}}else b=!1;return b};
575
- p.ci=function(){Ta("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.");return this.i};p.di=function(){return this.we};
576
- function im(a){var b=Zl();b.streaming.failureCallback=function(c){if(a.S()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Zf(d))}};b.textDisplayFactory=function(){return a.Jc?new fl(a.g,a.Jc):HTMLMediaElement.prototype.addTextTrack?new Zk(a.g,"Shaka Player TextTrack"):new bl};return b}p.lg=function(a){this.Jc=a};
577
- function Km(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Rj,l=e.closedCaptions.get(g);h={id:a.qg++,originalId:g,groupId:null,
577
+ function Dn(a,b,c,d){var e=sd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=nc(b),b=c.parseMedia(b,a,null),ol(b,d);throw new P(2,2,2014,c);}p.lg=function(a,b){this.vg.width=a;this.vg.height=b};p.cg=function(a){if(this.l==Vm){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.u)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.vd||d.Ra||d.Bb||(d.vd=!1,wk(b,d,a));b=!0}}else b=!1;return b};
578
+ p.gi=function(){Ta("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.");return this.i};p.ii=function(){return this.Ce};
579
+ function im(a){var b=Zl();b.streaming.failureCallback=function(c){if(a.R()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.cg(d))}};b.textDisplayFactory=function(){return a.le?new fl(a.g,a.le):HTMLMediaElement.prototype.addTextTrack?new Zk(a.g,"Shaka Player TextTrack"):new bl};return b}p.pg=function(a){this.le=a};
580
+ function Km(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Rj,l=e.closedCaptions.get(g);h={id:a.yg++,originalId:g,groupId:null,
578
581
  createSegmentIndex:function(){return Promise.resolve()},segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:Ib,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1};b.textStreams.push(h);c.add(g)}}
579
582
  function Jm(a,b){return K(function(c){if(1==c.g)return D(c,En(a,b),2);sn(a,b);F(c)})}function En(a,b){return K(function(c){if(1==c.g)return D(c,de(a.s,b),2);if(!b.variants.some(Be))throw new P(2,4,4032);F(c)})}
580
- function sn(a,b){if(a.l!=rm){for(var c=a.h.restrictions,d=a.$f,e=!1,f=t(b.variants),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.allowedByApplication;g.allowedByApplication=ce(g,c,d);h!=g.allowedByApplication&&(e=!0)}e&&a.j&&en(a);if((c=a.s?a.s.g:null)&&a.s.u)for(d=t(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Lm(a,c.keySystem,e.video),Lm(a,c.keySystem,e.audio);Fn(a,b)}}
583
+ function sn(a,b){if(a.l!=rm){for(var c=a.h.restrictions,d=a.vg,e=!1,f=t(b.variants),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.allowedByApplication;g.allowedByApplication=ce(g,c,d);h!=g.allowedByApplication&&(e=!0)}e&&a.j&&en(a);if((c=a.s?a.s.g:null)&&a.s.u)for(d=t(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Lm(a,c.keySystem,e.video),Lm(a,c.keySystem,e.audio);Fn(a,b)}}
581
584
  function Lm(a,b,c){if(c){c=t(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=t(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,gh(a.s,e.initDataType,e.initData)}}}
582
- function an(a,b){var c,d,e,f,g;return K(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,r;return K(function(q){if(1==q.g)return k?D(q,k.createSegmentIndex(),2):q.return(null);n=(m=k.segmentIndex.lc(l))?m.next().value:null;if(!n)return q.return(null);r=n.startTime;return q.return(r)})},D(h,e(c,b),2);if(3!=h.g)return f=h.h,D(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})}
583
- function ym(a){var b=a.ud();if(a.C&&a.M&&a.G){if(a.U){var c=a.U;b||c.i||(c.i=!0);c.i&&b&&(c.l=!0);c.m=b}Qm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(qm("buffering",b))}function Rm(a){var b=a.g.playbackRate;0!=b&&(a.K&&a.K.set(b),b=qm("ratechange"),a.dispatchEvent(b))}
585
+ function an(a,b){var c,d,e,f,g;return K(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,r;return K(function(q){if(1==q.g)return k?D(q,k.createSegmentIndex(),2):q.return(null);n=(m=k.segmentIndex.nc(l))?m.next().value:null;if(!n)return q.return(null);r=n.startTime;return q.return(r)})},D(h,e(c,b),2);if(3!=h.g)return f=h.h,D(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})}
586
+ function ym(a){var b=a.xd();if(a.C&&a.M&&a.G){if(a.U){var c=a.U;b||c.i||(c.i=!0);c.i&&b&&(c.l=!0);c.m=b}Qm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(qm("buffering",b))}function Rm(a){var b=a.g.playbackRate;0!=b&&(a.K&&a.K.set(b),b=qm("ratechange"),a.dispatchEvent(b))}
584
587
  function Qm(a){if(a.C&&a.M){var b=a.C.g,c="playing";a.M.g==ff?c="buffering":a.g.paused?c="paused":a.g.ended&&(c="ended");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(qm("statechanged",c)))}}
585
- function gn(a){if(a.S()){var b=a.Ga();if(Number.isFinite(b.end)&&!(a.g.currentTime<b.start)){if(a.h.streaming.liveSync){var c=a.h.streaming.liveSyncMaxLatency;var d=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(c=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,d=a.i.serviceDescription.maxPlaybackRate||a.h.streaming.liveSyncPlaybackRate);if(a.h.streaming.liveSync){var e=a.h.streaming.liveSyncMinLatency;var f=a.h.streaming.liveSyncMinPlaybackRate}else a.i&&
586
- a.i.serviceDescription&&(e=a.i.serviceDescription.minLatency||a.h.streaming.liveSyncMinLatency,f=a.i.serviceDescription.minPlaybackRate||a.h.streaming.liveSyncMinPlaybackRate);var g=a.g.playbackRate,h=b.end-a.g.currentTime,k=0;if(a.l==kn){var l=a.g.buffered;0<l.length&&(k=l.end(l.length-1),k=Math.max(d,k-b.end))}c&&d&&h-k>c?g!=d&&a.Jd(d):e&&f&&h-k<e?g!=f&&a.Jd(f):g!==a.K.od()&&a.Ze()}}}
587
- function hn(a){if(a.g){var b=!1,c=a.g.currentTime/a.g.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.N)?(a.N=c,b=!0):(c=Math.max(a.N,c),a.N!=c&&(a.N=c,b=!0)));if(b){var d;0==a.N?d=qm("started"):25==a.N?d=qm("firstquartile"):50==a.N?d=qm("midpoint"):75==a.N?d=qm("thirdquartile"):100==a.N&&(d=qm("complete"));d&&a.dispatchEvent(d)}}}function fn(a){try{Fn(a,a.i)}catch(c){return wm(a,c),!1}var b=Ce(a.i.variants);b=a.za.create(b);a.u.setVariants(Array.from(b.values()));return!0}
588
+ function gn(a){if(a.R()){var b=a.Ba();if(Number.isFinite(b.end)&&!(a.g.currentTime<b.start)){if(a.h.streaming.liveSync){var c=a.h.streaming.liveSyncMaxLatency;var d=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(c=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,d=a.i.serviceDescription.maxPlaybackRate||a.h.streaming.liveSyncPlaybackRate);if(a.h.streaming.liveSync){var e=a.h.streaming.liveSyncMinLatency;var f=a.h.streaming.liveSyncMinPlaybackRate}else a.i&&
589
+ a.i.serviceDescription&&(e=a.i.serviceDescription.minLatency||a.h.streaming.liveSyncMinLatency,f=a.i.serviceDescription.minPlaybackRate||a.h.streaming.liveSyncMinPlaybackRate);var g=a.g.playbackRate,h=b.end-a.g.currentTime,k=0;if(a.l==kn){var l=a.g.buffered;0<l.length&&(k=l.end(l.length-1),k=Math.max(d,k-b.end))}c&&d&&h-k>c?g!=d&&a.Md(d):e&&f&&h-k<e?g!=f&&a.Md(f):g!==a.K.Jc()&&a.nd()}}}
590
+ function hn(a){if(a.g){var b=!1,c=a.g.currentTime/a.g.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.N)?(a.N=c,b=!0):(c=Math.max(a.N,c),a.N!=c&&(a.N=c,b=!0)));if(b){var d;0==a.N?d=qm("started"):25==a.N?d=qm("firstquartile"):50==a.N?d=qm("midpoint"):75==a.N?d=qm("thirdquartile"):100==a.N&&(d=qm("complete"));d&&a.dispatchEvent(d)}}}function fn(a){try{Fn(a,a.i)}catch(c){return wm(a,c),!1}var b=Ce(a.i.variants);b=a.Oa.create(b);a.u.setVariants(Array.from(b.values()));return!0}
588
591
  function Xm(a,b){b=void 0===b?!1:b;return fn(a)?a.u.chooseVariant(b):null}
589
- function nm(a){function b(g){var h="";g.video&&(h+="video:"+g.video.id);g.audio&&(h=h+(h?"&":"")+("audio:"+g.audio.id));return h}for(var c=Date.now()/1E3,d=!1,e=t(a.i.variants),f=e.next();!f.done;f=e.next())f=f.value,0<f.disabledUntilTime&&f.disabledUntilTime<=c&&(f.disabledUntilTime=0,d=!0,$a("Re-enabled variant with "+b(f)));a.i.variants.every(function(g){return 0===g.disabledUntilTime})&&a.ie.stop();d&&tn(a,!0,void 0,!1,!1)}
590
- function tn(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f=Xm(a);f&&Tm(a,f,e,b,c,d)}function Tm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&Ak(a.j,b,d,e,!0);else{var h=a.C.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Ak(a.j,b,d,e,f,c);d=null;g&&(d=te(g));b=te(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.L&&Ei(a.L,b,a.Af()),c=qm("adaptation",c),Gn(a,c)):Hn(a,d,b)}}
592
+ function nm(a){function b(g){var h="";g.video&&(h+="video:"+g.video.id);g.audio&&(h=h+(h?"&":"")+("audio:"+g.audio.id));return h}for(var c=Date.now()/1E3,d=!1,e=t(a.i.variants),f=e.next();!f.done;f=e.next())f=f.value,0<f.disabledUntilTime&&f.disabledUntilTime<=c&&(f.disabledUntilTime=0,d=!0,$a("Re-enabled variant with "+b(f)));a.i.variants.every(function(g){return 0===g.disabledUntilTime})&&a.oe.stop();d&&tn(a,!0,void 0,!1,!1)}
593
+ function tn(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f=Xm(a);f&&Tm(a,f,e,b,c,d)}function Tm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&Ak(a.j,b,d,e,!0);else{var h=a.C.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Ak(a.j,b,d,e,f,c);d=null;g&&(d=te(g));b=te(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.L&&Ei(a.L,b,a.Ef()),c=qm("adaptation",c),Gn(a,c)):Hn(a,d,b)}}
591
594
  function wn(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=Ae(c);b=Ae(b);Hn(a,c,b)}function bn(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=Nb(a.h.preferredTextLanguage);c=Nb(c.language);if(2==a.h.autoShowText)return Mb(c,d);if(3==a.h.autoShowText)return a=Nb(b.language),Mb(c,d)&&!Mb(a,c);Ta("Invalid autoShowText setting!");return!1}function en(a){var b=qm("trackschanged");Gn(a,b)}
592
- function Hn(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.L&&Ei(a.L,c,a.Af());c=qm("variantchanged",b);Gn(a,c)}function vn(a){var b=qm("textchanged");Gn(a,b)}function cn(a){var b=qm("texttrackvisibility");Gn(a,b)}function dn(a){a.h.abr.enabled||mm(a);var b=(new Map).set("newStatus",a.h.abr.enabled);Gn(a,qm("abrstatuschanged",b))}function mm(a,b){b=void 0===b?!0:b;if(a.l==Vm){a.ie.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&fn(a)}}
593
- p.Xd=function(a,b){if(!this.h.abr.enabled||this.l===rm||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=t(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.ie.xa(1);b=this.Gb().video.reduce(function(f,g){return f+g.end-g.start},0);tn(this,!0,b,!0,!1);return!0}return!1};
594
- function wm(a,b){var c,d,e;return K(function(f){switch(f.g){case 1:if(a.l==rm)return f.return();c=!0;if(!(a.Ta&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.F(2);break}ta(f,3);return D(f,Tk(a.j),5);case 5:d=f.h;c=!d;va(f,2);break;case 3:wa(f),c=!0;case 2:if(!c)return f.return();2===b.severity&&mm(a,!1);e=qm("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);F(f)}})}
595
+ function Hn(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.L&&Ei(a.L,c,a.Ef());c=qm("variantchanged",b);Gn(a,c)}function vn(a){var b=qm("textchanged");Gn(a,b)}function cn(a){var b=qm("texttrackvisibility");Gn(a,b)}function dn(a){a.h.abr.enabled||mm(a);var b=(new Map).set("newStatus",a.h.abr.enabled);Gn(a,qm("abrstatuschanged",b))}function mm(a,b){b=void 0===b?!0:b;if(a.l==Vm){a.oe.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&fn(a)}}
596
+ p.$d=function(a,b){if(!this.h.abr.enabled||this.l===rm||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=t(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.oe.za(1);b=this.Ib().video.reduce(function(f,g){return f+g.end-g.start},0);tn(this,!0,b,!0,!1);return!0}return!1};
597
+ function wm(a,b){var c,d,e;return K(function(f){switch(f.g){case 1:if(a.l==rm)return f.return();c=!0;if(!(a.Va&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.F(2);break}ta(f,3);return D(f,Tk(a.j),5);case 5:d=f.h;c=!d;va(f,2);break;case 3:wa(f),c=!0;case 2:if(!c)return f.return();2===b.severity&&mm(a,!1);e=qm("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);F(f)}})}
595
598
  function Im(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(qm(b,c))}function vm(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new P(2,3,3016,b,c,a.g.error.message)}
596
599
  function Om(a,b){if(a.j){var c=qm("keystatuschanged");a.dispatchEvent(c);var d=Object.keys(b);c=1==d.length&&"00"==d[0];var e=!1;if(d.length){d=t(a.i.variants);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=t(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[c?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&
597
- !!l&&!In.includes(l)}h!=f.allowedByKeySystem&&(e=!0)}}}if(e&&(en(a),!fn(a)))return;(b=a.j.j)&&!b.allowedByKeySystem&&tn(a)}}function Pm(a,b,c){if(a.H&&a.H.onExpirationUpdated)a.H.onExpirationUpdated(b,c);b=qm("expirationupdated");a.dispatchEvent(b)}function Sm(a,b,c){0<b&&(a.S()||a.nh(b));b=a.getDuration();c<b&&(a.S()||a.bb(c))}
598
- function Fn(a,b){a=a.s?a.s.ae():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=a[c?"00":m];n?In.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
600
+ !!l&&!In.includes(l)}h!=f.allowedByKeySystem&&(e=!0)}}}if(e&&(en(a),!fn(a)))return;(b=a.j.j)&&!b.allowedByKeySystem&&tn(a)}}function Pm(a,b,c){if(a.H&&a.H.onExpirationUpdated)a.H.onExpirationUpdated(b,c);b=qm("expirationupdated");a.dispatchEvent(b)}function Sm(a,b,c){0<b&&(a.R()||a.qh(b));b=a.getDuration();c<b&&(a.R()||a.eb(c))}
601
+ function Fn(a,b){a=a.s?a.s.ee():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=a[c?"00":m];n?In.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
599
602
  missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new P(2,4,4012,a);}function Gn(a,b){K(function(c){if(1==c.g)return D(c,Promise.resolve(),2);a.l!=rm&&a.dispatchEvent(b);F(c)})}function yn(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Nb(c.language)):b.add("und");return b}
600
603
  function xn(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Nb(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m));
601
- h.push({language:l,role:m,label:n})}});return h}L("shaka.Player",V);V.prototype.setVideoContainer=V.prototype.lg;V.prototype.getManifestParserFactory=V.prototype.di;V.prototype.getManifest=V.prototype.ci;V.prototype.retryStreaming=V.prototype.Zf;V.prototype.setMaxHardwareResolution=V.prototype.hg;V.prototype.addChaptersTrack=V.prototype.Bh;V.prototype.addThumbnailsTrack=V.prototype.Dh;V.prototype.addTextTrackAsync=V.prototype.Ch;V.prototype.getStats=V.prototype.getStats;
602
- V.prototype.getBufferedInfo=V.prototype.Gb;V.prototype.getPresentationStartTimeAsDate=V.prototype.Og;V.prototype.getPlayheadTimeAsDate=V.prototype.ii;V.prototype.setTextTrackVisibility=V.prototype.kg;V.prototype.getChapters=V.prototype.yf;V.prototype.getChaptersTracks=V.prototype.Lg;V.prototype.isTextTrackVisible=V.prototype.sc;V.prototype.selectVariantsByLabel=V.prototype.fj;V.prototype.selectTextLanguage=V.prototype.fh;V.prototype.selectAudioLanguage=V.prototype.Be;
603
- V.prototype.getTextLanguages=V.prototype.ni;V.prototype.getAudioLanguages=V.prototype.Nh;V.prototype.getTextLanguagesAndRoles=V.prototype.oi;V.prototype.getAudioLanguagesAndRoles=V.prototype.Oh;V.prototype.selectVariantTrack=V.prototype.Ce;V.prototype.selectTextTrack=V.prototype.dg;V.prototype.getThumbnails=V.prototype.Cf;V.prototype.getAllThumbnails=V.prototype.Mh;V.prototype.getImageTracks=V.prototype.$d;V.prototype.getTextTracks=V.prototype.Xb;V.prototype.getVariantTracks=V.prototype.hb;
604
- V.prototype.cancelTrickPlay=V.prototype.Ze;V.prototype.trickPlay=V.prototype.Jd;V.prototype.getPlaybackRate=V.prototype.Ub;V.prototype.isBuffering=V.prototype.ud;V.prototype.getKeyStatuses=V.prototype.ae;V.prototype.getActiveSessionsMetadata=V.prototype.wf;V.prototype.getExpiration=V.prototype.pd;V.prototype.drmInfo=V.prototype.drmInfo;V.prototype.keySystem=V.prototype.keySystem;V.prototype.goToLive=V.prototype.zi;V.prototype.seekRange=V.prototype.Ga;V.prototype.isAudioOnly=V.prototype.Kc;
605
- V.prototype.isInProgress=V.prototype.rc;V.prototype.isLive=V.prototype.S;V.prototype.getAdManager=V.prototype.Zd;V.prototype.getAssetUri=V.prototype.xf;V.prototype.getNetworkingEngine=V.prototype.Tb;V.prototype.getMediaElement=V.prototype.gi;V.prototype.getManifestType=V.prototype.Af;V.prototype.getLoadMode=V.prototype.be;V.prototype.resetConfiguration=V.prototype.aj;V.prototype.getBufferFullness=V.prototype.Ph;V.prototype.getConfiguration=V.prototype.getConfiguration;V.prototype.configure=V.prototype.configure;
606
- V.prototype.releaseAllMutexes=V.prototype.Xi;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.oj;V.prototype.unload=V.prototype.Sc;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.xg;V.prototype.attach=V.prototype.Bc;
604
+ h.push({language:l,role:m,label:n})}});return h}L("shaka.Player",V);V.prototype.setVideoContainer=V.prototype.pg;V.prototype.getManifestParserFactory=V.prototype.ii;V.prototype.getManifest=V.prototype.gi;V.prototype.retryStreaming=V.prototype.cg;V.prototype.setMaxHardwareResolution=V.prototype.lg;V.prototype.addChaptersTrack=V.prototype.Eh;V.prototype.addThumbnailsTrack=V.prototype.Gh;V.prototype.addTextTrackAsync=V.prototype.Fh;V.prototype.getStats=V.prototype.getStats;
605
+ V.prototype.getBufferedInfo=V.prototype.Ib;V.prototype.getPresentationStartTimeAsDate=V.prototype.Tg;V.prototype.getPlayheadTimeAsDate=V.prototype.li;V.prototype.setTextTrackVisibility=V.prototype.Ie;V.prototype.getChapters=V.prototype.Cf;V.prototype.getChaptersTracks=V.prototype.Qg;V.prototype.isTextTrackVisible=V.prototype.vc;V.prototype.selectVariantsByLabel=V.prototype.jj;V.prototype.selectTextLanguage=V.prototype.gg;V.prototype.selectAudioLanguage=V.prototype.Fe;
606
+ V.prototype.getTextLanguages=V.prototype.ri;V.prototype.getAudioLanguages=V.prototype.Qh;V.prototype.getTextLanguagesAndRoles=V.prototype.si;V.prototype.getAudioLanguagesAndRoles=V.prototype.Rh;V.prototype.selectVariantTrack=V.prototype.Ge;V.prototype.selectTextTrack=V.prototype.hg;V.prototype.getThumbnails=V.prototype.Gf;V.prototype.getAllThumbnails=V.prototype.Ph;V.prototype.getImageTracks=V.prototype.ce;V.prototype.getTextTracks=V.prototype.Yb;V.prototype.getVariantTracks=V.prototype.jb;
607
+ V.prototype.cancelTrickPlay=V.prototype.nd;V.prototype.trickPlay=V.prototype.Md;V.prototype.getPlaybackRate=V.prototype.Jb;V.prototype.isBuffering=V.prototype.xd;V.prototype.getKeyStatuses=V.prototype.ee;V.prototype.getActiveSessionsMetadata=V.prototype.Af;V.prototype.getExpiration=V.prototype.sd;V.prototype.drmInfo=V.prototype.drmInfo;V.prototype.keySystem=V.prototype.keySystem;V.prototype.goToLive=V.prototype.Ci;V.prototype.seekRange=V.prototype.Ba;V.prototype.isAudioOnly=V.prototype.Nc;
608
+ V.prototype.isInProgress=V.prototype.uc;V.prototype.isLive=V.prototype.R;V.prototype.getAdManager=V.prototype.be;V.prototype.getAssetUri=V.prototype.Bf;V.prototype.getNetworkingEngine=V.prototype.Vb;V.prototype.getMediaElement=V.prototype.ki;V.prototype.getManifestType=V.prototype.Ef;V.prototype.getLoadMode=V.prototype.fe;V.prototype.resetConfiguration=V.prototype.ej;V.prototype.getBufferFullness=V.prototype.Sh;V.prototype.getConfiguration=V.prototype.getConfiguration;V.prototype.configure=V.prototype.configure;
609
+ V.prototype.releaseAllMutexes=V.prototype.aj;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.sj;V.prototype.unload=V.prototype.Vc;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.Cg;V.prototype.attach=V.prototype.Ec;
607
610
  V.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return K(function(h){if(1==h.g)return b={},a?D(h,zh(),3):h.F(2);2!=h.g&&(b=h.h);var k={};if(Gd())for(var l in Hh)k[l]=!0;l=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,k[m]=Gd()?!!Hh[m]:Hd(m);c=k;l='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",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(w(gd));
608
- k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=Gd()?rd(m)?!0:fc(m)||($c(m)?!0:!1):Hd(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=Jn;for(g in f)e[g]=f[g]();return h.return(e)})};V.isBrowserSupported=sm;V.setAdManagerFactory=function(a){lm=a};V.registerSupportPlugin=function(a,b){Jn[a]=b};V.prototype.destroy=V.prototype.destroy;var rm=0,hm=1,Vm=2,kn=3;V.LoadMode={DESTROYED:rm,NOT_LOADED:hm,MEDIA_SOURCE:Vm,SRC_EQUALS:kn};V.version="v4.7.3";var Kn=["4","7"];
609
- Me=new function(a){this.g=a;this.i=Ne;this.h=Oe}(new Ke(Number(Kn[0]),Number(Kn[1])));var In=["output-restricted","internal-error"],Jn={},lm=null;function Ln(){this.h=[];this.j=this.i=this.g=0};function Mn(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new Jf;this.l.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=Mn.prototype;p.getDuration=function(){return this.g.getDuration()};p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};
610
- p.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.h.getAdSkippableState()};p.skip=function(){return this.h.skip()};p.pause=function(){return this.h.pause()};p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};p.setVolume=function(a){return this.h.setVolume(a)};p.isMuted=function(){return 0==this.h.getVolume()};
611
- p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};p.setMuted=function(a){a?(this.j=this.getVolume(),this.setVolume(0)):this.setVolume(this.j)};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};
612
- p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};
613
- p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return this.g.getMediaUrl()};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.g=null};L("shaka.ads.ClientSideAd",Mn);Mn.prototype.release=Mn.prototype.release;Mn.prototype.getPodIndex=Mn.prototype.getPodIndex;Mn.prototype.getTimeOffset=Mn.prototype.getTimeOffset;
614
- Mn.prototype.getMediaUrl=Mn.prototype.getMediaUrl;Mn.prototype.getAdvertiserName=Mn.prototype.getAdvertiserName;Mn.prototype.getCreativeAdId=Mn.prototype.getCreativeAdId;Mn.prototype.getAdId=Mn.prototype.getAdId;Mn.prototype.getVastMediaWidth=Mn.prototype.getVastMediaWidth;Mn.prototype.getVastMediaHeight=Mn.prototype.getVastMediaHeight;Mn.prototype.getVastMediaBitrate=Mn.prototype.getVastMediaBitrate;Mn.prototype.getDescription=Mn.prototype.getDescription;Mn.prototype.getTitle=Mn.prototype.getTitle;
615
- Mn.prototype.getPositionInSequence=Mn.prototype.getPositionInSequence;Mn.prototype.getSequenceLength=Mn.prototype.getSequenceLength;Mn.prototype.setMuted=Mn.prototype.setMuted;Mn.prototype.resize=Mn.prototype.resize;Mn.prototype.isLinear=Mn.prototype.isLinear;Mn.prototype.isMuted=Mn.prototype.isMuted;Mn.prototype.setVolume=Mn.prototype.setVolume;Mn.prototype.getVolume=Mn.prototype.getVolume;Mn.prototype.play=Mn.prototype.play;Mn.prototype.pause=Mn.prototype.pause;Mn.prototype.skip=Mn.prototype.skip;
616
- Mn.prototype.canSkipNow=Mn.prototype.canSkipNow;Mn.prototype.getTimeUntilSkippable=Mn.prototype.getTimeUntilSkippable;Mn.prototype.isSkippable=Mn.prototype.isSkippable;Mn.prototype.isPaused=Mn.prototype.isPaused;Mn.prototype.getRemainingTime=Mn.prototype.getRemainingTime;Mn.prototype.getMinSuggestedDuration=Mn.prototype.getMinSuggestedDuration;Mn.prototype.getDuration=Mn.prototype.getDuration;function Nn(a,b,c,d,e){var f=this;this.s=a;this.i=b;this.D=!1;this.u=this.G=null;this.H=NaN;this.m=e;this.j=null;this.h=new Jf;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.7.3");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
611
+ k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=Gd()?rd(m)?!0:fc(m)||($c(m)?!0:!1):Hd(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=Jn;for(g in f)e[g]=f[g]();return h.return(e)})};V.isBrowserSupported=sm;V.setAdManagerFactory=function(a){lm=a};V.registerSupportPlugin=function(a,b){Jn[a]=b};V.prototype.destroy=V.prototype.destroy;var rm=0,hm=1,Vm=2,kn=3;V.LoadMode={DESTROYED:rm,NOT_LOADED:hm,MEDIA_SOURCE:Vm,SRC_EQUALS:kn};V.version="v4.7.5";var Kn=["4","7"];
612
+ Me=new function(a){this.g=a;this.i=Ne;this.h=Oe}(new Ke(Number(Kn[0]),Number(Kn[1])));var In=["output-restricted","internal-error"],Jn={},lm=null;function Ln(){this.h=[];this.j=this.i=this.g=0};function Mn(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new Jf;this.m.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=Mn.prototype;p.getDuration=function(){return this.g.getDuration()};p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};
613
+ p.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.h.getAdSkippableState()};p.skip=function(){return this.h.skip()};p.pause=function(){return this.h.pause()};p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};p.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
614
+ p.isMuted=function(){return 0==this.h.getVolume()};p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};p.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
615
+ p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
616
+ p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return this.g.getMediaUrl()};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.g=null};L("shaka.ads.ClientSideAd",Mn);Mn.prototype.release=Mn.prototype.release;
617
+ Mn.prototype.getPodIndex=Mn.prototype.getPodIndex;Mn.prototype.getTimeOffset=Mn.prototype.getTimeOffset;Mn.prototype.getMediaUrl=Mn.prototype.getMediaUrl;Mn.prototype.getAdvertiserName=Mn.prototype.getAdvertiserName;Mn.prototype.getCreativeAdId=Mn.prototype.getCreativeAdId;Mn.prototype.getAdId=Mn.prototype.getAdId;Mn.prototype.getVastMediaWidth=Mn.prototype.getVastMediaWidth;Mn.prototype.getVastMediaHeight=Mn.prototype.getVastMediaHeight;Mn.prototype.getVastMediaBitrate=Mn.prototype.getVastMediaBitrate;
618
+ Mn.prototype.getDescription=Mn.prototype.getDescription;Mn.prototype.getTitle=Mn.prototype.getTitle;Mn.prototype.getPositionInSequence=Mn.prototype.getPositionInSequence;Mn.prototype.getSequenceLength=Mn.prototype.getSequenceLength;Mn.prototype.setMuted=Mn.prototype.setMuted;Mn.prototype.resize=Mn.prototype.resize;Mn.prototype.isLinear=Mn.prototype.isLinear;Mn.prototype.isMuted=Mn.prototype.isMuted;Mn.prototype.setVolume=Mn.prototype.setVolume;Mn.prototype.getVolume=Mn.prototype.getVolume;
619
+ Mn.prototype.play=Mn.prototype.play;Mn.prototype.pause=Mn.prototype.pause;Mn.prototype.skip=Mn.prototype.skip;Mn.prototype.canSkipNow=Mn.prototype.canSkipNow;Mn.prototype.getTimeUntilSkippable=Mn.prototype.getTimeUntilSkippable;Mn.prototype.isSkippable=Mn.prototype.isSkippable;Mn.prototype.isPaused=Mn.prototype.isPaused;Mn.prototype.getRemainingTime=Mn.prototype.getRemainingTime;Mn.prototype.getMinSuggestedDuration=Mn.prototype.getMinSuggestedDuration;Mn.prototype.getDuration=Mn.prototype.getDuration;function Nn(a,b,c,d,e){var f=this;this.s=a;this.i=b;this.D=!1;this.u=this.G=null;this.H=NaN;this.m=e;this.j=null;this.h=new Jf;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.7.5");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
617
620
  function(g){On(f,g)});this.h.o(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Pn(f,g)});this.h.o(this.i,"ended",function(){f.l.contentComplete()});this.h.na(this.i,"play",function(){f.D=!0})}Nn.prototype.configure=function(a){this.G=a};Nn.prototype.stop=function(){this.g&&this.g.stop();this.s&&el(this.s)};Nn.prototype.release=function(){this.stop();this.u&&this.u.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};
618
621
  function Pn(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new N("ad-error",b));Qn(a,null);a.m(new N("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
619
- function On(a,b){a.m(new N("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.H)));if(a.G.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.o(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.o(a.i,"volumechange",function(){a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume)})}else a.g=b.getAdsManager(a.i,a.C);a.m(new N("ima-ad-manager-loaded",(new Map).set("imaAdManager",
622
+ function On(a,b){a.m(new N("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.H)));if(a.G.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.o(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.o(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.C);a.m(new N("ima-ad-manager-loaded",(new Map).set("imaAdManager",
620
623
  a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=t(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.m(new N("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Rn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.u=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,
621
624
  a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.u.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.D?a.g.start():a.h.na(a.i,"play",function(){a.D=!0;a.g.start()})}catch(f){Qn(a,null)}}function Sn(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
622
625
  function Rn(a){function b(c,d){c=(new Map).set("originalEvent",c);a.m(new N(d,c))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Pn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Tn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Tn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
@@ -624,14 +627,14 @@ function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLET
624
627
  a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});
625
628
  a.h.o(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.o(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.o(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.o(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.o(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.o(a.g,
626
629
  google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
627
- function Tn(a,b){var c=b.getAd();c?(a.j=new Mn(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.m(new N("ad-started",b)),a.j.isLinear()&&(a.s.setAttribute("ad-active","true"),a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):Ta("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
630
+ function Tn(a,b){var c=b.getAd();c?(a.j=new Mn(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.m(new N("ad-started",b)),a.j.isLinear()&&(a.s.setAttribute("ad-active","true"),a.i.pause(),a.i.muted?(b=a.j,b.l=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):Ta("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
628
631
  function Qn(a,b){a.m(new N("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.s.removeAttribute("ad-active"),a.i.ended||a.i.play())};function Un(a,b,c,d,e){this.h=a;this.g=e;this.i=b;this.j=c;this.l=d}p=Un.prototype;p.getDuration=function(){return this.h.durationInSeconds};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.h.skipOffset?!0:!1};
629
632
  p.getTimeUntilSkippable=function(){if(!this.h.skipOffset)return this.getRemainingTime();var a=this.getRemainingTime()-this.h.skipOffset;return Math.max(a,0)};p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};p.skip=function(){this.g.currentTime+=this.getRemainingTime()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.play()};p.getVolume=function(){return this.g.volume};p.setVolume=function(a){this.g.volume=a};p.isMuted=function(){return this.g.muted};
630
633
  p.isLinear=function(){return this.l};p.resize=function(){};p.setMuted=function(a){this.g.muted=a};p.getSequenceLength=function(){return this.j?this.j:1};p.getPositionInSequence=function(){return this.i?this.i:1};p.getTitle=function(){return this.h.adTitle};p.getDescription=function(){return""};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return 0};p.getVastMediaWidth=function(){return 0};p.getAdId=function(){return this.h.adId};p.getCreativeAdId=function(){return this.h.creativeId};
631
634
  p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){return 0};p.getPodIndex=function(){return 0};p.release=function(){this.j=this.i=this.g=this.h=null};L("shaka.ads.MediaTailorAd",Un);Un.prototype.release=Un.prototype.release;Un.prototype.getPodIndex=Un.prototype.getPodIndex;Un.prototype.getTimeOffset=Un.prototype.getTimeOffset;Un.prototype.getMediaUrl=Un.prototype.getMediaUrl;Un.prototype.getAdvertiserName=Un.prototype.getAdvertiserName;
632
635
  Un.prototype.getCreativeAdId=Un.prototype.getCreativeAdId;Un.prototype.getAdId=Un.prototype.getAdId;Un.prototype.getVastMediaWidth=Un.prototype.getVastMediaWidth;Un.prototype.getVastMediaHeight=Un.prototype.getVastMediaHeight;Un.prototype.getVastMediaBitrate=Un.prototype.getVastMediaBitrate;Un.prototype.getDescription=Un.prototype.getDescription;Un.prototype.getTitle=Un.prototype.getTitle;Un.prototype.getPositionInSequence=Un.prototype.getPositionInSequence;Un.prototype.getSequenceLength=Un.prototype.getSequenceLength;
633
636
  Un.prototype.setMuted=Un.prototype.setMuted;Un.prototype.resize=Un.prototype.resize;Un.prototype.isLinear=Un.prototype.isLinear;Un.prototype.isMuted=Un.prototype.isMuted;Un.prototype.setVolume=Un.prototype.setVolume;Un.prototype.getVolume=Un.prototype.getVolume;Un.prototype.play=Un.prototype.play;Un.prototype.pause=Un.prototype.pause;Un.prototype.skip=Un.prototype.skip;Un.prototype.canSkipNow=Un.prototype.canSkipNow;Un.prototype.getTimeUntilSkippable=Un.prototype.getTimeUntilSkippable;
634
- Un.prototype.isSkippable=Un.prototype.isSkippable;Un.prototype.isPaused=Un.prototype.isPaused;Un.prototype.getRemainingTime=Un.prototype.getRemainingTime;Un.prototype.getMinSuggestedDuration=Un.prototype.getMinSuggestedDuration;Un.prototype.getDuration=Un.prototype.getDuration;function Vn(a,b,c,d){this.D=a;this.K=b;this.g=c;this.l=null;this.V=NaN;this.i=d;this.J=!1;this.C=null;this.j=[];this.M=[];this.L=this.G=this.h=null;this.H=new Map;this.m=[];this.u=[];this.N="";this.U=!0;this.I="";this.s=new Jf}Vn.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.s.cc(b.target,b.type,b.listener);Wn(this);this.m=[];this.u=[];this.N="";this.U=!0;this.I="";this.C=null;this.j=[];this.M=[];this.H.clear()};
637
+ Un.prototype.isSkippable=Un.prototype.isSkippable;Un.prototype.isPaused=Un.prototype.isPaused;Un.prototype.getRemainingTime=Un.prototype.getRemainingTime;Un.prototype.getMinSuggestedDuration=Un.prototype.getMinSuggestedDuration;Un.prototype.getDuration=Un.prototype.getDuration;function Vn(a,b,c,d){this.D=a;this.K=b;this.g=c;this.l=null;this.V=NaN;this.i=d;this.J=!1;this.C=null;this.j=[];this.M=[];this.L=this.G=this.h=null;this.H=new Map;this.m=[];this.u=[];this.N="";this.U=!0;this.I="";this.s=new Jf}Vn.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.s.dc(b.target,b.type,b.listener);Wn(this);this.m=[];this.u=[];this.N="";this.U=!0;this.I="";this.C=null;this.j=[];this.M=[];this.H.clear()};
635
638
  Vn.prototype.release=function(){this.stop();this.s&&this.s.release()};Vn.prototype.onManifestUpdated=function(a){this.J=a;""!=this.N&&(Xn(this,this.N,this.U),this.U=!1)};Vn.prototype.getCuePoints=function(){for(var a=[],b=t(this.j),c=b.next();!c.done;c=b.next()){c=t(c.value.ads);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({start:d.startTimeInSeconds,end:d.startTimeInSeconds+d.durationInSeconds})}return a};
636
639
  function Yn(a,b,c){var d,e,f,g,h,k,l,m,n,r,q;K(function(u){if(1==u.g)return d=zf([b],jf()),d.method="POST",c&&(e=JSON.stringify(c),d.body=Wf(e)),f=a.K.request(7,d),ta(u,2),D(u,f.promise,4);if(2!=u.g){g=u.h;h=Sf(g.data);k=JSON.parse(h);if(k.manifestUrl&&k.trackingUrl)l=new hb(b),m=new hb(k.trackingUrl),a.N=l.resolve(m).toString(),n=Date.now()/1E3,r=n-a.V,a.i(new N("ads-loaded",(new Map).set("loadTime",r))),q=new hb(k.manifestUrl),a.l.resolve(l.resolve(q).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
637
640
  return va(u,0)}wa(u);if(!a.I.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,u.return();a.l.resolve(a.I);a.l=null;F(u)})}
@@ -644,7 +647,7 @@ function bo(a){if(a.g.duration&&(a.h||a.j.length)){var b=a.g.currentTime,c=!1;if
644
647
  e=a.h.getDuration();0<e&&(0>=d||d>e)&&Wn(a)}if(!a.h||!a.h.isLinear()){a:for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.h&&a.h.isLinear())break;for(f=0;f<e.ads.length;f++){var g=e.ads[f],h=g.startTimeInSeconds+g.durationInSeconds;if(g.startTimeInSeconds<=b&&h>b){if(a.M.includes(g.adId)){if(a.g.ended)continue;a.g.currentTime=h;break a}Wn(a);a.L=e;a.h=new Un(g,f+1,e.ads.length,!0,a.g);a.G=g;0===f&&eo(a,"breakStart");fo(a);break}}}if(!a.h)for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;
645
648
  if(a.h)break;for(f=0;f<e.nonLinearAdsList.length;f++)if(g=e.nonLinearAdsList[f],g.nonLinearAdList.length){h=e.startTimeInSeconds;var k=a.H.get(ao(g.nonLinearAdList[0]));if(h<=b&&k&&k.length){Wn(a);h=a;k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.data.source.length){var m=document.createElement("img");m.src=l.data.source[0].url;m.style.top=(l.placeholder.top||0)+"%";m.style.height=100-(l.placeholder.top||0)+"%";m.style.left=(l.placeholder.left||0)+"%";m.style.maxWidth=100-(l.placeholder.left||
646
649
  0)+"%";m.style.objectFit="contain";m.style.position="absolute";h.D.appendChild(m)}a.L=e;a.h=new Un(g,f+1,e.ads.length,!1,a.g);a.G=g;0===f&&eo(a,"breakStart");fo(a);break}}}c&&!a.h&&(b=a.g.currentTime,a.C&&a.C>b&&(a.g.currentTime=a.C),a.C=null)}}}
647
- function Wn(a){if(a.h){for(;a.D.lastChild;)a.D.removeChild(a.D.firstChild);a.J||a.M.push(a.G.adId);eo(a,"complete");for(var b=t(a.m),c=b.next();!c.done;c=b.next())c=c.value,a.s.cc(c.target,c.type,c.listener);a.m=[];a.u=[];b=a.h.getPositionInSequence();c=a.h.getSequenceLength();b===c&&eo(a,"breakEnd");a.h=null;a.G=null;a.L=null}}
650
+ function Wn(a){if(a.h){for(;a.D.lastChild;)a.D.removeChild(a.D.firstChild);a.J||a.M.push(a.G.adId);eo(a,"complete");for(var b=t(a.m),c=b.next();!c.done;c=b.next())c=c.value,a.s.dc(c.target,c.type,c.listener);a.m=[];a.u=[];b=a.h.getPositionInSequence();c=a.h.getSequenceLength();b===c&&eo(a,"breakEnd");a.h=null;a.G=null;a.L=null}}
648
651
  function fo(a){var b=!1;a.g.paused?b=!0:(eo(a,"impression"),eo(a,"start"));a.m.push({target:a.g,type:"volumechange",listener:function(){a.g.muted&&eo(a,"mute")}});a.m.push({target:a.g,type:"volumechange",listener:function(){a.g.muted||eo(a,"unmute")}});a.m.push({target:a.g,type:"play",listener:function(){b?(eo(a,"impression"),eo(a,"start"),b=!1):eo(a,"resume")}});a.m.push({target:a.g,type:"pause",listener:function(){eo(a,"pause")}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.s.o(d.target,
649
652
  d.type,d.listener)}
650
653
  function eo(a,b){var c=a.G.trackingEvents.find(function(e){return e.eventType==b});c||(c=a.L.adBreakTrackingEvents.find(function(e){return e.eventType==b}));if(c){c=t(c.beaconUrls);for(var d=c.next();!d.done;d=c.next())(d=d.value)&&""!=d&&(d=zf([d],jf()),d.method="POST",a.K.request(7,d))}switch(b){case "impression":a.i(new N("ad-impression"));break;case "start":a.i(new N("ad-started",(new Map).set("ad",a.h)));break;case "mute":a.i(new N("ad-muted"));break;case "unmute":a.i(new N("ad-volume-changed"));break;
@@ -663,8 +666,8 @@ function io(a,b){a.i(new N("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-
663
666
  p.release=function(){this.h&&(this.h.release(),this.h=null);this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);bb.prototype.release.call(this)};p.onAssetUnload=function(){this.h&&this.h.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new N("ad-stopped"));this.j=new Ln};p.requestClientSideAds=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.H=Date.now()/1E3;b.l.requestAds(a)};
664
667
  p.updateClientSideAdsRenderingSettings=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};p.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Vn(a,b,c,function(e){return jo(d,e)})};p.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new P(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new P(1,10,10004)):(d.l=new lf,Yn(d,a,b),d.I=c||"",d.V=Date.now()/1E3,a=d.l);return a};
665
668
  p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new P(2,10,10002);this.g&&this.g.release();this.g=new ho(a,b,this.m,function(d){return jo(c,d)});this.g.configure(this.l)};
666
- p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ta('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.7.3";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
667
- (c.I=!0),c.j=new lf,c.g.requestStream(a),c.D=b||"",c.H=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ta('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.7.3";this.g.g.replaceAdTagParameters(a)};
669
+ p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ta('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.7.5";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
670
+ (c.I=!0),c.j=new lf,c.g.requestStream(a),c.D=b||"",c.H=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ta('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.7.5";this.g.g.replaceAdTagParameters(a)};
668
671
  p.getServerSideCuePoints=function(){Le("AdManager","Please use getCuePoints function.");return this.getCuePoints()};p.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};p.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};p.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
669
672
  p.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};p.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};
670
673
  function jo(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.j.h.push(b.loadTime);break;case "ad-started":a.j.g++;break;case "ad-complete":a.j.i++;break;case "ad-skipped":a.j.j++}a.dispatchEvent(b)}L("shaka.ads.AdManager",W);W.prototype.onCueMetadataChange=W.prototype.onCueMetadataChange;W.prototype.onHlsTimedMetadata=W.prototype.onHlsTimedMetadata;W.prototype.onDashTimedMetadata=W.prototype.onDashTimedMetadata;W.prototype.onManifestUpdated=W.prototype.onManifestUpdated;W.prototype.getStats=W.prototype.getStats;
@@ -678,136 +681,136 @@ function mo(a){return{length:a.length,start:function(b){return a.start[b]},end:f
678
681
  var no="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),oo="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),po=["loop","playbackRate"],qo=["pause","play"],ro={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
679
682
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10,getManifestType:10},so={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},to={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},uo=[["getConfiguration","configure"]],vo=[["isTextTrackVisible","setTextTrackVisibility"]],wo="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
680
683
  xo=["attach","attachCanvas","detach","load","unload"];function yo(a,b,c,d,e,f,g){var h=this;this.I=a;this.M=g;this.j=new Fd(b);this.N=c;this.C=!1;this.u=d;this.H=e;this.K=f;this.h=this.m=!1;this.L="";this.s=null;this.D=function(){return zo(h)};this.G=function(k,l){k=lo(l);switch(k.type){case "event":var m=k.targetName,n=Pa(k.event);h.u(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var r in m[n])k[r]=m[n][r]}h.C&&(h.N(),h.C=!1);break;case "asyncComplete":if(n=k.id,r=k.error,k=h.i[n],delete h.i[n],k)if(r){n=new P(r.severity,r.category,
681
- r.code);for(m in r)n[m]=r[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;Ao.add(this)}p=yo.prototype;p.destroy=function(){Ao.delete(this);Bo(this);Co&&Do(this);this.j&&(this.j.stop(),this.j=null);this.H=this.u=null;this.h=this.m=!1;this.G=this.D=this.l=this.i=this.g=this.s=null;return Promise.resolve()};p.Fa=function(){return this.h};p.ze=function(){return this.L};
682
- p.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.Ma();var a=new chrome.cast.SessionRequest(this.I,[],null,this.M,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Ao),d=c.next();!d.done;d=c.next())Eo(d.value,b)},function(b){for(var c=t(Ao),d=c.next();!d.done;d=c.next())d=d.value,Fo="available"==b,d.j.Ma()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Fo&&this.j.R(Go);(a=Co)&&a.status!=chrome.cast.SessionStatus.STOPPED?
683
- Eo(this,a):Co=null}else window.__onGCastApiAvailable!==Ho&&(Io=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Ho)};p.eg=function(a){this.s=a;this.h&&Jo(this,{type:"appData",appData:this.s})};p.cast=function(a){var b=this;return K(function(c){if(!b.m)throw new P(1,8,8E3);if(!Fo)throw new P(1,8,8001);if(b.h)throw new P(1,8,8002);b.l=new lf;chrome.cast.requestSession(function(d){return Ko(b,a,d)},function(d){return Lo(b,d)});return D(c,b.l,0)})};
684
- function Mo(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return Ko(a,b,c)},function(c){return Lo(a,c)})}}p.Ec=function(){if(this.h){Bo(this);if(Co){Do(this);try{Co.stop(function(){},function(){})}catch(a){}Co=null}zo(this)}};
685
- p.get=function(a,b){var c=this;if("video"==a){if(qo.includes(b))return function(){return c.dh.apply(c,[a,b].concat(w(Ga.apply(0,arguments))))}}else if("player"==a){if(to[b]&&!this.get("player","isLive")())return function(){};if(wo.includes(b))return function(){return c.dh.apply(c,[a,b].concat(w(Ga.apply(0,arguments))))};if(xo.includes(b))return function(){return c.Yi.apply(c,[a,b].concat(w(Ga.apply(0,arguments))))};if(ro[b]||so[b])return function(){return c.g[a][b]}}return this.g[a][b]};
684
+ r.code);for(m in r)n[m]=r[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;Ao.add(this)}p=yo.prototype;p.destroy=function(){Ao.delete(this);Bo(this);Co&&Do(this);this.j&&(this.j.stop(),this.j=null);this.H=this.u=null;this.h=this.m=!1;this.G=this.D=this.l=this.i=this.g=this.s=null;return Promise.resolve()};p.Ha=function(){return this.h};p.De=function(){return this.L};
685
+ p.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.Na();var a=new chrome.cast.SessionRequest(this.I,[],null,this.M,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Ao),d=c.next();!d.done;d=c.next())Eo(d.value,b)},function(b){for(var c=t(Ao),d=c.next();!d.done;d=c.next())d=d.value,Fo="available"==b,d.j.Na()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Fo&&this.j.S(Go);(a=Co)&&a.status!=chrome.cast.SessionStatus.STOPPED?
686
+ Eo(this,a):Co=null}else window.__onGCastApiAvailable!==Ho&&(Io=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Ho)};p.ig=function(a){this.s=a;this.h&&Jo(this,{type:"appData",appData:this.s})};p.cast=function(a){var b=this;return K(function(c){if(!b.m)throw new P(1,8,8E3);if(!Fo)throw new P(1,8,8001);if(b.h)throw new P(1,8,8002);b.l=new lf;chrome.cast.requestSession(function(d){return Ko(b,a,d)},function(d){return Lo(b,d)});return D(c,b.l,0)})};
687
+ function Mo(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return Ko(a,b,c)},function(c){return Lo(a,c)})}}p.Hc=function(){if(this.h){Bo(this);if(Co){Do(this);try{Co.stop(function(){},function(){})}catch(a){}Co=null}zo(this)}};
688
+ p.get=function(a,b){var c=this;if("video"==a){if(qo.includes(b))return function(){return c.ih.apply(c,[a,b].concat(w(Ga.apply(0,arguments))))}}else if("player"==a){if(to[b]&&!this.get("player","isLive")())return function(){};if(wo.includes(b))return function(){return c.ih.apply(c,[a,b].concat(w(Ga.apply(0,arguments))))};if(xo.includes(b))return function(){return c.bj.apply(c,[a,b].concat(w(Ga.apply(0,arguments))))};if(ro[b]||so[b])return function(){return c.g[a][b]}}return this.g[a][b]};
686
689
  p.set=function(a,b,c){this.g[a][b]=c;Jo(this,{type:"set",targetName:a,property:b,value:c})};function Ko(a,b,c){Co=c;c.addUpdateListener(a.D);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);zo(a);Jo(a,{type:"init",initState:b,appData:a.s});a.l.resolve()}function Lo(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new P(2,8,c,b))}
687
- p.dh=function(a,b){Jo(this,{type:"call",targetName:a,methodName:b,args:Ga.apply(2,arguments)})};p.Yi=function(a,b){var c=Ga.apply(2,arguments),d=new lf,e=this.J.toString();this.J++;this.i[e]=d;try{Jo(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Eo(a,b){var c=a.K();a.l=new lf;a.C=!0;Ko(a,c,b)}function Do(a){var b=Co;b.removeUpdateListener(a.D);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
688
- function zo(a){var b=Co?"connected"==Co.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};Bo(a)}a.h=b;a.L=b?Co.receiver.friendlyName:"";a.j.Ma()}function Bo(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new P(1,7,7E3))}}function Jo(a,b){b=ko(b);var c=Co;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Xa)}catch(d){throw b=new P(2,8,8005,d),c=new N("error",(new Map).set("detail",b)),a.u("player",c),a.Ec(),b;}}var Go=.02,Fo=!1,Co=null,Io=null,Ao=new Set;
690
+ p.ih=function(a,b){Jo(this,{type:"call",targetName:a,methodName:b,args:Ga.apply(2,arguments)})};p.bj=function(a,b){var c=Ga.apply(2,arguments),d=new lf,e=this.J.toString();this.J++;this.i[e]=d;try{Jo(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Eo(a,b){var c=a.K();a.l=new lf;a.C=!0;Ko(a,c,b)}function Do(a){var b=Co;b.removeUpdateListener(a.D);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
691
+ function zo(a){var b=Co?"connected"==Co.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};Bo(a)}a.h=b;a.L=b?Co.receiver.friendlyName:"";a.j.Na()}function Bo(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new P(1,7,7E3))}}function Jo(a,b){b=ko(b);var c=Co;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Xa)}catch(d){throw b=new P(2,8,8005,d),c=new N("error",(new Map).set("detail",b)),a.u("player",c),a.Hc(),b;}}var Go=.02,Fo=!1,Co=null,Io=null,Ao=new Set;
689
692
  function Ho(a){Io?window.__onGCastApiAvailable=Io:delete window.__onGCastApiAvailable;Io=null;if(a)for(var b=t(Ao),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function No(a,b,c,d){d=void 0===d?!1:d;bb.call(this);var e=this;this.i=a;this.h=b;this.m=this.s=this.j=this.u=this.l=null;this.G=c;this.D=d;this.C=new Map;this.g=new yo(c,function(){return Oo(e)},function(){return Po(e)},function(f,g){return Qo(e,f,g)},function(){return Ro(e)},function(){return So(e)},d);To(this)}pa(No,bb);p=No.prototype;
690
- p.destroy=function(a){a&&this.g.Ec();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.u=this.l=this.i=null;bb.prototype.release.call(this);return Promise.all(a)};p.Yb=function(){return this.l};p.Gc=function(){return this.u};p.Ye=function(){return this.g.m&&Fo};p.Fa=function(){return this.g.Fa()};p.ze=function(){return this.g.ze()};
691
- p.cast=function(){var a=this,b;return K(function(c){return 1==c.g?(b=So(a),D(c,a.g.cast(b),2)):a.h?D(c,a.h.Sc(),0):c.return()})};p.eg=function(a){this.g.eg(a)};p.ph=function(){Mo(this.g)};p.Ec=function(){this.g.Ec()};
692
- p.Cg=function(a,b){b=void 0===b?!1:b;var c=this;return K(function(d){if(1==d.g){if(a==c.G&&b==c.D)return d.return();c.G=a;c.D=b;c.g.Ec();return D(d,c.g.destroy(),2)}c.g=null;c.g=new yo(a,function(){return Oo(c)},function(){return Po(c)},function(e,f){return Qo(c,e,f)},function(){return Ro(c)},function(){return So(c)},b);c.g.init();F(d)})};
693
- function To(a){a.g.init();a.m=new Jf;for(var b=t(no),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.Fa()||(f=Pa(f),a.j.dispatchEvent(f))});for(var d in Qa)a.m.o(a.h,Qa[d],function(f){a.g.Fa()||a.s.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.Xc=e,Object.defineProperty(a.l,b.Xc,{configurable:!1,enumerable:!0,get:function(f){return function(){return Uo(a,f.Xc)}}(b),set:function(f){return function(g){var h=f.Xc;a.g.Fa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={Xc:b.Xc};a.u={};Vo(a,
694
- function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return Wo(a,f)}})});Xo(a);a.j=new bb;a.j.ke=a.l;a.s=new bb;a.s.ke=a.u}function Xo(a){var b=new Map;Vo(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.C.set(c,d):a.C.set(d,c)):b.set(d,c)})}
693
+ p.destroy=function(a){a&&this.g.Hc();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.u=this.l=this.i=null;bb.prototype.release.call(this);return Promise.all(a)};p.Zb=function(){return this.l};p.Kc=function(){return this.u};p.df=function(){return this.g.m&&Fo};p.Ha=function(){return this.g.Ha()};p.De=function(){return this.g.De()};
694
+ p.cast=function(){var a=this,b;return K(function(c){return 1==c.g?(b=So(a),D(c,a.g.cast(b),2)):a.h?D(c,a.h.Vc(),0):c.return()})};p.ig=function(a){this.g.ig(a)};p.sh=function(){Mo(this.g)};p.Hc=function(){this.g.Hc()};
695
+ p.Hg=function(a,b){b=void 0===b?!1:b;var c=this;return K(function(d){if(1==d.g){if(a==c.G&&b==c.D)return d.return();c.G=a;c.D=b;c.g.Hc();return D(d,c.g.destroy(),2)}c.g=null;c.g=new yo(a,function(){return Oo(c)},function(){return Po(c)},function(e,f){return Qo(c,e,f)},function(){return Ro(c)},function(){return So(c)},b);c.g.init();F(d)})};
696
+ function To(a){a.g.init();a.m=new Jf;for(var b=t(no),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.Ha()||(f=Pa(f),a.j.dispatchEvent(f))});for(var d in Qa)a.m.o(a.h,Qa[d],function(f){a.g.Ha()||a.s.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.Zc=e,Object.defineProperty(a.l,b.Zc,{configurable:!1,enumerable:!0,get:function(f){return function(){return Uo(a,f.Zc)}}(b),set:function(f){return function(g){var h=f.Zc;a.g.Ha()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={Zc:b.Zc};a.u={};Vo(a,
697
+ function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return Wo(a,f)}})});Xo(a);a.j=new bb;a.j.qe=a.l;a.s=new bb;a.s.qe=a.u}function Xo(a){var b=new Map;Vo(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.C.set(c,d):a.C.set(d,c)):b.set(d,c)})}
695
698
  function Vo(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=t(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
696
- function So(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.xf(),startTime:null};a.i.pause();for(var c=t(po),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(uo);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(vo);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function Oo(a){var b=new N("caststatuschanged");a.dispatchEvent(b)}
699
+ function So(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.Bf(),startTime:null};a.i.pause();for(var c=t(po),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(uo);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(vo);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function Oo(a){var b=new N("caststatuschanged");a.dispatchEvent(b)}
697
700
  function Po(a){var b=new N(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
698
- function Ro(a){for(var b=t(uo),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.i.autoplay=!1,b=a.h.load(e,d));var g={};c=t(po);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var h=t(po),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=t(vo);for(k=
699
- h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new N("error",h);a.h.dispatchEvent(h)})}
700
- function Uo(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.Fa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Fa()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
701
- function Wo(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.s.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.s.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Tb()};if("getDrmEngine"==b)return function(){return a.h.s};if("getAdManager"==b)return function(){return a.h.Zd()};
702
- if("setVideoContainer"==b)return function(c){return a.h.lg(c)};if(a.g.Fa()){if("getManifest"==b||"drmInfo"==b)return function(){Ta(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ta(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Fa()&&0==Object.keys(a.g.g.video).length&&(ro[b]||so[b])||!a.g.Fa()?a.h[b].bind(a.h):a.g.get("player",b)}
703
- function Qo(a,b,c){a.g.Fa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}L("shaka.cast.CastProxy",No);No.prototype.changeReceiverId=No.prototype.Cg;No.prototype.forceDisconnect=No.prototype.Ec;No.prototype.suggestDisconnect=No.prototype.ph;No.prototype.setAppData=No.prototype.eg;No.prototype.cast=No.prototype.cast;No.prototype.receiverName=No.prototype.ze;No.prototype.isCasting=No.prototype.Fa;No.prototype.canCast=No.prototype.Ye;No.prototype.getPlayer=No.prototype.Gc;
704
- No.prototype.getVideo=No.prototype.Yb;No.prototype.destroy=No.prototype.destroy;function Yo(a,b,c,d){bb.call(this);var e=this;this.g=a;this.h=b;this.j=new Jf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.s=!0;this.m=0;this.D=!1;this.C=!0;this.u=this.l=null;this.I=new Fd(function(){Zo(e)});$o(this)}pa(Yo,bb);p=Yo.prototype;p.isConnected=function(){return this.H};p.Di=function(){return this.s};p.ij=function(a){this.i=a};p.Ih=function(){this.i=null};
705
- p.jj=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};p.hj=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};p.gj=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
701
+ function Ro(a){for(var b=t(uo),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();d=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var g;(d=a.g.get("player","getTextTracks")())&&d.length&&(g=d.find(function(l){return l.active}));var h=a.g.get("player","isTextTrackVisible")();e&&(a.i.autoplay=!1,b=a.h.load(e,c));var k={};c=t(po);for(d=c.next();!d.done;d=c.next())d=
702
+ d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(po),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(vo);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n)}a.h.Ie(h);g&&a.h.gg(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new N("error",l);a.h.dispatchEvent(l)})}
703
+ function Uo(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.Ha()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Ha()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
704
+ function Wo(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.s.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.s.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Vb()};if("getDrmEngine"==b)return function(){return a.h.s};if("getAdManager"==b)return function(){return a.h.be()};
705
+ if("setVideoContainer"==b)return function(c){return a.h.pg(c)};if(a.g.Ha()){if("getManifest"==b||"drmInfo"==b)return function(){Ta(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ta(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ha()&&0==Object.keys(a.g.g.video).length&&(ro[b]||so[b])||!a.g.Ha()?a.h[b].bind(a.h):a.g.get("player",b)}
706
+ function Qo(a,b,c){a.g.Ha()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}L("shaka.cast.CastProxy",No);No.prototype.changeReceiverId=No.prototype.Hg;No.prototype.forceDisconnect=No.prototype.Hc;No.prototype.suggestDisconnect=No.prototype.sh;No.prototype.setAppData=No.prototype.ig;No.prototype.cast=No.prototype.cast;No.prototype.receiverName=No.prototype.De;No.prototype.isCasting=No.prototype.Ha;No.prototype.canCast=No.prototype.df;No.prototype.getPlayer=No.prototype.Kc;
707
+ No.prototype.getVideo=No.prototype.Zb;No.prototype.destroy=No.prototype.destroy;function Yo(a,b,c,d){bb.call(this);var e=this;this.g=a;this.h=b;this.j=new Jf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.s=!0;this.m=0;this.D=!1;this.C=!0;this.u=this.l=null;this.I=new Fd(function(){Zo(e)});$o(this)}pa(Yo,bb);p=Yo.prototype;p.isConnected=function(){return this.H};p.Gi=function(){return this.s};p.mj=function(a){this.i=a};p.Lh=function(){this.i=null};
708
+ p.nj=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};p.lj=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};p.kj=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
706
709
  p.destroy=function(){var a=this,b,c;return K(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.s=!0,a.l=null,a.u=null,bb.prototype.release.call(a),D(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();F(d)})};
707
710
  function $o(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return ap(a)};b.onSenderDisconnected=function(){return ap(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&bp(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);bp(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.u=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.u.onMessage=function(e){return cp(a,
708
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return dp(a,e)};b.start();b=t(no);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return ep(a,"video",e)});for(var d in Qa)a.j.o(a.h,Qa[d],function(e){return ep(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.hg(3840,2160):a.h.hg(1920,1080);a.j.o(a.g,"loadeddata",function(){a.D=!0});a.j.o(a.h,"loading",function(){a.s=
709
- !1;fp(a)});a.j.o(a.g,"playing",function(){a.s=!1;fp(a)});a.j.o(a.g,"pause",function(){fp(a)});a.j.o(a.h,"unloading",function(){a.s=!0;fp(a)});a.j.o(a.g,"ended",function(){(new Fd(function(){a.g&&a.g.ended&&(a.s=!0,fp(a))})).R(gp)})}function ap(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;fp(a)}
711
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return dp(a,e)};b.start();b=t(no);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return ep(a,"video",e)});for(var d in Qa)a.j.o(a.h,Qa[d],function(e){return ep(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.lg(3840,2160):a.h.lg(1920,1080);a.j.o(a.g,"loadeddata",function(){a.D=!0});a.j.o(a.h,"loading",function(){a.s=
712
+ !1;fp(a)});a.j.o(a.g,"playing",function(){a.s=!1;fp(a)});a.j.o(a.g,"pause",function(){fp(a)});a.j.o(a.h,"unloading",function(){a.s=!0;fp(a)});a.j.o(a.g,"ended",function(){(new Fd(function(){a.g&&a.g.ended&&(a.s=!0,fp(a))})).S(gp)})}function ap(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;fp(a)}
710
713
  function fp(a){var b;K(function(c){if(1==c.g)return D(c,Promise.resolve(),2);if(!a.h)return c.return();b=new N("caststatuschanged");a.dispatchEvent(b);hp(a)||ip(a);F(c)})}
711
714
  function jp(a,b,c){var d,e,f,g,h,k,l,m,n,r;K(function(q){switch(q.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.G(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,ta(q,5),D(q,a.h.load(b.manifest,b.startTime),7)):D(q,Promise.resolve(),3);case 7:va(q,3);break;case 5:return g=wa(q),h=(new Map).set("detail",g),k=new N("error",h),a.h&&a.h.dispatchEvent(k),q.return();case 3:if(!a.h)return q.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)r=b.playerAfterLoad[n],a.h[n](r);
712
715
  a.g.autoplay=f;b.manifest&&(a.g.play(),ip(a));F(q)}})}function ep(a,b,c){a.h&&(Zo(a),bp(a,{type:"event",targetName:b,event:c},a.l))}
713
- function Zo(a){a.I.R(kp);for(var b={video:{},player:{}},c=t(oo),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.S())for(var e in to)0==a.m%to[e]&&(b.player[e]=a.h[e]());for(var f in ro)0==a.m%ro[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;bp(a,{type:"update",update:b},a.l);for(var g in so)0==a.m%so[g]&&(b={player:{}},b.player[g]=a.h[g](),bp(a,{type:"update",update:b},a.l));a.D&&(a.m+=
714
- 1);hp(a)}function hp(a){return a.C&&(a.g.duration||a.h.S())?(lp(a),a.C=!1,!0):!1}function lp(a,b){var c={contentId:a.h.xf(),streamType:a.h.S()?"LIVE":"BUFFERED",contentType:""};a.h.S()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);ip(a,void 0===b?0:b,c)}
716
+ function Zo(a){a.I.S(kp);for(var b={video:{},player:{}},c=t(oo),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.R())for(var e in to)0==a.m%to[e]&&(b.player[e]=a.h[e]());for(var f in ro)0==a.m%ro[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;bp(a,{type:"update",update:b},a.l);for(var g in so)0==a.m%so[g]&&(b={player:{}},b.player[g]=a.h[g](),bp(a,{type:"update",update:b},a.l));a.D&&(a.m+=
717
+ 1);hp(a)}function hp(a){return a.C&&(a.g.duration||a.h.R())?(lp(a),a.C=!1,!0):!1}function lp(a,b){var c={contentId:a.h.Bf(),streamType:a.h.R()?"LIVE":"BUFFERED",contentType:""};a.h.R()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);ip(a,void 0===b?0:b,c)}
715
718
  function dp(a,b){var c=lo(b.data);switch(c.type){case "init":a.m=0;a.D=!1;a.C=!0;jp(a,c.initState,c.appData);Zo(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break}else if("muted"==e){b.setSystemVolumeMuted(c);break}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=c.methodName;
716
719
  "player"==d&&"load"==e&&(a.m=0,a.D=!1);var f=c.id,g=b.senderId;b=a.J[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return mp(a,g,f,null)},function(h){return mp(a,g,f,h)})}}
717
- function cp(a,b){var c=lo(b.data);switch(c.type){case "PLAY":a.g.play();ip(a);break;case "PAUSE":a.g.pause();ip(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),ip(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),ip(a));break;case "STOP":a.h.Sc().then(function(){a.h&&ip(a)});break;case "GET_STATUS":lp(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
720
+ function cp(a,b){var c=lo(b.data);switch(c.type){case "PLAY":a.g.play();ip(a);break;case "PAUSE":a.g.pause();ip(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),ip(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),ip(a));break;case "STOP":a.h.Vc().then(function(){a.h&&ip(a)});break;case "GET_STATUS":lp(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
718
721
  null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||ip(a);break;case "LOAD":a.m=0;a.D=!1;a.C=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.G(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&lp(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");bp(a,{requestId:Number(c.requestId),type:h},a.u)});break;default:bp(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.u)}}
719
- function mp(a,b,c,d){a.h&&bp(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function bp(a,b,c,d){a.H&&(a=ko(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function ip(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.s?np:a.h.ud()?op:a.g.paused?pp:qp,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);bp(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.u)}
720
- L("shaka.cast.CastReceiver",Yo);Yo.prototype.destroy=Yo.prototype.destroy;Yo.prototype.setContentArtist=Yo.prototype.gj;Yo.prototype.setContentImage=Yo.prototype.hj;Yo.prototype.setContentTitle=Yo.prototype.jj;Yo.prototype.clearContentMetadata=Yo.prototype.Ih;Yo.prototype.setContentMetadata=Yo.prototype.ij;Yo.prototype.isIdle=Yo.prototype.Di;Yo.prototype.isConnected=Yo.prototype.isConnected;var kp=.5,gp=5,np="IDLE",qp="PLAYING",op="BUFFERING",pp="PAUSED";function rp(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=sp(d,e,h,k,l,m);f<=g;f++){for(var r=c[f],q=-1,u=-1,v=0;v<r.length;v++)if(null!=r[v]&&""!==r[v].g.trim()){q=v;break}for(v=r.length-1;0<=v;v--)if(null!=r[v]&&""!==r[v].g.trim()){u=v;break}if(-1===
722
+ function mp(a,b,c,d){a.h&&bp(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function bp(a,b,c,d){a.H&&(a=ko(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function ip(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.s?np:a.h.xd()?op:a.g.paused?pp:qp,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);bp(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.u)}
723
+ L("shaka.cast.CastReceiver",Yo);Yo.prototype.destroy=Yo.prototype.destroy;Yo.prototype.setContentArtist=Yo.prototype.kj;Yo.prototype.setContentImage=Yo.prototype.lj;Yo.prototype.setContentTitle=Yo.prototype.nj;Yo.prototype.clearContentMetadata=Yo.prototype.Lh;Yo.prototype.setContentMetadata=Yo.prototype.mj;Yo.prototype.isIdle=Yo.prototype.Gi;Yo.prototype.isConnected=Yo.prototype.isConnected;var kp=.5,gp=5,np="IDLE",qp="PLAYING",op="BUFFERING",pp="PAUSED";function rp(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=sp(d,e,h,k,l,m);f<=g;f++){for(var r=c[f],q=-1,u=-1,v=0;v<r.length;v++)if(null!=r[v]&&""!==r[v].g.trim()){q=v;break}for(v=r.length-1;0<=v;v--)if(null!=r[v]&&""!==r[v].g.trim()){u=v;break}if(-1===
721
724
  q||-1===u)r=tp(d,e),a.nestedCues.push(r);else{for(;q<=u;q++)if(v=r[q]){var y=v.l,z=v.i,x=v.j,B=v.h;if(y!=h||z!=k||x!=l||B!=m)n.payload&&a.nestedCues.push(n),n=sp(d,e,y,z,x,B),h=y,k=z,l=x,m=B;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=tp(d,e),a.nestedCues.push(n));n=sp(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
722
- function sp(a,b,c,d,e,f){a=new Ac(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function tp(a,b){a=new Ac(a,b,"");a.lineBreak=!0;return a}function up(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function vp(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.u=b;this.j=this.m=!1;this.l="white";this.s="black";wp(this)}function xp(a,b,c){var d="CC"+(a.C<<1|a.u+1),e=new Ac(b,c,"");e.lineInterpretation=1;var f=yp.get(a.g);f&&(e.line=f);return rp(e,d,a.i,b,c)}function wp(a){zp(a,0,15);a.g=1}
725
+ function sp(a,b,c,d,e,f){a=new Ac(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function tp(a,b){a=new Ac(a,b,"");a.lineBreak=!0;return a}function up(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function vp(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.u=b;this.j=this.m=!1;this.l="white";this.s="black";wp(this)}function xp(a,b,c){var d="CC"+((a.C<<1|a.u)+1),e=new Ac(b,c,"");e.lineInterpretation=1;var f=yp.get(a.g);f&&(e.line=f);return rp(e,d,a.i,b,c)}function wp(a){zp(a,0,15);a.g=1}
723
726
  function Ap(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case Bp:d=Cp.has(c)?Cp.get(c):String.fromCharCode(c);break;case Dp:d=Ep.get(c);break;case Fp:a.i[a.g].pop();d=Gp.get(c);break;case Hp:a.i[a.g].pop(),d=Ip.get(c)}d&&a.i[a.g].push(new up(d,a.m,a.j,a.s,a.l))}}function Jp(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function zp(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
724
727
  var Bp=0,Dp=1,Fp=2,Hp=3,Cp=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[92,"\u00e9"],[94,"\u00ed"],[95,"\u00f3"],[96,"\u00fa"],[123,"\u00e7"],[124,"\u00f7"],[125,"\u00d1"],[126,"\u00f1"],[127,"\u2588"]]),Ep=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57,"\u2800"],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),Gp=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
725
728
  [35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),Ip=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
726
729
  [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]),yp=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 Kp(a,b){this.h=Lp;this.s=new vp(a,b);this.i=new vp(a,b);this.g=this.j=new vp(a,b);this.l=0;this.m=null}function Mp(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Np&&a.h!==Op&&(e=xp(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,zp(c,0,15),c=a.j,c.g=0<c.h?c.h:0,zp(c,0,15),d.g=15);a.h=Np;d.h=b;return e}function Pp(a){a.h=Qp;a.g=a.j;a.g.h=0}function Rp(a){Ua("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=Op}
727
730
  var Lp=0,Qp=1,Np=3,Op=4,Sp="black green blue cyan red yellow magenta black".split(" "),Tp="white green blue cyan red yellow magenta white_italics".split(" ");function Up(a,b){this.K=b;this.N=a;this.L=this.l=!1;this.m=this.s=this.I=this.M=this.J=0;this.H=Vp;this.i=[];this.g=this.h=this.j=0;this.G=this.C=!1;this.D="white";this.u="black";Wp(this)}function Wp(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Xp())}function Xp(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Yp(a,b){Zp(a)&&(a.i[a.h][a.g]=new up(b,a.G,a.C,a.u,a.D),a.g++)}function Zp(a){var b=a.g<a.m&&0<=a.g;return a.h<a.s&&0<=a.h&&b}Up.prototype.isVisible=function(){return this.l};
728
- function $p(a,b,c){var d=new Ac(a.j,b,"");d.textAlign=a.H===aq?"left":a.H===bq?"right":Dc;var e=d.region;a.K&&(e.id+="svc"+a.K);e.id+="win"+a.N;e.height=a.s;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.J;e.viewportAnchorY=a.M;e.viewportAnchorUnits=a.L?Vc:2;switch(a.I){case cq:e.regionAnchorX=0;e.regionAnchorY=0;break;case dq:e.regionAnchorX=50;e.regionAnchorY=0;break;case eq:e.regionAnchorX=100;e.regionAnchorY=0;break;case fq:e.regionAnchorX=0;e.regionAnchorY=50;break;case gq:e.regionAnchorX=
729
- 50;e.regionAnchorY=50;break;case hq:e.regionAnchorX=100;e.regionAnchorY=50;break;case iq:e.regionAnchorX=0;e.regionAnchorY=100;break;case jq:e.regionAnchorX=50;e.regionAnchorY=100;break;case kq:e.regionAnchorX=100,e.regionAnchorY=100}if(c=rp(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var aq=0,bq=1,Vp=2,cq=0,dq=1,eq=2,fq=3,gq=4,hq=5,iq=6,jq=7,kq=8;function lq(){this.i=[];this.h=null;this.g=0}function mq(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new nq(a.h)),a.h=null,a.g=0))}function nq(a){this.g=0;this.h=a}nq.prototype.va=function(){return this.g<this.h.length};nq.prototype.Ea=function(){return this.g};function oq(a){if(!a.va())throw new P(2,2,3E3);return a.h[a.g++]}nq.prototype.skip=function(a){if(this.g+a>this.h.length)throw new P(2,2,3E3);this.g+=a};function pq(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
731
+ function $p(a,b,c){var d=new Ac(a.j,b,"");d.textAlign=a.H===aq?"left":a.H===bq?"right":Ec;var e=d.region;a.K&&(e.id+="svc"+a.K);e.id+="win"+a.N;e.height=a.s;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.J;e.viewportAnchorY=a.M;e.viewportAnchorUnits=a.L?Vc:2;switch(a.I){case cq:e.regionAnchorX=0;e.regionAnchorY=0;break;case dq:e.regionAnchorX=50;e.regionAnchorY=0;break;case eq:e.regionAnchorX=100;e.regionAnchorY=0;break;case fq:e.regionAnchorX=0;e.regionAnchorY=50;break;case gq:e.regionAnchorX=
732
+ 50;e.regionAnchorY=50;break;case hq:e.regionAnchorX=100;e.regionAnchorY=50;break;case iq:e.regionAnchorX=0;e.regionAnchorY=100;break;case jq:e.regionAnchorX=50;e.regionAnchorY=100;break;case kq:e.regionAnchorX=100,e.regionAnchorY=100}if(c=rp(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var aq=0,bq=1,Vp=2,cq=0,dq=1,eq=2,fq=3,gq=4,hq=5,iq=6,jq=7,kq=8;function lq(){this.i=[];this.h=null;this.g=0}function mq(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new nq(a.h)),a.h=null,a.g=0))}function nq(a){this.g=0;this.h=a}nq.prototype.xa=function(){return this.g<this.h.length};nq.prototype.Ga=function(){return this.g};function oq(a){if(!a.xa())throw new P(2,2,3E3);return a.h[a.g++]}nq.prototype.skip=function(a){if(this.g+a>this.h.length)throw new P(2,2,3E3);this.g+=a};function pq(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
730
733
  function qq(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=oq(b).value;b=null;c=t(rq(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=$p(e,d,a.i)),Wp(e);return b}if(137===c)for(b=oq(b).value,b=t(rq(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=oq(b).value;b=null;c=t(rq(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=$p(e,d,a.i)),e.l=!1;return b}if(139===c){c=oq(b).value;
731
734
  b=null;c=t(rq(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=$p(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=oq(b).value,sq(a,b,d);if(143===c)return d=sq(a,255,d),tq(a),d;if(144===c)b.skip(1),d=oq(b).value,a.g&&(a.g.C=0<(d&128),a.g.G=0<(d&64));else if(145===c)d=oq(b).value,c=oq(b).value,b.skip(1),a.g&&(b=uq((c&48)>>4,(c&12)>>2,c&3),a.g.D=uq((d&48)>>4,(d&12)>>2,d&3),a.g.u=b);else if(146===c)d=oq(b).value,b=oq(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
732
735
  b.skip(1),d=oq(b).value,b.skip(1),a.g&&(a.g.H=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Up(c,a.i);f.j=d;a.h[c]=f}d=oq(b).value;f=oq(b).value;var g=oq(b).value,h=oq(b).value,k=oq(b).value;b=oq(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.G=!1,b.C=!1,b.D="white",b.u="black");b=a.h[c];b.l=0<(d&32);b.M=f&127;b.J=g;b.I=(h&240)>>4;b.L=0<(f&128);b.s=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return null}
733
736
  function rq(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function sq(a,b,c){var d=null;b=t(rq(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=$p(f,c,a.i));a.h[e]=null}return d}function tq(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function uq(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return vq[a<<2|b<<1|c]}
734
737
  var wq=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),vq="black blue green cyan red magenta yellow white".split(" ");function xq(){this.h=[];this.g=[];this.i=new lq;this.l=0;this.m=new Map([["CC1",new Kp(0,0)],["CC2",new Kp(0,1)],["CC3",new Kp(1,0)],["CC4",new Kp(1,1)]]);this.u=this.s=0;this.j=new Map;this.D=!0;this.C=new Set;yq(this)}xq.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;yq(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())tq(b.value)};
735
738
  function yq(a){a.s=0;a.u=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=Lp,c.g=c.j,c.m=null,wp(c.i),wp(c.j),wp(c.s);a.D=!0}
736
- xq.prototype.extract=function(a,b){if(this.D){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.D=!1}a=new Yf(a,0);if(!(8>a.getLength())&&181===a.qa()&&49===a.Ra()&&1195456820===a.O()&&3===a.qa()&&(c=a.qa(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.qa(),f=(e&4)>>2,g=a.qa(),h=a.qa();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,fb:g,Eb:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
739
+ xq.prototype.extract=function(a,b){if(this.D){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.D=!1}a=new Yf(a,0);if(!(8>a.getLength())&&181===a.ra()&&49===a.Sa()&&1195456820===a.O()&&3===a.ra()&&(c=a.ra(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.ra(),f=(e&4)>>2,g=a.ra(),h=a.ra();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,hb:g,Gb:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
737
740
  xq.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=zq(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())mq(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=Aq(this,d.value),b.push.apply(b,w(d));this.i.i=[];this.h=[];this.g=[];return b};
738
- function zq(a,b){var c=b.type;if(16===(b.fb&112)){var d=b.fb>>3&1;0===c?a.s=d:a.u=d}d="CC"+(c<<1|(c?a.u:a.s)+1);c=a.m.get(d);if(255===b.fb&&255===b.Eb||!b.fb&&!b.Eb||!Bq(b.fb)||!Bq(b.Eb))return 45<=++a.l&&yq(a),null;a.l=0;b.fb&=127;b.Eb&=127;if(!b.fb&&!b.Eb)return null;a.C.add(d);a=null;if(16===(b.fb&112))a:{d=b.fb;a=b.Eb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=Tp[e]:
739
- 7===e&&(f=!0);a=1===(a&1);c.h!==Op&&(e=c.g,c.h===Np&&b!==e.g&&(c=1+b-e.h,Jp(e,c,1+e.g-e.h,e.h),zp(e,0,c-1),zp(e,b+1,15-b)),e.g=b,e.m=a,e.j=f,e.l=d,e.s="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Ap(c.g,Bp,32),d=!1,b=Tp[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Sp[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))Ap(c.g,Dp,a);else if(18===
740
- (d&246)&&32===(a&224))Ap(c.g,d&1?Hp:Fp,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.Eb){case 32:Pp(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Mp(c,2,a);break;case 38:d=Mp(c,3,a);break;case 39:d=Mp(c,4,a);break;case 40:Ap(c.g,Bp,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:wp(c.s);Rp(c);break;case 43:Rp(c);break;case 44:b=c.i;d=null;c.h!==Op&&(d=xp(b,c.l,a));zp(b,0,15);break;case 45:b=c.g;c.h!==Np?d=null:(d=xp(b,c.l,a),f=b.g-b.h+1,Jp(b,f-1,f,b.h),zp(b,0,
741
- f-1),zp(b,b.g,15-b.g),c.l=a);break;case 46:zp(c.j,0,15);break;case 47:b=null,c.h!==Op&&(b=xp(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Pp(c),c.l=a,d=b}a=d;break a}a=null}else d=b.Eb,Ap(c.g,Bp,b.fb),Ap(c.g,Bp,d);return a}
742
- function Aq(a,b){var c=[];try{for(;b.va();){var d=oq(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=oq(b).value&63);if(0!=e){a.C.add("svc"+e);a.j.has(e)||a.j.set(e,new pq(e));for(var g=a.j.get(e),h=b.Ea();b.Ea()-h<f;){e=b;var k=oq(e),l=k.value,m=k.pts;if(16===l){var n=oq(e);l=l<<16|n.value}if(0<=l&&31>=l){var r=m;if(g.g){var q=g.g;e=null;switch(l){case 8:!Zp(q)||0>=q.g&&0>=q.h||(0>=q.g?(q.g=q.m-1,q.h--):q.g--,q.i[q.h][q.g]=null);break;case 13:q.isVisible()&&(e=$p(q,r,g.i));if(q.h+1>=q.s){r=q;for(var u=
741
+ function zq(a,b){var c=b.type;if(16===(b.hb&112)){var d=b.hb>>3&1;0===c?a.s=d:a.u=d}d="CC"+((c<<1|(c?a.u:a.s))+1);c=a.m.get(d);if(255===b.hb&&255===b.Gb||!b.hb&&!b.Gb||!Bq(b.hb)||!Bq(b.Gb))return 45<=++a.l&&yq(a),null;a.l=0;b.hb&=127;b.Gb&=127;if(!b.hb&&!b.Gb)return null;a.C.add(d);a=null;if(16===(b.hb&112))a:{d=b.hb;a=b.Gb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=
742
+ Tp[e]:7===e&&(f=!0);a=1===(a&1);c.h!==Op&&(e=c.g,c.h===Np&&b!==e.g&&(c=1+b-e.h,Jp(e,c,1+e.g-e.h,e.h),zp(e,0,c-1),zp(e,b+1,15-b)),e.g=b,e.m=a,e.j=f,e.l=d,e.s="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Ap(c.g,Bp,32),d=!1,b=Tp[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Sp[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))Ap(c.g,Dp,a);else if(18===
743
+ (d&246)&&32===(a&224))Ap(c.g,d&1?Hp:Fp,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.Gb){case 32:Pp(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Mp(c,2,a);break;case 38:d=Mp(c,3,a);break;case 39:d=Mp(c,4,a);break;case 40:Ap(c.g,Bp,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:wp(c.s);Rp(c);break;case 43:Rp(c);break;case 44:b=c.i;d=null;c.h!==Op&&(d=xp(b,c.l,a));zp(b,0,15);break;case 45:b=c.g;c.h!==Np?d=null:(d=xp(b,c.l,a),f=b.g-b.h+1,Jp(b,f-1,f,b.h),zp(b,0,
744
+ f-1),zp(b,b.g,15-b.g),c.l=a);break;case 46:zp(c.j,0,15);break;case 47:b=null,c.h!==Op&&(b=xp(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Pp(c),c.l=a,d=b}a=d;break a}a=null}else d=b.Gb,Ap(c.g,Bp,b.hb),Ap(c.g,Bp,d);return a}
745
+ function Aq(a,b){var c=[];try{for(;b.xa();){var d=oq(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=oq(b).value&63);if(0!=e){a.C.add("svc"+e);a.j.has(e)||a.j.set(e,new pq(e));for(var g=a.j.get(e),h=b.Ga();b.Ga()-h<f;){e=b;var k=oq(e),l=k.value,m=k.pts;if(16===l){var n=oq(e);l=l<<16|n.value}if(0<=l&&31>=l){var r=m;if(g.g){var q=g.g;e=null;switch(l){case 8:!Zp(q)||0>=q.g&&0>=q.h||(0>=q.g?(q.g=q.m-1,q.h--):q.g--,q.i[q.h][q.g]=null);break;case 13:q.isVisible()&&(e=$p(q,r,g.i));if(q.h+1>=q.s){r=q;for(var u=
743
746
  0,v=1;16>v;v++,u++)r.i[u]=r.i[v];for(v=0;1>v;v++,u++)r.i[u]=Xp()}else q.h++;q.g=0;break;case 14:q.isVisible()&&(e=$p(q,r,g.i));q.i[q.h]=Xp();q.g=0;break;case 12:q.isVisible()&&(e=$p(q,r,g.i)),Wp(q),r=q,r.h=0,r.g=0}var y=e}else y=null}else if(128<=l&&159>=l)y=qq(g,e,l,m);else{if(4096<=l&&4127>=l)r=l&255,8<=r&&15>=r?e.skip(1):16<=r&&23>=r?e.skip(2):24<=r&&31>=r&&e.skip(3);else if(4224<=l&&4255>=l)r=l&255,128<=r&&135>=r?e.skip(4):136<=r&&143>=r&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Yp(g.g,
744
747
  "\u266a"):Yp(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Yp(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(wq.has(e)){var z=wq.get(e);Yp(g.g,z)}else Yp(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Yp(g.g,"_"):Yp(g.g,"[CC]"));y=null}(e=y)&&c.push(e)}}}}catch(x){if(x instanceof P&&3E3===x.code)Ua("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw x;}return c}function Bq(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}
745
748
  xq.prototype.getStreams=function(){return Array.from(this.C)};L("shaka.cea.CeaDecoder",xq);vc=function(){return new xq};function Cq(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(w(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function Dq(){this.j=new Map;this.i=this.h=0;this.g=Eq}
746
749
  Dq.prototype.init=function(a){function b(f){f=f.name;f in Fq&&(c.g=Fq[f])}var c=this,d=[],e=[];(new ag).box("moov",fg).box("mvex",fg).W("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.O();g=g.O();c.h=f;c.i=g}).box("trak",fg).W("tkhd",function(f){f=gi(f.reader,f.version);d.push(f.trackId)}).box("mdia",fg).W("mdhd",function(f){f=ei(f.reader,f.version);e.push(f.timescale)}).box("minf",fg).box("stbl",fg).W("stsd",hg).box("avc1",b).box("avc3",b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe",
747
- b).box("encv",ig).box("sinf",fg).box("frma",function(f){f=ki(f.reader).ua;f in Fq&&(c.g=Fq[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new P(2,2,2010);this.g==Eq&&Ta("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
748
- Dq.prototype.parse=function(a){var b=this;if(this.g==Eq)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new ag).box("moof",function(l){f=l.start;g=[];fg(l)}).box("traf",fg).W("trun",function(l){l=fi(l.reader,l.version,l.flags);g.push(l)}).W("tfhd",function(l){l=ci(l.reader,l.flags);d=l.Hg||b.h;e=l.Lh||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).W("tfdt",function(l){h=di(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Ta("Unable to find base media decode time for CEA captions!"),
750
+ b).box("encv",ig).box("sinf",fg).box("frma",function(f){f=ki(f.reader).wa;f in Fq&&(c.g=Fq[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new P(2,2,2010);this.g==Eq&&Ta("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
751
+ Dq.prototype.parse=function(a){var b=this;if(this.g==Eq)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new ag).box("moof",function(l){f=l.start;g=[];fg(l)}).box("traf",fg).W("trun",function(l){l=fi(l.reader,l.version,l.flags);g.push(l)}).W("tfhd",function(l){l=ci(l.reader,l.flags);d=l.Mg||b.h;e=l.Oh||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).W("tfdt",function(l){h=di(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Ta("Unable to find base media decode time for CEA captions!"),
749
752
  new P(2,2,2010);Gq(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
750
- function Gq(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.eh});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Kh);b.va();){g=b.O();var r=b.qa(),q=null;q=!1;h=1;switch(a.g){case Hq:q=r&31;q=6==q;break;case Iq:h=2;b.skip(1);q=r>>1&63;q=39==q||40==q;break;default:return}if(q)for(r=0,l<n.length&&(r=n[l].Ae||0),r=(c+r)/d,h=t(Cq(b.Kb(g-h))),q=h.next();!q.done;q=h.next())k.push({packet:q.value,pts:r});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
751
- c+(n[l].ag||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}L("shaka.cea.Mp4CeaParser",Dq);var Eq=0,Hq=1,Iq=2,Fq={avc1:Hq,avc3:Hq,hev1:Iq,hvc1:Iq,dvh1:Iq,dvhe:Iq};uc["video/mp4"]=function(){return new Dq};function Jq(){}Jq.prototype.init=function(){};Jq.prototype.parse=function(a){var b=[];a=nc(a);if(!Bi(a))return b;a=(new vi).parse(a);var c=a.nd(),d=a.fe();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(Cq(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};L("shaka.cea.TsCeaParser",Jq);uc["video/mp2t"]=function(){return new Jq};function Kq(a,b,c){var d=Lq(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(k){return k.keyId}));h.delete(null);if(1<h.size)throw new P(2,4,4010);if(!b){f=d.filter(function(k){return"urn:mpeg:dash:sea:2012"==k.Ed});if(1<f.length)throw new P(2,4,4050);f.length&&(g=Mq(f[0]));f=d.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.Ed?(e=k.init||e,!1):"urn:mpeg:dash:sea:2012"!=k.Ed});f.length&&(a=Nq(e,f,c,h),0==a.length&&(a=[Cb("",e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),
752
- c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Cb(c,e));if(h=Array.from(h)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=h;return{Gg:h,kk:e,drmInfos:a,Ve:g,Kg:!0}}
753
- function Oq(a,b,c,d){var e=Kq(a,c,d);if(b.Kg){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.Kg=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new P(2,4,4008);return e.Gg||b.Gg}
753
+ function Gq(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.jh});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Nh);b.xa();){g=b.O();var r=b.ra(),q=null;q=!1;h=1;switch(a.g){case Hq:q=r&31;q=6==q;break;case Iq:h=2;b.skip(1);q=r>>1&63;q=39==q||40==q;break;default:return}if(q)for(r=0,l<n.length&&(r=n[l].Ee||0),r=(c+r)/d,h=t(Cq(b.Nb(g-h))),q=h.next();!q.done;q=h.next())k.push({packet:q.value,pts:r});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
754
+ c+(n[l].eg||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}L("shaka.cea.Mp4CeaParser",Dq);var Eq=0,Hq=1,Iq=2,Fq={avc1:Hq,avc3:Hq,hev1:Iq,hvc1:Iq,dvh1:Iq,dvhe:Iq};uc["video/mp4"]=function(){return new Dq};function Jq(){}Jq.prototype.init=function(){};Jq.prototype.parse=function(a){var b=[];a=nc(a);if(!Bi(a))return b;a=(new vi).parse(a);var c=a.rd(),d=a.je();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(Cq(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};L("shaka.cea.TsCeaParser",Jq);uc["video/mp2t"]=function(){return new Jq};function Kq(a,b,c){var d=Lq(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(k){return k.keyId}));h.delete(null);if(1<h.size)throw new P(2,4,4010);if(!b){f=d.filter(function(k){return"urn:mpeg:dash:sea:2012"==k.Hd});if(1<f.length)throw new P(2,4,4050);f.length&&(g=Mq(f[0]));f=d.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.Hd?(e=k.init||e,!1):"urn:mpeg:dash:sea:2012"!=k.Hd});f.length&&(a=Nq(e,f,c,h),0==a.length&&(a=[Cb("",e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),
755
+ c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Cb(c,e));if(h=Array.from(h)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=h;return{Lg:h,qk:e,drmInfos:a,$e:g,Pg:!0}}
756
+ function Oq(a,b,c,d){var e=Kq(a,c,d);if(b.Pg){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.Pg=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new P(2,4,4008);return e.Lg||b.Lg}
754
757
  function Pq(a){var b=0,c=rc(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=nc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
755
758
  function Qq(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}
756
759
  function Rq(a){var b=xg(a.node,"https://dashif.org/CPS","Laurl");if(b&&b.textContent)return b.textContent;a=xg(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=pg(a.textContent);a=Pq(a).filter(function(c){return c.type===Sq})[0];if(!a)return"";a=Tf(a.value,!0);return(a=Og(a,"WRMHEADER"))?Qq(a):""}
757
- function Nq(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Ed];if(g){var h;if(h=xg(f.node,"urn:microsoft:playready","pro")){h=pg(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:ug(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Ed)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
760
+ function Nq(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Hd];if(g){var h;if(h=xg(f.node,"urn:microsoft:playready","pro")){h=pg(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:ug(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Hd)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
758
761
  226,251,75]),m=new Uint8Array([]);k=[{initData:ug(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Cb(g,f.init||a||h||k);if(g=Tq.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function Lq(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=Uq(c.value))&&b.push(c);return b}
759
- function Uq(a){var b=a.getAttribute("schemeIdUri"),c=Ag(a,"urn:mpeg:cenc:2013","default_KID"),d=yg(a,"urn:mpeg:cenc:2013","pssh").map(Cg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new P(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:pg(f),keyId:null}})}catch(f){throw new P(2,4,4007);}return{node:a,Ed:b,keyId:c,init:0<e.length?e:null}}
762
+ function Uq(a){var b=a.getAttribute("schemeIdUri"),c=Ag(a,"urn:mpeg:cenc:2013","default_KID"),d=yg(a,"urn:mpeg:cenc:2013","pssh").map(Cg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new P(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:pg(f),keyId:null}})}catch(f){throw new P(2,4,4007);}return{node:a,Hd:b,keyId:c,init:0<e.length?e:null}}
760
763
  function Mq(a){if(!window.crypto||!window.crypto.subtle)throw Ta("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var b=xg(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new P(2,4,4051);if("urn:mpeg:dash:sea:aes128-cbc:2013"!=b.getAttribute("schemeIdUri"))throw new P(2,4,4051);b=xg(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new P(2,4,4051);a=b.getAttribute("IV");b=b.getAttribute("keyUriTemplate");
761
- if(!a||!b)throw new P(2,4,4051);a=qg(a.substr(2));if(16!=a.byteLength)throw new P(2,4,4048);return{Ji:b,iv:a}}
764
+ if(!a||!b)throw new P(2,4,4051);a=qg(a.substr(2));if(16!=a.byteLength)throw new P(2,4,4048);return{Ni:b,iv:a}}
762
765
  var Sq=1,Tq=(new Map).set("com.widevine.alpha",function(a){var b=xg(a.node,"https://dashif.org/CPS","Laurl");return b&&b.textContent?b.textContent:(a=xg(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",Rq).set("com.microsoft.playready.recommendation",Rq).set("com.microsoft.playready.software",Rq).set("com.microsoft.playready.hardware",Rq).set("org.w3.clearkey",function(a){var b=xg(a.node,"https://dashif.org/CPS","Laurl");return b&&b.textContent?
763
766
  b.textContent:(a=xg(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function Vq(a,b,c,d,e,f){var g={RepresentationID:b,Number:c,SubNumber:d,Bandwidth:e,Time:f};return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return"$";var n=g[k];if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&Ta("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=n.toString();
764
767
  break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString()}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h})}
765
768
  function Wq(a,b){var c=Xq(a,b,"timescale"),d=1;c&&(d=Jg(c)||1);var e=Xq(a,b,"duration");c=Jg(e||"");"image"==a.P.contentType&&(c=Lg(e||""));c&&(c/=d);var f=Xq(a,b,"startNumber");e=Number(Xq(a,b,"presentationTimeOffset"))||0;var g=Kg(f||"");if(null==f||null==g)g=1;var h=Yq(a,b,"SegmentTimeline");b=null;if(h){b=d;a=a.ma.duration||Infinity;f=g;h=wg(h,"S");for(var k=[],l=-e,m=0;m<h.length;++m){var n=h[m],r=h[m+1],q=Eg(n,"t",Kg),u=Eg(n,"d",Kg),v=Eg(n,"r",Ig);n=Eg(n,"k",Ig)||0;null!=q&&(q-=e);if(!u)break;
766
- q=null!=q?q:l;v=v||0;if(0>v)if(r){r=Eg(r,"t",Kg);if(null==r)break;else if(q>=r)break;v=Math.ceil((r-q)/u)-1}else{if(Infinity==a)break;else if(q/b>=a)break;v=Math.ceil((a*b-q)/u)-1}0<k.length&&q!=l&&(k[k.length-1].end=q/b);for(r=0;r<=v;++r)l=q+u,k.push({start:q/b,end:l/b,sg:q,vb:n,ej:k.length+f}),q=l}b=k}return{timescale:d,La:c,Id:g,Mb:e/d||0,rg:e,timeline:b}}function Zq(a,b){return[b(a.P),b(a.Ca),b(a.Ia)].filter(Bd)}
769
+ q=null!=q?q:l;v=v||0;if(0>v)if(r){r=Eg(r,"t",Kg);if(null==r)break;else if(q>=r)break;v=Math.ceil((r-q)/u)-1}else{if(Infinity==a)break;else if(q/b>=a)break;v=Math.ceil((a*b-q)/u)-1}0<k.length&&q!=l&&(k[k.length-1].end=q/b);for(r=0;r<=v;++r)l=q+u,k.push({start:q/b,end:l/b,xg:q,yb:n,ij:k.length+f}),q=l}b=k}return{timescale:d,Ma:c,Ld:g,Ob:e/d||0,wg:e,timeline:b}}function Zq(a,b){return[b(a.P),b(a.Ea),b(a.Ja)].filter(Bd)}
767
770
  function Xq(a,b,c){b=Zq(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.getAttribute(c));d=b.next());return a}function Yq(a,b,c){b=Zq(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=vg(d.value,c));d=b.next());return a}
768
- function $q(a,b,c,d,e,f){for(var g=Ag(a,"http://www.w3.org/1999/xlink","href"),h=Ag(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return nf(new P(2,4,4028));if("onLoad"!=h)return nf(new P(2,4,4027));var m=Bb([d],[g]);return e.request(0,zf(m,b)).Da(function(n){n=Qg(n.data,a.tagName);if(!n)return nf(new P(2,4,4001,g));
771
+ function $q(a,b,c,d,e,f){for(var g=Ag(a,"http://www.w3.org/1999/xlink","href"),h=Ag(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return nf(new P(2,4,4028));if("onLoad"!=h)return nf(new P(2,4,4027));var m=Bb([d],[g]);return e.request(0,zf(m,b)).Fa(function(n){n=Qg(n.data,a.tagName);if(!n)return nf(new P(2,4,4001,g));
769
772
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var r=n.childNodes[0];n.removeChild(r);a.appendChild(r)}n=t(Array.from(n.attributes));for(r=n.next();!r.done;r=n.next())a.setAttributeNode(r.value.cloneNode(!1));return ar(a,b,c,m[0],e,f+1)})}
770
- function ar(a,b,c,d,e,f){f=void 0===f?0:f;if(Ag(a,"http://www.w3.org/1999/xlink","href")){var g=$q(a,b,c,d,e,f);c&&(g=g.Da(void 0,function(){return ar(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Ag(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(ar(k,b,c,d,e,f)));return rf(g).Da(function(){return a})};function br(a,b,c,d,e,f,g){var h,k=(new ag).W("sidx",function(l){h=cr(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new P(2,3,3004);}
771
- function cr(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.O();if(0==k)throw new P(2,3,3005);if(0==g.version){var l=g.reader.O();var m=g.reader.O()}else l=g.reader.Qc(),m=g.reader.Qc();g.reader.skip(2);var n=g.reader.Ra();a=a+g.size+m;for(m=0;m<n;m++){var r=g.reader.O(),q=(r&2147483648)>>>31;r&=2147483647;var u=g.reader.O();g.reader.skip(4);if(1==q)throw new P(2,3,3006);h.push(new Oh(l/k+c,(l+u)/k+c,function(){return f},a,a+r-1,b,c,d,e));l+=u;a+=r}g.parser.stop();return h};function dr(a){this.h=rc(a);this.g=new Yf(this.h,0)}dr.prototype.va=function(){return this.g.va()};
772
- function er(a){var b=fr(a);if(7<b.length)throw new P(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=fr(a);a:{d=t(gr);for(var e=d.next();!e.done;e=d.next())if(lc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.Ea();else{if(8==b.length&&b[1]&224)throw new P(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.Ea()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Ea();d=rc(a.h,a.g.Ea(),b);a.g.skip(b);return new hr(c,
773
- d)}function fr(a){var b=a.g.Ea(),c=a.g.qa();if(0==c)throw new P(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return nc(a.h,b,c)}var gr=[[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 hr(a,b){this.id=a;this.g=b}
774
- function ir(a){if(8<a.g.byteLength)throw new P(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new P(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function jr(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new dr(a.g);for(var n=null,r=null;a.va();){var q=er(a);if(187==q.id){var u=kr(q);u&&(q=c*u.nj,u=b+u.Wi,null!=n&&m.push(new Oh(n+g,q+g,l,r,u-1,f,g,h,k)),n=q,r=u)}}null!=n&&m.push(new Oh(n+g,d+g,l,r,null,f,g,h,k));return m}
775
- function kr(a){var b=new dr(a.g);a=er(b);if(179!=a.id)throw new P(2,3,3013);a=ir(a);b=er(b);if(183!=b.id)throw new P(2,3,3012);b=new dr(b.g);for(var c=0;b.va();){var d=er(b);if(241==d.id){c=ir(d);break}}return{nj:a,Wi:c}};function lr(a,b,c){b=Yq(a,b,"Initialization");if(!b)return null;var d=a.P.sb(),e=b.getAttribute("sourceURL");e&&(d=Bb(d,[e]));e=0;var f=null;if(b=Eg(b,"range",Hg))e=b.start,f=b.end;return new Mh(function(){return d},e,f,mr(a),null,null,c)}
776
- function nr(a,b,c){var d=Number(Xq(a,or,"presentationTimeOffset"))||0,e=Xq(a,or,"timescale"),f=1;e&&(f=Jg(e)||1);var g=d/f||0,h=lr(a,or,c);pr(a,h);var k=Dd(a);return{Fc:function(){var l=Yq(k,or,"RepresentationIndex");var m=k.P.sb();l&&(l=l.getAttribute("sourceURL"))&&(m=Bb(m,[l]));l=qr(k);return rr(k,b,h,m,l.start,l.end,g)}}}
777
- function rr(a,b,c,d,e,f,g){var h,k,l,m,n,r,q,u,v,y,z,x,B,A,C;return K(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.Rb||!a.ma.Ef,l=a.ma.start,m=a.ma.duration,n=a.P.mimeType.split("/")[1],r=b,q=null,u=[r(d,e,f,!1),"webm"==n?r(c.ba(),c.cb,c.Ja,!0):null],r=null,D(E,Promise.all(u),2);v=E.h;y=v[0];z=v[1]||null;x=null;B=l-g;A=l;C=m?l+m:Infinity;if("mp4"==n)var H=br(y,e,d,c,B,A,C);else{H=new dr(z);if(440786851!=er(H).id)throw new P(2,3,3008);var G=er(H);if(408125543!=G.id)throw new P(2,3,3009);
778
- H=G.g.byteOffset;G=new dr(G.g);for(var I=null;G.va();){var J=er(G);if(357149030==J.id){I=J;break}}if(!I)throw new P(2,3,3010);I=new dr(I.g);J=1E6;for(G=null;I.va();){var M=er(I);if(2807729==M.id)J=ir(M);else if(17545==M.id)if(4==M.g.byteLength)G=M.g.getFloat32(0);else if(8==M.g.byteLength)G=M.g.getFloat64(0);else throw new P(2,3,3003);}if(null==G)throw new P(2,3,3011);I=J/1E9;G*=I;J=er(new dr(y));if(475249515!=J.id)throw new P(2,3,3007);H=jr(J,H,I,G,d,c,B,A,C)}x=H;h.yd(x);q=new Nj(x);k&&q.Dc(A,C,
779
- !0);return E.return(q)})}function or(a){return a.Gd}function qr(a){var b=Yq(a,or,"RepresentationIndex");a=Xq(a,or,"indexRange");a=Hg(a||"");b&&(a=Eg(b,"range",Hg,a));return a}function pr(a,b){sr(a,b);if(!qr(a))throw new P(2,4,4002);}function sr(a,b){var c=a.P.mimeType.split("/")[1];if(a.P.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
780
- function mr(a){var b=a.P;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.ve,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function tr(a,b,c){var d=lr(a,ur,c),e=vr(a);if(!e.La&&!e.timeline&&1<e.Nc.length)throw new P(2,4,4002);if(!e.La&&!a.ma.duration&&!e.timeline&&1==e.Nc.length)throw new P(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new P(2,4,4002);var f=null,g=null;a.Ia.id&&a.P.id&&(g=b[a.Ia.id+","+a.P.id])&&(f=g.segmentIndex);var h=wr(a.ma.start,a.ma.duration,a.P.sb,e,d,c);b=!f;f?f.xd(h,a.presentationTimeline.ub()):f=new Nj(h);a.presentationTimeline.yd(h);a.Rb&&a.ma.Ef||f.Dc(a.ma.start,a.ma.duration?a.ma.start+
781
- a.ma.duration:Infinity,b);g&&(g.segmentIndex=f);return{Fc:function(){f&&0!=f.mc()||f.qe(h);return Promise.resolve(f)}}}function ur(a){return a.bc}function vr(a){var b=xr(a);a=Wq(a,ur);var c=a.Id;0==c&&(c=1);var d=0;a.La?d=a.La*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{La:a.La,startTime:d,Id:c,Mb:a.Mb,timeline:a.timeline,Nc:b}}
782
- function wr(a,b,c,d,e,f){var g=d.Nc.length;d.timeline&&d.timeline.length!=d.Nc.length&&(g=Math.min(d.timeline.length,d.Nc.length));for(var h=a-d.Mb,k=b?a+b:Infinity,l=[],m=d.startTime,n={},r=0;r<g;n={fd:n.fd,cd:n.cd},r++){n.cd=d.Nc[r];var q=void 0;q=null!=d.La?m+d.La:d.timeline?d.timeline[r].end:m+b;n.fd=null;l.push(new Oh(a+m,a+q,function(u){return function(){null==u.fd&&(u.fd=Bb(c(),[u.cd.Oi]));return u.fd}}(n),n.cd.start,n.cd.end,e,h,a,k,[],"",null,null,Ph,f));m=q}return l}
783
- function xr(a){return[a.P.bc,a.Ca.bc,a.Ia.bc].filter(Bd).map(function(b){return wg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Sg&&(a.Sg=!0);var c=b.getAttribute("media");b=Eg(b,"mediaRange",Hg,{start:0,end:null});return{Oi:c,start:b.start,end:b.end}})};function yr(a,b,c,d,e,f,g){var h=zr(a,g),k=Ar(a);Br(k);var l=Dd(a);if(k.td)return sr(a,h),{Fc:function(){var u=Vq(k.td,l.P.id,null,null,l.bandwidth||null,null);u=Bb(l.P.sb(),[u]);return rr(l,b,h,u,0,null,k.Mb)}};if(k.La)return d||"image"===a.Ca.contentType||(a.presentationTimeline.Pf(k.La),a.presentationTimeline.ue(a.ma.start)),{Fc:function(){return Cr(l,k,e,h,f,g)}};var m=null;d=d=null;a.Ia.id&&a.P.id&&(d=a.Ia.id+","+a.P.id,d=c[d])&&(m=d.segmentIndex);var n=a.ma.start,r=a.ma.duration?n+a.ma.duration:
784
- Infinity,q=!(a.Rb&&a.ma.Ef);m?(c=m,Dr(c,k,n,r,q,h),c.rb(a.presentationTimeline.ub())):m=new Er(k,a.P.id,a.bandwidth,a.P.sb,n,r,h,q,g,a.P.cg);k.timeline&&"image"!==a.Ca.contentType&&a.presentationTimeline.$g(k.timeline,n);d&&a.Rb&&(d.segmentIndex=m);return{Fc:function(){m instanceof Er&&0==m.mc()&&Dr(m,k,n,r,q,h);return Promise.resolve(m)}}}function Fr(a){return a.Hd}
785
- function Ar(a){var b=Wq(a,Fr),c=Xq(a,Fr,"media");a=Xq(a,Fr,"index");return{La:b.La,timescale:b.timescale,Id:b.Id,Mb:b.Mb,rg:b.rg,timeline:b.timeline,Oc:c,td:a}}function Br(a){var b=a.td?1:0;b+=a.timeline?1:0;b+=a.La?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.td&&(a.timeline=null),a.La=null);if(!a.td&&!a.Oc)throw new P(2,4,4002);}
786
- function Cr(a,b,c,d,e,f){function g(J){var M=(J-u)*q,O=M+b.Mb,S=M+m;M=S+q;var Z=Math.min(M,k());S=new Oh(S,Z,function(){var U=O*v;"BigInt"in window&&U>Number.MAX_SAFE_INTEGER&&(U=BigInt(O)*BigInt(v));U=Vq(y,x,J,null,z,U);return Bb(B(),[U])},0,null,d,A,m,k(),[],"",null,null,Ph,f);S.i=M;return S}function h(){var J=[Math.max(l.ub(),m),Math.min(l.Vb(),k())].map(function(M){return M-m});return[Math.ceil(J[0]/q),Math.ceil(J[1]/q)-1].map(function(M){return M+u})}function k(){var J=null!=n&&e[n]||r;return J?
787
- m+J:Infinity}var l=a.presentationTimeline,m=a.ma.start,n=a.Ia.id,r=a.ma.duration,q=b.La,u=b.Id,v=b.timescale,y=b.Oc,z=a.bandwidth||null,x=a.P.id,B=a.P.sb,A=m-b.Mb,C=h();a=a.Rb?Math.max(C[0],C[1]-c+1):C[0];C=C[1];c=[];for(var E=a;E<=C;++E){var H=g(E);c.push(H)}var G=new Nj(c);c=l.Vb()<k();E=l.S();if(c||E){var I=Math.max(a,C+1);G.Ge(q,function(){var J=l.ub();G.rb(J);var M=t(h());M.next();M=M.next().value;for(var O=[];I<=M;){var S=g(I);O.push(S);I++}return J>k()&&!O.length?null:O})}return Promise.resolve(G)}
788
- function zr(a,b){var c=Xq(a,Fr,"initialization");if(!c)return null;var d=a.P.id,e=a.bandwidth||null,f=a.P.sb;return new Mh(function(){var g=Vq(c,d,null,null,e,null);return Bb(f(),[g])},0,null,mr(a),null,null,b)}function Er(a,b,c,d,e,f,g,h,k,l){Nj.call(this,[]);this.h=a;this.H=b;this.D=c;this.G=d;this.i=e;this.m=f;this.u=g;this.C=k;this.I=l;h&&Gr(this)}pa(Er,Nj);p=Er.prototype;p.mc=function(){return this.h?this.h.timeline.length:0};p.release=function(){Nj.prototype.release.call(this);this.h=null};
789
- p.rb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.mc()&&this.release())}};function Dr(a,b,c,d,e,f){a.u=f;if(a.h){c=a.h.timeline;a.h.Oc=b.Oc;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,w(b));a.m!==d&&(a.m=d)}else a.h=b,a.i=c,a.m=d;e&&Gr(a)}
790
- function Gr(a){if(!a.s){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.m)b.pop();else break;a.rb(a.i);0!==b.length&&Infinity!==a.m&&(b[b.length-1].end=a.m-a.i)}}
773
+ function ar(a,b,c,d,e,f){f=void 0===f?0:f;if(Ag(a,"http://www.w3.org/1999/xlink","href")){var g=$q(a,b,c,d,e,f);c&&(g=g.Fa(void 0,function(){return ar(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Ag(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(ar(k,b,c,d,e,f)));return rf(g).Fa(function(){return a})};function br(a,b,c,d,e,f,g){var h,k=(new ag).W("sidx",function(l){h=cr(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new P(2,3,3004);}
774
+ function cr(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.O();if(0==k)throw new P(2,3,3005);if(0==g.version){var l=g.reader.O();var m=g.reader.O()}else l=g.reader.Tc(),m=g.reader.Tc();g.reader.skip(2);var n=g.reader.Sa();a=a+g.size+m;for(m=0;m<n;m++){var r=g.reader.O(),q=(r&2147483648)>>>31;r&=2147483647;var u=g.reader.O();g.reader.skip(4);if(1==q)throw new P(2,3,3006);h.push(new Oh(l/k+c,(l+u)/k+c,function(){return f},a,a+r-1,b,c,d,e));l+=u;a+=r}g.parser.stop();return h};function dr(a){this.h=rc(a);this.g=new Yf(this.h,0)}dr.prototype.xa=function(){return this.g.xa()};
775
+ function er(a){var b=fr(a);if(7<b.length)throw new P(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=fr(a);a:{d=t(gr);for(var e=d.next();!e.done;e=d.next())if(lc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.Ga();else{if(8==b.length&&b[1]&224)throw new P(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.Ga()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Ga();d=rc(a.h,a.g.Ga(),b);a.g.skip(b);return new hr(c,
776
+ d)}function fr(a){var b=a.g.Ga(),c=a.g.ra();if(0==c)throw new P(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return nc(a.h,b,c)}var gr=[[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 hr(a,b){this.id=a;this.g=b}
777
+ function ir(a){if(8<a.g.byteLength)throw new P(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new P(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function jr(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new dr(a.g);for(var n=null,r=null;a.xa();){var q=er(a);if(187==q.id){var u=kr(q);u&&(q=c*u.rj,u=b+u.$i,null!=n&&m.push(new Oh(n+g,q+g,l,r,u-1,f,g,h,k)),n=q,r=u)}}null!=n&&m.push(new Oh(n+g,d+g,l,r,null,f,g,h,k));return m}
778
+ function kr(a){var b=new dr(a.g);a=er(b);if(179!=a.id)throw new P(2,3,3013);a=ir(a);b=er(b);if(183!=b.id)throw new P(2,3,3012);b=new dr(b.g);for(var c=0;b.xa();){var d=er(b);if(241==d.id){c=ir(d);break}}return{rj:a,$i:c}};function lr(a,b,c){b=Yq(a,b,"Initialization");if(!b)return null;var d=a.P.wb(),e=b.getAttribute("sourceURL");e&&(d=Bb(d,[e]));e=0;var f=null;if(b=Eg(b,"range",Hg))e=b.start,f=b.end;return new Mh(function(){return d},e,f,mr(a),null,null,c)}
779
+ function nr(a,b,c){var d=Number(Xq(a,or,"presentationTimeOffset"))||0,e=Xq(a,or,"timescale"),f=1;e&&(f=Jg(e)||1);var g=d/f||0,h=lr(a,or,c);pr(a,h);var k=Dd(a);return{Ic:function(){var l=Yq(k,or,"RepresentationIndex");var m=k.P.wb();l&&(l=l.getAttribute("sourceURL"))&&(m=Bb(m,[l]));l=qr(k);return rr(k,b,h,m,l.start,l.end,g)}}}
780
+ function rr(a,b,c,d,e,f,g){var h,k,l,m,n,r,q,u,v,y,z,x,B,A,C;return K(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.Tb||!a.ma.If,l=a.ma.start,m=a.ma.duration,n=a.P.mimeType.split("/")[1],r=b,q=null,u=[r(d,e,f,!1),"webm"==n?r(c.ba(),c.fb,c.Ka,!0):null],r=null,D(E,Promise.all(u),2);v=E.h;y=v[0];z=v[1]||null;x=null;B=l-g;A=l;C=m?l+m:Infinity;if("mp4"==n)var H=br(y,e,d,c,B,A,C);else{H=new dr(z);if(440786851!=er(H).id)throw new P(2,3,3008);var G=er(H);if(408125543!=G.id)throw new P(2,3,3009);
781
+ H=G.g.byteOffset;G=new dr(G.g);for(var I=null;G.xa();){var J=er(G);if(357149030==J.id){I=J;break}}if(!I)throw new P(2,3,3010);I=new dr(I.g);J=1E6;for(G=null;I.xa();){var M=er(I);if(2807729==M.id)J=ir(M);else if(17545==M.id)if(4==M.g.byteLength)G=M.g.getFloat32(0);else if(8==M.g.byteLength)G=M.g.getFloat64(0);else throw new P(2,3,3003);}if(null==G)throw new P(2,3,3011);I=J/1E9;G*=I;J=er(new dr(y));if(475249515!=J.id)throw new P(2,3,3007);H=jr(J,H,I,G,d,c,B,A,C)}x=H;h.Cd(x);q=new Nj(x);k&&q.Gc(A,C,
782
+ !0);return E.return(q)})}function or(a){return a.Jd}function qr(a){var b=Yq(a,or,"RepresentationIndex");a=Xq(a,or,"indexRange");a=Hg(a||"");b&&(a=Eg(b,"range",Hg,a));return a}function pr(a,b){sr(a,b);if(!qr(a))throw new P(2,4,4002);}function sr(a,b){var c=a.P.mimeType.split("/")[1];if(a.P.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
783
+ function mr(a){var b=a.P;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.ye,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function tr(a,b,c){var d=lr(a,ur,c),e=vr(a);if(!e.Ma&&!e.timeline&&1<e.Qc.length)throw new P(2,4,4002);if(!e.Ma&&!a.ma.duration&&!e.timeline&&1==e.Qc.length)throw new P(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new P(2,4,4002);var f=null,g=null;a.Ja.id&&a.P.id&&(g=b[a.Ja.id+","+a.P.id])&&(f=g.segmentIndex);var h=wr(a.ma.start,a.ma.duration,a.P.wb,e,d,c);b=!f;f?f.Bd(h,a.presentationTimeline.xb()):f=new Nj(h);a.presentationTimeline.Cd(h);a.Tb&&a.ma.If||f.Gc(a.ma.start,a.ma.duration?a.ma.start+
784
+ a.ma.duration:Infinity,b);g&&(g.segmentIndex=f);return{Ic:function(){f&&0!=f.pc()||f.ue(h);return Promise.resolve(f)}}}function ur(a){return a.cc}function vr(a){var b=xr(a);a=Wq(a,ur);var c=a.Ld;0==c&&(c=1);var d=0;a.Ma?d=a.Ma*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{Ma:a.Ma,startTime:d,Ld:c,Ob:a.Ob,timeline:a.timeline,Qc:b}}
785
+ function wr(a,b,c,d,e,f){var g=d.Qc.length;d.timeline&&d.timeline.length!=d.Qc.length&&(g=Math.min(d.timeline.length,d.Qc.length));for(var h=a-d.Ob,k=b?a+b:Infinity,l=[],m=d.startTime,n={},r=0;r<g;n={jd:n.jd,ed:n.ed},r++){n.ed=d.Qc[r];var q=void 0;q=null!=d.Ma?m+d.Ma:d.timeline?d.timeline[r].end:m+b;n.jd=null;l.push(new Oh(a+m,a+q,function(u){return function(){null==u.jd&&(u.jd=Bb(c(),[u.ed.Si]));return u.jd}}(n),n.ed.start,n.ed.end,e,h,a,k,[],"",null,null,Ph,f));m=q}return l}
786
+ function xr(a){return[a.P.cc,a.Ea.cc,a.Ja.cc].filter(Bd).map(function(b){return wg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Xg&&(a.Xg=!0);var c=b.getAttribute("media");b=Eg(b,"mediaRange",Hg,{start:0,end:null});return{Si:c,start:b.start,end:b.end}})};function yr(a,b,c,d,e,f,g){var h=zr(a,g),k=Ar(a);Br(k);var l=Dd(a);if(k.wd)return sr(a,h),{Ic:function(){var u=Vq(k.wd,l.P.id,null,null,l.bandwidth||null,null);u=Bb(l.P.wb(),[u]);return rr(l,b,h,u,0,null,k.Ob)}};if(k.Ma)return d||"image"===a.Ea.contentType||(a.presentationTimeline.Tf(k.Ma),a.presentationTimeline.xe(a.ma.start)),{Ic:function(){return Cr(l,k,e,h,f,g)}};var m=null;d=d=null;a.Ja.id&&a.P.id&&(d=a.Ja.id+","+a.P.id,d=c[d])&&(m=d.segmentIndex);var n=a.ma.start,r=a.ma.duration?n+a.ma.duration:
787
+ Infinity,q=!(a.Tb&&a.ma.If);m?(c=m,Dr(c,k,n,r,q,h),c.vb(a.presentationTimeline.xb())):m=new Er(k,a.P.id,a.bandwidth,a.P.wb,n,r,h,q,g,a.P.fg);k.timeline&&"image"!==a.Ea.contentType&&a.presentationTimeline.fh(k.timeline,n);d&&a.Tb&&(d.segmentIndex=m);return{Ic:function(){m instanceof Er&&0==m.pc()&&Dr(m,k,n,r,q,h);return Promise.resolve(m)}}}function Fr(a){return a.Kd}
788
+ function Ar(a){var b=Wq(a,Fr),c=Xq(a,Fr,"media");a=Xq(a,Fr,"index");return{Ma:b.Ma,timescale:b.timescale,Ld:b.Ld,Ob:b.Ob,wg:b.wg,timeline:b.timeline,Rc:c,wd:a}}function Br(a){var b=a.wd?1:0;b+=a.timeline?1:0;b+=a.Ma?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.wd&&(a.timeline=null),a.Ma=null);if(!a.wd&&!a.Rc)throw new P(2,4,4002);}
789
+ function Cr(a,b,c,d,e,f){function g(J){var M=(J-u)*q,O=M+b.Ob,S=M+m;M=S+q;var Z=Math.min(M,k());S=new Oh(S,Z,function(){var U=O*v;"BigInt"in window&&U>Number.MAX_SAFE_INTEGER&&(U=BigInt(O)*BigInt(v));U=Vq(y,x,J,null,z,U);return Bb(B(),[U])},0,null,d,A,m,k(),[],"",null,null,Ph,f);S.h=M;return S}function h(){var J=[Math.max(l.xb(),m),Math.min(l.Wb(),k())].map(function(M){return M-m});return[Math.ceil(J[0]/q),Math.ceil(J[1]/q)-1].map(function(M){return M+u})}function k(){var J=null!=n&&e[n]||r;return J?
790
+ m+J:Infinity}var l=a.presentationTimeline,m=a.ma.start,n=a.Ja.id,r=a.ma.duration,q=b.Ma,u=b.Ld,v=b.timescale,y=b.Rc,z=a.bandwidth||null,x=a.P.id,B=a.P.wb,A=m-b.Ob,C=h();a=a.Tb?Math.max(C[0],C[1]-c+1):C[0];C=C[1];c=[];for(var E=a;E<=C;++E){var H=g(E);c.push(H)}var G=new Nj(c);c=l.Wb()<k();E=l.R();if(c||E){var I=Math.max(a,C+1);G.Le(q,function(){var J=l.xb();G.vb(J);var M=t(h());M.next();M=M.next().value;for(var O=[];I<=M;){var S=g(I);O.push(S);I++}return J>k()&&!O.length?null:O})}return Promise.resolve(G)}
791
+ function zr(a,b){var c=Xq(a,Fr,"initialization");if(!c)return null;var d=a.P.id,e=a.bandwidth||null,f=a.P.wb;return new Mh(function(){var g=Vq(c,d,null,null,e,null);return Bb(f(),[g])},0,null,mr(a),null,null,b)}function Er(a,b,c,d,e,f,g,h,k,l){Nj.call(this,[]);this.h=a;this.H=b;this.D=c;this.G=d;this.i=e;this.m=f;this.u=g;this.C=k;this.I=l;h&&Gr(this)}pa(Er,Nj);p=Er.prototype;p.pc=function(){return this.h?this.h.timeline.length:0};p.release=function(){Nj.prototype.release.call(this);this.h=null};
792
+ p.vb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.pc()&&this.release())}};function Dr(a,b,c,d,e,f){a.u=f;if(a.h){c=a.h.timeline;a.h.Rc=b.Rc;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,w(b));a.m!==d&&(a.m=d)}else a.h=b,a.i=c,a.m=d;e&&Gr(a)}
793
+ function Gr(a){if(!a.s){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.m)b.pop();else break;a.vb(a.i);0!==b.length&&Infinity!==a.m&&(b[b.length-1].end=a.m-a.i)}}
791
794
  p.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.i)return this.j;if(!this.h)return null;var b=this.h.timeline;if(a<this.i||a>this.m)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.i;e=e.end+this.i;d<c&&(e=b[d+1].start+this.i);if(a>=f&&a<e)return d+this.j}return null};
792
- p.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.mc()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.Oc,e=this.h.timeline[a],f=e.ej,g=this.h.rg+e.sg;c=this.i-this.h.Mb;for(var h=[],k=(e.end-e.start)/e.vb,l={},m=0;m<e.vb;l={gd:l.gd,Qe:l.Qe},m++){var n=e.start+k*m,r=n+k;l.Qe=m+1;l.gd=null;n=new Oh(this.i+n,this.i+r,function(q){return function(){if(!b.h)return[];null==q.gd&&(q.gd=Hr(b.h.Oc,b.H,f,b.D,g,q.Qe,b.G));return q.gd}}(l),0,null,this.u,c,this.i,this.m,[],"",null,null,Ph,this.C);
793
- 0==this.I?0<m&&n.oe():0!=m%this.I&&n.oe();h.push(n)}c=new Oh(this.i+e.start,this.i+e.end,function(){return 0<e.vb?[]:Hr(d,b.H,f,b.D,g,null,b.G)},0,null,this.u,c,this.i,this.m,h,"",null,null,Ph,this.C,0<e.vb);this.g[a]=c}return c};function Hr(a,b,c,d,e,f,g){a=Vq(a,b,c,f,d||null,e);return Bb(g(),[a]).map(function(h){return h.toString()})};function Ir(a){this.s=null;this.C=a;this.I=new tf;this.j=[];this.h=null;this.m=[];this.D=null;this.H=[];this.G=300;this.l=new Map;this.i=new Map;this.g=null;this.u="UNKNOWN"}Ir.prototype.configure=function(a){this.s=a};Ir.prototype.destroy=function(){this.C=this.s=null;this.j=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};Ir.prototype.setManifestType=function(a){this.u=a};
794
- function Jr(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=Bb(a.j,[Kr(a,b)]),d=zf(c,a.s.retryParameters),e=a.C.networkingEngine.request(8,d),uf(a.I,e),ta(l,2),D(l,e.promise,4);if(2!=l.g)return f=l.h,g=Sf(f.data),h=JSON.parse(g),1==h.VERSION&&Lr(a,h,f.uri),va(l,0);if((k=wa(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new Fd(function(){Jr(a,b)});a.g.R(a.G);F(l)})}
795
- function Kr(a,b){if(!a.m.length)return b;b=new hb(b);var c=a.D||a.m[0],d=Math.round(a.C.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));zb(e)&&mb(b,e);return b.toString()}function Lr(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Fd(function(){Jr(a,d)});if(c=b.TTL)a.G=c;a.g.R(a.G);a.m=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[]}
795
+ p.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.pc()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.Rc,e=this.h.timeline[a],f=e.ij,g=this.h.wg+e.xg;c=this.i-this.h.Ob;for(var h=[],k=(e.end-e.start)/e.yb,l={},m=0;m<e.yb;l={kd:l.kd,Ve:l.Ve},m++){var n=e.start+k*m,r=n+k;l.Ve=m+1;l.kd=null;n=new Oh(this.i+n,this.i+r,function(q){return function(){if(!b.h)return[];null==q.kd&&(q.kd=Hr(b.h.Rc,b.H,f,b.D,g,q.Ve,b.G));return q.kd}}(l),0,null,this.u,c,this.i,this.m,[],"",null,null,Ph,this.C);
796
+ 0==this.I?0<m&&n.re():0!=m%this.I&&n.re();h.push(n)}c=new Oh(this.i+e.start,this.i+e.end,function(){return 0<e.yb?[]:Hr(d,b.H,f,b.D,g,null,b.G)},0,null,this.u,c,this.i,this.m,h,"",null,null,Ph,this.C,0<e.yb);this.g[a]=c}return c};function Hr(a,b,c,d,e,f,g){a=Vq(a,b,c,f,d||null,e);return Bb(g(),[a]).map(function(h){return h.toString()})};function Ir(a){this.s=null;this.C=a;this.I=new tf;this.j=[];this.h=null;this.m=[];this.D=null;this.H=[];this.G=300;this.l=new Map;this.i=new Map;this.g=null;this.u="UNKNOWN"}Ir.prototype.configure=function(a){this.s=a};Ir.prototype.destroy=function(){this.C=this.s=null;this.j=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};Ir.prototype.setManifestType=function(a){this.u=a};
797
+ function Jr(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=Bb(a.j,[Kr(a,b)]),d=zf(c,a.s.retryParameters),e=a.C.networkingEngine.request(8,d),uf(a.I,e),ta(l,2),D(l,e.promise,4);if(2!=l.g)return f=l.h,g=Sf(f.data),h=JSON.parse(g),1==h.VERSION&&Lr(a,h,f.uri),va(l,0);if((k=wa(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new Fd(function(){Jr(a,b)});a.g.S(a.G);F(l)})}
798
+ function Kr(a,b){if(!a.m.length)return b;b=new hb(b);var c=a.D||a.m[0],d=Math.round(a.C.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));zb(e)&&mb(b,e);return b.toString()}function Lr(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Fd(function(){Jr(a,d)});if(c=b.TTL)a.G=c;a.g.S(a.G);a.m=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[]}
796
799
  function Mr(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}
797
- function Nr(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e={},f=t(a.m),g=f.next();!g.done;e={fc:e.fc},g=f.next())if(e.fc=g.value,g=b.get(e.fc))d.push({Vf:e.fc,location:g});else if(g=a.H.find(function(k){return function(l){return l.Ej==k.fc}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].xh?(h=new hb(h),kb(h,g["URI-REPLACEMENT"].xh),d.push({Vf:e.fc,location:h.toString()})):d.push({Vf:e.fc,location:h}))}e=Date.now();f=t(a.i.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
798
- h=a.i.get(g),e>h&&a.i.delete(g);d=d.filter(function(k){for(var l=t(a.i.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new hb(k.location)).Fb))return!1;return!0});d.length&&(a.D=d[0].Vf);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(f=b.get(g.value))a.D=a.h,d.push(f);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Bb(a.j,d)};function Or(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=!1;this.s=new Set}p=Or.prototype;p.release=function(){for(var a=t(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};p.ti=function(){return this.j};p.Bf=function(){return this.l.slice()};p.Zh=function(){return this.i};
799
- function Pr(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[Qr(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[Rr(n),n]})),l=new Map(h.textStreams.map(function(n){return[Sr(n),n]}));h=new Map(h.imageStreams.map(function(n){return[Tr(n),n]}));if(b){var m=Ur(Ib);l.set(Sr(m),m);m=Ur("image");h.set(Tr(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{yg:c,vh:d,qh:e,Rg:f}}
800
- p.Dg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U;return K(function(ia){if(1==ia.g){d=Jb;if(!b&&1==a.length)return e=Pr(a,!1),f=e.yg,g=e.vh,h=e.qh,k=e.Rg,c.h=Array.from(f[0].values()),c.g=Array.from(g[0].values()),c.l=Array.from(h[0].values()),c.i=Array.from(k[0].values()),ia.F(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.s.has(n.id)||(c.s.add(n.id),-1==l&&(l=m));if(-1==l)return ia.return();r=Pr(a,!0);q=r.yg;u=r.vh;v=r.qh;y=r.Rg;return D(ia,Promise.all([Vr(c,c.h,q,
800
+ function Nr(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e={},f=t(a.m),g=f.next();!g.done;e={ic:e.ic},g=f.next())if(e.ic=g.value,g=b.get(e.ic))d.push({Zf:e.ic,location:g});else if(g=a.H.find(function(k){return function(l){return l.Ij==k.ic}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].Bh?(h=new hb(h),kb(h,g["URI-REPLACEMENT"].Bh),d.push({Zf:e.ic,location:h.toString()})):d.push({Zf:e.ic,location:h}))}e=Date.now();f=t(a.i.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
801
+ h=a.i.get(g),e>h&&a.i.delete(g);d=d.filter(function(k){for(var l=t(a.i.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new hb(k.location)).Hb))return!1;return!0});d.length&&(a.D=d[0].Zf);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(f=b.get(g.value))a.D=a.h,d.push(f);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Bb(a.j,d)};function Or(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=!1;this.s=new Set}p=Or.prototype;p.release=function(){for(var a=t(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};p.zi=function(){return this.j};p.Ff=function(){return this.l.slice()};p.bi=function(){return this.i};
802
+ function Pr(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[Qr(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[Rr(n),n]})),l=new Map(h.textStreams.map(function(n){return[Sr(n),n]}));h=new Map(h.imageStreams.map(function(n){return[Tr(n),n]}));if(b){var m=Ur(Ib);l.set(Sr(m),m);m=Ur("image");h.set(Tr(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{Dg:c,xh:d,uh:e,Wg:f}}
803
+ p.Ig=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U;return K(function(fa){if(1==fa.g){d=Jb;if(!b&&1==a.length)return e=Pr(a,!1),f=e.Dg,g=e.xh,h=e.uh,k=e.Wg,c.h=Array.from(f[0].values()),c.g=Array.from(g[0].values()),c.l=Array.from(h[0].values()),c.i=Array.from(k[0].values()),fa.F(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.s.has(n.id)||(c.s.add(n.id),-1==l&&(l=m));if(-1==l)return fa.return();r=Pr(a,!0);q=r.Dg;u=r.xh;v=r.uh;y=r.Wg;return D(fa,Promise.all([Vr(c,c.h,q,
801
804
  l,Wr,Zr),Vr(c,c.g,u,l,Wr,Zr),Vr(c,c.l,v,l,Wr,Zr),Vr(c,c.i,y,l,Wr,Zr)]),2)}z=0;x=[];if(c.g.length&&c.h.length)for(G=t(c.h),I=G.next();!I.done;I=G.next())for(J=I.value,M=t(c.g),O=M.next();!O.done;O=M.next())S=O.value,Z=Dh(J.drmInfos,S.drmInfos),J.drmInfos.length&&S.drmInfos.length&&!Z.length||(U=z++,x.push({id:U,language:J.language,disabledUntilTime:0,primary:J.primary,audio:J,video:S,bandwidth:(J.bandwidth||0)+(S.bandwidth||0),drmInfos:Z,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));
802
- else for(B=c.g.length?c.g:c.h,A=t(B),C=A.next();!C.done;C=A.next())E=C.value,H=z++,x.push({id:H,language:E.language,disabledUntilTime:0,primary:E.primary,audio:E.type==d.T?E:null,video:E.type==d.ia?E:null,bandwidth:E.bandwidth||0,drmInfos:E.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=x;F(ia)})};
803
- function $r(a){var b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z;return K(function(U){switch(U.g){case 1:b=Jb;if(1==a.length)return U.return(a[0]);c=a.map(function(ia){return new Map(ia.filter(function(aa){return aa.type===b.T}).map(function(aa){return[Qr(aa),aa]}))});d=a.map(function(ia){return new Map(ia.filter(function(aa){return aa.type===b.ia}).map(function(aa){return[Rr(aa),aa]}))});e=a.map(function(ia){return new Map(ia.filter(function(aa){return aa.type===b.Ba}).map(function(aa){return[Sr(aa),
804
- aa]}))});f=a.map(function(ia){return new Map(ia.filter(function(aa){return aa.type===b.Se}).map(function(aa){return[Tr(aa),aa]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=as(b.Ba),k.set(Sr(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())r=n.value,q=as(b.Se),r.set(Tr(q),q);u=new Or;return D(U,Vr(u,[],c,0,bs,cs),2);case 2:return v=U.h,D(U,Vr(u,[],d,0,bs,cs),3);case 3:return y=U.h,D(U,Vr(u,[],e,0,bs,cs),4);case 4:return z=U.h,D(U,Vr(u,[],f,0,bs,cs),5);case 5:x=U.h;B=0;if(y.length&&v.length)for(G=
805
+ else for(B=c.g.length?c.g:c.h,A=t(B),C=A.next();!C.done;C=A.next())E=C.value,H=z++,x.push({id:H,language:E.language,disabledUntilTime:0,primary:E.primary,audio:E.type==d.T?E:null,video:E.type==d.ia?E:null,bandwidth:E.bandwidth||0,drmInfos:E.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=x;F(fa)})};
806
+ function $r(a){var b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z;return K(function(U){switch(U.g){case 1:b=Jb;if(1==a.length)return U.return(a[0]);c=a.map(function(fa){return new Map(fa.filter(function(aa){return aa.type===b.T}).map(function(aa){return[Qr(aa),aa]}))});d=a.map(function(fa){return new Map(fa.filter(function(aa){return aa.type===b.ia}).map(function(aa){return[Rr(aa),aa]}))});e=a.map(function(fa){return new Map(fa.filter(function(aa){return aa.type===b.Da}).map(function(aa){return[Sr(aa),
807
+ aa]}))});f=a.map(function(fa){return new Map(fa.filter(function(aa){return aa.type===b.Xe}).map(function(aa){return[Tr(aa),aa]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=as(b.Da),k.set(Sr(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())r=n.value,q=as(b.Xe),r.set(Tr(q),q);u=new Or;return D(U,Vr(u,[],c,0,bs,cs),2);case 2:return v=U.h,D(U,Vr(u,[],d,0,bs,cs),3);case 3:return y=U.h,D(U,Vr(u,[],e,0,bs,cs),4);case 4:return z=U.h,D(U,Vr(u,[],f,0,bs,cs),5);case 5:x=U.h;B=0;if(y.length&&v.length)for(G=
805
808
  t(v),I=G.next();!I.done;I=G.next())for(J=I.value,M=t(y),O=M.next();!O.done;O=M.next())S=O.value,Z=B++,S.variantIds.push(Z),J.variantIds.push(Z);else for(A=y.concat(v),C=t(A),E=C.next();!E.done;E=C.next())H=E.value,H.variantIds=[B++];return U.return(y.concat(v).concat(z).concat(x))}})}
806
809
  function Vr(a,b,c,d,e,f){var g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G;return K(function(I){switch(I.g){case 1:g=[];for(h=0;h<d;h++)g.push(new Set);for(k=d;k<c.length;k++)g.push(new Set(c[k].values()));l=t(b);m=l.next();case 2:if(m.done){I.F(4);break}n=m.value;return D(I,ds(a,n,c,d,f,g),5);case 5:r=I.h;if(!r)throw new P(2,4,4037);m=l.next();I.F(2);break;case 4:q=t(g);for(u=q.next();!u.done;u=q.next())for(v=u.value,y=t(v),z=y.next();!z.done;z=y.next())x=z.value,(B=es(a,x,c,e,f,g))&&b.push(B);A=t(g);for(u=
807
- A.next();!u.done;u=A.next())for(C=u.value,E={},H=t(C),z=H.next();!z.done;E={Qd:E.Qd},z=H.next())if(E.Qd=z.value,!fs(E.Qd)&&(G=b.some(function(J){return function(M){return gs(a,J.Qd,M)}}(E))))throw new P(2,4,4037);return I.return(b)}})}function ds(a,b,c,d,e,f){return K(function(g){if(1==g.g)return hs(a,c,b),b.matchedStreams?b.segmentIndex?D(g,is(b,d),2):g.F(2):g.return(!1);js(b,d,e,f);return g.return(!0)})}
808
- function is(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return D(l,Promise.all(c),2)}if(a.segmentIndex instanceof Rj)for(h={},k=b;k<d.length;h={Ab:h.Ab},k++)h.Ab=d[k],h.Ab.segmentIndex&&(Oj(h.Ab.segmentIndex,function(m){return function(n){n.codecs=m.Ab.codecs;n.mimeType=m.Ab.mimeType;n.ka&&
809
- (n.ka.codecs=m.Ab.codecs,n.ka.mimeType=m.Ab.mimeType)}}(h)),a.segmentIndex.h.push(h.Ab.segmentIndex));F(l)})}function es(a,b,c,d,e,f){if(fs(b))return null;var g=d(b);hs(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return K(function(h){if(g.segmentIndex)return h.F(0);g.segmentIndex=new Rj;return D(h,is(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;js(g,0,e,f);return g}
810
- function js(a,b,c,d){for(var e=a.matchedStreams;b<e.length;b++){var f=e[b];c(a,f);var g=!0;"audio"==a.type&&0==Tb(a.language,f.language)&&(g=!1);if(g){d[b].delete(f);g=new Set(a.codecs.split(","));f=t(f.codecs.split(","));for(var h=f.next();!h.done;h=f.next())g.add(h.value);h=Array.from(g);g=new Set;f=[];h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=nd(k);g.has(l)||(f.push(k),g.add(l))}a.codecs=f.join(",")}}}
810
+ A.next();!u.done;u=A.next())for(C=u.value,E={},H=t(C),z=H.next();!z.done;E={Td:E.Td},z=H.next())if(E.Td=z.value,!fs(E.Td)&&(G=b.some(function(J){return function(M){return gs(a,J.Td,M)}}(E))))throw new P(2,4,4037);return I.return(b)}})}function ds(a,b,c,d,e,f){return K(function(g){if(1==g.g)return hs(a,c,b),b.matchedStreams?b.segmentIndex?D(g,is(b,d),2):g.F(2):g.return(!1);js(b,d,e,f);return g.return(!0)})}
811
+ function is(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return D(l,Promise.all(c),2)}if(a.segmentIndex instanceof Rj)for(h={},k=b;k<d.length;h={Db:h.Db},k++)h.Db=d[k],h.Db.segmentIndex&&(Oj(h.Db.segmentIndex,function(m){return function(n){n.codecs=m.Db.codecs;n.mimeType=m.Db.mimeType;n.ka&&
812
+ (n.ka.codecs=m.Db.codecs,n.ka.mimeType=m.Db.mimeType)}}(h)),a.segmentIndex.h.push(h.Db.segmentIndex));F(l)})}function es(a,b,c,d,e,f){if(fs(b))return null;var g=d(b);hs(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return K(function(h){if(g.segmentIndex)return h.F(0);g.segmentIndex=new Rj;return D(h,is(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;js(g,0,e,f);return g}
813
+ function js(a,b,c,d){for(var e=a.matchedStreams;b<e.length;b++){var f=e[b];c(a,f);var g=!0;"audio"==a.type&&0==Tb(a.language,f.language)&&(g=!1);if(g){d[b].delete(f);g=new Set(a.codecs.split(","));f=t(f.codecs.split(","));for(var h=f.next();!h.done;h=f.next())(h=h.value)&&g.add(h);h=Array.from(g);g=new Set;f=[];h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=nd(k);g.has(l)||(f.push(k),g.add(l))}a.codecs=f.join(",")}}}
811
814
  function Wr(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
812
815
  function bs(a){a=Object.assign({},a);a.roles=a.roles.slice();a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
813
816
  function Zr(a,b){function c(g,h){g||(g=[]);h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=t(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");d=Dh(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new P(2,4,4038);a.drmInfos=
@@ -824,52 +827,52 @@ a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function qs(a,b,c){re
824
827
  function Ur(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Nj([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1}}
825
828
  function ts(a,b,c){if(b==a&&a!=c)return vs;if(c==a&&a!=b)return us;if(b>a){if(c<=a||c-a<b-a)return us;if(c-a>b-a)return vs}else{if(c>a)return vs;if(a-c<a-b)return us;if(a-c>a-b)return vs}return xs}function ws(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?us:b<a?vs:xs}function fs(a){switch(a.type){case Ib:return!a.language;case "image":return!a.tilesLayout;default:return!1}}
826
829
  function Rr(a){return JSON.stringify([a.fastSwitching,a.width,a.frameRate,a.codecs,a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth])}function Qr(a){return JSON.stringify([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,a.codecs,a.mimeType,a.roles,a.audioSamplingRate,a.primary])}function Sr(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}
827
- function Tr(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}L("shaka.util.PeriodCombiner",Or);Or.prototype.combinePeriods=Or.prototype.Dg;Or.prototype.getImageStreams=Or.prototype.Zh;Or.prototype.getTextStreams=Or.prototype.Bf;Or.prototype.getVariants=Or.prototype.ti;var us=1,xs=0,vs=-1,ss=new Map;function ys(){var a=this;this.i=this.h=null;this.s=[];this.j=null;this.K=1;this.m={};this.M={};this.l=new Or;this.H=0;this.J=new $b(5);this.I=new Fd(function(){zs(a)});this.G=new tf;this.C=null;this.L=[];this.D=Infinity;this.u=!1;this.g=null}p=ys.prototype;p.configure=function(a){this.h=a;this.g&&this.g.configure(this.h);this.l&&(this.l.m=this.h.dash.multiTypeVariantsAllowed&&hc())};
830
+ function Tr(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}L("shaka.util.PeriodCombiner",Or);Or.prototype.combinePeriods=Or.prototype.Ig;Or.prototype.getImageStreams=Or.prototype.bi;Or.prototype.getTextStreams=Or.prototype.Ff;Or.prototype.getVariants=Or.prototype.zi;var us=1,xs=0,vs=-1,ss=new Map;function ys(){var a=this;this.i=this.h=null;this.s=[];this.j=null;this.K=1;this.m={};this.M={};this.l=new Or;this.H=0;this.J=new $b(5);this.I=new Fd(function(){zs(a)});this.G=new tf;this.C=null;this.L=[];this.D=Infinity;this.u=!1;this.g=null}p=ys.prototype;p.configure=function(a){this.h=a;this.g&&this.g.configure(this.h);this.l&&(this.l.m=this.h.dash.multiTypeVariantsAllowed&&hc())};
828
831
  p.start=function(a,b){var c=this,d;return K(function(e){if(1==e.g)return c.u=b.isLowLatencyMode(),c.s=[a],c.i=b,D(e,As(c),2);d=e.h;c.i&&Bs(c,d);if(!c.i)throw new P(2,7,7001);return e.return(c.j)})};p.stop=function(){for(var a=t(Object.values(this.m)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.l&&this.l.release();this.h=this.i=null;this.s=[];this.j=null;this.m={};this.l=null;null!=this.I&&(this.I.stop(),this.I=null);this.g&&this.g.destroy();return this.G.destroy()};
829
- p.update=function(){var a=this,b;return K(function(c){if(1==c.g)return ta(c,2),D(c,As(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.i||!b)return c.return();a.i.onError(b);F(c)})};p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(a){if(this.j&&this.j.presentationTimeline.S()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.j.presentationTimeline.Vb();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.H=b.endTime-a,Bs(this,0))}}};
832
+ p.update=function(){var a=this,b;return K(function(c){if(1==c.g)return ta(c,2),D(c,As(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.i||!b)return c.return();a.i.onError(b);F(c)})};p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(a){if(this.j&&this.j.presentationTimeline.R()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.j.presentationTimeline.Wb();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.H=b.endTime-a,Bs(this,0))}}};
830
833
  p.banLocation=function(a){this.g&&this.g.i.set(a,Date.now()+6E4)};function As(a){var b,c,d,e,f,g,h;return K(function(k){if(1==k.g)return b=a.s,1<a.s.length&&a.g&&(c=Nr(a.g,"Location",!0),c.length&&(b=c)),d=zf(b,a.h.retryParameters),e=Date.now(),D(k,Cs(a,d,0,{type:4}),2);if(3!=k.g){f=k.h;if(!a.i)return k.return(0);f.uri&&f.uri!=f.originalUri&&!a.s.includes(f.uri)&&a.s.unshift(f.uri);return D(k,Ds(a,f.data,f.uri),3)}g=Date.now();h=(g-e)/1E3;a.J.sample(1,h);return k.return(h)})}
831
834
  function Ds(a,b,c){var d,e,f,g,h;return K(function(k){if(1==k.g){d=Qg(b,"MPD");if(!d)throw new P(2,4,4001,c);if(e=a.h.dash.disableXlinkProcessing)return k.return(Es(a,d,c));f=a.h.dash.xlinkFailGracefully;g=ar(d,a.h.retryParameters,f,c,a.i.networkingEngine);uf(a.G,g);return D(k,g.promise,2)}h=k.h;return k.return(Es(a,h,c))})}
832
- function Es(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U,ia,aa,Wa,ib,Eb,ac,Kb,Da,sb,Fb,bc,cc,tb,Ud,wd,Vd,Ec,Wd,hi,Ye,Xd,Lc,jd,lg,mg,vl,Xr,Yr;return K(function(kd){switch(kd.g){case 1:(d=a.h.dash.manifestPreprocessor)&&d(b);a.g&&a.g.l.clear();e=[c];f=[];g=new Map;h=wg(b,"Location");k=t(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=m.getAttribute("serviceLocation"),r=Cg(m))q=Bb(e,[r])[0],n&&(a.g?Mr(a.g,"Location",n,q):g.set(n,q)),f.push(q);a.g?(u=Nr(a.g,"Location",!0),
835
+ function Es(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U,fa,aa,Wa,ib,Eb,bc,Kb,Ea,rb,Fb,cc,dc,sb,Ud,wd,Vd,Dc,Wd,hi,Ye,Xd,Lc,jd,lg,mg,wl,Xr,Yr;return K(function(kd){switch(kd.g){case 1:(d=a.h.dash.manifestPreprocessor)&&d(b);a.g&&a.g.l.clear();e=[c];f=[];g=new Map;h=wg(b,"Location");k=t(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=m.getAttribute("serviceLocation"),r=Cg(m))q=Bb(e,[r])[0],n&&(a.g?Mr(a.g,"Location",n,q):g.set(n,q)),f.push(q);a.g?(u=Nr(a.g,"Location",!0),
833
836
  0<u.length&&(e=a.s=u)):f.length&&(e=a.s=f);v=Promise.resolve();if((y=vg(b,"ContentSteering"))&&a.i){z=y.getAttribute("defaultServiceLocation");if(a.g)a.g.j=e,a.g.h=z;else if(a.g=new Ir(a.i),a.g.configure(a.h),a.g.setManifestType("DASH"),a.g.j=e,a.g.h=z,x=Cg(y))(B=Eg(y,"queryBeforeStart",Mg,!1))?v=Jr(a.g,x):Jr(a.g,x);A=t(g.keys());for(C=A.next();!C.done;C=A.next())E=C.value,H=g.get(E),Mr(a.g,"Location",E,H)}G=wg(b,"BaseURL");J=!1;if(a.g)for(M=t(G),O=M.next();!O.done;O=M.next())S=O.value,Z=S.getAttribute("serviceLocation"),
834
- U=Cg(S),Z&&U&&(Mr(a.g,"BaseURL",Z,U),J=!0);J&&a.g||(ia=G.map(Cg),I=Bb(e,ia));aa=function(){return a.g&&J?Nr(a.g,"BaseURL"):I?I:[]};Wa=0;G&&G.length&&(Wa=Eg(G[0],"availabilityTimeOffset",Lg)||0);ib=a.h.dash.ignoreMinBufferTime;Eb=0;ib||(Eb=Eg(b,"minBufferTime",Gg)||0);a.H=Eg(b,"minimumUpdatePeriod",Gg,-1);ac=Eg(b,"availabilityStartTime",Fg);Kb=Eg(b,"timeShiftBufferDepth",Gg);Da=a.h.dash.ignoreSuggestedPresentationDelay;sb=null;Da||(sb=Eg(b,"suggestedPresentationDelay",Gg));Fb=a.h.dash.ignoreMaxSegmentDuration;
835
- bc=null;Fb||(bc=Eg(b,"maxSegmentDuration",Gg));cc=b.getAttribute("type")||"static";if(a.j)for(tb=a.j.presentationTimeline,Ud=t(Object.values(a.m)),wd=Ud.next();!wd.done;wd=Ud.next())Vd=wd.value,Vd.segmentIndex&&Vd.segmentIndex.rb(tb.ub());else Ec=a.h.defaultPresentationDelay||1.5*Eb,Wd=null!=sb?sb:Ec,tb=new rj(ac,Wd,a.h.dash.autoCorrectDrift);tb.Rc("static"==cc);(hi=tb.S())&&!isNaN(a.h.availabilityWindowOverride)&&(Kb=a.h.availabilityWindowOverride);null==Kb&&(Kb=Infinity);tb.De(Kb);Ye=b.getAttribute("profiles")||
836
- "";Xd={Rb:"static"!=cc,presentationTimeline:tb,Ia:null,ma:null,Ca:null,P:null,bandwidth:0,Sg:!1,Cc:Wa,profiles:Ye.split(",")};Lc=Fs(a,Xd,aa,b);jd=Lc.duration;lg=Lc.periods;"static"!=cc&&Lc.Ig||tb.bb(jd||Infinity);a.D&&!a.u&&(mg=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.u=a.i.isLowLatencyMode());a.u?tb.gh(a.D):a.D&&Ta("Low-latency DASH 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.");
837
- tb.Pf(bc||1);return D(kd,a.l.Dg(lg,Xd.Rb),2);case 2:return D(kd,v,3);case 3:a.u&&(Eb=0);if(a.j){a.j.variants=a.l.j;vl=a.l.Bf();0<vl.length&&(a.j.textStreams=vl);a.j.imageStreams=a.l.i;a.i.filter(a.j);kd.F(4);break}a.j={presentationTimeline:tb,variants:a.l.j,textStreams:a.l.Bf(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:Eb||0,sequenceMode:a.h.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Gs(b)};if(!tb.sh()){kd.F(5);break}Xr=wg(b,"UTCTiming");
838
- return D(kd,Hs(a,aa,Xr),6);case 6:Yr=kd.h;if(!a.i)return kd.return();tb.hh(Yr);case 5:tb.le();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),F(kd)}})}
837
+ U=Cg(S),Z&&U&&(Mr(a.g,"BaseURL",Z,U),J=!0);J&&a.g||(fa=G.map(Cg),I=Bb(e,fa));aa=function(){return a.g&&J?Nr(a.g,"BaseURL"):I?I:[]};Wa=0;G&&G.length&&(Wa=Eg(G[0],"availabilityTimeOffset",Lg)||0);ib=a.h.dash.ignoreMinBufferTime;Eb=0;ib||(Eb=Eg(b,"minBufferTime",Gg)||0);a.H=Eg(b,"minimumUpdatePeriod",Gg,-1);bc=Eg(b,"availabilityStartTime",Fg);Kb=Eg(b,"timeShiftBufferDepth",Gg);Ea=a.h.dash.ignoreSuggestedPresentationDelay;rb=null;Ea||(rb=Eg(b,"suggestedPresentationDelay",Gg));Fb=a.h.dash.ignoreMaxSegmentDuration;
838
+ cc=null;Fb||(cc=Eg(b,"maxSegmentDuration",Gg));dc=b.getAttribute("type")||"static";if(a.j)for(sb=a.j.presentationTimeline,Ud=t(Object.values(a.m)),wd=Ud.next();!wd.done;wd=Ud.next())Vd=wd.value,Vd.segmentIndex&&Vd.segmentIndex.vb(sb.xb());else Dc=a.h.defaultPresentationDelay||1.5*Eb,Wd=null!=rb?rb:Dc,sb=new rj(bc,Wd,a.h.dash.autoCorrectDrift);sb.Uc("static"==dc);(hi=sb.R())&&!isNaN(a.h.availabilityWindowOverride)&&(Kb=a.h.availabilityWindowOverride);null==Kb&&(Kb=Infinity);sb.He(Kb);Ye=b.getAttribute("profiles")||
839
+ "";Xd={Tb:"static"!=dc,presentationTimeline:sb,Ja:null,ma:null,Ea:null,P:null,bandwidth:0,Xg:!1,Fc:Wa,profiles:Ye.split(",")};Lc=Fs(a,Xd,aa,b);jd=Lc.duration;lg=Lc.periods;"static"!=dc&&Lc.Ng||sb.eb(jd||Infinity);a.D&&!a.u&&(mg=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.u=a.i.isLowLatencyMode());a.u?sb.kh(a.D):a.D&&Ta("Low-latency DASH 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.");
840
+ sb.Tf(cc||1);return D(kd,a.l.Ig(lg,Xd.Tb),2);case 2:return D(kd,v,3);case 3:a.u&&(Eb=0);if(a.j){a.j.variants=a.l.j;wl=a.l.Ff();0<wl.length&&(a.j.textStreams=wl);a.j.imageStreams=a.l.i;a.i.filter(a.j);kd.F(4);break}a.j={presentationTimeline:sb,variants:a.l.j,textStreams:a.l.Ff(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:Eb||0,sequenceMode:a.h.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Gs(b)};if(!sb.wh()){kd.F(5);break}Xr=wg(b,"UTCTiming");
841
+ return D(kd,Hs(a,aa,Xr),6);case 6:Yr=kd.h;if(!a.i)return kd.return();sb.lh(Yr);case 5:sb.pe();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),F(kd)}})}
839
842
  function Gs(a){a=vg(a,"ServiceDescription");if(!a)return null;var b=vg(a,"Latency"),c=vg(a,"PlaybackRate");if(b&&b.getAttribute("max")||c){a=b&&b.getAttribute("max")?parseInt(b.getAttribute("max"),10)/1E3:null;var d=c?parseFloat(c.getAttribute("max")):null;b=b&&b.getAttribute("min")?parseInt(b.getAttribute("min"),10)/1E3:null;c=c?parseFloat(c.getAttribute("min")):null;return{maxLatency:a,maxPlaybackRate:d,minLatency:b,minPlaybackRate:c}}return null}
840
- function Fs(a,b,c,d){var e=Eg(d,"mediaPresentationDuration",Gg),f=[],g=0;d=wg(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=Eg(k,"start",Gg,g),n=k.id,r=Eg(k,"duration",Gg),q=null;if(l){var u=Eg(l,"start",Gg);null!=u&&(q=u-m)}else null!=e&&(q=e-m);null==q&&(q=r);if(!(null!==a.C&&null!==n&&null!==m&&m<a.C)||a.L.includes(n)||h+1==d.length){null!==m&&(null===a.C||m>a.C)&&(a.C=m);g=Is(a,b,c,{start:m,duration:q,node:k,Ef:null==q||!l});f.push(g);b.Ia.id&&q&&(a.M[b.Ia.id]=q);if(null==q){g=
841
- null;break}g=m+q}}a.L=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Ig:!1}:{periods:f,duration:g,Ig:!0}}
842
- function Is(a,b,c,d){b.Ia=Js(a,d.node,null,c);b.ma=d;b.Ia.Cc=b.Cc;b.Ia.id||(b.Ia.id="__shaka_period_"+d.start);var e=wg(d.node,"EventStream");c=b.presentationTimeline.ub();e=t(e);for(var f=e.next();!f.done;f=e.next())Ks(a,d.start,d.duration,f.value,c);c=wg(d.node,"AdaptationSet").map(function(m){return Ls(a,b,m)}).filter(Bd);if(b.Rb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.$i);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new P(2,4,4018);
843
- }d=c.filter(function(m){return!m.pg});c=c.filter(function(m){return m.pg});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.pg.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={Rd:h.Rd},l=k.next())h.Rd=l.value,h.Rd.trickModeVideo=e.streams.find(function(m){return function(n){return ld(m.Rd.codecs)==ld(n.codecs)}}(h))}}}c=Ms(a.h.disableAudio,d,"audio");e=Ms(a.h.disableVideo,d,"video");f=Ms(a.h.disableText,
844
- d,Ib);d=Ms(a.h.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new P(2,4,4004);return{id:b.Ia.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function Ms(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,w(e.streams));return d},[])}
845
- function Ls(a,b,c){function d(G){switch(G){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Ca=Js(a,c,b.Ia,null);var e=!1,f=wg(c,"Role"),g=f.map(function(G){return G.getAttribute("value")}).filter(Bd),h=void 0,k=b.Ca.contentType==Ib;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
843
+ function Fs(a,b,c,d){var e=Eg(d,"mediaPresentationDuration",Gg),f=[],g=0;d=wg(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=Eg(k,"start",Gg,g),n=k.id,r=Eg(k,"duration",Gg),q=null;if(l){var u=Eg(l,"start",Gg);null!=u&&(q=u-m)}else null!=e&&(q=e-m);null==q&&(q=r);if(!(null!==a.C&&null!==n&&null!==m&&m<a.C)||a.L.includes(n)||h+1==d.length){null!==m&&(null===a.C||m>a.C)&&(a.C=m);g=Is(a,b,c,{start:m,duration:q,node:k,If:null==q||!l});f.push(g);b.Ja.id&&q&&(a.M[b.Ja.id]=q);if(null==q){g=
844
+ null;break}g=m+q}}a.L=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Ng:!1}:{periods:f,duration:g,Ng:!0}}
845
+ function Is(a,b,c,d){b.Ja=Js(a,d.node,null,c);b.ma=d;b.Ja.Fc=b.Fc;b.Ja.id||(b.Ja.id="__shaka_period_"+d.start);var e=wg(d.node,"EventStream");c=b.presentationTimeline.xb();e=t(e);for(var f=e.next();!f.done;f=e.next())Ks(a,d.start,d.duration,f.value,c);c=wg(d.node,"AdaptationSet").map(function(m){return Ls(a,b,m)}).filter(Bd);if(b.Tb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.dj);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new P(2,4,4018);
846
+ }d=c.filter(function(m){return!m.ug});c=c.filter(function(m){return m.ug});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.ug.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={Ud:h.Ud},l=k.next())h.Ud=l.value,h.Ud.trickModeVideo=e.streams.find(function(m){return function(n){return ld(m.Ud.codecs)==ld(n.codecs)}}(h))}}}c=Ms(a.h.disableAudio,d,"audio");e=Ms(a.h.disableVideo,d,"video");f=Ms(a.h.disableText,
847
+ d,Ib);d=Ms(a.h.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new P(2,4,4004);return{id:b.Ja.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function Ms(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,w(e.streams));return d},[])}
848
+ function Ls(a,b,c){function d(G){switch(G){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Ea=Js(a,c,b.Ja,null);var e=!1,f=wg(c,"Role"),g=f.map(function(G){return G.getAttribute("value")}).filter(Bd),h=void 0,k=b.Ea.contentType==Ib;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
846
849
  l}}var n;m=wg(c,"EssentialProperty");f=null;var r=!1;l=!1;m=t(m);for(var q=m.next();!q.done;q=m.next()){q=q.value;var u=q.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==u?f=q.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==u?n=d(parseInt(q.getAttribute("value"),10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=u&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=u&&("urn:mpeg:dash:ssr:2023"==u?r=!0:l=!0)}m=wg(c,"SupplementalProperty");m=t(m);for(q=m.next();!q.done;q=
847
850
  m.next())q=q.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==q.getAttribute("schemeIdUri")&&(n=d(parseInt(q.getAttribute("value"),10)));m=wg(c,"Accessibility");var v=new Map,y;m=t(m);for(q=m.next();!q.done;q=m.next())if(u=q.value,q=u.getAttribute("schemeIdUri"),u=u.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==q)if(q=1,null!=u){u=u.split(";");for(var z=t(u),x=z.next();!x.done;x=z.next()){var B=x.value,A=x=void 0;B.includes("=")?(B=B.split("="),x=B[0].startsWith("CC")?B[0]:"CC"+B[0],
848
851
  A=B[1]||"und"):(x="CC"+q,2==u.length?q+=2:q++,A=B);v.set(x,Nb(A))}}else v.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==q)if(q=1,null!=u)for(u=t(u.split(";")),x=u.next();!x.done;x=u.next())x=x.value,B=z=void 0,x.includes("=")?(x=x.split("="),z="svc"+x[0],B=x[1].split(",")[0].split(":").pop()):(z="svc"+q,q++,B=x),v.set(z,Nb(B));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==q?null!=u&&(g.push(u),"captions"==u&&(h="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==q&&("1"==
849
- u?y="visually impaired":"2"==u&&(y="hard of hearing"));if(l)return null;l=wg(c,"ContentProtection");var C=Kq(l,a.h.dash.ignoreDrmInfo,a.h.dash.keySystemsByURI),E=Nb(b.Ca.language||"und"),H=c.getAttribute("label");(l=wg(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(H=l.textContent));l=wg(c,"Representation");c=l.map(function(G){if(G=Ns(a,b,C,h,E,H,e,g,v,G,y))G.hdr=G.hdr||n,G.fastSwitching=r;return G}).filter(function(G){return!!G});if(0==c.length){f="image"==b.Ca.contentType;if(a.h.dash.ignoreEmptyAdaptationSet||
850
- k||f)return null;throw new P(2,4,4003);}if(!b.Ca.contentType||"application"==b.Ca.contentType)for(b.Ca.contentType=Os(c[0].mimeType,c[0].codecs),k=t(c),q=k.next();!q.done;q=k.next())q.value.type=b.Ca.contentType;k=b.Ca.id||"__fake__"+a.K++;m=t(c);for(q=m.next();!q.done;q=m.next()){q=q.value;u=t(C.drmInfos);for(z=u.next();!z.done;z=u.next())z=z.value,z.keyIds=z.keyIds&&q.keyIds?new Set([].concat(w(z.keyIds),w(q.keyIds))):z.keyIds||q.keyIds;a.h.dash.enableAudioGroups&&(q.groupId=k)}l=l.map(function(G){return G.getAttribute("id")}).filter(Bd);
851
- return{id:k,contentType:b.Ca.contentType,language:E,lk:e,streams:c,drmInfos:C.drmInfos,pg:f,$i:l}}
852
- function Ns(a,b,c,d,e,f,g,h,k,l,m){b.P=Js(a,l,b.Ca,null);a.D=Math.min(a.D,b.P.Cc);if(!Ps(b.P))return null;var n=b.ma.start;b.bandwidth=Eg(l,"bandwidth",Jg)||0;var r=b.P.contentType,q=r==Ib||"application"==r;r="image"==r;try{var u=void 0;if(c.Ve){var v=b.P.sb,y=Bb(v(),[c.Ve.Ji]),z=zf(y,a.h.retryParameters);u={method:"AES-128",iv:c.Ve.iv,firstMediaSequenceNumber:0,fetchKey:function(){var I,J,M;return K(function(O){if(1==O.g)return D(O,Cs(a,z,6),2);if(3!=O.g){I=O.h;if(!I.data||16!=I.data.byteLength)throw new P(2,
853
- 4,4049);J={name:"AES-CBC"};M=u;return D(O,window.crypto.subtle.importKey("raw",I.data,J,!0,["decrypt"]),3)}M.cryptoKey=O.h;u.fetchKey=void 0;F(O)})}}}v=function(I,J,M,O){return Qs(a,I,J,M,O)};if(b.P.Gd)var x=nr(b,v,u);else if(b.P.bc)x=tr(b,a.m,u);else if(b.P.Hd)x=yr(b,v,a.m,!!a.j,a.h.dash.initialSegmentLimit,a.M,u);else{var B=b.ma.duration||0,A=b.P.sb;x={Fc:function(){return Promise.resolve(Qj(n,B,A()))}}}}catch(I){if((q||r)&&4002==I.code)return null;throw I;}v=wg(l,"ContentProtection");v=Oq(v,c,
852
+ u?y="visually impaired":"2"==u&&(y="hard of hearing"));if(l)return null;l=wg(c,"ContentProtection");var C=Kq(l,a.h.dash.ignoreDrmInfo,a.h.dash.keySystemsByURI),E=Nb(b.Ea.language||"und"),H=c.getAttribute("label");(l=wg(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(H=l.textContent));l=wg(c,"Representation");c=l.map(function(G){if(G=Ns(a,b,C,h,E,H,e,g,v,G,y))G.hdr=G.hdr||n,G.fastSwitching=r;return G}).filter(function(G){return!!G});if(0==c.length){f="image"==b.Ea.contentType;if(a.h.dash.ignoreEmptyAdaptationSet||
853
+ k||f)return null;throw new P(2,4,4003);}if(!b.Ea.contentType||"application"==b.Ea.contentType)for(b.Ea.contentType=Os(c[0].mimeType,c[0].codecs),k=t(c),q=k.next();!q.done;q=k.next())q.value.type=b.Ea.contentType;k=b.Ea.id||"__fake__"+a.K++;m=t(c);for(q=m.next();!q.done;q=m.next()){q=q.value;u=t(C.drmInfos);for(z=u.next();!z.done;z=u.next())z=z.value,z.keyIds=z.keyIds&&q.keyIds?new Set([].concat(w(z.keyIds),w(q.keyIds))):z.keyIds||q.keyIds;a.h.dash.enableAudioGroups&&(q.groupId=k)}l=l.map(function(G){return G.getAttribute("id")}).filter(Bd);
854
+ return{id:k,contentType:b.Ea.contentType,language:E,rk:e,streams:c,drmInfos:C.drmInfos,ug:f,dj:l}}
855
+ function Ns(a,b,c,d,e,f,g,h,k,l,m){b.P=Js(a,l,b.Ea,null);a.D=Math.min(a.D,b.P.Fc);if(!Ps(b.P))return null;var n=b.ma.start;b.bandwidth=Eg(l,"bandwidth",Jg)||0;var r=b.P.contentType,q=r==Ib||"application"==r;r="image"==r;try{var u=void 0;if(c.$e){var v=b.P.wb,y=Bb(v(),[c.$e.Ni]),z=zf(y,a.h.retryParameters);u={method:"AES-128",iv:c.$e.iv,firstMediaSequenceNumber:0,fetchKey:function(){var I,J,M;return K(function(O){if(1==O.g)return D(O,Cs(a,z,6),2);if(3!=O.g){I=O.h;if(!I.data||16!=I.data.byteLength)throw new P(2,
856
+ 4,4049);J={name:"AES-CBC"};M=u;return D(O,window.crypto.subtle.importKey("raw",I.data,J,!0,["decrypt"]),3)}M.cryptoKey=O.h;u.fetchKey=void 0;F(O)})}}}v=function(I,J,M,O){return Qs(a,I,J,M,O)};if(b.P.Jd)var x=nr(b,v,u);else if(b.P.cc)x=tr(b,a.m,u);else if(b.P.Kd)x=yr(b,v,a.m,!!a.j,a.h.dash.initialSegmentLimit,a.M,u);else{var B=b.ma.duration||0,A=b.P.wb;x={Ic:function(){return Promise.resolve(Qj(n,B,A()))}}}}catch(I){if((q||r)&&4002==I.code)return null;throw I;}v=wg(l,"ContentProtection");v=Oq(v,c,
854
857
  a.h.dash.ignoreDrmInfo,a.h.dash.keySystemsByURI);v=new Set(v?[v]:[]);y=!1;wg(l,"SupplementalProperty").some(function(I){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==I.getAttribute("schemeIdUri")&&"JOC"==I.getAttribute("value")})&&(y=!0);var C=!1;q&&(C=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var E;if(r&&((l=wg(l,"EssentialProperty").find(function(I){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(I.getAttribute("schemeIdUri"))}))&&
855
- (E=l.getAttribute("value")),!E))return null;var H;l=b.P.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(H="PQ");l=b.P.id?b.Ia.id+","+b.P.id:"";var G=l&&a.m[l]?a.m[l]:{id:a.K++,originalId:b.P.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){G.segmentIndex&&(G.segmentIndex.release(),G.segmentIndex=null)},segmentIndex:null,mimeType:b.P.mimeType,
856
- codecs:b.P.codecs,frameRate:b.P.frameRate,pixelAspectRatio:b.P.pixelAspectRatio,bandwidth:b.bandwidth,width:b.P.width,height:b.P.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:v,language:e,originalLanguage:b.Ca.language,label:f,type:b.Ca.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.P.emsgSchemeIdUris,roles:h,forced:C,channelsCount:b.P.ve,audioSamplingRate:b.P.audioSamplingRate,spatialAudio:y,closedCaptions:k,hdr:H,videoLayout:void 0,tilesLayout:E,accessibilityPurpose:m,
857
- external:!1,fastSwitching:!1};G.createSegmentIndex=function(){var I;return K(function(J){if(1==J.g){if(G.segmentIndex)return J.F(0);I=G;return D(J,x.Fc(),3)}I.segmentIndex=J.h;F(J)})};l&&b.Rb&&!a.m[l]&&(a.m[l]=G);return G}
858
- function zs(a){var b,c;K(function(d){switch(d.g){case 1:return b=0,ta(d,2),D(d,As(a),4);case 4:b=d.h;va(d,3);break;case 2:if(c=wa(d),a.i){if(a.h.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(c),d.return();c.severity=1;a.i.onError(c)}case 3:if(!a.i)return d.return();a.i.onManifestUpdated();Bs(a,b);F(d)}})}function Bs(a,b){0>=a.H||a.I.R(Math.max(a.H-b,dc(a.J)))}
859
- function Js(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ve:null,audioSamplingRate:null,Cc:0,cg:0};d=d||c.sb;var e=b.getAttribute("id"),f=wg(b,"BaseURL"),g,h=!1;if(a.g)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.getAttribute("serviceLocation");m=Cg(m);l&&m&&(Mr(a.g,e,l,m),h=!0)}h&&a.g||(g=f.map(Cg));k=b.getAttribute("contentType")||c.contentType;l=b.getAttribute("mimeType")||c.mimeType;m=b.getAttribute("codecs")||
860
- c.codecs;var n=Eg(b,"frameRate",Ng)||c.frameRate,r=b.getAttribute("sar")||c.pixelAspectRatio,q=Rs(wg(b,"InbandEventStream"),c.emsgSchemeIdUris),u=wg(b,"AudioChannelConfiguration");u=Ss(u)||c.ve;var v=Eg(b,"audioSamplingRate",Kg)||c.audioSamplingRate;k||(k=Os(l,m));var y=vg(b,"SegmentBase"),z=vg(b,"SegmentTemplate"),x=y?Eg(y,"availabilityTimeOffset",Lg)||0:0,B=z?Eg(z,"availabilityTimeOffset",Lg)||0:0,A=f&&f.length?Eg(f[0],"availabilityTimeOffset",Lg)||0:0;x=c.Cc+A+x+B;B=null;(A=vg(b,"SegmentSequenceProperties"))&&
861
- (A=vg(A,"SAP"))&&(B=Eg(A,"cadence",Ig));return{sb:function(){return Bb(d(),f.length?a.g&&h?Nr(a.g,e):g?g:[]:[])},Gd:y||c.Gd,bc:vg(b,"SegmentList")||c.bc,Hd:z||c.Hd,width:Eg(b,"width",Kg)||c.width,height:Eg(b,"height",Kg)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:r,emsgSchemeIdUris:q,id:e,language:b.getAttribute("lang"),ve:u,audioSamplingRate:v,Cc:x,cg:B||c.cg}}
858
+ (E=l.getAttribute("value")),!E))return null;var H;l=b.P.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(H="PQ");l=b.P.id?b.Ja.id+","+b.P.id:"";var G=l&&a.m[l]?a.m[l]:{id:a.K++,originalId:b.P.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){G.segmentIndex&&(G.segmentIndex.release(),G.segmentIndex=null)},segmentIndex:null,mimeType:b.P.mimeType,
859
+ codecs:b.P.codecs,frameRate:b.P.frameRate,pixelAspectRatio:b.P.pixelAspectRatio,bandwidth:b.bandwidth,width:b.P.width,height:b.P.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:v,language:e,originalLanguage:b.Ea.language,label:f,type:b.Ea.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.P.emsgSchemeIdUris,roles:h,forced:C,channelsCount:b.P.ye,audioSamplingRate:b.P.audioSamplingRate,spatialAudio:y,closedCaptions:k,hdr:H,videoLayout:void 0,tilesLayout:E,accessibilityPurpose:m,
860
+ external:!1,fastSwitching:!1};G.createSegmentIndex=function(){var I;return K(function(J){if(1==J.g){if(G.segmentIndex)return J.F(0);I=G;return D(J,x.Ic(),3)}I.segmentIndex=J.h;F(J)})};l&&b.Tb&&!a.m[l]&&(a.m[l]=G);return G}
861
+ function zs(a){var b,c;K(function(d){switch(d.g){case 1:return b=0,ta(d,2),D(d,As(a),4);case 4:b=d.h;va(d,3);break;case 2:if(c=wa(d),a.i){if(a.h.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(c),d.return();c.severity=1;a.i.onError(c)}case 3:if(!a.i)return d.return();a.i.onManifestUpdated();Bs(a,b);F(d)}})}function Bs(a,b){0>=a.H||a.I.S(Math.max(a.H-b,ac(a.J)))}
862
+ function Js(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ye:null,audioSamplingRate:null,Fc:0,fg:0};d=d||c.wb;var e=b.getAttribute("id"),f=wg(b,"BaseURL"),g,h=!1;if(a.g)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.getAttribute("serviceLocation");m=Cg(m);l&&m&&(Mr(a.g,e,l,m),h=!0)}h&&a.g||(g=f.map(Cg));k=b.getAttribute("contentType")||c.contentType;l=b.getAttribute("mimeType")||c.mimeType;m=b.getAttribute("codecs")||
863
+ c.codecs;var n=Eg(b,"frameRate",Ng)||c.frameRate,r=b.getAttribute("sar")||c.pixelAspectRatio,q=Rs(wg(b,"InbandEventStream"),c.emsgSchemeIdUris),u=wg(b,"AudioChannelConfiguration");u=Ss(u)||c.ye;var v=Eg(b,"audioSamplingRate",Kg)||c.audioSamplingRate;k||(k=Os(l,m));var y=vg(b,"SegmentBase"),z=vg(b,"SegmentTemplate"),x=y?Eg(y,"availabilityTimeOffset",Lg)||0:0,B=z?Eg(z,"availabilityTimeOffset",Lg)||0:0,A=f&&f.length?Eg(f[0],"availabilityTimeOffset",Lg)||0:0;x=c.Fc+A+x+B;B=null;(A=vg(b,"SegmentSequenceProperties"))&&
864
+ (A=vg(A,"SAP"))&&(B=Eg(A,"cadence",Ig));return{wb:function(){return Bb(d(),f.length?a.g&&h?Nr(a.g,e):g?g:[]:[])},Jd:y||c.Jd,cc:vg(b,"SegmentList")||c.cc,Kd:z||c.Kd,width:Eg(b,"width",Kg)||c.width,height:Eg(b,"height",Kg)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:r,emsgSchemeIdUris:q,id:e,language:b.getAttribute("lang"),ye:u,audioSamplingRate:v,Fc:x,fg:B||c.fg}}
862
865
  function Rs(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.getAttribute("schemeIdUri"),b.includes(c)||b.push(c);return b}
863
866
  function Ss(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
864
- parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function Ps(a){var b=a.Gd?1:0;b+=a.bc?1:0;b+=a.Hd?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.Gd&&(a.bc=null),a.Hd=null);return!0}
867
+ parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function Ps(a){var b=a.Jd?1:0;b+=a.cc?1:0;b+=a.Kd?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.Jd&&(a.cc=null),a.Kd=null);return!0}
865
868
  function Ts(a,b,c,d){var e,f,g,h,k,l;return K(function(m){if(1==m.g)return e=Bb(b(),[c]),f=zf(e,a.h.retryParameters),f.method=d,g=a.i.networkingEngine.request(4,f),uf(a.G,g),D(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m.return(0);k=h.headers.date}else k=Sf(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})}
866
869
  function Hs(a,b,c){var d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:d=c.map(function(r){return{scheme:r.getAttribute("schemeIdUri"),value:r.getAttribute("value")}}),e=a.h.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.F(4);break}h=g.value;ta(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.F(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 n.F(8);
867
870
  case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ta("NTP UTCTiming scheme is not supported");break;default:Ta("Unrecognized scheme in UTCTiming element",k)}n.F(9);break;case 7:return D(n,Ts(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return D(n,Ts(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:va(n,
868
871
  3);break;case 5:wa(n);case 3:g=f.next();n.F(2);break;case 4:return Ta("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
869
872
  function Ks(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=Eg(d,"timescale",Kg)||1;d=t(wg(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=Eg(k,"presentationTime",Kg)||0,m=Eg(k,"duration",Kg)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.i.onTimelineRegionAdded(k))}}
870
- function Qs(a,b,c,d,e){var f,g,h,k;return K(function(l){if(1==l.g)return f=Ff,g=e?0:1,h=nk(b,c,d,a.h.retryParameters),D(l,Cs(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function Os(a,b){b=fd(a,b);return rd(b)?Ib:a.split("/")[0]}function Cs(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);uf(a.G,b);return b.promise}L("shaka.dash.DashParser",ys);Hh["application/dash+xml"]=function(){return new ys};Hh["video/vnd.mpeg.dash.mpd"]=function(){return new ys};function Us(){}L("shaka.dependencies",Us);Us.has=function(a){return Vs.has(a)};Us.add=function(a,b){if(!Ws[a])throw Error(a+" is not supported");a==Xs?Le("mux.js","mux.js is no longer used in Shaka Player."):Vs.set(a,function(){return b})};var Xs="muxjs",Ws={nk:Xs,ISOBoxer:"ISOBoxer"};Us.Allowed=Ws;var Vs=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Ys(a,b,c){this.type=a;this.g=b;this.segments=c||null}function Zs(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Zs.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.g?this.g.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
871
- function $s(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}Zs.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function X(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function at(a,b){a=a.getAttribute(b);if(!a)throw new P(2,4,4023,b);return a.value}function bt(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.vb=c}
872
- function ct(a,b){this.name=a;this.value=b};function dt(a,b){return a.filter(function(c){return c.name==b})}function et(a,b){return a.filter(function(c){return at(c,"TYPE")==b})}function ft(a,b){a=dt(a,b);return a.length?a[0]:null}function gt(a,b,c){c=void 0===c?0:c;return(a=ft(a,b))?Number(a.value):c}function ht(a,b,c){return b?it(a,[b],c):[]}
873
+ function Qs(a,b,c,d,e){var f,g,h,k;return K(function(l){if(1==l.g)return f=Ff,g=e?0:1,h=nk(b,c,d,a.h.retryParameters),D(l,Cs(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function Os(a,b){b=fd(a,b);return rd(b)?Ib:a.split("/")[0]}function Cs(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);uf(a.G,b);return b.promise}L("shaka.dash.DashParser",ys);Hh["application/dash+xml"]=function(){return new ys};Hh["video/vnd.mpeg.dash.mpd"]=function(){return new ys};function Us(){}L("shaka.dependencies",Us);Us.has=function(a){return Vs.has(a)};Us.add=function(a,b){if(!Ws[a])throw Error(a+" is not supported");a==Xs?Le("mux.js","mux.js is no longer used in Shaka Player."):Vs.set(a,function(){return b})};var Xs="muxjs",Ws={tk:Xs,ISOBoxer:"ISOBoxer"};Us.Allowed=Ws;var Vs=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Ys(a,b,c){this.type=a;this.g=b;this.segments=c||null}function Zs(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Zs.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.g?this.g.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
874
+ function $s(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}Zs.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function X(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function at(a,b){a=a.getAttribute(b);if(!a)throw new P(2,4,4023,b);return a.value}function bt(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.yb=c}
875
+ function ct(a,b){this.name=a;this.value=b};function dt(a,b){return a.filter(function(c){return c.name==b})}function et(a,b){return a.filter(function(c){return at(c,"TYPE")==b})}function ft(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function gt(a,b,c){c=void 0===c?0:c;return(a=ft(a,b))?Number(a.value):c}function ht(a,b,c){return b?it(a,[b],c):[]}
873
876
  function it(a,b,c){if(!b.length)return[];b=Bb(a,b);a=[];b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=a,f=e.push;var g=d.value;if((d=c)&&d.size){g=String(g).replace(/%7B/g,"{").replace(/%7D/g,"}");var h=g.match(/{\$\w*}/g);if(h){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=k.slice(2,k.length-1),m=d.get(l);if(m)g=g.replace(k,m);else throw new P(2,4,4039,l);}}d=g}else d=g;f.call(e,d)}return a};function jt(a){this.h=a||"";this.g=0}function kt(a){lt(a,/[ \t]+/gm)}function lt(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function mt(a){return a.g==a.h.length?null:(a=lt(a,/[^ \t\n]*/gm))?a[0]:null};function nt(){this.g=0}
874
877
  function ot(a,b){b=Sf(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var c=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(c[0]))throw new P(2,4,4015);b=0;for(var d=!0,e=t(c),f=e.next();!f.done;f=e.next())if(f=f.value,/^#(?!EXT)/m.test(f)||d)d=!1;else if(f=pt(a,f),--a.g,qt.includes(f.name)){b=1;break}else"EXT-X-STREAM-INF"==f.name&&(d=!0);e=[];d=!0;for(f=0;f<c.length;f++){var g=c[f],h=c[f+1];if(/^#(?!EXT)/m.test(g)||d)d=!1;else{g=pt(a,g);if(rt.includes(g.name)){if(1!=b)throw new P(2,4,4017);g=
875
878
  c.splice(f,c.length-f);c=[];d=[];f=[];h=null;g=t(g);for(var k=g.next();!k.done;k=g.next())k=k.value,/^(#EXT)/.test(k)?(k=pt(a,k),qt.includes(k.name)?e.push(k):"EXT-X-MAP"==k.name?h=k:"EXT-X-PART"==k.name?f.push(k):"EXT-X-PRELOAD-HINT"==k.name?"PART"==X(k,"TYPE")?f.push(k):"MAP"==X(k,"TYPE")&&(k.name="EXT-X-MAP",h=k):d.push(k)):/^#(?!EXT)/m.test(k)||(k=k.trim(),h&&d.push(h),c.push(new bt(k,d,f)),d=[],f=[]);f.length&&(h&&d.push(h),c.push(new bt("",d,f)));return new Ys(b,e,c)}e.push(g);"EXT-X-STREAM-INF"==
@@ -877,266 +880,265 @@ g.name&&(g.g.push(new ct("URI",h)),d=!0)}}return new Ys(b,e)}function pt(a,b){a=
877
880
  var qt="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),rt="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function st(){}function tt(a){try{var b=ut(a);return pf({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return nf(c)}}
878
881
  function ut(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new P(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new P(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=pg(a):e=Wf(a);return{data:e,contentType:c}}L("shaka.net.DataUriPlugin",st);st.parse=tt;wf("data",tt);function vt(a){var b=od(a),c=b.split("/")[0];a=pd(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map}}
879
882
  function wt(a,b){function c(v){return d(v.name)}function d(v){v=v.toLowerCase();switch(v){case "avc1":case "avc3":e.push(v+".42E01E");g=!0;break;case "hev1":case "hvc1":e.push(v+".1.6.L93.90");g=!0;break;case "dvh1":case "dvhe":e.push(v+".05.04");g=!0;break;case "vp09":e.push(v+".00.10.08");g=!0;break;case "av01":e.push(v+".0.01M.08");g=!0;break;case "mp4a":e.push("mp4a.40.2");f=!0;break;case "ac-3":case "ec-3":case "opus":case "flac":e.push(v),f=!0}}var e=[],f=!1,g=!1,h=null,k=null,l=null,m=null,
880
- n=null;(new ag).box("moov",fg).box("trak",fg).W("tkhd",function(v){v=gi(v.reader,v.version);k=String(v.height);l=String(v.width)}).box("mdia",fg).W("mdhd",function(v){h=ei(v.reader,v.version).language}).box("minf",fg).box("stbl",fg).W("stsd",hg).box("mp4a",function(v){var y=v.reader;y.skip(6);y.skip(2);y.skip(8);var z=y.Ra();y.skip(2);y.skip(2);y.skip(2);y=y.Ra()+y.Ra()/65536;m=z;n=y;v.reader.va()?fg(v):c(v)}).box("esds",function(v){v=ii(v.reader);e.push(v.ua);f=!0}).box("ac-3",c).box("ec-3",c).box("opus",
881
- c).box("Opus",c).box("fLaC",c).box("avc1",function(v){v=ji(v.reader,v.name);e.push(v.ua);g=!0}).box("avc3",function(v){v=ji(v.reader,v.name);e.push(v.ua);g=!0}).box("hev1",c).box("hvc1",c).box("dvh1",c).box("dvhe",c).box("vp09",c).box("av01",c).box("enca",ig).box("encv",ig).box("sinf",fg).box("frma",function(v){v=ki(v.reader).ua;d(v)}).parse(a||b,!0);if(!e.length)return null;var r=f&&!g,q=new Map;if(g){var u=new tc("video/mp4");a&&u.init(a);u.i(b);a=t(u.j());for(b=a.next();!b.done;b=a.next())b=b.value,
882
- q.set(b,b);u.h()}return{type:r?"audio":"video",mimeType:r?"audio/mp4":"video/mp4",codecs:xt(e).join(", "),language:h,height:k,width:l,channelCount:m,sampleRate:n,closedCaptions:q}}function xt(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=nd(d);b.has(e)||(c.push(d),b.add(e))}return c};function yt(){var a=this;this.g=this.h=null;this.C=1;this.s=new Map;this.J=new Map;this.L=new Map;this.L.set("video",new Map);this.L.set("audio",new Map);this.L.set(Ib,new Map);this.L.set("image",new Map);this.za=new Set;this.i=new Map;this.l=null;this.Z="";this.ra=new nt;this.K=-1;this.U=Infinity;this.$=this.Ua=!1;this.u=new Fd(function(){zt(a)});this.aa=At;this.G=null;this.sa=0;this.m=Infinity;this.ha=this.ya=this.M=0;this.N=new tf;this.H=new Map;this.I=new Map;this.V=new Map;this.Ta=this.D=!1;
883
- this.Na=new $b(5);this.j=null}p=yt.prototype;p.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};p.start=function(a,b){var c=this,d;return K(function(e){return 1==e.g?(c.h=b,c.D=b.isLowLatencyMode(),D(e,Bt(c,[a]),2)):3!=e.g?(d=e.h,c.Z=d.uri,D(e,Ct(c,d.data,a),3)):e.return(c.G)})};
884
- p.stop=function(){this.u&&(this.u.stop(),this.u=null);var a=[];this.N&&(a.push(this.N.destroy()),this.N=null);this.g=this.h=null;this.za.clear();this.G=null;this.i.clear();this.J.clear();this.I.clear();this.s.clear();this.V.clear();this.j&&this.j.destroy();return Promise.all(a)};
885
- p.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){if(!Dt(a))return m.return();b=[];c=Array.from(a.i.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(Et(a,g));return D(m,Promise.all(b),2)}Ft(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.rd});d.length&&!h&&(k=Gt,Ht(a,k.Ah),l=d.map(function(n){return n.Ib}),a.l.bb(Math.min.apply(Math,w(l))),a.h.updateDuration());
886
- h&&It(a);F(m)})};function Jt(a,b){return Dt(a)?a.L.get(b.type):b.pe}
887
- function Et(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U;return K(function(ia){if(1==ia.g){c=[];d=t(b.ba());for(e=d.next();!e.done;e=d.next())f=e.value,g=new hb(f),h=g.g,b.Ud&&(0<=b.mb&&h.add("_HLS_msn",String(b.mb)),0<=b.ob&&h.add("_HLS_part",String(b.ob))),b.Vd&&h.add("_HLS_skip","YES"),zb(h)&&mb(g,h),c.push(g.toString());return D(ia,Bt(a,c,!0),2)}k=ia.h;if(!b.stream.segmentIndex)return ia.return();l=ot(a.ra,k.data);if(1!=l.type)throw new P(2,4,4017);m=k.uri;m==k.originalUri||
888
- b.ba().includes(m)||b.bh.push(m);n=dt(l.g,"EXT-X-DEFINE");r=Kt(a,n,m);q=b.stream;u=Jt(a,b);v=Lt(l,q.mimeType);y=v.keyIds;z=v.drmInfos;x=function(aa,Wa){return aa.size===Wa.size&&[].concat(w(aa)).every(function(ib){return Wa.has(ib)})};x(q.keyIds,y)||(q.keyIds=y,q.drmInfos=z,a.h.newDrmInfo(q));B=Mt(a,l,q,u,r,b.ba);A=B.segments;C=B.bandwidth;q.bandwidth=C;q.segmentIndex.xd(A,a.l.ub());A.length&&(E=gt(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(H=ft(l.g,"EXT-X-SKIP"))?Number(X(H,"SKIPPED-SEGMENTS")):0,I=Nt(E,A),
889
- J=I.mb,M=I.ob,b.mb=J+G,b.ob=M,O=u.get(E),q.segmentIndex.rb(O));S=A[0];b.tc=S.startTime;Z=A[A.length-1];b.Ib=Z.endTime;if(U=ft(l.g,"EXT-X-ENDLIST"))b.rd=!0;Ot(a,l);F(ia)})}p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(a){this.j&&this.j.i.set(a,Date.now()+6E4)};
890
- function Pt(a,b){for(var c=-1==a.K,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=Jt(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.K=Math.max(a.K,k));e.df=k;break}}}}if(!(0>a.K))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.K-c.df),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),Qt(a,c,d)}
891
- function Rt(a,b){if(Infinity==a.U){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.h&&(a.U=Math.min(a.U,d.h))}}b=a.U;if(Infinity!=b)for(d=t(a.i.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.h)Sa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.ba(),"Expect AV sync issues!");else for(Qt(a,c,f.h-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.mg(b)}}}
892
- function Qt(a,b,c){b.tc+=c;b.Ib+=c;a=Jt(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.ba()}
893
- function Ct(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U,ia;return K(function(aa){switch(aa.g){case 1:d=ot(a.ra,b);e=dt(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},D(aa,St(a,d,v),6);Tt(a,e);k=dt(d.g,"EXT-X-MEDIA");l=dt(d.g,"EXT-X-STREAM-INF");m=dt(d.g,"EXT-X-IMAGE-STREAM-INF");n=dt(d.g,"EXT-X-I-FRAME-STREAM-INF");r=dt(d.g,"EXT-X-SESSION-KEY");q=dt(d.g,"EXT-X-SESSION-DATA");u=dt(d.g,"EXT-X-CONTENT-STEERING");Ut(a,q);return D(aa,Vt(a,u),4);
894
- case 4:return Wt(a,l),Xt(a,k),f=Yt(a,l,r,k),g=Zt(a,k),D(aa,$t(a,m,n),5);case 5:h=aa.h;aa.F(3);break;case 6:return y=aa.h,z=y.type,x=y.mimeType,B=y.codecs,A=y.language,C=y.height,E=y.width,H=y.channelCount,G=y.sampleRate,I=y.closedCaptions,D(aa,au(a,a.C++,d,v,c,B,z,A,!0,"Media Playlist",H,I,null,!1,G,!1,x),7);case 7:J=aa.h,a.i.set(c,J),"video"==z&&bu(J.stream,E,C,null,null,null),f.push({id:0,language:Nb(A||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==z?J.stream:null,video:"video"==z?J.stream:
895
- null,bandwidth:J.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new P(2,7,7001);a.l=new rj(null,0);a.l.Rc(!0);1==d.type&&(Dt(a)&&(cu(a,d),M=a.m,a.u.R(M)),O=Array.from(a.i.values()),du(a,O),It(a));a.G={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null};
896
- if(a.$||!a.g.hls.disableCodecGuessing){aa.F(8);break}S=[];Z=t(a.G.variants);for(U=Z.next();!U.done;U=Z.next())ia=U.value,ia.audio&&""===ia.audio.codecs&&S.push(ia.audio.createSegmentIndex()),ia.video&&""===ia.video.codecs&&S.push(ia.video.createSegmentIndex());return D(aa,Promise.all(S),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.G),F(aa)}})}
897
- function St(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:d=vt(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return C.return(d);e=Math.trunc((b.segments.length-1)/2);f=b.segments[e];g=ht(c(),b.segments[0].h);h=g[0];k=new hb(h);l=k.Va.split(".").pop();if(m=eu[l])return C.return(vt(m));n=Ff;r=null;q=fu(a,b,f.g,c);a.V.clear();if(!q){C.F(2);break}u=zf(q.ba(),a.g.retryParameters);return D(C,gu(a,u,n,{type:0}),3);case 3:v=C.h,r=v.data;case 2:return y=
898
- zf(g,a.g.retryParameters),D(C,gu(a,y,n,{type:1}),4);case 4:z=C.h;(x=z.headers["content-type"])&&(x=x.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==x){var E=z.data;var H=nc(E);H=(new vi).parse(H);var G=H.nd();H=H.Df();var I=[],J=!1,M=!1;switch(G.audio){case "aac":I.push("mp4a.40.2");J=!0;break;case "mp3":I.push("mp4a.40.34");J=!0;break;case "ac3":I.push("ac-3");J=!0;break;case "ec3":I.push("ec-3"),J=!0}switch(G.video){case "avc":H.ua?I.push(H.ua):I.push("avc1.42E01E");M=!0;break;case "hvc":H.ua?
899
- I.push(H.ua):I.push("hvc1.1.6.L93.90"),M=!0}if(I.length){G=J&&!M;J=new Map;if(M){M=new tc("video/mp2t");M.i(E);E=t(M.j());for(var O=E.next();!O.done;O=E.next())O=O.value,J.set(O,O);M.h()}H={type:G?"audio":"video",mimeType:"video/mp2t",codecs:I.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,closedCaptions:J}}else H=null;if(B=H)return C.return(B)}else if("mp4"==l||"cmfv"==l||"m4s"==l||"video/mp4"==x||"audio/mp4"==x||"video/iso.segment"==x)if(A=wt(r,z.data))return C.return(A);
900
- return C.return(d)}})}function It(a){if(Dt(a)){if(a.aa==hu){for(var b,c=b=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.Ib),c=Math.min(c,e.tc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.De(b)}}else a.l.bb(iu(a));a.l.le()}
883
+ n=null;(new ag).box("moov",fg).box("trak",fg).W("tkhd",function(v){v=gi(v.reader,v.version);k=String(v.height);l=String(v.width)}).box("mdia",fg).W("mdhd",function(v){h=ei(v.reader,v.version).language}).box("minf",fg).box("stbl",fg).W("stsd",hg).box("mp4a",function(v){var y=v.reader;y.skip(6);y.skip(2);y.skip(8);var z=y.Sa();y.skip(2);y.skip(2);y.skip(2);y=y.Sa()+y.Sa()/65536;m=z;n=y;v.reader.xa()?fg(v):c(v)}).box("esds",function(v){v=ii(v.reader);e.push(v.wa);f=!0}).box("ac-3",c).box("ec-3",c).box("opus",
884
+ c).box("Opus",c).box("fLaC",c).box("avc1",function(v){v=ji(v.reader,v.name);e.push(v.wa);g=!0}).box("avc3",function(v){v=ji(v.reader,v.name);e.push(v.wa);g=!0}).box("hev1",c).box("hvc1",c).box("dvh1",c).box("dvhe",c).box("vp09",c).box("av01",c).box("enca",ig).box("encv",ig).box("sinf",fg).box("frma",function(v){v=ki(v.reader).wa;d(v)}).parse(a||b,!0);if(!e.length)return null;var r=f&&!g,q=new Map;if(g){var u=new tc("video/mp4");a&&u.init(a);u.i(b);a=t(u.j());for(b=a.next();!b.done;b=a.next())b=b.value,
885
+ q.set(b,b);u.h()}return{type:r?"audio":"video",mimeType:r?"audio/mp4":"video/mp4",codecs:xt(e).join(", "),language:h,height:k,width:l,channelCount:m,sampleRate:n,closedCaptions:q}}function xt(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=nd(d);b.has(e)||(c.push(d),b.add(e))}return c};function yt(){var a=this;this.g=this.i=null;this.C=1;this.s=new Map;this.J=new Map;this.L=new Map;this.L.set("video",new Map);this.L.set("audio",new Map);this.L.set(Ib,new Map);this.L.set("image",new Map);this.va=new Set;this.h=new Map;this.l=null;this.Z="";this.sa=new nt;this.K=-1;this.U=Infinity;this.$=this.Va=!1;this.u=new Fd(function(){zt(a)});this.aa=At;this.G=null;this.ua=0;this.m=Infinity;this.ha=this.Aa=this.M=0;this.N=new tf;this.H=new Map;this.I=new Map;this.V=new Map;this.Ua=this.D=!1;
886
+ this.Oa=new $b(5);this.j=null}p=yt.prototype;p.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};p.start=function(a,b){var c=this,d;return K(function(e){return 1==e.g?(c.i=b,c.D=b.isLowLatencyMode(),D(e,Bt(c,[a]),2)):3!=e.g?(d=e.h,c.Z=d.uri,D(e,Ct(c,d.data,a),3)):e.return(c.G)})};
887
+ p.stop=function(){this.u&&(this.u.stop(),this.u=null);var a=[];this.N&&(a.push(this.N.destroy()),this.N=null);this.g=this.i=null;this.va.clear();this.G=null;this.h.clear();this.J.clear();this.I.clear();this.s.clear();this.V.clear();this.j&&this.j.destroy();return Promise.all(a)};
888
+ p.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){if(!Dt(a))return m.return();b=[];c=Array.from(a.h.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(Et(a,g));return D(m,Promise.all(b),2)}Ft(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.ud});d.length&&!h&&(k=Gt,Ht(a,k.Dh),l=d.map(function(n){return n.Lb}),a.l.eb(Math.min.apply(Math,w(l))),a.i.updateDuration());
889
+ h&&It(a);F(m)})};function Jt(a,b){return Dt(a)?a.L.get(b.type):b.se}
890
+ function Et(a,b){var c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U;return K(function(fa){if(1==fa.g){c=[];d=t(b.ba());for(e=d.next();!e.done;e=d.next())f=e.value,g=new hb(f),h=g.g,b.Xd&&(0<=b.pb&&h.add("_HLS_msn",String(b.pb)),0<=b.qb&&h.add("_HLS_part",String(b.qb))),b.Yd&&h.add("_HLS_skip","YES"),zb(h)&&mb(g,h),c.push(g.toString());return D(fa,Bt(a,c,!0),2)}k=fa.h;if(!b.stream.segmentIndex)return fa.return();l=ot(a.sa,k.data);if(1!=l.type)throw new P(2,4,4017);m=k.uri;m==k.originalUri||
891
+ b.ba().includes(m)||b.hh.push(m);n=dt(l.g,"EXT-X-DEFINE");r=Kt(a,n,m);q=b.stream;u=Jt(a,b);v=Lt(l,q.mimeType);y=v.keyIds;z=v.drmInfos;x=function(aa,Wa){return aa.size===Wa.size&&[].concat(w(aa)).every(function(ib){return Wa.has(ib)})};x(q.keyIds,y)||(q.keyIds=y,q.drmInfos=z,a.i.newDrmInfo(q));B=Mt(a,l,q,u,r,b.ba);A=B.segments;C=B.bandwidth;q.bandwidth=C;q.segmentIndex.Bd(A,a.l.xb());A.length&&(E=gt(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(H=ft(l.g,"EXT-X-SKIP"))?Number(X(H,"SKIPPED-SEGMENTS")):0,I=Nt(E,A),
892
+ J=I.pb,M=I.qb,b.pb=J+G,b.qb=M,O=u.get(E),q.segmentIndex.vb(O));S=A[0];b.wc=S.startTime;Z=A[A.length-1];b.Lb=Z.endTime;if(U=ft(l.g,"EXT-X-ENDLIST"))b.ud=!0;Ot(a,l);F(fa)})}p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(a){this.j&&this.j.i.set(a,Date.now()+6E4)};
893
+ function Pt(a,b){for(var c=-1==a.K,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=Jt(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.K=Math.max(a.K,k));e.jf=k;break}}}}if(!(0>a.K))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.K-c.jf),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),Qt(a,c,d)}
894
+ function Rt(a,b){if(Infinity==a.U){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.oa&&(a.U=Math.min(a.U,d.oa))}}b=a.U;if(Infinity!=b)for(d=t(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.oa)Sa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.ba(),"Expect AV sync issues!");else for(Qt(a,c,f.oa-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.qg(b)}}}
895
+ function Qt(a,b,c){b.wc+=c;b.Lb+=c;a=Jt(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.ba()}
896
+ function Ct(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U,fa;return K(function(aa){switch(aa.g){case 1:d=ot(a.sa,b);e=dt(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},D(aa,St(a,d,v),6);Tt(a,e);k=dt(d.g,"EXT-X-MEDIA");l=dt(d.g,"EXT-X-STREAM-INF");m=dt(d.g,"EXT-X-IMAGE-STREAM-INF");n=dt(d.g,"EXT-X-I-FRAME-STREAM-INF");r=dt(d.g,"EXT-X-SESSION-KEY");q=dt(d.g,"EXT-X-SESSION-DATA");u=dt(d.g,"EXT-X-CONTENT-STEERING");Ut(a,q);return D(aa,Vt(a,u),4);
897
+ case 4:return Wt(a,l),Xt(a,k),f=Yt(a,l,r,k),g=Zt(a,k),D(aa,$t(a,m,n),5);case 5:h=aa.h;aa.F(3);break;case 6:return y=aa.h,z=y.type,x=y.mimeType,B=y.codecs,A=y.language,C=y.height,E=y.width,H=y.channelCount,G=y.sampleRate,I=y.closedCaptions,D(aa,au(a,a.C++,d,v,c,B,z,A,!0,"Media Playlist",H,I,null,!1,G,!1,x),7);case 7:J=aa.h,a.h.set(c,J),"video"==z&&bu(J.stream,E,C,null,null,null),f.push({id:0,language:Nb(A||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==z?J.stream:null,video:"video"==z?J.stream:
898
+ null,bandwidth:J.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new P(2,7,7001);a.l=new rj(null,0);a.l.Uc(!0);1==d.type&&(Dt(a)&&(cu(a,d),M=a.m,a.u.S(M)),O=Array.from(a.h.values()),du(a,O),It(a));a.G={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null};
899
+ if(a.$||!a.g.hls.disableCodecGuessing){aa.F(8);break}S=[];Z=t(a.G.variants);for(U=Z.next();!U.done;U=Z.next())fa=U.value,fa.audio&&""===fa.audio.codecs&&S.push(fa.audio.createSegmentIndex()),fa.video&&""===fa.video.codecs&&S.push(fa.video.createSegmentIndex());return D(aa,Promise.all(S),8);case 8:a.i.makeTextStreamsForClosedCaptions(a.G),F(aa)}})}
900
+ function St(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:d=vt(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return C.return(d);e=Math.trunc((b.segments.length-1)/2);f=b.segments[e];g=ht(c(),b.segments[0].h);h=g[0];k=new hb(h);l=k.Wa.split(".").pop();if(m=eu[l])return C.return(vt(m));n=Ff;r=null;q=fu(a,b,f.g,c);a.V.clear();if(!q){C.F(2);break}u=zf(q.ba(),a.g.retryParameters);return D(C,gu(a,u,n,{type:0}),3);case 3:v=C.h,r=v.data;case 2:return y=
901
+ zf(g,a.g.retryParameters),D(C,gu(a,y,n,{type:1}),4);case 4:z=C.h;(x=z.headers["content-type"])&&(x=x.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==x){var E=z.data;var H=nc(E);H=(new vi).parse(H);var G=H.rd();H=H.Hf();var I=[],J=!1,M=!1;switch(G.audio){case "aac":I.push("mp4a.40.2");J=!0;break;case "mp3":I.push("mp4a.40.34");J=!0;break;case "ac3":I.push("ac-3");J=!0;break;case "ec3":I.push("ec-3"),J=!0}switch(G.video){case "avc":H.wa?I.push(H.wa):I.push("avc1.42E01E");M=!0;break;case "hvc":H.wa?
902
+ I.push(H.wa):I.push("hvc1.1.6.L93.90"),M=!0}if(I.length){G=J&&!M;J=new Map;if(M){M=new tc("video/mp2t");M.i(E);E=t(M.j());for(var O=E.next();!O.done;O=E.next())O=O.value,J.set(O,O);M.h()}H={type:G?"audio":"video",mimeType:"video/mp2t",codecs:I.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,closedCaptions:J}}else H=null;if(B=H)return C.return(B)}else if("mp4"==l||"cmfv"==l||"m4s"==l||"video/mp4"==x||"audio/mp4"==x||"video/iso.segment"==x)if(A=wt(r,z.data))return C.return(A);
903
+ return C.return(d)}})}function It(a){if(Dt(a)){if(a.aa==hu){var b=iu(a);a.g.hls.useSafariBehaviorForLive&&(b=a.l.s);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.He(b)}if(!a.l.m){b=Array.from(a.h.values()).filter(function(d){return d.stream.segmentIndex});b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,("audio"==c.type||"video"==c.type)&&(c=c.stream.segmentIndex.get(0))&&c.oa&&a.l.mg(c.oa)}}else a.l.eb(ju(a));a.l.pe()}
901
904
  function Tt(a,b){var c=(new hb(a.Z)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=X(e,"NAME");var f=X(e,"VALUE");e=X(e,"QUERYPARAM");d&&f&&(a.s.has(d)||a.s.set(d,f));e&&(d=c.get(e)[0])&&!a.s.has(d)&&a.s.set(e,d)}}
902
905
  function Kt(a,b,c){c=(new hb(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=X(f,"NAME"),h=X(f,"VALUE");e=X(f,"QUERYPARAM");f=X(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.s.get(f))&&d.set(f,e)}return d}
903
- function Wt(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=X(d,"AUDIO");c=X(d,"VIDEO");var f=X(d,"SUBTITLES");d=ju(a,d);if(f){var g=Gb(Ib,d);a.I.set(f,g);xc(d,g)}e&&(f=Gb("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.I.set(e,f));c&&(e=Gb("video",d),e||(e=a.g.hls.defaultVideoCodec),a.I.set(c,e))}}
904
- function Ut(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=X(d,"DATA-ID");c=X(d,"URI");var f=X(d,"LANGUAGE");d=X(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",ht([a.Z],c,a.s)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new N("sessiondata",e);if(a.h)a.h.onEvent(c)}}
905
- function Vt(a,b){var c,d,e,f,g,h;return K(function(k){if(!a.h||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=X(f,"PATHWAY-ID"),h=X(f,"SERVER-URI"),g&&h){a.j=new Ir(a.h);a.j.configure(a.g);a.j.j=[a.Z];a.j.setManifestType("HLS");a.j.h=g;c=Jr(a.j,h);break}return D(k,c,0)})}
906
- function Zt(a,b){var c=et(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return ku(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=at(d.value,"GROUP-ID");if(d=a.I.get(e))if(e=a.J.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=lu(Ib,d)||mu(Ib)}}return b.filter(function(g){return g})}
907
- function $t(a,b,c){var d,e;return K(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return K(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);ta(m,2);return D(m,nu(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=wa(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=at(g,"URI"),k=X(g,"CODECS")||"";if(a.i.has(h))var l=a.i.get(h);else{var m=X(g,"LANGUAGE"),n=X(g,"NAME"),
908
- r=X(g,"CHARACTERISTICS"),q=ou(a,a.C++,[h],k,"image",m,!1,n,null,null,r,!1,null,!1),u=X(g,"RESOLUTION"),v=t(u?u.split("x"):[null,null]),y=v.next().value,z=v.next().value;q.stream.width=Number(y)||void 0;q.stream.height=Number(z)||void 0;var x=X(g,"BANDWIDTH");x&&(q.stream.bandwidth=Number(x));a.i.set(h,q);l=q}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(B){if(a.g.hls.ignoreImageStreamFailures)return null;throw B;}})),D(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
909
- function pu(a,b,c){b=b.filter(function(h){var k=X(h,"URI")||"";return"SUBTITLES"!=X(h,"TYPE")&&""!=k});var d={};b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=$s(e);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)ku(a,d[g],c)}
910
- function Yt(a,b,c,d){var e=[],f=new Set;if(0<c.length){c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=at(g,"METHOD");if("NONE"!=h&&"AES-128"!=h&&(h=X(g,"KEYFORMAT")||"identity",g=(h=qu[h])?h(g,""):null)){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}}c={};b=t(b);for(g=b.next();!g.done;g=b.next())g=g.value,h=$s(g),c[h]?c[h].push(g):c[h]=[g];b=[];for(var l in c){k=c[l];var m=k[0];g=X(m,"FRAME-RATE");h=Number(X(m,"AVERAGE-BANDWIDTH"))||Number(at(m,
911
- "BANDWIDTH"));var n=X(m,"RESOLUTION"),r=t(n?n.split("x"):[null,null]);n=r.next().value;r=r.next().value;var q=X(m,"VIDEO-RANGE");(m=X(m,"REQ-VIDEO-LAYOUT"))&&m.includes(",")&&(m=m.split(",").filter(function(u){return"CH-STEREO"==u||"CH-MONO"==u})[0]);m=m||"CH-MONO";k=ru(a,k,d);b.push.apply(b,w(su(a,k.audio,k.video,h,n,r,g,q,m,e,f)))}return b.filter(function(u){return null!=u})}
912
- function ru(a,b,c){for(var d={audio:[],video:[]},e=new Map,f=[],g=!1,h=!1,k=t(b),l=k.next();!l.done;l=k.next()){var m=l.value;l=X(m,"AUDIO");var n=X(m,"VIDEO"),r=l||n;r&&(f.includes(r)||f.push(r),(m=X(m,"PATHWAY-ID"))&&e.set(r,m),l?g=!0:n&&(h=!0))}f.length&&c.length&&(k=c.filter(function(v){return f.includes(at(v,"GROUP-ID"))}),pu(a,k,e));k=(e=f.sort().join(","))&&a.J.has(e)?a.J.get(e):[];g?d.audio.push.apply(d.audio,w(k)):h&&d.video.push.apply(d.video,w(k));l=!1;var q=b.map(function(v){return at(v,
913
- "URI")});h=d.audio.find(function(v){return v&&v.ba().find(function(y){return q.includes(y)})});g=ju(a,b[0]);n=Gb("video",g);(r=Gb("audio",g))&&!n?(h="audio",l=0<d.audio.length):!d.audio.length&&!d.video.length&&r&&n?(h="video",g=[[n,r].join()]):d.audio.length&&h?(h="audio",l=!0):h=d.video.length&&!d.audio.length?"audio":"video";if(!l){var u=m=r=n=l=null;!k.length&&(c=c.find(function(v){var y=X(v,"URI")||"",z=X(v,"TYPE");v=at(v,"GROUP-ID");return"SUBTITLES"!=z&&""==y&&f.includes(v)}))&&(l=X(c,"LANGUAGE"),
914
- n=X(c,"NAME"),r=tu(c),uu(c),m=X(c,"CHARACTERISTICS"),u=vu(c));a=wu(a,b,g,h,l,n,r,m,u);e&&(a.stream.groupId=e);d[a.stream.type]=[a]}return d}function ju(a,b){var c=X(b,"CODECS")||"";a.$=0<c.length;a.$||a.g.hls.disableCodecGuessing||(b=[],a.g.disableVideo||b.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||b.push(a.g.hls.defaultAudioCodec),c=b.join(","));a=new Set;b=[];c=t(c.split(/\s*,\s*/));for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=nd(d);a.has(e)||(b.push(d),a.add(e))}return b}
915
- function tu(a){return(a=X(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}function vu(a){return(a=X(a,"SAMPLE-RATE"))?parseInt(a,10):null}function uu(a){return(a=X(a,"CHANNELS"))?a.includes("/JOC"):!1}
916
- function su(a,b,c,d,e,f,g,h,k,l,m){for(var n=t(c),r=n.next();!r.done;r=n.next())bu(r.value.stream,e,f,g,h,k);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=t(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=t(c),h=g.next();!h.done;h=g.next()){var q=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=q?q.stream:null)k.drmInfos=l,k.keyIds=m;n=f?f.stream.drmInfos:null;r=q?q.stream.drmInfos:null;q=q?q.ba().sort().join(","):"";var u=f?f.ba().sort().join(","):
917
- "";q=q+" - "+u;h&&k&&!Ch(n,r)||a.za.has(q)||(h={id:a.C++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.za.add(q))}return e}
906
+ function Wt(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=X(d,"AUDIO");c=X(d,"VIDEO");var f=X(d,"SUBTITLES");d=ku(a,d);if(f){var g=Gb(Ib,d);a.I.set(f,g);xc(d,g)}e&&(f=Gb("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.I.set(e,f));c&&(e=Gb("video",d),e||(e=a.g.hls.defaultVideoCodec),a.I.set(c,e))}}
907
+ function Ut(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=X(d,"DATA-ID");c=X(d,"URI");var f=X(d,"LANGUAGE");d=X(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",ht([a.Z],c,a.s)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new N("sessiondata",e);if(a.i)a.i.onEvent(c)}}
908
+ function Vt(a,b){var c,d,e,f,g,h;return K(function(k){if(!a.i||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=X(f,"PATHWAY-ID"),h=X(f,"SERVER-URI"),g&&h){a.j=new Ir(a.i);a.j.configure(a.g);a.j.j=[a.Z];a.j.setManifestType("HLS");a.j.h=g;c=Jr(a.j,h);break}return D(k,c,0)})}
909
+ function Zt(a,b){var c=et(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return lu(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=at(d.value,"GROUP-ID");if(d=a.I.get(e))if(e=a.J.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=mu(Ib,d)||nu(Ib)}}return b.filter(function(g){return g})}
910
+ function $t(a,b,c){var d,e;return K(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return K(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);ta(m,2);return D(m,ou(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=wa(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=at(g,"URI"),k=X(g,"CODECS")||"";if(a.h.has(h))var l=a.h.get(h);else{var m=X(g,"LANGUAGE"),n=X(g,"NAME"),
911
+ r=X(g,"CHARACTERISTICS"),q=pu(a,a.C++,[h],k,"image",m,!1,n,null,null,r,!1,null,!1),u=X(g,"RESOLUTION"),v=t(u?u.split("x"):[null,null]),y=v.next().value,z=v.next().value;q.stream.width=Number(y)||void 0;q.stream.height=Number(z)||void 0;var x=X(g,"BANDWIDTH");x&&(q.stream.bandwidth=Number(x));a.h.set(h,q);l=q}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(B){if(a.g.hls.ignoreImageStreamFailures)return null;throw B;}})),D(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
912
+ function qu(a,b,c){b=b.filter(function(h){var k=X(h,"URI")||"";return"SUBTITLES"!=X(h,"TYPE")&&""!=k});var d={};b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=$s(e);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)lu(a,d[g],c)}
913
+ function Yt(a,b,c,d){var e=[],f=new Set;if(0<c.length){c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=at(g,"METHOD");if("NONE"!=h&&"AES-128"!=h&&(h=X(g,"KEYFORMAT")||"identity",g=(h=ru[h])?h(g,""):null)){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}}c={};b=t(b);for(g=b.next();!g.done;g=b.next())g=g.value,h=$s(g),c[h]?c[h].push(g):c[h]=[g];b=[];for(var l in c){k=c[l];var m=k[0];g=X(m,"FRAME-RATE");h=Number(X(m,"AVERAGE-BANDWIDTH"))||Number(at(m,
914
+ "BANDWIDTH"));var n=X(m,"RESOLUTION"),r=t(n?n.split("x"):[null,null]);n=r.next().value;r=r.next().value;var q=X(m,"VIDEO-RANGE");(m=X(m,"REQ-VIDEO-LAYOUT"))&&m.includes(",")&&(m=m.split(",").filter(function(u){return"CH-STEREO"==u||"CH-MONO"==u})[0]);m=m||"CH-MONO";k=su(a,k,d);b.push.apply(b,w(tu(a,k.audio,k.video,h,n,r,g,q,m,e,f)))}return b.filter(function(u){return null!=u})}
915
+ function su(a,b,c){for(var d={audio:[],video:[]},e=new Map,f=[],g=!1,h=!1,k=t(b),l=k.next();!l.done;l=k.next()){var m=l.value;l=X(m,"AUDIO");var n=X(m,"VIDEO"),r=l||n;r&&(f.includes(r)||f.push(r),(m=X(m,"PATHWAY-ID"))&&e.set(r,m),l?g=!0:n&&(h=!0))}f.length&&c.length&&(k=c.filter(function(v){return f.includes(at(v,"GROUP-ID"))}),qu(a,k,e));k=(e=f.sort().join(","))&&a.J.has(e)?a.J.get(e):[];g?d.audio.push.apply(d.audio,w(k)):h&&d.video.push.apply(d.video,w(k));l=!1;var q=b.map(function(v){return at(v,
916
+ "URI")});h=d.audio.find(function(v){return v&&v.ba().find(function(y){return q.includes(y)})});g=ku(a,b[0]);n=Gb("video",g);(r=Gb("audio",g))&&!n?(h="audio",l=0<d.audio.length):!d.audio.length&&!d.video.length&&r&&n?(h="video",g=[[n,r].join()]):d.audio.length&&h?(h="audio",l=!0):h=d.video.length&&!d.audio.length?"audio":"video";if(!l){var u=m=r=n=l=null;!k.length&&(c=c.find(function(v){var y=X(v,"URI")||"",z=X(v,"TYPE");v=at(v,"GROUP-ID");return"SUBTITLES"!=z&&""==y&&f.includes(v)}))&&(l=X(c,"LANGUAGE"),
917
+ n=X(c,"NAME"),r=uu(c),vu(c),m=X(c,"CHARACTERISTICS"),u=wu(c));a=xu(a,b,g,h,l,n,r,m,u);e&&(a.stream.groupId=e);d[a.stream.type]=[a]}return d}function ku(a,b){var c=X(b,"CODECS")||"";a.$=0<c.length;a.$||a.g.hls.disableCodecGuessing||(b=[],a.g.disableVideo||b.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||b.push(a.g.hls.defaultAudioCodec),c=b.join(","));a=new Set;b=[];c=t(c.split(/\s*,\s*/));for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=nd(d);a.has(e)||(b.push(d),a.add(e))}return b}
918
+ function uu(a){return(a=X(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}function wu(a){return(a=X(a,"SAMPLE-RATE"))?parseInt(a,10):null}function vu(a){return(a=X(a,"CHANNELS"))?a.includes("/JOC"):!1}
919
+ function tu(a,b,c,d,e,f,g,h,k,l,m){for(var n=t(c),r=n.next();!r.done;r=n.next())bu(r.value.stream,e,f,g,h,k);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=t(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=t(c),h=g.next();!h.done;h=g.next()){var q=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=q?q.stream:null)k.drmInfos=l,k.keyIds=m;n=f?f.stream.drmInfos:null;r=q?q.stream.drmInfos:null;q=q?q.ba().sort().join(","):"";var u=f?f.ba().sort().join(","):
920
+ "";q=q+" - "+u;h&&k&&!Ch(n,r)||a.va.has(q)||(h={id:a.C++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.va.add(q))}return e}
918
921
  function Xt(a,b){b=et(b,"CLOSED-CAPTIONS");b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=X(d,"LANGUAGE");c=Nb(e||"und");e||(e=X(d,"NAME"))&&(c=e);e=at(d,"GROUP-ID");d=at(d,"INSTREAM-ID").replace("SERVICE","svc");a.H.get(e)||a.H.set(e,new Map);a.H.get(e).set(d,c)}}
919
- function ku(a,b,c){for(var d=[],e=[],f=new Map,g=t(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=at(k,"URI");k=at(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=at(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Ib);if(k==Ib)b=X(h,"CODECS")||"";else{e=t(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.I.has(l)){b=a.I.get(l);break}}e=d.sort().join(",");if(a.i.has(e))return a.i.get(e);l=a.C++;if(a.j){f=t(f);for(var m=f.next();!m.done;m=f.next()){var n=t(m.value);
920
- m=n.next().value;n=n.next().value;(m=c.get(m))&&Mr(a.j,l,m,n)}}c=X(h,"LANGUAGE");f=X(h,"NAME");m="YES"==X(h,"DEFAULT");n="audio"==k?tu(h):null;var r="audio"==k?uu(h):!1,q=X(h,"CHARACTERISTICS"),u="YES"==X(h,"FORCED");h="audio"==k?vu(h):null;d=ou(a,l,d,b,k,c,m,f,n,null,q,u,h,r);d.stream&&(d.stream.groupId=g);a.J.has(g)?a.J.get(g).push(d):a.J.set(g,[d]);a.i.set(e,d);return d}
921
- function nu(a,b){var c,d,e,f,g,h,k,l,m,n;return K(function(r){if(1==r.g){c=at(b,"URI");d=X(b,"CODECS","jpeg")||"";if(a.i.has(c))return r.return(a.i.get(c));e=X(b,"LANGUAGE");f=X(b,"NAME");g=X(b,"CHARACTERISTICS");h=ou(a,a.C++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=X(b,"RESOLUTION"))?D(r,h.stream.createSegmentIndex(),3):r.F(2)}2!=r.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
922
- Number(m.split("x")[1]));if(n=X(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.i.set(c,h);return r.return(h)})}
923
- function wu(a,b,c,d,e,f,g,h,k){for(var l=a.C++,m=[],n=t(b),r=n.next();!r.done;r=n.next()){var q=r.value;r=at(q,"URI");q=X(q,"PATHWAY-ID");a.j&&q&&Mr(a.j,l,q,r);m.push(r)}n=m.sort().join(",");if(a.i.has(n))return a.i.get(n);a:{b=X(b[0],"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.H.get(b);break a}if(!b&&a.H.size)for(b=t(a.H.keys()).next();!b.done;){b=a.H.get(b.value);break a}}b=null}c=Db(d,c);d=ou(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.i.set(n,d);return d}
924
- function ou(a,b,c,d,e,f,g,h,k,l,m,n,r,q){function u(C){var E,H,G,I,J,M,O,S,Z,U,ia,aa,Wa,ib,Eb,ac,Kb;return K(function(Da){switch(Da.g){case 1:return E=x.ba(),D(Da,Bt(a,x.ba(),!0),2);case 2:H=Da.h;if(C.aborted)return Da.return();G=H.uri;G==H.originalUri||E.includes(G)||z.push(G);I=ot(a.ra,H.data);J=void 0;if(a.$||!a.g.hls.disableCodecGuessing){Da.F(3);break}return D(Da,St(a,I,v),4);case 4:M=Da.h,J=M.mimeType,d=M.codecs;case 3:return O=Dt(a),D(Da,au(a,0,I,v,G,d,e,f,g,h,k,l,m,n,r,q,J),5);case 5:S=Da.h;
925
- if(C.aborted)return Da.return();Z=S.stream;Dt(a)&&!O&&cu(a,I);x.tc=S.tc;x.Ib=S.Ib;x.Vd=S.Vd;x.Ud=S.Ud;x.rd=S.rd;x.pe=S.pe;x.mb=S.mb;x.ob=S.ob;x.Lf=!0;y.segmentIndex=Z.segmentIndex;y.encrypted=Z.encrypted;y.drmInfos=Z.drmInfos;y.keyIds=Z.keyIds;y.mimeType=Z.mimeType;y.bandwidth=Z.bandwidth;y.codecs=y.codecs||Z.codecs;y.drmInfos.length&&a.h.newDrmInfo(y);U=Jb;if(e==U.ia||e==U.T)for(ia=t(a.i.values()),aa=ia.next();!aa.done;aa=ia.next())Wa=aa.value,Wa.Lf||Wa.type!=e||(Wa.stream.mimeType=Z.mimeType);e==
926
- U.Ba&&(ib=Z.segmentIndex.get(0))&&ib.ka&&(y.mimeType="application/mp4");xu(a)&&(a.Ua?du(a,[x]):(a.Ua=!0,Eb=Array.from(a.i.values()),ac=Eb.filter(function(sb){return sb.stream.segmentIndex}),du(a,ac),It(a),Kb=a.m,0<Kb&&a.u.R(Kb)));F(Da)}})}function v(){return a.j&&1<c.length?Nr(a.j,b):z.concat(it([a.Z],c,a.s))}var y=yu(a,d,e,f,g,h,k,l,m,n,r,q),z=[],x={stream:y,type:e,bh:z,ba:v,tc:0,Ib:0,pe:new Map,Vd:!1,Ud:!1,rd:!1,df:-1,mb:-1,ob:-1,Lf:!1},B=null,A=new AbortController;y.createSegmentIndex=function(){if(B)return B;
927
- A=new AbortController;return B=new Promise(function(C){C(u(A.signal))})};y.closeSegmentIndex=function(){B&&!y.segmentIndex&&A.abort();y.segmentIndex&&(y.segmentIndex.release(),y.segmentIndex=null);B=null};return x}function iu(a){var b=Infinity;a=t(a.i.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.Ib));return b}
928
- function Ft(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Oj(d.segmentIndex,function(e){c.push(e)});a.l.yd(c)}function du(a,b){if(!Dt(a))for(var c=iu(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Dc(0,c);Ft(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?Pt(a,b):Rt(a,b)}
929
- function xu(a){if(!a.G)return!1;var b=[],c=[];a=t(a.G.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
930
- function au(a,b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y){var z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U,ia,aa,Wa,ib,Eb,ac,Kb,Da;return K(function(sb){if(1==sb.g){if(1!=c.type)throw new P(2,4,4017);z=dt(c.g,"EXT-X-DEFINE");x=Kt(a,z,e);var Fb=ft(c.g,"EXT-X-PLAYLIST-TYPE"),bc=ft(c.g,"EXT-X-ENDLIST");bc=Fb&&"VOD"==Fb.value||bc;Fb=Fb&&"EVENT"==Fb.value&&!bc;Fb=!bc&&!Fb;bc?Ht(a,At):Fb?Ht(a,hu):Ht(a,zu);Dt(a)&&Ot(a,c);return y?sb.F(2):D(sb,Au(a,g,f,c,x,d),3)}2!=sb.g&&(y=sb.h);B=Lt(c,y);A=B.drmInfos;C=B.keyIds;E=B.encrypted;H=
931
- B.Eh;if(E&&!A.length&&!H)throw new P(2,4,4026);G=yu(a,f,g,h,k,l,m,n,r,q,u,v);G.encrypted=E;G.drmInfos=A;G.keyIds=C;G.mimeType=y;I=Dt(a)?a.L.get(g):new Map;J=Mt(a,c,G,I,x,d);M=J.segments;O=J.bandwidth;G.bandwidth=O;Dt(a)&&Ot(a,c);S=M[0].startTime;Z=M[M.length-1];U=Z.endTime;ia=new Nj(M);G.segmentIndex=ia;Wa=(aa=ft(c.g,"EXT-X-SERVER-CONTROL"))?null!=aa.getAttribute("CAN-SKIP-UNTIL"):!1;ib=aa?null!=aa.getAttribute("CAN-BLOCK-RELOAD"):!1;Eb=gt(c.g,"EXT-X-MEDIA-SEQUENCE",0);ac=Nt(Eb,M);Kb=ac.mb;Da=ac.ob;
932
- return sb.return({stream:G,type:g,bh:[],ba:d,tc:S,Ib:U,Vd:Wa,Ud:ib,rd:!1,df:-1,mb:Kb,ob:Da,pe:I,Lf:!1})})}function Nt(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{mb:a,ob:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.s&&(c=0),{mb:a,ob:c};c=d.length-1;d[d.length-1].m||(a++,c=0);return{mb:a,ob:c}}
933
- function yu(a,b,c,d,e,f,g,h,k,l,m,n){var r=lu(c,b)||mu(c),q=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())q.push(u.value)}k=void 0;u=null;c==Ib?k=q.includes("public.accessibility.transcribes-spoken-dialog")&&q.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":q.includes("public.accessibility.describes-video")&&(u="visually impaired");q.length||"subtitle"!==k||q.push("subtitle");return{id:a.C++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
922
+ function lu(a,b,c){for(var d=[],e=[],f=new Map,g=t(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=at(k,"URI");k=at(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=at(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Ib);if(k==Ib)b=X(h,"CODECS")||"";else{e=t(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.I.has(l)){b=a.I.get(l);break}}e=d.sort().join(",");if(a.h.has(e))return a.h.get(e);l=a.C++;if(a.j){f=t(f);for(var m=f.next();!m.done;m=f.next()){var n=t(m.value);
923
+ m=n.next().value;n=n.next().value;(m=c.get(m))&&Mr(a.j,l,m,n)}}c=X(h,"LANGUAGE");f=X(h,"NAME");m="YES"==X(h,"DEFAULT");n="audio"==k?uu(h):null;var r="audio"==k?vu(h):!1,q=X(h,"CHARACTERISTICS"),u="YES"==X(h,"FORCED");h="audio"==k?wu(h):null;d=pu(a,l,d,b,k,c,m,f,n,null,q,u,h,r);d.stream&&(d.stream.groupId=g);a.J.has(g)?a.J.get(g).push(d):a.J.set(g,[d]);a.h.set(e,d);return d}
924
+ function ou(a,b){var c,d,e,f,g,h,k,l,m,n;return K(function(r){if(1==r.g){c=at(b,"URI");d=X(b,"CODECS","jpeg")||"";if(a.h.has(c))return r.return(a.h.get(c));e=X(b,"LANGUAGE");f=X(b,"NAME");g=X(b,"CHARACTERISTICS");h=pu(a,a.C++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=X(b,"RESOLUTION"))?D(r,h.stream.createSegmentIndex(),3):r.F(2)}2!=r.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
925
+ Number(m.split("x")[1]));if(n=X(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);return r.return(h)})}
926
+ function xu(a,b,c,d,e,f,g,h,k){for(var l=a.C++,m=[],n=t(b),r=n.next();!r.done;r=n.next()){var q=r.value;r=at(q,"URI");q=X(q,"PATHWAY-ID");a.j&&q&&Mr(a.j,l,q,r);m.push(r)}n=m.sort().join(",");if(a.h.has(n))return a.h.get(n);a:{b=X(b[0],"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.H.get(b);break a}if(!b&&a.H.size)for(b=t(a.H.keys()).next();!b.done;){b=a.H.get(b.value);break a}}b=null}c=Db(d,c);d=pu(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.h.set(n,d);return d}
927
+ function pu(a,b,c,d,e,f,g,h,k,l,m,n,r,q){function u(C){var E,H,G,I,J,M,O,S,Z,U,fa,aa,Wa,ib,Eb,bc,Kb;return K(function(Ea){switch(Ea.g){case 1:return E=x.ba(),D(Ea,Bt(a,x.ba(),!0),2);case 2:H=Ea.h;if(C.aborted)return Ea.return();G=H.uri;G==H.originalUri||E.includes(G)||z.push(G);I=ot(a.sa,H.data);J=void 0;if(a.$||!a.g.hls.disableCodecGuessing){Ea.F(3);break}return D(Ea,St(a,I,v),4);case 4:M=Ea.h,J=M.mimeType,d=M.codecs;case 3:return O=Dt(a),D(Ea,au(a,0,I,v,G,d,e,f,g,h,k,l,m,n,r,q,J),5);case 5:S=Ea.h;
928
+ if(C.aborted)return Ea.return();Z=S.stream;Dt(a)&&!O&&cu(a,I);x.wc=S.wc;x.Lb=S.Lb;x.Yd=S.Yd;x.Xd=S.Xd;x.ud=S.ud;x.se=S.se;x.pb=S.pb;x.qb=S.qb;x.Pf=!0;y.segmentIndex=Z.segmentIndex;y.encrypted=Z.encrypted;y.drmInfos=Z.drmInfos;y.keyIds=Z.keyIds;y.mimeType=Z.mimeType;y.bandwidth=Z.bandwidth;y.codecs=y.codecs||Z.codecs;y.drmInfos.length&&a.i.newDrmInfo(y);U=Jb;if(e==U.ia||e==U.T)for(fa=t(a.h.values()),aa=fa.next();!aa.done;aa=fa.next())Wa=aa.value,Wa.Pf||Wa.type!=e||(Wa.stream.mimeType=Z.mimeType);e==
929
+ U.Da&&(ib=Z.segmentIndex.get(0))&&ib.ka&&(y.mimeType="application/mp4");yu(a)&&(a.Va?du(a,[x]):(a.Va=!0,Eb=Array.from(a.h.values()),bc=Eb.filter(function(rb){return rb.stream.segmentIndex}),du(a,bc),It(a),Kb=a.m,0<Kb&&a.u.S(Kb)));F(Ea)}})}function v(){return a.j&&1<c.length?Nr(a.j,b):z.concat(it([a.Z],c,a.s))}var y=zu(a,d,e,f,g,h,k,l,m,n,r,q),z=[],x={stream:y,type:e,hh:z,ba:v,wc:0,Lb:0,se:new Map,Yd:!1,Xd:!1,ud:!1,jf:-1,pb:-1,qb:-1,Pf:!1},B=null,A=new AbortController;y.createSegmentIndex=function(){if(B)return B;
930
+ A=new AbortController;return B=new Promise(function(C){C(u(A.signal))})};y.closeSegmentIndex=function(){B&&!y.segmentIndex&&A.abort();y.segmentIndex&&(y.segmentIndex.release(),y.segmentIndex=null);B=null};return x}function ju(a){var b=Infinity;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.Lb));return b}
931
+ function iu(a){var b=Infinity,c=Infinity;a=t(a.h.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.stream.segmentIndex&&"text"!=d.stream.type&&(b=Math.min(b,d.Lb),c=Math.min(c,d.wc));return b-c}function Ft(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Oj(d.segmentIndex,function(e){c.push(e)});a.l.Cd(c)}
932
+ function du(a,b){if(!Dt(a))for(var c=ju(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Gc(0,c);Ft(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?Pt(a,b):Rt(a,b)}function yu(a){if(!a.G)return!1;var b=[],c=[];a=t(a.G.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
933
+ function au(a,b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y){var z,x,B,A,C,E,H,G,I,J,M,O,S,Z,U,fa,aa,Wa,ib,Eb,bc,Kb,Ea;return K(function(rb){if(1==rb.g){if(1!=c.type)throw new P(2,4,4017);z=dt(c.g,"EXT-X-DEFINE");x=Kt(a,z,e);var Fb=ft(c.g,"EXT-X-PLAYLIST-TYPE"),cc=ft(c.g,"EXT-X-ENDLIST");cc=Fb&&"VOD"==Fb.value||cc;Fb=Fb&&"EVENT"==Fb.value&&!cc;Fb=!cc&&!Fb;cc?Ht(a,At):Fb?Ht(a,hu):Ht(a,Au);Dt(a)&&Ot(a,c);return y?rb.F(2):D(rb,Bu(a,g,f,c,x,d),3)}2!=rb.g&&(y=rb.h);B=Lt(c,y);A=B.drmInfos;C=B.keyIds;E=B.encrypted;H=
934
+ B.Hh;if(E&&!A.length&&!H)throw new P(2,4,4026);G=zu(a,f,g,h,k,l,m,n,r,q,u,v);G.encrypted=E;G.drmInfos=A;G.keyIds=C;G.mimeType=y;I=Dt(a)?a.L.get(g):new Map;J=Mt(a,c,G,I,x,d);M=J.segments;O=J.bandwidth;G.bandwidth=O;Dt(a)&&Ot(a,c);S=M[0].startTime;Z=M[M.length-1];U=Z.endTime;fa=new Nj(M);G.segmentIndex=fa;Wa=(aa=ft(c.g,"EXT-X-SERVER-CONTROL"))?null!=aa.getAttribute("CAN-SKIP-UNTIL"):!1;ib=aa?null!=aa.getAttribute("CAN-BLOCK-RELOAD"):!1;Eb=gt(c.g,"EXT-X-MEDIA-SEQUENCE",0);bc=Nt(Eb,M);Kb=bc.pb;Ea=bc.qb;
935
+ return rb.return({stream:G,type:g,hh:[],ba:d,wc:S,Lb:U,Yd:Wa,Xd:ib,ud:!1,jf:-1,pb:Kb,qb:Ea,se:I,Pf:!1})})}function Nt(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{pb:a,qb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{pb:a,qb:c};c=d.length-1;d[d.length-1].l||(a++,c=0);return{pb:a,qb:c}}
936
+ function zu(a,b,c,d,e,f,g,h,k,l,m,n){var r=mu(c,b)||nu(c),q=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())q.push(u.value)}k=void 0;u=null;c==Ib?k=q.includes("public.accessibility.transcribes-spoken-dialog")&&q.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":q.includes("public.accessibility.describes-video")&&(u="visually impaired");q.length||"subtitle"!==k||q.push("subtitle");return{id:a.C++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
934
937
  segmentIndex:null,mimeType:r,codecs:b,kind:c==Ib?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:Nb(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:q,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1}}
935
- function Lt(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=dt(d.value.g,"EXT-X-KEY"),c.push.apply(c,w(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=at(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=X(g,"KEYFORMAT")||"identity",g=(h=qu[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,Eh:d}}
936
- function Bu(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ta("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var f=0,g=X(b,"IV","");if(g){var h=qg(g.substr(2));if(16!=h.byteLength)throw new P(2,4,4048);}else f=gt(c.g,"EXT-X-MEDIA-SEQUENCE",0);var k={method:"AES-128",iv:h,firstMediaSequenceNumber:f,fetchKey:function(){var l,m,n,r,q;return K(function(u){if(1==u.g)return l=ht(d(),at(b,"URI"),e),m=zf([l],a.g.retryParameters),
938
+ function Lt(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=dt(d.value.g,"EXT-X-KEY"),c.push.apply(c,w(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=at(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=X(g,"KEYFORMAT")||"identity",g=(h=ru[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,Hh:d}}
939
+ function Cu(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ta("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var f=0,g=X(b,"IV","");if(g){var h=qg(g.substr(2));if(16!=h.byteLength)throw new P(2,4,4048);}else f=gt(c.g,"EXT-X-MEDIA-SEQUENCE",0);var k={method:"AES-128",iv:h,firstMediaSequenceNumber:f,fetchKey:function(){var l,m,n,r,q;return K(function(u){if(1==u.g)return l=ht(d(),at(b,"URI"),e),m=zf([l],a.g.retryParameters),
937
940
  D(u,gu(a,m,6),2);if(3!=u.g){n=u.h;if(!n.data||16!=n.data.byteLength)throw new P(2,4,4049);r={name:"AES-CBC"};q=k;return D(u,window.crypto.subtle.importKey("raw",n.data,r,!0,["decrypt"]),3)}q.cryptoKey=u.h;k.fetchKey=void 0;F(u)})}};return k}
938
- function Ot(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=ft(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=ft(b.g,"EXT-X-TARGETDURATION");if(!d)throw new P(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=ft(b.g,"EXT-X-PART-INF"))a.M=Number(at(e,"PART-TARGET"));b=ft(b.g,"EXT-X-SERVER-CONTROL");a.D&&a.M?(a.m=a.Ta?5*a.M<=c?Math.min(a.M,a.m):Math.min(c,a.m):Math.min(a.M,a.m),a.ha=b?Number(at(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
939
- b.getAttribute("HOLD-BACK"):null,a.ya=c?Number(c.value):0);a.sa=Math.max(d,a.sa)}function cu(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ha)b=a.ha;else if(a.ya)b=a.ya;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.sa*c}a.l.lh(0);a.l.ih(b);a.l.Rc(!1)}
940
- function fu(a,b,c,d,e){var f=ft(c,"EXT-X-MAP");if(!f)return null;var g=at(f,"URI"),h=ht(d(),g,e);g=[h.toString(),X(f,"BYTERANGE","")].join("-");if(!a.V.has(g)){var k=void 0,l=null;c=t(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?"AES-128"==at(m,"METHOD")&&m.id<f.id&&(k=Bu(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=Cu(h,f,l,k);a.V.set(g,b)}return a.V.get(g)}
941
- function Cu(a,b,c,d){var e=0,f=null;b=X(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new Mh(function(){return a},e,f,null,null,null,d)}
942
- function Du(a,b,c,d,e,f,g,h,k){var l=d.g,m=ft(l,"EXTINF"),n=0,r=0,q=null;d.vb.length&&!a.D&&Ta("Low-latency HLS 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.");var u=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=ft(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=Fg(v.value))}var y=Ph;ft(l,"EXT-X-GAP")&&(y=2);if(!m){if(0==d.vb.length)throw new P(2,4,4024,"EXTINF");
943
- if(!a.D)return null}var z=[];v=!1;var x=null,B=!1,A=!1;if(a.D&&d.vb.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var C=u,E={},H=0;H<d.vb.length;E={ed:E.ed,Od:E.Od},H++){var G=d.vb[H],I=0==H?c:z[z.length-1],J=0==H?e:I.endTime,M=Number(X(G,"DURATION"))||a.M;if(M){var O=J+M,S=0,Z=null;"EXT-X-PRELOAD-HINT"==G.name?(S=(S=X(G,"BYTERANGE-START"))?Number(S):0,(I=X(G,"BYTERANGE-LENGTH"))?Z=S+Number(I)-1:S&&(Z=Number.MAX_SAFE_INTEGER)):
944
- (S=X(G,"BYTERANGE"),Z=t(Eu(I,S)),S=Z.next().value,Z=Z.next().value);E.Od=X(G,"URI");if(E.Od){I=Ph;"YES"==X(G,"GAP")&&(I=2,B=!0);E.ed=null;var U=function(aa){return function(){null==aa.ed&&(aa.ed=ht(h(),aa.Od,f));return aa.ed}}(E);n&&0<=S&&null!=Z&&(x=U,v=!0);J=new Oh(J,O,U,S,Z,b,0,0,Infinity,[],"",null,C,I,k);"EXT-X-PRELOAD-HINT"==G.name&&(J.Mf(),A=!0);"YES"!=X(G,"INDEPENDENT")&&0<H&&J.oe();z.push(J);C&&(C+=M)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(z.length)n=z[z.length-
945
- 1].endTime;else return null;v&&(B||0!=z[0].cb?(v=!1,x=null):z=[]);(m=ft(l,"EXT-X-BYTERANGE"))?(q=t(Eu(c,m.value)),r=q.next().value,q=q.next().value):z.length&&(r=z[0].cb,q=z[z.length-1].Ja);c="";m=null;"image"==g.type&&(c="1x1",g=ft(l,"EXT-X-TILES"))&&(c=at(g,"LAYOUT"),(g=X(g,"DURATION"))&&(m=Number(g)));var ia=null;b=new Oh(e,n,function(){if(x)return x();null==ia&&(ia=ht(h(),d.h,f));return ia||[]},r,q,b,0,0,Infinity,z,c,m,u,y,k,0<z.length&&!!d.h);v&&(a.Ta=!0,b.Vg(),A&&b.Mf());return b}
946
- function Eu(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ja+1,d=c+b-1);return[c,d]}
947
- function Mt(a,b,c,d,e,f){var g=b.segments,h=void 0,k=gt(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=gt(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=ft(b.g,"EXT-X-SKIP"),n=m?Number(X(m,"SKIPPED-SEGMENTS")):0,r=l+n,q=0;Dt(a)&&d.has(r)&&(q=d.get(r));0===q&&a.aa==hu&&0<d.size&&!d.has(r)&&(q=a.l.ub());var u=[],v=null;m=[];for(var y=0;y<g.length;y++){var z=g[y],x=0==y?q:v.endTime;r=l+n+y;ft(z.g,"EXT-X-DISCONTINUITY")&&k++;var B=t(z.g);for(var A=B.next();!A.done;A=B.next())A=A.value,"EXT-X-KEY"==A.name&&("AES-128"==at(A,
948
- "METHOD")?h=Bu(a,A,b,f,e):h=void 0);d.set(r,x);B=fu(a,b,z.g,f,e);!a.D&&a.h.isAutoLowLatencyMode()&&(a.h.enableLowLatencyMode(),a.D=a.h.isLowLatencyMode());if(x=Du(a,B,v,z,x,e,c,f,h))(v=gt(z.g,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:x.endTime-x.startTime}):m.length&&(v=m.pop(),v.duration+=x.endTime-x.startTime,m.push(v)),v=x,x.j=k,a.g.hls.ignoreManifestProgramDateTime&&null!=a.K&&r<a.K||u.push(x)}b=void 0;m.length&&(b=m.reduce(function(C,E){return C+E.duration},0),b=Math.round(m.reduce(function(C,
949
- E){return C+E.bitrate*E.duration},0)/b*1E3));if(m=u.some(function(C){return null!=C.h}))for(c={},d=0;d<u.length;c={Vc:c.Vc,Uc:c.Uc,Kd:c.Kd,Ob:c.Ob,Tc:c.Tc},d++)if(c.Ob=u[d],null==c.Ob.h)for(c.Uc=0,c.Vc=d,e=function(C){return function(){var E=u[C.Vc];if(E){if(null!=E.h)return E.h+C.Uc;C.Uc-=E.endTime-E.startTime;C.Vc+=1}return null}}(c),c.Tc=0,c.Kd=d,f=function(C){return function(){var E=u[C.Kd];if(E){E!=C.Ob&&(C.Tc+=E.endTime-E.startTime);if(null!=E.h)return E.h+C.Tc;--C.Kd}return null}}(c);null==
950
- c.Ob.h;)c.Ob.h=f(),null==c.Ob.h&&(c.Ob.h=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=t(e.g),f=e.next();!f.done;f=e.next())f=f.value,f.h=d,d+=f.endTime-f.startTime;a=a.U;if(m&&Infinity!=a)for(m=t(u),d=m.next();!d.done;d=m.next())d.value.mg(a);return{segments:u,bandwidth:b}}
951
- function lu(a,b){if(a==Ib){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}function mu(a){return a==Ib?"text/vtt":Fu[a].mp4}
952
- function Au(a,b,c,d,e,f){var g,h,k,l,m,n,r,q,u,v,y,z,x;return K(function(B){switch(B.g){case 1:g=Ff;h=Math.trunc((d.segments.length-1)/2);k=ht(f(),d.segments[h].h,e);l=new hb(k[0]);m=l.Va.split(".").pop();n=Fu[b];if((r=n[m])||(r=eu[m])||(r=lu(b,c)))return B.return(r);u=1;v=zf(k,a.g.retryParameters);ta(B,2);v.method="HEAD";return D(B,gu(a,v,g,{type:u}),4);case 4:y=B.h;q=y.headers["content-type"];va(B,3);break;case 2:z=wa(B);if(!z||1002!=z.code&&1001!=z.code){B.F(3);break}v.method="GET";return D(B,
953
- gu(a,v,g,{type:u}),6);case 6:x=B.h,q=x.headers["content-type"];case 3:return q?B.return(q.split(";")[0]):B.return(mu(b))}})}function bu(a,b,c,d,e,f){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0)}function Bt(a,b,c){return gu(a,zf(b,a.g.retryParameters),0,{type:c?2:3})}
954
- function zt(a){var b,c,d,e,f,g;K(function(h){switch(h.g){case 1:if(!a.h)return h.return();ta(h,2);b=Date.now();return D(h,a.update(),4);case 4:c=Date.now();Dt(a)&&(d=(c-b)/1E3,a.Na.sample(1,d),e=a.m,f=Math.max(0,e-dc(a.Na)),a.u.R(f));va(h,3);break;case 2:g=wa(h);if(!a.h)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.h.onError(g),h.return();g.severity=1;a.h.onError(g);a.u.R(.1);case 3:if(!a.h)return h.return();a.h.onManifestUpdated();F(h)}})}
955
- function Dt(a){return a.aa!=At}function Ht(a,b){a.aa=b;a.l&&a.l.Rc(!Dt(a));Dt(a)||a.u.stop()}function gu(a,b,c,d){if(!a.N)throw new P(2,7,7001);b=a.h.networkingEngine.request(c,b,d);uf(a.N,b);return b.promise}L("shaka.hls.HlsParser",yt);
956
- var eu={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Fu={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
957
- vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},qu={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new P(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new P(2,4,4041);return Cb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=at(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
941
+ function Ot(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=ft(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=ft(b.g,"EXT-X-TARGETDURATION");if(!d)throw new P(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=ft(b.g,"EXT-X-PART-INF"))a.M=Number(at(e,"PART-TARGET"));b=ft(b.g,"EXT-X-SERVER-CONTROL");a.D&&a.M?(a.m=a.Ua?5*a.M<=c?Math.min(a.M,a.m):Math.min(c,a.m):Math.min(a.M,a.m),a.ha=b?Number(at(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
942
+ b.getAttribute("HOLD-BACK"):null,a.Aa=c?Number(c.value):0);a.ua=Math.max(d,a.ua)}function cu(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ha)b=a.ha;else if(a.Aa)b=a.Aa;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.ua*c}a.l.mg(0);a.l.mh(b);a.l.Uc(!1)}
943
+ function fu(a,b,c,d,e){var f=ft(c,"EXT-X-MAP");if(!f)return null;var g=at(f,"URI"),h=ht(d(),g,e);g=[h.toString(),X(f,"BYTERANGE","")].join("-");if(!a.V.has(g)){var k=void 0,l=null;c=t(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?"AES-128"==at(m,"METHOD")&&m.id<f.id&&(k=Cu(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=Du(h,f,l,k);a.V.set(g,b)}return a.V.get(g)}
944
+ function Du(a,b,c,d){var e=0,f=null;b=X(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new Mh(function(){return a},e,f,null,null,null,d)}
945
+ function Eu(a,b,c,d,e,f,g,h,k){var l=d.g,m=ft(l,"EXTINF"),n=0,r=0,q=null;d.yb.length&&!a.D&&Ta("Low-latency HLS 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.");var u=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=ft(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=Fg(v.value))}var y=Ph;ft(l,"EXT-X-GAP")&&(y=2);if(!m){if(0==d.yb.length)throw new P(2,4,4024,"EXTINF");
946
+ if(!a.D)return null}var z=[];v=!1;var x=null,B=!1,A=!1;if(a.D&&d.yb.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var C=u,E={},H=0;H<d.yb.length;E={gd:E.gd,Rd:E.Rd},H++){var G=d.yb[H],I=0==H?c:z[z.length-1],J=0==H?e:I.endTime,M=Number(X(G,"DURATION"))||a.M;if(M){var O=J+M,S=0,Z=null;"EXT-X-PRELOAD-HINT"==G.name?(S=(S=X(G,"BYTERANGE-START"))?Number(S):0,(I=X(G,"BYTERANGE-LENGTH"))?Z=S+Number(I)-1:S&&(Z=Number.MAX_SAFE_INTEGER)):
947
+ (S=X(G,"BYTERANGE"),Z=t(Fu(I,S)),S=Z.next().value,Z=Z.next().value);E.Rd=X(G,"URI");if(E.Rd){I=Ph;"YES"==X(G,"GAP")&&(I=2,B=!0);E.gd=null;var U=function(aa){return function(){null==aa.gd&&(aa.gd=ht(h(),aa.Rd,f));return aa.gd}}(E);n&&0<=S&&null!=Z&&(x=U,v=!0);J=new Oh(J,O,U,S,Z,b,0,0,Infinity,[],"",null,C,I,k);"EXT-X-PRELOAD-HINT"==G.name&&(J.Qf(),A=!0);"YES"!=X(G,"INDEPENDENT")&&0<H&&J.re();z.push(J);C&&(C+=M)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(z.length)n=z[z.length-
948
+ 1].endTime;else return null;v&&(B||0!=z[0].fb?(v=!1,x=null):z=[]);(m=ft(l,"EXT-X-BYTERANGE"))?(q=t(Fu(c,m.value)),r=q.next().value,q=q.next().value):z.length&&(r=z[0].fb,q=z[z.length-1].Ka);c="";m=null;"image"==g.type&&(c="1x1",g=ft(l,"EXT-X-TILES"))&&(c=at(g,"LAYOUT"),(g=X(g,"DURATION"))&&(m=Number(g)));var fa=null;b=new Oh(e,n,function(){if(x)return x();null==fa&&(fa=ht(h(),d.h,f));return fa||[]},r,q,b,0,0,Infinity,z,c,m,u,y,k,0<z.length&&!!d.h);v&&(a.Ua=!0,b.$g(),A&&b.Qf());return b}
949
+ function Fu(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ka+1,d=c+b-1);return[c,d]}
950
+ function Mt(a,b,c,d,e,f){var g=b.segments,h=void 0,k=gt(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=gt(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=ft(b.g,"EXT-X-SKIP"),n=m?Number(X(m,"SKIPPED-SEGMENTS")):0,r=l+n,q=0;Dt(a)&&d.has(r)&&(q=d.get(r));0===q&&a.aa==hu&&0<d.size&&!d.has(r)&&(q=a.l.xb());var u=[],v=null;m=[];for(var y=0;y<g.length;y++){var z=g[y],x=0==y?q:v.endTime;r=l+n+y;ft(z.g,"EXT-X-DISCONTINUITY")&&k++;var B=t(z.g);for(var A=B.next();!A.done;A=B.next())A=A.value,"EXT-X-KEY"==A.name&&("AES-128"==at(A,
951
+ "METHOD")?h=Cu(a,A,b,f,e):h=void 0);d.set(r,x);B=fu(a,b,z.g,f,e);!a.D&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.D=a.i.isLowLatencyMode());if(x=Eu(a,B,v,z,x,e,c,f,h))(v=gt(z.g,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:x.endTime-x.startTime}):m.length&&(v=m.pop(),v.duration+=x.endTime-x.startTime,m.push(v)),v=x,x.i=k,a.g.hls.ignoreManifestProgramDateTime&&null!=a.K&&r<a.K||u.push(x)}b=void 0;m.length&&(b=m.reduce(function(C,E){return C+E.duration},0),b=Math.round(m.reduce(function(C,
952
+ E){return C+E.bitrate*E.duration},0)/b*1E3));if(m=u.some(function(C){return null!=C.oa}))for(c={},d=0;d<u.length;c={Yc:c.Yc,Xc:c.Xc,Nd:c.Nd,Qb:c.Qb,Wc:c.Wc},d++)if(c.Qb=u[d],null==c.Qb.oa)for(c.Xc=0,c.Yc=d,e=function(C){return function(){var E=u[C.Yc];if(E){if(null!=E.oa)return E.oa+C.Xc;C.Xc-=E.endTime-E.startTime;C.Yc+=1}return null}}(c),c.Wc=0,c.Nd=d,f=function(C){return function(){var E=u[C.Nd];if(E){E!=C.Qb&&(C.Wc+=E.endTime-E.startTime);if(null!=E.oa)return E.oa+C.Wc;--C.Nd}return null}}(c);null==
953
+ c.Qb.oa;)c.Qb.oa=f(),null==c.Qb.oa&&(c.Qb.oa=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.oa,e=t(e.g),f=e.next();!f.done;f=e.next())f=f.value,f.oa=d,d+=f.endTime-f.startTime;a=a.U;if(m&&Infinity!=a)for(m=t(u),d=m.next();!d.done;d=m.next())d.value.qg(a);return{segments:u,bandwidth:b}}
954
+ function mu(a,b){if(a==Ib){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}function nu(a){return a==Ib?"text/vtt":Gu[a].mp4}
955
+ function Bu(a,b,c,d,e,f){var g,h,k,l,m,n,r,q,u,v,y,z,x;return K(function(B){switch(B.g){case 1:g=Ff;h=Math.trunc((d.segments.length-1)/2);k=ht(f(),d.segments[h].h,e);l=new hb(k[0]);m=l.Wa.split(".").pop();n=Gu[b];if((r=n[m])||(r=eu[m])||(r=mu(b,c)))return B.return(r);u=1;v=zf(k,a.g.retryParameters);ta(B,2);v.method="HEAD";return D(B,gu(a,v,g,{type:u}),4);case 4:y=B.h;q=y.headers["content-type"];va(B,3);break;case 2:z=wa(B);if(!z||1002!=z.code&&1001!=z.code){B.F(3);break}v.method="GET";return D(B,
956
+ gu(a,v,g,{type:u}),6);case 6:x=B.h,q=x.headers["content-type"];case 3:return q?B.return(q.split(";")[0]):B.return(nu(b))}})}function bu(a,b,c,d,e,f){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0)}function Bt(a,b,c){return gu(a,zf(b,a.g.retryParameters),0,{type:c?2:3})}
957
+ function zt(a){var b,c,d,e,f,g;K(function(h){switch(h.g){case 1:if(!a.i)return h.return();ta(h,2);b=Date.now();return D(h,a.update(),4);case 4:c=Date.now();Dt(a)&&(d=(c-b)/1E3,a.Oa.sample(1,d),e=a.m,f=Math.max(0,e-ac(a.Oa)),a.u.S(f));va(h,3);break;case 2:g=wa(h);if(!a.i)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(g),h.return();g.severity=1;a.i.onError(g);a.u.S(.1);case 3:if(!a.i)return h.return();a.i.onManifestUpdated();F(h)}})}
958
+ function Dt(a){return a.aa!=At}function Ht(a,b){a.aa=b;a.l&&a.l.Uc(!Dt(a));Dt(a)||a.u.stop()}function gu(a,b,c,d){if(!a.N)throw new P(2,7,7001);b=a.i.networkingEngine.request(c,b,d);uf(a.N,b);return b.promise}L("shaka.hls.HlsParser",yt);
959
+ var eu={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Gu={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
960
+ vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},ru={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new P(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new P(2,4,4041);return Cb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=at(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
958
961
  b=at(a,"URI");b=ut(b);b=nc(b.data);b=Cb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=X(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=at(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=at(a,"URI");a=ut(a);a=nc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=ug(a,b,new Set,0);return Cb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a){a=
959
- at(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Cb("org.w3.clearkey",null):null}},At="VOD",zu="EVENT",hu="LIVE",Gt={Ah:At,yj:zu,Gj:hu};Hh["application/x-mpegurl"]=function(){return new yt};Hh["application/vnd.apple.mpegurl"]=function(){return new yt};function Gu(a){var b=0,c=rc(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=nc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Hu(a){if(a=Iu(a))a:{a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next())if(b=vg(b.value,"LA_URL")){a=b.textContent;break a}a=""}else a="";return a}
960
- function Iu(a){a=pg(a.textContent);a=Gu(a).filter(function(b){return b.type===Ju})[0];if(!a)return null;a=Tf(a.value,!0);return(a=Og(a,"WRMHEADER"))?a:null}var Ju=1,Ku=(new Map).set("com.microsoft.playready",Hu).set("com.microsoft.playready.recommendation",Hu).set("com.microsoft.playready.software",Hu).set("com.microsoft.playready.hardware",Hu);function Lu(a){if(!Mu){Mu=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Nu=Ou("ftyp",b,d,b,c);b=Ou("dref",Pu);Qu=Ou("dinf",b)}this.g=a}
961
- function Ru(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Ou;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Su+1));m=Math.floor(m%(Su+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Tu(h,4)),[0,0,0,0],w(Tu(n,4)),w(Tu(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],w(Tu(k,2)),[0,0],w(Tu(l,
962
- 2)),[0,0]));h=Ou("tkhd",h);k=Ou;n=g.duration*g.timescale;l=Math.floor(n/(Su+1));n=Math.floor(n%(Su+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Tu(g.timescale,4)),w(Tu(l,4)),w(Tu(n,4)),w(Tu(m,2)),[0,0]));l=Ou("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Uu;break;case "audio":m=Vu}n=Ou("hdlr",m);a:{switch(g.type){case "video":g=Ou("minf",Ou("vmhd",Wu),Qu,Xu(g));break a;
963
- case "audio":g=Ou("minf",Ou("smhd",Yu),Qu,Xu(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=sg.apply(kg,w(b));f=a.g[0];c=Ou;d=f.duration*f.timescale;e=Math.floor(d/(Su+1));d=Math.floor(d%(Su+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Tu(f.timescale,4)),w(Tu(e,4)),w(Tu(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,
964
- 255]));e=Ou("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(w(Tu(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=Ou("trex",k),h.call(g,k);a=sg.apply(kg,w(d));a=Ou("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=sg.apply(kg,w(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Nu.byteLength+
965
- a.byteLength);b.set(Nu);b.set(a,Nu.byteLength);return b}
966
- function Xu(a){var b=Ou,c=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;var d=a.stream.height||0;if(0<a.Aa.byteLength)var e=Ou("avcC",a.Aa);else{e=Ou;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.eb.length;n++){var r=Zu(a.eb[n]);switch(r[0]&31){case 7:g.push(r);f+=r.length+2;break;case 8:h.push(r),f+=r.length+2}}0<g.length&&(k=g[0][1],m=g[0][2],l=g[0][3]);f=new Uint8Array(f);n=0;f[n++]=1;f[n++]=k;f[n++]=m;f[n++]=l;f[n++]=255;f[n++]=224|g.length;for(k=
967
- 0;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(w(Tu(c,2)),w(Tu(d,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=new Uint8Array([]);
968
- a.encrypted&&(h=$u(a),d="encv");c=Ou(d,c,e,h)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.Aa.byteLength&&(c=Ou("hvcC",a.Aa)),d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(w(Tu(d,2)),w(Tu(e,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),e="hvc1",h=new Uint8Array([]),a.encrypted&&(h=$u(a),e="encv"),c=Ou(e,d,c,h));break;
969
- case "audio":if(a.codecs.includes("mp3"))a=Ou(".mp3",av(a));else if(a.codecs.includes("ac-3"))c=Ou("dac3",a.oa),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=$u(a),d="enca"),a=Ou(d,av(a),c,e);else if(a.codecs.includes("ec-3"))c=Ou("dec3",a.oa),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=$u(a),d="enca"),a=Ou(d,av(a),c,e);else{if(0<a.oa.byteLength)c=Ou("esds",a.oa);else{c=Ou;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Db("audio",a.codecs.split(","));l={96E3:0,88200:1,
970
- 64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),10);d=new Uint8Array([0,0,0,0,3,25].concat(w(Tu(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=$u(a),d="enca");a=Ou(d,av(a),c,e)}c=a}a=Ou("stsd",bv,c);return b("stbl",a,Ou("stts",cv),Ou("stsc",dv),Ou("stsz",ev),Ou("stco",fv))}
971
- function av(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(w(Tu(a.stream.audioSamplingRate||44100,2)),[0,0]))}
972
- function $u(a){var b=Ou;var c=a.codecs.substring(0,a.codecs.indexOf("."));for(var d=0,e=0;e<c.length;e+=1)d|=c.charCodeAt(e)<<8*(c.length-e-1);c=new Uint8Array([].concat(w(Tu(d,4))));c=Ou("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=Ou("schm",d);e=Ou;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=t(a.stream.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=Zu(h.value)}a=new Uint8Array([0,
973
- 0,0,0,0,0,1,8]);f=Ou("tenc",a,f);return b("sinf",c,d,e("schi",f))}
974
- function gv(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Ou;var g=new Uint8Array([0,0,0,0].concat(w(Tu(c.data?c.data.wb:0,4))));g=Ou("mfhd",g);var h;var k=c.data?c.data.ab:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.Xa<<4|m.Za<<2|m.Ya}k=Ou("sdtp",l);var n=k.length+92;l=Ou;h=new Uint8Array([0,0,0,58].concat(w(Tu(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=Ou("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
975
- 0;var r=Math.floor(m%(Su+1));m=new Uint8Array([1,0,0,0].concat(w(Tu(Math.floor(m/(Su+1)),4)),w(Tu(r,4))));m=Ou("tfdt",m);var q=n;n=c.data?c.data.ab:[];r=n.length;var u=12+16*r,v=new Uint8Array(u);q+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(w(Tu(r,4)),w(Tu(q,4))),0);for(q=0;q<r;q++){var y=n[q];u=Tu(y.duration,4);var z=Tu(y.size,4),x=y.flags;y=Tu(y.gb,4);v.set([].concat(w(u),w(z),[x.ib<<2|x.Xa,x.Za<<6|x.Ya<<4|x.jb,x.Wa&61440,x.Wa&15],w(y)),12+16*q)}n=Ou("trun",v);k=l("traf",h,m,n,k);f=f("moof",
976
- g,k);e.call(d,b,[f,hv(c)])}return sg.apply(kg,w(b))}function hv(a){a=(a.data?a.data.ab:[]).map(function(b){return b.data});a=sg.apply(kg,w(a));return Ou("mdat",a)}function Tu(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function Zu(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
977
- function Ou(a){var b=Ga.apply(1,arguments),c=iv[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],iv[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
978
- var Mu=!1,Su=Math.pow(2,32)-1,iv={},Uu=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]),Vu=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]),cv=new Uint8Array([0,0,0,0,0,0,0,0]),dv=new Uint8Array([0,0,0,0,0,0,0,0]),fv=new Uint8Array([0,0,0,0,0,0,0,0]),ev=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Wu=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Yu=new Uint8Array([0,
979
- 0,0,0,0,0,0,0]),bv=new Uint8Array([0,0,0,0,0,0,0,1]),Nu=new Uint8Array([]),Pu=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Qu=new Uint8Array([]);function jv(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.u=1;this.i=null;this.D=new $b(5);this.s=new Fd(function(){kv(a)});this.C=new tf;this.m=new Map}p=jv.prototype;p.configure=function(a){this.g=a};p.start=function(a,b){var c=this;return K(function(d){if(1==d.g)return c.l=[a],c.h=b,D(d,lv(c),2);if(!c.h)throw new P(2,7,7001);return d.return(c.j)})};
980
- function kv(a){var b;K(function(c){switch(c.g){case 1:return ta(c,2),D(c,lv(a),4);case 4:va(c,3);break;case 2:b=wa(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();F(c)}})}p.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.s&&(this.s.stop(),this.s=null);this.m.clear();return this.C.destroy()};
981
- p.update=function(){var a=this,b;return K(function(c){if(1==c.g)return ta(c,2),D(c,lv(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.h||!b)return c.return();a.h.onError(b);F(c)})};p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(){};
982
- function lv(a){var b,c,d,e,f,g,h;return K(function(k){if(1==k.g)return b=zf(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5}),uf(a.C,e),D(k,e.promise,2);f=k.h;if(!a.h)return k.return();f.uri&&!a.l.includes(f.uri)&&a.l.unshift(f.uri);var l=f.uri,m=Qg(f.data,"SmoothStreamingMedia");if(!m)throw new P(2,4,4046,l);(l=a.g.mss.manifestPreprocessor)&&l(m);a.i||(a.i=new rj(null,0));if(l=Eg(m,"IsLive",Mg,!1))throw new P(2,4,4047);a.i.Rc(!l);var n=Eg(m,"TimeScale",Kg,1E7),
983
- r=Eg(m,"DVRWindowLength",Kg);l&&(0===r||isNaN(r))&&(r=Infinity);var q=Eg(m,"CanSeek",Mg,!1);0===r&&q&&(r=Infinity);q=null;r&&0<r&&(q=r/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(q=a.g.availabilityWindowOverride);null==q&&(q=Infinity);a.i.De(q);r=Eg(m,"Duration",Kg,Infinity);l||a.i.bb(r/n);l={variants:[],textStreams:[],timescale:n,duration:r/n};q=wg(m,"Protection");var u;n=a.g.mss.keySystemsBySystemId;r=[];q=t(q);for(u=q.next();!u.done;u=q.next())r=r.concat(wg(u.value,"ProtectionHeader"));if(r.length){q=
984
- [];for(u=0;u<r.length;u++){var v=r[u],y=v.getAttribute("SystemID").toLowerCase(),z=n[y];if(z){var x=Iu(v);if(x)a:{x=t(x.getElementsByTagName("DATA"));for(var B=x.next();!B.done;B=x.next())if(B=vg(B.value,"KID")){x=pg(B.textContent);x=new Uint8Array([x[3],x[2],x[1],x[0],x[5],x[4],x[7],x[6]].concat(w(x.slice(8))));x=rg(x);break a}x=null}else x=null;B=pg(v.textContent);y=qg(y.replace(/-/g,""));y=[{initData:ug(B,y,new Set,0),initDataType:"cenc",keyId:x}];y=Cb(z,y);x&&y.keyIds.add(x);if(z=Ku.get(z))y.licenseServerUri=
962
+ at(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Cb("org.w3.clearkey",null):null}},At="VOD",Au="EVENT",hu="LIVE",Gt={Dh:At,Cj:Au,Kj:hu};Hh["application/x-mpegurl"]=function(){return new yt};Hh["application/vnd.apple.mpegurl"]=function(){return new yt};function Hu(a){var b=0,c=rc(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=nc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Iu(a){if(a=Ju(a))a:{a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next())if(b=vg(b.value,"LA_URL")){a=b.textContent;break a}a=""}else a="";return a}
963
+ function Ju(a){a=pg(a.textContent);a=Hu(a).filter(function(b){return b.type===Ku})[0];if(!a)return null;a=Tf(a.value,!0);return(a=Og(a,"WRMHEADER"))?a:null}var Ku=1,Lu=(new Map).set("com.microsoft.playready",Iu).set("com.microsoft.playready.recommendation",Iu).set("com.microsoft.playready.software",Iu).set("com.microsoft.playready.hardware",Iu);function Mu(a){if(!Nu){Nu=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Ou=Pu("ftyp",b,d,b,c);b=Pu("dref",Qu);Ru=Pu("dinf",b)}this.g=a}
964
+ function Su(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Pu;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Tu+1));m=Math.floor(m%(Tu+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Uu(h,4)),[0,0,0,0],w(Uu(n,4)),w(Uu(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],w(Uu(k,2)),[0,0],w(Uu(l,
965
+ 2)),[0,0]));h=Pu("tkhd",h);k=Pu;n=g.duration*g.timescale;l=Math.floor(n/(Tu+1));n=Math.floor(n%(Tu+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Uu(g.timescale,4)),w(Uu(l,4)),w(Uu(n,4)),w(Uu(m,2)),[0,0]));l=Pu("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Vu;break;case "audio":m=Wu}n=Pu("hdlr",m);a:{switch(g.type){case "video":g=Pu("minf",Pu("vmhd",Xu),Ru,Yu(g));break a;
966
+ case "audio":g=Pu("minf",Pu("smhd",Zu),Ru,Yu(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=sg.apply(kg,w(b));f=a.g[0];c=Pu;d=f.duration*f.timescale;e=Math.floor(d/(Tu+1));d=Math.floor(d%(Tu+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Uu(f.timescale,4)),w(Uu(e,4)),w(Uu(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,
967
+ 255]));e=Pu("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(w(Uu(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=Pu("trex",k),h.call(g,k);a=sg.apply(kg,w(d));a=Pu("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=sg.apply(kg,w(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Ou.byteLength+
968
+ a.byteLength);b.set(Ou);b.set(a,Ou.byteLength);return b}
969
+ function Yu(a){var b=Pu,c=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;var d=a.stream.height||0;if(0<a.Ca.byteLength)var e=Pu("avcC",a.Ca);else{e=Pu;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.gb.length;n++){var r=$u(a.gb[n]);switch(r[0]&31){case 7:g.push(r);f+=r.length+2;break;case 8:h.push(r),f+=r.length+2}}0<g.length&&(k=g[0][1],m=g[0][2],l=g[0][3]);f=new Uint8Array(f);n=0;f[n++]=1;f[n++]=k;f[n++]=m;f[n++]=l;f[n++]=255;f[n++]=224|g.length;for(k=
970
+ 0;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(w(Uu(c,2)),w(Uu(d,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=new Uint8Array([]);
971
+ a.encrypted&&(h=av(a),d="encv");c=Pu(d,c,e,h)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.Ca.byteLength&&(c=Pu("hvcC",a.Ca)),d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(w(Uu(d,2)),w(Uu(e,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),e="hvc1",h=new Uint8Array([]),a.encrypted&&(h=av(a),e="encv"),c=Pu(e,d,c,h));break;
972
+ case "audio":if(a.codecs.includes("mp3"))a=Pu(".mp3",bv(a));else if(a.codecs.includes("ac-3"))c=Pu("dac3",a.qa),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=av(a),d="enca"),a=Pu(d,bv(a),c,e);else if(a.codecs.includes("ec-3"))c=Pu("dec3",a.qa),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=av(a),d="enca"),a=Pu(d,bv(a),c,e);else{if(0<a.qa.byteLength)c=Pu("esds",a.qa);else{c=Pu;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Db("audio",a.codecs.split(","));l={96E3:0,88200:1,
973
+ 64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),10);d=new Uint8Array([0,0,0,0,3,25].concat(w(Uu(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=av(a),d="enca");a=Pu(d,bv(a),c,e)}c=a}a=Pu("stsd",cv,c);return b("stbl",a,Pu("stts",dv),Pu("stsc",ev),Pu("stsz",fv),Pu("stco",gv))}
974
+ function bv(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(w(Uu(a.stream.audioSamplingRate||44100,2)),[0,0]))}
975
+ function av(a){var b=Pu;var c=a.codecs.substring(0,a.codecs.indexOf("."));for(var d=0,e=0;e<c.length;e+=1)d|=c.charCodeAt(e)<<8*(c.length-e-1);c=new Uint8Array([].concat(w(Uu(d,4))));c=Pu("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=Pu("schm",d);e=Pu;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=t(a.stream.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=$u(h.value)}a=new Uint8Array([0,
976
+ 0,0,0,0,0,1,8]);f=Pu("tenc",a,f);return b("sinf",c,d,e("schi",f))}
977
+ function hv(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Pu;var g=new Uint8Array([0,0,0,0].concat(w(Uu(c.data?c.data.zb:0,4))));g=Pu("mfhd",g);var h;var k=c.data?c.data.cb:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.Ya<<4|m.$a<<2|m.Za}k=Pu("sdtp",l);var n=k.length+92;l=Pu;h=new Uint8Array([0,0,0,58].concat(w(Uu(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=Pu("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
978
+ 0;var r=Math.floor(m%(Tu+1));m=new Uint8Array([1,0,0,0].concat(w(Uu(Math.floor(m/(Tu+1)),4)),w(Uu(r,4))));m=Pu("tfdt",m);var q=n;n=c.data?c.data.cb:[];r=n.length;var u=12+16*r,v=new Uint8Array(u);q+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(w(Uu(r,4)),w(Uu(q,4))),0);for(q=0;q<r;q++){var y=n[q];u=Uu(y.duration,4);var z=Uu(y.size,4),x=y.flags;y=Uu(y.ib,4);v.set([].concat(w(u),w(z),[x.kb<<2|x.Ya,x.$a<<6|x.Za<<4|x.mb,x.Xa&61440,x.Xa&15],w(y)),12+16*q)}n=Pu("trun",v);k=l("traf",h,m,n,k);f=f("moof",
979
+ g,k);e.call(d,b,[f,iv(c)])}return sg.apply(kg,w(b))}function iv(a){a=(a.data?a.data.cb:[]).map(function(b){return b.data});a=sg.apply(kg,w(a));return Pu("mdat",a)}function Uu(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function $u(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
980
+ function Pu(a){var b=Ga.apply(1,arguments),c=jv[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],jv[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
981
+ var Nu=!1,Tu=Math.pow(2,32)-1,jv={},Vu=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]),Wu=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]),dv=new Uint8Array([0,0,0,0,0,0,0,0]),ev=new Uint8Array([0,0,0,0,0,0,0,0]),gv=new Uint8Array([0,0,0,0,0,0,0,0]),fv=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Xu=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Zu=new Uint8Array([0,
982
+ 0,0,0,0,0,0,0]),cv=new Uint8Array([0,0,0,0,0,0,0,1]),Ou=new Uint8Array([]),Qu=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ru=new Uint8Array([]);function kv(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.u=1;this.i=null;this.D=new $b(5);this.s=new Fd(function(){lv(a)});this.C=new tf;this.m=new Map}p=kv.prototype;p.configure=function(a){this.g=a};p.start=function(a,b){var c=this;return K(function(d){if(1==d.g)return c.l=[a],c.h=b,D(d,mv(c),2);if(!c.h)throw new P(2,7,7001);return d.return(c.j)})};
983
+ function lv(a){var b;K(function(c){switch(c.g){case 1:return ta(c,2),D(c,mv(a),4);case 4:va(c,3);break;case 2:b=wa(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();F(c)}})}p.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.s&&(this.s.stop(),this.s=null);this.m.clear();return this.C.destroy()};
984
+ p.update=function(){var a=this,b;return K(function(c){if(1==c.g)return ta(c,2),D(c,mv(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.h||!b)return c.return();a.h.onError(b);F(c)})};p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(){};
985
+ function mv(a){var b,c,d,e,f,g,h;return K(function(k){if(1==k.g)return b=zf(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5}),uf(a.C,e),D(k,e.promise,2);f=k.h;if(!a.h)return k.return();f.uri&&!a.l.includes(f.uri)&&a.l.unshift(f.uri);var l=f.uri,m=Qg(f.data,"SmoothStreamingMedia");if(!m)throw new P(2,4,4046,l);(l=a.g.mss.manifestPreprocessor)&&l(m);a.i||(a.i=new rj(null,0));if(l=Eg(m,"IsLive",Mg,!1))throw new P(2,4,4047);a.i.Uc(!l);var n=Eg(m,"TimeScale",Kg,1E7),
986
+ r=Eg(m,"DVRWindowLength",Kg);l&&(0===r||isNaN(r))&&(r=Infinity);var q=Eg(m,"CanSeek",Mg,!1);0===r&&q&&(r=Infinity);q=null;r&&0<r&&(q=r/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(q=a.g.availabilityWindowOverride);null==q&&(q=Infinity);a.i.He(q);r=Eg(m,"Duration",Kg,Infinity);l||a.i.eb(r/n);l={variants:[],textStreams:[],timescale:n,duration:r/n};q=wg(m,"Protection");var u;n=a.g.mss.keySystemsBySystemId;r=[];q=t(q);for(u=q.next();!u.done;u=q.next())r=r.concat(wg(u.value,"ProtectionHeader"));if(r.length){q=
987
+ [];for(u=0;u<r.length;u++){var v=r[u],y=v.getAttribute("SystemID").toLowerCase(),z=n[y];if(z){var x=Ju(v);if(x)a:{x=t(x.getElementsByTagName("DATA"));for(var B=x.next();!B.done;B=x.next())if(B=vg(B.value,"KID")){x=pg(B.textContent);x=new Uint8Array([x[3],x[2],x[1],x[0],x[5],x[4],x[7],x[6]].concat(w(x.slice(8))));x=rg(x);break a}x=null}else x=null;B=pg(v.textContent);y=qg(y.replace(/-/g,""));y=[{initData:ug(B,y,new Set,0),initDataType:"cenc",keyId:x}];y=Cb(z,y);x&&y.keyIds.add(x);if(z=Lu.get(z))y.licenseServerUri=
985
988
  z(v);q.push(y)}}n=q}else n=[];u=n;q=[];n=[];r=[];m=wg(m,"StreamIndex");m=t(m);for(v=m.next();!v.done;v=m.next()){v=v.value;z=wg(v,"QualityLevel");y=l.timescale;x=l.duration;B=wg(v,"c");for(var A=[],C=0,E=0;E<B.length;++E){var H=B[E],G=B[E+1],I=Eg(H,"t",Kg),J=Eg(H,"d",Kg);H=Eg(H,"r",Ig);if(!J)break;I=null!=I?I:C;H=H||0;if(0>H)if(G){G=Eg(G,"t",Kg);if(null==G)break;else if(I>=G)break;H=Math.ceil((G-I)/J)-1}else{if(Infinity==x)break;else if(I/y>=x)break;H=Math.ceil((x*y-I)/J)-1}for(G=0;G<=H;++G)C=I+J,
986
- A.push({start:I/y,end:C/y,sg:I}),I=C}y=A;z=t(z);for(x=z.next();!x.done;x=z.next())(x=mv(a,v,x.value,y,u,l))&&("audio"!=x.type||a.g.disableAudio?"video"!=x.type||a.g.disableVideo?x.type!=Ib||a.g.disableText||r.push(x):n.push(x):q.push(x))}m=[];q=t(0<q.length?q:[null]);for(u=q.next();!u.done;u=q.next())for(u=u.value,v=t(0<n.length?n:[null]),x=v.next();!x.done;x=v.next())z=m,y=z.push,x=x.value,B=0,u&&u.bandwidth&&0<u.bandwidth&&(B+=u.bandwidth),x&&x.bandwidth&&0<x.bandwidth&&(B+=x.bandwidth),x={id:a.u++,
989
+ A.push({start:I/y,end:C/y,xg:I}),I=C}y=A;z=t(z);for(x=z.next();!x.done;x=z.next())(x=nv(a,v,x.value,y,u,l))&&("audio"!=x.type||a.g.disableAudio?"video"!=x.type||a.g.disableVideo?x.type!=Ib||a.g.disableText||r.push(x):n.push(x):q.push(x))}m=[];q=t(0<q.length?q:[null]);for(u=q.next();!u.done;u=q.next())for(u=u.value,v=t(0<n.length?n:[null]),x=v.next();!x.done;x=v.next())z=m,y=z.push,x=x.value,B=0,u&&u.bandwidth&&0<u.bandwidth&&(B+=u.bandwidth),x&&x.bandwidth&&0<x.bandwidth&&(B+=x.bandwidth),x={id:a.u++,
987
990
  language:u?u.language:"und",disabledUntilTime:0,primary:!!u&&u.primary||!!x&&x.primary,audio:u,video:x,bandwidth:B,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},y.call(z,x);l.variants=m;l.textStreams=r;a.j?(a.j.variants=l.variants,a.j.textStreams=l.textStreams,a.h.filter(a.j)):(a.j={presentationTimeline:a.i,variants:l.variants,textStreams:l.textStreams,imageStreams:[],offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.mss.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,
988
- type:"MSS",serviceDescription:null},a.i.le());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.D.sample(1,h);F(k)})}
989
- function mv(a,b,c,d,e,f){var g=b.getAttribute("Type");if("audio"!==g&&"video"!==g&&"text"!==g)return Ta("Ignoring unrecognized type:",g),null;var h=b.getAttribute("Language"),k=a.u++,l=Eg(c,"Bitrate",Jg),m=Eg(c,"MaxWidth",Jg),n=Eg(c,"MaxHeight",Jg),r=Eg(c,"Channels",Jg),q=Eg(c,"SamplingRate",Jg),u=f.duration;d.length&&(u=d[d.length-1].end-d[0].start);var v=a.i.getDuration();a.i.bb(Math.min(u,v));var y={id:k,originalId:b.getAttribute("Name")||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve()},
991
+ type:"MSS",serviceDescription:null},a.i.pe());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.D.sample(1,h);F(k)})}
992
+ function nv(a,b,c,d,e,f){var g=b.getAttribute("Type");if("audio"!==g&&"video"!==g&&"text"!==g)return Ta("Ignoring unrecognized type:",g),null;var h=b.getAttribute("Language"),k=a.u++,l=Eg(c,"Bitrate",Jg),m=Eg(c,"MaxWidth",Jg),n=Eg(c,"MaxHeight",Jg),r=Eg(c,"Channels",Jg),q=Eg(c,"SamplingRate",Jg),u=f.duration;d.length&&(u=d[d.length-1].end-d[0].start);var v=a.i.getDuration();a.i.eb(Math.min(u,v));var y={id:k,originalId:b.getAttribute("Name")||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve()},
990
993
  closeSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"",codecs:"",frameRate:void 0,pixelAspectRatio:void 0,bandwidth:l||0,width:m||void 0,height:n||void 0,kind:"",encrypted:0<e.length,drmInfos:e,keyIds:new Set,language:Nb(h||"und"),originalLanguage:h,label:"",type:"",primary:!1,trickModeVideo:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:r,audioSamplingRate:q,spatialAudio:!1,closedCaptions:null,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,matchedStreams:[],
991
- mssPrivateData:{duration:u,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1};if(e=b.getAttribute("Subtype"))(e=nv[e])&&y.roles.push(e),"main"===e&&(y.primary=!0);e=c.getAttribute("FourCC");if(null===e||""===e)e=b.getAttribute("FourCC");if(!e)if("audio"===g)e="AAC";else if("video"===g)return Ta('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!ov.includes(e.toUpperCase()))return Ta("Codec not supported:",
992
- e),null;c=pv(c,g,e,y);y.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return Ta("Quality unsupported without CodecPrivateData",g),null;y.type="audio";y.mimeType="mss/audio/mp4";y.codecs=qv(e,c);break;case "video":if(!c)return Ta("Quality unsupported without CodecPrivateData",g),null;y.type="video";y.mimeType="mss/video/mp4";y.codecs=rv(c);break;case "text":if(y.type=Ib,y.mimeType="application/mp4","TTML"===e||"DFXP"===e)y.codecs="stpp"}y.createSegmentIndex=function(){if(y.segmentIndex)return Promise.resolve();
993
- if(a.m.has(y.id))var z=a.m.get(y.id);else z=[],"video"==y.type&&(z=y.mssPrivateData.codecPrivateData.split("00000001").slice(1)),z={id:y.id,type:y.type,codecs:y.codecs,encrypted:y.encrypted,timescale:y.mssPrivateData.timescale,duration:y.mssPrivateData.duration,eb:z,oa:new Uint8Array([]),Aa:new Uint8Array([]),data:null,stream:y},z=Ru(new Lu([z])),a.m.set(y.id,z);z=sv(a,new Mh(function(){return[]},0,null,null,void 0,z),y,b,d);y.segmentIndex=new Nj(z);return Promise.resolve()};y.closeSegmentIndex=function(){y.segmentIndex&&
994
+ mssPrivateData:{duration:u,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1};if(e=b.getAttribute("Subtype"))(e=ov[e])&&y.roles.push(e),"main"===e&&(y.primary=!0);e=c.getAttribute("FourCC");if(null===e||""===e)e=b.getAttribute("FourCC");if(!e)if("audio"===g)e="AAC";else if("video"===g)return Ta('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!pv.includes(e.toUpperCase()))return Ta("Codec not supported:",
995
+ e),null;c=qv(c,g,e,y);y.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return Ta("Quality unsupported without CodecPrivateData",g),null;y.type="audio";y.mimeType="mss/audio/mp4";y.codecs=rv(e,c);break;case "video":if(!c)return Ta("Quality unsupported without CodecPrivateData",g),null;y.type="video";y.mimeType="mss/video/mp4";y.codecs=sv(c);break;case "text":if(y.type=Ib,y.mimeType="application/mp4","TTML"===e||"DFXP"===e)y.codecs="stpp"}y.createSegmentIndex=function(){if(y.segmentIndex)return Promise.resolve();
996
+ if(a.m.has(y.id))var z=a.m.get(y.id);else z=[],"video"==y.type&&(z=y.mssPrivateData.codecPrivateData.split("00000001").slice(1)),z={id:y.id,type:y.type,codecs:y.codecs,encrypted:y.encrypted,timescale:y.mssPrivateData.timescale,duration:y.mssPrivateData.duration,gb:z,qa:new Uint8Array([]),Ca:new Uint8Array([]),data:null,stream:y},z=Su(new Mu([z])),a.m.set(y.id,z);z=tv(a,new Mh(function(){return[]},0,null,null,void 0,z),y,b,d);y.segmentIndex=new Nj(z);return Promise.resolve()};y.closeSegmentIndex=function(){y.segmentIndex&&
994
997
  (y.segmentIndex.release(),y.segmentIndex=null)};return y}
995
- function pv(a,b,c,d){if(a=a.getAttribute("CodecPrivateData"))return a;if("audio"!==b)return null;b=d.channelsCount||2;a=d.audioSamplingRate||44100;var e={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};d=e[a];if("AACH"===c)return c=new Uint8Array(4),a=e[2*a],c[0]=40|d>>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|
996
- b<<3;b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function qv(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function rv(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
997
- function sv(a,b,c,d,e){var f=d.getAttribute("Url").replace("{bitrate}",String(c.bandwidth));d=[];var g={};e=t(e);for(var h=e.next();!h.done;g={dd:g.dd},h=e.next())g.dd=h.value,d.push(new Oh(g.dd.start,g.dd.end,function(k){return function(){return Bb(a.l,[f.replace("{start time}",String(k.dd.sg))])}}(g),0,null,b,0,0,c.mssPrivateData.duration));return d}L("shaka.mss.MssParser",jv);var ov="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),nv={CAPT:"main",SUBT:"alternate",DESC:"main"};
998
- Hh["application/vnd.ms-sstr+xml"]=function(){return new jv};function tv(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Vf(b)}catch(g){}throw new P(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function uv(){}function vv(a,b,c,d,e){var f=new wv;Pf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new xv,h={Ag:!1,rh:!1};a=yv(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new mf(a,function(){h.Ag=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Fd(function(){h.rh=!0;g.abort()});k.R(b/1E3);a.finally(function(){k.stop()})}return a}
999
- function yv(a,b,c,d,e,f,g){var h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:return h=zv,k=Av,r=n=0,q=Date.now(),ta(A,2),D(A,h(a,c),4);case 4:l=A.h;f(Bv(l.headers));if("HEAD"==c.method){A.F(5);break}u=l.clone().body.getReader();y=(v=l.headers.get("Content-Length"))?parseInt(v,10):0;z=function(C){function E(){var H,G;return K(function(I){switch(I.g){case 1:return ta(I,2),D(I,u.read(),4);case 4:H=I.h;va(I,3);break;case 2:return wa(I),I.return();case 3:if(H.done){I.F(5);break}n+=
1000
- H.value.byteLength;if(!g){I.F(5);break}return D(I,g(H.value),5);case 5:G=Date.now();if(100<G-q||H.done)e(G-q,n-r,y-n),r=n,q=G;H.done?C.close():(C.enqueue(H.value),E());F(I)}})}E()};new k({start:z});return D(A,l.arrayBuffer(),6);case 6:m=A.h;case 5:va(A,3);break;case 2:x=wa(A);if(d.Ag)throw new P(1,1,7001,a,b);if(d.rh)throw new P(1,1,1003,a,b);throw new P(1,1,1002,a,x,b);case 3:return B=Bv(l.headers),A.return(tv(B,m,l.status,a,l.url,b))}})}
1001
- function Bv(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function Cv(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}L("shaka.net.HttpFetchPlugin",uv);uv.isSupported=Cv;uv.parse=vv;var zv=window.fetch,xv=window.AbortController,Av=window.ReadableStream,wv=window.Headers;
1002
- Cv()&&(wf("http",vv,2,!0),wf("https",vv,2,!0),wf("blob",vv,2,!0));function Dv(){}
1003
- function Ev(a,b,c,d,e){var f=new Fv,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new P(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var q=Gv(f);e(q);n=!0}};f.onload=function(){var q=Gv(f),u=f.response;try{var v=tv(q,u,f.status,a,f.responseURL,c);l(v)}catch(y){m(y)}};f.onerror=function(q){m(new P(1,1,1002,a,q,
998
+ function qv(a,b,c,d){if(a=a.getAttribute("CodecPrivateData"))return a;if("audio"!==b)return null;b=d.channelsCount||2;a=d.audioSamplingRate||44100;var e={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};d=e[a];if("AACH"===c)return c=new Uint8Array(4),a=e[2*a],c[0]=40|d>>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|
999
+ b<<3;b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function rv(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function sv(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
1000
+ function tv(a,b,c,d,e){var f=d.getAttribute("Url").replace("{bitrate}",String(c.bandwidth));d=[];var g={};e=t(e);for(var h=e.next();!h.done;g={fd:g.fd},h=e.next())g.fd=h.value,d.push(new Oh(g.fd.start,g.fd.end,function(k){return function(){return Bb(a.l,[f.replace("{start time}",String(k.fd.xg))])}}(g),0,null,b,0,0,c.mssPrivateData.duration));return d}L("shaka.mss.MssParser",kv);var pv="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),ov={CAPT:"main",SUBT:"alternate",DESC:"main"};
1001
+ Hh["application/vnd.ms-sstr+xml"]=function(){return new kv};function uv(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Vf(b)}catch(g){}throw new P(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function vv(){}function wv(a,b,c,d,e){var f=new xv;Pf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new yv,h={Fg:!1,vh:!1};a=zv(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new mf(a,function(){h.Fg=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Fd(function(){h.vh=!0;g.abort()});k.S(b/1E3);a.finally(function(){k.stop()})}return a}
1002
+ function zv(a,b,c,d,e,f,g){var h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:return h=Av,k=Bv,r=n=0,q=Date.now(),ta(A,2),D(A,h(a,c),4);case 4:l=A.h;f(Cv(l.headers));if("HEAD"==c.method){A.F(5);break}u=l.clone().body.getReader();y=(v=l.headers.get("Content-Length"))?parseInt(v,10):0;z=function(C){function E(){var H,G;return K(function(I){switch(I.g){case 1:return ta(I,2),D(I,u.read(),4);case 4:H=I.h;va(I,3);break;case 2:return wa(I),I.return();case 3:if(H.done){I.F(5);break}n+=
1003
+ H.value.byteLength;if(!g){I.F(5);break}return D(I,g(H.value),5);case 5:G=Date.now();if(100<G-q||H.done)e(G-q,n-r,y-n),r=n,q=G;H.done?C.close():(C.enqueue(H.value),E());F(I)}})}E()};new k({start:z});return D(A,l.arrayBuffer(),6);case 6:m=A.h;case 5:va(A,3);break;case 2:x=wa(A);if(d.Fg)throw new P(1,1,7001,a,b);if(d.vh)throw new P(1,1,1003,a,b);throw new P(1,1,1002,a,x,b);case 3:return B=Cv(l.headers),A.return(uv(B,m,l.status,a,l.url,b))}})}
1004
+ function Cv(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function Dv(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}L("shaka.net.HttpFetchPlugin",vv);vv.isSupported=Dv;vv.parse=wv;var Av=window.fetch,yv=window.AbortController,Bv=window.ReadableStream,xv=window.Headers;
1005
+ Dv()&&(wf("http",wv,2,!0),wf("https",wv,2,!0),wf("blob",wv,2,!0));function Ev(){}
1006
+ function Fv(a,b,c,d,e){var f=new Gv,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new P(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var q=Hv(f);e(q);n=!0}};f.onload=function(){var q=Hv(f),u=f.response;try{var v=uv(q,u,f.status,a,f.responseURL,c);l(v)}catch(y){m(y)}};f.onerror=function(q){m(new P(1,1,1002,a,q,
1004
1007
  c))};f.ontimeout=function(){m(new P(1,1,1003,a,c))};f.onprogress=function(q){var u=Date.now();if(100<u-g||q.lengthComputable&&q.loaded==q.total)d(u-g,q.loaded-h,q.total-q.loaded),h=q.loaded,g=u};for(var r in b.headers)f.setRequestHeader(r.toLowerCase(),b.headers[r]);f.send(b.body)});return new mf(k,function(){f.abort();return Promise.resolve()})}
1005
- function Gv(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}L("shaka.net.HttpXHRPlugin",Dv);Dv.parse=Ev;var Fv=window.XMLHttpRequest;wf("http",Ev,1,!0);wf("https",Ev,1,!0);wf("blob",Ev,1,!0);function Hv(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Iv(a){return a.ba().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.cb+":"+a.Ja}function Jv(a,b){return nk(a.g.ba(),a.g.cb,a.g.Ja,b.streaming.retryParameters)};function Kv(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Lv(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Kv.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g.delete(a);this.j+=c;this.h+=b}};function Mv(a){var b=this;this.s=a;this.j=new Map;this.i=new Hf(function(){return Nv(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Kv}Mv.prototype.destroy=function(){return this.i.destroy()};function Ov(a,b,c){a.m=b;a.l=c}function Nv(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
1006
- function Pv(a,b,c,d,e,f){If(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,r,q;return K(function(u){if(1==u.g)return D(u,Qv(a,c),2);h=u.h;if(a.i.g)throw new P(2,9,7001);if(e)for(m in k=nc(h),l=new tg(k),l.data)n=Number(m),r=l.data[n],q=l.g[n],a.l(r,q);a.g.close(d,h.byteLength);var v=a.g;a.m(0==v.i?0:v.j/v.i,a.g.h);return u.return(f(h))})});a.j.set(b,g)}function Rv(a){return K(function(b){return 1==b.g?D(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
1007
- function Qv(a,b){var c,d,e,f;return K(function(g){if(1==g.g)return c=Ff,d=a.s.request(c,b),e=function(){return d.abort()},a.h.push(e),D(g,d.promise,2);f=g.h;xc(a.h,e);return g.return(f.data)})};function Sv(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new lf;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Sv.prototype.abort=function(){var a=this;return K(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return D(b,a.g,4)}if(2!=b.g)return va(b,0);wa(b);F(b)})};
1008
- function Tv(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return K(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return D(g,b(f.key,f.value,f),2)}f.continue();F(g)})}})}Sv.prototype.store=function(){return this.h};Sv.prototype.promise=function(){return this.g};function Uv(a){this.h=a;this.g=[]}Uv.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Vv(a,b){return Wv(a,b,"readwrite")}function Wv(a,b,c){c=a.h.transaction([b],c);var d=new Sv(c,b);a.g.push(d);d.promise().then(function(){xc(a.g,d)},function(){xc(a.g,d)});return d};function Xv(a,b,c){this.h=new Uv(a);this.i=b;this.g=c}p=Xv.prototype;p.destroy=function(){return this.h.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return Yv(this.i)};p.removeSegments=function(a,b){return Zv(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return K(function(d){if(1==d.g)return D(d,$v(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Eg(e)}))})};p.addManifests=function(){return Yv(this.g)};
1009
- p.updateManifest=function(){return Promise.reject(new P(2,9,9016,"Cannot modify values in "+this.g))};function aw(a,b,c){a=Vv(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}p.updateManifestExpiration=function(a,b){var c=Vv(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return Zv(this,this.g,a,b)};
1010
- p.getManifests=function(a){var b=this,c;return K(function(d){if(1==d.g)return D(d,$v(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.ld(e)})))})};p.getAllManifests=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=Wv(a.h,a.g,"readonly"),c=new Map,D(d,Tv(b,function(e,f){var g;return K(function(h){if(1==h.g)return D(h,a.ld(f),2);g=h.h;c.set(e,g);F(h)})}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};p.Eg=function(a){return a};p.ld=function(a){return Promise.resolve(a)};
1011
- function Yv(a){return Promise.reject(new P(2,9,9011,"Cannot add new value to "+a))}p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=Vv(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={Pd:g.Pd},k=h.next())l=k.value,g.Pd=e.add(l),g.Pd.onsuccess=function(n){return function(){f.push(n.Pd.result)}}(g);return D(m,d.promise(),2)}return m.return(f)})};
1012
- function Zv(a,b,c,d){a=Vv(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={Nd:e.Nd},f=c.next())e.Nd=f.value,b.delete(e.Nd).onsuccess=function(g){return function(){return d(g.Nd)}}(e);return a.promise()}
1013
- function $v(a,b,c){var d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=Wv(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={bd:h.bd,Yc:h.Yc},l=k.next())h.Yc=l.value,h.bd=e.get(h.Yc),h.bd.onsuccess=function(n){return function(){void 0==n.bd.result&&g.push(n.Yc);f[n.Yc]=n.bd.result}}(h);return D(m,d.promise(),2)}if(g.length)throw new P(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function bw(a){this.g=new Uv(a)}bw.prototype.destroy=function(){return this.g.destroy()};bw.prototype.getAll=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=Wv(a.g,"session-ids","readonly"),c=[],D(d,Tv(b,function(e,f){c.push(f)}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};bw.prototype.add=function(a){var b=Vv(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
1014
- bw.prototype.remove=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Vv(b.g,"session-ids"),D(d,Tv(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):D(d,c.promise(),0)})};function cw(){this.g=new Map}cw.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};cw.prototype.init=function(){var a=this;dw.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
1015
- function ew(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{kb:d,Oa:f},Oa:e})})});if(b)return b;throw new P(2,9,9013,"Could not find a cell that supports add-operations");}function fw(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({kb:d,Oa:f},e)})})}
1016
- function gw(a,b,c){a=a.g.get(b);if(!a)throw new P(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new P(2,9,9013,"Could not find cell with name "+c);return b}function hw(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function iw(a){var b=Array.from(a.g.keys());if(!b.length)throw new P(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
1017
- function jw(a){var b,c,d;return K(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=dw,d.forEach(function(f){(f=f())&&b.push(f)})),D(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.F(0):D(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function kw(a,b){dw.set(a,b)}L("shaka.offline.StorageMuxer",cw);cw.unregister=function(a){dw.delete(a)};cw.register=kw;cw.prototype.destroy=cw.prototype.destroy;var dw=new Map;function lw(){Xv.apply(this,arguments)}pa(lw,Xv);lw.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return K(function(g){d=Vv(c.h,c.g);e=d.store();f=new lf;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new P(2,9,9012,"Could not find values for "+a))};return D(g,Promise.all([d.promise(),f]),0)})};
1018
- lw.prototype.ld=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=mw(a.periods[c],e),b.push(f);return D(h,$r(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
1019
- function mw(a,b){nw(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return ow(e,a.startTime,b)})}
1020
- function ow(a,b,c){var d=a.initSegmentUri?pw(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=
1021
- pw(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}lw.prototype.Eg=function(a){return{data:a.data}};
1022
- function pw(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new P(2,9,9004,"Could not parse uri "+a);}
1023
- function nw(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
1024
- f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function qw(){Xv.apply(this,arguments)}pa(qw,Xv);
1025
- qw.prototype.ld=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(rw(n,k.startTime,k.startTime+e));f=l;b.push(f)}return D(h,$r(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
1008
+ function Hv(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}L("shaka.net.HttpXHRPlugin",Ev);Ev.parse=Fv;var Gv=window.XMLHttpRequest;wf("http",Fv,1,!0);wf("https",Fv,1,!0);wf("blob",Fv,1,!0);function Iv(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Jv(a){return a.ba().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.fb+":"+a.Ka}function Kv(a,b){return nk(a.g.ba(),a.g.fb,a.g.Ka,b.streaming.retryParameters)};function Lv(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Mv(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Lv.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g.delete(a);this.j+=c;this.h+=b}};function Nv(a){var b=this;this.s=a;this.j=new Map;this.i=new Hf(function(){return Ov(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Lv}Nv.prototype.destroy=function(){return this.i.destroy()};function Pv(a,b,c){a.m=b;a.l=c}function Ov(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
1009
+ function Qv(a,b,c,d,e,f){If(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,r,q;return K(function(u){if(1==u.g)return D(u,Rv(a,c),2);h=u.h;if(a.i.g)throw new P(2,9,7001);if(e)for(m in k=nc(h),l=new tg(k),l.data)n=Number(m),r=l.data[n],q=l.g[n],a.l(r,q);a.g.close(d,h.byteLength);var v=a.g;a.m(0==v.i?0:v.j/v.i,a.g.h);return u.return(f(h))})});a.j.set(b,g)}function Sv(a){return K(function(b){return 1==b.g?D(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
1010
+ function Rv(a,b){var c,d,e,f;return K(function(g){if(1==g.g)return c=Ff,d=a.s.request(c,b),e=function(){return d.abort()},a.h.push(e),D(g,d.promise,2);f=g.h;xc(a.h,e);return g.return(f.data)})};function Tv(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new lf;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Tv.prototype.abort=function(){var a=this;return K(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return D(b,a.g,4)}if(2!=b.g)return va(b,0);wa(b);F(b)})};
1011
+ function Uv(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return K(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return D(g,b(f.key,f.value,f),2)}f.continue();F(g)})}})}Tv.prototype.store=function(){return this.h};Tv.prototype.promise=function(){return this.g};function Vv(a){this.h=a;this.g=[]}Vv.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Wv(a,b){return Xv(a,b,"readwrite")}function Xv(a,b,c){c=a.h.transaction([b],c);var d=new Tv(c,b);a.g.push(d);d.promise().then(function(){xc(a.g,d)},function(){xc(a.g,d)});return d};function Yv(a,b,c){this.h=new Vv(a);this.i=b;this.g=c}p=Yv.prototype;p.destroy=function(){return this.h.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return Zv(this.i)};p.removeSegments=function(a,b){return $v(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return K(function(d){if(1==d.g)return D(d,aw(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Jg(e)}))})};p.addManifests=function(){return Zv(this.g)};
1012
+ p.updateManifest=function(){return Promise.reject(new P(2,9,9016,"Cannot modify values in "+this.g))};function bw(a,b,c){a=Wv(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}p.updateManifestExpiration=function(a,b){var c=Wv(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return $v(this,this.g,a,b)};
1013
+ p.getManifests=function(a){var b=this,c;return K(function(d){if(1==d.g)return D(d,aw(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.pd(e)})))})};p.getAllManifests=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=Xv(a.h,a.g,"readonly"),c=new Map,D(d,Uv(b,function(e,f){var g;return K(function(h){if(1==h.g)return D(h,a.pd(f),2);g=h.h;c.set(e,g);F(h)})}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};p.Jg=function(a){return a};p.pd=function(a){return Promise.resolve(a)};
1014
+ function Zv(a){return Promise.reject(new P(2,9,9011,"Cannot add new value to "+a))}p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=Wv(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={Sd:g.Sd},k=h.next())l=k.value,g.Sd=e.add(l),g.Sd.onsuccess=function(n){return function(){f.push(n.Sd.result)}}(g);return D(m,d.promise(),2)}return m.return(f)})};
1015
+ function $v(a,b,c,d){a=Wv(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={Qd:e.Qd},f=c.next())e.Qd=f.value,b.delete(e.Qd).onsuccess=function(g){return function(){return d(g.Qd)}}(e);return a.promise()}
1016
+ function aw(a,b,c){var d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=Xv(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={dd:h.dd,$c:h.$c},l=k.next())h.$c=l.value,h.dd=e.get(h.$c),h.dd.onsuccess=function(n){return function(){void 0==n.dd.result&&g.push(n.$c);f[n.$c]=n.dd.result}}(h);return D(m,d.promise(),2)}if(g.length)throw new P(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function cw(a){this.g=new Vv(a)}cw.prototype.destroy=function(){return this.g.destroy()};cw.prototype.getAll=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=Xv(a.g,"session-ids","readonly"),c=[],D(d,Uv(b,function(e,f){c.push(f)}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};cw.prototype.add=function(a){var b=Wv(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
1017
+ cw.prototype.remove=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Wv(b.g,"session-ids"),D(d,Uv(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):D(d,c.promise(),0)})};function dw(){this.g=new Map}dw.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};dw.prototype.init=function(){var a=this;ew.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
1018
+ function fw(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{ob:d,Pa:f},Pa:e})})});if(b)return b;throw new P(2,9,9013,"Could not find a cell that supports add-operations");}function gw(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({ob:d,Pa:f},e)})})}
1019
+ function hw(a,b,c){a=a.g.get(b);if(!a)throw new P(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new P(2,9,9013,"Could not find cell with name "+c);return b}function iw(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function jw(a){var b=Array.from(a.g.keys());if(!b.length)throw new P(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
1020
+ function kw(a){var b,c,d;return K(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=ew,d.forEach(function(f){(f=f())&&b.push(f)})),D(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.F(0):D(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function lw(a,b){ew.set(a,b)}L("shaka.offline.StorageMuxer",dw);dw.unregister=function(a){ew.delete(a)};dw.register=lw;dw.prototype.destroy=dw.prototype.destroy;var ew=new Map;function mw(){Yv.apply(this,arguments)}pa(mw,Yv);mw.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return K(function(g){d=Wv(c.h,c.g);e=d.store();f=new lf;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new P(2,9,9012,"Could not find values for "+a))};return D(g,Promise.all([d.promise(),f]),0)})};
1021
+ mw.prototype.pd=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=nw(a.periods[c],e),b.push(f);return D(h,$r(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
1022
+ function nw(a,b){ow(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return pw(e,a.startTime,b)})}
1023
+ function pw(a,b,c){var d=a.initSegmentUri?qw(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=
1024
+ qw(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}mw.prototype.Jg=function(a){return{data:a.data}};
1025
+ function qw(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new P(2,9,9004,"Could not parse uri "+a);}
1026
+ function ow(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
1027
+ f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function rw(){Yv.apply(this,arguments)}pa(rw,Yv);
1028
+ rw.prototype.pd=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(sw(n,k.startTime,k.startTime+e));f=l;b.push(f)}return D(h,$r(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
1026
1029
  Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
1027
- function rw(a,b,c){return{id:a.id,originalId:a.originalId,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,
1028
- appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}};function sw(){Xv.apply(this,arguments)}pa(sw,Xv);p=sw.prototype;p.hasFixedKeySpace=function(){return!1};p.addSegments=function(a){return this.add(this.i,a)};p.addManifests=function(a){return this.add(this.g,a)};p.updateManifest=function(a,b){return aw(this,a,b)};p.ld=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function tw(){this.m=this.j=this.i=this.h=this.g=this.l=null}p=tw.prototype;
1029
- p.init=function(){var a=this,b=new lf,c=!1,d=new Fd(function(){c=!0;b.reject(new P(2,9,9017))});d.R(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new lw(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new qw(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
1030
- new qw(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new sw(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new bw(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new P(2,
1030
+ function sw(a,b,c){return{id:a.id,originalId:a.originalId,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,
1031
+ appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}};function tw(){Yv.apply(this,arguments)}pa(tw,Yv);p=tw.prototype;p.hasFixedKeySpace=function(){return!1};p.addSegments=function(a){return this.add(this.i,a)};p.addManifests=function(a){return this.add(this.g,a)};p.updateManifest=function(a,b){return bw(this,a,b)};p.pd=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function uw(){this.m=this.j=this.i=this.h=this.g=this.l=null}p=uw.prototype;
1032
+ p.init=function(){var a=this,b=new lf,c=!1,d=new Fd(function(){c=!0;b.reject(new P(2,9,9017))});d.S(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new mw(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new rw(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
1033
+ new rw(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new tw(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new cw(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new P(2,
1031
1034
  9,9001,e.error)),d.stop(),f.preventDefault())};return b};p.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(!a.g){b.F(2);break}return D(b,a.g.destroy(),2);case 2:if(!a.h){b.F(4);break}return D(b,a.h.destroy(),4);case 4:if(!a.i){b.F(6);break}return D(b,a.i.destroy(),6);case 6:if(!a.j){b.F(8);break}return D(b,a.j.destroy(),8);case 8:if(!a.m){b.F(10);break}return D(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),F(b)}})};
1032
1035
  p.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};p.getEmeSessionCell=function(){return this.m};
1033
- p.erase=function(){var a=this;return K(function(b){switch(b.g){case 1:if(!a.g){b.F(2);break}return D(b,a.g.destroy(),2);case 2:if(!a.h){b.F(4);break}return D(b,a.h.destroy(),4);case 4:if(!a.i){b.F(6);break}return D(b,a.i.destroy(),6);case 6:if(!a.j){b.F(8);break}return D(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),D(b,uw(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,D(b,a.init(),0)}})};
1034
- function uw(){var a=new lf,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new P(2,9,9001,b.error));c.preventDefault()};return a}kw("idb",function(){return Ld("CrKey")||Kd()||!window.indexedDB?null:new tw});function vw(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}vw.prototype.kb=function(){return this.i};vw.prototype.Oa=function(){return this.h};vw.prototype.key=function(){return this.l};vw.prototype.toString=function(){return this.j};
1035
- function ww(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new vw(b,c,d,Number(a[4])):null};function xw(a,b){this.h=a;this.g=b}
1036
- function yw(a,b){var c=new rj(null,0);c.bb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=zw(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return Aw(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Aw(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
1036
+ p.erase=function(){var a=this;return K(function(b){switch(b.g){case 1:if(!a.g){b.F(2);break}return D(b,a.g.destroy(),2);case 2:if(!a.h){b.F(4);break}return D(b,a.h.destroy(),4);case 4:if(!a.i){b.F(6);break}return D(b,a.i.destroy(),6);case 6:if(!a.j){b.F(8);break}return D(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),D(b,vw(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,D(b,a.init(),0)}})};
1037
+ function vw(){var a=new lf,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new P(2,9,9001,b.error));c.preventDefault()};return a}lw("idb",function(){return Ld("CrKey")||Kd()||!window.indexedDB?null:new uw});function ww(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}ww.prototype.ob=function(){return this.i};ww.prototype.Pa=function(){return this.h};ww.prototype.key=function(){return this.l};ww.prototype.toString=function(){return this.j};
1038
+ function xw(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new ww(b,c,d,Number(a[4])):null};function yw(a,b){this.h=a;this.g=b}
1039
+ function zw(a,b){var c=new rj(null,0);c.eb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=Aw(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return Bw(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Bw(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
1037
1040
  g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return{presentationTimeline:c,minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:b.type||"UNKNOWN",serviceDescription:null}}
1038
- function zw(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
1039
- b.next())for(e=e.value,g=Aw(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Aw(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
1040
- function Aw(a,b,c){var d=b.segments.map(function(e){return Bw(a,e)});c.yd(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Nj(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,videoLayout:b.videoLayout,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,originalLanguage:b.originalLanguage||
1041
+ function Aw(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
1042
+ b.next())for(e=e.value,g=Bw(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Bw(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
1043
+ function Bw(a,b,c){var d=b.segments.map(function(e){return Cw(a,e)});c.Cd(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Nj(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,videoLayout:b.videoLayout,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,originalLanguage:b.originalLanguage||
1041
1044
  null,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout,accessibilityPurpose:null,external:b.external,fastSwitching:b.fastSwitching}}
1042
- function Bw(a,b){var c=new vw("segment",a.h,a.g,b.dataKey);return new Oh(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?Cw(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}function Cw(a,b){var c=new vw("segment",a.h,a.g,b);return new Mh(function(){return[c.toString()]},0,null)};function Dw(){this.g=null}p=Dw.prototype;p.configure=function(){};
1043
- p.start=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:d=ww(a);c.g=d;if(null==d||"manifest"!=d.g)throw new P(2,1,9004,a);e=new cw;ua(m,2);return D(m,e.init(),4);case 4:return D(m,gw(e,d.kb(),d.Oa()),5);case 5:return f=m.h,D(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new xw(d.kb(),d.Oa()),l=yw(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return xa(m),D(m,e.destroy(),7);case 7:ya(m,0)}})};p.stop=function(){return Promise.resolve()};
1045
+ function Cw(a,b){var c=new ww("segment",a.h,a.g,b.dataKey);return new Oh(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?Dw(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}function Dw(a,b){var c=new ww("segment",a.h,a.g,b);return new Mh(function(){return[c.toString()]},0,null)};function Ew(){this.g=null}p=Ew.prototype;p.configure=function(){};
1046
+ p.start=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:d=xw(a);c.g=d;if(null==d||"manifest"!=d.g)throw new P(2,1,9004,a);e=new dw;ua(m,2);return D(m,e.init(),4);case 4:return D(m,hw(e,d.ob(),d.Pa()),5);case 5:return f=m.h,D(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new yw(d.ob(),d.Pa()),l=zw(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return xa(m),D(m,e.destroy(),7);case 7:ya(m,0)}})};p.stop=function(){return Promise.resolve()};
1044
1047
  p.update=function(){};
1045
- p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:return d=c.g,e=new cw,ta(m,2,3),D(m,e.init(),5);case 5:return D(m,gw(e,d.kb(),d.Oa()),6);case 6:return f=m.h,D(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.F(3);break}return D(m,f.updateManifestExpiration(d.key(),b),3);case 3:return xa(m),D(m,e.destroy(),10);case 10:ya(m,0);break;case 2:wa(m),m.F(3)}})};
1046
- p.onInitialVariantChosen=function(){};p.banLocation=function(){};Hh["application/x-offline-manifest"]=function(){return new Dw};function Ew(){}function Fw(a){var b=ww(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=pf(a)):a=b&&"segment"==b.g?Gw(b.key(),b):nf(new P(2,1,9004,a));return a}
1047
- function Gw(a,b){var c=new cw;return pf(void 0).Da(function(){return c.init()}).Da(function(){return gw(c,b.kb(),b.Oa())}).Da(function(d){return d.getSegments([b.key()])}).Da(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}L("shaka.offline.OfflineScheme",Ew);Ew.plugin=Fw;wf("offline",Fw);function Hw(a,b,c){var d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),r=n.next();!r.done;r=n.next()){r=r.value;for(var q=!1,u=t(m),v=u.next();!v.done;v=u.next())if(v=v.value,Iw(v.info,r)){v.sessionIds.push(r.sessionId);q=!0;break}q||m.push({info:r,sessionIds:[r.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.F(4);break}g=f.value;h=Jw(a,b,g);return D(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.F(2);break;case 4:return l.return(d)}})}
1048
- function Jw(a,b,c){var d,e;return K(function(f){switch(f.g){case 1:return d=new Rg({uc:b,onError:function(){},xe:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),D(f,Zg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return wa(f),D(f,d.destroy(),5);case 5:return f.return([]);case 3:return ta(f,6),D(f,jh(d),8);case 8:va(f,7);break;case 6:return wa(f),D(f,d.destroy(),
1049
- 9);case 9:return f.return([]);case 7:return e=[],D(f,Promise.all(c.sessionIds.map(function(g){return K(function(h){if(1==h.g)return ta(h,2),D(h,kh(d,g),4);if(2!=h.g)return e.push(g),va(h,0);wa(h);F(h)})})),10);case 10:return D(f,d.destroy(),11);case 11:return f.return(e)}})}
1050
- function Iw(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&yc(a.audioCapabilities,b.audioCapabilities,c)&&yc(a.videoCapabilities,b.videoCapabilities,c)};function Kw(a,b,c){var d=b.presentationTimeline.getDuration();b=Lw(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Mw(a,b){var c=yw(new xw(a.kb(),a.Oa()),b),d=b.appMetadata||{};c=Lw(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
1051
- function Lw(a){var b=[],c=Ce(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(te(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(ue(c.value));return b};function Nw(){this.g={}}function Ow(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Pw(a,b){a.g[b.id]=b.bandwidth||2048}function Qw(a,b){a=a.g[b];null==a&&(a=0);return a};function Rw(a){var b=this;if(a&&a.constructor!=V)throw new P(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Tb()):(this.h=Zl(),this.g=new vf);this.i=[];this.j=[];var c=!a;this.l=new Hf(function(){var d,e,f,g,h;return K(function(k){switch(k.g){case 1:return D(k,Promise.all(b.j.map(function(l){return Nv(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return D(k,Promise.all(e),3);case 3:if(!c){k.F(4);break}return D(k,b.g.destroy(),4);
1052
- case 4:b.h=null,b.g=null,F(k)}})})}function Sw(){if(Gd())a:{var a=t(dw.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}p=Rw.prototype;p.destroy=function(){return this.l.destroy()};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pl(a,b));return am(this.h,a)};p.getConfiguration=function(){var a=Zl();am(a,this.h,Zl());return a};p.Tb=function(){return this.g};
1053
- p.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Mv(this.g);this.j.push(f);b=Tw(this,a,b||{},function(){var g;return K(function(h){if(1==h.g)return c?h.F(2):D(h,Uk(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=Gh(a,c||null);return h.return(g())})},e,f);b=new mf(b,function(){return Nv(f)});b.finally(function(){xc(d.j,f)});return Uw(this,b)};
1054
- function Tw(a,b,c,d,e,f){var g,h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:return Vw(),h=g=null,k=new cw,n=m=l=null,ta(A,2,3),D(A,d(),5);case 5:return g=A.h,D(A,Ww(a,b,g,e),6);case 6:r=A.h;Xw(a);q=!r.presentationTimeline.S()&&!r.presentationTimeline.rc();if(!q)throw new P(2,9,9005,b);return D(A,Yw(a,r,function(C){n=n||C},e),7);case 7:h=A.h;Xw(a);if(n)throw n;return D(A,Zw(r,h,e),8);case 8:return D(A,k.init(),9);case 9:return Xw(a),D(A,ew(k),10);case 10:return l=A.h,Xw(a),u=$w(h,
1055
- r,b,c,e,f),v=u.Li,y=u.og,D(A,l.Oa.addManifests([v]),11);case 11:z=A.h;Xw(a);m=z[0];Xw(a);if(n)throw n;return D(A,ax(a,y,m,v,f,e,l.Oa,r,h),12);case 12:return Xw(a),x=new vw("manifest",l.path.kb,l.path.Oa,m),A.return(Mw(x,v));case 3:return xa(A),D(A,k.destroy(),13);case 13:if(!g){A.F(14);break}return D(A,g.stop(),14);case 14:if(!h){A.F(16);break}return D(A,h.destroy(),16);case 16:ya(A,0);break;case 2:B=wa(A);if(null==m){A.F(18);break}return D(A,bx(m),18);case 18:throw n||B;}})}
1056
- function ax(a,b,c,d,e,f,g,h,k){var l,m,n,r,q,u,v,y,z,x;return K(function(B){switch(B.g){case 1:l={};m=0;n=function(A,C){var E,H,G,I,J,M,O;return K(function(S){if(1==S.g){E={};H=t(A);for(G=H.next();!G.done;E={ec:E.ec},G=H.next())E.ec=G.value,I=Jv(E.ec,f),J=E.ec.i,M=E.ec.h,O=function(Z){return function(U){var ia,aa,Wa;return K(function(ib){if(1==ib.g)return D(ib,g.addSegments([{data:U}]),2);ia=ib.h;Xw(a);aa=Z.ec.g;Wa=Iv(aa);l[Wa]=ia[0];m+=U.byteLength;F(ib)})}}(E),Pv(e,E.ec.groupId,I,J,M,O);return D(S,
1057
- Rv(e),2)}if(!C)return S.F(0);Xw(a);cx(h,d,k,f);return D(S,g.updateManifest(c,d),0)})};r=!1;ta(B,2);if(!dx(h)||!r||ex(h)){B.F(4);break}return D(B,n(b.filter(function(A){return A.h}),!0),5);case 5:return Xw(a),b=b.filter(function(A){return!A.h}),q=l,u=m,l={},m=0,D(B,fx(g,c,d,q,u,function(){return Xw(a)}),6);case 6:Xw(a);case 4:if(r){B.F(7);break}return D(B,n(b,!1),8);case 8:return Xw(a),v=l,y=m,l={},m=0,D(B,fx(g,c,d,v,y,function(){return Xw(a)}),9);case 9:Xw(a);case 7:va(B,0);break;case 2:return z=
1058
- wa(B),x=Object.values(l),D(B,g.removeSegments(x,function(){}),10);case 10:throw z;}})}function bx(a){var b,c,d,e;return K(function(f){switch(f.g){case 1:return b=new cw,D(f,b.init(),2);case 2:return D(f,ew(b),3);case 3:return c=f.h,d=new vw("manifest",c.path.kb,c.path.Oa,a),D(f,b.destroy(),4);case 4:return e=new Rw,D(f,e.remove(d.toString()),0)}})}
1059
- function fx(a,b,c,d,e,f){var g,h,k,l,m,n,r,q,u,v,y;return K(function(z){switch(z.g){case 1:g=!1;ta(z,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),r=n.next();!r.done;r=n.next())q=r.value,u=q.pendingSegmentRefId?d[q.pendingSegmentRefId]:null,null!=u&&(q.dataKey=u,q.pendingSegmentRefId=void 0),u=q.pendingInitSegmentRefId?d[q.pendingInitSegmentRefId]:null,null!=u&&(q.initSegmentKey=u,q.pendingInitSegmentRefId=void 0),q.pendingSegmentRefId&&(h=!1),q.pendingInitSegmentRefId&&
1060
- (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return D(z,a.updateManifest(b,c),4);case 4:g=!0;f();va(z,0);break;case 2:return v=wa(z),D(z,bx(b),5);case 5:if(g){z.F(6);break}y=Object.values(d);return D(z,a.removeSegments(y,function(){}),6);case 6:throw v;}})}
1061
- function Zw(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z;return K(function(U){switch(U.g){case 1:return d={width:Infinity,height:Infinity},be(a,c.restrictions,d),D(U,ee(b,a,c.offline.usePersistentLicense),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;$d(a,g,h,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(te(m));n=t(a.textStreams);for(r=n.next();!r.done;r=n.next())q=r.value,e.push(ue(q));u=t(a.imageStreams);
1048
+ p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:return d=c.g,e=new dw,ta(m,2,3),D(m,e.init(),5);case 5:return D(m,hw(e,d.ob(),d.Pa()),6);case 6:return f=m.h,D(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.F(3);break}return D(m,f.updateManifestExpiration(d.key(),b),3);case 3:return xa(m),D(m,e.destroy(),10);case 10:ya(m,0);break;case 2:wa(m),m.F(3)}})};
1049
+ p.onInitialVariantChosen=function(){};p.banLocation=function(){};Hh["application/x-offline-manifest"]=function(){return new Ew};function Fw(){}function Gw(a){var b=xw(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=pf(a)):a=b&&"segment"==b.g?Hw(b.key(),b):nf(new P(2,1,9004,a));return a}
1050
+ function Hw(a,b){var c=new dw;return pf(void 0).Fa(function(){return c.init()}).Fa(function(){return hw(c,b.ob(),b.Pa())}).Fa(function(d){return d.getSegments([b.key()])}).Fa(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}L("shaka.offline.OfflineScheme",Fw);Fw.plugin=Gw;wf("offline",Gw);function Iw(a,b,c){var d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),r=n.next();!r.done;r=n.next()){r=r.value;for(var q=!1,u=t(m),v=u.next();!v.done;v=u.next())if(v=v.value,Jw(v.info,r)){v.sessionIds.push(r.sessionId);q=!0;break}q||m.push({info:r,sessionIds:[r.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.F(4);break}g=f.value;h=Kw(a,b,g);return D(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.F(2);break;case 4:return l.return(d)}})}
1051
+ function Kw(a,b,c){var d,e;return K(function(f){switch(f.g){case 1:return d=new Rg({xc:b,onError:function(){},Ae:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),D(f,Zg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return wa(f),D(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],D(f,Promise.all(c.sessionIds.map(function(g){return K(function(h){if(1==
1052
+ h.g)return ta(h,2),D(h,kh(d,g),4);if(2!=h.g)return e.push(g),va(h,0);wa(h);F(h)})})),6);case 6:return D(f,d.destroy(),7);case 7:return f.return(e)}})}function Jw(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&yc(a.audioCapabilities,b.audioCapabilities,c)&&yc(a.videoCapabilities,b.videoCapabilities,c)};function Lw(a,b,c){var d=b.presentationTimeline.getDuration();b=Mw(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Nw(a,b){var c=zw(new yw(a.ob(),a.Pa()),b),d=b.appMetadata||{};c=Mw(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
1053
+ function Mw(a){var b=[],c=Ce(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(te(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(ue(c.value));return b};function Ow(){this.g={}}function Pw(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Qw(a,b){a.g[b.id]=b.bandwidth||2048}function Rw(a,b){a=a.g[b];null==a&&(a=0);return a};function Sw(a){var b=this;if(a&&a.constructor!=V)throw new P(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Vb()):(this.h=Zl(),this.g=new vf);this.i=[];this.j=[];var c=!a;this.l=new Hf(function(){var d,e,f,g,h;return K(function(k){switch(k.g){case 1:return D(k,Promise.all(b.j.map(function(l){return Ov(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return D(k,Promise.all(e),3);case 3:if(!c){k.F(4);break}return D(k,b.g.destroy(),4);
1054
+ case 4:b.h=null,b.g=null,F(k)}})})}function Tw(){if(Gd())a:{var a=t(ew.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}p=Sw.prototype;p.destroy=function(){return this.l.destroy()};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pl(a,b));return am(this.h,a)};p.getConfiguration=function(){var a=Zl();am(a,this.h,Zl());return a};p.Vb=function(){return this.g};
1055
+ p.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Nv(this.g);this.j.push(f);b=Uw(this,a,b||{},function(){var g;return K(function(h){if(1==h.g)return c?h.F(2):D(h,Uk(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=Gh(a,c||null);return h.return(g())})},e,f);b=new mf(b,function(){return Ov(f)});b.finally(function(){xc(d.j,f)});return Vw(this,b)};
1056
+ function Uw(a,b,c,d,e,f){var g,h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:return Ww(),h=g=null,k=new dw,n=m=l=null,ta(A,2,3),D(A,d(),5);case 5:return g=A.h,D(A,Xw(a,b,g,e),6);case 6:r=A.h;Yw(a);q=!r.presentationTimeline.R()&&!r.presentationTimeline.uc();if(!q)throw new P(2,9,9005,b);return D(A,Zw(a,r,function(C){n=n||C},e),7);case 7:h=A.h;Yw(a);if(n)throw n;return D(A,$w(r,h,e),8);case 8:return D(A,k.init(),9);case 9:return Yw(a),D(A,fw(k),10);case 10:return l=A.h,Yw(a),u=ax(h,
1057
+ r,b,c,e,f),v=u.Pi,y=u.sg,D(A,l.Pa.addManifests([v]),11);case 11:z=A.h;Yw(a);m=z[0];Yw(a);if(n)throw n;return D(A,bx(a,y,m,v,f,e,l.Pa,r,h),12);case 12:return Yw(a),x=new ww("manifest",l.path.ob,l.path.Pa,m),A.return(Nw(x,v));case 3:return xa(A),D(A,k.destroy(),13);case 13:if(!g){A.F(14);break}return D(A,g.stop(),14);case 14:if(!h){A.F(16);break}return D(A,h.destroy(),16);case 16:ya(A,0);break;case 2:B=wa(A);if(null==m){A.F(18);break}return D(A,cx(m),18);case 18:throw n||B;}})}
1058
+ function bx(a,b,c,d,e,f,g,h,k){var l,m,n,r,q,u,v,y,z,x;return K(function(B){switch(B.g){case 1:l={};m=0;n=function(A,C){var E,H,G,I,J,M,O;return K(function(S){if(1==S.g){E={};H=t(A);for(G=H.next();!G.done;E={hc:E.hc},G=H.next())E.hc=G.value,I=Kv(E.hc,f),J=E.hc.i,M=E.hc.h,O=function(Z){return function(U){var fa,aa,Wa;return K(function(ib){if(1==ib.g)return D(ib,g.addSegments([{data:U}]),2);fa=ib.h;Yw(a);aa=Z.hc.g;Wa=Jv(aa);l[Wa]=fa[0];m+=U.byteLength;F(ib)})}}(E),Qv(e,E.hc.groupId,I,J,M,O);return D(S,
1059
+ Sv(e),2)}if(!C)return S.F(0);Yw(a);dx(h,d,k,f);return D(S,g.updateManifest(c,d),0)})};r=!1;ta(B,2);if(!ex(h)||!r||fx(h)){B.F(4);break}return D(B,n(b.filter(function(A){return A.h}),!0),5);case 5:return Yw(a),b=b.filter(function(A){return!A.h}),q=l,u=m,l={},m=0,D(B,gx(g,c,d,q,u,function(){return Yw(a)}),6);case 6:Yw(a);case 4:if(r){B.F(7);break}return D(B,n(b,!1),8);case 8:return Yw(a),v=l,y=m,l={},m=0,D(B,gx(g,c,d,v,y,function(){return Yw(a)}),9);case 9:Yw(a);case 7:va(B,0);break;case 2:return z=
1060
+ wa(B),x=Object.values(l),D(B,g.removeSegments(x,function(){}),10);case 10:throw z;}})}function cx(a){var b,c,d,e;return K(function(f){switch(f.g){case 1:return b=new dw,D(f,b.init(),2);case 2:return D(f,fw(b),3);case 3:return c=f.h,d=new ww("manifest",c.path.ob,c.path.Pa,a),D(f,b.destroy(),4);case 4:return e=new Sw,D(f,e.remove(d.toString()),0)}})}
1061
+ function gx(a,b,c,d,e,f){var g,h,k,l,m,n,r,q,u,v,y;return K(function(z){switch(z.g){case 1:g=!1;ta(z,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),r=n.next();!r.done;r=n.next())q=r.value,u=q.pendingSegmentRefId?d[q.pendingSegmentRefId]:null,null!=u&&(q.dataKey=u,q.pendingSegmentRefId=void 0),u=q.pendingInitSegmentRefId?d[q.pendingInitSegmentRefId]:null,null!=u&&(q.initSegmentKey=u,q.pendingInitSegmentRefId=void 0),q.pendingSegmentRefId&&(h=!1),q.pendingInitSegmentRefId&&
1062
+ (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return D(z,a.updateManifest(b,c),4);case 4:g=!0;f();va(z,0);break;case 2:return v=wa(z),D(z,cx(b),5);case 5:if(g){z.F(6);break}y=Object.values(d);return D(z,a.removeSegments(y,function(){}),6);case 6:throw v;}})}
1063
+ function $w(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A,C,E,H,G,I,J,M,O,S,Z;return K(function(U){switch(U.g){case 1:return d={width:Infinity,height:Infinity},be(a,c.restrictions,d),D(U,ee(b,a,c.offline.usePersistentLicense),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;$d(a,g,h,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(te(m));n=t(a.textStreams);for(r=n.next();!r.done;r=n.next())q=r.value,e.push(ue(q));u=t(a.imageStreams);
1062
1064
  for(v=u.next();!v.done;v=u.next())y=v.value,e.push(ve(y));return D(U,c.offline.trackSelectionCallback(e),3);case 3:z=U.h;x=a.presentationTimeline.getDuration();B=0;A=t(z);for(C=A.next();!C.done;C=A.next())E=C.value,H=E.bandwidth*x/8,B+=H;ta(U,4);return D(U,c.offline.downloadSizeCallback(B),6);case 6:G=U.h;if(!G)throw new P(2,9,9014);va(U,5);break;case 4:I=wa(U);if(I instanceof P)throw I;throw new P(2,9,9015);case 5:J=new Set;M=new Set;O=new Set;S=t(z);for(C=S.next();!C.done;C=S.next())Z=C.value,"variant"==
1063
- Z.type&&J.add(Z.id),"text"==Z.type&&M.add(Z.id),"image"==Z.type&&O.add(Z.id);a.variants=a.variants.filter(function(ia){return J.has(ia.id)});a.textStreams=a.textStreams.filter(function(ia){return M.has(ia.id)});a.imageStreams=a.imageStreams.filter(function(ia){return O.has(ia.id)});gx(a);F(U)}})}
1064
- function $w(a,b,c,d,e,f){var g=Kw(c,b,d),h=e.offline.progressCallback;Ov(f,function(q,u){g.size=u;h(g,q)},function(q,u){k&&e.offline.usePersistentLicense&&l==u&&gh(a,"cenc",q)});var k=dx(b)&&!ex(b),l=null;k&&(l=hx.get(a.g.keySystem));for(var m=new Nw,n=t(b.textStreams),r=n.next();!r.done;r=n.next())m.g[r.value.id]=52;n=t(b.imageStreams);for(r=n.next();!r.done;r=n.next())Pw(m,r.value);r=t(b.variants);for(n=r.next();!n.done;n=r.next())Ow(m,n.value);m=ix(f,m,b,e);f=m.streams;m=m.og;r=a.g;n=e.offline.usePersistentLicense;
1065
- r&&n&&(r.initData=[]);return{Li:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.pd(),streams:f,sessionIds:n?qh(a):[],drmInfo:r,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},og:m}}function dx(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
1066
- function ex(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function cx(a,b,c,d){b.expiration=c.pd();c=qh(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(dx(a)&&d.offline.usePersistentLicense&&!c.length)throw new P(2,9,9007);}p.remove=function(a){return jx(this,kx(this,a))};
1067
- function kx(a,b){var c,d,e,f,g,h;return K(function(k){switch(k.g){case 1:Vw();c=ww(b);if(null==c||"manifest"!=c.g)throw new P(2,9,9004,b);d=c;e=new cw;ua(k,2);return D(k,e.init(),4);case 4:return D(k,gw(e,d.kb(),d.Oa()),5);case 5:return f=k.h,D(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],D(k,Promise.all([lx(a,h,e),mx(f,d,h)]),2);case 2:return xa(k),D(k,e.destroy(),8);case 8:ya(k,0)}})}
1068
- function nx(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:fd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:fd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function lx(a,b,c){return K(function(d){return D(d,ox(a.g,a.h.drm,c,b),0)})}
1069
- function mx(a,b,c){function d(){}var e=px(c);Mw(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.Zi=function(){return jx(this,qx(this))};
1070
- function qx(a){var b,c,d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:return Vw(),b=a.g,c=a.h.drm,d=new cw,e=!1,ua(n,2),D(n,d.init(),4);case 4:f=[],hw(d,function(r){return f.push(r)}),g=t(f),h=g.next();case 5:if(h.done){n.F(2);break}k=h.value;return D(n,k.getAll(),8);case 8:return l=n.h,D(n,Hw(c,b,l),9);case 9:return m=n.h,D(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.F(5);break;case 2:return xa(n),D(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n.return(!e)}})}
1071
- p.list=function(){return jx(this,rx())};function rx(){var a,b,c;return K(function(d){switch(d.g){case 1:return Vw(),a=[],b=new cw,ua(d,2),D(d,b.init(),4);case 4:return c=Promise.resolve(),fw(b,function(e,f){c=c.then(function(){var g;return K(function(h){if(1==h.g)return D(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Mw(new vw("manifest",e.kb,e.Oa,l),k);a.push(k)});F(h)})})}),D(d,c,2);case 2:return xa(d),D(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d.return(a)}})}
1072
- function Ww(a,b,c,d){var e,f,g,h,k;return K(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate}},
1073
- c.configure(d.manifest),Xw(a),D(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Xw(a),k=sx(h),D(l,Promise.all(cb(k,function(m){return m.createSegmentIndex()})),3);Xw(a);if(e)throw e;return l.return(h)})}function Yw(a,b,c,d){var e;return K(function(f){return 1==f.g?(e=new Rg({uc:a.g,onError:c,xe:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),D(f,Wg(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?D(f,ih(e),3):f.return(e)})}
1074
- function ix(a,b,c,d){var e=new Map,f=sx(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=tx(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),og:Array.from(e.values())}}
1075
- function tx(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,
1076
- spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;ux(d,c.presentationTimeline.ub(),function(l){var m=Iv(l),n=void 0;if(!f.has(m)){var r=l.endTime-l.startTime;r=Qw(b,d.id)*r;r=Lv(a.g,r);f.set(m,new Hv(l,r,k,!1))}l.ka&&(n=Iv(l.ka),f.has(n)||(r=.5*Qw(b,d.id),r=Lv(a.g,r),f.set(n,new Hv(l.ka,r,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,
1077
- endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function ux(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Xw(a){if(a.l.g)throw new P(2,9,7001);}function Vw(){if(!Sw())throw new P(2,9,9E3);}
1078
- function jx(a,b){return K(function(c){if(1==c.g)return a.i.push(b),ua(c,2),D(c,b,4);if(2!=c.g)return c.return(c.h);xa(c);xc(a.i,b);return ya(c,0)})}function Uw(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){xc(a.i,c)})}function px(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
1079
- function ox(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=iw(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:nx(d,!1),videoCapabilities:nx(d,!0)}});return D(h,Hw(b,a,f),2)}return 3!=h.g?(g=h.h,D(h,e.remove(g),3)):D(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
1080
- function sx(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
1081
- function gx(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}L("shaka.offline.Storage",Rw);Rw.deleteAll=function(){var a;return K(function(b){return 1==b.g?(a=new cw,ua(b,2),D(b,jw(a),2)):5!=b.g?(xa(b),D(b,a.destroy(),5)):ya(b,0)})};
1082
- Rw.prototype.list=Rw.prototype.list;Rw.prototype.removeEmeSessions=Rw.prototype.Zi;Rw.prototype.remove=Rw.prototype.remove;Rw.prototype.store=Rw.prototype.store;Rw.prototype.getNetworkingEngine=Rw.prototype.Tb;Rw.prototype.getConfiguration=Rw.prototype.getConfiguration;Rw.prototype.configure=Rw.prototype.configure;Rw.prototype.destroy=Rw.prototype.destroy;Rw.support=Sw;
1083
- var hx=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
1084
- Jn.offline=Sw;function vx(){}function wx(){for(var a=t(xx),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Ta("Error installing polyfill!",c)}}}function yx(a,b){a={priority:b||0,callback:a};for(b=0;b<xx.length;b++)if(xx[b].priority<a.priority){xx.splice(b,0,a);return}xx.push(a)}L("shaka.polyfill",vx);vx.register=yx;vx.installAll=wx;var xx=[];function zx(){this.g=new Ax}function Bx(){window.AbortController||(window.AbortController=zx,window.AbortSignal=Ax)}zx.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new N("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};ea.Object.defineProperties(zx.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});vx.AbortController=zx;zx.install=Bx;
1085
- function Ax(){bb.call(this);this.h=!1;this.g=void 0;this.onabort=null}pa(Ax,bb);ea.Object.defineProperties(Ax.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});yx(Bx);function Cx(){}function Dx(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())Ex(b.value)}function Ex(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}vx.Aria=Cx;Cx.install=Dx;yx(Dx);function Fx(){}function Gx(){Hx()}vx.EncryptionScheme=Fx;Fx.install=Gx;yx(Gx,-2);function Ix(){}
1086
- function Jx(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),
1087
- Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Kx);document.addEventListener("webkitfullscreenerror",Kx);document.addEventListener("mozfullscreenchange",Kx);document.addEventListener("mozfullscreenerror",Kx);document.addEventListener("MSFullscreenChange",Kx);document.addEventListener("MSFullscreenError",Kx)}}
1088
- function Kx(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}vx.Fullscreen=Ix;Ix.install=Jx;yx(Jx);function Lx(){}function Mx(){var a=!0;if(Qd()||Ld("PlayStation 5")||Rd()||Ld("Web0S")||Md()||Ld("CrKey")||Ld("PC=EOS")||Ld("Hisense")||Ld("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Nx=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Ox)}
1089
- function Ox(a){var b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return A.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Gd())return A.return(b);if(c){if(Ld("CrKey"))if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var C=c.contentType;c.width&&c.height&&(C+="; width="+c.width+"; height="+c.height);c.framerate&&(C+="; framerate="+c.framerate);"pq"===
1065
+ Z.type&&J.add(Z.id),"text"==Z.type&&M.add(Z.id),"image"==Z.type&&O.add(Z.id);a.variants=a.variants.filter(function(fa){return J.has(fa.id)});a.textStreams=a.textStreams.filter(function(fa){return M.has(fa.id)});a.imageStreams=a.imageStreams.filter(function(fa){return O.has(fa.id)});hx(a);F(U)}})}
1066
+ function ax(a,b,c,d,e,f){var g=Lw(c,b,d),h=e.offline.progressCallback;Pv(f,function(q,u){g.size=u;h(g,q)},function(q,u){k&&e.offline.usePersistentLicense&&l==u&&gh(a,"cenc",q)});var k=ex(b)&&!fx(b),l=null;k&&(l=ix.get(a.g.keySystem));for(var m=new Ow,n=t(b.textStreams),r=n.next();!r.done;r=n.next())m.g[r.value.id]=52;n=t(b.imageStreams);for(r=n.next();!r.done;r=n.next())Qw(m,r.value);r=t(b.variants);for(n=r.next();!n.done;n=r.next())Pw(m,n.value);m=jx(f,m,b,e);f=m.streams;m=m.sg;r=a.g;n=e.offline.usePersistentLicense;
1067
+ r&&n&&(r.initData=[]);return{Pi:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.sd(),streams:f,sessionIds:n?qh(a):[],drmInfo:r,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},sg:m}}function ex(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
1068
+ function fx(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function dx(a,b,c,d){b.expiration=c.sd();c=qh(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(ex(a)&&d.offline.usePersistentLicense&&!c.length)throw new P(2,9,9007);}p.remove=function(a){return kx(this,lx(this,a))};
1069
+ function lx(a,b){var c,d,e,f,g,h;return K(function(k){switch(k.g){case 1:Ww();c=xw(b);if(null==c||"manifest"!=c.g)throw new P(2,9,9004,b);d=c;e=new dw;ua(k,2);return D(k,e.init(),4);case 4:return D(k,hw(e,d.ob(),d.Pa()),5);case 5:return f=k.h,D(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],D(k,Promise.all([mx(a,h,e),nx(f,d,h)]),2);case 2:return xa(k),D(k,e.destroy(),8);case 8:ya(k,0)}})}
1070
+ function ox(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:fd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:fd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function mx(a,b,c){return K(function(d){return D(d,px(a.g,a.h.drm,c,b),0)})}
1071
+ function nx(a,b,c){function d(){}var e=qx(c);Nw(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.cj=function(){return kx(this,rx(this))};
1072
+ function rx(a){var b,c,d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:return Ww(),b=a.g,c=a.h.drm,d=new dw,e=!1,ua(n,2),D(n,d.init(),4);case 4:f=[],iw(d,function(r){return f.push(r)}),g=t(f),h=g.next();case 5:if(h.done){n.F(2);break}k=h.value;return D(n,k.getAll(),8);case 8:return l=n.h,D(n,Iw(c,b,l),9);case 9:return m=n.h,D(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.F(5);break;case 2:return xa(n),D(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n.return(!e)}})}
1073
+ p.list=function(){return kx(this,sx())};function sx(){var a,b,c;return K(function(d){switch(d.g){case 1:return Ww(),a=[],b=new dw,ua(d,2),D(d,b.init(),4);case 4:return c=Promise.resolve(),gw(b,function(e,f){c=c.then(function(){var g;return K(function(h){if(1==h.g)return D(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Nw(new ww("manifest",e.ob,e.Pa,l),k);a.push(k)});F(h)})})}),D(d,c,2);case 2:return xa(d),D(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d.return(a)}})}
1074
+ function Xw(a,b,c,d){var e,f,g,h,k;return K(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate}},
1075
+ c.configure(d.manifest),Yw(a),D(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Yw(a),k=tx(h),D(l,Promise.all(cb(k,function(m){return m.createSegmentIndex()})),3);Yw(a);if(e)throw e;return l.return(h)})}function Zw(a,b,c,d){var e;return K(function(f){return 1==f.g?(e=new Rg({xc:a.g,onError:c,Ae:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),D(f,Wg(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?D(f,ih(e),3):f.return(e)})}
1076
+ function jx(a,b,c,d){var e=new Map,f=tx(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=ux(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),sg:Array.from(e.values())}}
1077
+ function ux(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,
1078
+ spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;vx(d,c.presentationTimeline.xb(),function(l){var m=Jv(l),n=void 0;if(!f.has(m)){var r=l.endTime-l.startTime;r=Rw(b,d.id)*r;r=Mv(a.g,r);f.set(m,new Iv(l,r,k,!1))}l.ka&&(n=Jv(l.ka),f.has(n)||(r=.5*Rw(b,d.id),r=Mv(a.g,r),f.set(n,new Iv(l.ka,r,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,
1079
+ endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function vx(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Yw(a){if(a.l.g)throw new P(2,9,7001);}function Ww(){if(!Tw())throw new P(2,9,9E3);}
1080
+ function kx(a,b){return K(function(c){if(1==c.g)return a.i.push(b),ua(c,2),D(c,b,4);if(2!=c.g)return c.return(c.h);xa(c);xc(a.i,b);return ya(c,0)})}function Vw(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){xc(a.i,c)})}function qx(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
1081
+ function px(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=jw(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:ox(d,!1),videoCapabilities:ox(d,!0)}});return D(h,Iw(b,a,f),2)}return 3!=h.g?(g=h.h,D(h,e.remove(g),3)):D(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
1082
+ function tx(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
1083
+ function hx(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}L("shaka.offline.Storage",Sw);Sw.deleteAll=function(){var a;return K(function(b){return 1==b.g?(a=new dw,ua(b,2),D(b,kw(a),2)):5!=b.g?(xa(b),D(b,a.destroy(),5)):ya(b,0)})};
1084
+ Sw.prototype.list=Sw.prototype.list;Sw.prototype.removeEmeSessions=Sw.prototype.cj;Sw.prototype.remove=Sw.prototype.remove;Sw.prototype.store=Sw.prototype.store;Sw.prototype.getNetworkingEngine=Sw.prototype.Vb;Sw.prototype.getConfiguration=Sw.prototype.getConfiguration;Sw.prototype.configure=Sw.prototype.configure;Sw.prototype.destroy=Sw.prototype.destroy;Sw.support=Tw;
1085
+ var ix=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
1086
+ Jn.offline=Tw;function wx(){}function xx(){for(var a=t(yx),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Ta("Error installing polyfill!",c)}}}function zx(a,b){a={priority:b||0,callback:a};for(b=0;b<yx.length;b++)if(yx[b].priority<a.priority){yx.splice(b,0,a);return}yx.push(a)}L("shaka.polyfill",wx);wx.register=zx;wx.installAll=xx;var yx=[];function Ax(){this.g=new Bx}function Cx(){window.AbortController||(window.AbortController=Ax,window.AbortSignal=Bx)}Ax.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new N("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};ea.Object.defineProperties(Ax.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});wx.AbortController=Ax;Ax.install=Cx;
1087
+ function Bx(){bb.call(this);this.h=!1;this.g=void 0;this.onabort=null}pa(Bx,bb);ea.Object.defineProperties(Bx.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});zx(Cx);function Dx(){}function Ex(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())Fx(b.value)}function Fx(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}wx.Aria=Dx;Dx.install=Ex;zx(Ex);function Gx(){}function Hx(){Ix()}wx.EncryptionScheme=Gx;Gx.install=Hx;zx(Hx,-2);function Jx(){}
1088
+ function Kx(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),
1089
+ Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Lx);document.addEventListener("webkitfullscreenerror",Lx);document.addEventListener("mozfullscreenchange",Lx);document.addEventListener("mozfullscreenerror",Lx);document.addEventListener("MSFullscreenChange",Lx);document.addEventListener("MSFullscreenError",Lx)}}
1090
+ function Lx(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}wx.Fullscreen=Jx;Jx.install=Kx;zx(Kx);function Mx(){}function Nx(){var a=!0;if(Qd()||Ld("PlayStation 5")||Rd()||Ld("Web0S")||Md()||Ld("CrKey")||Ld("PC=EOS")||Ld("Hisense")||Ld("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Ox=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Px)}
1091
+ function Px(a){var b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return A.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Gd())return A.return(b);if(c){if(Ld("CrKey"))if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var C=c.contentType;c.width&&c.height&&(C+="; width="+c.width+"; height="+c.height);c.framerate&&(C+="; framerate="+c.framerate);"pq"===
1090
1092
  c.transferFunction&&(C+="; eotf=smpte2084");e=cast.__platform__.canDisplayType(C)}else e=fc(c.contentType);else Md()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.framerate&&(f+="; framerate="+c.framerate),c.bitrate&&(f+="; bitrate="+c.bitrate),e=fc(f)):e=fc(c.contentType);if(!e)return A.return(b)}if(d&&(g=d.contentType,h=fc(g),!h))return A.return(b)}else if("file"==a.type){if(c&&(k=c.contentType,l=Hd(k),!l)||d&&(m=d.contentType,n=Hd(m),!n))return A.return(b)}else return A.return(b);
1091
1093
  if(!a.keySystemConfiguration)return b.supported=!0,A.return(Promise.resolve(b));r=a.keySystemConfiguration;q=[];u=[];r.audio&&(v={robustness:r.audio.robustness||"",contentType:a.audio.contentType},q.push(v));r.video&&(y={robustness:r.video.robustness||"",contentType:a.video.contentType},u.push(y));z={initDataTypes:[r.initDataType],distinctiveIdentifier:r.distinctiveIdentifier,persistentState:r.persistentState,sessionTypes:r.sessionTypes};q.length&&(z.audioCapabilities=q);u.length&&(z.videoCapabilities=
1092
- u);x=(a.video?a.video.contentType:"")+"#"+(a.audio?a.audio.contentType:"")+"#"+a.keySystemConfiguration.keySystem;ta(A,3);if(x in Px){B=Px[x];A.F(5);break}return D(A,navigator.requestMediaKeySystemAccess(r.keySystem,[z]),6);case 6:B=A.h,Px[x]=B;case 5:va(A,4);break;case 3:wa(A);case 4:B&&(b.supported=!0,b.keySystemAccess=B);case 2:return A.return(b)}})}vx.MediaCapabilities=Lx;Lx.install=Mx;var Nx=null;Lx.originalMcap=Nx;var Px={};Lx.memoizedMediaKeySystemAccessRequests_=Px;yx(Mx,-1);function Qx(){}function Rx(){var a=Sd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Sx():a?10>=a?window.MediaSource=null:12>=a?(Tx(),Ux()):15>=a&&Tx():Jd()?Vx():(Od()||Nd()||Ld("Tizen 4"))&&Wx());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Xx()}
1093
- function Tx(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ga.apply(0,arguments));b.abort=function(){};return b}}function Ux(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Vx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}
1094
- function Wx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=nd(b)&&a(b)}}function Sx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
1095
- function Xx(){var a=MediaSource.isTypeSupported;Ld("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}vx.MediaSource=Qx;Qx.install=Rx;yx(Rx);function Yx(){}function Zx(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?$x():void 0!=window.orientation&&ay())}function $x(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
1096
- function ay(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new by;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new N("change");b.dispatchEvent(c)})}vx.Orientation=Yx;Yx.install=Zx;function by(){bb.call(this);this.type="";this.angle=0}pa(by,bb);
1097
- by.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
1098
- by.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};yx(Zx);function cy(){}var dy,ey,fy,gy,hy,iy;
1099
- function jy(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)dy=!0,ey=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),fy=HTMLMediaElement.prototype.setMediaKeys,gy=window.MediaKeys,hy=window.MediaKeySystemAccess,iy=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=ky;window.MediaKeys=ly;window.MediaKeySystemAccess=my;navigator.requestMediaKeySystemAccess=
1100
- ny;window.shakaMediaKeysPolyfill=!0}}function ny(a,b){try{var c=new my(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function ky(a){var b=this.mediaKeys;b&&b!=a&&oy(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?oy(a,this):Promise.resolve()}
1101
- function py(a){a=nc(a.initData);if(rc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Tf(a.subarray(4),!0);a=Wf(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=oc(a);this.dispatchEvent(b)}vx.PatchedMediaKeysApple=cy;
1102
- cy.uninstall=function(){dy&&(dy=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",ey),HTMLMediaElement.prototype.setMediaKeys=fy,window.MediaKeys=gy,window.MediaKeySystemAccess=hy,navigator.requestMediaKeySystemAccess=iy,ey=iy=fy=hy=gy=null,window.shakaMediaKeysPolyfill=!1)};cy.install=jy;
1103
- function my(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
1094
+ u);x=(a.video?a.video.contentType:"")+"#"+(a.audio?a.audio.contentType:"")+"#"+a.keySystemConfiguration.keySystem;ta(A,3);if(x in Qx){B=Qx[x];A.F(5);break}return D(A,navigator.requestMediaKeySystemAccess(r.keySystem,[z]),6);case 6:B=A.h,Qx[x]=B;case 5:va(A,4);break;case 3:wa(A);case 4:B&&(b.supported=!0,b.keySystemAccess=B);case 2:return A.return(b)}})}wx.MediaCapabilities=Mx;Mx.install=Nx;var Ox=null;Mx.originalMcap=Ox;var Qx={};Mx.memoizedMediaKeySystemAccessRequests_=Qx;zx(Nx,-1);function Rx(){}function Sx(){var a=Sd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Tx():a?10>=a?window.MediaSource=null:12>=a?(Ux(),Vx()):15>=a&&Ux():Jd()?Wx():(Od()||Nd()||Ld("Tizen 4"))&&Xx());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Yx()}
1095
+ function Ux(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ga.apply(0,arguments));b.abort=function(){};return b}}function Vx(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Wx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}
1096
+ function Xx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=nd(b)&&a(b)}}function Tx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
1097
+ function Yx(){var a=MediaSource.isTypeSupported;Ld("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}wx.MediaSource=Rx;Rx.install=Sx;zx(Sx);function Zx(){}function $x(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?ay():void 0!=window.orientation&&by())}function ay(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
1098
+ function by(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new cy;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new N("change");b.dispatchEvent(c)})}wx.Orientation=Zx;Zx.install=$x;function cy(){bb.call(this);this.type="";this.angle=0}pa(cy,bb);
1099
+ cy.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
1100
+ cy.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};zx($x);function dy(){}var ey,fy,gy,hy,iy,jy;function ky(a,b){try{var c=new ly(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function my(a){var b=this.mediaKeys;b&&b!=a&&ny(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?ny(a,this):Promise.resolve()}
1101
+ function oy(a){a=nc(a.initData);if(rc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Tf(a.subarray(4),!0);a=Wf(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=oc(a);this.dispatchEvent(b)}wx.PatchedMediaKeysApple=dy;
1102
+ dy.uninstall=function(){ey&&(ey=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",fy),HTMLMediaElement.prototype.setMediaKeys=gy,window.MediaKeys=hy,window.MediaKeySystemAccess=iy,navigator.requestMediaKeySystemAccess=jy,fy=jy=gy=iy=hy=null,window.shakaMediaKeysPolyfill=!1)};
1103
+ dy.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)ey=!0,fy=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),gy=HTMLMediaElement.prototype.setMediaKeys,hy=window.MediaKeys,iy=window.MediaKeySystemAccess,jy=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=my;window.MediaKeys=py;window.MediaKeySystemAccess=ly;navigator.requestMediaKeySystemAccess=
1104
+ ky;window.shakaMediaKeysPolyfill=!0}};
1105
+ function ly(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
1104
1106
  g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),g=c.next();!g.done;g=c.next())f=g.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
1105
- my.prototype.createMediaKeys=function(){var a=new ly(this.keySystem);return Promise.resolve(a)};my.prototype.getConfiguration=function(){return this.g};function ly(a){this.h=new WebKitMediaKeys(a);this.g=new Jf}ly.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new qy(this.h,a)};ly.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1106
- function oy(a,b){a.g.Lb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",py);try{return yj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}ly.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function qy(a){bb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Jf;this.sessionId="";this.expiration=NaN;this.closed=new lf;this.keyStatuses=new ry}pa(qy,bb);p=qy.prototype;
1107
- p.generateRequest=function(a,b){var c=this;this.h=new lf;try{var d=this.l.createSession("video/mp4",nc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.nc()?"license-request":"license-renewal").set("message",oc(e.message));e=new N("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(sy(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
1107
+ ly.prototype.createMediaKeys=function(){var a=new py(this.keySystem);return Promise.resolve(a)};ly.prototype.getConfiguration=function(){return this.g};function py(a){this.h=new WebKitMediaKeys(a);this.g=new Jf}py.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new qy(this.h,a)};py.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1108
+ function ny(a,b){a.g.bb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",oy);try{return yj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}py.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function qy(a){bb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Jf;this.sessionId="";this.expiration=NaN;this.closed=new lf;this.keyStatuses=new ry}pa(qy,bb);p=qy.prototype;
1109
+ p.generateRequest=function(a,b){var c=this;this.h=new lf;try{var d=this.l.createSession("video/mp4",nc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.qc()?"license-request":"license-renewal").set("message",oc(e.message));e=new N("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(sy(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
1108
1110
  function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:sy(c,"output-not-allowed");break;default:sy(c,"internal-error")}});sy(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
1109
- p.update=function(a){this.g=new lf;try{this.i.update(nc(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Lb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function sy(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new N("keystatuseschange");a.dispatchEvent(b)}
1110
- function ry(){this.size=0;this.g=void 0}p=ry.prototype;p.nc=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,Eh.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=Eh.value();return this.g&&lc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||yx(jy);function ty(){}function uy(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=vy,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=wy,window.MediaKeys=xy,window.MediaKeySystemAccess=yy,window.shakaMediaKeysPolyfill=!0)}function vy(){return Promise.reject(Error("The key system specified is not supported."))}
1111
- function wy(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}vx.PatchedMediaKeysNop=ty;ty.install=uy;function xy(){throw new TypeError("Illegal constructor.");}xy.prototype.createSession=function(){};xy.prototype.setServerCertificate=function(){};xy.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function yy(){this.keySystem="";throw new TypeError("Illegal constructor.");}yy.prototype.getConfiguration=function(){};
1112
- yy.prototype.createMediaKeys=function(){};yx(uy,-10);function zy(){}
1111
+ p.update=function(a){this.g=new lf;try{this.i.update(nc(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.bb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function sy(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new N("keystatuseschange");a.dispatchEvent(b)}
1112
+ function ry(){this.size=0;this.g=void 0}p=ry.prototype;p.qc=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,Eh.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=Eh.value();return this.g&&lc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};function ty(){}function uy(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=vy,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=wy,window.MediaKeys=xy,window.MediaKeySystemAccess=yy,window.shakaMediaKeysPolyfill=!0)}function vy(){return Promise.reject(Error("The key system specified is not supported."))}
1113
+ function wy(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}wx.PatchedMediaKeysNop=ty;ty.install=uy;function xy(){throw new TypeError("Illegal constructor.");}xy.prototype.createSession=function(){};xy.prototype.setServerCertificate=function(){};xy.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function yy(){this.keySystem="";throw new TypeError("Illegal constructor.");}yy.prototype.getConfiguration=function(){};
1114
+ yy.prototype.createMediaKeys=function(){};zx(uy,-10);function zy(){}
1113
1115
  function Ay(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)By="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Cy;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Dy;window.MediaKeys=Ey;window.MediaKeySystemAccess=Fy;window.shakaMediaKeysPolyfill=!0}}
1114
- function Gy(a){var b=By;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function Cy(a,b){try{var c=new Fy(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Dy(a){var b=this.mediaKeys;b&&b!=a&&Hy(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Hy(a,this);return Promise.resolve()}vx.PatchedMediaKeysWebkit=zy;zy.install=Ay;
1116
+ function Gy(a){var b=By;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function Cy(a,b){try{var c=new Fy(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Dy(a){var b=this.mediaKeys;b&&b!=a&&Hy(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Hy(a,this);return Promise.resolve()}wx.PatchedMediaKeysWebkit=zy;zy.install=Ay;
1115
1117
  function Fy(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities),
1116
1118
  l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
1117
1119
  d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}Fy.prototype.createMediaKeys=function(){var a=new Ey(this.g);return Promise.resolve(a)};Fy.prototype.getConfiguration=function(){return this.h};function Ey(a){this.l=a;this.h=null;this.g=new Jf;this.i=[];this.j=new Map}
1118
- function Hy(a,b){a.h=b;a.g.Lb();var c=By;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=oc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=Iy(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.nc()?"licenserequest":"licenserenewal").set("message",d.message),d=new N("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=Iy(a,d.sessionId))Jy(d,"usable"),
1120
+ function Hy(a,b){a.h=b;a.g.bb();var c=By;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=oc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=Iy(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.qc()?"licenserequest":"licenserenewal").set("message",d.message),d=new N("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=Iy(a,d.sessionId))Jy(d,"usable"),
1119
1121
  d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=Iy(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Jy(e,"output-restricted"):1==f?Jy(e,"expired"):Jy(e,"internal-error"))}}))}
1120
1122
  Ey.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new Ky(b,this.l,a);this.i.push(a);return a};Ey.prototype.setServerCertificate=function(){return Promise.resolve(!1)};Ey.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
1121
1123
  function Iy(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function Ky(a,b,c){bb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new lf;this.keyStatuses=new Ly}pa(Ky,bb);
1122
- function My(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=nc(Wf("LOAD_SESSION|"+c));else{var e=Wf("PERSISTENT|");d=sg(e,b)}else d=nc(b)}catch(g){return Promise.reject(g)}a.h=new lf;var f=Gy("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Fd(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).R(.01)}return a.h}
1124
+ function My(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=nc(Wf("LOAD_SESSION|"+c));else{var e=Wf("PERSISTENT|");d=sg(e,b)}else d=nc(b)}catch(g){return Promise.reject(g)}a.h=new lf;var f=Gy("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Fd(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).S(.01)}return a.h}
1123
1125
  function Ny(a,b,c){if(a.g)a.g.then(function(){return Ny(a,b,c)}).catch(function(){return Ny(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Sf(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=pg(e.keys[0].k);e=pg(e.keys[0].kid)}else d=nc(c),e=null;var f=Gy("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
1124
1126
  function Jy(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new N("keystatuseschange");a.dispatchEvent(b)}p=Ky.prototype;p.generateRequest=function(a,b){return My(this,b,null)};p.load=function(a){return"persistent-license"==this.l?My(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new lf;Ny(this,b,a);return b};
1125
- p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Gy("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Ly(){this.size=0;this.g=void 0}p=Ly.prototype;p.nc=function(){return this.g};
1126
- p.forEach=function(a){this.g&&a(this.g,Eh.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=Eh.value();return this.g&&lc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var By="";yx(Ay);function Oy(){}function Py(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Qy,Object.defineProperty(a,"disablePictureInPicture",{get:Ry,set:Sy,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Ty,document.addEventListener("webkitpresentationmodechanged",Uy,!0))}}
1127
+ p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Gy("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Ly(){this.size=0;this.g=void 0}p=Ly.prototype;p.qc=function(){return this.g};
1128
+ p.forEach=function(a){this.g&&a(this.g,Eh.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=Eh.value();return this.g&&lc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var By="";zx(Ay);function Oy(){}function Py(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Qy,Object.defineProperty(a,"disablePictureInPicture",{get:Ry,set:Sy,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Ty,document.addEventListener("webkitpresentationmodechanged",Uy,!0))}}
1127
1129
  function Uy(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
1128
1130
  function Qy(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function Ty(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
1129
- function Ry(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Sy(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}vx.PiPWebkit=Oy;Oy.install=Py;yx(Py);function Vy(){}function Wy(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Xy))}function Xy(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}vx.RandomUUID=Vy;Vy.install=Wy;yx(Wy);function Yy(){}function Zy(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=$y)}function $y(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}vx.StorageEstimate=Yy;Yy.install=Zy;yx(Zy);function az(){}function bz(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:cz})}function cz(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}vx.Symbol=az;az.install=bz;yx(bz);function dz(){}function ez(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}vx.VideoPlayPromise=dz;dz.install=ez;yx(ez);function fz(){}function gz(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Pd())&&(a.getVideoPlaybackQuality=hz)}}function hz(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}vx.VideoPlaybackQuality=fz;fz.install=gz;yx(gz);function iz(){}function jz(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=kz;else if(6==b)a=lz;else{try{var c=!!kz(1,2,"")}catch(d){c=!1}c&&(a=kz)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function kz(a,b,c){return new window.TextTrackCue(a,b,c)}function lz(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}vx.VTTCue=iz;iz.install=jz;yx(jz);function mz(){}mz.prototype.parseInit=function(){};mz.prototype.setSequenceMode=function(){};mz.prototype.setManifestType=function(){};mz.prototype.parseMedia=function(a,b){var c=null,d=[];a=Sf(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=nz.exec(e))){var f=oz.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Ac(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1131
+ function Ry(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Sy(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}wx.PiPWebkit=Oy;Oy.install=Py;zx(Py);function Vy(){}function Wy(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Xy))}function Xy(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}wx.RandomUUID=Vy;Vy.install=Wy;zx(Wy);function Yy(){}function Zy(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=$y)}function $y(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}wx.StorageEstimate=Yy;Yy.install=Zy;zx(Zy);function az(){}function bz(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:cz})}function cz(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}wx.Symbol=az;az.install=bz;zx(bz);function dz(){}function ez(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}wx.VideoPlayPromise=dz;dz.install=ez;zx(ez);function fz(){}function gz(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Pd())&&(a.getVideoPlaybackQuality=hz)}}function hz(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}wx.VideoPlaybackQuality=fz;fz.install=gz;zx(gz);function iz(){}function jz(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=kz;else if(6==b)a=lz;else{try{var c=!!kz(1,2,"")}catch(d){c=!1}c&&(a=kz)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function kz(a,b,c){return new window.TextTrackCue(a,b,c)}function lz(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}wx.VTTCue=iz;iz.install=jz;zx(jz);function mz(){}mz.prototype.parseInit=function(){};mz.prototype.setSequenceMode=function(){};mz.prototype.setManifestType=function(){};mz.prototype.parseMedia=function(a,b){var c=null,d=[];a=Sf(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=nz.exec(e))){var f=oz.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Ac(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1130
1132
  L("shaka.text.LrcTextParser",mz);mz.prototype.parseMedia=mz.prototype.parseMedia;mz.prototype.setManifestType=mz.prototype.setManifestType;mz.prototype.setSequenceMode=mz.prototype.setSequenceMode;mz.prototype.parseInit=mz.prototype.parseInit;var nz=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,oz=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;sd["application/x-subtitle-lrc"]=function(){return new mz};function pz(){}pz.prototype.parseInit=function(){};pz.prototype.setSequenceMode=function(){};pz.prototype.setManifestType=function(){};
1131
1133
  pz.prototype.parseMedia=function(a,b,c){var d=Sf(a);a=[];if(""==d)return a;var e=Og(d,"tt");if(!e)throw new P(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=Bg(e,qz,"frameRate"),g=Bg(e,qz,"subFrameRate"),h=Bg(e,qz,"frameRateMultiplier"),k=Bg(e,qz,"tickRate"),l=Bg(e,qz,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=Bg(e,rz,"extent");if("default"!=m&&"preserve"!=m)throw new P(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new sz(f,
1132
- g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{hc:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?zg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var r=t(e),q=r.next();!q.done;q=r.next()){var u=q.value;q=new Bc;var v=u.getAttribute("xml:id");if(v){q.id=v;var y=null;n&&(y=tz.exec(n)||uz.exec(n));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var z,x;if(z=vz(u,h,"extent"))z=(x=tz.exec(z))||uz.exec(z),
1133
- null!=z&&(q.width=Number(z[1]),q.height=Number(z[2]),x||(null!=v&&(q.width=100*q.width/v),null!=y&&(q.height=100*q.height/y)),q.widthUnits=x||null!=v?Vc:0,q.heightUnits=x||null!=y?Vc:0);if(u=vz(u,h,"origin"))z=(x=tz.exec(u))||uz.exec(u),null!=z&&(q.viewportAnchorX=Number(z[1]),q.viewportAnchorY=Number(z[2]),x||(null!=y&&(q.viewportAnchorY=100*q.viewportAnchorY/y),null!=v&&(q.viewportAnchorX=100*q.viewportAnchorX/v)),q.viewportAnchorUnits=x||null!=v?Vc:0)}else q=null;q&&k.push(q)}if(wg(d,"p").length)throw new P(2,
1134
- 2,2001,"<p> can only be inside <div> in TTML");n=t(wg(d,"div"));for(r=n.next();!r.done;r=n.next())if(wg(r.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");if(b=wz(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
1134
+ g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{jc:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?zg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var r=t(e),q=r.next();!q.done;q=r.next()){var u=q.value;q=new Bc;var v=u.getAttribute("xml:id");if(v){q.id=v;var y=null;n&&(y=tz.exec(n)||uz.exec(n));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var z,x=vz(u,h,"extent");if(x){var B=(z=tz.exec(x))||uz.exec(x);
1135
+ null!=B&&(q.width=Number(B[1]),q.height=Number(B[2]),z||(null!=v&&(q.width=100*q.width/v),null!=y&&(q.height=100*q.height/y)),q.widthUnits=z||null!=v?Vc:0,q.heightUnits=z||null!=y?Vc:0)}if(u=vz(u,h,"origin"))if(B=(z=tz.exec(u))||uz.exec(u),null!=B)q.viewportAnchorX=Number(B[1]),q.viewportAnchorY=Number(B[2]),z?x||(q.width=100-q.viewportAnchorX,q.widthUnits=Vc,q.height=100-q.viewportAnchorY,q.heightUnits=Vc):(null!=y&&(q.viewportAnchorY=100*q.viewportAnchorY/y),null!=v&&(q.viewportAnchorX=100*q.viewportAnchorX/
1136
+ v)),q.viewportAnchorUnits=z||null!=v?Vc:0}else q=null;q&&k.push(q)}if(wg(d,"p").length)throw new P(2,2,2001,"<p> can only be inside <div> in TTML");n=t(wg(d,"div"));for(r=n.next();!r.done;r=n.next())if(wg(r.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");if(b=wz(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
1135
1137
  function wz(a,b,c,d,e,f,g,h,k,l,m,n){var r=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var q=document.createElement("span");q.textContent=a.textContent}else q=a;for(var u=null,v=t(xz),y=v.next();!y.done&&!(u=yz(q,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=null;var z=Bg(q,xz,"backgroundImage");n&&z&&!z.startsWith("#")&&(y=new hb(n),z=new hb(z),(y=y.resolve(z).toString())&&(v=y));if("p"==a.nodeName||u||v)m=!0;a=m;y="default"==(q.getAttribute("xml:space")||
1136
1138
  (h?"default":"preserve"));z=Array.from(q.childNodes).every(function(C){return C.nodeType==Node.TEXT_NODE});h=[];if(!z)for(var x=t(q.childNodes),B=x.next();!B.done;B=x.next())(B=wz(B.value,b,c,d,e,f,g,y,k,q,m,n))&&h.push(B);d=null!=l;n=/\S/.test(q.textContent);B=q.hasAttribute("begin")||q.hasAttribute("end")||q.hasAttribute("dur");if(!(B||n||"br"==q.tagName||0!=h.length||d&&!y))return null;x=zz(q,c);n=x.start;for(x=x.end;r&&r.nodeType==Node.ELEMENT_NODE&&"tt"!=r.tagName;)x=Az(r,c,n,x),n=x.start,x=
1137
1139
  x.end,r=r.parentNode;null==n&&(n=0);n+=b.periodStart;x=null==x?Infinity:x+b.periodStart;n=Math.max(n,b.segmentStart);x=Math.min(x,b.segmentEnd);if(!B&&0<h.length)for(n=Infinity,x=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),x=Math.max(x,c.endTime);if("br"==q.tagName)return e=new Ac(n,x,""),e.lineBreak=!0,e;b="";z&&(b=q.textContent,y&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new Ac(n,x,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=yz(q,"region",f,"")[0];
1138
1140
  if(q.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var A=k.getAttribute("xml:id");b.region=g.filter(function(C){return C.id==A})[0]}g=k;l&&d&&!q.getAttribute("region")&&!q.getAttribute("style")&&(g=yz(l,"region",f,"")[0]);Bz(b,q,g,u,v,e,a,0==h.length);return b}
1139
- function Bz(a,b,c,d,e,f,g,h){g=g||h;"rtl"==Cz(b,c,f,"direction",g)&&(a.direction="rtl");h=Cz(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Fc);(h=Cz(b,c,f,"textAlign",!0))?(a.positionAlign=Dz[h],a.lineAlign=Ez[h],a.textAlign=Pc[h.toUpperCase()]):a.textAlign=Dc;if(h=Cz(b,c,f,"displayAlign",!0))a.displayAlign=Qc[h.toUpperCase()];if(h=Cz(b,c,f,"color",g))a.color=h;if(h=Cz(b,c,f,"backgroundColor",
1141
+ function Bz(a,b,c,d,e,f,g,h){g=g||h;"rtl"==Cz(b,c,f,"direction",g)&&(a.direction="rtl");h=Cz(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Fc);(h=Cz(b,c,f,"textAlign",!0))?(a.positionAlign=Dz[h],a.lineAlign=Ez[h],a.textAlign=Pc[h.toUpperCase()]):a.textAlign=Ec;if(h=Cz(b,c,f,"displayAlign",!0))a.displayAlign=Qc[h.toUpperCase()];if(h=Cz(b,c,f,"color",g))a.color=h;if(h=Cz(b,c,f,"backgroundColor",
1140
1142
  g))a.backgroundColor=h;if(h=Cz(b,c,f,"border",g))a.border=h;if(h=Cz(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h}(h=Cz(b,c,f,"fontWeight",g))&&
1141
1143
  "bold"==h&&(a.fontWeight=700);h=Cz(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=Cz(b,c,f,"lineHeight",g))&&h.match(Fz)&&(a.lineHeight=h);(h=Cz(b,c,f,"fontSize",g))&&(h.match(Fz)||h.match(Gz))&&(a.fontSize=h);if(h=Cz(b,c,f,"fontStyle",g))a.fontStyle=Uc[h.toUpperCase()];d?(e=d.getAttribute("imageType")||d.getAttribute("imagetype"),h=d.getAttribute("encoding"),d=d.textContent.trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=Cz(b,
1142
1144
  c,f,"textOutline",g))d=d.split(" "),d[0].match(Fz)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(Fz)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=Cz(b,c,f,"letterSpacing",g))&&d.match(Fz)&&(a.letterSpacing=d);(d=Cz(b,c,f,"linePadding",g))&&d.match(Fz)&&(a.linePadding=d);if(d=Cz(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=vz(c,f,"textDecoration"))&&Hz(a,d);(d=Iz(b,f,"textDecoration"))&&Hz(a,d);if(d=Cz(b,c,f,"textCombine",g))a.textCombineUpright=d;switch(Cz(b,c,f,
@@ -1160,59 +1162,59 @@ t(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/
1160
1162
  case "font-size":m=!0;l.fontSize=q;break;case "font-weight":if(700<=parseInt(q,10)||"bold"==q)m=!0,l.fontWeight=700;break;case "font-style":switch(q){case "normal":m=!0;l.fontStyle=Mc;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(q);break;case "text-combine-upright":m=!0;l.textCombineUpright=q;break;case "text-shadow":m=!0;l.textShadow=q;break;case "white-space":m=!0,l.wrapLine="noWrap"!=q}}}m&&e.set(g,
1161
1163
  l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else if(h=null,f[0].includes("--\x3e")||(h=f[0],f.splice(0,1)),g=new jt(f[0]),k=Uz(g),n=lt(g,/[ \t]+--\x3e[ \t]+/g),l=Uz(g),null==k||null==n||null==l)Ta("Failed to parse VTT time code. Cue skipped:",h,f),f=null;else{k+=m;l+=m;f=f.slice(1).join("\n").trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new Ac(k,l,"");kt(g);for(k=mt(g);k;)Wz(m,k,b),kt(g),k=mt(g);Xz(f,
1162
1164
  m,e);null!=h&&(m.id=h);f=m}f&&d.push(f)}return d};function Vz(a){for(var b=t(Object.entries(Sc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new Ac(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(Tc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new Ac(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
1163
- function Xz(a,b,c){0===c.size&&Vz(c);a:{for(var d=[],e=-1,f="",g=0;g<a.length;g++)if("/"===a[g]&&0<g&&"<"===a[g-1]){var h=a.indexOf(">",g);if(h<=g)break a;if((h=a.substring(g+1,h))&&"c"===h){var k=d.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=a[g]:f+=a[g]}else f+=a[g]}else"<"===a[g]?(e=g+1,"c"!=a[e]&&(e=-1)):">"===a[g]&&0<e&&(d.push(a.substr(e,g-e)),e=-1),f+=a[g];a=f}d=a;a=[];f=-1;for(e=0;e<d.length;e++)"<"===d[e]?f=e+1:">"===d[e]&&0<f&&(f=d.substr(f,
1164
- e-f),f.match(Yz)&&a.push(f),f=-1);a=t(a);for(e=a.next();!e.done;e=a.next())e=e.value,d=d.replace("<"+e+">",'<div time="'+e+'">'),d+="</div>";a=d;a:{e=a;f=[];g=-1;a="";d=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){d=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)a+="/"+k+">";else{if(!l.startsWith("v")){a+=e[h];continue}a+="/"+l+">"}h+=k.length+1}else a+=e[h]}else a+=e[h]}else"<"===e[h]?(g=h+1,"v"!=e[g]&&(g=-1)):">"===
1165
- e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),a+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),a=a.replace("<"+f+">","<"+g+">"),a=a.replace("</"+f+">","</"+g+">"),d||(a+="</"+g+">")}if(d=Og("<span>"+a+"</span>","span")){d=d.childNodes;if(1==d.length&&(e=d[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=Zz(a);return}a=t(d);for(d=a.next();!d.done;d=a.next())$z(d.value,b,c)}else b.payload=Zz(a)}
1165
+ function Xz(a,b,c){if(a.includes("<")){0===c.size&&Vz(c);a:{for(var d=[],e=-1,f="",g=0;g<a.length;g++)if("/"===a[g]&&0<g&&"<"===a[g-1]){var h=a.indexOf(">",g);if(h<=g)break a;if((h=a.substring(g+1,h))&&"c"===h){var k=d.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=a[g]:f+=a[g]}else f+=a[g]}else"<"===a[g]?(e=g+1,"c"!=a[e]&&(e=-1)):">"===a[g]&&0<e&&(d.push(a.substr(e,g-e)),e=-1),f+=a[g];a=f}d=a;a=[];f=-1;for(e=0;e<d.length;e++)"<"===d[e]?f=e+1:">"===d[e]&&
1166
+ 0<f&&(f=d.substr(f,e-f),f.match(Yz)&&a.push(f),f=-1);a=t(a);for(e=a.next();!e.done;e=a.next())e=e.value,d=d.replace("<"+e+">",'<div time="'+e+'">'),d+="</div>";a=d;a:{e=a;f=[];g=-1;a="";d=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){d=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)a+="/"+k+">";else{if(!l.startsWith("v")){a+=e[h];continue}a+="/"+l+">"}h+=k.length+1}else a+=e[h]}else a+=e[h]}else"<"===e[h]?(g=h+1,"v"!=
1167
+ e[g]&&(g=-1)):">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),a+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),a=a.replace("<"+f+">","<"+g+">"),a=a.replace("</"+f+">","</"+g+">"),d||(a+="</"+g+">")}if(d=Og("<span>"+a+"</span>","span")){d=d.childNodes;if(1==d.length&&(e=d[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=Zz(a);return}a=t(d);for(d=a.next();!d.done;d=a.next())$z(d.value,b,c)}else b.payload=Zz(a)}else b.payload=Zz(a)}
1166
1168
  function aA(a,b){return a&&0<a.length?a:b}
1167
1169
  function $z(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Bc;d.position=null;d.size=0;if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var e=t(a.nodeName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(g=c.get(g))&&(d.backgroundColor=aA(g.backgroundColor,d.backgroundColor),d.color=aA(g.color,d.color),d.fontFamily=aA(g.fontFamily,
1168
1170
  d.fontFamily),d.fontSize=aA(g.fontSize,d.fontSize),d.fontWeight=g.fontWeight,d.fontStyle=g.fontStyle,d.opacity=g.opacity,d.rubyTag=g.rubyTag,d.textCombineUpright=g.textCombineUpright,d.textShadow=g.textShadow,d.wrapLine=g.wrapLine);switch(f){case "br":d=Nc(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=700;break;case "i":d.fontStyle="italic";break;case "u":d.textDecoration.push("underline");break;case "font":if(f=a.getAttribute("color"))d.color=f;break;case "div":f=a.getAttribute("time");
1169
1171
  if(!f)break;if(f=Uz(new jt(f)))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.childNodes;if(Dg(a)||1==e.length&&Dg(e[0]))for(e=!0,c=t(a.textContent.split("\n")),a=c.next();!a.done;a=c.next())a=a.value,e||(e=Nc(d.startTime,d.endTime),b.nestedCues.push(e)),0<a.length&&(e=d.clone(),e.payload=Zz(a),b.nestedCues.push(e)),e=!1;else for(b.nestedCues.push(d),b=t(e),a=b.next();!a.done;a=b.next())$z(a.value,d,c)}
1170
- function Wz(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Dc:a.textAlign=Pc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
1172
+ function Wz(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Ec:a.textAlign=Pc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
1171
1173
  b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Cc);else if(d=/^region:(.*)$/.exec(b)){if(b=bA(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=Rc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Hc,a.line=Number(c[1]),c[2]&&(a.lineAlign=Rc[c[2].toUpperCase()])}
1172
1174
  function bA(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}function Uz(a){a=lt(a,Yz);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}
1173
1175
  function Zz(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}L("shaka.text.VttTextParser",Tz);Tz.prototype.parseMedia=Tz.prototype.parseMedia;Tz.prototype.setManifestType=Tz.prototype.setManifestType;Tz.prototype.setSequenceMode=Tz.prototype.setSequenceMode;Tz.prototype.parseInit=Tz.prototype.parseInit;
1174
1176
  var Yz=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;sd["text/vtt"]=function(){return new Tz};sd['text/vtt; codecs="vtt"']=function(){return new Tz};sd['text/vtt; codecs="wvtt"']=function(){return new Tz};function cA(){this.g=null}cA.prototype.parseInit=function(a){var b=this,c=!1;(new ag).box("moov",fg).box("trak",fg).box("mdia",fg).W("mdhd",function(d){d=ei(d.reader,d.version);b.g=d.timescale}).box("minf",fg).box("stbl",fg).W("stsd",hg).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new P(2,2,2008);if(!c)throw new P(2,2,2008);};cA.prototype.setSequenceMode=function(){};cA.prototype.setManifestType=function(){};
1175
- cA.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new ag).box("moof",fg).box("traf",fg).W("tfdt",function(B){g=!0;c=di(B.reader,B.version).baseMediaDecodeTime}).W("tfhd",function(B){l=ci(B.reader,B.flags).Hg}).W("trun",function(B){h=!0;d=fi(B.reader,B.version,B.flags).eh}).box("mdat",jg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);a=c;for(var m=new Yf(e,0),n=t(d),r=n.next();!r.done;r=n.next()){r=
1176
- r.value;var q=r.ag||l,u=r.Ae?c+r.Ae:a;a=u+(q||0);var v=0;do{var y=m.O();v+=y;var z=m.O(),x=null;"vttc"==eg(z)?8<y&&(x=m.Kb(y-8)):m.skip(y-8);q&&x&&(y=dA(x,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(y))}while(r.sampleSize&&v<r.sampleSize)}return f.filter(Bd)};function dA(a,b,c){var d,e,f;(new ag).box("payl",jg(function(g){d=Sf(g)})).box("iden",jg(function(g){e=Sf(g)})).box("sttg",jg(function(g){f=Sf(g)})).parse(a);return d?eA(d,e,f,b,c):null}
1177
+ cA.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new ag).box("moof",fg).box("traf",fg).W("tfdt",function(B){g=!0;c=di(B.reader,B.version).baseMediaDecodeTime}).W("tfhd",function(B){l=ci(B.reader,B.flags).Mg}).W("trun",function(B){h=!0;d=fi(B.reader,B.version,B.flags).jh}).box("mdat",jg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);a=c;for(var m=new Yf(e,0),n=t(d),r=n.next();!r.done;r=n.next()){r=
1178
+ r.value;var q=r.eg||l,u=r.Ee?c+r.Ee:a;a=u+(q||0);var v=0;do{var y=m.O();v+=y;var z=m.O(),x=null;"vttc"==eg(z)?8<y&&(x=m.Nb(y-8)):m.skip(y-8);q&&x&&(y=dA(x,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(y))}while(r.sampleSize&&v<r.sampleSize)}return f.filter(Bd)};function dA(a,b,c){var d,e,f;(new ag).box("payl",jg(function(g){d=Sf(g)})).box("iden",jg(function(g){e=Sf(g)})).box("sttg",jg(function(g){f=Sf(g)})).parse(a);return d?eA(d,e,f,b,c):null}
1177
1179
  function eA(a,b,c,d,e){d=new Ac(d,e,"");Xz(a,d,new Map);b&&(d.id=b);if(c)for(a=new jt(c),b=mt(a);b;)Wz(d,b,[]),kt(a),b=mt(a);return d}L("shaka.text.Mp4VttParser",cA);cA.prototype.parseMedia=cA.prototype.parseMedia;cA.prototype.setManifestType=cA.prototype.setManifestType;cA.prototype.setSequenceMode=cA.prototype.setSequenceMode;cA.prototype.parseInit=cA.prototype.parseInit;sd['application/mp4; codecs="wvtt"']=function(){return new cA};function fA(){}fA.prototype.parseInit=function(){};fA.prototype.setSequenceMode=function(){};fA.prototype.setManifestType=function(){};fA.prototype.parseMedia=function(a){var b=Sf(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new jt(c[0]),e=gA(d),f=lt(d,/,/g);d=gA(d);if(null==e||null==f||null==d)throw new P(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Ac(e,d,c.slice(1).join("\n").trim()))}return a};
1178
1180
  function gA(a){a=lt(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}L("shaka.text.SbvTextParser",fA);fA.prototype.parseMedia=fA.prototype.parseMedia;fA.prototype.setManifestType=fA.prototype.setManifestType;fA.prototype.setSequenceMode=fA.prototype.setSequenceMode;fA.prototype.parseInit=fA.prototype.parseInit;sd["text/x-subviewer"]=function(){return new fA};function hA(){this.g=new Tz}hA.prototype.parseInit=function(){};hA.prototype.setSequenceMode=function(){};hA.prototype.setManifestType=function(){};hA.prototype.parseMedia=function(a,b,c){a=Sf(a);a=iA(a);a=nc(Wf(a));return this.g.parseMedia(a,b,c)};
1179
1181
  function iA(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}L("shaka.text.SrtTextParser",hA);hA.srt2webvtt=iA;hA.prototype.parseMedia=hA.prototype.parseMedia;
1180
1182
  hA.prototype.setManifestType=hA.prototype.setManifestType;hA.prototype.setSequenceMode=hA.prototype.setSequenceMode;hA.prototype.parseInit=hA.prototype.parseInit;sd["text/srt"]=function(){return new hA};function jA(){}jA.prototype.parseInit=function(){};jA.prototype.setSequenceMode=function(){};jA.prototype.setManifestType=function(){};
1181
1183
  jA.prototype.parseMedia=function(a){var b="",c="";a=Sf(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=kA.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=lA.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(mA);else if("Style"==e){e=f.split(mA);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
1182
- [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Pe:e.Pe},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=lA.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(mA);else if("Dialogue"==f){g=g.split(mA);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=nA(f.Start);var k=nA(f.End);g=new Ac(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Pe=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Pe}}(e)))&&oA(g,f);d.push(g)}return d};
1183
- function oA(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=pA(c))a.color=c;if(c=b.BackColour)if(c=pA(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Jc;a.textAlign="start";break;case 2:a.displayAlign=Jc;a.textAlign=Dc;break;case 3:a.displayAlign=Jc;a.textAlign="end";
1184
- break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Dc;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Dc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
1184
+ [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Ue:e.Ue},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=lA.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(mA);else if("Dialogue"==f){g=g.split(mA);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=nA(f.Start);var k=nA(f.End);g=new Ac(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Ue=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Ue}}(e)))&&oA(g,f);d.push(g)}return d};
1185
+ function oA(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=pA(c))a.color=c;if(c=b.BackColour)if(c=pA(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Jc;a.textAlign="start";break;case 2:a.displayAlign=Jc;a.textAlign=Ec;break;case 3:a.displayAlign=Jc;a.textAlign="end";
1186
+ break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Ec;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Ec;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
1185
1187
  function pA(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}function nA(a){a=qA.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}L("shaka.text.SsaTextParser",jA);jA.prototype.parseMedia=jA.prototype.parseMedia;jA.prototype.setManifestType=jA.prototype.setManifestType;jA.prototype.setSequenceMode=jA.prototype.setSequenceMode;jA.prototype.parseInit=jA.prototype.parseInit;
1186
- var kA=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,lA=/^\s*([^:]+):\s*(.*)/,mA=/\s*,\s*/,qA=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;sd["text/x-ssa"]=function(){return new jA};function rA(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{ge:c,X:a}:null}function sA(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,ua:"mp4a.40."+e}}
1188
+ var kA=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,lA=/^\s*([^:]+):\s*(.*)/,mA=/\s*,\s*/,qA=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;sd["text/x-ssa"]=function(){return new jA};function rA(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{ke:c,X:a}:null}function sA(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,wa:"mp4a.40."+e}}
1187
1189
  function tA(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
1188
1190
  function uA(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
1189
1191
  2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function vA(a){this.i=a;this.h=0;this.g=new Map}p=vA.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(pd(b)||"mp4a.40.2")+'"':b};p.getOriginalMimeType=function(){return this.i};
1190
- p.transmux=function(a,b,c,d){for(var e=nc(a),f=bi(e),g=f.length;g<e.length&&!tA(e,g);g++);a=1E3*c.endTime;f=ai(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=sA(e,g);if(!c)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=rA(e,g);if(!h)return Promise.reject(new P(2,3,3018));var k=h.ge+h.X;g+k<=e.length&&f.push({data:e.subarray(g+h.ge,g+k),size:h.X,
1191
- duration:1024,gb:0,flags:{ib:0,Za:0,Ya:0,Wa:0,Xa:2,jb:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.ua,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,eb:[],oa:new Uint8Array([]),Aa:new Uint8Array([]),data:{wb:this.h,baseMediaDecodeTime:a,ab:f},stream:b};a=new Lu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Ru(a),this.g.set(b.id,d));b=gv(a);this.h++;b=sg(d,b);return Promise.resolve(b)};L("shaka.transmuxer.AacTransmuxer",vA);
1192
+ p.transmux=function(a,b,c,d){for(var e=nc(a),f=bi(e),g=f.length;g<e.length&&!tA(e,g);g++);a=1E3*c.endTime;f=ai(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=sA(e,g);if(!c)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=rA(e,g);if(!h)return Promise.reject(new P(2,3,3018));var k=h.ke+h.X;g+k<=e.length&&f.push({data:e.subarray(g+h.ke,g+k),size:h.X,
1193
+ duration:1024,ib:0,flags:{kb:0,$a:0,Za:0,Xa:0,Ya:2,mb:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.wa,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,gb:[],qa:new Uint8Array([]),Ca:new Uint8Array([]),data:{zb:this.h,baseMediaDecodeTime:a,cb:f},stream:b};a=new Mu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Su(a),this.g.set(b.id,d));b=hv(a);this.h++;b=sg(d,b);return Promise.resolve(b)};L("shaka.transmuxer.AacTransmuxer",vA);
1192
1194
  vA.prototype.transmux=vA.prototype.transmux;vA.prototype.getOriginalMimeType=vA.prototype.getOriginalMimeType;vA.prototype.convertCodecs=vA.prototype.convertCodecs;vA.prototype.isSupported=vA.prototype.isSupported;vA.prototype.destroy=vA.prototype.destroy;Yc("audio/aac",function(){return new vA("audio/aac")},dd);function wA(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,
1193
- 1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,oa:a,X:e}}
1195
+ 1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,qa:a,X:e}}
1194
1196
  function xA(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function yA(a){this.i=a;this.h=0;this.g=new Map}p=yA.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};p.getOriginalMimeType=function(){return this.i};
1195
- p.transmux=function(a,b,c,d){a=nc(a);for(var e=bi(a),f=e.length;f<a.length&&!xA(a,f);f++);var g=1E3*c.endTime;e=ai(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=wA(a,f);if(!k)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.oa;h.push({data:a.subarray(f,f+k.X),size:k.X,duration:1536,gb:0,flags:{ib:0,
1196
- Za:0,Ya:0,Wa:0,Xa:2,jb:0}});f+=k.X}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,eb:[],oa:e,Aa:new Uint8Array([]),data:{wb:this.h,baseMediaDecodeTime:a,ab:h},stream:b};a=new Lu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Ru(a),this.g.set(b.id,d));b=gv(a);this.h++;b=sg(d,b);return Promise.resolve(b)};L("shaka.transmuxer.Ac3Transmuxer",yA);yA.prototype.transmux=yA.prototype.transmux;yA.prototype.getOriginalMimeType=yA.prototype.getOriginalMimeType;
1197
- yA.prototype.convertCodecs=yA.prototype.convertCodecs;yA.prototype.isSupported=yA.prototype.isSupported;yA.prototype.destroy=yA.prototype.destroy;Yc("audio/ac3",function(){return new yA("audio/ac3")},dd);function zA(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new li(a.subarray(b+2));ni(c,2);ni(c,3);var d=oi(c,11)+1<<1,e=oi(c,2);if(3==e){e=oi(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=oi(c,2);var g=oi(c,3),h=oi(c,1);c=oi(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,oa:a,X:d}};function AA(a){this.i=a;this.h=0;this.g=new Map}p=AA.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.i};
1198
- p.transmux=function(a,b,c,d){a=nc(a);for(var e=bi(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=ai(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=zA(a,f);if(!k)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.oa;h.push({data:a.subarray(f,f+k.X),size:k.X,duration:1536,
1199
- gb:0,flags:{ib:0,Za:0,Ya:0,Wa:0,Xa:2,jb:0}});f+=k.X}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,eb:[],oa:e,Aa:new Uint8Array([]),data:{wb:this.h,baseMediaDecodeTime:a,ab:h},stream:b};a=new Lu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Ru(a),this.g.set(b.id,d));b=gv(a);this.h++;b=sg(d,b);return Promise.resolve(b)};L("shaka.transmuxer.Ec3Transmuxer",AA);AA.prototype.transmux=AA.prototype.transmux;
1197
+ p.transmux=function(a,b,c,d){a=nc(a);for(var e=bi(a),f=e.length;f<a.length&&!xA(a,f);f++);var g=1E3*c.endTime;e=ai(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=wA(a,f);if(!k)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.qa;h.push({data:a.subarray(f,f+k.X),size:k.X,duration:1536,ib:0,flags:{kb:0,
1198
+ $a:0,Za:0,Xa:0,Ya:2,mb:0}});f+=k.X}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,gb:[],qa:e,Ca:new Uint8Array([]),data:{zb:this.h,baseMediaDecodeTime:a,cb:h},stream:b};a=new Mu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Su(a),this.g.set(b.id,d));b=hv(a);this.h++;b=sg(d,b);return Promise.resolve(b)};L("shaka.transmuxer.Ac3Transmuxer",yA);yA.prototype.transmux=yA.prototype.transmux;yA.prototype.getOriginalMimeType=yA.prototype.getOriginalMimeType;
1199
+ yA.prototype.convertCodecs=yA.prototype.convertCodecs;yA.prototype.isSupported=yA.prototype.isSupported;yA.prototype.destroy=yA.prototype.destroy;Yc("audio/ac3",function(){return new yA("audio/ac3")},dd);function zA(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new li(a.subarray(b+2));ni(c,2);ni(c,3);var d=oi(c,11)+1<<1,e=oi(c,2);if(3==e){e=oi(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=oi(c,2);var g=oi(c,3),h=oi(c,1);c=oi(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,qa:a,X:d}};function AA(a){this.i=a;this.h=0;this.g=new Map}p=AA.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.i};
1200
+ p.transmux=function(a,b,c,d){a=nc(a);for(var e=bi(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=ai(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=zA(a,f);if(!k)return Promise.reject(new P(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.qa;h.push({data:a.subarray(f,f+k.X),size:k.X,duration:1536,
1201
+ ib:0,flags:{kb:0,$a:0,Za:0,Xa:0,Ya:2,mb:0}});f+=k.X}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,gb:[],qa:e,Ca:new Uint8Array([]),data:{zb:this.h,baseMediaDecodeTime:a,cb:h},stream:b};a=new Mu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Su(a),this.g.set(b.id,d));b=hv(a);this.h++;b=sg(d,b);return Promise.resolve(b)};L("shaka.transmuxer.Ec3Transmuxer",AA);AA.prototype.transmux=AA.prototype.transmux;
1200
1202
  AA.prototype.getOriginalMimeType=AA.prototype.getOriginalMimeType;AA.prototype.convertCodecs=AA.prototype.convertCodecs;AA.prototype.isSupported=AA.prototype.isSupported;AA.prototype.destroy=AA.prototype.destroy;Yc("audio/ec3",function(){return new AA("audio/ec3")},dd);function BA(a){if(!a.length)return null;var b=a.find(function(m){return 7==m.type});a=a.find(function(m){return 8==m.type});if(!b||!a)return null;var c=new li(b.data),d=si(c);si(c);si(c);qi(c);if(CA.includes(d)&&(d=Q(c),3===d&&ni(c,1),qi(c),qi(c),ni(c,1),R(c))){d=3!==d?8:12;for(var e=0;e<d;e++)R(c)&&(6>e?ti(c,16):ti(c,64))}qi(c);d=Q(c);if(0===d)Q(c);else if(1===d)for(ni(c,1),qi(c),qi(c),d=Q(c),e=0;e<d;e++)qi(c);qi(c);ni(c,1);d=Q(c);var f=Q(c),g=oi(c,1);0===g&&ni(c,1);ni(c,1);var h=e=0,k=0,l=0;R(c)&&
1201
- (e=Q(c),h=Q(c),k=Q(c),l=Q(c));c=(2-g)*(f+1)*16-2*k-2*l;d=16*(d+1)-2*e-2*h;e=[];b=b.fullData;e.push(b.byteLength>>>8&255);e.push(b.byteLength&255);e=e.concat.apply(e,w(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,w(a));a=new Uint8Array([1,e[3],e[4],e[5],255,225].concat(e,[1],b));return{height:c,width:d,Aa:a}}
1203
+ (e=Q(c),h=Q(c),k=Q(c),l=Q(c));c=(2-g)*(f+1)*16-2*k-2*l;d=16*(d+1)-2*e-2*h;e=[];b=b.fullData;e.push(b.byteLength>>>8&255);e.push(b.byteLength&255);e=e.concat.apply(e,w(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,w(a));a=new Uint8Array([1,e[3],e[4],e[5],255,225].concat(e,[1],b));return{height:c,width:d,Ca:a}}
1202
1204
  function DA(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=ui(new li(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(sg(h,
1203
- f.fullData)))}return c.length?{data:sg.apply(kg,w(c)),wd:b}:null}var CA=[100,110,122,244,44,83,86,118,128,138,139,134];function EA(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=FA(b.fullData);a=GA(c.fullData);var f=HA(d.fullData);b=IA(b.fullData,c.fullData,d.fullData,{Qf:e.Qf,ng:e.ng,uf:a.uf,vf:a.vf,mf:a.mf,tf:a.tf,nf:a.nf,pf:a.pf,qf:a.qf,rf:a.rf,ef:a.ef,gf:a.gf,hf:a.hf,jf:a.jf,kf:a.kf,lf:a.lf,bf:a.bf,re:a.re,$e:a.$e,Xe:a.Xe,We:a.We,Tf:f.Tf});return{height:a.height,width:a.width,
1204
- Aa:b}}function FA(a){var b=new li(a,!0);si(b);si(b);oi(b,4);oi(b,2);oi(b,6);a=oi(b,3);b=R(b);return{Qf:a+1,ng:b}}
1205
+ f.fullData)))}return c.length?{data:sg.apply(kg,w(c)),zd:b}:null}var CA=[100,110,122,244,44,83,86,118,128,138,139,134];function EA(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=FA(b.fullData);a=GA(c.fullData);var f=HA(d.fullData);b=IA(b.fullData,c.fullData,d.fullData,{Uf:e.Uf,rg:e.rg,yf:a.yf,zf:a.zf,rf:a.rf,xf:a.xf,tf:a.tf,uf:a.uf,vf:a.vf,wf:a.wf,kf:a.kf,lf:a.lf,mf:a.mf,nf:a.nf,pf:a.pf,qf:a.qf,gf:a.gf,ve:a.ve,ef:a.ef,cf:a.cf,bf:a.bf,Xf:f.Xf});return{height:a.height,width:a.width,
1206
+ Ca:b}}function FA(a){var b=new li(a,!0);si(b);si(b);oi(b,4);oi(b,2);oi(b,6);a=oi(b,3);b=R(b);return{Uf:a+1,rg:b}}
1205
1207
  function GA(a){a=new li(a,!0);si(a);si(a);var b=0,c=0,d=0,e=0;oi(a,4);var f=oi(a,3);R(a);for(var g=oi(a,2),h=oi(a,1),k=oi(a,5),l=si(a),m=si(a),n=si(a),r=si(a),q=si(a),u=si(a),v=si(a),y=si(a),z=si(a),x=si(a),B=si(a),A=[],C=[],E=0;E<f;E++)A.push(R(a)),C.push(R(a));if(0<f)for(E=f;8>E;E++)oi(a,2);for(E=0;E<f;E++)A[E]&&oi(a,88),C[E]&&si(a);Q(a);A=Q(a);3==A&&oi(a,1);C=Q(a);E=Q(a);R(a)&&(b+=Q(a),c+=Q(a),d+=Q(a),e+=Q(a));var H=Q(a),G=Q(a),I=Q(a);if(R(a))for(var J=0;J<=f;J++)Q(a),Q(a),Q(a);else Q(a),Q(a),
1206
- Q(a);Q(a);Q(a);Q(a);Q(a);Q(a);Q(a);if(R(a)&&R(a))for(J=0;4>J;J++)for(var M=0;M<(3===J?2:6);M++)if(R(a)){var O=Math.min(64,1<<4+(J<<1));1<J&&ri(a);for(var S=0;S<O;S++)ri(a)}else Q(a);R(a);R(a);R(a)&&(si(a),Q(a),Q(a),R(a));J=Q(a);for(O=M=0;O<J;O++)if(S=!1,0!==O&&(S=R(a)),S){O===J&&Q(a);R(a);Q(a);for(var Z=S=0;Z<=M;Z++){var U=R(a),ia=!1;U||(ia=R(a));(U||ia)&&S++}M=S}else{Z=Q(a);S=Q(a);M=Z+S;for(U=0;U<Z;U++)Q(a),R(a);for(Z=0;Z<S;Z++)Q(a),R(a)}if(R(a))for(J=Q(a),M=0;M<J;M++){for(O=0;O<I+4;O++)oi(a,1);
1207
- oi(a,1)}I=0;R(a);R(a);if(R(a)){R(a)&&255===si(a)&&(oi(a,16),oi(a,16));R(a)&&R(a);R(a)&&(oi(a,3),R(a),R(a)&&(si(a),si(a),si(a)));R(a)&&(Q(a),Q(a));R(a);R(a);R(a);if(J=R(a))Q(a),Q(a),Q(a),Q(a);if(R(a)&&(oi(a,32),oi(a,32),R(a)&&Q(a),R(a))){O=!1;J=R(a);M=R(a);if(J||M){if(O=R(a))si(a),oi(a,5),R(a),oi(a,5);oi(a,4);oi(a,4);O&&oi(a,4);oi(a,5);oi(a,5);oi(a,5)}for(S=0;S<=f;S++){U=!0;Z=1;R(a)||(U=R(a));ia=!1;U?Q(a):ia=R(a);ia||(Z=Q(a)+1);if(J){for(U=0;U<Z;U++)Q(a),Q(a),O&&(Q(a),Q(a));R(a)}if(M){for(U=0;U<Z;U++)Q(a),
1208
- Q(a),O&&(Q(a),Q(a));R(a)}}}R(a)&&(R(a),R(a),R(a),I=Q(a),Q(a),Q(a),Q(a),Q(a))}return{mf:B,uf:g,vf:h,tf:k,nf:l,pf:m,qf:n,rf:r,ef:q,gf:u,hf:v,jf:y,kf:z,lf:x,re:I,bf:0,$e:A,Xe:H,We:G,width:C-(b+c)*(1===A||2===A?2:1),height:E-(d+e)*(1===A?2:1)}}function HA(a){var b=new li(a,!0);si(b);si(b);Q(b);Q(b);R(b);R(b);oi(b,3);R(b);R(b);Q(b);Q(b);ri(b);R(b);R(b);R(b)&&Q(b);ri(b);ri(b);R(b);R(b);R(b);R(b);a=R(b);b=R(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Tf:c}}
1209
- function IA(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.uf&3)<<6|(d.vf?1:0)<<5|d.tf&31;e[2]=d.nf;e[3]=d.pf;e[4]=d.qf;e[5]=d.rf;e[6]=d.ef;e[7]=d.gf;e[8]=d.hf;e[9]=d.jf;e[10]=d.kf;e[11]=d.lf;e[12]=d.mf;e[13]=240|(d.re&3840)>>8;e[14]=d.re&255;e[15]=252|d.Tf&3;e[16]=252|d.$e&3;e[17]=248|d.Xe&7;e[18]=248|d.We&7;e[19]=0;e[20]=0;e[21]=(d.bf&3)<<6|(d.Qf&7)<<3|(d.ng?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1210
- 255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function JA(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*KA[14*(3===c?3-d:3===d?3:4)+e-1];f=LA[3*(3===c?0:2===c?1:2)+f];c=MA[c][d];var h=NA[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,X:k,dj:8*c*h}}return null}
1208
+ Q(a);Q(a);Q(a);Q(a);Q(a);Q(a);Q(a);if(R(a)&&R(a))for(J=0;4>J;J++)for(var M=0;M<(3===J?2:6);M++)if(R(a)){var O=Math.min(64,1<<4+(J<<1));1<J&&ri(a);for(var S=0;S<O;S++)ri(a)}else Q(a);R(a);R(a);R(a)&&(si(a),Q(a),Q(a),R(a));J=Q(a);for(O=M=0;O<J;O++)if(S=!1,0!==O&&(S=R(a)),S){O===J&&Q(a);R(a);Q(a);for(var Z=S=0;Z<=M;Z++){var U=R(a),fa=!1;U||(fa=R(a));(U||fa)&&S++}M=S}else{Z=Q(a);S=Q(a);M=Z+S;for(U=0;U<Z;U++)Q(a),R(a);for(Z=0;Z<S;Z++)Q(a),R(a)}if(R(a))for(J=Q(a),M=0;M<J;M++){for(O=0;O<I+4;O++)oi(a,1);
1209
+ oi(a,1)}I=0;R(a);R(a);if(R(a)){R(a)&&255===si(a)&&(oi(a,16),oi(a,16));R(a)&&R(a);R(a)&&(oi(a,3),R(a),R(a)&&(si(a),si(a),si(a)));R(a)&&(Q(a),Q(a));R(a);R(a);R(a);if(J=R(a))Q(a),Q(a),Q(a),Q(a);if(R(a)&&(oi(a,32),oi(a,32),R(a)&&Q(a),R(a))){O=!1;J=R(a);M=R(a);if(J||M){if(O=R(a))si(a),oi(a,5),R(a),oi(a,5);oi(a,4);oi(a,4);O&&oi(a,4);oi(a,5);oi(a,5);oi(a,5)}for(S=0;S<=f;S++){U=!0;Z=1;R(a)||(U=R(a));fa=!1;U?Q(a):fa=R(a);fa||(Z=Q(a)+1);if(J){for(U=0;U<Z;U++)Q(a),Q(a),O&&(Q(a),Q(a));R(a)}if(M){for(U=0;U<Z;U++)Q(a),
1210
+ Q(a),O&&(Q(a),Q(a));R(a)}}}R(a)&&(R(a),R(a),R(a),I=Q(a),Q(a),Q(a),Q(a),Q(a))}return{rf:B,yf:g,zf:h,xf:k,tf:l,uf:m,vf:n,wf:r,kf:q,lf:u,mf:v,nf:y,pf:z,qf:x,ve:I,gf:0,ef:A,cf:H,bf:G,width:C-(b+c)*(1===A||2===A?2:1),height:E-(d+e)*(1===A?2:1)}}function HA(a){var b=new li(a,!0);si(b);si(b);Q(b);Q(b);R(b);R(b);oi(b,3);R(b);R(b);Q(b);Q(b);ri(b);R(b);R(b);R(b)&&Q(b);ri(b);ri(b);R(b);R(b);R(b);R(b);a=R(b);b=R(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Xf:c}}
1211
+ function IA(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.yf&3)<<6|(d.zf?1:0)<<5|d.xf&31;e[2]=d.tf;e[3]=d.uf;e[4]=d.vf;e[5]=d.wf;e[6]=d.kf;e[7]=d.lf;e[8]=d.mf;e[9]=d.nf;e[10]=d.pf;e[11]=d.qf;e[12]=d.rf;e[13]=240|(d.ve&3840)>>8;e[14]=d.ve&255;e[15]=252|d.Xf&3;e[16]=252|d.ef&3;e[17]=248|d.cf&7;e[18]=248|d.bf&7;e[19]=0;e[20]=0;e[21]=(d.gf&3)<<6|(d.Uf&7)<<3|(d.rg?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1212
+ 255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function JA(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*KA[14*(3===c?3-d:3===d?3:4)+e-1];f=LA[3*(3===c?0:2===c?1:2)+f];c=MA[c][d];var h=NA[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,X:k,hj:8*c*h}}return null}
1211
1213
  function OA(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}var KA=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],LA=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],MA=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],NA=[0,1,1,4];function PA(a){this.i=a;this.h=0;this.g=new Map}p=PA.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?fc(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};p.getOriginalMimeType=function(){return this.i};
1212
- p.transmux=function(a,b,c,d){a=nc(a);for(c=bi(a).length;c<a.length;c++){var e=c;if(e+1<a.length&&OA(a,e)){var f=JA(a,e),g=4;f&&f.X&&(g=f.X);e+=g;e=e===a.length||e+1<a.length&&OA(a,e)}else e=!1;if(e)break}var h;for(e=[];c<a.length;){f=JA(a,c);if(!f)return Promise.reject(new P(2,3,3018));h||(h=f);c+f.X<=a.length&&e.push({data:a.subarray(c,c+f.X),size:f.X,duration:1152,gb:0,flags:{ib:0,Za:0,Ya:0,Wa:0,Xa:2,jb:0}});c+=f.X}if(!h)return Promise.reject(new P(2,3,3018));a=9E4*h.dj/h.sampleRate*this.h;d={id:b.id,
1213
- type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h.sampleRate,duration:d,eb:[],oa:new Uint8Array([]),Aa:new Uint8Array([]),data:{wb:this.h,baseMediaDecodeTime:a,ab:e},stream:b};h=new Lu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Ru(h),this.g.set(b.id,d));b=gv(h);this.h++;b=sg(d,b);return Promise.resolve(b)};L("shaka.transmuxer.Mp3Transmuxer",PA);PA.prototype.transmux=PA.prototype.transmux;PA.prototype.getOriginalMimeType=PA.prototype.getOriginalMimeType;
1214
+ p.transmux=function(a,b,c,d){a=nc(a);for(c=bi(a).length;c<a.length;c++){var e=c;if(e+1<a.length&&OA(a,e)){var f=JA(a,e),g=4;f&&f.X&&(g=f.X);e+=g;e=e===a.length||e+1<a.length&&OA(a,e)}else e=!1;if(e)break}var h;for(e=[];c<a.length;){f=JA(a,c);if(!f)return Promise.reject(new P(2,3,3018));h||(h=f);c+f.X<=a.length&&e.push({data:a.subarray(c,c+f.X),size:f.X,duration:1152,ib:0,flags:{kb:0,$a:0,Za:0,Xa:0,Ya:2,mb:0}});c+=f.X}if(!h)return Promise.reject(new P(2,3,3018));a=9E4*h.hj/h.sampleRate*this.h;d={id:b.id,
1215
+ type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h.sampleRate,duration:d,gb:[],qa:new Uint8Array([]),Ca:new Uint8Array([]),data:{zb:this.h,baseMediaDecodeTime:a,cb:e},stream:b};h=new Mu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Su(h),this.g.set(b.id,d));b=hv(h);this.h++;b=sg(d,b);return Promise.resolve(b)};L("shaka.transmuxer.Mp3Transmuxer",PA);PA.prototype.transmux=PA.prototype.transmux;PA.prototype.getOriginalMimeType=PA.prototype.getOriginalMimeType;
1214
1216
  PA.prototype.convertCodecs=PA.prototype.convertCodecs;PA.prototype.isSupported=PA.prototype.isSupported;PA.prototype.destroy=PA.prototype.destroy;Yc("audio/mpeg",function(){return new PA("audio/mpeg")},dd);function QA(a){this.h=a;this.g=null}p=QA.prototype;p.destroy=function(){};p.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=pd(a).split(","),c=Gb("audio",b);b=Gb("video",b);return!c||b||"mp3"!=ld(c)?!1:fc(this.convertCodecs("audio",a))};p.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};p.getOriginalMimeType=function(){return this.h};
1215
- p.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new vi;a=nc(a);a=this.g.parse(a);if("mp3"!=a.nd().audio||"audio"!=e)return Promise.reject(new P(2,3,3018));e=new Uint8Array([]);a=t(a.kc());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=JA(b,c))?(c+d.X<=b.length&&(e=sg(e,b.subarray(c,c+d.X))),c+=d.X):c++;return Promise.resolve(e)};L("shaka.transmuxer.MpegTsTransmuxer",QA);QA.prototype.transmux=QA.prototype.transmux;QA.prototype.getOriginalMimeType=QA.prototype.getOriginalMimeType;
1217
+ p.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new vi;a=nc(a);a=this.g.parse(a);if("mp3"!=a.rd().audio||"audio"!=e)return Promise.reject(new P(2,3,3018));e=new Uint8Array([]);a=t(a.mc());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=JA(b,c))?(c+d.X<=b.length&&(e=sg(e,b.subarray(c,c+d.X))),c+=d.X):c++;return Promise.resolve(e)};L("shaka.transmuxer.MpegTsTransmuxer",QA);QA.prototype.transmux=QA.prototype.transmux;QA.prototype.getOriginalMimeType=QA.prototype.getOriginalMimeType;
1216
1218
  QA.prototype.convertCodecs=QA.prototype.convertCodecs;QA.prototype.isSupported=QA.prototype.isSupported;QA.prototype.destroy=QA.prototype.destroy;Yc("video/mp2t",function(){return new QA("video/mp2t")},cd);/*
1217
1219
  @license
1218
1220
  MSS Transmuxer
@@ -1228,18 +1230,18 @@ p.transmux=function(a,b,c){if(!c)return Promise.resolve(nc(a));if(!b.mssPrivateD
1228
1230
  1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var r=e.fetch("saio");if(null===r){r=this.g.createFullBox("saio",h);r.version=0;r.flags=0;r.entry_count=1;r.offset=[0];var q=this.g.createFullBox("saiz",h);q.version=0;q.flags=0;q.sample_count=n.sample_count;q.default_sample_info_size=0;q.sample_info_size=[];if(n.flags&2)for(d=0;d<n.sample_count;d+=1)q.sample_info_size[d]=10+6*n.entry[d].NumberOfEntries;else q.default_sample_info_size=8}}f.flags&=16777214;f.flags|=131072;k.flags|=
1229
1231
  1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var v=e.fetch("saio");null!==v&&(v.offset[0]=UA(u,"traf")+UA(h,"senc")+16);var y=nc(e.write());return Promise.resolve(y)}catch(z){return z instanceof P?Promise.reject(z):Promise.reject(new P(2,3,3022))}};function UA(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}L("shaka.transmuxer.MssTransmuxer",RA);RA.prototype.transmux=RA.prototype.transmux;RA.prototype.getOriginalMimeType=RA.prototype.getOriginalMimeType;
1230
1232
  RA.prototype.convertCodecs=RA.prototype.convertCodecs;RA.prototype.isSupported=RA.prototype.isSupported;RA.prototype.destroy=RA.prototype.destroy;var TA=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);Yc("mss/audio/mp4",function(){return new RA("mss/audio/mp4")},dd);Yc("mss/video/mp4",function(){return new RA("mss/video/mp4")},dd);function VA(a){this.j=a;this.g=0;this.h=new Map;this.i=null}p=VA.prototype;p.destroy=function(){this.h.clear()};p.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=pd(c).split(",");c=Gb("audio",d);d=Gb("video",d);if(c&&(c=ld(c),!WA.includes(c))||d&&(c=ld(d),!XA.includes(c)))return!1;if(b)return fc(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return fc(b)||fc(a)};
1231
- p.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=pd(b).replace("mp4a.40.34","mp3").split(",").map(this.Vh).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};p.Vh=function(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}return a};p.getOriginalMimeType=function(){return this.j};
1232
- p.transmux=function(a,b,c,d,e){this.i?this.i.clearData():this.i=new vi;a=nc(a);var f=this.i.parse(a);a=[];var g=f.nd();try{var h=null;if("video"==e){switch(g.video){case "avc":var k=[],l=null,m=[],n=f.Ic();if(!n.length)throw new P(2,3,3023);for(var r=0;r<n.length;r++){var q=n[r],u=q.nalus;m.push.apply(m,w(u));var v=DA(u);if(v){null==l&&(l=q.dts);var y=void 0;y=r+1<n.length?(n[r+1].dts||0)-(q.dts||0):1<n.length?(q.dts||0)-(n[r-1].dts||0):9E4*(c.endTime-c.startTime);k.push({data:v.data,size:v.data.byteLength,
1233
- duration:y,gb:Math.round((q.pts||0)-(q.dts||0)),flags:{ib:0,Za:0,Ya:0,Wa:0,Xa:v.wd?2:1,jb:v.wd?0:1}})}}var z=BA(m);if(!z||null==l)throw new P(2,3,3018);b.height=z.height;b.width=z.width;h={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,eb:[],oa:new Uint8Array([]),Aa:z.Aa,data:{wb:this.g,baseMediaDecodeTime:l,ab:k},stream:b};break;case "hvc":n=[];q=null;u=[];k=f.Ic();if(!k.length)throw new P(2,3,3023);for(v=0;v<k.length;v++){l=k[v];m=l.nalus;
1234
- u.push.apply(u,w(m));z=!1;var x=[],B=!1;r=t(m);for(y=r.next();!y.done;y=r.next()){var A=y.value;switch(A.type){case 1:case 0:var C=B=!0;break;case 19:case 20:case 21:z=C=B=!0;break;case 32:C=!0;break;case 33:C=!0;break;case 34:C=!0;break;case 35:B=C=!0;break;case 39:case 40:C=!0;break;default:C=!1}if(B&&C){var E=A.fullData.byteLength,H=new Uint8Array(4);H[0]=E>>24&255;H[1]=E>>16&255;H[2]=E>>8&255;H[3]=E&255;x.push(sg(H,A.fullData))}}var G=x.length?{data:sg.apply(kg,w(x)),wd:z}:null;G&&(null==q&&null!=
1235
- l.dts&&(q=l.dts),z=void 0,z=v+1<k.length?(k[v+1].dts||0)-(l.dts||0):1<k.length?(l.dts||0)-(k[v-1].dts||0):9E4*(c.endTime-c.startTime),n.push({data:G.data,size:G.data.byteLength,duration:z,gb:Math.round((l.pts||0)-(l.dts||0)),flags:{ib:0,Za:0,Ya:0,Wa:0,Xa:G.wd?2:1,jb:G.wd?0:1}}))}var I=EA(u);if(!I||null==q)throw new P(2,3,3018);b.height=I.height;b.width=I.width;h={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,eb:[],oa:new Uint8Array([]),Aa:I.Aa,
1236
- data:{wb:this.g,baseMediaDecodeTime:q,ab:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var J=[],M,O=null,S=t(f.kc()),Z=S.next();!Z.done;Z=S.next()){var U=Z.value,ia=U.data;if(ia){var aa=0;M=sA(ia,aa);if(!M)throw new P(2,3,3018);b.audioSamplingRate=M.sampleRate;b.channelsCount=M.channelCount;null==O&&null!==U.pts&&(O=U.pts);for(;aa<ia.length;){var Wa=rA(ia,aa);if(Wa){var ib=Wa.ge+Wa.X;aa+ib<=ia.length&&J.push({data:ia.subarray(aa+Wa.ge,aa+ib),size:Wa.X,duration:1024,
1237
- gb:0,flags:{ib:0,Za:0,Ya:0,Wa:0,Xa:2,jb:0}});aa+=ib}else aa++}}}if(!M||null==O){if(!f.Ic().length)throw new P(2,3,3018);O=9E4*c.startTime;var Eb=Gb("audio",b.codecs.split(","));if(!Eb||!b.channelsCount||!b.audioSamplingRate)throw new P(2,3,3018);M={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ua:Eb};var ac=uA(Eb,b.channelsCount);if(!ac)throw new P(2,3,3018);var Kb=O+9E4*(c.endTime-c.startTime);for(f=O;f<Kb;)J.push({data:ac,size:ac.byteLength,duration:1024,gb:0,flags:{ib:0,Za:0,Ya:0,
1238
- Wa:0,Xa:2,jb:0}}),f+=1024/M.sampleRate*9E4}var Da=M.sampleRate;f=O/9E4*Da;h={id:b.id,type:"audio",codecs:M.ua,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Da,duration:d,eb:[],oa:new Uint8Array([]),Aa:new Uint8Array([]),data:{wb:this.g,baseMediaDecodeTime:f,ab:J},stream:b};break;case "ac3":M=[];Da=0;J=new Uint8Array([]);O=null;aa=t(f.kc());for(var sb=aa.next();!sb.done;sb=aa.next()){var Fb=sb.value,bc=Fb.data;null==O&&null!==Fb.pts&&(O=Fb.pts);for(f=0;f<bc.length;){var cc=wA(bc,f);cc?(b.audioSamplingRate=
1239
- cc.sampleRate,b.channelsCount=cc.channelCount,Da=cc.sampleRate,J=cc.oa,M.push({data:bc.subarray(f,f+cc.X),size:cc.X,duration:1536,gb:0,flags:{ib:0,Za:0,Ya:0,Wa:0,Xa:2,jb:0}}),f+=cc.X):f++}}if(0==Da||0==J.byteLength||null==O)throw new P(2,3,3018);f=O/9E4*Da;h={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Da,duration:d,eb:[],oa:J,Aa:new Uint8Array([]),data:{wb:this.g,baseMediaDecodeTime:f,ab:M},stream:b};break;case "ec3":M=[];Da=0;O=new Uint8Array([]);J=null;
1240
- for(var tb=t(f.kc()),Ud=tb.next();!Ud.done;Ud=tb.next()){var wd=Ud.value,Vd=wd.data;null==J&&null!==wd.pts&&(J=wd.pts);for(f=0;f<Vd.length;){var Ec=zA(Vd,f);Ec?(b.audioSamplingRate=Ec.sampleRate,b.channelsCount=Ec.channelCount,Da=Ec.sampleRate,O=Ec.oa,M.push({data:Vd.subarray(f,f+Ec.X),size:Ec.X,duration:1536,gb:0,flags:{ib:0,Za:0,Ya:0,Wa:0,Xa:2,jb:0}}),f+=Ec.X):f++}}if(0==Da||0==O.byteLength||null==J)throw new P(2,3,3018);f=J/9E4*Da;h={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<
1241
- b.drmInfos.length,timescale:Da,duration:d,eb:[],oa:O,Aa:new Uint8Array([]),data:{wb:this.g,baseMediaDecodeTime:f,ab:M},stream:b};break;case "mp3":M=[];var Wd;Da=null;for(var hi=t(f.kc()),Ye=hi.next();!Ye.done;Ye=hi.next()){var Xd=Ye.value,Lc=Xd.data;if(Lc)for(null==Da&&null!==Xd.pts&&(Da=Xd.pts),f=0;f<Lc.length;){var jd=JA(Lc,f);jd?(Wd||(Wd=jd),f+jd.X<=Lc.length&&M.push({data:Lc.subarray(f,f+jd.X),size:jd.X,duration:1152,gb:0,flags:{ib:0,Za:0,Ya:0,Wa:0,Xa:2,jb:0}}),f+=jd.X):f++}}if(!Wd||null==Da)throw new P(2,
1242
- 3,3018);var lg=Wd.sampleRate;f=Da/9E4*lg;h={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:lg,duration:d,eb:[],oa:new Uint8Array([]),Aa:new Uint8Array([]),data:{wb:this.g,baseMediaDecodeTime:f,ab:M},stream:b}}h&&a.push(h)}}catch(mg){return mg&&3023==mg.code?Promise.resolve(new Uint8Array([])):Promise.reject(mg)}if(!a.length)return Promise.reject(new P(2,3,3018));a=new Lu(a);this.h.has(b.id)?d=this.h.get(b.id):(d=Ru(a),this.h.set(b.id,d));b=gv(a);this.g++;b=
1233
+ p.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=pd(b).replace("mp4a.40.34","mp3").split(",").map(this.Yh).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};p.Yh=function(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}return a};p.getOriginalMimeType=function(){return this.j};
1234
+ p.transmux=function(a,b,c,d,e){this.i?this.i.clearData():this.i=new vi;a=nc(a);var f=this.i.parse(a);a=[];var g=f.rd();try{var h=null;if("video"==e){switch(g.video){case "avc":var k=[],l=null,m=[],n=f.Mc();if(!n.length)throw new P(2,3,3023);for(var r=0;r<n.length;r++){var q=n[r],u=q.nalus;m.push.apply(m,w(u));var v=DA(u);if(v){null==l&&(l=q.dts);var y=void 0;y=r+1<n.length?(n[r+1].dts||0)-(q.dts||0):1<n.length?(q.dts||0)-(n[r-1].dts||0):9E4*(c.endTime-c.startTime);k.push({data:v.data,size:v.data.byteLength,
1235
+ duration:y,ib:Math.round((q.pts||0)-(q.dts||0)),flags:{kb:0,$a:0,Za:0,Xa:0,Ya:v.zd?2:1,mb:v.zd?0:1}})}}var z=BA(m);if(!z||null==l)throw new P(2,3,3018);b.height=z.height;b.width=z.width;h={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,gb:[],qa:new Uint8Array([]),Ca:z.Ca,data:{zb:this.g,baseMediaDecodeTime:l,cb:k},stream:b};break;case "hvc":n=[];q=null;u=[];k=f.Mc();if(!k.length)throw new P(2,3,3023);for(v=0;v<k.length;v++){l=k[v];m=l.nalus;
1236
+ u.push.apply(u,w(m));z=!1;var x=[],B=!1;r=t(m);for(y=r.next();!y.done;y=r.next()){var A=y.value;switch(A.type){case 1:case 0:var C=B=!0;break;case 19:case 20:case 21:z=C=B=!0;break;case 32:C=!0;break;case 33:C=!0;break;case 34:C=!0;break;case 35:B=C=!0;break;case 39:case 40:C=!0;break;default:C=!1}if(B&&C){var E=A.fullData.byteLength,H=new Uint8Array(4);H[0]=E>>24&255;H[1]=E>>16&255;H[2]=E>>8&255;H[3]=E&255;x.push(sg(H,A.fullData))}}var G=x.length?{data:sg.apply(kg,w(x)),zd:z}:null;G&&(null==q&&null!=
1237
+ l.dts&&(q=l.dts),z=void 0,z=v+1<k.length?(k[v+1].dts||0)-(l.dts||0):1<k.length?(l.dts||0)-(k[v-1].dts||0):9E4*(c.endTime-c.startTime),n.push({data:G.data,size:G.data.byteLength,duration:z,ib:Math.round((l.pts||0)-(l.dts||0)),flags:{kb:0,$a:0,Za:0,Xa:0,Ya:G.zd?2:1,mb:G.zd?0:1}}))}var I=EA(u);if(!I||null==q)throw new P(2,3,3018);b.height=I.height;b.width=I.width;h={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,gb:[],qa:new Uint8Array([]),Ca:I.Ca,
1238
+ data:{zb:this.g,baseMediaDecodeTime:q,cb:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var J=[],M,O=null,S=t(f.mc()),Z=S.next();!Z.done;Z=S.next()){var U=Z.value,fa=U.data;if(fa){var aa=0;M=sA(fa,aa);if(!M)throw new P(2,3,3018);b.audioSamplingRate=M.sampleRate;b.channelsCount=M.channelCount;null==O&&null!==U.pts&&(O=U.pts);for(;aa<fa.length;){var Wa=rA(fa,aa);if(Wa){var ib=Wa.ke+Wa.X;aa+ib<=fa.length&&J.push({data:fa.subarray(aa+Wa.ke,aa+ib),size:Wa.X,duration:1024,
1239
+ ib:0,flags:{kb:0,$a:0,Za:0,Xa:0,Ya:2,mb:0}});aa+=ib}else aa++}}}if(!M||null==O){if(!f.Mc().length)throw new P(2,3,3018);O=9E4*c.startTime;var Eb=Gb("audio",b.codecs.split(","));if(!Eb||!b.channelsCount||!b.audioSamplingRate)throw new P(2,3,3018);M={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,wa:Eb};var bc=uA(Eb,b.channelsCount);if(!bc)throw new P(2,3,3018);var Kb=O+9E4*(c.endTime-c.startTime);for(f=O;f<Kb;)J.push({data:bc,size:bc.byteLength,duration:1024,ib:0,flags:{kb:0,$a:0,Za:0,
1240
+ Xa:0,Ya:2,mb:0}}),f+=1024/M.sampleRate*9E4}var Ea=M.sampleRate;f=O/9E4*Ea;h={id:b.id,type:"audio",codecs:M.wa,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Ea,duration:d,gb:[],qa:new Uint8Array([]),Ca:new Uint8Array([]),data:{zb:this.g,baseMediaDecodeTime:f,cb:J},stream:b};break;case "ac3":M=[];Ea=0;J=new Uint8Array([]);O=null;aa=t(f.mc());for(var rb=aa.next();!rb.done;rb=aa.next()){var Fb=rb.value,cc=Fb.data;null==O&&null!==Fb.pts&&(O=Fb.pts);for(f=0;f<cc.length;){var dc=wA(cc,f);dc?(b.audioSamplingRate=
1241
+ dc.sampleRate,b.channelsCount=dc.channelCount,Ea=dc.sampleRate,J=dc.qa,M.push({data:cc.subarray(f,f+dc.X),size:dc.X,duration:1536,ib:0,flags:{kb:0,$a:0,Za:0,Xa:0,Ya:2,mb:0}}),f+=dc.X):f++}}if(0==Ea||0==J.byteLength||null==O)throw new P(2,3,3018);f=O/9E4*Ea;h={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Ea,duration:d,gb:[],qa:J,Ca:new Uint8Array([]),data:{zb:this.g,baseMediaDecodeTime:f,cb:M},stream:b};break;case "ec3":M=[];Ea=0;O=new Uint8Array([]);J=null;
1242
+ for(var sb=t(f.mc()),Ud=sb.next();!Ud.done;Ud=sb.next()){var wd=Ud.value,Vd=wd.data;null==J&&null!==wd.pts&&(J=wd.pts);for(f=0;f<Vd.length;){var Dc=zA(Vd,f);Dc?(b.audioSamplingRate=Dc.sampleRate,b.channelsCount=Dc.channelCount,Ea=Dc.sampleRate,O=Dc.qa,M.push({data:Vd.subarray(f,f+Dc.X),size:Dc.X,duration:1536,ib:0,flags:{kb:0,$a:0,Za:0,Xa:0,Ya:2,mb:0}}),f+=Dc.X):f++}}if(0==Ea||0==O.byteLength||null==J)throw new P(2,3,3018);f=J/9E4*Ea;h={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<
1243
+ b.drmInfos.length,timescale:Ea,duration:d,gb:[],qa:O,Ca:new Uint8Array([]),data:{zb:this.g,baseMediaDecodeTime:f,cb:M},stream:b};break;case "mp3":M=[];var Wd;Ea=null;for(var hi=t(f.mc()),Ye=hi.next();!Ye.done;Ye=hi.next()){var Xd=Ye.value,Lc=Xd.data;if(Lc)for(null==Ea&&null!==Xd.pts&&(Ea=Xd.pts),f=0;f<Lc.length;){var jd=JA(Lc,f);jd?(Wd||(Wd=jd),f+jd.X<=Lc.length&&M.push({data:Lc.subarray(f,f+jd.X),size:jd.X,duration:1152,ib:0,flags:{kb:0,$a:0,Za:0,Xa:0,Ya:2,mb:0}}),f+=jd.X):f++}}if(!Wd||null==Ea)throw new P(2,
1244
+ 3,3018);var lg=Wd.sampleRate;f=Ea/9E4*lg;h={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:lg,duration:d,gb:[],qa:new Uint8Array([]),Ca:new Uint8Array([]),data:{zb:this.g,baseMediaDecodeTime:f,cb:M},stream:b}}h&&a.push(h)}}catch(mg){return mg&&3023==mg.code?Promise.resolve(new Uint8Array([])):Promise.reject(mg)}if(!a.length)return Promise.reject(new P(2,3,3018));a=new Mu(a);this.h.has(b.id)?d=this.h.get(b.id):(d=Su(a),this.h.set(b.id,d));b=hv(a);this.g++;b=
1243
1245
  sg(d,b);return Promise.resolve(b)};L("shaka.transmuxer.TsTransmuxer",VA);VA.prototype.transmux=VA.prototype.transmux;VA.prototype.getOriginalMimeType=VA.prototype.getOriginalMimeType;VA.prototype.convertCodecs=VA.prototype.convertCodecs;VA.prototype.isSupported=VA.prototype.isSupported;VA.prototype.destroy=VA.prototype.destroy;var WA=["aac","ac-3","ec-3","mp3"],XA=["avc","hevc"];Yc("video/mp2t",function(){return new VA("video/mp2t")},bd);/*
1244
1246
  @license
1245
1247
  EME Encryption Scheme Polyfill
@@ -1260,7 +1262,7 @@ function lB(a){var b,c;return K(function(d){if(1==d.g){var e=a.keySystemConfigur
1260
1262
  navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}L("McEncryptionSchemePolyfill",gB);gB.install=iB;function fB(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
1261
1263
  fB.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};fB.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
1262
1264
  function dB(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function bB(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
1263
- function mB(){}function Hx(){$A();iB()}L("EncryptionSchemePolyfills",mB);mB.install=Hx;"undefined"!==typeof module&&module.exports&&(module.exports=mB);/*
1265
+ function mB(){}function Ix(){$A();iB()}L("EncryptionSchemePolyfills",mB);mB.install=Ix;"undefined"!==typeof module&&module.exports&&(module.exports=mB);/*
1264
1266
  @license
1265
1267
  Copyright 2013 Ali Al Dallal
1266
1268
 
@@ -1306,210 +1308,210 @@ sw:{A:"Kiswahili",B:"Swahili"},"sw-KE":{A:"Kiswahili",B:"Swahili (Kenya)"},ta:{A
1306
1308
  B:"Thai"},"th-TH":{A:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",B:"Thai (Thailand)"},tl:{A:"Filipino",B:"Filipino"},"tl-PH":{A:"Filipino",B:"Filipino"},tlh:{A:"tlhIngan-Hol",B:"Klingon"},tr:{A:"T\u00fcrk\u00e7e",B:"Turkish"},"tr-TR":{A:"T\u00fcrk\u00e7e",B:"Turkish"},"tt-RU":{A:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",B:"Tatar"},uk:{A:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",B:"Ukrainian"},"uk-UA":{A:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
1307
1309
  B:"Ukrainian"},ur:{A:"\u0627\u0631\u062f\u0648",B:"Urdu"},"ur-PK":{A:"\u0627\u0631\u062f\u0648",B:"Urdu"},uz:{A:"O'zbek",B:"Uzbek"},"uz-UZ":{A:"O'zbek",B:"Uzbek"},vi:{A:"Ti\u1ebfng Vi\u1ec7t",B:"Vietnamese"},"vi-VN":{A:"Ti\u1ebfng Vi\u1ec7t",B:"Vietnamese"},"xh-ZA":{A:"isiXhosa",B:"Xhosa"},yi:{A:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",B:"Yiddish"},"yi-DE":{A:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",B:"Yiddish (German)"},zh:{A:"\u4e2d\u6587",B:"Chinese"},"zh-HANS":{A:"\u4e2d\u6587\u7b80\u4f53",
1308
1310
  B:"Chinese Simplified"},"zh-HANT":{A:"\u4e2d\u6587\u7e41\u9ad4",B:"Chinese Traditional"},"zh-CN":{A:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",B:"Chinese Simplified (China)"},"zh-HK":{A:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",B:"Chinese Traditional (Hong Kong)"},"zh-SG":{A:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",B:"Chinese Simplified (Singapore)"},"zh-TW":{A:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",B:"Chinese Traditional (Taiwan)"},"zu-ZA":{A:"isiZulu",B:"Zulu"}},oB=t(Object.keys(nB)),pB=oB.next();!pB.done;pB=
1309
- oB.next()){var qB=pB.value;nB[qB.toLowerCase()]=nB[qB]};function rB(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Jf;this.localization=this.controls.za;this.player=this.controls.Gc();this.video=this.controls.Yb();this.adManager=this.player.Zd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1311
+ oB.next()){var qB=pB.value;nB[qB.toLowerCase()]=nB[qB]};function rB(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Jf;this.localization=this.controls.va;this.player=this.controls.Kc();this.video=this.controls.Zb();this.adManager=this.player.be();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1310
1312
  rB.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};L("shaka.ui.Element",rB);rB.prototype.release=rB.prototype.release;function sB(a){return tB(a,"shaka-back-to-overflow-button")}function tB(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function uB(a){a&&(a=tB(a,"shaka-chosen-item"))&&a.parentElement.focus()}function vB(){var a=T("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function wB(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1311
1313
  function xB(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function yB(a,b){rB.call(this,a,b);var c=this;this.i=T("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=T("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Fd(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=xB(e-d,!1)+" / "+xB(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
1312
- ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Ma();c.g.xa(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ma(),this.g.xa(.5))}pa(yB,rB);yB.prototype.release=function(){this.g.stop();this.g=null;rB.prototype.release.call(this)};L("shaka.ui.AdCounter",yB);function zB(a,b){rB.call(this,a,b);var c=this;this.g=T("div");this.g.classList.add("shaka-ad-position");wB(this.g,!1);this.parent.appendChild(this.g);this.h=T("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&AB(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&AB(c)});this.eventManager.o(this.adManager,"ad-started",function(){AB(c)});this.eventManager.o(this.adManager,
1314
+ ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Na();c.g.za(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Na(),this.g.za(.5))}pa(yB,rB);yB.prototype.release=function(){this.g.stop();this.g=null;rB.prototype.release.call(this)};L("shaka.ui.AdCounter",yB);function zB(a,b){rB.call(this,a,b);var c=this;this.g=T("div");this.g.classList.add("shaka-ad-position");wB(this.g,!1);this.parent.appendChild(this.g);this.h=T("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&AB(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&AB(c)});this.eventManager.o(this.adManager,"ad-started",function(){AB(c)});this.eventManager.o(this.adManager,
1313
1315
  "ad-stopped",function(){c.h.textContent="";wB(c.g,!1)});this.ad&&AB(this)}pa(zB,rB);function AB(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));wB(a.g,!0)}}L("shaka.ui.AdPosition",zB);function BB(a,b){rB.call(this,a,b);var c=this;this.button=dl();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
1314
- c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?CB(c.controls):DB(c.controls)});this.ad&&(this.g(),this.h())}pa(BB,rB);BB.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.u.paused&&!a.V;return a};BB.prototype.g=function(){};BB.prototype.h=function(){};
1315
- L("shaka.ui.PlayButton",BB);function EB(a,b){BB.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}pa(EB,BB);EB.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};EB.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};L("shaka.ui.BigPlayButton",EB);function FB(a,b){rB.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=T("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";wB(c.g,!0)}else wB(c.g,
1316
+ c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?CB(c.controls):DB(c.controls)});this.ad&&(this.g(),this.h())}pa(BB,rB);BB.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.u.paused&&!a.V;return a};
1317
+ BB.prototype.g=function(){};BB.prototype.h=function(){};L("shaka.ui.PlayButton",BB);function EB(a,b){BB.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}pa(EB,BB);EB.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};EB.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};L("shaka.ui.BigPlayButton",EB);function FB(a,b){rB.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=T("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";wB(c.g,!0)}else wB(c.g,
1316
1318
  !1)});this.eventManager.o(window,"click",function(){wB(c.g,!1)});GB(this)}pa(FB,rB);FB.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];rB.prototype.release.call(this)};function HB(a,b){IB.set(a,b)}function GB(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=IB.get(c);d?a.i.push(d.create(a.g,a.controls)):Ta("Unrecognized context menu element:",c)}}L("shaka.ui.ContextMenu",FB);
1317
- FB.registerElement=HB;var IB=new Map;function JB(a,b){rB.call(this,a,b);var c=this;this.m=null;this.s=!1;this.j=new Fd(function(){0!=parseInt(c.h.textContent,10)&&(c.video.currentTime=c.controls.zf()+parseInt(c.h.textContent,10));c.g.style.opacity="0";c.s=!1;c.h.textContent="0s"});this.g=T("div");this.parent.appendChild(this.g);this.eventManager.o(this.g,"touchend",function(d){c.controls.Zb()&&(c.controls.jd()?(d.preventDefault(),c.controls.pc()):0<c.controls.g.tapSeekDistance&&((d.preventDefault(),d=c.controls.g.tapSeekDistance,c.s)?
1318
- c.m+1E3>Date.now()&&(c.j.stop(),c.m=Date.now(),c.h.textContent=(c.l?parseInt(c.h.textContent,10)-d:parseInt(c.h.textContent,10)+d).toString()+"s",c.g.style.opacity="1",c.j.R(1)):(c.s=!0,c.m=Date.now(),c.j.R(1))))});this.h=T("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=T("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.l=!1}pa(JB,rB);L("shaka.ui.HiddenSeekButton",JB);function KB(a,b){JB.call(this,a,b);this.g.classList.add("shaka-fast-foward-container");this.i.textContent="fast_forward";this.l=!1}pa(KB,JB);L("shaka.ui.HiddenFastForwardButton",KB);function LB(a,b){JB.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.l=!0}pa(LB,JB);L("shaka.ui.HiddenRewindButton",LB);function MB(a,b,c,d){rB.call(this,a,b);var e=this;this.container=T("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,w(c));this.h=!1;this.bar=document.createElement("input");this.J=new Fd(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,w(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1319
- this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Zb()&&(e.h=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Zb()&&(e.h=!0,NB(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.h&&(NB(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.h&&(e.h=!1,NB(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
1319
+ FB.registerElement=HB;var IB=new Map;function JB(a,b){rB.call(this,a,b);var c=this;this.m=null;this.s=!1;this.j=new Fd(function(){0!=parseInt(c.h.textContent,10)&&(c.video.currentTime=c.controls.Df()+parseInt(c.h.textContent,10));c.g.style.opacity="0";c.s=!1;c.h.textContent="0s"});this.g=T("div");this.parent.appendChild(this.g);this.eventManager.o(this.g,"touchend",function(d){c.controls.$b()&&(c.controls.md()?(d.preventDefault(),c.controls.sc()):0<c.controls.g.tapSeekDistance&&((d.preventDefault(),d=c.controls.g.tapSeekDistance,c.s)?
1320
+ c.m+1E3>Date.now()&&(c.j.stop(),c.m=Date.now(),c.h.textContent=(c.l?parseInt(c.h.textContent,10)-d:parseInt(c.h.textContent,10)+d).toString()+"s",c.g.style.opacity="1",c.j.S(1)):(c.s=!0,c.m=Date.now(),c.j.S(1))))});this.h=T("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=T("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.l=!1}pa(JB,rB);L("shaka.ui.HiddenSeekButton",JB);function KB(a,b){JB.call(this,a,b);this.g.classList.add("shaka-fast-foward-container");this.i.textContent="fast_forward";this.l=!1}pa(KB,JB);L("shaka.ui.HiddenFastForwardButton",KB);function LB(a,b){JB.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.l=!0}pa(LB,JB);L("shaka.ui.HiddenRewindButton",LB);function MB(a,b,c,d){rB.call(this,a,b);var e=this;this.container=T("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,w(c));this.h=!1;this.bar=document.createElement("input");this.J=new Fd(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,w(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1321
+ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.$b()&&(e.h=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.$b()&&(e.h=!0,NB(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.h&&(NB(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.h&&(e.h=!1,NB(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
1320
1322
  "touchcancel",function(f){e.h&&(e.h=!1,NB(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,"mouseup",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}pa(MB,rB);p=MB.prototype;p.release=function(){this.J&&(this.J.stop(),this.J=null);rB.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};
1321
- p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){};p.changeTo=function(a){this.h||(this.h=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.J.R(.5)};p.getValue=function(){return parseFloat(this.bar.value)};p.setValue=function(a){this.h||(this.bar.value=a)};
1323
+ p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){};p.changeTo=function(a){this.h||(this.h=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.J.S(.5)};p.getValue=function(){return parseFloat(this.bar.value)};p.setValue=function(a){this.h||(this.bar.value=a)};
1322
1324
  function NB(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}L("shaka.ui.RangeElement",MB);MB.prototype.setValue=MB.prototype.setValue;MB.prototype.getValue=MB.prototype.getValue;MB.prototype.changeTo=MB.prototype.changeTo;MB.prototype.onChangeEnd=MB.prototype.onChangeEnd;MB.prototype.onChange=MB.prototype.onChange;MB.prototype.onChangeStart=MB.prototype.onChangeStart;
1323
- MB.prototype.setRange=MB.prototype.setRange;function OB(a,b){MB.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.G=T("div");this.G.classList.add("shaka-ad-markers");this.container.insertBefore(this.G,this.container.childNodes[0]);this.m=this.controls.g;this.u=new Fd(function(){var d=c.getValue();c.player.S()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.K=new Fd(function(){PB(c)});this.I=new Jf;this.H=T("div");this.H.id="shaka-player-ui-chapters-container";
1325
+ MB.prototype.setRange=MB.prototype.setRange;function OB(a,b){MB.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.G=T("div");this.G.classList.add("shaka-ad-markers");this.container.insertBefore(this.G,this.container.childNodes[0]);this.m=this.controls.g;this.u=new Fd(function(){var d=c.getValue();c.player.R()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.K=new Fd(function(){PB(c)});this.I=new Jf;this.H=T("div");this.H.id="shaka-player-ui-chapters-container";
1324
1326
  this.container.appendChild(this.H);QB(this);this.M=!1;this.i=T("div");this.i.id="shaka-player-ui-thumbnail-container";this.g=T("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.C=T("div");this.C.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.C);this.container.appendChild(this.i);this.j=this.l=null;this.L=!1;this.s=new Fd(function(){RB(c)});this.D=[];this.eventManager.o(this.localization,"locale-updated",function(){return SB(c)});this.eventManager.o(this.localization,
1325
- "locale-changed",function(){return SB(c)});this.eventManager.o(this.adManager,"ad-started",function(){TB(c)||wB(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){TB(c)&&wB(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.D=d.cuepoints;UB(c)});this.eventManager.o(this.player,"unloading",function(){c.D=[];UB(c);c.j&&(c.j.abort(),c.j=null);c.l=null;RB(c)});this.eventManager.o(this.bar,"mousemove",function(d){if(c.player.$d().length){var e=
1326
- c.bar.getBoundingClientRect(),f=parseFloat(c.bar.min);d=d.clientX-e.left;VB(c,d,Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d))}else RB(c)});this.eventManager.o(this.container,"mouseleave",function(){c.s.stop();c.s.R(.25)});this.setValue(this.video.currentTime);this.update();SB(this);this.ad&&wB(this.container,!1)}pa(OB,MB);p=OB.prototype;p.release=function(){this.u&&(this.u.stop(),this.u=null,this.K.stop(),this.K=null);this.I.release();MB.prototype.release.call(this)};
1327
- p.onChangeStart=function(){this.M=!this.video.paused;this.controls.jg(!0);this.video.pause();this.s.stop();this.L=!0};p.onChange=function(){if(this.video.duration)if(this.update(),this.u.R(.125),this.player.$d().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());VB(this,(d-a)/((b-a)/c.width),d)}else RB(this)};
1328
- p.onChangeEnd=function(){this.u.Ma();this.controls.jg(!1);this.M&&this.video.play();this.L&&(this.L=!1,this.s.stop(),this.s.R(.25))};p.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1329
- p.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ga(),g=f.end-f.start;this.setRange(f.start,f.end);TB(this)?(wB(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
1327
+ "locale-changed",function(){return SB(c)});this.eventManager.o(this.adManager,"ad-started",function(){TB(c)||wB(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){TB(c)&&wB(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.D=d.cuepoints;UB(c)});this.eventManager.o(this.player,"unloading",function(){c.D=[];UB(c);c.j&&(c.j.abort(),c.j=null);c.l=null;RB(c)});this.eventManager.o(this.bar,"mousemove",function(d){if(c.player.ce().length){var e=
1328
+ c.bar.getBoundingClientRect(),f=parseFloat(c.bar.min);d=d.clientX-e.left;VB(c,d,Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d))}else RB(c)});this.eventManager.o(this.container,"mouseleave",function(){c.s.stop();c.s.S(.25)});this.setValue(this.video.currentTime);this.update();SB(this);this.ad&&wB(this.container,!1)}pa(OB,MB);p=OB.prototype;p.release=function(){this.u&&(this.u.stop(),this.u=null,this.K.stop(),this.K=null);this.I.release();MB.prototype.release.call(this)};
1329
+ p.onChangeStart=function(){this.M=!this.video.paused;this.controls.og(!0);this.video.pause();this.s.stop();this.L=!0};p.onChange=function(){if(this.video.duration)if(this.update(),this.u.S(.125),this.player.ce().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());VB(this,(d-a)/((b-a)/c.width),d)}else RB(this)};
1330
+ p.onChangeEnd=function(){this.u.Na();this.controls.og(!1);this.M&&this.video.play();this.L&&(this.L=!1,this.s.stop(),this.s.S(.25))};p.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1331
+ p.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ba(),g=f.end-f.start;this.setRange(f.start,f.end);TB(this)?(wB(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
1330
1332
  a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):wB(this.container,!1)};
1331
- function PB(a){if(a.D.length){for(var b=a.player.Ga(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(a.D),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1332
- 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.G.style.background="linear-gradient("+d.join(",")+")"}else a.G.style.background="transparent"}function UB(a){PB(a);var b=a.player.Ga();b=b.end-b.start;a.player.S()&&5<b&&a.K.xa(1)}function TB(a){var b=a.player.Ga();b=b.end-b.start;return a.player.S()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function SB(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1333
- function VB(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;K(function(C){switch(C.g){case 1:d=WB(a);if(!d)return RB(a),C.return();0>c&&(c=0);e=a.player.Ga();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return D(C,a.player.Cf(d.id,f),2);case 2:g=C.h;if(!g||!g.uris.length)return RB(a),C.return();a.player.S()?(h=e.end-c,a.C.textContent=1>h?a.localization.resolve("LIVE"):"-"+XB(h)):a.C.textContent=XB(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1334
- -(m-k)+"px";n=Math.min(a.bar.offsetWidth-l,Math.max(0,b-l/2));a.i.style.left=n+"px";a.i.style.visibility="visible";r=g.uris[0].split("#xywh=")[0];if(a.l&&r===a.l.uris[0].split("#xywh=")[0]&&g.segment.Wb()==a.l.segment.Wb()&&g.segment.Sb()==a.l.segment.Sb()){C.F(3);break}a.l=g;a.j&&(a.j.abort(),a.j=null);if("mjpg"!=d.codecs&&!r.startsWith("offline:")){C.F(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';ta(C,5);q=Ff;u=nk(g.segment.ba(),g.segment.Wb(),g.segment.Sb(),a.player.getConfiguration().streaming.retryParameters);
1335
- a.j=a.player.Tb().request(q,u,{type:1});return D(C,a.j.promise,7);case 7:v=C.h;a.j=null;"mjpg"==d.codecs?(y=(new ag).box("mdat",jg(function(E){r=URL.createObjectURL(new Blob([E],{type:"image/jpeg"}))})),y.parse(v.data,!1)):(z=d.mimeType||"image/jpeg",x=new Blob([v.data],{type:z}),r=URL.createObjectURL(x));va(C,4);break;case 5:B=wa(C);if(7001==B.code)return C.return();throw B;case 4:try{a.i.removeChild(a.g)}catch(E){}a.g=T("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=r;
1333
+ function PB(a){if(a.D.length){for(var b=a.player.Ba(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(a.D),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1334
+ 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.G.style.background="linear-gradient("+d.join(",")+")"}else a.G.style.background="transparent"}function UB(a){PB(a);var b=a.player.Ba();b=b.end-b.start;a.player.R()&&5<b&&a.K.za(1)}function TB(a){var b=a.player.Ba();b=b.end-b.start;return a.player.R()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function SB(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1335
+ function VB(a,b,c){var d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;K(function(C){switch(C.g){case 1:d=WB(a);if(!d)return RB(a),C.return();0>c&&(c=0);e=a.player.Ba();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return D(C,a.player.Gf(d.id,f),2);case 2:g=C.h;if(!g||!g.uris.length)return RB(a),C.return();a.player.R()?(h=e.end-c,a.C.textContent=1>h?a.localization.resolve("LIVE"):"-"+XB(h)):a.C.textContent=XB(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1336
+ -(m-k)+"px";n=Math.min(a.bar.offsetWidth-l,Math.max(0,b-l/2));a.i.style.left=n+"px";a.i.style.visibility="visible";r=g.uris[0].split("#xywh=")[0];if(a.l&&r===a.l.uris[0].split("#xywh=")[0]&&g.segment.Xb()==a.l.segment.Xb()&&g.segment.Ub()==a.l.segment.Ub()){C.F(3);break}a.l=g;a.j&&(a.j.abort(),a.j=null);if("mjpg"!=d.codecs&&!r.startsWith("offline:")){C.F(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';ta(C,5);q=Ff;u=nk(g.segment.ba(),g.segment.Xb(),g.segment.Ub(),a.player.getConfiguration().streaming.retryParameters);
1337
+ a.j=a.player.Vb().request(q,u,{type:1});return D(C,a.j.promise,7);case 7:v=C.h;a.j=null;"mjpg"==d.codecs?(y=(new ag).box("mdat",jg(function(E){r=URL.createObjectURL(new Blob([E],{type:"image/jpeg"}))})),y.parse(v.data,!1)):(z=d.mimeType||"image/jpeg",x=new Blob([v.data],{type:z}),r=URL.createObjectURL(x));va(C,4);break;case 5:B=wa(C);if(7001==B.code)return C.return();throw B;case 4:try{a.i.removeChild(a.g)}catch(E){}a.g=T("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=r;
1336
1338
  a.g.onload=function(){r.startsWith("blob:")&&URL.revokeObjectURL(r)};a.i.insertBefore(a.g,a.i.firstChild);case 3:A=l/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+A*g.positionX+"px",a.g.style.top="-"+A*g.positionY+"px",a.g.style.transform="scale("+A+")",a.g.style.transformOrigin="left top",m=Math.floor(l*g.height/
1337
1339
  g.width),a.i.style.height=m+"px",a.i.style.top=-(m-k)+"px",F(C)}})}
1338
- function WB(a){var b=a.player.$d();if(!b.length)return null;for(var c={},d=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),e=d.next();!e.done;c={Le:c.Le,Je:c.Je},e=d.next())if(c.Le=e.value,c.Je=a.player.getStats().estimatedBandwidth,(e=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Le&&g.bandwidth<.01*f.Je}}(c)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&e.length)return e[0];return b.find(function(f){return"application/mp4"==f.mimeType&&
1340
+ function WB(a){var b=a.player.ce();if(!b.length)return null;for(var c={},d=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),e=d.next();!e.done;c={Qe:c.Qe,Oe:c.Oe},e=d.next())if(c.Qe=e.value,c.Oe=a.player.getStats().estimatedBandwidth,(e=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Qe&&g.bandwidth<.01*f.Oe}}(c)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&e.length)return e[0];return b.find(function(f){return"application/mp4"==f.mimeType&&
1339
1341
  "mjpg"==f.codecs})||b[0]}function RB(a){a.i.style.visibility="hidden";a.C.textContent=""}function XB(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}
1340
- function QB(a){function b(){for(var f="und",g=[],h=t(Array.from(a.localization.g)),k=h.next();!k.done&&(f=k.value,g=a.player.yf(f),!g.length);k=h.next());g.length||(f="und",g=a.player.yf(f));h=f!==d;k=e.length!==g.length||!e.some(function(l,m){m=g.at(m);return c(l,m)||g.some(function(n){return c(l,n)})});d=f;e=g;g.length?(h||k)&&YB(a,e):ZB(a)}function c(f,g){return!f&&!g||f.id===g.id&&f.title===g.title&&f.startTime===g.startTime&&f.endTime===g.endTime}var d="und",e=[];b();a.eventManager.o(a.player,
1342
+ function QB(a){function b(){for(var f="und",g=[],h=t(Array.from(a.localization.g)),k=h.next();!k.done&&(f=k.value,g=a.player.Cf(f),!g.length);k=h.next());g.length||(f="und",g=a.player.Cf(f));h=f!==d;k=e.length!==g.length||!e.some(function(l,m){m=g.at(m);return c(l,m)||g.some(function(n){return c(l,n)})});d=f;e=g;g.length?(h||k)&&YB(a,e):ZB(a)}function c(f,g){return!f&&!g||f.id===g.id&&f.title===g.title&&f.startTime===g.startTime&&f.endTime===g.endTime}var d="und",e=[];b();a.eventManager.o(a.player,
1341
1343
  "unloading",function(){ZB(a);d="und";e=[]});a.eventManager.o(a.player,"trackschanged",b);a.eventManager.o(a.localization,"locale-updated",function(){b()});a.eventManager.o(a.localization,"locale-changed",function(){b()})}
1342
- function YB(a,b){ZB(a);var c=a.player.Ga(),d=[];b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(e.startTime>=c.end)){var f=e.startTime>c.start?e.startTime:c.start,g=e.endTime<c.end?e.endTime:c.end;d.push({start:f,end:g,size:g-f,title:e.title,id:e.id})}if(!(2>d.length)){c=d.reduce(function(k,l){return k+=l.size},0);var h=[];d=t(d);for(e=d.next();!e.done;e=d.next())b=e.value,e=T("div"),e.classList.add("shaka-chapter"),e.style.width=100*b.size/c+"%",a.H.appendChild(e),f=T("div"),f.style.borderColor=
1343
- a.m.seekBarColors.chapterMarks,e.appendChild(f),f=T("p"),f.classList.add("shaka-chapter-label","shaka-hidden"),f.style.color=a.m.seekBarColors.chapterLabels,f.innerText=b.title,e.appendChild(f),h.push({start:b.start,end:b.end,Yd:f});a.I.o(a.bar,"pointermove",function(k){if(k.target){var l=k.target;k=k.offsetX/l.clientWidth;l=parseInt(l.getAttribute("max"),10);l*=k;k=t(h);for(var m=k.next();!m.done;m=k.next())m=m.value,(m.start<=l&&l<m.end)===m.Yd.classList.contains("shaka-hidden")&&m.Yd.classList.toggle("shaka-hidden")}},
1344
- {passive:!0});a.I.o(a.bar,"pointerout",function(){for(var k=t(h),l=k.next();!l.done;l=k.next())l=l.value,l.Yd.classList.contains("shaka-hidden")||l.Yd.classList.add("shaka-hidden")},{passive:!0})}}function ZB(a){a.I.Lb();el(a.H)}L("shaka.ui.SeekBar",OB);function $B(){}$B.prototype.create=function(a,b){return new OB(a,b)};OB.Factory=$B;function Y(a,b,c,d){bb.call(this);var e=this;this.N=!0;this.g=d;this.C=new No(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.sa=!0;this.u=this.C.Yb();this.s=c;this.G=this.C.Gc();this.ra=a;this.j=b;this.Ta=this.G.Zd();this.l=this.m=null;this.V=!1;this.H=[];this.Qb=[];this.Db=!1;this.Z=new Fd(function(){e.j.style.cursor="none";e.Db=!1;aC(e)});this.aa=new Fd(function(){e.h.removeAttribute("shown");e.I.R(2)});this.I=new Fd(function(){for(var f=t(e.H),g=f.next();!g.done;g=f.next())wB(g.value,
1345
- !1)});this.Na=new Fd(function(){e.Zb()&&bC(e)});this.J=null;this.D=[];this.za=cC();this.i=new Jf;this.configure(this.g);dC(this);this.ha=new Set;eC(this);this.Na.xa(.125);this.i.o(this.za,"locale-changed",function(f){e.Ta.setLocale(f.locales[0])})}pa(Y,bb);p=Y.prototype;
1346
- p.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.s){b.F(2);break}return D(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.Na&&(a.Na.stop(),a.Na=null);fC(a);a.h&&(a.j.removeChild(a.h),a.h=null);if(!a.C){b.F(4);break}return D(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ra){b.F(6);break}return D(b,a.ra.destroy(),7);case 7:a.ra=
1347
- null;case 6:a.G=null,a.s=null,a.u=null,a.za=null,a.ha.clear(),bb.prototype.release.call(a),F(b)}})};function fC(a){for(var b=t(a.D),c=b.next();!c.done;c=b.next())c.value.release();a.D=[]}function gC(a,b){hC.set(a,b)}p.Fh=function(a){this.sa=a;eC(this)};p.Ki=function(){aC(this)};
1348
- p.configure=function(a){this.g=a;this.C.Cg(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.zb&&(this.zb=null);this.Ua&&(this.Ua=null);this.h?(el(this.h),fC(this)):(iC(this),jC(this));this.j.classList.add("shaka-video-container");this.s.classList.add("shaka-video");kC(this);this.g.addBigPlayButton&&lC(this);this.g.customContextMenu&&(this.Ua=new FB(this.U,this),this.D.push(this.Ua));this.$||mC(this);this.g.seekOnTaps&&(nC(this),oC(this));this.Cb=T("div");this.Cb.classList.add("shaka-server-side-ad-container");
1349
- this.h.appendChild(this.Cb);pC(this);this.H=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.H.push.apply(this.H,w(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));qC(this);this.Qb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));aC(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.o(b,"click",c);this.i.o(b,"dblclick",
1350
- c)}};p.fg=function(a){(this.N=a)?(this.j.setAttribute("shaka-controls","true"),this.s.tabIndex=-1,this.s.controls=!1):this.j.removeAttribute("shaka-controls");aC(this)};p.jh=function(a){this.s.controls=a;this.s.tabIndex=a?0:-1;a&&this.fg(!1)};p.getAd=function(){return this.m};p.Qh=function(){return this.C};p.bi=function(){return this.za};p.wi=function(){return this.j};p.Yb=function(){return this.u};p.ai=function(){return this.s};p.Gc=function(){return this.G};p.$h=function(){return this.ra};
1351
- p.Uh=function(){return this.h};p.mi=function(){return this.Cb};p.Rh=function(){return this.M};p.Sh=function(){return this.g};p.Ii=function(){return this.V};p.jg=function(a){this.V=a};p.Ci=function(){return this.sa};p.zf=function(){return this.l?this.l.getValue():this.u.currentTime};p.kh=function(a){this.J=a};p.jd=function(){return this.H.some(function(a){return!a.classList.contains("shaka-hidden")})};p.pc=function(){this.I.Ma()};
1352
- p.vd=function(){return document.fullscreenEnabled||this.s.webkitSupportsFullscreen?!0:!1};p.Lc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.s;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1344
+ function YB(a,b){ZB(a);var c=a.player.Ba(),d=[];b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(e.startTime>=c.end)){var f=e.startTime>c.start?e.startTime:c.start,g=e.endTime<c.end?e.endTime:c.end;d.push({start:f,end:g,size:g-f,title:e.title,id:e.id})}if(!(2>d.length)){c=d.reduce(function(k,l){return k+=l.size},0);var h=[];d=t(d);for(e=d.next();!e.done;e=d.next())b=e.value,e=T("div"),e.classList.add("shaka-chapter"),e.style.width=100*b.size/c+"%",a.H.appendChild(e),f=T("div"),f.style.borderColor=
1345
+ a.m.seekBarColors.chapterMarks,e.appendChild(f),f=T("p"),f.classList.add("shaka-chapter-label","shaka-hidden"),f.style.color=a.m.seekBarColors.chapterLabels,f.innerText=b.title,e.appendChild(f),h.push({start:b.start,end:b.end,ae:f});a.I.o(a.bar,"pointermove",function(k){if(k.target){var l=k.target;k=k.offsetX/l.clientWidth;l=parseInt(l.getAttribute("max"),10);l*=k;k=t(h);for(var m=k.next();!m.done;m=k.next())m=m.value,(m.start<=l&&l<m.end)===m.ae.classList.contains("shaka-hidden")&&m.ae.classList.toggle("shaka-hidden")}},
1346
+ {passive:!0});a.I.o(a.bar,"pointerout",function(){for(var k=t(h),l=k.next();!l.done;l=k.next())l=l.value,l.ae.classList.contains("shaka-hidden")||l.ae.classList.add("shaka-hidden")},{passive:!0})}}function ZB(a){a.I.bb();el(a.H)}L("shaka.ui.SeekBar",OB);function $B(){}$B.prototype.create=function(a,b){return new OB(a,b)};OB.Factory=$B;function Y(a,b,c,d){bb.call(this);var e=this;this.N=!0;this.g=d;this.C=new No(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.ua=!0;this.u=this.C.Zb();this.s=c;this.G=this.C.Kc();this.sa=a;this.j=b;this.Ua=this.G.be();this.l=this.m=null;this.V=!1;this.H=[];this.Sb=[];this.Fb=!1;this.Z=new Fd(function(){e.j.style.cursor="none";e.Fb=!1;aC(e)});this.aa=new Fd(function(){e.h.removeAttribute("shown");e.I.S(2)});this.I=new Fd(function(){for(var f=t(e.H),g=f.next();!g.done;g=f.next())wB(g.value,
1347
+ !1)});this.Oa=new Fd(function(){e.$b()&&bC(e)});this.J=null;this.D=[];this.va=cC();this.i=new Jf;this.configure(this.g);dC(this);this.ha=new Set;eC(this);this.Oa.za(.125);this.i.o(this.va,"locale-changed",function(f){e.Ua.setLocale(f.locales[0])})}pa(Y,bb);p=Y.prototype;
1348
+ p.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.s){b.F(2);break}return D(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.Oa&&(a.Oa.stop(),a.Oa=null);fC(a);a.h&&(a.j.removeChild(a.h),a.h=null);if(!a.C){b.F(4);break}return D(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.sa){b.F(6);break}return D(b,a.sa.destroy(),7);case 7:a.sa=
1349
+ null;case 6:a.G=null,a.s=null,a.u=null,a.va=null,a.ha.clear(),bb.prototype.release.call(a),F(b)}})};function fC(a){for(var b=t(a.D),c=b.next();!c.done;c=b.next())c.value.release();a.D=[]}function gC(a,b){hC.set(a,b)}p.Ih=function(a){this.ua=a;eC(this)};p.Oi=function(){aC(this)};
1350
+ p.configure=function(a){this.g=a;this.C.Hg(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.Cb&&(this.Cb=null);this.Va&&(this.Va=null);this.h?(el(this.h),fC(this)):(iC(this),jC(this));this.j.classList.add("shaka-video-container");this.s.classList.add("shaka-video");kC(this);this.g.addBigPlayButton&&lC(this);this.g.customContextMenu&&(this.Va=new FB(this.U,this),this.D.push(this.Va));this.$||mC(this);this.g.seekOnTaps&&(nC(this),oC(this));this.ub=T("div");this.ub.classList.add("shaka-server-side-ad-container");
1351
+ this.h.appendChild(this.ub);pC(this);this.H=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.H.push.apply(this.H,w(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));qC(this);this.Sb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));aC(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.o(b,"click",c);this.i.o(b,"dblclick",
1352
+ c)}};p.jg=function(a){(this.N=a)?(this.j.setAttribute("shaka-controls","true"),this.s.tabIndex=-1,this.s.controls=!1):this.j.removeAttribute("shaka-controls");aC(this)};p.nh=function(a){this.s.controls=a;this.s.tabIndex=a?0:-1;a&&this.jg(!1)};p.getAd=function(){return this.m};p.Th=function(){return this.C};p.ei=function(){return this.va};p.Ai=function(){return this.j};p.Zb=function(){return this.u};p.di=function(){return this.s};p.Kc=function(){return this.G};p.ci=function(){return this.sa};
1353
+ p.Xh=function(){return this.h};p.pi=function(){return this.ub};p.Uh=function(){return this.M};p.Vh=function(){return this.g};p.Li=function(){return this.V};p.og=function(a){this.V=a};p.Fi=function(){return this.ua};p.Df=function(){return this.l?this.l.getValue():this.u.currentTime};p.oh=function(a){this.J=a};p.md=function(){return this.H.some(function(a){return!a.classList.contains("shaka-hidden")})};p.sc=function(){this.I.Na()};
1354
+ p.yd=function(){return document.fullscreenEnabled||this.s.webkitSupportsFullscreen?!0:!1};p.Oc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.s;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1353
1355
  function rC(a){var b,c,d;return K(function(e){switch(e.g){case 1:ta(e,2);if(!document.fullscreenEnabled){b=a.s;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.F(4);break}if(!document.pictureInPictureElement){e.F(5);break}return D(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,D(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.F(4);break}ta(e,9);return D(e,screen.orientation.lock("landscape"),11);case 11:va(e,
1354
- 4,2);break;case 9:wa(e,2);case 4:va(e,0);break;case 2:d=wa(e),a.dispatchEvent(new N("error",(new Map).set("detail",d))),F(e)}})}function sC(a){var b;return K(function(c){if(!document.fullscreenEnabled)return b=a.s,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.F(0);screen.orientation&&screen.orientation.unlock();return D(c,document.exitFullscreen(),0)})}p.Ee=function(){var a=this;return K(function(b){return a.Lc()?D(b,sC(a),0):D(b,rC(a),0)})};
1355
- p.Mc=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.s.disablePictureInPicture:!1};p.Gf=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
1356
- p.Fe=function(){var a=this,b,c;return K(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?D(d,tC(a),5):document.pictureInPictureElement?D(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.s,D(d,b.requestPictureInPicture(),5));if(2!=d.g)return va(d,0);c=wa(d);a.dispatchEvent(new N("error",(new Map).set("detail",c)));F(d)})};
1356
+ 4,2);break;case 9:wa(e,2);case 4:va(e,0);break;case 2:d=wa(e),a.dispatchEvent(new N("error",(new Map).set("detail",d))),F(e)}})}function sC(a){var b;return K(function(c){if(!document.fullscreenEnabled)return b=a.s,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.F(0);screen.orientation&&screen.orientation.unlock();return D(c,document.exitFullscreen(),0)})}p.Je=function(){var a=this;return K(function(b){return a.Oc()?D(b,sC(a),0):D(b,rC(a),0)})};
1357
+ p.Pc=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.s.disablePictureInPicture:!1};p.Kf=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
1358
+ p.Ke=function(){var a=this,b,c;return K(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?D(d,tC(a),5):document.pictureInPictureElement?D(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.s,D(d,b.requestPictureInPicture(),5));if(2!=d.g)return va(d,0);c=wa(d);a.dispatchEvent(new N("error",(new Map).set("detail",c)));F(d)})};
1357
1359
  function tC(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.j;c=b.getBoundingClientRect();return D(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;uC(d);e=b.parentNode||document.body;f=a.j.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
1358
1360
  d.document.head.append(g);d.document.body.append(b);a.i.na(d,"pagehide",function(){f.replaceWith(b)});F(h)})}
1359
- function uC(a){var b=[].concat(w(document.styleSheets)).map(function(d){try{return[].concat(w(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}p.oh=function(){wB(this.K,!0);wB(this.M,!0);this.h.setAttribute("ad-active","true")};
1360
- p.Pg=function(){wB(this.K,!1);wB(this.M,!1);this.h.removeAttribute("ad-active")};function DB(a){a.N&&a.u.duration&&(a.G.Ze(),a.u.paused&&!a.V?a.u.play():a.u.pause())}function CB(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1361
- function iC(a){a.h=T("div");a.h.classList.add("shaka-controls-container");a.j.appendChild(a.h);a.j.setAttribute("shaka-controls","true");a.i.o(a.h,"touchstart",function(b){a.u.duration&&(a.Zb()?a.J=Date.now():(vC(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.o(a.h,"click",function(){wC(a)});a.i.o(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.vd()&&a.Ee()})}
1362
- function lC(a){var b=T("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.zb=new EB(b,a);a.D.push(a.zb)}function kC(a){var b=T("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function xC(a){a.K=T("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();wB(a.K,b);a.L.appendChild(a.K);b=new zB(a.K,a);a.D.push(b);b=new yB(a.K,a);a.D.push(b)}
1361
+ function uC(a){var b=[].concat(w(document.styleSheets)).map(function(d){try{return[].concat(w(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}p.rh=function(){wB(this.K,!0);wB(this.M,!0);this.h.setAttribute("ad-active","true")};
1362
+ p.Ug=function(){wB(this.K,!1);wB(this.M,!1);this.h.removeAttribute("ad-active")};function DB(a){a.N&&a.u.duration&&(a.G.nd(),a.u.paused&&!a.V?a.u.play():a.u.pause())}function CB(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1363
+ function iC(a){a.h=T("div");a.h.classList.add("shaka-controls-container");a.j.appendChild(a.h);a.j.setAttribute("shaka-controls","true");a.i.o(a.h,"touchstart",function(b){a.u.duration&&(a.$b()?a.J=Date.now():(vC(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.o(a.h,"click",function(){wC(a)});a.i.o(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.yd()&&a.Je()})}
1364
+ function lC(a){var b=T("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Cb=new EB(b,a);a.D.push(a.Cb)}function kC(a){var b=T("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function xC(a){a.K=T("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();wB(a.K,b);a.L.appendChild(a.K);b=new zB(a.K,a);a.D.push(b);b=new yB(a.K,a);a.D.push(b)}
1363
1365
  function mC(a){a.$=T("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=T("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1364
- "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function nC(a){var b=T("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.ic=new KB(b,a);a.D.push(a.ic)}function oC(a){var b=T("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Jc=new LB(b,a);a.D.push(a.Jc)}
1365
- function pC(a){a.L=T("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.h.appendChild(a.L);a.i.o(a.L,"click",function(d){d.target.closest(".shaka-overflow-button")||a.pc()});xC(a);a.U=T("div");a.U.classList.add("shaka-controls-button-panel");a.U.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.U.classList.add("shaka-tooltips-on");a.L.appendChild(a.U);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,hC.get(c)?
1366
+ "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function nC(a){var b=T("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.kc=new KB(b,a);a.D.push(a.kc)}function oC(a){var b=T("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.rc=new LB(b,a);a.D.push(a.rc)}
1367
+ function pC(a){a.L=T("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.h.appendChild(a.L);a.i.o(a.L,"click",function(d){d.target.closest(".shaka-overflow-button")||a.sc()});xC(a);a.U=T("div");a.U.classList.add("shaka-controls-button-panel");a.U.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.U.classList.add("shaka-tooltips-on");a.L.appendChild(a.U);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,hC.get(c)?
1366
1368
  (c=hC.get(c).create(a.U,a),a.D.push(c)):Ta("Unrecognized control panel element requested:",c)}function qC(a){if(a.g.addSeekBar)a.l=yC.create(a.L,a),a.D.push(a.l);else{a=t(a.H);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function jC(a){a.M=T("div");a.M.classList.add("shaka-client-side-ad-container");wB(a.M,!1);a.i.o(a.M,"click",function(){wC(a)});a.j.appendChild(a.M)}
1367
- function dC(a){a.i.o(a.G,"buffering",function(){a.N&&wB(a.$,a.G.ud())});a.N&&wB(a.$,a.G.ud());a.i.o(window,"keydown",function(b){zC(a,b)});a.i.o(window,"click",function(){return a.pc()});a.i.o(a,"submenuopen",function(){a.pc()});a.i.o(a.u,"play",function(){aC(a)});a.i.o(a.u,"pause",function(){aC(a)});a.i.o(a.j,"mousemove",function(b){vC(a,b)});a.i.o(a.j,"touchmove",function(b){vC(a,b)},{passive:!0});a.i.o(a.j,"touchend",function(b){vC(a,b)},{passive:!0});a.i.o(a.j,"mouseleave",function(){a.J||a.Z.Ma()});
1369
+ function dC(a){a.i.o(a.G,"buffering",function(){a.N&&wB(a.$,a.G.xd())});a.N&&wB(a.$,a.G.xd());a.i.o(window,"keydown",function(b){zC(a,b)});a.i.o(window,"click",function(){return a.sc()});a.i.o(a,"submenuopen",function(){a.sc()});a.i.o(a.u,"play",function(){aC(a)});a.i.o(a.u,"pause",function(){aC(a)});a.i.o(a.j,"mousemove",function(b){vC(a,b)});a.i.o(a.j,"touchmove",function(b){vC(a,b)},{passive:!0});a.i.o(a.j,"touchend",function(b){vC(a,b)},{passive:!0});a.i.o(a.j,"mouseleave",function(){a.J||a.Z.Na()});
1368
1370
  a.i.o(a.C,"caststatuschanged",function(){eC(a)});a.i.o(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&vC(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),AC(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),
1369
- AC(a,a.l.getValue()+c));break;case "PageDown":a.l&&e&&0<c&&(b.preventDefault(),AC(a,a.l.getValue()-f));break;case "PageUp":a.l&&e&&0<c&&(b.preventDefault(),AC(a,a.l.getValue()+f));break;case "Home":a.l&&AC(a,a.G.Ga().start);break;case "End":a.l&&AC(a,a.G.Ga().end);break;case "f":a.vd()&&a.Ee();break;case "m":a.m&&a.m.isLinear()?a.m.setMuted(!a.m.isMuted()):a.s.muted=!a.s.muted;break;case "p":a.Mc()&&a.Fe();break;case " ":e&&BC(a)}}});a.i.o(a.j,"keyup",function(b){a.ha.delete(b.key)});a.i.o(a.Ta,"ad-started",
1370
- function(b){a.m=b.ad;a.oh()});a.i.o(a.Ta,"ad-stopped",function(){a.m=null;a.Pg()});screen.orientation&&a.i.o(screen.orientation,"change",function(){return K(function(b){return D(b,CC(a),0)})})}function CC(a){return K(function(b){return a.u&&0!=a.u.readyState&&!a.C.Fa()&&a.g.enableFullscreenOnRotation&&a.vd()?screen.orientation.type.includes("landscape")&&!a.Lc()?D(b,rC(a),0):screen.orientation.type.includes("portrait")&&a.Lc()?D(b,sC(a),0):b.F(0):b.return()})}
1371
- function vC(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),aC(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.Db=!0,a.I.stop(),a.Zb()||(bC(a),aC(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.R(3))}function DC(a){return window.matchMedia("hover: hover").matches?a.Qb.some(function(b){return b.matches(":hover")}):!1}
1372
- function aC(a){var b=a.m?a.m.isPaused():!1,c=a.u.paused&&!a.V,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.Db||d||DC(a)?(bC(a),a.h.setAttribute("shown","true"),a.aa.stop()):a.aa.R(a.g.fadeDelay)}function wC(a){a.N&&(a.jd()?a.I.Ma():a.g.singleClickForPlayAndPause&&BC(a))}function BC(a){a.m&&a.m.isLinear()?CB(a):DB(a)}
1373
- function eC(a){var b=a.C.Fa();a.dispatchEvent(new N("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}p.Zb=function(){return this.N?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function AC(a,b){a.l.changeTo(b);a.Zb()&&bC(a)}
1371
+ AC(a,a.l.getValue()+c));break;case "PageDown":a.l&&e&&0<c&&(b.preventDefault(),AC(a,a.l.getValue()-f));break;case "PageUp":a.l&&e&&0<c&&(b.preventDefault(),AC(a,a.l.getValue()+f));break;case "Home":a.l&&AC(a,a.G.Ba().start);break;case "End":a.l&&AC(a,a.G.Ba().end);break;case "f":a.yd()&&a.Je();break;case "m":a.m&&a.m.isLinear()?a.m.setMuted(!a.m.isMuted()):a.s.muted=!a.s.muted;break;case "p":a.Pc()&&a.Ke();break;case " ":e&&BC(a)}}});a.i.o(a.j,"keyup",function(b){a.ha.delete(b.key)});a.i.o(a.Ua,"ad-started",
1372
+ function(b){a.m=b.ad;a.rh()});a.i.o(a.Ua,"ad-stopped",function(){a.m=null;a.Ug()});screen.orientation&&a.i.o(screen.orientation,"change",function(){return K(function(b){return D(b,CC(a),0)})})}function CC(a){return K(function(b){return a.u&&0!=a.u.readyState&&!a.C.Ha()&&a.g.enableFullscreenOnRotation&&a.yd()?screen.orientation.type.includes("landscape")&&!a.Oc()?D(b,rC(a),0):screen.orientation.type.includes("portrait")&&a.Oc()?D(b,sC(a),0):b.F(0):b.return()})}
1373
+ function vC(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),aC(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.Fb=!0,a.I.stop(),a.$b()||(bC(a),aC(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.S(3))}function DC(a){return window.matchMedia("hover: hover").matches?a.Sb.some(function(b){return b.matches(":hover")}):!1}
1374
+ function aC(a){var b=a.m?a.m.isPaused():!1,c=a.u.paused&&!a.V,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.Fb||d||DC(a)?(bC(a),a.h.setAttribute("shown","true"),a.aa.stop()):a.aa.S(a.g.fadeDelay)}function wC(a){a.N&&(a.md()?a.I.Na():a.g.singleClickForPlayAndPause&&BC(a))}function BC(a){a.m&&a.m.isLinear()?CB(a):DB(a)}
1375
+ function eC(a){var b=a.C.Ha();a.dispatchEvent(new N("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}p.$b=function(){return this.N?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function AC(a,b){a.l.changeTo(b);a.$b()&&bC(a)}
1374
1376
  function bC(a){if(a.l)if(a.l.setValue(a.u.currentTime),a.l.update(),a.l.isShowing())for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.H),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new N("timeandseekrangeupdated"))}
1375
- function zC(a,b){a.ha.add(b.key);var c=a.jd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),aC(a),a.i.o(window,"mousedown",function(){a.i.cc(window,"mousedown")}));"Escape"==b.key&&a.I.Ma();c&&a.ha.has("Tab")&&EC(a,b)}
1377
+ function zC(a,b){a.ha.add(b.key);var c=a.md();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),aC(a),a.i.o(window,"mousedown",function(){a.i.dc(window,"mousedown")}));"Escape"==b.key&&a.I.Na();c&&a.ha.has("Tab")&&EC(a,b)}
1376
1378
  function EC(a,b){var c=a.H.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ha.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1377
- function cC(){var a=new Wb("en");a.wa("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1379
+ function cC(){var a=new Wb("en");a.ya("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1378
1380
  ["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],
1379
1381
  ["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
1380
1382
  ["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],
1381
1383
  ["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESOLUTION","\u062f\u0631\u062c\u0629 \u0627\u0644\u062f\u0642\u0629"],["REWIND","\u062a\u0631\u062c\u064a\u0639"],["SEEK","\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_TO_LIVE","\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0628\u062b \u0645\u0628\u0627\u0634\u0631"],
1382
- ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.wa("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
1384
+ ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.ya("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
1383
1385
  ["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],
1384
1386
  ["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));
1385
- a.wa("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1387
+ a.ya("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1386
1388
  ["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],
1387
- ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.wa("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],
1389
+ ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ya("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],
1388
1390
  ["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE",
1389
- "Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.wa("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST",
1391
+ "Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ya("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST",
1390
1392
  "Enviar..."],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS",
1391
1393
  "M\u00e1s ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["UNDETERMINED_LANGUAGE",
1392
- "Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.wa("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],
1394
+ "Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ya("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],
1393
1395
  ["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],
1394
1396
  ["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME",
1395
- "Volumen"]]));a.wa("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],
1397
+ "Volumen"]]));a.ya("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],
1396
1398
  ["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE",
1397
- "Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.wa("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],
1399
+ "Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ya("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],
1398
1400
  ["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP",
1399
1401
  "Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE",
1400
- "Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.wa("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],
1402
+ "Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ya("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],
1401
1403
  ["ENTER_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],["EXIT_FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],
1402
1404
  ["LANGUAGE","\u8a00\u8a9e"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],
1403
- ["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.wa("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS",
1405
+ ["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.ya("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS",
1404
1406
  "\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["ENTER_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE",
1405
1407
  "PIP \ubaa8\ub4dc \uc885\ub8cc"],["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],
1406
1408
  ["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME",
1407
- "\ubcfc\ub968"]]));a.wa("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],
1409
+ "\ubcfc\ub968"]]));a.ya("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],
1408
1410
  ["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],
1409
- ["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.wa("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE",
1411
+ ["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ya("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE",
1410
1412
  "W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],
1411
1413
  ["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE",
1412
- "Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.wa("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN",
1414
+ "Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ya("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN",
1413
1415
  "Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE",
1414
- "Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.wa("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1416
+ "Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.ya("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1415
1417
  ["AD_PROGRESS","\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],["ENTER_LOOP_MODE","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e"],
1416
1418
  ["ENTER_PICTURE_IN_PICTURE",'\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["EXIT_FULL_SCREEN","\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["EXIT_LOOP_MODE","\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0435\u043e"],
1417
1419
  ["EXIT_PICTURE_IN_PICTURE",'\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["FAST_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u043f\u0435\u0440\u0435\u0434"],["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["LANGUAGE","\u042f\u0437\u044b\u043a"],["LIVE",
1418
1420
  "\u041f\u0440\u044f\u043c\u043e\u0439 \u044d\u0444\u0438\u0440"],["LOOP","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c"],["MORE_SETTINGS","\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE",
1419
1421
  "\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],["PLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438"],["PLAYBACK_RATE","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f"],
1420
1422
  ["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],
1421
- ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.wa("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1423
+ ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ya("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1422
1424
  ["AD_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AUTO_QUALITY","\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["ENTER_LOOP_MODE","\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["ENTER_PICTURE_IN_PICTURE","\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1423
1425
  ["EXIT_FULL_SCREEN","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e41\u0e1a\u0e1a\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["EXIT_LOOP_MODE","\u0e2b\u0e22\u0e38\u0e14\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["EXIT_PICTURE_IN_PICTURE","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1424
1426
  ["FAST_FORWARD","\u0e01\u0e23\u0e2d\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],["MORE_SETTINGS","\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21"],["MULTIPLE_LANGUAGES","\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32"],["MUTE","\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1425
1427
  ["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],["PICTURE_IN_PICTURE","\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],
1426
1428
  ["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["UNDETERMINED_LANGUAGE","\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14"],["UNMUTE","\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1427
- ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.wa("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1429
+ ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ya("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1428
1430
  ["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],
1429
- ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.wa("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1431
+ ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.ya("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1430
1432
  ["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u5c04\u2026"],["ENTER_LOOP_MODE","\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["ENTER_PICTURE_IN_PICTURE","\u8fdb\u5165\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u5c4f\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],
1431
1433
  ["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["FAST_FORWARD","\u5feb\u8fdb"],["FULL_SCREEN","\u5168\u5c4f"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES","\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],
1432
- ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.wa("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1434
+ ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ya("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1433
1435
  ["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],
1434
1436
  ["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],
1435
- ["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.Bg(navigator.languages||[]);return a}L("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.Zb;Y.prototype.hideAdUI=Y.prototype.Pg;Y.prototype.showAdUI=Y.prototype.oh;
1436
- Y.prototype.togglePiP=Y.prototype.Fe;Y.prototype.isPiPEnabled=Y.prototype.Gf;Y.prototype.isPiPAllowed=Y.prototype.Mc;Y.prototype.toggleFullScreen=Y.prototype.Ee;Y.prototype.isFullScreenEnabled=Y.prototype.Lc;Y.prototype.isFullScreenSupported=Y.prototype.vd;Y.prototype.hideSettingsMenus=Y.prototype.pc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.jd;Y.prototype.setLastTouchEventTime=Y.prototype.kh;Y.prototype.getDisplayTime=Y.prototype.zf;Y.prototype.isCastAllowed=Y.prototype.Ci;
1437
- Y.prototype.setSeeking=Y.prototype.jg;Y.prototype.isSeeking=Y.prototype.Ii;Y.prototype.getConfig=Y.prototype.Sh;Y.prototype.getClientSideAdContainer=Y.prototype.Rh;Y.prototype.getServerSideAdContainer=Y.prototype.mi;Y.prototype.getControlsContainer=Y.prototype.Uh;Y.prototype.getLocalPlayer=Y.prototype.$h;Y.prototype.getPlayer=Y.prototype.Gc;Y.prototype.getLocalVideo=Y.prototype.ai;Y.prototype.getVideo=Y.prototype.Yb;Y.prototype.getVideoContainer=Y.prototype.wi;Y.prototype.getLocalization=Y.prototype.bi;
1438
- Y.prototype.getCastProxy=Y.prototype.Qh;Y.prototype.getAd=Y.prototype.getAd;Y.prototype.setEnabledNativeControls=Y.prototype.jh;Y.prototype.setEnabledShakaControls=Y.prototype.fg;Y.prototype.configure=Y.prototype.configure;Y.prototype.loadComplete=Y.prototype.Ki;Y.prototype.allowCast=Y.prototype.Fh;Y.registerSeekBar=function(a){yC=a};Y.registerElement=gC;Y.prototype.destroy=Y.prototype.destroy;var hC=new Map,yC=new $B;function FC(a,b){rB.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=dl();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=T("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1439
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);GC(this);this.eventManager.o(this.localization,"locale-updated",function(){HC(c)});this.eventManager.o(this.localization,"locale-changed",function(){HC(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&wB(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){wB(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){wB(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.kh(Date.now());
1437
+ ["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.Gg(navigator.languages||[]);return a}L("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.$b;Y.prototype.hideAdUI=Y.prototype.Ug;Y.prototype.showAdUI=Y.prototype.rh;
1438
+ Y.prototype.togglePiP=Y.prototype.Ke;Y.prototype.isPiPEnabled=Y.prototype.Kf;Y.prototype.isPiPAllowed=Y.prototype.Pc;Y.prototype.toggleFullScreen=Y.prototype.Je;Y.prototype.isFullScreenEnabled=Y.prototype.Oc;Y.prototype.isFullScreenSupported=Y.prototype.yd;Y.prototype.hideSettingsMenus=Y.prototype.sc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.md;Y.prototype.setLastTouchEventTime=Y.prototype.oh;Y.prototype.getDisplayTime=Y.prototype.Df;Y.prototype.isCastAllowed=Y.prototype.Fi;
1439
+ Y.prototype.setSeeking=Y.prototype.og;Y.prototype.isSeeking=Y.prototype.Li;Y.prototype.getConfig=Y.prototype.Vh;Y.prototype.getClientSideAdContainer=Y.prototype.Uh;Y.prototype.getServerSideAdContainer=Y.prototype.pi;Y.prototype.getControlsContainer=Y.prototype.Xh;Y.prototype.getLocalPlayer=Y.prototype.ci;Y.prototype.getPlayer=Y.prototype.Kc;Y.prototype.getLocalVideo=Y.prototype.di;Y.prototype.getVideo=Y.prototype.Zb;Y.prototype.getVideoContainer=Y.prototype.Ai;Y.prototype.getLocalization=Y.prototype.ei;
1440
+ Y.prototype.getCastProxy=Y.prototype.Th;Y.prototype.getAd=Y.prototype.getAd;Y.prototype.setEnabledNativeControls=Y.prototype.nh;Y.prototype.setEnabledShakaControls=Y.prototype.jg;Y.prototype.configure=Y.prototype.configure;Y.prototype.loadComplete=Y.prototype.Oi;Y.prototype.allowCast=Y.prototype.Ih;Y.registerSeekBar=function(a){yC=a};Y.registerElement=gC;Y.prototype.destroy=Y.prototype.destroy;var hC=new Map,yC=new $B;function FC(a,b){rB.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=dl();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=T("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1441
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);GC(this);this.eventManager.o(this.localization,"locale-updated",function(){HC(c)});this.eventManager.o(this.localization,"locale-changed",function(){HC(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&wB(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){wB(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){wB(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.oh(Date.now());
1440
1442
  d.stopPropagation()});this.eventManager.o(this.g,"click",function(){IC(c)});HC(this);this.ad&&this.ad.isLinear()&&wB(this.g,!1)}pa(FC,rB);FC.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];rB.prototype.release.call(this)};function JC(a,b){KC.set(a,b)}
1441
- function GC(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,KC.get(c)?(c=KC.get(c),a.i.push(c.create(a.h,a.controls))):Ta("Unrecognized overflow menu element requested:",c)}function IC(a){if(a.controls.jd())a.controls.pc();else{wB(a.h,!0);aC(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};eb(a.h.childNodes,b)&&fb(a.h.childNodes,b)[0].focus()}}function HC(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1443
+ function GC(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,KC.get(c)?(c=KC.get(c),a.i.push(c.create(a.h,a.controls))):Ta("Unrecognized overflow menu element requested:",c)}function IC(a){if(a.controls.md())a.controls.sc();else{wB(a.h,!0);aC(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};eb(a.h.childNodes,b)&&fb(a.h.childNodes,b)[0].focus()}}function HC(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1442
1444
  L("shaka.ui.OverflowMenu",FC);FC.registerElement=JC;function LC(){}LC.prototype.create=function(a,b){return new FC(a,b)};gC("overflow_menu",new LC);var KC=new Map;function MC(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=T("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);
1443
- this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);NC(this);OC(this);this.eventManager.o(this.localization,"locale-updated",function(){NC(c)});this.eventManager.o(this.localization,"locale-changed",function(){NC(c)});this.eventManager.o(this.g,"click",function(){c.controls.Yb().webkitShowPlaybackTargetPicker()});a=this.controls.Yb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1444
- c.player.be()==kn;wB(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){OC(c)})}pa(MC,rB);function OC(a){var b=a.controls.Yb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function NC(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}L("shaka.ui.AirPlayButton",MC);function PC(){}PC.prototype.create=function(a,b){return new MC(a,b)};JC("airplay",new PC);
1445
- gC("airplay",new PC);function QC(a,b,c){this.i=a;this.j=b;this.h=RC(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.Ff()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.lg(b);b.ui=this;c.ui=this}p=QC.prototype;p.destroy=function(){var a=this;return K(function(b){if(1==b.g)return a.g?D(b,a.g.destroy(),2):b.F(2);if(4!=b.g)return a.g=null,a.i?D(b,a.i.destroy(),4):b.F(4);a.i=null;F(b)})};
1446
- p.Ff=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Qd()&&1<navigator.maxTouchPoints};p.getConfiguration=function(){var a=RC(this);Ol(a,this.h,RC(this),{},"");return a};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pl(a,b));Ol(this.h,a,RC(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new N("uiupdated"))};p.Th=function(){return this.g};
1447
- p.kj=function(a){this.g.fg(a)};
1445
+ this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);NC(this);OC(this);this.eventManager.o(this.localization,"locale-updated",function(){NC(c)});this.eventManager.o(this.localization,"locale-changed",function(){NC(c)});this.eventManager.o(this.g,"click",function(){c.controls.Zb().webkitShowPlaybackTargetPicker()});a=this.controls.Zb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1446
+ c.player.fe()==kn;wB(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){OC(c)})}pa(MC,rB);function OC(a){var b=a.controls.Zb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function NC(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}L("shaka.ui.AirPlayButton",MC);function PC(){}PC.prototype.create=function(a,b){return new MC(a,b)};JC("airplay",new PC);
1447
+ gC("airplay",new PC);function QC(a,b,c){this.i=a;this.j=b;this.h=RC(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.Jf()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.pg(b);b.ui=this;c.ui=this}p=QC.prototype;p.destroy=function(){var a=this;return K(function(b){if(1==b.g)return a.g?D(b,a.g.destroy(),2):b.F(2);if(4!=b.g)return a.g=null,a.i?D(b,a.i.destroy(),4):b.F(4);a.i=null;F(b)})};
1448
+ p.Jf=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Qd()&&1<navigator.maxTouchPoints};p.getConfiguration=function(){var a=RC(this);Ol(a,this.h,RC(this),{},"");return a};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pl(a,b));Ol(this.h,a,RC(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new N("uiupdated"))};p.Wh=function(){return this.g};
1449
+ p.oj=function(a){this.g.jg(a)};
1448
1450
  function RC(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1449
1451
  "picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)",chapterMarks:"rgb(27, 27, 27)",chapterLabels:"rgb(255, 255, 255)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
1450
1452
  level:"rgb(255, 255, 255)"},trackLabelFormat:SC,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!0,tapSeekDistance:10};"remote"in HTMLMediaElement.prototype?b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&
1451
- b.overflowMenuButtons.push("airplay");a.Ff()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1452
- function TC(){var a,b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:wx();if(!sm())return UC("shaka-ui-load-failed",VC),C.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){C.F(2);break}if(b.length&&!a.length){d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
1453
+ b.overflowMenuButtons.push("airplay");a.Jf()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1454
+ function TC(){var a,b,c,d,e,f,g,h,k,l,m,n,r,q,u,v,y,z,x,B,A;return K(function(C){switch(C.g){case 1:xx();if(!sm())return UC("shaka-ui-load-failed",VC),C.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){C.F(2);break}if(b.length&&!a.length){d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
1453
1455
  h.replaceChild(g,f);g.appendChild(f);k=null;l=t(c);for(m=l.next();!m.done;m=l.next())if(n=m.value,n.parentElement==g){k=n;break}k||(k=document.createElement("canvas"),k.classList.add("shaka-canvas-container"),g.appendChild(k));WC(g,f,k)}C.F(2);break}r=t(a);q=r.next();case 4:if(q.done){C.F(2);break}u=q.value;if(u.ui){C.F(5);break}v=null;y=t(b);for(e=y.next();!e.done;e=y.next())if(z=e.value,z.parentElement==u){v=z;break}v||(v=document.createElement("video"),v.setAttribute("playsinline",""),u.appendChild(v));
1454
1456
  x=null;B=t(c);for(m=B.next();!m.done;m=B.next())if(A=m.value,A.parentElement==u){x=A;break}x||(x=document.createElement("canvas"),x.classList.add("shaka-canvas-container"),u.appendChild(x));ta(C,7);return D(C,WC(u,v,x),9);case 9:va(C,5);break;case 7:return wa(C),UC("shaka-ui-load-failed",XC),C.return();case 5:q=r.next();C.F(4);break;case 2:UC("shaka-ui-loaded"),F(C)}})}function UC(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1455
- function WC(a,b,c){var d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:d=new V;e=new QC(d,a,b);d.xg(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});b.controls&&
1456
- e.g.jh(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=t(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){r.F(4);break}n=m.value;ta(r,5);return D(r,e.g.Gc().load(n.getAttribute("src")),7);case 7:r.F(4);break;case 5:wa(r);case 3:m=l.next();r.F(2);break;case 4:return D(r,d.Bc(b),0)}})}L("shaka.ui.Overlay",QC);QC.prototype.setEnabled=QC.prototype.kj;QC.prototype.getControls=QC.prototype.Th;
1457
- QC.prototype.configure=QC.prototype.configure;QC.prototype.getConfiguration=QC.prototype.getConfiguration;QC.prototype.isMobile=QC.prototype.Ff;QC.prototype.destroy=QC.prototype.destroy;var SC=0;QC.TrackLabelFormat={LANGUAGE:SC,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var VC=0,XC=1;QC.FailReasonCode={NO_BROWSER_SUPPORT:VC,PLAYER_FAILED_TO_LOAD:XC};"complete"==document.readyState?K(function(a){if(1==a.g)return D(a,Promise.resolve(),2);TC();F(a)}):window.addEventListener("load",TC);function YC(a,b,c,d,e,f,g,h){function k(H){var G="";5<=H&&(G=" "+f.resolve("SURROUND"));return G}function l(H,G,I,J){H=[H,G];h&&null!=J&&H.push(J);I&&3==g&&H.push(I);return H.join(": ")}function m(H){return"variant"==H.type?H.audioRoles?H.audioRoles.join(", "):void 0:H.roles.join(", ")}var n=a.find(function(H){return 1==H.active}),r=sB(b);el(b);b.appendChild(r);r=new Map;for(var q=t(a),u=q.next();!u.done;u=q.next())u=u.value,r.has(u.language)||r.set(u.language,new Set),r.get(u.language).add(m(u));
1458
- r=new Set;n=n?l(n.language,m(n),n.label,n.channelsCount):"";q={};a=t(a);for(u=a.next();!u.done;q={pb:q.pb},u=a.next()){q.pb=u.value;u=q.pb.language;var v=q.pb.forced,y=f.resolve("SUBTITLE_FORCED"),z=m(q.pb),x=q.pb.label,B=q.pb.channelsCount,A=l(u,z,x,B);if(!r.has(A)){r.add(A);var C=dl();C.addEventListener("click",function(H){return function(){c(H.pb)}}(q));var E=T("span");C.appendChild(E);E.textContent=ZC(u,f);switch(g){case SC:h&&(E.textContent+=k(B));v&&(E.textContent+=" ("+y+")");break;case 1:h&&
1459
- (E.textContent+=k(B));z?E.textContent=z:(Ta("Track #"+q.pb.id+" does not have a role, but the UI is configured to only show role."),E.textContent="?");v&&(E.textContent+=" ("+y+")");break;case 2:h&&(E.textContent+=k(B));z&&(E.textContent+=": "+z);v&&(E.textContent+=" ("+y+")");break;case 3:x?E.textContent=x:(Ta("Track #"+q.pb.id+" does not have a label, but the UI is configured to only show labels."),E.textContent="?")}d&&A==n&&(C.appendChild(vB()),E.classList.add("shaka-chosen-item"),C.ariaSelected=
1457
+ function WC(a,b,c){var d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:d=new V;e=new QC(d,a,b);d.Cg(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});b.controls&&
1458
+ e.g.nh(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=t(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){r.F(4);break}n=m.value;ta(r,5);return D(r,e.g.Kc().load(n.getAttribute("src")),7);case 7:r.F(4);break;case 5:wa(r);case 3:m=l.next();r.F(2);break;case 4:return D(r,d.Ec(b),0)}})}L("shaka.ui.Overlay",QC);QC.prototype.setEnabled=QC.prototype.oj;QC.prototype.getControls=QC.prototype.Wh;
1459
+ QC.prototype.configure=QC.prototype.configure;QC.prototype.getConfiguration=QC.prototype.getConfiguration;QC.prototype.isMobile=QC.prototype.Jf;QC.prototype.destroy=QC.prototype.destroy;var SC=0;QC.TrackLabelFormat={LANGUAGE:SC,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var VC=0,XC=1;QC.FailReasonCode={NO_BROWSER_SUPPORT:VC,PLAYER_FAILED_TO_LOAD:XC};"complete"==document.readyState?K(function(a){if(1==a.g)return D(a,Promise.resolve(),2);TC();F(a)}):window.addEventListener("load",TC);function YC(a,b,c,d,e,f,g,h){function k(H){var G="";5<=H&&(G=" "+f.resolve("SURROUND"));return G}function l(H,G,I,J){H=[H,G];h&&null!=J&&H.push(J);I&&3==g&&H.push(I);return H.join(": ")}function m(H){return"variant"==H.type?H.audioRoles?H.audioRoles.join(", "):void 0:H.roles.join(", ")}var n=a.find(function(H){return 1==H.active}),r=sB(b);el(b);b.appendChild(r);r=new Map;for(var q=t(a),u=q.next();!u.done;u=q.next())u=u.value,r.has(u.language)||r.set(u.language,new Set),r.get(u.language).add(m(u));
1460
+ r=new Set;n=n?l(n.language,m(n),n.label,n.channelsCount):"";q={};a=t(a);for(u=a.next();!u.done;q={rb:q.rb},u=a.next()){q.rb=u.value;u=q.rb.language;var v=q.rb.forced,y=f.resolve("SUBTITLE_FORCED"),z=m(q.rb),x=q.rb.label,B=q.rb.channelsCount,A=l(u,z,x,B);if(!r.has(A)){r.add(A);var C=dl();C.addEventListener("click",function(H){return function(){c(H.rb)}}(q));var E=T("span");C.appendChild(E);E.textContent=ZC(u,f);switch(g){case SC:h&&(E.textContent+=k(B));v&&(E.textContent+=" ("+y+")");break;case 1:h&&
1461
+ (E.textContent+=k(B));z?E.textContent=z:(Ta("Track #"+q.rb.id+" does not have a role, but the UI is configured to only show role."),E.textContent="?");v&&(E.textContent+=" ("+y+")");break;case 2:h&&(E.textContent+=k(B));z&&(E.textContent+=": "+z);v&&(E.textContent+=" ("+y+")");break;case 3:x?E.textContent=x:(Ta("Track #"+q.rb.id+" does not have a label, but the UI is configured to only show labels."),E.textContent="?")}d&&A==n&&(C.appendChild(vB()),E.classList.add("shaka-chosen-item"),C.ariaSelected=
1460
1462
  "true",e.textContent=E.textContent);b.appendChild(C)}}}function ZC(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Sb(a);return a in nB?nB[a].A:c in nB?nB[c].A+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function $C(a,b,c){rB.call(this,a,b);var d=this;aD(this,c);bD(this);cD(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new N("submenuopen")),wB(d.menu,!0),uB(d.menu)):wB(d.menu,!1)})}pa($C,rB);
1461
1463
  function aD(a,b){a.button=dl();a.button.classList.add("shaka-overflow-button");a.icon=T("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=T("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=T("span");b.appendChild(a.nameSpan);a.currentSelection=T("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1462
- function bD(a){a.menu=T("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=dl();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.pc()});var b=T("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1463
- T("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function cD(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}wB(a.parent,!0);eb(a.parent.childNodes,b)&&fb(a.parent.childNodes,b)[0].focus();aC(a.controls)}))}L("shaka.ui.SettingsMenu",$C);function dD(a,b){$C.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){eD(c)});this.eventManager.o(this.localization,"locale-changed",function(){eD(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.hb().length;wB(c.button,d);fD(c)});this.eventManager.o(this.player,"variantchanged",
1464
+ function bD(a){a.menu=T("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=dl();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.sc()});var b=T("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1465
+ T("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function cD(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}wB(a.parent,!0);eb(a.parent.childNodes,b)&&fb(a.parent.childNodes,b)[0].focus();aC(a.controls)}))}L("shaka.ui.SettingsMenu",$C);function dD(a,b){$C.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){eD(c)});this.eventManager.o(this.localization,"locale-changed",function(){eD(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.jb().length;wB(c.button,d);fD(c)});this.eventManager.o(this.player,"variantchanged",
1464
1466
  function(){fD(c)});eD(this);fD(this)}pa(dD,$C);
1465
- function fD(a){var b=a.player.hb();YC(b,a.menu,function(c){c.channelsCount&&a.controls.g.showAudioChannelCountVariants?a.player.Be(c.language,c.roles[0],c.channelsCount):a.player.Be(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);uB(a.menu);a.controls.dispatchEvent(new N("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);wB(a.button,2<a.menu.getElementsByTagName("button").length)}
1467
+ function fD(a){var b=a.player.jb();YC(b,a.menu,function(c){c.channelsCount&&a.controls.g.showAudioChannelCountVariants?a.player.Fe(c.language,c.roles[0],c.channelsCount):a.player.Fe(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);uB(a.menu);a.controls.dispatchEvent(new N("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);wB(a.button,2<a.menu.getElementsByTagName("button").length)}
1466
1468
  function eD(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}L("shaka.ui.AudioLanguageSelection",dD);function gD(){}gD.prototype.create=function(a,b){return new dD(a,b)};JC("language",new gD);gC("language",new gD);function hD(a,b){rB.call(this,a,b);var c=this;this.h=this.controls.C;this.g=dl();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1467
1469
  a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);iD(this);jD(this);this.eventManager.o(this.localization,"locale-updated",function(){iD(c)});this.eventManager.o(this.localization,"locale-changed",function(){iD(c)});this.eventManager.o(this.g,"click",function(){kD(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){jD(c)})}pa(hD,rB);
1468
- function kD(a){var b;K(function(c){if(1==c.g){if(a.h.Fa())return a.h.ph(),c.F(0);ta(c,3);a.g.disabled=!0;return D(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=wa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new N("error",(new Map).set("detail",b)));F(c)})}function jD(a){var b=a.h.Ye()&&a.controls.sa,c=a.h.Fa();wB(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");lD(a)}
1469
- function lD(a){a.j.textContent=a.h.Fa()?a.h.ze():a.localization.resolve("OFF")}function iD(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");lD(a)}L("shaka.ui.CastButton",hD);function mD(){}mD.prototype.create=function(a,b){return new hD(a,b)};JC("cast",new mD);gC("cast",new mD);function nD(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);oD(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){oD(c)});this.eventManager.o(this.localization,"locale-changed",function(){oD(c)});
1470
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ub())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Jd(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(nD,rB);function oD(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}L("shaka.ui.FastForwardButton",nD);function pD(){}pD.prototype.create=function(a,b){return new nD(a,b)};gC("fast_forward",new pD);function qD(a,b){rB.call(this,a,b);var c=this;this.h=this.controls.s;this.g=dl();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");rD(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);sD(this);this.eventManager.o(this.localization,"locale-updated",function(){sD(c)});this.eventManager.o(this.localization,"locale-changed",function(){sD(c)});this.eventManager.o(this.g,"click",function(){return K(function(d){return D(d,
1471
- c.controls.Ee(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.Lc()?"fullscreen_exit":"fullscreen";sD(c)});this.eventManager.o(this.h,"loadedmetadata",function(){rD(c)});this.eventManager.o(this.h,"loadeddata",function(){rD(c)})}pa(qD,rB);function rD(a){a.controls.vd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function sD(a){a.g.ariaLabel=a.localization.resolve(a.controls.Lc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1470
+ function kD(a){var b;K(function(c){if(1==c.g){if(a.h.Ha())return a.h.sh(),c.F(0);ta(c,3);a.g.disabled=!0;return D(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=wa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new N("error",(new Map).set("detail",b)));F(c)})}function jD(a){var b=a.h.df()&&a.controls.ua,c=a.h.Ha();wB(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");lD(a)}
1471
+ function lD(a){a.j.textContent=a.h.Ha()?a.h.De():a.localization.resolve("OFF")}function iD(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");lD(a)}L("shaka.ui.CastButton",hD);function mD(){}mD.prototype.create=function(a,b){return new hD(a,b)};JC("cast",new mD);gC("cast",new mD);function nD(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);oD(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){oD(c)});this.eventManager.o(this.localization,"locale-changed",function(){oD(c)});
1472
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Jb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Md(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(nD,rB);function oD(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}L("shaka.ui.FastForwardButton",nD);function pD(){}pD.prototype.create=function(a,b){return new nD(a,b)};gC("fast_forward",new pD);function qD(a,b){rB.call(this,a,b);var c=this;this.h=this.controls.s;this.g=dl();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");rD(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);sD(this);this.eventManager.o(this.localization,"locale-updated",function(){sD(c)});this.eventManager.o(this.localization,"locale-changed",function(){sD(c)});this.eventManager.o(this.g,"click",function(){return K(function(d){return D(d,
1473
+ c.controls.Je(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.Oc()?"fullscreen_exit":"fullscreen";sD(c)});this.eventManager.o(this.h,"loadedmetadata",function(){rD(c)});this.eventManager.o(this.h,"loadeddata",function(){rD(c)})}pa(qD,rB);function rD(a){a.controls.yd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function sD(a){a.g.ariaLabel=a.localization.resolve(a.controls.Oc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1472
1474
  L("shaka.ui.FullscreenButton",qD);function tD(){}tD.prototype.create=function(a,b){return new qD(a,b)};gC("fullscreen",new tD);function uD(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=T("span");this.l.classList.add("shaka-current-selection-span");
1473
- a.appendChild(this.l);this.g.appendChild(a);vD(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){vD(c)});this.eventManager.o(this.localization,"locale-changed",function(){vD(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ma();c.h.xa(1)});this.m=this.video.loop;this.h=new Fd(function(){c.m!=c.video.loop&&(vD(c),c.m=c.video.loop)});this.h.xa(1)}pa(uD,rB);
1475
+ a.appendChild(this.l);this.g.appendChild(a);vD(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){vD(c)});this.eventManager.o(this.localization,"locale-changed",function(){vD(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Na();c.h.za(1)});this.m=this.video.loop;this.h=new Fd(function(){c.m!=c.video.loop&&(vD(c),c.m=c.video.loop)});this.h.za(1)}pa(uD,rB);
1474
1476
  uD.prototype.release=function(){this.h.stop();this.h=null;rB.prototype.release.call(this)};function vD(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}L("shaka.ui.LoopButton",uD);function wD(){}wD.prototype.create=function(a,b){return new uD(a,b)};JC("loop",new wD);gC("loop",new wD);HB("loop",new wD);function xD(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);yD(this);zD(this);this.eventManager.o(this.localization,"locale-updated",function(){yD(c)});this.eventManager.o(this.localization,"locale-changed",function(){yD(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1475
1477
  this.eventManager.o(this.video,"volumechange",function(){yD(c);zD(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){yD(c);zD(c)});this.eventManager.o(this.adManager,"ad-muted",function(){yD(c);zD(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;yD(c);zD(c)})}pa(xD,rB);function yD(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1476
1478
  function zD(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}L("shaka.ui.MuteButton",xD);function AD(){}AD.prototype.create=function(a,b){return new xD(a,b)};gC("mute",new AD);function BD(a,b){rB.call(this,a,b);var c=this;this.l=this.controls.s;this.g=dl();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1477
- T("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);CD(this);this.parent.appendChild(this.g);this.controls.Mc()||wB(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){CD(c)});this.eventManager.o(this.localization,"locale-changed",function(){CD(c)});this.eventManager.o(this.g,"click",function(){c.controls.Fe()});this.eventManager.o(this.l,"enterpictureinpicture",function(){DD(c)});this.eventManager.o(this.l,"leavepictureinpicture",
1478
- function(){ED(c)});this.eventManager.o(this.controls,"caststatuschanged",function(d){d.newStatus?c.controls.Mc()&&wB(c.g,!1):c.controls.Mc()&&wB(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){FD(c)});"documentPictureInPicture"in window&&this.eventManager.o(window.documentPictureInPicture,"enter",function(d){DD(c);c.eventManager.na(d.window,"pagehide",function(){ED(c)})})}pa(BD,rB);
1479
+ T("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);CD(this);this.parent.appendChild(this.g);this.controls.Pc()||wB(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){CD(c)});this.eventManager.o(this.localization,"locale-changed",function(){CD(c)});this.eventManager.o(this.g,"click",function(){c.controls.Ke()});this.eventManager.o(this.l,"enterpictureinpicture",function(){DD(c)});this.eventManager.o(this.l,"leavepictureinpicture",
1480
+ function(){ED(c)});this.eventManager.o(this.controls,"caststatuschanged",function(d){d.newStatus?c.controls.Pc()&&wB(c.g,!1):c.controls.Pc()&&wB(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){FD(c)});"documentPictureInPicture"in window&&this.eventManager.o(window.documentPictureInPicture,"enter",function(d){DD(c);c.eventManager.na(d.window,"pagehide",function(){ED(c)})})}pa(BD,rB);
1479
1481
  function DD(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function ED(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
1480
- function CD(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Gf();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function FD(a){K(function(b){if(!a.controls.Mc())return wB(a.g,!1),b.F(0);if(!a.player||!a.player.Kc())return wB(a.g,!0),b.F(0);wB(a.g,!1);return a.controls.Gf()?D(b,a.controls.Fe(),0):b.F(0)})}L("shaka.ui.PipButton",BD);function GD(){}
1481
- GD.prototype.create=function(a,b){return new BD(a,b)};JC("picture_in_picture",new GD);gC("picture_in_picture",new GD);HB("picture_in_picture",new GD);function HD(a,b){$C.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.o(this.localization,"locale-updated",function(){ID(c)});this.eventManager.o(this.localization,"locale-changed",function(){ID(c)});this.eventManager.o(this.player,"ratechange",function(){JD(c,c.player.Ub())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+
1482
- "x",d]}));ID(this);KD(this);JD(this,this.player.Ub())}pa(HD,$C);function ID(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1482
+ function CD(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Kf();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function FD(a){K(function(b){if(!a.controls.Pc())return wB(a.g,!1),b.F(0);if(!a.player||!a.player.Nc())return wB(a.g,!0),b.F(0);wB(a.g,!1);return a.controls.Kf()?D(b,a.controls.Ke(),0):b.F(0)})}L("shaka.ui.PipButton",BD);function GD(){}
1483
+ GD.prototype.create=function(a,b){return new BD(a,b)};JC("picture_in_picture",new GD);gC("picture_in_picture",new GD);HB("picture_in_picture",new GD);function HD(a,b){$C.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.o(this.localization,"locale-updated",function(){ID(c)});this.eventManager.o(this.localization,"locale-changed",function(){ID(c)});this.eventManager.o(this.player,"loaded",function(){JD(c,c.player.Jb())});this.eventManager.o(this.player,"ratechange",function(){JD(c,
1484
+ c.player.Jb())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));ID(this);KD(this);JD(this,this.player.Jb())}pa(HD,$C);function ID(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1483
1485
  function JD(a,b){var c=tB(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(vB()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1484
- "x")}function KD(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={Zc:b.Zc},d=c.next()){b.Zc=d.value;d=dl();var e=T("span");e.textContent=b.Zc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Zc);a.video.defaultPlaybackRate=a.g.get(f.Zc)}}(b));a.menu.appendChild(d)}uB(a.menu)}L("shaka.ui.PlaybackRateSelection",HD);function LD(){}LD.prototype.create=function(a,b){return new HD(a,b)};JC("playback_rate",new LD);gC("playback_rate",new LD);function MD(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("shaka-current-time");ND(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.S()&&(c.video.currentTime=c.player.Ga().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.V,e=c.controls.zf(),f=c.player.Ga(),g=f.end-f.start;c.player.S()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(ND(c,"- "+xB(e,g)),c.g.disabled=!1):(ND(c,c.localization.resolve("LIVE")),
1485
- c.g.disabled=!0)):(d=3600<=g,e=xB(Math.max(0,e-f.start),d),g&&(e+=" / "+xB(g,d)),ND(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.S()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}pa(MD,rB);function ND(a,b){b!=a.g.textContent&&(a.g.textContent=b)}L("shaka.ui.PresentationTimeTracker",MD);function OD(){}OD.prototype.create=function(a,b){return new MD(a,b)};gC("time_and_duration",new OD);function PD(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");a="cast";(b=Sd())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1486
+ "x")}function KD(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={bd:b.bd},d=c.next()){b.bd=d.value;d=dl();var e=T("span");e.textContent=b.bd;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.bd);a.video.defaultPlaybackRate=a.g.get(f.bd)}}(b));a.menu.appendChild(d)}uB(a.menu)}L("shaka.ui.PlaybackRateSelection",HD);function LD(){}LD.prototype.create=function(a,b){return new HD(a,b)};JC("playback_rate",new LD);gC("playback_rate",new LD);function MD(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("shaka-current-time");ND(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.R()&&(c.video.currentTime=c.player.Ba().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.V,e=c.controls.Df(),f=c.player.Ba(),g=f.end-f.start;c.player.R()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(ND(c,"- "+xB(e,g)),c.g.disabled=!1):(ND(c,c.localization.resolve("LIVE")),
1487
+ c.g.disabled=!0)):(d=3600<=g,e=xB(Math.max(0,e-f.start),d),g&&(e+=" / "+xB(g,d)),ND(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.R()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}pa(MD,rB);function ND(a,b){b!=a.g.textContent&&(a.g.textContent=b)}L("shaka.ui.PresentationTimeTracker",MD);function OD(){}OD.prototype.create=function(a,b){return new MD(a,b)};gC("time_and_duration",new OD);function PD(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");a="cast";(b=Sd())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1486
1488
  a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;QD(this);wB(this.g,!1);!this.video.remote||this.video.disableRemotePlayback?this.g.classList.add("shaka-hidden"):(this.eventManager.o(this.localization,"locale-updated",function(){QD(c)}),this.eventManager.o(this.localization,"locale-changed",function(){QD(c)}),this.eventManager.o(this.controls,"caststatuschanged",function(){RD(c)}),this.eventManager.o(this.g,"click",function(){c.video.remote.prompt()}),this.eventManager.o(this.video.remote,
1487
1489
  "connect",function(){RD(c)}),this.eventManager.o(this.video.remote,"connecting",function(){RD(c)}),this.eventManager.o(this.video.remote,"disconnect",function(){RD(c)}),this.eventManager.o(this.player,"loaded",function(){RD(c)}),RD(this))}pa(PD,rB);PD.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});rB.prototype.release.call(this)};
1488
- function RD(a){var b,c;K(function(d){switch(d.g){case 1:if(a.controls.C.Ye()&&a.controls.sa){wB(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.F(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?wB(a.g,a.player.be()==kn&&e):wB(a.g,!1)};ta(d,7);if(-1==a.h){d.F(9);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.F(0);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.F(0);break;case 10:a.h=-1;
1490
+ function RD(a){var b,c;K(function(d){switch(d.g){case 1:if(a.controls.C.df()&&a.controls.ua){wB(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.F(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?wB(a.g,a.player.fe()==kn&&e):wB(a.g,!1)};ta(d,7);if(-1==a.h){d.F(9);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.F(0);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.F(0);break;case 10:a.h=-1;
1489
1491
  case 9:va(d,8);break;case 7:wa(d);case 8:return ta(d,11),D(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;va(d,0);break;case 11:wa(d),b(!0),F(d)}})}function QD(a){var b=a.localization.resolve("CAST"),c=Sd();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}L("shaka.ui.RemoteButton",PD);function SD(){}SD.prototype.create=function(a,b){return new PD(a,b)};JC("remote",new SD);gC("remote",new SD);function TD(a,b){$C.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.o(this.localization,"locale-updated",function(){UD(c)});this.eventManager.o(this.localization,"locale-changed",function(){UD(c)});this.eventManager.o(this.player,"variantchanged",function(){VD(c)});this.eventManager.o(this.player,"trackschanged",function(){VD(c)});this.eventManager.o(this.player,
1490
1492
  "abrstatuschanged",function(){VD(c)});VD(this)}pa(TD,$C);
1491
- function VD(a){var b=[];a.player.be()!=kn&&(b=a.player.hb());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){var m=-1;m=a.player.Kc()?b.findIndex(function(n){return n.bandwidth==k.bandwidth}):b.findIndex(function(n){return n.height==k.height&&n.frameRate==k.frameRate&&n.hdr==k.hdr&&n.videoLayout==k.videoLayout});return m==l});a.player.Kc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):
1492
- b.sort(function(k,l){return l.height-k.height});var d=sB(a.menu);el(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={Bb:e.Bb},g=f.next()){e.Bb=g.value;g=dl();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Bb;a.player.configure({abr:{enabled:!1}});a.player.Ce(l,a.controls.g.clearBufferOnQualityChange)}}(e));var h=T("span");h.textContent=a.player.Kc()&&e.Bb.bandwidth?Math.round(e.Bb.bandwidth/
1493
- 1E3)+" kbits/s":e.Bb.height&&e.Bb.width?WD(e.Bb):"Unknown";g.appendChild(h);d||e.Bb!=c||(g.ariaSelected="true",g.appendChild(vB()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=dl();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});VD(a)});a.g=T("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected=
1493
+ function VD(a){var b=[];a.player.fe()!=kn&&(b=a.player.jb());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){var m=-1;m=a.player.Nc()?b.findIndex(function(n){return n.bandwidth==k.bandwidth}):b.findIndex(function(n){return n.height==k.height&&n.frameRate==k.frameRate&&n.hdr==k.hdr&&n.videoLayout==k.videoLayout});return m==l});a.player.Nc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):
1494
+ b.sort(function(k,l){return l.height-k.height});var d=sB(a.menu);el(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={Eb:e.Eb},g=f.next()){e.Eb=g.value;g=dl();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Eb;a.player.configure({abr:{enabled:!1}});a.player.Ge(l,a.controls.g.clearBufferOnQualityChange)}}(e));var h=T("span");h.textContent=a.player.Nc()&&e.Eb.bandwidth?Math.round(e.Eb.bandwidth/
1495
+ 1E3)+" kbits/s":e.Eb.height&&e.Eb.width?WD(e.Eb):"Unknown";g.appendChild(h);d||e.Eb!=c||(g.ariaSelected="true",g.appendChild(vB()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=dl();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});VD(a)});a.g=T("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected=
1494
1496
  "true",e.appendChild(vB()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);uB(a.menu);a.controls.dispatchEvent(new N("resolutionselectionupdated"));UD(a);wB(a.button,0<b.length)}
1495
1497
  function WD(a){var b=a.height||0,c=a.width||0,d=b;c/b>16/9&&(d=Math.round(9*c/16));b=d+"p";2160==d&&(b="4K");(d=a.frameRate)&&(50<=d||20>=d)&&(b+=Math.round(a.frameRate));if("PQ"==a.hdr||"HLG"==a.hdr)b+=" (HDR)";"CH-STEREO"==a.videoLayout&&(b+=" (3D)");return b}
1496
- function UD(a){var b=a.player.Kc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}L("shaka.ui.ResolutionSelection",TD);function XD(){}
1498
+ function UD(a){var b=a.player.Nc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}L("shaka.ui.ResolutionSelection",TD);function XD(){}
1497
1499
  XD.prototype.create=function(a,b){return new TD(a,b)};JC("quality",new XD);gC("quality",new XD);function YD(a,b){rB.call(this,a,b);var c=this;this.g=dl();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);ZD(this);this.h=this.controls.g.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){ZD(c)});this.eventManager.o(this.localization,"locale-changed",function(){ZD(c)});
1498
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ub())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Jd(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(YD,rB);function ZD(a){a.g.ariaLabel=a.localization.resolve("REWIND")}L("shaka.ui.RewindButton",YD);function $D(){}$D.prototype.create=function(a,b){return new YD(a,b)};gC("rewind",new $D);function aE(a,b){rB.call(this,a,b);var c=this;this.j=T("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=T("div");this.h.classList.add("shaka-skip-ad-counter");wB(this.h,!1);this.j.appendChild(this.h);this.g=dl();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;wB(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);bE(this);this.i=new Fd(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1500
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Jb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Md(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(YD,rB);function ZD(a){a.g.ariaLabel=a.localization.resolve("REWIND")}L("shaka.ui.RewindButton",YD);function $D(){}$D.prototype.create=function(a,b){return new YD(a,b)};gC("rewind",new $D);function aE(a,b){rB.call(this,a,b);var c=this;this.j=T("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=T("div");this.h.classList.add("shaka-skip-ad-counter");wB(this.h,!1);this.j.appendChild(this.h);this.g=dl();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;wB(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);bE(this);this.i=new Fd(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1499
1501
  d:(c.i.stop(),wB(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){bE(c)});this.eventManager.o(this.localization,"locale-changed",function(){bE(c)});this.eventManager.o(this.adManager,"ad-started",function(){cE(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),wB(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;wB(c.g,!1);wB(c.h,!1)});this.eventManager.o(this.g,
1500
- "click",function(){c.ad.skip()});this.ad&&cE(this)}pa(aE,rB);aE.prototype.release=function(){this.i.stop();this.i=null;rB.prototype.release.call(this)};function bE(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function cE(a){a.ad.isSkippable()&&(wB(a.g,!0),wB(a.h,!0),a.h.textContent="",a.i.Ma(),a.i.xa(.5))}L("shaka.ui.SkipAdButton",aE);function dE(a,b){BB.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}pa(dE,BB);dE.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};dE.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1501
- L("shaka.ui.SmallPlayButton",dE);function eE(){}eE.prototype.create=function(a,b){return new dE(a,b)};gC("play_pause",new eE);function fE(a,b){rB.call(this,a,b);a=T("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}pa(fE,rB);L("shaka.ui.Spacer",fE);function gE(){}gE.prototype.create=function(a,b){return new fE(a,b)};gC("spacer",new gE);function hE(a,b){function c(k){return xB(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}rB.call(this,a,b);var h=this;this.i=dl();this.i.classList.add("shaka-statistics-button");this.j=T("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=T("label");a.classList.add("shaka-overflow-button-label");
1502
+ "click",function(){c.ad.skip()});this.ad&&cE(this)}pa(aE,rB);aE.prototype.release=function(){this.i.stop();this.i=null;rB.prototype.release.call(this)};function bE(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function cE(a){a.ad.isSkippable()&&(wB(a.g,!0),wB(a.h,!0),a.h.textContent="",a.i.Na(),a.i.za(.5))}L("shaka.ui.SkipAdButton",aE);function dE(a,b){BB.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}pa(dE,BB);dE.prototype.h=function(){(this.ad&&this.ad.isLinear()?0:this.video.ended)?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1503
+ dE.prototype.g=function(){if(this.ad&&this.ad.isLinear()?0:this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};L("shaka.ui.SmallPlayButton",dE);function eE(){}eE.prototype.create=function(a,b){return new dE(a,b)};gC("play_pause",new eE);function fE(a,b){rB.call(this,a,b);a=T("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}pa(fE,rB);L("shaka.ui.Spacer",fE);function gE(){}gE.prototype.create=function(a,b){return new fE(a,b)};gC("spacer",new gE);function hE(a,b){function c(k){return xB(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}rB.call(this,a,b);var h=this;this.i=dl();this.i.classList.add("shaka-statistics-button");this.j=T("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=T("label");a.classList.add("shaka-overflow-button-label");
1502
1504
  this.s=T("span");a.appendChild(this.s);this.m=T("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.g=T("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.h.appendChild(this.g);this.D=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1503
1505
  this.u={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new Fd(function(){h.h=h.player.getStats();for(var k=t(h.D),l=k.next();!l.done;l=
1504
- k.next())l=l.value,h.u[l].textContent=h.C[l](l)});iE(this);jE(this);this.eventManager.o(this.localization,"locale-updated",function(){iE(h)});this.eventManager.o(this.localization,"locale-changed",function(){iE(h)});this.eventManager.o(this.i,"click",function(){wB(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.xa(.1),wB(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),wB(h.g,!1));iE(h)})}pa(hE,rB);
1506
+ k.next())l=l.value,h.u[l].textContent=h.C[l](l)});iE(this);jE(this);this.eventManager.o(this.localization,"locale-updated",function(){iE(h)});this.eventManager.o(this.localization,"locale-changed",function(){iE(h)});this.eventManager.o(this.i,"click",function(){wB(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.za(.1),wB(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),wB(h.g,!1));iE(h)})}pa(hE,rB);
1505
1507
  function iE(a){a.s.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1506
1508
  function jE(a){for(var b=t(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=T("div"),h=T("label");h.textContent=c+":";g.appendChild(h);h=T("span");h.textContent=f.C[c](c);g.appendChild(h);f.u[c]=h;e.call(d,g);a.D.push(c)}else Ta("Unrecognized statistic element:",c)}hE.prototype.release=function(){this.l.stop();this.l=null;rB.prototype.release.call(this)};L("shaka.ui.StatisticsButton",hE);function kE(){}
1507
- kE.prototype.create=function(a,b){return new hE(a,b)};JC("statistics",new kE);HB("statistics",new kE);function lE(a,b){$C.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.sc()?this.button.ariaPressed="true":this.button.ariaPressed="false";mE(this);this.eventManager.o(this.localization,"locale-updated",function(){nE(c);oE(c)});this.eventManager.o(this.localization,"locale-changed",function(){nE(c);oE(c)});this.eventManager.o(this.player,
1509
+ kE.prototype.create=function(a,b){return new hE(a,b)};JC("statistics",new kE);HB("statistics",new kE);function lE(a,b){$C.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.vc()?this.button.ariaPressed="true":this.button.ariaPressed="false";mE(this);this.eventManager.o(this.localization,"locale-updated",function(){nE(c);oE(c)});this.eventManager.o(this.localization,"locale-changed",function(){nE(c);oE(c)});this.eventManager.o(this.player,
1508
1510
  "texttrackvisibility",function(){pE(c);oE(c)});this.eventManager.o(this.player,"textchanged",function(){oE(c)});this.eventManager.o(this.player,"trackschanged",function(){qE(c)});pE(this);nE(this);oE(this);qE(this)}pa(lE,$C);function mE(a){var b=dl();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(vB());a.g=T("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1509
- function pE(a){a.player.sc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new N("captionselectionupdated"))}
1510
- function oE(a){var b=a.player.Xb();YC(b,a.menu,function(c){return rE(a,c)},a.player.sc(),a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=dl();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.kg(!1);oE(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.sc()||(b.ariaSelected="true",b.appendChild(vB()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1511
- a.button.setAttribute("shaka-status",a.currentSelection.textContent);uB(a.menu);a.controls.dispatchEvent(new N("captionselectionupdated"))}function rE(a,b){return K(function(c){a.player.dg(b);return D(c,a.player.kg(!0),0)})}
1512
- function nE(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function qE(a){var b=0<a.player.Xb().length;wB(a.button,b);oE(a)}L("shaka.ui.TextSelection",lE);function sE(){}sE.prototype.create=function(a,b){return new lE(a,b)};JC("captions",new sE);gC("captions",new sE);function tE(a,b){MB.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return uE(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return vE(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return vE(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return uE(c)});this.eventManager.o(this.localization,"locale-updated",function(){return wE(c)});
1511
+ function pE(a){a.player.vc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new N("captionselectionupdated"))}
1512
+ function oE(a){var b=a.player.Yb();YC(b,a.menu,function(c){return rE(a,c)},a.player.vc(),a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=dl();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Ie(!1);oE(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.vc()||(b.ariaSelected="true",b.appendChild(vB()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1513
+ a.button.setAttribute("shaka-status",a.currentSelection.textContent);uB(a.menu);a.controls.dispatchEvent(new N("captionselectionupdated"))}function rE(a,b){return K(function(c){a.player.hg(b);return D(c,a.player.Ie(!0),0)})}
1514
+ function nE(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function qE(a){var b=0<a.player.Yb().length;wB(a.button,b);oE(a)}L("shaka.ui.TextSelection",lE);function sE(){}sE.prototype.create=function(a,b){return new lE(a,b)};JC("captions",new sE);gC("captions",new sE);function tE(a,b){MB.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return uE(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return vE(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return vE(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return uE(c)});this.eventManager.o(this.localization,"locale-updated",function(){return wE(c)});
1513
1515
  this.eventManager.o(this.localization,"locale-changed",function(){return wE(c)});uE(this);wE(this);if(this.ad)this.onChange()}pa(tE,MB);tE.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function uE(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);xE(a)}function vE(a){var b=a.ad.getVolume();a.setValue(100*b);xE(a)}
1514
1516
  function xE(a){var b=a.g.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function wE(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}L("shaka.ui.VolumeBar",tE);function yE(){}yE.prototype.create=function(a,b){return new tE(a,b)};gC("volume",new yE);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1515
1517