shaka-player 4.0.2 → 4.0.3
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.
- package/AUTHORS +1 -0
- package/CHANGELOG.md +13 -0
- package/CONTRIBUTORS +1 -0
- package/build/test.py +1 -1
- package/demo/common/assets.js +1 -1
- package/demo/main.js +3 -3
- package/dist/demo.compiled.debug.js +3 -3
- package/dist/demo.compiled.debug.map +2 -2
- package/dist/demo.compiled.js +3 -3
- package/dist/demo.compiled.map +2 -2
- package/dist/locales.js +32 -32
- package/dist/receiver.compiled.debug.js +1 -1
- package/dist/receiver.compiled.debug.map +1 -1
- package/dist/receiver.compiled.js +1 -1
- package/dist/receiver.compiled.map +1 -1
- package/dist/shaka-player.compiled.debug.externs.js +3 -2
- package/dist/shaka-player.compiled.debug.js +191 -185
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +3 -2
- package/dist/shaka-player.compiled.js +720 -715
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.debug.externs.js +3 -2
- package/dist/shaka-player.ui.debug.js +223 -216
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +3 -2
- package/dist/shaka-player.ui.js +896 -893
- package/dist/shaka-player.ui.map +4 -4
- package/externs/shaka/player.js +4 -2
- package/lib/hls/hls_parser.js +177 -68
- package/lib/media/segment_index.js +26 -1
- package/lib/media/segment_reference.js +10 -3
- package/lib/media/streaming_engine.js +1 -1
- package/lib/player.js +1 -1
- package/lib/util/stream_utils.js +1 -0
- package/package.json +2 -2
- package/test/hls/hls_parser_unit.js +102 -8
package/dist/shaka-player.ui.js
CHANGED
|
@@ -13,48 +13,49 @@ var q;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:
|
|
|
13
13
|
function ca(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 da=ca(this);function ea(a,b){if(b)a:{for(var c=da,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ba(c,d,{configurable:!0,writable:!0,value:f})}}
|
|
14
14
|
ea("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;ba(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
15
|
ea("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=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
|
|
16
|
-
function
|
|
17
|
-
if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var na={a:!0},oa={};try{oa.__proto__=na;ma=oa.a;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var
|
|
18
|
-
function
|
|
19
|
-
function
|
|
20
|
-
function ya(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.rf?a.g=a.m||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new
|
|
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.A=!1,e;var f=e.value}catch(g){return a.g.l=null,
|
|
22
|
-
function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,
|
|
23
|
-
function Da(a){this.next=function(b){
|
|
24
|
-
function Ea(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())})}function I(a){return Ea(new Da(new za(a)))}function
|
|
16
|
+
function r(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ia(a){if(!(a instanceof Array)){a=r(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ka="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},la;
|
|
17
|
+
if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var na={a:!0},oa={};try{oa.__proto__=na;ma=oa.a;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=la;
|
|
18
|
+
function qa(a,b){a.prototype=ka(b.prototype);a.prototype.constructor=a;if(pa)pa(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.Ri=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
|
|
19
|
+
function ta(a,b){a.i={gf:b,rf:!0};a.g=a.m||a.j}ra.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function z(a){a.g=0}function B(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b,c){a.g=b;a.m=c||0}function E(a,b){a.m=b||0;var c=a.i.gf;a.i=null;return c}function wa(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.rf?a.g=a.m||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new ra;this.h=a}function Aa(a,b){sa(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.A=!1,e;var f=e.value}catch(g){return a.g.l=null,ta(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}
|
|
22
|
+
function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ta(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.rf)throw b.gf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
|
|
23
|
+
function Da(a){this.next=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ca(a));return b};this["throw"]=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.B):(ta(a.g,b),b=Ca(a));return b};this["return"]=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}
|
|
24
|
+
function Ea(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())})}function I(a){return Ea(new Da(new za(a)))}function Ha(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
|
|
25
25
|
ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.A=!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=da.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=
|
|
26
26
|
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)}};
|
|
27
27
|
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.B(2,g)};b.prototype.m=function(g){this.B(1,g)};b.prototype.B=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.F()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.F=
|
|
28
28
|
function(){if(this.A)return!1;var g=da.CustomEvent,h=da.Event,k=da.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=da.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;
|
|
29
|
-
b.prototype.J=function(g){var h=this.j();g.
|
|
30
|
-
break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!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=
|
|
31
|
-
while(!k.done)})};return b});function
|
|
32
|
-
ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=
|
|
33
|
-
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(
|
|
34
|
-
|
|
35
|
-
ea("Map",function(a){function b(){var h={};return h.
|
|
36
|
-
list:m,index:-1,
|
|
37
|
-
"t"!=m.value[1]||!l.next().done?!1:!0}catch(
|
|
38
|
-
h.
|
|
39
|
-
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
|
|
40
|
-
ea("Set",function(a){function b(c){this.g=new Map;if(c){c=
|
|
29
|
+
b.prototype.J=function(g){var h=this.j();g.cd(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(p,t){return"function"==typeof p?function(w){try{l(p(w))}catch(y){m(y)}}:t}var l,m,n=new b(function(p,t){l=p;m=t});this.cd(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.cd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
|
|
30
|
+
break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!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=r(g),m=l.next();!m.done;m=l.next())d(m.value).cd(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(w){return function(y){p[w]=y;t--;0==t&&l(p)}}var p=[],t=0;do p.push(void 0),t++,d(k.value).cd(n(p.length-1),m),k=h.next();
|
|
31
|
+
while(!k.done)})};return b});function Ia(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
|
|
32
|
+
ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=r(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(!Ia(k,g)){var l=new c;ba(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({}),
|
|
33
|
+
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(!Ia(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ia(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
|
|
34
|
+
Ia(k,g)&&Ia(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Ia(k,g)&&Ia(k[g],this.g)?delete k[g][this.g]:!1};return b});
|
|
35
|
+
ea("Map",function(a){function b(){var h={};return h.ob=h.next=h.head=h}function c(h,k){var l=h.g;return fa(function(){if(l){for(;l.head!=h.g;)l=l.ob;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&&Ia(h.h,l))for(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,va:p}}return{id:l,
|
|
36
|
+
list:m,index:-1,va:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=r(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(r([[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||
|
|
37
|
+
"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.va?l.va.value=k:(l.va={next:this.g,ob:this.g.ob,head:this.g,key:h,value:k},l.list.push(l.va),this.g.ob.next=l.va,this.g.ob=l.va,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.va&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.va.ob.next=h.va.next,h.va.next.ob=h.va.ob,
|
|
38
|
+
h.va.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.ob=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).va};e.prototype.get=function(h){return(h=d(this,h).va)&&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=function(h,k){for(var l=this.entries(),
|
|
39
|
+
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 Ja(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}ea("Array.prototype.keys",function(a){return a?a:function(){return Ja(this,function(b){return b})}});
|
|
40
|
+
ea("Set",function(a){function b(c){this.g=new Map;if(c){c=r(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(r([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||
|
|
41
41
|
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;
|
|
42
42
|
b.prototype[Symbol.iterator]=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});ea("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}});
|
|
43
|
-
function
|
|
44
|
-
ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});function
|
|
45
|
-
ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==
|
|
46
|
-
var
|
|
47
|
-
ea("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;})})}});ea("Array.prototype.entries",function(a){return a?a:function(){return
|
|
48
|
-
ea("String.prototype.repeat",function(a){return a?a:function(b){var c=
|
|
49
|
-
ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)
|
|
43
|
+
function Ka(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{pf:e,v:f}}return{pf:-1,v:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).pf}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
|
|
44
|
+
ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});function Ma(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+""}
|
|
45
|
+
ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ma(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ka(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){for(var d=Ma(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});
|
|
46
|
+
var Na="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)Ia(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||Na});ea("Array.prototype.values",function(a){return a?a:function(){return Ja(this,function(b,c){return c})}});
|
|
47
|
+
ea("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;})})}});ea("Array.prototype.entries",function(a){return a?a:function(){return Ja(this,function(b,c){return[b,c]})}});
|
|
48
|
+
ea("String.prototype.repeat",function(a){return a?a:function(b){var c=Ma(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}});ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ia(b,d)&&c.push(b[d]);return c}});ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
|
|
49
|
+
ea("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}});ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ia(b,d)&&c.push([d,b[d]]);return c}});var Oa=this||self;
|
|
50
|
+
function J(a,b){var c=a.split("."),d=Oa;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};/*
|
|
50
51
|
@license
|
|
51
52
|
Shaka Player
|
|
52
53
|
Copyright 2016 Google LLC
|
|
53
54
|
SPDX-License-Identifier: Apache-2.0
|
|
54
55
|
*/
|
|
55
|
-
function M(a,b){if(b)if(b instanceof Map)for(var c=
|
|
56
|
-
function
|
|
57
|
-
eb.prototype.release=function(){this.
|
|
56
|
+
function M(a,b){if(b)if(b instanceof Map)for(var c=r(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}
|
|
57
|
+
function Pa(a){var b=new M(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}M.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};M.prototype.stopImmediatePropagation=function(){this.g=!0};M.prototype.stopPropagation=function(){};J("shaka.util.FakeEvent",M);function Qa(){}function Sa(){}function Ta(){}function Ua(a){var b=Ha.apply(1,arguments);Va.has(a)||(Va.add(a),Ta.apply(Qa,ia(b)))}function Wa(){}function Xa(){}function Ya(){}function Za(){}var Va=new Set;if(window.console&&window.console.log.bind){var $a={},bb=($a[1]=console.error.bind(console),$a[2]=console.warn.bind(console),$a[3]=console.info.bind(console),$a[4]=console.log.bind(console),$a[5]=console.debug.bind(console),$a[6]=console.debug.bind(console),$a);Ta=bb[2];Sa=bb[1]};function cb(){this.g={}}q=cb.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.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])};function db(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function eb(){this.ua=new cb;this.nd=this}eb.prototype.addEventListener=function(a,b){this.ua&&this.ua.push(a,b)};eb.prototype.removeEventListener=function(a,b){this.ua&&this.ua.remove(a,b)};eb.prototype.dispatchEvent=function(a){if(!this.ua)return!0;var b=this.ua.get(a.type)||[],c=this.ua.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.nd;a.currentTarget=this.nd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
|
|
58
|
+
eb.prototype.release=function(){this.ua=null};function fb(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function gb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function hb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function ib(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c};/*
|
|
58
59
|
@license
|
|
59
60
|
Copyright 2008 The Closure Library Authors
|
|
60
61
|
SPDX-License-Identifier: Apache-2.0
|
|
@@ -64,13 +65,13 @@ var jb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
|
|
|
64
65
|
Copyright 2006 The Closure Library Authors
|
|
65
66
|
SPDX-License-Identifier: Apache-2.0
|
|
66
67
|
*/
|
|
67
|
-
function kb(a){var b;a instanceof kb?(lb(this,a.
|
|
68
|
-
q.toString=function(){var a=[],b=this.
|
|
69
|
-
q.resolve=function(a){var b=this.clone();"data"===b.
|
|
70
|
-
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.
|
|
68
|
+
function kb(a){var b;a instanceof kb?(lb(this,a.Va),this.Rb=a.Rb,this.Ya=a.Ya,mb(this,a.kc),this.Ka=a.Ka,nb(this,a.g.clone()),this.Hb=a.Hb):a&&(b=String(a).match(jb))?(lb(this,b[1]||"",!0),this.Rb=ob(b[2]||""),this.Ya=ob(b[3]||"",!0),mb(this,b[4]),this.Ka=ob(b[5]||"",!0),nb(this,b[6]||"",!0),this.Hb=ob(b[7]||"")):this.g=new pb(null)}q=kb.prototype;q.Va="";q.Rb="";q.Ya="";q.kc=null;q.Ka="";q.Hb="";
|
|
69
|
+
q.toString=function(){var a=[],b=this.Va;b&&a.push(rb(b,sb,!0),":");if(b=this.Ya){a.push("//");var c=this.Rb;c&&a.push(rb(c,sb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.kc;null!=b&&a.push(":",String(b))}if(b=this.Ka)this.Ya&&"/"!=b.charAt(0)&&a.push("/"),a.push(rb(b,"/"==b.charAt(0)?tb:ub,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Hb)&&a.push("#",rb(b,vb));return a.join("")};
|
|
70
|
+
q.resolve=function(a){var b=this.clone();"data"===b.Va&&(b=new kb);var c=!!a.Va;c?lb(b,a.Va):c=!!a.Rb;c?b.Rb=a.Rb:c=!!a.Ya;c?b.Ya=a.Ya:c=null!=a.kc;var d=a.Ka;if(c)mb(b,a.kc);else if(c=!!a.Ka){if("/"!=d.charAt(0))if(this.Ya&&!this.Ka)d="/"+d;else{var e=b.Ka.lastIndexOf("/");-1!=e&&(d=b.Ka.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(""):".."==
|
|
71
|
+
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.Ka=d:c=""!==a.g.toString();c?nb(b,a.g.clone()):c=!!a.Hb;c&&(b.Hb=a.Hb);return b};q.clone=function(){return new kb(this)};function lb(a,b,c){a.Va=c?ob(b,!0):b;a.Va&&(a.Va=a.Va.replace(/:$/,""))}function mb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.kc=b}else a.kc=null}function nb(a,b,c){b instanceof pb?a.g=b:(c||(b=rb(b,wb)),a.g=new pb(b))}
|
|
71
72
|
function ob(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function rb(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 sb=/[#\/\?@]/g,ub=/[#\?:]/g,tb=/[#\?]/g,wb=/[#\?@]/g,vb=/#/g;function pb(a){this.g=a||null}
|
|
72
|
-
function yb(a){if(!a.Ea&&(a.Ea={},a.
|
|
73
|
-
q.set=function(a,b){yb(this);this.g=null;this.Ea.hasOwnProperty(a)?this.Ea[a]=[b]:this.add(a,b);return this};q.toString=function(){if(this.g)return this.g;if(!this.Ea)return"";var a=[],b;for(b in this.Ea)for(var c=encodeURIComponent(b),d=this.Ea[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};q.clone=function(){var a=new pb;a.g=this.g;if(this.Ea){var b={},c;for(c in this.Ea)b[c]=this.Ea[c].concat();a.Ea=b;a.
|
|
73
|
+
function yb(a){if(!a.Ea&&(a.Ea={},a.ed=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," ")))}}q=pb.prototype;q.Ea=null;q.ed=null;q.add=function(a,b){yb(this);this.g=null;var c=this.Ea.hasOwnProperty(a)&&this.Ea[a];c||(this.Ea[a]=c=[]);c.push(b);this.ed++;return this};
|
|
74
|
+
q.set=function(a,b){yb(this);this.g=null;this.Ea.hasOwnProperty(a)?this.Ea[a]=[b]:this.add(a,b);return this};q.toString=function(){if(this.g)return this.g;if(!this.Ea)return"";var a=[],b;for(b in this.Ea)for(var c=encodeURIComponent(b),d=this.Ea[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};q.clone=function(){var a=new pb;a.g=this.g;if(this.Ea){var b={},c;for(c in this.Ea)b[c]=this.Ea[c].concat();a.Ea=b;a.ed=this.ed}return a};function O(a,b,c){var d=Ha.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}O.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};J("shaka.util.Error",O);O.Severity={RECOVERABLE:1,CRITICAL:2};O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
|
|
74
75
|
O.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,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,
|
|
75
76
|
TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,
|
|
76
77
|
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,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,
|
|
@@ -79,803 +80,804 @@ HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIA
|
|
|
79
80
|
LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,
|
|
80
81
|
CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,CS_IMA_SDK_MISSING:1E4,
|
|
81
82
|
CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function zb(a,b){return a.concat(b)}function Ab(){}function Bb(a){return null!=a};function Cb(a,b){if(0==b.length)return a;var c=b.map(function(d){return new kb(d)});return a.map(function(d){return new kb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(zb,[]).map(function(d){return d.toString()})}function Db(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
|
|
82
|
-
function Eb(a,b){if(1==b.length)return b[0];var c=Fb(a,b);if(null!=c)return c;throw new O(2,4,4025,b);}function Fb(a,b){for(var c=
|
|
83
|
-
function
|
|
84
|
-
function
|
|
85
|
-
Jb.getLocaleForText=function(a){return
|
|
86
|
-
var
|
|
83
|
+
function Eb(a,b){if(1==b.length)return b[0];var c=Fb(a,b);if(null!=c)return c;throw new O(2,4,4025,b);}function Fb(a,b){for(var c=r(Gb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=r(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Hb?"":null}var Hb="text",Ib={Ma:"video",Fb:"audio",ha:Hb,xc:"image",qh:"application"},Gb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Jb(){}function Kb(a,b){a=Lb(a);b=Lb(b);return a.split("-")[0]==b.split("-")[0]}function Mb(a,b){a=Lb(a);b=Lb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Nb(a,b){a=Lb(a);b=Lb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Lb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Ob.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Pb(a,b){var c=Qb(a),d=Qb(b);return a!=c&&b!=d&&c==d}
|
|
84
|
+
function Rb(a,b){a=Lb(a);b=Lb(b);return b==a?4:Mb(b,a)?3:Nb(b,a)?2:Mb(a,b)?1:0}function Qb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Ob.get(a)||a}function Sb(a){return a.language?Lb(a.language):a.audio&&a.audio.language?Lb(a.audio.language):a.video&&a.video.language?Lb(a.video.language):"und"}
|
|
85
|
+
function Tb(a,b){for(var c=Lb(a),d=new Set,e=r(b),f=e.next();!f.done;f=e.next())d.add(Lb(f.value));e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Mb(f,c))return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Nb(f,c))return f;d=r(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Mb(c,f))return f;return null}J("shaka.util.LanguageUtils",Jb);Jb.findClosestLocale=Tb;Jb.getLocaleForVariant=Sb;
|
|
86
|
+
Jb.getLocaleForText=function(a){return Lb(a.language||"und")};Jb.getBase=Qb;Jb.relatedness=Rb;Jb.areSiblings=Pb;Jb.normalize=Lb;Jb.isSiblingOf=Nb;Jb.isParentOf=Mb;Jb.areLanguageCompatible=Kb;Jb.areLocaleCompatible=function(a,b){a=Lb(a);b=Lb(b);return a==b};
|
|
87
|
+
var Ob=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",
|
|
87
88
|
"cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
|
|
88
89
|
"is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
|
|
89
90
|
"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",
|
|
90
91
|
"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",
|
|
91
|
-
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function
|
|
92
|
-
q.Xe=function(a){var b=this;this.g.clear();a=
|
|
93
|
-
q.
|
|
94
|
-
function
|
|
95
|
-
c.reverse();a.i.clear();b=
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
function
|
|
99
|
-
"";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}
|
|
100
|
-
function tc(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(!
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
var
|
|
92
|
+
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Ub(a){eb.call(this);this.j=Lb(a);this.i=new Map;this.g=new Set;this.h=new Map}qa(Ub,eb);q=Ub.prototype;q.release=function(){eb.prototype.release.call(this)};
|
|
93
|
+
q.Xe=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Lb(c.value));Vb(this);a=ib(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new M("unknown-locales",(new Map).set("locales",a)));a=ib(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new M("locale-changed",a))};
|
|
94
|
+
q.ia=function(a,b,c){a=Lb(a);void 0===c&&(c=Wb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Wb||d.set(f,e)});this.h.set(a,d);Vb(this);this.dispatchEvent(new M("locale-updated"));return this};q.Zg=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.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 M("unknown-localization",a));return""};
|
|
95
|
+
function Vb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Wb:f.Wb},h=g.next()){f.Wb=h.value;e.add(f.Wb);e.add(Qb(f.Wb));h=ib(b.keys(),function(l){return function(m){return Pb(m,l.Wb)}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=ib(b.keys(),function(l){return function(m){return Qb(m)==l.Wb}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
|
|
96
|
+
c.reverse();a.i.clear();b=r(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=r(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Xb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new M("missing-localizations",d)))}function Xb(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}J("shaka.ui.Localization",Ub);Ub.prototype.resolve=Ub.prototype.resolve;
|
|
97
|
+
Ub.prototype.resolveDictionary=Ub.prototype.Zg;Ub.prototype.insert=Ub.prototype.ia;Ub.prototype.changeLocale=Ub.prototype.Xe;Ub.prototype.release=Ub.prototype.release;var Wb=1;Ub.ConflictResolution={USE_OLD:0,USE_NEW:Wb};Ub.UNKNOWN_LOCALES="unknown-locales";Ub.UNKNOWN_LOCALIZATION="unknown-localization";Ub.MISSING_LOCALIZATIONS="missing-localizations";Ub.LOCALE_CHANGED="locale-changed";Ub.LOCALE_UPDATED="locale-updated";var Yb={BACK:"BACK",Mh:"FAST_FORWARD",ki:"QUALITY",yh:"CAST",ii:"PLAY",Fh:"ENTER_PICTURE_IN_PICTURE",$h:"OFF",mi:"RESOLUTION",Ii:"UNMUTE",nh:"AD_DURATION",wi:"STATISTICS",xh:"CAPTIONS",Hi:"UNDETERMINED_LANGUAGE",li:"REPLAY",Nh:"FULL_SCREEN",Hh:"EXIT_FULL_SCREEN",pi:"SEEK",Li:"VOLUME",Vh:"MULTIPLE_LANGUAGES",si:"SKIP_TO_LIVE",Ih:"EXIT_LOOP_MODE",Wh:"MUTE",Qh:"LOOP",ai:"ON",ni:"REWIND",ji:"PLAYBACK_RATE",Eh:"ENTER_LOOP_MODE",gi:"PICTURE_IN_PICTURE",oh:"AD_TIME",AD_PROGRESS:"AD_PROGRESS",rh:"AUTO_QUALITY",
|
|
98
|
+
ph:"AIRPLAY",Kf:"SUBTITLE_FORCED",ei:"PAUSE",Jh:"EXIT_PICTURE_IN_PICTURE",ri:"SKIP_AD",Ji:"UNRECOGNIZED_LANGUAGE",Uh:"MORE_SETTINGS",Ph:"LANGUAGE",Zh:"NOT_APPLICABLE",Se:"LIVE"};function Zb(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Zb.prototype.sample=function(a,b){var c=Math.pow(this.g,a);c=b*(1-c)+c*this.h;isNaN(c)||(this.h=c,this.i+=a)};function $b(a){return a.h/(1-Math.pow(a.g,a.i))};function ac(){this.h=new Zb(2);this.j=new Zb(5);this.g=0;this.i=128E3;this.l=16E3}ac.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)};ac.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a,d=a/1E3;this.g+=b;this.h.sample(d,c);this.j.sample(d,c)}};ac.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min($b(this.h),$b(this.j))};function bc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function cc(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function dc(a,b,c){c||(c=bc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Jd:d.Jd},e=a.next()){d.Jd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Jd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
|
|
99
|
+
function ec(a,b,c){c||(c=bc);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 fc(a,b,c){this.startTime=a;this.direction=gc;this.endTime=b;this.payload=c;this.region=new hc;this.position=null;this.positionAlign=ic;this.size=0;this.textAlign=jc;this.writingMode=kc;this.lineInterpretation=lc;this.line=null;this.lineHeight="";this.lineAlign=mc;this.displayAlign=nc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=oc;this.fontStyle=pc;this.linePadding=this.letterSpacing=this.fontFamily=
|
|
100
|
+
"";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}fc.prototype.clone=function(){var a=new fc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
|
|
101
|
+
function tc(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(!ec(a.nestedCues,b.nestedCues,tc))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(!ec(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}J("shaka.text.Cue",fc);var ic="auto";
|
|
102
|
+
fc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:ic};var jc="center",uc={LEFT:"left",RIGHT:"right",CENTER:jc,START:"start",END:"end"};fc.textAlign=uc;var nc="after",vc={BEFORE:"before",CENTER:"center",AFTER:nc};fc.displayAlign=vc;var gc="ltr";fc.direction={HORIZONTAL_LEFT_TO_RIGHT:gc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var kc="horizontal-tb";fc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:kc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var lc=0;
|
|
103
|
+
fc.lineInterpretation={LINE_NUMBER:lc,PERCENTAGE:1};var mc="start",wc={CENTER:"center",START:mc,END:"end"};fc.lineAlign=wc;var xc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};fc.defaultTextColor=xc;var yc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};fc.defaultTextBackgroundColor=yc;var oc=400;fc.fontWeight={NORMAL:oc,BOLD:700};
|
|
104
|
+
var pc="normal",zc={NORMAL:pc,ITALIC:"italic",OBLIQUE:"oblique"};fc.fontStyle=zc;fc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function hc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ac;this.scroll=Bc}J("shaka.text.CueRegion",hc);var Ac=1;hc.units={PX:0,PERCENTAGE:Ac,LINES:2};var Bc="";hc.scrollMode={NONE:Bc,UP:"up"};function Cc(){}function Dc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Ec(a)==Ec(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=Fc(a),d=Fc(b),e=0;e<a.byteLength;e++)if(c[e]!=d[e])return!1;return!0}function Ec(a){return a instanceof ArrayBuffer?a:a.buffer}function Gc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
|
|
104
105
|
function Fc(a,b,c){c=void 0===c?Infinity:c;return Hc(a,void 0===b?0:b,c,Uint8Array)}function Ic(a,b,c){c=void 0===c?Infinity:c;return Hc(a,void 0===b?0:b,c,DataView)}function Hc(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Ec(a),b,Math.min(b+Math.max(c,0),e)-b)}J("shaka.util.BufferUtils",Cc);Cc.toDataView=Ic;Cc.toUint8=Fc;Cc.toArrayBuffer=Gc;Cc.equal=Dc;function Jc(){}J("shaka.dependencies",Jc);Jc.has=function(a){return Kc.has(a)};Jc.add=function(a,b){if(!Lc[a])throw Error(a+" is not supported");Kc.set(a,function(){return b})};var Lc={muxjs:"muxjs"};Jc.Allowed=Lc;var Kc=new Map([["muxjs",function(){return window.muxjs}]]);function Mc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Mc.prototype.resolve=function(){};Mc.prototype.reject=function(){};function Nc(a){this.h=a;this.g=void 0}Nc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Oc(){}function Pc(a){if(!a)return"";a=Fc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));a=(new TextDecoder).decode(a);a.includes("\ufffd")&&Sa('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!');return a}function Rc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new O(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Ic(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Sc.value()(d)}
|
|
105
106
|
function Tc(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Fc(a);if(239==c[0]&&187==c[1]&&191==c[2])return Pc(c);if(254==c[0]&&255==c[1])return Rc(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Rc(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Rc(a,!1);if(0==c[1]&&0==c[3])return Rc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Pc(a);throw new O(2,2,2003);}function Uc(a){var b=new TextEncoder;return Gc(b.encode(a))}
|
|
106
107
|
function Vc(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}J("shaka.util.StringUtils",Oc);Oc.resetFromCharCode=function(){Sc.g=void 0};Oc.toUTF16=Vc;Oc.toUTF8=Uc;Oc.fromBytesAutoDetect=Tc;Oc.fromUTF16=Rc;Oc.fromUTF8=Pc;
|
|
107
|
-
var Sc=new Nc(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={
|
|
108
|
-
function ad(a){var b=Fc(a);a="";b=
|
|
108
|
+
var Sc=new Nc(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={sb:65536};0<b.sb;b={sb:b.sb},b.sb/=2)if(a(b.sb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.sb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.sb));return e}}(b);return null});function Wc(){}function Xc(a){a=Fc(a);a=Sc.value()(a);return btoa(a)}function Yc(a,b){b=void 0==b?!0:b;var c=Xc(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function Zc(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 $c(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}
|
|
109
|
+
function ad(a){var b=Fc(a);a="";b=r(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 bd(){for(var a=Ha.apply(0,arguments),b=0,c=r(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Fc(d),c),c+=d.byteLength;return b}J("shaka.util.Uint8ArrayUtils",Wc);Wc.concat=bd;Wc.toHex=ad;Wc.fromHex=$c;Wc.fromBase64=Zc;Wc.toBase64=Yc;Wc.toStandardBase64=Xc;function cd(){var a=this;this.A=Kc.get("muxjs")();this.g=new this.A.mp4.Transmuxer({keepOriginalTimestamps:!0});this.h=null;this.m=[];this.j=[];this.i=[];this.l=!1;this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.m.push(bd(b.initSegment,b.data))});this.g.on("done",function(){var b={data:bd.apply(Wc,ia(a.m)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}cd.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
|
|
109
110
|
function dd(a,b){if(!Kc.get("muxjs")()||!ed(a))return!1;if(b)return MediaSource.isTypeSupported(fd(b,a));var c=fd("audio",a),d=fd("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}function ed(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}
|
|
110
111
|
function fd(a,b){var c=b.replace(/mp2t/i,"mp4");"audio"==a&&(c=c.replace("video","audio"));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function gd(a,b){a.l=!0;a.h=new Mc;a.m=[];a.j=[];a.i=[];var c=Fc(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new O(2,3,3018));return a.h};function hd(){}function id(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function jd(a,b,c){a=id(a,b);if(ed(a)){if(Kc.get("muxjs")())return fd(c,a)}else if("audio"==c)return a.replace("video","audio");return a}
|
|
111
112
|
function kd(a){var b=ld(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===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"===a&&"b2"===b:return"dtsx";
|
|
112
113
|
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 md(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function ld(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}J("shaka.util.MimeUtils",hd);hd.getFullType=id;
|
|
113
114
|
(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function nd(a){this.j=null;this.i=a;this.C=!1;this.l=this.B=0;this.m=Infinity;this.h=this.g=null;this.F="";this.A=new Map}function od(a){return pd[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}nd.prototype.destroy=function(){this.i=this.j=null;this.A.clear();return Promise.resolve()};
|
|
114
115
|
function qd(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g)return u(k,Promise.resolve(),2);if(!a.j||!a.i)return k["return"]();if(null==c||null==d)return a.j.parseInit(Fc(b)),k["return"]();e=a.C?c:a.B;f={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.j.parseMedia(Fc(b),f);h=g.filter(function(l){return l.startTime>=a.l&&l.startTime<a.m});a.i.append(h);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);z(k)})}
|
|
115
|
-
nd.prototype.remove=function(a,b){var c=this;return I(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.i||!c.i.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));z(d)})};function rd(a,b,c){a.l=b;a.m=c}function sd(a,b,c){a.F=b;if(b=a.A.get(b))for(var d=
|
|
116
|
-
function td(a){var b=[];a=
|
|
117
|
-
function vd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=
|
|
118
|
-
a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}J("shaka.text.TextEngine",nd);nd.prototype.destroy=nd.prototype.destroy;nd.findParser=function(a){return pd[a]};nd.unregisterParser=function(a){delete pd[a]};nd.registerParser=function(a,b){pd[a]=b};var pd={};function wd(a){this.h=a;this.g=null}wd.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};wd.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.
|
|
119
|
-
P.prototype.tickNow=P.prototype.
|
|
120
|
-
function Bd(a){return(navigator.userAgent||"").includes(a)}function zd(){if(
|
|
121
|
-
function
|
|
122
|
-
function
|
|
123
|
-
function
|
|
124
|
-
function
|
|
125
|
-
function
|
|
126
|
-
function
|
|
127
|
-
function
|
|
128
|
-
1920<e.width||e.height&&1080<e.height)&&e.codecs.includes("avc1."))return Xa(
|
|
129
|
-
function
|
|
116
|
+
nd.prototype.remove=function(a,b){var c=this;return I(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.i||!c.i.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));z(d)})};function rd(a,b,c){a.l=b;a.m=c}function sd(a,b,c){a.F=b;if(b=a.A.get(b))for(var d=r(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
|
|
117
|
+
function td(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new fc(c.startTime,c.endTime,c.text)});return b}function ud(a,b,c){b.startTime+=c;b.endTime+=c;b=r(b.nestedCues);for(var d=b.next();!d.done;d=b.next())ud(a,d.value,c)}
|
|
118
|
+
function vd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=r(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,[]);ud(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.i.append([k]))}e=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.A.has(f)||a.A.set(f,new Map),b=r(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.A.get(f).set(h,k);a.g=null==a.g?Math.max(c,
|
|
119
|
+
a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}J("shaka.text.TextEngine",nd);nd.prototype.destroy=nd.prototype.destroy;nd.findParser=function(a){return pd[a]};nd.unregisterParser=function(a){delete pd[a]};nd.registerParser=function(a,b){pd[a]=b};var pd={};function wd(a){this.h=a;this.g=null}wd.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};wd.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.xa=function(){this.stop();this.h();return this};P.prototype.S=function(a){var b=this;this.stop();this.g=(new wd(function(){b.h()})).S(a);return this};P.prototype.ka=function(a){var b=this;this.stop();this.g=(new wd(function(){b.g.S(a);b.h()})).S(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};J("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.ka;P.prototype.tickAfter=P.prototype.S;
|
|
120
|
+
P.prototype.tickNow=P.prototype.xa;function xd(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function yd(a){return""!=zd().canPlayType(a)}function Ad(){return Bd("Xbox One")}function Cd(){return Bd("Tizen")}function Gd(){return Bd("CrKey")}function Hd(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Cd()}function Id(){if(!Hd())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}
|
|
121
|
+
function Bd(a){return(navigator.userAgent||"").includes(a)}function zd(){if(Jd)return Jd;Kd||(Kd=new P(function(){Jd=null}));(Jd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Jd=document.createElement("video"));Kd.S(1);return Jd}var Kd=null,Jd=null;function Ld(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Md(f,b,c);f=Nd(f,d);b=Od(f);b=Pd(b);var g=Qd(b,e);a.variants=a.variants.filter(function(h){return Rd(h)==g?!0:!1})}function Od(a){var b=new cb;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Rd(c);b.push(d,c)}return b}
|
|
122
|
+
function Pd(a){var b=0,c=new Map,d=a.size();db(a,function(e,f){for(var g=r(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new cb);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}
|
|
123
|
+
function Md(a,b,c){var d={};b=r(b);for(var e=b.next();!e.done;d={Ud:d.Ud},e=b.next())if(d.Ud=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Ud)}}(d)),e.length){a=e;break}d={};c=r(c);for(b=c.next();!b.done;d={Gd:d.Gd},b=c.next())if(d.Gd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Gd)}}(d)),b.length){a=b;break}return a}
|
|
124
|
+
function Qd(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next())if(d=d.value,d==Sd||d==Td){if(a=Ud(a,d),1==a.size())return a.keys()[0]}else if(d==Vd)break;return Wd(a)}function Ud(a,b){var c=0,d=new cb;db(a,function(e,f){for(var g=0,h=0,k=r(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
|
|
125
|
+
function Wd(a){var b="",c=Infinity;db(a,function(d,e){for(var f=0,g=0,h=r(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Rd(a){var b="";a.video&&(b=kd(a.video.codecs));var c="";a.audio&&(c=kd(a.audio.codecs));return b+"-"+c}function Xd(a,b,c){a.variants=a.variants.filter(function(d){return Yd(d,b,c)})}
|
|
126
|
+
function Yd(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}
|
|
127
|
+
function Zd(a,b){return I(function(c){if(1==c.g)return u(c,$d(b,0<b.offlineSessionIds.length),2);ae(a,b);be(b);return u(c,ce(b),0)})}
|
|
128
|
+
function $d(a,b){return I(function(c){if(1==c.g)return u(c,de(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=ee(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Eb("video",g);g=Eb("audio",g);g=jd(e.mimeType,g,"audio");if(!MediaSource.isTypeSupported(g))return!1}f=jd(e.mimeType,f,"video");if(!MediaSource.isTypeSupported(f))return!1}if(f=d.audio)if(g=fe(f.codecs),f=jd(f.mimeType,g,"audio"),!MediaSource.isTypeSupported(f))return!1;if(Ad()&&e&&(e.width&&
|
|
129
|
+
1920<e.width||e.height&&1080<e.height)&&e.codecs.includes("avc1."))return Xa(ge(d)),!1;(e=d.decodingInfos.some(function(h){return h.supported}))||Xa(ge(d));return e});z(c)})}
|
|
130
|
+
function de(a,b,c){var d,e,f,g,h,k,l,m,n,p,t;return I(function(w){if(d=a.some(function(y){return y.decodingInfos.length}))return w["return"]();e=navigator.mediaCapabilities;f=[];g=function(y,x){var v;return I(function(D){if(1==D.g)return B(D,2),u(D,e.decodingInfo(x),4);if(2!=D.g)return v=D.h,y.decodingInfos.push(v),va(D,0);E(D);JSON.stringify(x);z(D)})};h=r(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=he(l,b,c),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,f.push(g(l,t));return u(w,Promise.all(f),
|
|
130
131
|
0)})}
|
|
131
|
-
function
|
|
132
|
-
break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=
|
|
133
|
-
f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=
|
|
134
|
-
(m.distinctiveIdentifier="required");h.persistentStateRequired&&(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(m.audio?m.audio.robustness=m.audio.robustness||h.audioRobustness:m.audio={robustness:h.audioRobustness});e&&(m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness})}l.keySystemConfiguration=m;a.push(l)}return a}function
|
|
135
|
-
function
|
|
136
|
-
function
|
|
137
|
-
function
|
|
138
|
-
function
|
|
132
|
+
function he(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=Eb("video",g);f=ee(f);g=Eb("audio",g);g=jd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=ee(f);f=jd(e.mimeType,f,"video");c.video={contentType:f,width:e.width||1,height:e.height||1,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.transferFunction="srgb";
|
|
133
|
+
break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=fe(d.codecs),f=jd(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=r(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
|
|
134
|
+
f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=r(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=r(n);for(h=n.next();!h.done;h=n.next()){h=h.value;if(h.initData&&h.initData.length){for(var p=new Set,t=r(h.initData),w=t.next();!w.done;w=t.next())p.add(w.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&
|
|
135
|
+
(m.distinctiveIdentifier="required");h.persistentStateRequired&&(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(m.audio?m.audio.robustness=m.audio.robustness||h.audioRobustness:m.audio={robustness:h.audioRobustness});e&&(m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness})}l.keySystemConfiguration=m;a.push(l)}return a}function fe(a){return Cd()?"ac-3"==a.toLowerCase()?"ec-3":a:a}
|
|
136
|
+
function ee(a){return"vp9"==a?"vp09.00.10.08":a}function ae(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!ie(d,a.audio)||c&&a&&a.video&&!ie(c,a.video)?!1:!0})}function be(a){a.textStreams=a.textStreams.filter(function(b){return od(id(b.mimeType,b.codecs))})}
|
|
137
|
+
function ce(a){var b,c,d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:b=[],c=r(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;if(je.has(f)){l.D(5);break}g=ke.get(f);if(!g){je.set(f,!1);l.D(5);break}return u(l,le(g),7);case 7:h=l.h,je.set(f,h);case 5:(k=je.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,z(l)}})}
|
|
138
|
+
function le(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)})["catch"](function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})}function ie(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
|
|
139
|
+
function me(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=[];g&&h.push(g);f&&h.push(f);var k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var n=r(b.roles),p=n.next();!p.done;p=n.next())m.add(p.value);if(c)for(n=r(c.roles),p=n.next();!p.done;p=n.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
|
|
139
140
|
kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:k,audioMimeType:d,videoMimeType:e,codecs:h.join(", "),audioCodec:f,videoCodec:g,primary:a.primary,roles:Array.from(m),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null};c&&(a.videoId=c.id,a.originalVideoId=c.originalId,
|
|
140
|
-
a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=c.bandwidth||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.label=b.label,a.audioRoles=b.roles);return a}
|
|
141
|
-
function
|
|
141
|
+
a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=c.bandwidth||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.spatialAudio=b.spatialAudio,a.label=b.label,a.audioRoles=b.roles);return a}
|
|
142
|
+
function ne(a){return{id:a.id,active:!1,type:Hb,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
|
|
142
143
|
originalAudioId:null,originalTextId:a.originalId,originalImageId:null}}
|
|
143
|
-
function
|
|
144
|
-
audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId}}function
|
|
145
|
-
function
|
|
146
|
-
function
|
|
147
|
-
originalTextId:null,originalImageId:null}}function
|
|
148
|
-
function
|
|
149
|
-
function
|
|
150
|
-
|
|
151
|
-
function
|
|
152
|
-
var
|
|
153
|
-
q.chooseVariant=function(){var a=
|
|
154
|
-
q.enable=function(){this.i=!0};q.disable=function(){this.i=!1};q.segmentDownloaded=function(a,b){this.h.sample(a,b);if(null!=this.m&&this.i)a:{if(!this.B){var c=this.h;if(!(c.g>=c.i))break a;this.B=!0}else if(Date.now()-this.m<1E3*this.g.switchInterval)break a;c=this.chooseVariant();this.h.getBandwidthEstimate(
|
|
155
|
-
q.configure=function(a){this.g=a;this.h&&this.g&&this.h.configure(this.g.advanced)};function
|
|
156
|
-
|
|
157
|
-
function
|
|
158
|
-
function
|
|
159
|
-
|
|
160
|
-
function
|
|
161
|
-
function
|
|
162
|
-
function
|
|
163
|
-
|
|
164
|
-
function
|
|
165
|
-
function
|
|
166
|
-
q.request=function(a,b){var c=this,d=new
|
|
167
|
-
var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.na(function(
|
|
168
|
-
function
|
|
169
|
-
function
|
|
170
|
-
if(!
|
|
171
|
-
c.uris[e],b));if(
|
|
172
|
-
function
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
q.
|
|
176
|
-
|
|
177
|
-
function
|
|
178
|
-
function
|
|
179
|
-
function
|
|
180
|
-
function
|
|
181
|
-
|
|
182
|
-
function
|
|
183
|
-
q.
|
|
184
|
-
|
|
185
|
-
function
|
|
186
|
-
B(g,6);return u(g,a.B.setServerCertificate(a.g.serverCertificate),8);case 8:
|
|
187
|
-
function
|
|
188
|
-
function
|
|
189
|
-
function
|
|
190
|
-
f.keySystem;var D=d.get(f.keySystem);var C=[],A=[],F=[],G=[],H=new Set
|
|
191
|
-
D.next())C=C.value,C.distinctiveIdentifierRequired&&(
|
|
192
|
-
|
|
193
|
-
function
|
|
194
|
-
l.Nd}}(d)))return e.keySystemAccess;a=
|
|
195
|
-
function
|
|
196
|
-
|
|
197
|
-
function
|
|
144
|
+
function oe(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],
|
|
145
|
+
audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId}}function pe(a){a.__shaka_id||(a.__shaka_id=qe++);return a.__shaka_id}
|
|
146
|
+
function re(a){var b=se(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="application/cea-608");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function te(a){var b=se(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
|
|
147
|
+
function se(a){return{id:pe(a),active:!1,type:"",bandwidth:0,language:Lb(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,
|
|
148
|
+
originalTextId:null,originalImageId:null}}function ue(a){return a.allowedByApplication&&a.allowedByKeySystem}function ve(a){return a.filter(function(b){return ue(b)})}
|
|
149
|
+
function Nd(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=r(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;e=c.filter(function(g){return g<=b});return e.length?d.get(Math.max.apply(Math,ia(e))):d.get(Math.min.apply(Math,ia(c)))}
|
|
150
|
+
function we(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=Tb(Lb(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Lb(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=xe(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(zb,[]);return a.length?
|
|
151
|
+
xe(e,a[0]):e}function xe(a,b){return a.filter(function(c){return c.roles.includes(b)})}function ge(a){var b=[];a.audio&&b.push(ye(a.audio));a.video&&b.push(ye(a.video));return b.join(", ")}
|
|
152
|
+
function ye(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}
|
|
153
|
+
var qe=0,Sd="smooth",Td="powerEfficient",Vd="bandwidth",je=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),ke=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function ze(){var a=this;this.l=null;this.i=!1;this.h=new ac;navigator.connection&&navigator.connection.addEventListener("change",function(){if(a.g.useNetworkInformation&&a.i){a.h=new ac;a.g&&a.h.configure(a.g.advanced);var b=a.chooseVariant();b&&a.l(b)}});this.j=[];this.A=1;this.B=!1;this.g=this.m=null}q=ze.prototype;q.stop=function(){this.l=null;this.i=!1;this.j=[];this.A=1;this.m=null};q.init=function(a){this.l=a};
|
|
154
|
+
q.chooseVariant=function(){var a=Ae(this.g.restrictions,this.j),b=this.h.getBandwidthEstimate(Be(this));this.j.length&&!a.length&&(a=Ae(null,this.j),a=[a[0]]);for(var c=a[0]||null,d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.A)?1:Math.abs(this.A),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.m=Date.now();return c};
|
|
155
|
+
q.enable=function(){this.i=!0};q.disable=function(){this.i=!1};q.segmentDownloaded=function(a,b){this.h.sample(a,b);if(null!=this.m&&this.i)a:{if(!this.B){var c=this.h;if(!(c.g>=c.i))break a;this.B=!0}else if(Date.now()-this.m<1E3*this.g.switchInterval)break a;c=this.chooseVariant();this.h.getBandwidthEstimate(Be(this));c&&this.l(c)}};q.getBandwidthEstimate=function(){return this.h.getBandwidthEstimate(Be(this))};q.setVariants=function(a){this.j=a};q.playbackRateChanged=function(a){this.A=a};
|
|
156
|
+
q.configure=function(a){this.g=a;this.h&&this.g&&this.h.configure(this.g.advanced)};function Be(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}function Ae(a,b){a&&(b=b.filter(function(c){return Yd(c,a,{width:Infinity,height:Infinity})}));return b.sort(function(c,d){return c.bandwidth-d.bandwidth})}J("shaka.abr.SimpleAbrManager",ze);ze.prototype.configure=ze.prototype.configure;
|
|
157
|
+
ze.prototype.playbackRateChanged=ze.prototype.playbackRateChanged;ze.prototype.setVariants=ze.prototype.setVariants;ze.prototype.getBandwidthEstimate=ze.prototype.getBandwidthEstimate;ze.prototype.segmentDownloaded=ze.prototype.segmentDownloaded;ze.prototype.disable=ze.prototype.disable;ze.prototype.enable=ze.prototype.enable;ze.prototype.chooseVariant=ze.prototype.chooseVariant;ze.prototype.init=ze.prototype.init;ze.prototype.stop=ze.prototype.stop;function Ce(a,b){this.h=a;this.g=new Set([a]);b=b||[];for(var c=r(b),d=c.next();!d.done;d=c.next())this.add(d.value)}Ce.prototype.add=function(a){return De(this.h,a)?(this.g.add(a),!0):!1};
|
|
158
|
+
function De(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!((!(!c.channelsCount||!d.channelsCount||2<c.channelsCount||2<d.channelsCount)||c.channelsCount==d.channelsCount)&&Fe(c,d)&&Ge(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(c=a.video,d=b.video,c=!(Fe(c,d)&&Ge(c.roles,d.roles)));return c?!1:!0}Ce.prototype.values=function(){return this.g.values()};
|
|
159
|
+
function Fe(a,b){if(a.mimeType!=b.mimeType)return!1;var c=a.codecs.split(",").map(function(f){return ld(f)[0]}),d=b.codecs.split(",").map(function(f){return ld(f)[0]});if(c.length!=d.length)return!1;c.sort();d.sort();for(var e=0;e<c.length;e++)if(c[e]!=d[e])return!1;return!0}function Ge(a,b){var c=new Set(a),d=new Set(b);c["delete"]("main");d["delete"]("main");if(c.size!=d.size)return!1;c=r(c);for(var e=c.next();!e.done;e=c.next())if(!d.has(e.value))return!1;return!0};function He(a){this.g=a;this.h=new Ie(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}He.prototype.create=function(a){var b=this,c=a.filter(function(d){return De(b.g,d)});return c.length?new Ce(c[0],c):this.h.create(a)};function Ie(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
|
|
160
|
+
Ie.prototype.create=function(a){var b=[];b=Je(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Ke(b,this.j);a.length&&(b=a);this.g&&(a=Nd(b,this.g),a.length&&(b=a));this.h&&(a=Le(b,this.h),a.length&&(b=a));a=new Ce(b[0]);b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,De(a.h,c)&&a.add(c);return a};function Je(a,b){var c=Lb(b),d=Tb(c,a.map(function(e){return Sb(e)}));return d?a.filter(function(e){return d==Sb(e)}):[]}
|
|
161
|
+
function Ke(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Le(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function Me(){this.g=Ne;this.h=(new Map).set(Ne,2).set(Oe,1)}function Pe(a,b,c){a.h.set(Ne,c).set(Oe,b)}var Oe=0,Ne=1;function Qe(a,b){var c=Re();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.A=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}
|
|
162
|
+
function Se(a){var b,c;return I(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new O(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return u(d,new Promise(function(e){(new P(e)).S(c/1E3)}),2)}a.h*=a.m;z(d)})}function Re(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Te(a,b){this.promise=a;this.i=b;this.g=!1}function Ue(a){return new Te(Promise.reject(a),function(){return Promise.resolve()})}function Ve(){var a=Promise.reject(new O(2,7,7001));a["catch"](function(){});return new Te(a,function(){return Promise.resolve()})}function We(a){return new Te(Promise.resolve(a),function(){return Promise.resolve()})}function Xe(a){return new Te(a,function(){return a["catch"](function(){})})}Te.prototype.abort=function(){this.g=!0;return this.i()};
|
|
163
|
+
function Ye(a){return new Te(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Te.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
|
|
164
|
+
Te.prototype.na=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Ze(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Mc,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new Te(f,function(){return d()})};
|
|
165
|
+
function Ze(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()}}}J("shaka.util.AbortableOperation",Te);Te.prototype.chain=Te.prototype.na;Te.prototype["finally"]=Te.prototype["finally"];Te.all=Ye;Te.prototype.abort=Te.prototype.abort;Te.notAbortable=Xe;Te.completed=We;Te.aborted=Ve;Te.failed=Ue;function $e(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 Set;return b(a)}function af(a){var b={},c;for(c in a)b[c]=a[c];return b};function bf(){this.g=[]}function cf(a,b){a.g.push(b["finally"](function(){cc(a.g,b)}))}bf.prototype.destroy=function(){for(var a=[],b=r(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 df(a,b,c){eb.call(this);this.i=!1;this.m=new bf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}qa(df,eb);q=df.prototype;q.Ae=function(a){this.A=a};function ef(a,b,c,d){c=c||ff;var e=gf[a];if(!e||c>=e.priority)gf[a]={priority:c,Qg:b,Rg:void 0===d?!1:d}}q.Sg=function(a){this.g.add(a)};q.ih=function(a){this.g["delete"](a)};q.Sf=function(){this.g.clear()};q.Tg=function(a){this.h.add(a)};q.jh=function(a){this.h["delete"](a)};q.Tf=function(){this.h.clear()};
|
|
166
|
+
function hf(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}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();eb.prototype.release.call(this);return this.m.destroy()};
|
|
167
|
+
q.request=function(a,b){var c=this,d=new jf;if(this.i){var e=Promise.reject(new O(2,7,7001));e["catch"](function(){});return new kf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?$e(b.retryParameters):Re();b.uris=$e(b.uris);e=lf(this,a,b);var f=e.na(function(){return mf(c,a,b,new Qe(b.retryParameters,!1),0,null,d)}),g=f.na(function(n){return nf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
|
|
168
|
+
var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.na(function(n){var p=Date.now()-l,t=n.response;t.timeMs+=k;t.timeMs+=p;n.Dg||!c.l||t.fromCache||a!=of||c.l(t.timeMs,t.data.byteLength);return t},function(n){n&&(n.severity=2);throw n;});e=new kf(m.promise,function(){return m.abort()},d);cf(this.m,e);return e};
|
|
169
|
+
function lf(a,b,c){var d=We(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Pd:e.Pd},f=a.next())e.Pd=f.value,d=d.na(function(g){return function(){c.body&&(c.body=Gc(c.body));return g.Pd(b,c)}}(e));return d.na(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
|
|
170
|
+
function mf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new kb(c.uris[e]),k=h.Va,l=!1;k||(k=location.protocol,k=k.slice(0,-1),lb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=gf[k])?k.Qg:null;if(!m)return Ue(new O(2,1,1E3,h));var n=k.Rg,p=null,t=null,w=!1,y=!1,x;return Xe(Se(d)).na(function(){if(a.i)return Ve();x=Date.now();var v=m(c.uris[e],c,b,function(A,F,G){p&&p.stop();t&&t.S(C/1E3);a.l&&b==of&&(a.l(A,F),l=!0,g.g=G)},function(A){a.j&&a.j(A,c,b);y=!0});
|
|
171
|
+
if(!n)return v;var D=c.retryParameters.connectionTimeout;D&&(p=new P(function(){w=!0;v.abort()}),p.S(D/1E3));var C=c.retryParameters.stallTimeout;C&&(t=new P(function(){w=!0;v.abort()}));return v}).na(function(v){p&&p.stop();t&&t.stop();void 0==v.timeMs&&(v.timeMs=Date.now()-x);var D={response:v,Dg:l};!y&&a.j&&a.j(v.headers,c,b);return D},function(v){p&&p.stop();t&&t.stop();if(a.B){var D=null,C=0;v instanceof O&&(D=v,1001==v.code&&(C=v.data[1]));a.B(c,D,C,w)}if(a.i)return Ve();w&&(v=new O(1,1,1003,
|
|
172
|
+
c.uris[e],b));if(v instanceof O){if(7001==v.code)throw v;if(1010==v.code)throw f;if(1==v.severity)return D=(new Map).set("error",v),D=new M("retry",D),a.dispatchEvent(D),e=(e+1)%c.uris.length,mf(a,b,c,d,e,v,g)}throw v;})}
|
|
173
|
+
function nf(a,b,c){var d=We(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Qd:e.Qd},f=a.next())e.Qd=f.value,d=d.na(function(g){return function(){var h=c.response;h.data&&(h.data=Gc(h.data));return g.Qd(b,h)}}(e));return d.na(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}J("shaka.net.NetworkingEngine",df);df.prototype.request=df.prototype.request;df.prototype.destroy=df.prototype.destroy;df.makeRequest=hf;
|
|
174
|
+
df.defaultRetryParameters=function(){return Re()};df.prototype.clearAllResponseFilters=df.prototype.Tf;df.prototype.unregisterResponseFilter=df.prototype.jh;df.prototype.registerResponseFilter=df.prototype.Tg;df.prototype.clearAllRequestFilters=df.prototype.Sf;df.prototype.unregisterRequestFilter=df.prototype.ih;df.prototype.registerRequestFilter=df.prototype.Sg;df.unregisterScheme=function(a){delete gf[a]};df.registerScheme=ef;df.prototype.setForceHTTPS=df.prototype.Ae;function jf(){this.g=0}
|
|
175
|
+
df.NumBytesRemainingClass=jf;function kf(a,b,c){Te.call(this,a,b);this.h=c}qa(kf,Te);df.PendingRequest=kf;var of=1;df.RequestType={MANIFEST:0,SEGMENT:of,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var ff=3;df.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:ff};var gf={};function pf(a){this.g=!1;this.h=new Mc;this.i=a}pf.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 qf(a,b){if(a.g){if(b instanceof O&&7003==b.code)throw b;throw new O(2,7,7003,b);}};function rf(){this.g=new cb}q=rf.prototype;q.release=function(){this.Pc();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new sf(a,b,c,d),this.g.push(b,a))};q.Fa=function(a,b,c,d){function e(g){f.nc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.nc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.nc(),this.g.remove(b,e))}};
|
|
176
|
+
q.Pc=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.nc();this.g.g={}}};J("shaka.util.EventManager",rf);rf.prototype.removeAll=rf.prototype.Pc;rf.prototype.unlisten=rf.prototype.nc;rf.prototype.listenOnce=rf.prototype.Fa;rf.prototype.listen=rf.prototype.o;rf.prototype.release=rf.prototype.release;function sf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=tf(a,d);this.target.addEventListener(b,c,this.g)}
|
|
177
|
+
sf.prototype.nc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function tf(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 uf(a)?b:b.capture||!1}
|
|
178
|
+
function uf(a){var b=vf;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}vf=b}return b||!1}var vf=void 0;function wf(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function xf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function yf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=r(a),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function zf(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.B=null;this.ba=this.$=!1;this.J=0;this.g=null;this.A=new rf;this.i=new Map;this.F=[];this.C=new Mc;this.h=null;this.m=function(d){c.C.reject(d);a.onError(d)};this.ea=new Map;this.ua=new Map;this.U=new P(function(){return Af(c)});this.N=!1;this.K=[];this.P=!1;this.aa=(new P(function(){Bf(c)})).ka(b);this.C["catch"](function(){});this.j=new pf(function(){return Cf(c)});this.X=!1;this.H=null}q=zf.prototype;q.destroy=function(){return this.j.destroy()};
|
|
179
|
+
function Cf(a){return I(function(b){switch(b.g){case 1:return a.A.release(),a.A=null,a.C.reject(),a.aa.stop(),a.aa=null,a.U.stop(),a.U=null,u(b,Df(a),2);case 2:if(!a.l){b.D(3);break}B(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:E(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.B=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,a.H=null,z(b)}})}q.configure=function(a){this.h=a};function Ef(a,b,c){a.ba=!0;a.F=[];a.N=c;return Ff(a,b)}
|
|
180
|
+
function Gf(a,b,c){a.F=c;a.N=0<c.length;return Ff(a,b)}function Hf(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 If(a,g,[])}
|
|
181
|
+
function Ff(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){if(1==x.g){if(c=Jf(a))for(d=r(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(v){return v.video&&v.video.drmInfos.length||v.audio&&v.audio.drmInfos.length?!0:!1});g||(h=wf(a.h.servers),Kf(b,h));k=r(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Lf(l),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,Mf(t,wf(a.h.servers),wf(a.h.advanced||{}));return u(x,
|
|
182
|
+
de(b,a.N,a.X),2)}w=g||Object.keys(a.h.servers).length;if(!w)return a.$=!0,x["return"](Promise.resolve());y=If(a,void 0,b);return x["return"](g?y:y["catch"](function(){}))})}function Nf(a){var b;return I(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c["return"]();if(!a.H){c.D(2);break}return u(c,a.H,3);case 3:return c["return"]();case 2:return B(c,4),a.H=a.l.setMediaKeys(a.B),u(c,a.H,6);case 6:va(c,5);break;case 4:b=E(c),a.m(new O(2,6,6003,b.message));case 5:qf(a.j),z(c)}})}
|
|
183
|
+
function Of(a,b){return I(function(c){if(1==c.g)return u(c,Nf(a),2);Pf(a,b.initDataType,Fc(b.initData));z(c)})}
|
|
184
|
+
q.yc=function(a){var b=this,c;return I(function(d){if(1==d.g){if(!b.B)return b.A.Fa(a,"encrypted",function(){b.m(new O(2,6,6010))}),d["return"]();b.l=a;b.A.Fa(b.l,"play",function(){for(var e=r(b.K),f=e.next();!f.done;f=e.next())Qf(b,f.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.A.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Df(b)});return(c=b.g.initData.find(function(e){return 0<e.initData.length}))||window.shakaMediaKeysPolyfill||b.F.length?u(d,
|
|
185
|
+
Nf(b),2):d.D(2)}Rf(b);c||b.F.length||b.A.o(b.l,"encrypted",function(e){return Of(b,e)});z(d)})};
|
|
186
|
+
function Sf(a){var b,c,d,e,f;return I(function(g){switch(g.g){case 1:if(!a.B||!a.g)return g["return"]();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=hf([a.g.serverCertificateUri],a.h.retryParameters);B(g,3);c=a.G.Ob.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Fc(d.data);va(g,4);break;case 3:throw e=E(g),new O(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"]();
|
|
187
|
+
B(g,6);return u(g,a.B.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=E(g),new O(2,6,6004,f.message);}})}function Tf(a,b){var c,d,e;return I(function(f){if(1==f.g)return u(f,Uf(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.i.get(c))e.cb=new Mc,d.push(e.cb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i["delete"](c);z(f)})}
|
|
188
|
+
function Rf(a){for(var b=(a.g?a.g.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Pf(a,d.initDataType,d.initData);c=r(a.F);for(d=c.next();!d.done;d=c.next())Uf(a,d.value);b.length||a.F.length||a.C.resolve();return a.C}function Pf(a,b,c){if(c.length){var d=a.i.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(Dc(c,e.value.initData)&&!Bd("Tizen 2"))return;Vf(a,b,c,a.g.sessionType)}}function Wf(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}
|
|
189
|
+
function Xf(a){a=a.i.keys();a=fb(a,function(b){return b.sessionId});return Array.from(a)}q.Dc=function(){var a=Infinity,b=this.i.keys();b=r(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};q.hd=function(){return xf(this.ua)};
|
|
190
|
+
function If(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=Yf(a,c,d);x.D(2);break}return u(x,Zf(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new O(2,6,6001);qf(a.j);B(x,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.I.add(n.contentType.toLowerCase());p=r(k);for(m=p.next();!m.done;m=p.next())t=m.value,a.I.add(t.contentType.toLowerCase());if(c.length){var v=
|
|
191
|
+
f.keySystem;var D=d.get(f.keySystem);var C=[],A=[],F=[],G=[],H=new Set;$f(D,C,F,A,G,H);var L=a.N?"persistent-license":"temporary";v={keySystem:v,licenseServerUri:C[0],distinctiveIdentifierRequired:D[0].distinctiveIdentifierRequired,persistentStateRequired:D[0].persistentStateRequired,sessionType:D[0].sessionType||L,audioRobustness:D[0].audioRobustness||"",videoRobustness:D[0].videoRobustness||"",serverCertificate:F[0],serverCertificateUri:A[0],initData:G,keyIds:H};D=r(D);for(C=D.next();!C.done;C=
|
|
192
|
+
D.next())C=C.value,C.distinctiveIdentifierRequired&&(v.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(v.persistentStateRequired=C.persistentStateRequired);D=v}else D=f.keySystem,v=b.get(f.keySystem),C=[],A=[],F=[],G=[],H=new Set,$f(v.drmInfos,C,F,A,G,H),D={keySystem:D,licenseServerUri:C[0],distinctiveIdentifierRequired:"required"==v.distinctiveIdentifier,persistentStateRequired:"required"==v.persistentState,sessionType:v.sessionTypes[0]||"temporary",audioRobustness:(v.audioCapabilities?
|
|
193
|
+
v.audioCapabilities[0].robustness:"")||"",videoRobustness:(v.videoCapabilities?v.videoCapabilities[0].robustness:"")||"",serverCertificate:F[0],serverCertificateUri:A[0],initData:G,keyIds:H};a.g=D;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return u(x,f.createMediaKeys(),6);case 6:return w=x.h,qf(a.j),a.B=w,a.$=!0,u(x,Sf(a),7);case 7:qf(a.j);va(x,0);break;case 4:y=E(x);qf(a.j,y);a.g=null;a.I.clear();if(y instanceof O)throw y;throw new O(2,6,6002,y.message);}})}
|
|
194
|
+
function Yf(a,b,c){for(var d=r(b),e=d.next();!e.done;e=d.next()){var f=r(Lf(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 O(2,6,6E3);d={};a=r(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Nd:d.Nd},e=a.next())for(d.Nd=e.value,f=r(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==
|
|
195
|
+
l.Nd}}(d)))return e.keySystemAccess;a=r([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=r(b),e=f.next();!e.done;e=f.next()){var g=r(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=r(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
|
|
196
|
+
function Zf(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y,x;return I(function(v){switch(v.g){case 1:if(1==b.size&&b.has(""))throw new O(2,6,6E3);d=r(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=r(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){v.D(4);break}k=h.value;if(!b.has(k)){v.D(3);break}l=b.get(k);B(v,6);return u(v,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
|
|
197
|
+
v.h,v["return"](c);case 6:E(v);case 7:qf(a.j);case 3:h=g.next();v.D(2);break;case 4:m=r([!0,!1]),n=m.next();case 9:if(n.done){v.D(11);break}p=n.value;t=r(b.keys());h=t.next();case 12:if(h.done){n=m.next();v.D(9);break}w=h.value;y=b.get(w);x=y.drmInfos.some(function(D){return!!D.licenseServerUri});if(x!=p){v.D(13);break}B(v,15);return u(v,navigator.requestMediaKeySystemAccess(w,[y]),17);case 17:return c=v.h,v["return"](c);case 15:E(v);case 16:qf(a.j);case 13:h=t.next();v.D(12);break;case 11:return v["return"](c)}})}
|
|
198
|
+
function Jf(a){a=wf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=$c(f),h=$c(e);g={kty:"oct",kid:Yc(g,!1),k:Yc(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Fc(Uc(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
|
|
198
199
|
serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
|
|
199
|
-
function
|
|
200
|
-
case 4:f=h.h;
|
|
201
|
-
function
|
|
200
|
+
function Uf(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:try{c=a.B.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h["return"](Promise.reject(d))}a.A.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(k):Qf(a,k)});a.A.o(c,"keystatuseschange",function(k){return ag(a,k)});e={initData:null,initDataType:null,loaded:!1,je:Infinity,cb:null,type:"persistent-license"};a.i.set(c,e);B(h,2);return u(h,c.load(b),4);
|
|
201
|
+
case 4:f=h.h;qf(a.j);if(!f)return a.i["delete"](c),a.m(new O(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;bg(a)&&a.C.resolve();return h["return"](c);case 2:g=E(h),qf(a.j,g),a.i["delete"](c),a.m(new O(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
|
|
202
|
+
function Vf(a,b,c,d){try{var e=a.B.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.A.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(f):Qf(a,f)});a.A.o(e,"keystatuseschange",function(f){return ag(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,je:Infinity,cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&Yc(c);e.generateRequest(b,c)["catch"](function(f){if(!a.j.g){a.i["delete"](e);
|
|
202
203
|
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.m(new O(2,6,6006,f.message,f,h))}})}
|
|
203
|
-
function
|
|
204
|
-
|
|
205
|
-
a.G.onEvent(
|
|
206
|
-
function
|
|
207
|
-
function
|
|
208
|
-
|
|
209
|
-
function
|
|
210
|
-
c],f=new Map,g=function(l){var m,p
|
|
211
|
-
function
|
|
212
|
-
function
|
|
213
|
-
function
|
|
204
|
+
function Qf(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;I(function(x){switch(x.g){case 1:return c=b.target,a.h.logLicenseExchange&&Yc(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=hf([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),
|
|
205
|
+
Wf(a.g.keySystem)&&cg(g),h=Date.now(),B(x,2),l=a.G.Ob.request(2,g),u(x,l.promise,4);case 4:k=x.h;va(x,3);break;case 2:return m=E(x),n=new O(2,6,6007,m),a.m(n),d&&d.cb&&d.cb.reject(n),x["return"]();case 3:if(a.j.g)return x["return"]();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&Yc(k.data);B(x,5);return u(x,c.update(k.data),7);case 7:va(x,6);break;case 5:return p=E(x),t=new O(2,6,6008,p.message),a.m(t),d&&d.cb&&d.cb.reject(t),x["return"]();case 6:if(a.j.g)return x["return"]();w=new M("drmsessionupdate");
|
|
206
|
+
a.G.onEvent(w);d&&(d.cb&&d.cb.resolve(),y=new P(function(){d.loaded=!0;bg(a)&&a.C.resolve()}),y.S(dg));z(x)}})}
|
|
207
|
+
function cg(a){var b=Rc(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=(new DOMParser).parseFromString(b,"application/xml");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=Zc(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
|
|
208
|
+
function ag(a,b){var c=b.target,d=a.i.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if(Wf(a.g.keySystem)&&16==h.byteLength&&navigator.userAgent.match(/Edge?\//)){k=Ic(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"status-pending"!=g&&(d.loaded=!0);"expired"==g&&(e=!0);k=ad(h);a.ea.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.cb&&(a.i["delete"](c),c.close()["catch"](function(){}));
|
|
209
|
+
bg(a)&&(a.C.resolve(),a.U.S(eg))}function Af(a){var b=a.ea,c=a.ua;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.m(new O(2,6,6014));a.G.ud(xf(c))}
|
|
210
|
+
function fg(){var a,b,c,d,e,f,g,h;return I(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.3_0 com.apple.fps.2_0 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,
|
|
211
|
+
c],f=new Map,g=function(l){var m,n,p;return I(function(t){switch(t.g){case 1:B(t,2);if("org.w3.clearkey"===l&&Id())throw Error("Unsupported keySystem");return u(t,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=t.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Bd("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(t,m.createMediaKeys(),5);case 5:va(t,0);break;case 2:E(t),f.set(l,null),z(t)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k["return"](xf(f))})}
|
|
212
|
+
function gg(a){var b;return I(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).S(hg)}),B(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);E(c);z(c)})}
|
|
213
|
+
function Df(a){var b;return I(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=r(d);var e=d.next().value,f=d.next().value;return I(function(g){if(1==g.g)return B(g,2),a.ba||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,gg(e),5):u(g,e.remove(),5);if(2!=g.g)return va(g,0);E(g);z(g)})})),0)})}
|
|
214
|
+
function ig(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=r(b),h=g.next();!h.done;f={Ta:f.Ta},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Ta=[];f.Ta=f.Ta.concat(e.initData||[]);f.Ta=f.Ta.concat(h.initData||[]);f.Ta=f.Ta.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Ta.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ia(e.keyIds),ia(h.keyIds))):
|
|
214
215
|
e.keyIds||h.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||h.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired||h.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||h.persistentStateRequired,videoRobustness:e.videoRobustness||h.videoRobustness,audioRobustness:e.audioRobustness||h.audioRobustness,serverCertificate:e.serverCertificate||h.serverCertificate,serverCertificateUri:e.serverCertificateUri||h.serverCertificateUri,
|
|
215
|
-
initData:f.
|
|
216
|
-
function
|
|
217
|
-
function
|
|
218
|
-
m.
|
|
219
|
-
function
|
|
220
|
-
(a.serverCertificate=c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==a.keySystem&&(a.keySystem="com.chromecast.playready")}}var
|
|
221
|
-
function
|
|
222
|
-
|
|
223
|
-
q.
|
|
224
|
-
q.skip=function(a){if(this.g+a>this.
|
|
225
|
-
|
|
226
|
-
q.
|
|
227
|
-
!1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.oa(),b.
|
|
228
|
-
function
|
|
229
|
-
|
|
230
|
-
if(d)return a;if(0==g.length||!e)throw Za(ad(a)),new O(2,3,3019);g.reverse();for(var h=
|
|
231
|
-
function
|
|
232
|
-
k.setUint32(b,a+1);return e}function
|
|
233
|
-
|
|
234
|
-
function
|
|
235
|
-
function
|
|
236
|
-
var
|
|
237
|
-
[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"]]),
|
|
238
|
-
[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"]]);function
|
|
239
|
-
var
|
|
240
|
-
function
|
|
241
|
-
function
|
|
242
|
-
b=null;c=
|
|
243
|
-
b.skip(1),d=
|
|
244
|
-
function
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
function
|
|
248
|
-
d=1===(d&1);if(c.h!==
|
|
249
|
-
(e&246)&&32===(d&224))
|
|
250
|
-
0,h-1),
|
|
251
|
-
function
|
|
252
|
-
|
|
253
|
-
String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&
|
|
254
|
-
function
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
(k.
|
|
258
|
-
|
|
259
|
-
function
|
|
260
|
-
;function
|
|
261
|
-
function
|
|
262
|
-
function
|
|
216
|
+
initData:f.Ta,keyIds:g});break}}return c}function Lf(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Bf(a){a.i.forEach(function(b,c){var d=b.je,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.je=e)})}function bg(a){a=a.i.values();return gb(a,function(b){return b.loaded})}
|
|
217
|
+
function Kf(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});for(var d=r(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
|
|
218
|
+
function $f(a,b,c,d,e,f){var g={};a=r(a);for(var h=a.next();!h.done;g={Ha:g.Ha},h=a.next()){g.Ha=h.value;b.includes(g.Ha.licenseServerUri)||b.push(g.Ha.licenseServerUri);d.includes(g.Ha.serverCertificateUri)||d.push(g.Ha.serverCertificateUri);g.Ha.serverCertificate&&(c.some(function(m){return function(n){return Dc(n,m.Ha.serverCertificate)}}(g))||c.push(g.Ha.serverCertificate));if(g.Ha.initData){h={};for(var k=r(g.Ha.initData),l=k.next();!l.done;h={Wc:h.Wc},l=k.next())h.Wc=l.value,e.some(function(m){return function(n){var p=
|
|
219
|
+
m.Wc;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Dc(n.initData,p.initData)}}(h))||e.push(h.Wc)}if(g.Ha.keyIds)for(h=r(g.Ha.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
|
|
220
|
+
function Mf(a,b,c){if(a.keySystem&&("org.w3.clearkey"!=a.keySystem||!a.licenseServerUri)){b.size&&(b=b.get(a.keySystem)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(a.keySystem))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||
|
|
221
|
+
(a.serverCertificate=c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==a.keySystem&&(a.keySystem="com.chromecast.playready")}}var hg=1,dg=5,eg=.5,lg=new Nc(function(){return Gc(new Uint8Array([0]))});function mg(){}function ng(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){if(d&&(e=og[d.toLowerCase()]))return k["return"](e);if(f=pg(a))if(g=qg[f])return k["return"](g);return d?k.D(2):u(k,rg(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=og[d]))return k["return"](h);throw new O(2,4,4E3,a);})}
|
|
222
|
+
function rg(a,b,c){var d,e,f;return I(function(g){if(1==g.g)return d=hf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function pg(a){a=(new kb(a)).Ka.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}J("shaka.media.ManifestParser",mg);mg.unregisterParserByMime=function(a){delete og[a]};mg.registerParserByMime=function(a,b){og[a]=b};
|
|
223
|
+
mg.registerParserByExtension=function(a,b){qg[a]=b};var og={},qg={};function sg(a,b){this.W=Ic(a);this.h=b==tg;this.g=0}q=sg.prototype;q.Da=function(){return this.g<this.W.byteLength};q.oa=function(){return this.g};q.jg=function(){return this.W.byteLength};q.pb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw ug();}};q.oe=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw ug();}};q.R=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw ug();}};
|
|
224
|
+
q.wf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw ug();}};q.lc=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw ug();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Cb=function(a){if(this.g+a>this.W.byteLength)throw ug();var b=Fc(this.W,this.g,a);this.g+=a;return b};
|
|
225
|
+
q.skip=function(a){if(this.g+a>this.W.byteLength)throw ug();this.g+=a};q.$g=function(a){if(this.g<a)throw ug();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw ug();this.g=a};q.Oc=function(){for(var a=this.g;this.Da()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Fc(this.W,a,this.g-a);this.g+=1;return Pc(a)};function ug(){return new O(2,3,3E3)}J("shaka.util.DataViewReader",sg);sg.prototype.readTerminatedString=sg.prototype.Oc;sg.prototype.seek=sg.prototype.seek;sg.prototype.rewind=sg.prototype.$g;
|
|
226
|
+
sg.prototype.skip=sg.prototype.skip;sg.prototype.readBytes=sg.prototype.Cb;sg.prototype.readUint64=sg.prototype.lc;sg.prototype.readInt32=sg.prototype.wf;sg.prototype.readUint32=sg.prototype.R;sg.prototype.readUint16=sg.prototype.oe;sg.prototype.readUint8=sg.prototype.pb;sg.prototype.getLength=sg.prototype.jg;sg.prototype.getPosition=sg.prototype.oa;sg.prototype.hasMoreData=sg.prototype.Da;var tg=1;sg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:tg};function vg(){this.i=[];this.h=[];this.g=!1}q=vg.prototype;q.box=function(a,b){var c=wg(a);this.i[c]=xg;this.h[c]=b;return this};q.Y=function(a,b){var c=wg(a);this.i[c]=yg;this.h[c]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new sg(a,0);for(this.g=!1;a.Da()&&!this.g;)this.wd(0,a,b,c)};
|
|
227
|
+
q.wd=function(a,b,c,d){var e=b.oa();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.R(),g=b.R(),h=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.oa()+8>b.W.byteLength){this.g=!0;return}f=b.lc();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==yg){if(d&&b.oa()+4>b.W.byteLength){this.g=!0;return}m=b.R();l=m>>>24;m&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.oa(),b=0<d?b.Cb(d):new Uint8Array(0),b=new sg(b,0),k({parser:this,partialOkay:c||
|
|
228
|
+
!1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.oa(),b.W.byteLength-b.oa()))}};function zg(a){for(var b=Ag(a);a.reader.Da()&&!a.parser.g;)a.parser.wd(a.start+b,a.reader,a.partialOkay)}function Bg(a){for(var b=Ag(a),c=a.reader.R(),d=0;d<c&&(a.parser.wd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Cg(a){return function(b){a(b.reader.Cb(b.reader.W.byteLength-b.reader.oa()))}}
|
|
229
|
+
function wg(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Dg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Ag(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}J("shaka.util.Mp4Parser",vg);vg.headerSize=Ag;vg.typeToString=Dg;vg.allData=Cg;vg.sampleDescription=Bg;vg.children=zg;vg.prototype.parseNext=vg.prototype.wd;vg.prototype.parse=vg.prototype.parse;vg.prototype.stop=vg.prototype.stop;
|
|
230
|
+
vg.prototype.fullBox=vg.prototype.Y;vg.prototype.box=vg.prototype.box;var xg=0,yg=1;function Eg(a){function b(){d=!0}function c(l){f.push(l);zg(l)}a=Fc(a);var d=!1,e,f=[],g=[];(new vg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).Y("stsd",function(l){e=l;f.push(l);Bg(l)}).Y("encv",b).Y("enca",b).Y("avc1",function(l){g.push({box:l,Mc:1701733238})}).Y("avc3",function(l){g.push({box:l,Mc:1701733238})}).Y("ac-3",function(l){g.push({box:l,Mc:1701733217})}).Y("ec-3",function(l){g.push({box:l,Mc:1701733217})}).Y("mp4a",function(l){g.push({box:l,Mc:1701733217})}).parse(a);
|
|
231
|
+
if(d)return a;if(0==g.length||!e)throw Za(ad(a)),new O(2,3,3019);g.reverse();for(var h=r(g),k=h.next();!k.done;k=h.next())k=k.value,a=Fg(a,e,k.box,f,k.Mc);return a}
|
|
232
|
+
function Fg(a,b,c,d,e){var f=Gg.value(),g=a.subarray(c.start,c.start+c.size),h=Ic(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Ic(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Hg(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Ad()?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=r(d);for(d=a.next();!d.done;d=a.next())d=d.value,Hg(e,d.start,d.size+k.byteLength);k=Ic(e,b.start);b=Ag(b);a=k.getUint32(b);
|
|
233
|
+
k.setUint32(b,a+1);return e}function Hg(a,b,c){a=Ic(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 Gg=new Nc(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 Ig(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=Jg(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],t=-1,w=-1,y=0;y<p.length;y++)if(null!=p[y]&&""!==p[y].g.trim()){t=y;break}for(y=p.length-1;0<=y;y--)if(null!=p[y]&&""!==p[y].g.trim()){w=y;break}if(-1===
|
|
234
|
+
t||-1===w)p=Kg(d,e),a.nestedCues.push(p);else{for(;t<=w;t++)if(y=p[t]){var x=y.l,v=y.i,D=y.j,C=y.h;if(x!=h||v!=k||D!=l||C!=m)n.payload&&a.nestedCues.push(n),n=Jg(d,e,x,v,D,C),h=x,k=v,l=D,m=C;n.payload+=y.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Kg(d,e),a.nestedCues.push(n));n=Jg(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
|
|
235
|
+
function Jg(a,b,c,d,e,f){a=new fc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Kg(a,b){var c=new fc(a,b,"");c.lineBreak=!0;return c}function Lg(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Mg(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.m=!1;this.l="white";this.A="black";Ng(this)}function Og(a,b,c){return Ig(new fc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function Ng(a){Pg(a,0,15);a.g=1}function Qg(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case Rg:d=Sg.has(c)?Sg.get(c):String.fromCharCode(c);break;case Tg:d=Ug.get(c);break;case Vg:a.i[a.g].pop();d=Wg.get(c);break;case Xg:a.i[a.g].pop(),d=Yg.get(c)}d&&a.i[a.g].push(new Lg(d,a.m,a.j,a.A,a.l))}}
|
|
236
|
+
function Zg(a,b,c,d){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 Pg(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
|
|
237
|
+
var Rg=0,Tg=1,Vg=2,Xg=3,Sg=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"]]),Ug=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"]]),Wg=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
|
|
238
|
+
[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"]]),Yg=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
|
|
239
|
+
[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"]]);function $g(a,b){this.h=ah;this.A=new Mg(a,b);this.i=new Mg(a,b);this.l=new Mg(a,b);this.g=this.i;this.j=0;this.m=null}function bh(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==ch&&a.h!==dh&&(e=Og(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,Pg(c,0,15),c=a.l,c.g=0<c.h?c.h:0,Pg(c,0,15),d.g=15);a.h=ch;d.h=b;return e}function eh(a){a.h=fh;a.g=a.l;a.g.h=0}function gh(a){Ua("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.A;a.h=dh}
|
|
240
|
+
var ah=0,fh=1,ch=3,dh=4,hh="black green blue cyan red yellow magenta black".split(" "),ih="white green blue cyan red yellow magenta white_italics".split(" ");function jh(){this.l=!1;this.F=this.H=0;this.G=kh;this.i=[];this.g=this.h=this.j=0;this.C=this.A=!1;this.B="white";this.m="black";lh(this)}function lh(a){a.i=[];for(var b=0;15>b;b++)a.i.push(mh())}function mh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function nh(a,b){oh(a)&&(a.i[a.h][a.g]=new Lg(b,a.C,a.A,a.m,a.B),a.g++)}function oh(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}jh.prototype.isVisible=function(){return this.l};
|
|
241
|
+
function ph(a,b,c){var d=new fc(a.j,b,"");d.textAlign=a.G===qh?"left":a.G===rh?"right":jc;if(c=Ig(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var qh=0,rh=1,kh=2;function sh(){this.i=[];this.h=null;this.g=0}function th(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 uh(a.h)),a.h=null,a.g=0))}function uh(a){this.g=0;this.h=a}uh.prototype.Da=function(){return this.g<this.h.length};uh.prototype.oa=function(){return this.g};function vh(a){if(!a.Da())throw new O(2,2,3E3);return a.h[a.g++]}uh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function wh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
|
|
242
|
+
function xh(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=vh(b).value;b=null;c=r(yh(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=ph(e,d,a.i)),lh(e);return b}if(137===c)for(b=vh(b).value,b=r(yh(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=vh(b).value;b=null;c=r(yh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=ph(e,d,a.i)),e.l=!1;return b}if(139===c){c=vh(b).value;
|
|
243
|
+
b=null;c=r(yh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=ph(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=vh(b).value,zh(a,b,d);if(143===c)return d=zh(a,255,d),Ah(a),d;if(144===c)b.skip(1),d=vh(b).value,a.g&&(a.g.A=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=vh(b).value,c=vh(b).value,b.skip(1),a.g&&(b=Bh((c&48)>>4,(c&12)>>2,c&3),a.g.B=Bh((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=vh(b).value,b=vh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
|
|
244
|
+
b.skip(1),d=vh(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new jh;f.j=d;a.h[c]=f}d=vh(b).value;vh(b);vh(b);f=vh(b).value;var g=vh(b).value;b=vh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.A=!1,b.B="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.H=(f&15)+1;b.F=(g&63)+1;a.g=a.h[c]}}}return null}function yh(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
|
|
245
|
+
function zh(a,b,c){var d=null;b=r(yh(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=ph(f,c,a.i));a.h[e]=null}return d}function Ah(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function Bh(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return Ch[a<<2|b<<1|c]}
|
|
246
|
+
var Dh=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"]]),Ch="black blue green cyan red magenta yellow white".split(" ");function Eh(){this.h=[];this.g=[];this.i=new sh;this.l=0;this.B=new Map([["CC1",new $g(0,0)],["CC2",new $g(0,1)],["CC3",new $g(1,0)],["CC4",new $g(1,1)]]);this.A=this.m=0;this.j=new Map;Fh(this)}function Fh(a){a.m=0;a.A=0;a=r(a.B.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.h=2,b.g=b.i,b.m=null,Ng(b.i),Ng(b.l),Ng(b.A)}
|
|
247
|
+
function Gh(a){function b(f,g){return f.pts-g.pts||f.order-g.order}var c=[];a.h.sort(b);a.g.sort(b);for(var d=r(a.h),e=d.next();!e.done;e=d.next())(e=Hh(a,e.value))&&c.push(e);d=r(a.g);for(e=d.next();!e.done;e=d.next())th(a.i,e.value);d=r(a.i.i);for(e=d.next();!e.done;e=d.next())e=Ih(a,e.value),c.push.apply(c,ia(e));a.i.i=[];a.h=[];a.g=[];return c}
|
|
248
|
+
function Hh(a,b){var c=b.type;if(16===(b.Oa&112)){var d=b.Oa>>3&1;0===c?a.m=d:a.A=d}c=a.B.get("CC"+(c<<1|(c?a.A:a.m)+1));if(255===b.Oa&&255===b.jb||!b.Oa&&!b.jb||!Jh(b.Oa)||!Jh(b.jb))return 45<=++a.l&&Fh(a),null;a.l=0;b.Oa&=127;b.jb&=127;if(!b.Oa&&!b.jb)return null;d=null;if(16===(b.Oa&112))a:{var e=b.Oa;d=b.jb;if(c.m===(e<<8|d))c.m=null;else if(c.m=e<<8|d,16===(e&240)&&64===(d&192)){e=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(e&7)<<1|d>>5&1];var f=(d&30)>>1,g="white",h=!1;7>f?g=ih[f]:7===f&&(h=!0);
|
|
249
|
+
d=1===(d&1);if(c.h!==dh){f=c.g;if(c.h===ch&&e!==f.g){var k=1+e-f.h;Zg(f,k,1+f.g-f.h,f.h);Pg(f,0,k-1);Pg(f,e+1,15-e)}f.g=e;c.g.m=d;c.g.j=h;c.g.l=g;c.g.A="black"}}else if(17===(e&247)&&32===(d&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Qg(c.g,Rg,32),g=!1,e=ih[(d&14)>>1],"white_italics"===e&&(e="white",g=!0),c.g.m=1===(d&1),c.g.j=g,c.g.l=e;else if(16===(e&247)&&32===(d&240)||23===(e&247)&&45===(d&255))g="black",0===(e&7)&&(g=hh[(d&14)>>1]),c.g.A=g;else if(17===(e&247)&&48===(d&240))Qg(c.g,Tg,d);else if(18===
|
|
250
|
+
(e&246)&&32===(d&224))Qg(c.g,e&1?Xg:Vg,d);else if(20===(e&246)&&32===(d&240)){d=b.pts;e=null;switch(b.jb){case 32:eh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:e=bh(c,2,d);break;case 38:e=bh(c,3,d);break;case 39:e=bh(c,4,d);break;case 40:Qg(c.g,Rg,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=d;break;case 42:Ng(c.A);gh(c);break;case 43:gh(c);break;case 44:e=c.i;g=null;c.h!==dh&&(g=Og(e,c.j,d));Pg(e,0,15);e=g;break;case 45:e=c.g;c.h!==ch?e=null:(g=Og(e,c.j,d),h=e.g-e.h+1,Zg(e,h-1,h,e.h),Pg(e,
|
|
251
|
+
0,h-1),Pg(e,e.g,15-e.g),c.j=d,e=g);break;case 46:Pg(c.l,0,15);break;case 47:e=null,c.h!==dh&&(e=Og(c.i,c.j,d)),g=c.l,c.l=c.i,c.i=g,eh(c),c.j=d}d=e;break a}d=null}else e=b.jb,Qg(c.g,Rg,b.Oa),Qg(c.g,Rg,e);return d}
|
|
252
|
+
function Ih(a,b){var c=[];try{for(;b.Da();){var d=vh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=vh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new wh(e));for(var g=a.j.get(e),h=b.oa();b.oa()-h<f;){e=b;var k=vh(e),l=k.value,m=k.pts;if(16===l){var n=vh(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!oh(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.F-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=ph(t,p,g.i));if(t.h+1>=t.H){p=t;for(var w=0,y=1;15>y;y++,
|
|
253
|
+
w++)p.i[w]=p.i[y];for(y=0;1>y;y++,w++)p.i[w]=mh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=ph(t,p,g.i));t.i[t.h]=mh();t.g=0;break;case 12:t.isVisible()&&(e=ph(t,p,g.i)),lh(t),p=t,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=xh(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?nh(g.g,"\u266a"):nh(g.g,
|
|
254
|
+
String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&nh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Dh.has(e)){var v=Dh.get(e);nh(g.g,v)}else nh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?nh(g.g,"_"):nh(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(D){if(D instanceof O&&3E3===D.code)Ua("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw D;}return c}function Jh(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function Kh(a,b){var c=null,d=null,e=a.R();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:e,df:c,Vf:d}}function Lh(a,b){return{Te:1==b?a.lc():a.R()}}function Mh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
|
|
255
|
+
function Nh(a,b,c){var d=a.R(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={se:null,sampleSize:null,zd:null};c&256&&(g.se=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.zd=0==b?a.R():a.wf());e.push(g)}return{Qi:d,yf:e}};function Oh(){this.i=new Map;this.h=this.g=0}
|
|
256
|
+
Oh.prototype.init=function(a){var b=this,c=[],d=[];(new vg).box("moov",zg).box("mvex",zg).Y("trex",function(e){var f=e.reader;f.skip(4);f.skip(4);e=f.R();f=f.R();b.g=e;b.h=f}).box("trak",zg).Y("tkhd",function(e){var f=e.reader;1==e.version?(f.skip(8),f.skip(8)):(f.skip(4),f.skip(4));e=f.R();c.push(e)}).box("mdia",zg).Y("mdhd",function(e){e=Mh(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new O(2,2,2010);c.forEach(function(e,f){b.i.set(e,d[f])})};
|
|
257
|
+
Oh.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new vg).box("moof",zg).box("traf",zg).Y("trun",function(k){f=Nh(k.reader,k.version,k.flags).yf}).Y("tfhd",function(k){k=Kh(k.reader,k.flags);d=k.df||b.g;e=k.Vf||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).Y("tfdt",function(k){g=Lh(k.reader,k.version).Te}).box("mdat",function(k){if(null===g)throw new O(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,t=f,w=0,y=p;for(t.length&&(y=t[0].sampleSize||p);k.Da();){var x=k.R();if(6==
|
|
258
|
+
(k.pb()&31)){var v=0;t.length>w&&(v=t[w].zd||0);v=(l+v)/m;for(var D=[],C,A=k.Cb(x-1),F=C=0;F<A.length;)2==C&&3==A[F]?(C=0,A=[].concat(ia(A)),A.splice(F,1),A=new Uint8Array(A)):0==A[F]?C++:C=0,F++;C=A;for(F=0;F<C.length;){for(A=0;255==C[F];)A+=255,F++;A+=C[F++];for(var G=0;255==C[F];)G+=255,F++;G+=C[F++];4==A&&D.push(C.subarray(F,F+G));F+=G}D=r(D);for(C=D.next();!C.done;C=D.next())c.push({Pg:C.value,pts:v})}else try{k.skip(x-1)}catch(H){break}y-=x+4;0==y&&(l=t.length>w?l+(t[w].se||n):l+n,w++,y=t.length>
|
|
259
|
+
w?t[w].sampleSize||p:p)}}).parse(a,!1);return c};function Ph(){this.h=new Oh;this.g=new Eh}Ph.prototype.init=function(a){this.h.init(a)};
|
|
260
|
+
function Qh(a,b){var c=a.h.parse(b);c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=Fc(e.Pg);if(0<f.length&&(d=a.g,e=e.pts,f=new sg(f,0),181===f.pb()&&49===f.oe()&&1195456820===f.R()&&3===f.pb())){var g=f.pb();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h<g;h++){var k=f.pb(),l=(k&4)>>2,m=f.pb(),n=f.pb();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,Oa:m,jb:n,order:d.h.length}):(d.g.push({pts:e,type:k,value:m,order:d.g.length}),d.g.push({pts:e,type:2,value:n,order:d.g.length})))}}}}return Gh(a.g)}
|
|
261
|
+
;function Rh(a){return!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}function Sh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Th(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)}
|
|
262
|
+
function Uh(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=r(Vh(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}function Wh(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Vh(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Vh(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};function Xh(a,b,c,d){var e=this;this.j=a;this.m=c;this.h={};this.N={};this.K={};this.g=null;this.H=!1;this.U=d||function(){};this.i={};this.A=new rf;this.C={};this.F=b;this.I=new Mc;this.l=Yh(this,this.I);this.G=new pf(function(){return Zh(e)});this.J="";this.B=!1;this.P=new Mc}function Yh(a,b){var c=new MediaSource;a.A.Fa(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=$h(c);a.j.src=a.J;return c}q=Xh.prototype;q.destroy=function(){return this.G.destroy()};
|
|
263
|
+
function Zh(a){var b,c,d,e,f,g,h,k;return I(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p["catch"](Ab)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new O(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.C)b.push(a.C[k].destroy());return u(l,Promise.all(b),2)}a.A&&(a.A.release(),a.A=null);a.j&&(a.j.removeAttribute("src"),a.j.load(),a.j=null);a.l=null;a.g=null;a.m=null;a.h={};a.C={};a.F=null;a.i=
|
|
263
264
|
{};z(l)})}
|
|
264
|
-
q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return I(function(
|
|
265
|
-
function(
|
|
266
|
-
function
|
|
267
|
-
function
|
|
268
|
-
a.
|
|
269
|
-
D[1],A=
|
|
270
|
-
q.remove=function(a,b,c){var d=this,e;return I(function(f){e=Ib;return a==e.
|
|
271
|
-
function
|
|
272
|
-
q.endOfStream=function(a){var b=this;return I(function(c){return u(c,
|
|
273
|
-
function
|
|
274
|
-
function
|
|
275
|
-
function
|
|
276
|
-
function
|
|
277
|
-
q.
|
|
278
|
-
|
|
279
|
-
q.
|
|
280
|
-
q.
|
|
281
|
-
q.
|
|
282
|
-
Q.prototype.setUserSeekStart=Q.prototype.
|
|
283
|
-
Q.prototype.setStatic=Q.prototype.
|
|
284
|
-
function
|
|
285
|
-
.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e)))}}};function
|
|
286
|
-
function
|
|
287
|
-
function
|
|
288
|
-
function
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
function
|
|
292
|
-
q.
|
|
293
|
-
q.
|
|
294
|
-
q.
|
|
295
|
-
q.
|
|
296
|
-
function
|
|
297
|
-
|
|
298
|
-
J("shaka.media.SegmentIterator",
|
|
299
|
-
q.get=function(a){for(var b=0,c=
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
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.bf=d,JSON.stringify(d),c=new M("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function
|
|
303
|
-
function(c){b.g["delete"](c.region)})}
|
|
304
|
-
function
|
|
305
|
-
|
|
306
|
-
function
|
|
307
|
-
function
|
|
308
|
-
function
|
|
309
|
-
function
|
|
265
|
+
q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return I(function(n){if(1==n.g)return e=Ib,u(n,d.I,2);d.B=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Ga:f.Ga},h=g.next())f.Ga=h.value,k=a.get(f.Ga),l=id(k.mimeType,k.codecs),f.Ga==e.ha?ai(d,l,c):(!b&&MediaSource.isTypeSupported(l)||!dd(l,f.Ga)||(d.C[f.Ga]=new cd,l=fd(f.Ga,l)),m=d.l.addSourceBuffer(l),d.A.o(m,"error",function(p){return function(){d.i[p.Ga][0].p.reject(new O(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),d.A.o(m,"updateend",
|
|
266
|
+
function(p){return function(){return bi(d,p.Ga)}}(f)),d.h[f.Ga]=m,d.N[f.Ga]=l,d.i[f.Ga]=[],d.K[f.Ga]=!!k.drmInfos.length);z(n)})};function ai(a,b,c){a.g||(a.g=new nd(a.m));var d=a.g;a=a.H;"application/cea-608"!=b&&"application/cea-708"!=b&&(d.j=(0,pd[b])(),d.j.setSequenceMode?d.j.setSequenceMode(c):Ta('Text parsers should have a "setSequenceMode" method!'),d.C=a)}function ci(a){return a.l?"ended"==a.l.readyState:!0}function di(a,b){return b==Hb?a.g.g:Rh(ei(a,b))}
|
|
267
|
+
function fi(a,b){return b==Hb?a.g.h:Sh(ei(a,b))}function gi(a,b,c){if(b==Hb)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=ei(a,b);return Uh(a,c)}q.yb=function(){var a={total:Vh(this.j.buffered),audio:Vh(ei(this,"audio")),video:Vh(ei(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function ei(a,b){try{return a.h[b].buffered}catch(c){return null}}
|
|
268
|
+
function hi(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,w,y,x,v,D,C,A,F,G;return I(function(H){switch(H.g){case 1:h=Ib;if(b!=h.ha){H.D(2);break}if(!a.B){H.D(3);break}return u(H,a.P,4);case 4:k=H.h,a.g.B=k;case 3:return u(H,qd(a.g,c,d,e),5);case 5:return H["return"]();case 2:if(!a.C[b]){f&&(a.g||ai(a,"text/vtt",a.B),null==d&&null==e?a.F.init(c):(l=Qh(a.F,c),l.length&&(m=a.h[h.Ma].timestampOffset,vd(a.g,l,d,e,m))));H.D(6);break}return u(H,gd(a.C[b],c),7);case 7:n=H.h,a.g||ai(a,"text/vtt",a.B),n.metadata&&(p=a.h[b].timestampOffset,
|
|
269
|
+
a.U(n.metadata,p,e)),n.captions&&n.captions.length&&(t=a.h[h.Ma].timestampOffset,w=td(n.captions),vd(a.g,w,d,e,t)),c=n.data;case 6:c=ii(a,c,d,b);y=a.h[b];x=ji;if(!a.B||y.mode==x||null==d){H.D(8);break}v=b==h.Ma||!(h.Ma in a.h);if(!v){H.D(9);break}D=[y.appendWindowStart,y.appendWindowEnd];y.appendWindowStart=0;y.appendWindowEnd=Infinity;C=y.timestampOffset;y.timestampOffset=0;return u(H,ki(a,b,function(){a.h[b].appendBuffer(c)}),10);case 10:return y.timestampOffset=C,y.appendWindowStart=D[0],y.appendWindowEnd=
|
|
270
|
+
D[1],A=Rh(ei(a,b)),F=(d||0)-(A||0),a.P.resolve(F),u(H,ki(a,b,function(){return li(a,b,0,a.l.duration)}),9);case 9:y.mode=x;case 8:return null!=d&&a.B&&b!=h.ha&&g&&(G=d,ki(a,b,function(){var L=G;0>L&&(L+=.001);a.h[b].timestampOffset=L;bi(a,b)})),u(H,ki(a,b,function(){a.h[b].appendBuffer(c)}),0)}})}function mi(a,b){var c=fi(a,"video")||0;sd(a.g,b,c)}function ni(a){a.g&&sd(a.g,"",0)}
|
|
271
|
+
q.remove=function(a,b,c){var d=this,e;return I(function(f){e=Ib;return a==e.ha?u(f,d.g.remove(b,c),0):u(f,ki(d,a,function(){return li(d,a,b,c)}),0)})};function oi(a,b){var c;return I(function(d){c=Ib;return b==c.ha?a.g?u(d,a.g.remove(0,Infinity),0):d["return"]():u(d,ki(a,b,function(){return li(a,b,0,a.l.duration)}),0)})}q.flush=function(a){var b=this,c;return I(function(d){c=Ib;return a==c.ha?d["return"]():u(d,ki(b,a,function(){b.j.currentTime-=.001;bi(b,a)}),0)})};
|
|
272
|
+
function pi(a,b,c,d,e,f){var g;return I(function(h){g=Ib;return b==g.ha?(f||(a.g.B=c),rd(a.g,d,e),h["return"]()):u(h,Promise.all([ki(a,b,function(){var k=a.h[b].appendWindowStart,l=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=k;a.h[b].appendWindowEnd=l;bi(a,b)}),f?Promise.resolve():ki(a,b,function(){var k=c;0>k&&(k+=.001);a.h[b].timestampOffset=k;bi(a,b)}),ki(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;bi(a,b)})]),0)})}
|
|
273
|
+
q.endOfStream=function(a){var b=this;return I(function(c){return u(c,qi(b,function(){ci(b)||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};q.bb=function(a){var b=this;return I(function(c){return u(c,qi(b,function(){b.l.duration=a}),0)})};q.getDuration=function(){return this.l.duration};function li(a,b,c,d){d<=c?bi(a,b):a.h[b].remove(c,d)}function bi(a,b){var c=a.i[b][0];c&&(c.p.resolve(),ri(a,b))}
|
|
274
|
+
function ki(a,b,c){qf(a.G);c={start:c,p:new Mc};a.i[b].push(c);1==a.i[b].length&&si(a,b);return c.p}
|
|
275
|
+
function qi(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:qf(a.G);c=[];d={};for(e in a.h)d.vc=new Mc,f={start:function(l){return function(){return l.vc.resolve()}}(d),p:d.vc},a.i[e].push(f),c.push(d.vc),1==a.i[e].length&&f.start(),d={vc:d.vc};B(k,2);return u(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=E(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.h)ri(a,h)}z(k)}})}function ri(a,b){a.i[b].shift();si(a,b)}
|
|
276
|
+
function si(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),ri(a,b)}}function ii(a,b,c,d){var e=a.K[d];null==c&&e&&(Cd()||Ad())&&"mp4"==a.N[d].split(";")[0].split("/")[1]&&(b=Eg(b));return b}var $h=window.URL.createObjectURL,ji="sequence",ti=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function ui(a,b,c,d){this.Pa=a;this.Sa=b;this.Ca=c;this.ee=void 0===d?null:d}ui.prototype.Gc=function(){return this.Sa};ui.prototype.Cc=function(){return this.Ca};function vi(a,b){return a&&b?a.Gc()==b.Gc()&&a.Cc()==b.Cc()&&ec(a.Pa(),b.Pa()):a==b}J("shaka.media.InitSegmentReference",ui);ui.prototype.getEndByte=ui.prototype.Cc;ui.prototype.getStartByte=ui.prototype.Gc;
|
|
277
|
+
function wi(a,b,c,d,e,f,g,h,k,l,m,n,p,t){l=void 0===l?[]:l;t=void 0===t?xi:t;this.startTime=a;this.j=this.endTime=b;this.m=c;this.Sa=d;this.Ca=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.l=void 0===n?null:n;this.g=void 0===p?null:p;this.status=t}q=wi.prototype;q.Pa=function(){return this.m()};q.getStartTime=function(){return this.startTime};q.hg=function(){return this.endTime};q.Gc=function(){return this.Sa};
|
|
278
|
+
q.Cc=function(){return this.Ca};q.Ag=function(){return this.tilesLayout};q.zg=function(){return this.l};q.Wd=function(){return this.status};q.Jg=function(){this.status=yi};J("shaka.media.SegmentReference",wi);wi.prototype.markAsUnavailable=wi.prototype.Jg;wi.prototype.getStatus=wi.prototype.Wd;wi.prototype.getTileDuration=wi.prototype.zg;wi.prototype.getTilesLayout=wi.prototype.Ag;wi.prototype.getEndByte=wi.prototype.Cc;wi.prototype.getStartByte=wi.prototype.Gc;wi.prototype.getEndTime=wi.prototype.hg;
|
|
279
|
+
wi.prototype.getStartTime=wi.prototype.getStartTime;wi.prototype.getUris=wi.prototype.Pa;var xi=0,yi=1;wi.Status={sh:xi,Gi:yi,Th:2};function Q(a,b,c){this.l=a;this.xd=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0}q=Q.prototype;q.getDuration=function(){return this.i};q.pg=function(){return this.g};q.bb=function(a){this.i=a};q.ug=function(){return this.l};q.Af=function(a){this.A=a};q.Tc=function(a){this.B=a};q.Ee=function(a){this.m=a};q.gh=function(a){this.xd=a};q.gg=function(){return this.xd};
|
|
280
|
+
q.ic=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.ie(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.l&&this.F&&(this.l=(Date.now()+this.A)/1E3-this.h-this.g)}};q.ie=function(a){this.j=null==this.j?a:Math.min(this.j,a)};q.ge=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.h&&(this.h+=a)};q.T=function(){return Infinity==this.i&&!this.B};
|
|
281
|
+
q.Lb=function(){return Infinity!=this.i&&!this.B};q.mb=function(){return Math.max(this.C,this.Ib()-this.m)};q.Df=function(a){this.C=a};q.Ib=function(){return this.T()||this.Lb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};q.Fc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ib()-this.m+a,this.kb()))};q.cc=function(){return this.Fc(0)};
|
|
282
|
+
q.kb=function(){return Math.max(0,this.Ib()-(this.T()||this.Lb()?this.xd:0))};q.Hf=function(){return null==this.l||null!=this.h&&this.F?!1:!0};q.zf=function(a){this.G=a};J("shaka.media.PresentationTimeline",Q);Q.prototype.setAvailabilityTimeOffset=Q.prototype.zf;Q.prototype.usingPresentationStartTime=Q.prototype.Hf;Q.prototype.getSeekRangeEnd=Q.prototype.kb;Q.prototype.getSeekRangeStart=Q.prototype.cc;Q.prototype.getSafeSeekRangeStart=Q.prototype.Fc;Q.prototype.getSegmentAvailabilityEnd=Q.prototype.Ib;
|
|
283
|
+
Q.prototype.setUserSeekStart=Q.prototype.Df;Q.prototype.getSegmentAvailabilityStart=Q.prototype.mb;Q.prototype.isInProgress=Q.prototype.Lb;Q.prototype.isLive=Q.prototype.T;Q.prototype.offset=Q.prototype.offset;Q.prototype.notifyMaxSegmentDuration=Q.prototype.ge;Q.prototype.notifyMinSegmentStartTime=Q.prototype.ie;Q.prototype.notifySegments=Q.prototype.ic;Q.prototype.getDelay=Q.prototype.gg;Q.prototype.setDelay=Q.prototype.gh;Q.prototype.setSegmentAvailabilityDuration=Q.prototype.Ee;
|
|
284
|
+
Q.prototype.setStatic=Q.prototype.Tc;Q.prototype.setClockOffset=Q.prototype.Af;Q.prototype.getPresentationStartTime=Q.prototype.ug;Q.prototype.setDuration=Q.prototype.bb;Q.prototype.getMaxSegmentDuration=Q.prototype.pg;Q.prototype.getDuration=Q.prototype.getDuration;function zi(a,b){this.j=a;this.m=Ai(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.h=!1;this.A=b;this.i=function(){}}zi.prototype.release=function(){this.j=null;this.i=function(){}};function Bi(a,b){a.i=b}function Ci(a){this.g=a}function Ai(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Vh(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 Di(a,b,c,d){var e=this;this.g=a;this.A=b;this.C=c;this.i=new rf;this.m=!1;this.B=a.readyState;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return Ei(e)});this.j=(new P(function(){Ei(e)})).ka(.25)}Di.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.j&&(this.j.stop(),this.j=null);this.h&&(this.h.release(),this.h=null);this.g=this.A=null};Di.prototype.ke=function(){this.l=!0;Ei(this)};
|
|
285
|
+
function Ei(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.m)return}else a.m=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.B&&(a.B=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=Ai(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.m!=d)b.l=f,b.g=e,b.m=d,b.h=!1;e=f-b.l;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime;b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Wh(c,b,a.C.gapDetectionThreshold),null==d||0==d&&!a.l||(e=c.start(d),e>=a.A.kb()||
|
|
286
|
+
.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e)))}}};function Fi(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Gi.value().get(b),c.Fa(a,b,d))}var Gi=new Nc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Hi(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new rf;this.i=new Ii(a);Fi(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Ji(d,d.j)})}Hi.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function Ki(a){return a.m?a.g.currentTime:a.j}function Li(a,b){0<a.g.readyState?Mi(a.i,b):Fi(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Ji(a,a.j)})}
|
|
287
|
+
function Ji(a,b){.001>Math.abs(a.g.currentTime-b)?Ni(a):(a.h.Fa(a.g,"seeking",function(){Ni(a)}),Mi(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Ni(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function Ii(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new P(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ii.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
|
|
288
|
+
function Mi(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function Oi(a){function b(){null==c.h||0==c.h?c.j=!0:(c.i.Fa(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.h))}var c=this;this.g=a;this.j=!1;this.h=null;this.i=new rf;Fi(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){b()})}Oi.prototype.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};Oi.prototype.A=function(a){this.h=this.j?this.h:a};Oi.prototype.m=function(){return(this.j?this.g.currentTime:this.h)||0};Oi.prototype.G=function(){};
|
|
289
|
+
function Pi(a,b,c,d,e){var f=this;this.i=a;this.g=b.presentationTimeline;this.H=b.minBufferTime||0;this.l=c;this.F=e;this.C=null;this.j=new Di(a,b.presentationTimeline,c,Qi(a,c));this.h=new Hi(a,function(){a:{var g=f.j;g.m=!0;g.l=!1;var h=Ki(f.h);g=Ri(f,h);if(.001<Math.abs(g-h)&&(h=Date.now()/1E3,!f.C||f.C<h-1)){f.C=h;Li(f.h,g);g=void 0;break a}f.F();g=void 0}return g},Si(this,d));this.B=(new P(function(){if(0!=f.i.readyState&&!f.i.paused){var g=Ki(f.h),h=f.g.cc(),k=f.g.kb();3>k-h&&(h=k-3);g<h&&(g=
|
|
290
|
+
Ri(f,g),f.i.currentTime=g)}})).ka(.25)}Pi.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.B&&(this.B.stop(),this.B=null);this.i=this.h=this.g=this.l=null;this.F=function(){}};Pi.prototype.A=function(a){Li(this.h,a)};Pi.prototype.m=function(){var a=Ki(this.h);return 0<this.i.readyState&&!this.i.paused?Ti(this,a):a};function Si(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.cc():a.g.kb():0>b&&(b=a.g.kb()+b);return Ui(a,Ti(a,b))}
|
|
291
|
+
Pi.prototype.G=function(){this.j.ke()};function Ui(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Ri(a,b){var c=Math.max(a.H,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.cc(),f=a.g.kb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Fc(c),k=a.g.Fc(d);c=a.g.Fc(c+d);return b>=g?Ui(a,b):b>f?f:b<e?Th(a.i.buffered,k)?k:c:b>=h||Th(a.i.buffered,b)?b:c}function Ti(a,b){var c=a.g.cc();if(b<c)return c;c=a.g.kb();return b>c?c:b}
|
|
292
|
+
function Qi(a,b){if(!b.stallEnabled)return null;var c=b.stallSkip,d=new zi(new Ci(a),b.stallThreshold);Bi(d,function(){c?a.currentTime+=c:(a.pause(),a.play())});return d};function Vi(a){this.M=a;this.g=null;this.h=0;this.i=!1}q=Vi.prototype;q.release=function(){this.i||(this.M=[],this.g&&this.g.stop(),this.g=null)};q.Kg=function(){this.i=!0};q.find=function(a){for(var b=this.M.length-1,c=b;0<=c;--c){var d=this.M[c],e=c<b?this.M[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.M.length&&a<this.M[0].startTime?this.h:null};q.get=function(a){if(0==this.M.length)return null;a-=this.h;return 0>a||a>=this.M.length?null:this.M[a]};
|
|
293
|
+
q.offset=function(a){if(!this.i)for(var b=r(this.M),c=b.next();!c.done;c=b.next()){c=c.value;c.startTime+=a;c.endTime+=a;c.j+=a;c=r(c.h);for(var d=c.next();!d.done;d=c.next())d=d.value,d.startTime+=a,d.endTime+=a,d.j+=a}};q.Lc=function(a){!this.i&&a.length&&(this.M=this.M.filter(function(b){return b.startTime<a[0].startTime}),this.M.push.apply(this.M,ia(a)))};q.hc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.M.length||d.endTime>c.M[0].startTime)});this.Lc(a);this.Gb(b)};
|
|
294
|
+
q.Gb=function(a){if(!this.i){var b=this.M.length;this.M=this.M.filter(function(c){return c.endTime>a});this.h+=b-this.M.length}};
|
|
295
|
+
q.xb=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.M.length;)if(this.M[this.M.length-1].startTime>=b)this.M.pop();else break;for(;this.M.length;)if(this.M[0].endTime<=a)this.M.shift(),c||this.h++;else break;0!=this.M.length&&(a=this.M[this.M.length-1],this.M[this.M.length-1]=new wi(a.startTime,b,a.m,a.Sa,a.Ca,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.l,a.g))}};
|
|
296
|
+
q.Cd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new P(function(){var d=b();d?c.M.push.apply(c.M,ia(d)):(c.g.stop(),c.g=null)}),this.g.ka(a))};Vi.prototype[Symbol.iterator]=function(){return this.ac(0)};Vi.prototype.ac=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.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Wi(this,b,d)};
|
|
297
|
+
function Xi(a,b,c){return new Vi([new wi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}J("shaka.media.SegmentIndex",Vi);Vi.forSingleSegment=Xi;Vi.prototype.getIteratorForTime=Vi.prototype.ac;Vi.prototype.updateEvery=Vi.prototype.Cd;Vi.prototype.fit=Vi.prototype.xb;Vi.prototype.evict=Vi.prototype.Gb;Vi.prototype.mergeAndEvict=Vi.prototype.hc;Vi.prototype.offset=Vi.prototype.offset;Vi.prototype.get=Vi.prototype.get;Vi.prototype.find=Vi.prototype.find;Vi.prototype.markImmutable=Vi.prototype.Kg;
|
|
298
|
+
Vi.prototype.release=Vi.prototype.release;function Wi(a,b,c){this.i=a;this.h=b;this.g=c}Wi.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.h.length&&a.Pa().length&&this.g>=a.h.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.h.length?a.h[this.g]:a};Wi.prototype.next=function(){var a=this.i.get(this.h);a&&0<a.h.length?(this.g++,a.Pa().length&&this.g==a.h.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};
|
|
299
|
+
J("shaka.media.SegmentIterator",Wi);Wi.prototype.next=Wi.prototype.next;Wi.prototype.current=Wi.prototype.current;function Yi(){Vi.call(this,[]);this.j=[]}qa(Yi,Vi);q=Yi.prototype;q.clone=function(){var a=new Yi;a.j=this.j.slice();return a};q.release=function(){for(var a=r(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};q.find=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.M.length}return null};
|
|
300
|
+
q.get=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.M.length}return null};q.offset=function(){};q.Lc=function(){};q.Gb=function(){};q.hc=function(){};q.xb=function(){};q.Cd=function(){};J("shaka.media.MetaSegmentIndex",Yi);Yi.prototype.updateEvery=Yi.prototype.Cd;Yi.prototype.fit=Yi.prototype.xb;Yi.prototype.mergeAndEvict=Yi.prototype.hc;Yi.prototype.evict=Yi.prototype.Gb;Yi.prototype.merge=Yi.prototype.Lc;
|
|
301
|
+
Yi.prototype.offset=Yi.prototype.offset;Yi.prototype.get=Yi.prototype.get;Yi.prototype.find=Yi.prototype.find;Yi.prototype.release=Yi.prototype.release;function Zi(a){var b=this;this.g=a;this.j=!1;this.i=this.g.kd();this.h=new P(function(){b.g.uf(.25*b.i)})}Zi.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Zi.prototype.set=function(a){this.i=a;$i(this)};Zi.prototype.gd=function(){return this.g.gd()};function $i(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.kd()!=b&&a.g.Ce(b);return}catch(c){}a.h.ka(.25);0!=a.g.kd()&&a.g.Ce(0)};function aj(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){bj(b,!1)})).ka(.25)}aj.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function bj(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function cj(a){eb.call(this);this.g=new Map;this.h=a}qa(cj,eb);cj.prototype.release=function(){this.g.clear();eb.prototype.release.call(this)};function dj(a,b){var c=a.g.get(b);c||(c={Nc:[],bf:null,contentType:b},a.g.set(b,c));return c}function ej(a,b,c){var d=dj(a,b.contentType);fj(a,d);a={ee:b,position:c};d=d.Nc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
|
|
302
|
+
cj.prototype.j=function(a){for(var b=r(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Nc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.ee;break a}}d=null}if(e=d)e=c.bf,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);
|
|
303
|
+
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.bf=d,JSON.stringify(d),c=new M("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function fj(a,b){var c=a.h()[b.contentType];if(c&&0<c.length){var d=c[0].start,e=c[c.length-1].end,f=b.Nc;b.Nc=f.filter(function(g,h){return g.position<=d&&h+1<f.length&&f[h+1].position<=d||g.position>=e?!1:!0})}else b.Nc=[]};function gj(a){eb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g["delete"](e),e=new M("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ka(2)}qa(gj,eb);gj.prototype.release=function(){this.g.clear();this.h.stop();eb.prototype.release.call(this)};function hj(a){eb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Ub:null,Tb:ij,Kb:function(c,d){return jj(b,"enter",c,d)}},{Ub:kj,Tb:ij,Kb:function(c,d){return jj(b,"enter",c,d)}},{Ub:lj,Tb:ij,Kb:function(c,d){return jj(b,"enter",c,d)}},{Ub:ij,Tb:kj,Kb:function(c,d){return jj(b,"exit",c,d)}},{Ub:ij,Tb:lj,Kb:function(c,d){return jj(b,"exit",c,d)}},{Ub:kj,Tb:lj,Kb:function(c,d){return jj(b,"skip",c,d)}},{Ub:lj,Tb:kj,Kb:function(c,d){return jj(b,"skip",c,d)}}];this.h=new rf;this.h.o(this.i,"regionremove",
|
|
304
|
+
function(c){b.g["delete"](c.region)})}qa(hj,eb);hj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;eb.prototype.release.call(this)};hj.prototype.j=function(a,b){for(var c=r(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?kj:a>d.endTime?lj:ij;this.g.set(d,f);for(var g=r(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Ub==e&&h.Tb==f&&h.Kb(d,b)}};
|
|
305
|
+
function jj(a,b,c,d){b=new M(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var kj=1,ij=2,lj=3;function mj(a,b,c,d,e){a=hf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function nj(a,b){var c=this;this.g=b;this.m=a;this.i=null;this.C=1;this.A=this.l=null;this.h=new Map;this.F=!1;this.G=null;this.B=!1;this.j=new pf(function(){return oj(c)})}nj.prototype.destroy=function(){return this.j.destroy()};function oj(a){var b,c,d,e;return I(function(f){if(1==f.g){b=[];c=r(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,pj(e),b.push(qj(e));return u(f,Promise.all(b),2)}a.h.clear();a.g=null;a.m=null;a.i=null;z(f)})}
|
|
306
|
+
nj.prototype.configure=function(a){this.i=a;this.G=new Qe({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)};nj.prototype.start=function(){var a=this;return I(function(b){if(1==b.g)return u(b,rj(a),2);qf(a.j);a.F=!0;z(b)})};
|
|
307
|
+
function sj(a,b){var c,d,e,f,g,h;I(function(k){switch(k.g){case 1:return c=Ib,B(k,2),u(k,oi(a.g.V,c.ha),4);case 4:va(k,3);break;case 2:if(d=E(k),a.g)a.g.onError(d);case 3:e=id(b.mimeType,b.codecs);ai(a.g.V,e,a.m.sequenceMode);f=a.g.V.m;if(g=f.isTextVisible()||a.i.alwaysStreamText)h=tj(b),a.h.set(c.ha,h),uj(a,h,0);z(k)}})}function vj(a){var b=a.h.get(Hb);b&&(pj(b),qj(b)["catch"](function(){}),a.h["delete"](Hb));a.A=null}
|
|
308
|
+
function wj(a,b){var c=a.h.get("video");if(c){var d=c.stream;if(d)if(b){var e=d.trickModeVideo;e&&!c.Qb&&(xj(a,e,!1,0,!1),c.Qb=d)}else if(d=c.Qb)c.Qb=null,xj(a,d,!0,0,!1)}}function yj(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;a.l=b;a.F&&(b.video&&xj(a,b.video,c,d,e),b.audio&&xj(a,b.audio,c,d,e))}function zj(a,b){a.A=b;a.F&&xj(a,b,!0,0,!1)}
|
|
309
|
+
function xj(a,b,c,d,e){var f=a.h.get(b.type);f||b.type!=Hb?f&&(f.Qb&&(b.trickModeVideo?(f.Qb=b,b=b.trickModeVideo):f.Qb=null),f.stream!=b||e)&&(b.type==Hb&&ai(a.g.V,id(b.mimeType,b.codecs),a.m.sequenceMode),f.stream.closeSegmentIndex&&f.stream.closeSegmentIndex(),f.stream=b,f.sa=null,c&&(f.zc?f.Fd=!0:f.ab?(f.Sb=!0,f.dd=d,f.Fd=!0):(pj(f),Aj(a,f,!0,d)["catch"](function(g){if(a.g)a.g.onError(g)}))),Bj(a,f)["catch"](function(g){if(a.g)a.g.onError(g)})):sj(a,b)}
|
|
310
|
+
function Bj(a,b){var c,d;return I(function(e){if(1==e.g){if(!b.Ja)return e["return"]();c=b.stream;d=b.Ja;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Ja!=d||b.stream!=c)return e["return"]();var f=a.g.jd();var g=fi(a.g.V,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.Ca?k.Ca-k.Sa:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.Ca?k.Ca-k.Sa:null)||0),k=a.g.getBandwidthEstimate(),
|
|
310
311
|
f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal)||b.Ja.h.g>h?!0:!1):f=!1;f&&b.Ja.abort();z(e)})}
|
|
311
|
-
|
|
312
|
-
function
|
|
313
|
-
function
|
|
314
|
-
a.h.has(k)||(m=
|
|
315
|
-
function
|
|
316
|
-
E(h),u(h,
|
|
317
|
-
function
|
|
318
|
-
var g=Array.from(a.h.values());g=
|
|
319
|
-
function
|
|
320
|
-
function
|
|
321
|
-
A=
|
|
322
|
-
e.
|
|
323
|
-
function
|
|
324
|
-
function
|
|
325
|
-
2),u(
|
|
326
|
-
function
|
|
327
|
-
|
|
328
|
-
function
|
|
329
|
-
function
|
|
330
|
-
function
|
|
331
|
-
function
|
|
332
|
-
function
|
|
333
|
-
function
|
|
334
|
-
function
|
|
335
|
-
q.append=function(a){function b(g){var h=[],k=700<=g.fontWeight,l="italic"==g.fontStyle,m=g.textDecoration.includes("underline");k&&h.push("b");l&&h.push("i");m&&h.push("u");k=h.reduce(function(p
|
|
336
|
-
[];var e={};c=
|
|
337
|
-
q.destroy=function(){this.g&&(
|
|
338
|
-
function
|
|
339
|
-
function
|
|
340
|
-
!0)}),this.l.observe(this.g))}q=
|
|
341
|
-
q.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});
|
|
342
|
-
function
|
|
343
|
-
h=
|
|
344
|
-
function
|
|
345
|
-
function
|
|
346
|
-
"contain",f.backgroundPosition="center";else{if(c.nestedCues.length)var l=b;else l=R("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=
|
|
347
|
-
g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=
|
|
348
|
-
|
|
349
|
-
c.positionAlign&&(f.cssFloat="right");f.textAlign=c.textAlign;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==
|
|
350
|
-
function
|
|
351
|
-
|
|
352
|
-
"");k=k.reduceRight(function(
|
|
353
|
-
break;case "start":k.push("align:start");break;case "end":k.push("align:end")}switch(h.writingMode){case "vertical-lr":k.push("vertical:lr");break;case "vertical-rl":k.push("vertical:rl")}return k.length?" "+k.join(" "):""}(g)+"\n",f+=g.payload+"\n\n";return f}J("shaka.text.WebVttGenerator",function(){});function
|
|
354
|
-
function
|
|
355
|
-
function
|
|
356
|
-
function
|
|
357
|
-
function
|
|
358
|
-
function
|
|
359
|
-
l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function
|
|
360
|
-
function
|
|
361
|
-
function
|
|
362
|
-
k),g=!1)}return g}function
|
|
363
|
-
function
|
|
312
|
+
nj.prototype.Qc=function(){for(var a=this.g.jd(),b=r(this.h.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.h.get(d);c.sa=null;var e=this.g.V;d==Hb?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=ei(e,d),e=Th(e,a));if(!e){(null!=fi(this.g.V,d)||c.ab)&&Cj(this,c);c.Ja&&(c.Ja.abort(),c.Ja=null);if(d===Hb)for(d=this.g.V.F.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,Fh(d),d=r(d.j.values()),e=d.next();!e.done;e=d.next())Ah(e.value);c.Qc=!0}}};
|
|
313
|
+
function Cj(a,b){b.zc||b.Sb||(b.ab?(b.Sb=!0,b.dd=0):null==di(a.g.V,b.type)?null==b.eb&&uj(a,b,0):(pj(b),Aj(a,b,!1,0)["catch"](function(c){if(a.g)a.g.onError(c)})))}
|
|
314
|
+
function rj(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){if(1==n.g){b=Ib;if(!a.l)throw new O(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Fb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ma,a.l.video),d.add(a.l.video));a.A&&(c.set(b.ha,a.A),d.add(a.A));e=a.g.V;f=a.i.forceTransmuxTS;return u(n,e.init(c,f,a.m.sequenceMode),2)}qf(a.j);var p=a.m.presentationTimeline.getDuration();Infinity>p?a.g.V.bb(p):a.g.V.bb(Math.pow(2,32));g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),
|
|
315
|
+
a.h.has(k)||(m=tj(l),a.h.set(k,m),uj(a,m,0));z(n)})}function tj(a){return{stream:a,type:a.type,sa:null,Qa:null,od:null,be:null,ae:null,$d:null,Qb:null,endOfStream:!1,ab:!1,eb:null,Sb:!1,dd:0,Fd:!1,zc:!1,Qc:!0,pe:!1,Hc:!1,Ja:null}}
|
|
316
|
+
function Dj(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:qf(a.j);if(b.ab||null==b.eb||b.zc)return h["return"]();b.eb=null;if(!b.Sb){h.D(2);break}return u(h,Aj(a,b,b.Fd,b.dd),3);case 3:return h["return"]();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),null==b.eb&&uj(a,b,0),h["return"]();case 4:B(h,6);d=Ej(a,b);null!=d&&(uj(a,b,d),b.Hc=!1);va(h,7);break;case 6:return e=
|
|
317
|
+
E(h),u(h,Fj(a,e),8);case 8:return h["return"]();case 7:f=Array.from(a.h.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.V.endOfStream(),10);case 10:qf(a.j),g=a.g.V.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.bb(g),z(h)}})}
|
|
318
|
+
function Ej(a,b){if(Gj(b))return mi(a.g.V,b.stream.originalId||""),null;b.type==Hb&&ni(a.g.V);var c=a.g.jd(),d=b.Qa?b.Qa.endTime:c,e=gi(a.g.V,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.C;if(1E-6>a.m.presentationTimeline.getDuration()-d)return b.endOfStream=!0,"video"==b.type&&(c=a.h.get(Hb))&&Gj(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/2;e=fi(a.g.V,b.type);e=Hj(a,b,c,e);if(!e)return a.i.updateIntervalSeconds;f=Infinity;
|
|
319
|
+
var g=Array.from(a.h.values());g=r(g);for(var h=g.next();!h.done;h=g.next())h=h.value,Gj(h)||h.sa&&!h.sa.current()||(f=Math.min(f,h.Qa?h.Qa.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.i.updateIntervalSeconds;Ij(a,b,c,e)["catch"](function(){});return null}
|
|
320
|
+
function Hj(a,b,c,d){if(b.sa)return b.sa.current();if(b.Qa||d)return b.sa=b.stream.segmentIndex.ac(b.Qa?b.Qa.endTime:d),b.sa&&b.sa.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.sa=b.stream.segmentIndex.ac(d),e=b.sa&&b.sa.next().value);e||(b.sa=b.stream.segmentIndex.ac(c),e=b.sa&&b.sa.next().value);return e}
|
|
321
|
+
function Ij(a,b,c,d){var e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){switch(x.g){case 1:return e=Ib,f=b.stream,g=b.sa,b.ab=!0,B(x,2),u(x,Jj(a,b,d),4);case 4:qf(a.j);if(a.B)return x["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.i.lowLatencyMode&&k&&h)return n=new Uint8Array(0),p=function(v){var D,C,A;return I(function(F){qf(a.j);if(a.B)return F["return"]();n=Kj(n,v);D=!1;C=0;(new vg).box("mdat",function(G){C=G.size+G.start;D=!0}).parse(n,!1,!0);if(!D)return F.D(0);
|
|
322
|
+
A=n.subarray(0,C);n=n.subarray(C);return u(F,Lj(a,b,c,f,d,A),0)})},u(x,Mj(a,b,d,p),6);l=Mj(a,b,d);return u(x,l,7);case 7:return m=x.h,qf(a.j),a.B?x["return"]():b.Sb?(b.ab=!1,uj(a,b,0),x["return"]()):u(x,Lj(a,b,c,f,d,m),6);case 6:qf(a.j);if(a.B)return x["return"]();b.Qa=d;g.next();b.ab=!1;b.pe=!1;t=a.g.V.yb();w=t[b.type];Ya(JSON.stringify(w));b.Sb||a.g.ke();uj(a,b,0);va(x,0);break;case 2:y=E(x);qf(a.j,y);if(a.B)return x["return"]();b.ab=!1;if(7001==y.code)b.ab=!1,b.eb=null,uj(a,b,0),x.D(0);else if(b.type==
|
|
323
|
+
e.ha&&a.i.ignoreTextStreamFailures)a.h["delete"](e.ha),x.D(0);else if(3017==y.code)Nj(a,b,y),x.D(0);else if(1001==y.code&&y.data&&404==y.data[1])b.ab=!1,b.eb=null,uj(a,b,1),x.D(0);else return b.Hc=!0,y.severity=2,u(x,Fj(a,y),0)}})}function Kj(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
|
|
324
|
+
function Nj(a,b,c){if(!Array.from(a.h.values()).some(function(e){return e!=b&&e.pe})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Hc=!0;a.B=!0;a.g.onError(c);return}b.pe=!0}uj(a,b,4)}
|
|
325
|
+
function Jj(a,b,c){var d,e,f,g,h,k,l;return I(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.be||e!=b.ae||f!=b.$d)h=function(){var n;return I(function(p){if(1==p.g)return B(p,2),b.ae=e,b.$d=f,b.be=g,u(p,pi(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=p.g)return va(p,0);n=E(p);b.ae=null;b.$d=null;b.be=null;throw n;})},d.push(h());!vi(c.i,b.od)&&(b.od=c.i)&&(k=Mj(a,b,c.i),l=function(){var n,p,t;return I(function(w){switch(w.g){case 1:return B(w,
|
|
326
|
+
2),u(w,k,4);case 4:return n=w.h,qf(a.j),p=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(w,hi(a.g.V,b.type,n,null,null,p),5);case 5:va(w,0);break;case 2:throw t=E(w),b.od=null,t;}})},a.g.Ng(c.startTime,c.i),d.push(l()));return u(m,Promise.all(d),0)})}
|
|
327
|
+
function Lj(a,b,c,d,e,f){var g,h;return I(function(k){if(1==k.g)return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes)&&(new vg).Y("emsg",function(l){var m=d.emsgSchemeIdUris;if(0===l.version){var n=l.reader.Oc();var p=l.reader.Oc();var t=l.reader.R();var w=l.reader.R();var y=l.reader.R();var x=l.reader.R();var v=e.startTime+w/t}else t=l.reader.R(),v=l.reader.lc()/t+e.timestampOffset,w=v-e.startTime,y=l.reader.R(),x=l.reader.R(),
|
|
328
|
+
n=l.reader.Oc(),p=l.reader.Oc();l=l.reader.Cb(l.reader.W.byteLength-l.reader.oa());if(m&&m.includes(n)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==n?a.g.Og():(m=(new Map).set("detail",{startTime:v,endTime:v+y/t,schemeIdUri:n,value:p,timescale:t,presentationTimeDelta:w,eventDuration:y,id:x,messageData:l}),m=new M(Oj,m),a.g.onEvent(m))}).parse(f),u(k,Pj(a,b,c),2);if(3!=k.g)return qf(a.j),h=b.Qc,b.Qc=!1,u(k,hi(a.g.V,b.type,f,e.startTime,e.endTime,g,h),3);qf(a.j);z(k)})}
|
|
329
|
+
function Pj(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=di(a.g.V,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():u(h,a.g.V.remove(b.type,e,e+g),2)}qf(a.j);z(h)})}function Gj(a){return a&&a.type==Hb&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
|
|
330
|
+
function Mj(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=of,f=mj(c.Pa(),c.Sa,c.Ca,a.i.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof ui,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Ob.request(e,f),b.Ja=h,u(l,h.promise,2);k=l.h;b.Ja=null;return l["return"](k.data)})}
|
|
331
|
+
function Aj(a,b,c,d){var e,f;return I(function(g){if(1==g.g)return b.Sb=!1,b.Fd=!1,b.dd=0,b.zc=!0,b.Qa=null,b.od=null,b.sa=null,d?(e=a.g.jd(),f=a.g.V.getDuration(),u(g,a.g.V.remove(b.type,e+d,f),3)):u(g,oi(a.g.V,b.type),4);if(3!=g.g)return qf(a.j),c?u(g,a.g.V.flush(b.type),3):g.D(3);qf(a.j);b.zc=!1;b.endOfStream=!1;uj(a,b,0);z(g)})}
|
|
332
|
+
function uj(a,b,c){var d=b.type;if(d!=Hb||a.h.has(d))b.eb=(new wd(function(){var e;return I(function(f){if(1==f.g)return B(f,2),u(f,Dj(a,b),4);if(2!=f.g)return va(f,0);e=E(f);if(a.g)a.g.onError(e);z(f)})})).S(c)}function pj(a){null!=a.eb&&(a.eb.stop(),a.eb=null)}function qj(a){return I(function(b){return a.Ja?u(b,a.Ja.abort(),0):b.D(0)})}function Fj(a,b){return I(function(c){if(1==c.g)return u(c,Se(a.G),2);qf(a.j);a.g.onError(b);b.handled||a.i.failureCallback(b);z(c)})};function Qj(a,b){var c=Rj(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return Sj(d)});this.B=new pf(function(){return Tj(d)})}Qj.prototype.destroy=function(){return this.B.destroy()};function Tj(a){var b,c,d;return I(function(e){if(1==e.g)return a.h&&a.h.abort(),Uj(a),u(e,a.C,2);a.g&&a.g.$a.Pb();b=r(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.$a.Pb();a.g=null;a.m=[];a.j=null;z(e)})}
|
|
333
|
+
function Vj(a,b){var c={jc:function(){},td:function(){},Pb:function(){},onError:function(){},vd:function(){},Pi:function(){}};a.m.push({create:b,$a:c});a.h&&a.h.abort();Uj(a);return c}
|
|
334
|
+
function Sj(a){return I(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Jb)var c=!1;else{a.g&&(a.g.$a.Pb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.$a.jc(),a.g={node:d.node,payload:d.payload,Jb:d.Jb,$a:c.$a}):c.$a.vd();c=!0}c?c=Promise.resolve():a.g?c=Wj(a):(a.j.Mg(a.i),a.A=new Mc,c=a.A);b=u(b,c,1)}return b})}
|
|
335
|
+
function Wj(a){var b,c;return I(function(d){switch(d.g){case 1:return a.i=a.j.rg(a.i,a.l,a.g.node,a.g.payload),B(d,2),a.h=a.j.Wf(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.$a.td(),a.g=null);va(d,0);break;case 2:b=E(d);if(7001==b.code)a.g.$a.Pb();else a.g.$a.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,z(d)}})}function Uj(a){a.A&&(a.A.resolve(),a.A=null)};function Xj(a){this.g=null;for(var b=r(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}q=Xj.prototype;q.remove=function(a,b){if(!this.g)return!1;Yj(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
|
|
336
|
+
q.append=function(a){function b(g){var h=[],k=700<=g.fontWeight,l="italic"==g.fontStyle,m=g.textDecoration.includes("underline");k&&h.push("b");l&&h.push("i");m&&h.push("u");k=h.reduce(function(n,p){return n+"<"+p+">"},"");h=h.reduceRight(function(n,p){return n+"</"+p+">"},"");return g.lineBreak?"\n":g.nestedCues.length?g.nestedCues.map(b).join(""):k+g.payload+h}var c=a.map(function(g){if(g.nestedCues.length){var h=g.clone();h.nestedCues=[];h.payload=b(g);return h}return g}),d=[];a=this.g.cues?Array.from(this.g.cues):
|
|
337
|
+
[];var e={};c=r(c);for(var f=c.next();!f.done;e={Vb:e.Vb},f=c.next())e.Vb=f.value,a.some(function(g){return function(h){return h.startTime==g.Vb.startTime&&h.endTime==g.Vb.endTime&&h.text==g.Vb.payload?!0:!1}}(e))||(f=Zj(e.Vb))&&d.push(f);a=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)-d.indexOf(h)});a=r(a);for(e=a.next();!e.done;e=a.next())this.g.addCue(e.value)};
|
|
338
|
+
q.destroy=function(){this.g&&(Yj(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
|
|
339
|
+
function Zj(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}
|
|
340
|
+
function Yj(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}J("shaka.text.SimpleTextDisplayer",Xj);Xj.prototype.setTextVisibility=Xj.prototype.setTextVisibility;Xj.prototype.isTextVisible=Xj.prototype.isTextVisible;Xj.prototype.destroy=Xj.prototype.destroy;Xj.prototype.append=Xj.prototype.append;Xj.prototype.remove=Xj.prototype.remove;function ak(){}function R(a){return document.createElement(a)}function bk(){return document.createElement("button")}function ck(a){for(;a.firstChild;)a.removeChild(a.firstChild)}J("shaka.util.Dom",ak);ak.removeAllChildren=ck;function dk(a,b){var c=this;this.j=!1;this.i=[];this.C=a;this.m=b;this.g=R("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.m.appendChild(this.g);this.B=(new P(function(){ek(c)})).ka(.25);this.h=new Map;this.A=new rf;this.A.o(document,"fullscreenchange",function(){ek(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){ek(c,
|
|
341
|
+
!0)}),this.l.observe(this.g))}q=dk.prototype;q.append=function(a){var b=[].concat(ia(this.i)),c={};a=r(a);for(var d=a.next();!d.done;c={Vc:c.Vc},d=a.next())c.Vc=d.value,b.some(function(e){return function(f){return tc(f,e.Vc)}}(c))||this.i.push(c.Vc);ek(this)};q.destroy=function(){this.m.removeChild(this.g);this.g=null;this.j=!1;this.i=[];this.B&&this.B.stop();this.h.clear();this.A&&(this.A.release(),this.A=null);this.l&&(this.l.disconnect(),this.l=null)};
|
|
342
|
+
q.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});ek(this,c>this.i.length);return!0};q.isTextVisible=function(){return this.j};q.setTextVisibility=function(a){this.j=a};
|
|
343
|
+
function fk(a,b,c,d,e){var f=!1,g=[],h=[];b=r(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.If:null;l&&(g.push(l.$e),m||(f=!0,a.h["delete"](k),l=null));m&&(h.push(k),l||(gk(a,k,e),l=a.h.get(k),n=l.If,f=!0));0<k.nestedCues.length&&n&&fk(a,k.nestedCues,n,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())c.removeChild(e.value);h.sort(function(p,t){return p.startTime!=t.startTime?p.startTime-t.startTime:p.endTime-t.endTime});
|
|
344
|
+
h=r(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),c.appendChild(d.$e)}}function ek(a,b){if(a.g){var c=a.C.currentTime;(!a.j||(void 0===b?0:b))&&0<a.h.size&&(ck(a.g),a.h.clear());if(a.j){for(var d=new Map,e=r(a.h.keys()),f=e.next();!f.done;f=e.next())f=f.value,d.set(f,a.h.get(f));fk(a,a.i,a.g,c,[])}}}
|
|
345
|
+
function gk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=R(e);"br"!=e&&hk(a,f,b,c,d);c=f;d&&(c=R("span"),c.classList.add("shaka-text-wrapper"),c.style.backgroundColor=b.backgroundColor,f.appendChild(c));a.h.set(b,{$e:f,If:c})}
|
|
346
|
+
function hk(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=ik(c.linePadding,c,a.m);f.paddingRight=ik(c.linePadding,c,a.m);if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize=
|
|
347
|
+
"contain",f.backgroundPosition="center";else{if(c.nestedCues.length)var l=b;else l=R("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=jk(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end");
|
|
348
|
+
g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=ik(c.fontSize,c,a.m);c.line?1==c.lineInterpretation&&(f.position="absolute",f.left="0",f.top="0",c.writingMode==kc?(f.width="100%",c.lineAlign==mc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==mc?f.left=c.line+"%":"end"==c.lineAlign&&(f.right=c.line+"%")):(f.height="100%",c.lineAlign==
|
|
349
|
+
mc?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=c.line+"%"))):c.region&&c.region.id&&(a=c.region.widthUnits==Ac?"%":"px",d=c.region.viewportAnchorUnits==Ac?"%":"px",f.height=c.region.height+(c.region.heightUnits==Ac?"%":"px"),f.width=c.region.width+a,f.position="absolute",f.top=c.region.viewportAnchorY+d,f.left=c.region.viewportAnchorX+d);f.lineHeight=c.lineHeight;c.position&&(c.writingMode==kc?f.paddingLeft=c.position:f.paddingTop=c.position);"line-left"==c.positionAlign?f.cssFloat="left":"line-right"==
|
|
350
|
+
c.positionAlign&&(f.cssFloat="right");f.textAlign=c.textAlign;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==kc?f.width=c.size+"%":f.height=c.size+"%")}
|
|
351
|
+
function ik(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 jk(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}J("shaka.text.UITextDisplayer",dk);dk.prototype.setTextVisibility=dk.prototype.setTextVisibility;
|
|
352
|
+
dk.prototype.isTextVisible=dk.prototype.isTextVisible;dk.prototype.remove=dk.prototype.remove;dk.prototype.destroy=dk.prototype.destroy;dk.prototype.append=dk.prototype.append;function kk(a,b){function c(h){for(var k=h,l=r(b),m=l.next();!m.done;m=l.next())m=m.value,m.end&&m.start<h&&(k+=m.end-m.start);h=Math.floor(k/3600);l=Math.floor(k/60%60);m=Math.floor(k%60);k=Math.floor(1E3*k%1E3);return(10>h?"0":"")+h+":"+(10>l?"0":"")+l+":"+(10>m?"0":"")+m+"."+(100>k?10>k?"00":"0":"")+k}function d(h){var k=[],l=700<=h.fontWeight,m="italic"==h.fontStyle,n=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");n&&k.push("u");l=k.reduce(function(p,t){return p+"<"+t+">"},
|
|
353
|
+
"");k=k.reduceRight(function(p,t){return p+"</"+t+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(d).join(""):l+h.payload+k}var e=a.map(function(h){if(h.nestedCues.length){var k=h.clone();k.nestedCues=[];k.payload=d(h);return k}return h}),f="WEBVTT\n\n";e=r(e);for(var g=e.next();!g.done;g=e.next())g=g.value,f+=c(g.startTime)+" --\x3e "+c(g.endTime)+function(h){var k=[];switch(h.textAlign){case "left":k.push("align:left");break;case "right":k.push("align:right");break;case jc:k.push("align:middle");
|
|
354
|
+
break;case "start":k.push("align:start");break;case "end":k.push("align:end")}switch(h.writingMode){case "vertical-lr":k.push("vertical:lr");break;case "vertical-rl":k.push("vertical:rl")}return k.length?" "+k.join(" "):""}(g)+"\n",f+=g.payload+"\n\n";return f}J("shaka.text.WebVttGenerator",function(){});function lk(a,b){this.h=a;this.g=b;this.j="";this.A=void 0;this.i=!1;this.m=!0;this.l=!1}function mk(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.T()?nk:ok};d.ot=pk(c);var e=d.ot===qk||d.ot===rk||d.ot===sk||d.ot===tk;e&&(d.bl=uk(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==tk&&(d.tb=vk(a,d.ot)/1E3);wk(a,b,d)}}catch(f){Ua("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
|
|
355
|
+
function xk(a,b,c){try{if(!a.g.enabled)return b;var d=yk(a);a:{switch(c){case "video/webm":case "video/mp4":var e=sk;break a;case "application/x-mpegurl":e=zk;break a}e=void 0}d.ot=e;d.su=!0;var f=Ak(d);return Bk(b,f)}catch(g){return Ua("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function yk(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.A,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
|
|
356
|
+
function wk(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,yk(a));c.pr=a.h.zb();var e=c.ot===qk||c.ot===sk;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=Ck(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=Ak(c);f&&(b.uris=b.uris.map(function(g){return Bk(g,f)}))}}}
|
|
357
|
+
function pk(a){var b=a.type;if(a.init)return Dk;if("video"==b)return a.codecs.includes(",")?sk:qk;if("audio"==b)return rk;if("text"==b)return"application/mp4"===a.mimeType?tk:Ek}function uk(a,b){var c=a.h.yb()[b];if(!c.length)return NaN;var d=a.h.getCurrentTime();return(c=c.find(function(e){return e.start<=d&&e.end>=d}))?1E3*(c.end-d):NaN}
|
|
358
|
+
function vk(a,b){var c=a.h.Za();if(!c.length)return NaN;var d=c[0];c=r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,"variant"===e.type&&e.bandwidth>d.bandwidth&&(d=e);switch(b){case qk:return d.videoBandwidth||NaN;case rk:return d.audioBandwidth||NaN;default:return d.bandwidth}}
|
|
359
|
+
function Ak(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=r(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"===
|
|
360
|
+
l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Ck(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=r(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=Ak(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
|
|
361
|
+
function Bk(a,b){if(!b||a.includes("offline:"))return a;var c=new kb(a);c.g.set("CMCD",b);return c.toString()}var zk="m",rk="a",qk="v",sk="av",Dk="i",Ek="c",tk="tt",ok="v",nk="l";J("shaka.util.CmcdManager.StreamingFormat",{Ah:"d",Oh:"h",ti:"s",bi:"o"});function Fk(){}
|
|
362
|
+
function Gk(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]=$e(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=$e(l)),k=Gk(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 "+
|
|
363
|
+
k),g=!1)}return g}function Hk(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 Ik(a,b){return a&&b}J("shaka.util.ConfigUtils",Fk);Fk.convertToConfigObject=Hk;Fk.mergeConfigObjects=Gk;function Jk(){}
|
|
364
|
+
function Kk(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:Re(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){return Ik([g,h,k],g)},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[]},c={retryParameters:Re(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",
|
|
364
365
|
ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready",
|
|
365
|
-
"urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return
|
|
366
|
-
rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1};if(navigator.userAgent.match(/Edge\//)||Cd()||
|
|
367
|
-
.5;if(Bd("Web0S")||Cd()||
|
|
368
|
-
abrFactory:function(){return new
|
|
369
|
-
preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};e.trackSelectionCallback=function(g){return I(function(h){return h["return"](
|
|
370
|
-
f.preferredAudioLanguage))})};return f}function
|
|
371
|
-
function
|
|
372
|
-
2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=
|
|
373
|
-
function
|
|
374
|
-
this.
|
|
375
|
-
f){return
|
|
376
|
-
function(e,f){return
|
|
377
|
-
(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return I(function(f){return 1==f.g?u(f,
|
|
378
|
-
q.destroy=function(){var a=this,b;return I(function(c){switch(c.g){case 1:if(a.l==
|
|
379
|
-
a.
|
|
380
|
-
function
|
|
381
|
-
!1:xd()?!0:yd("application/x-mpegurl")}q.
|
|
382
|
-
q.
|
|
383
|
-
q.load=function(a,b,c){var d=this;this.
|
|
384
|
-
g.onError=function(l){return k(l)}})};function
|
|
385
|
-
function
|
|
386
|
-
8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.G&&(a.G.release(),a.G=null);if(!a.K){
|
|
387
|
-
for(e=d.next();!e.done;e=d.next())for(f=e.value,g=
|
|
388
|
-
function
|
|
389
|
-
function
|
|
390
|
-
function
|
|
391
|
-
mimeType:h.mimeType,channelsCount:h.channelsCount,pixelAspectRatio:h.pixelAspectRatio,width:h.width}).set("position",g);a.dispatchEvent(
|
|
392
|
-
onTimelineRegionAdded:function(g){var h=a.
|
|
393
|
-
enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)}},f=Date.now()/1E3;return new
|
|
394
|
-
function
|
|
395
|
-
function
|
|
396
|
-
(a.
|
|
397
|
-
a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=
|
|
398
|
-
case 3:
|
|
399
|
-
1E3-c.
|
|
400
|
-
function
|
|
401
|
-
createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?md(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.
|
|
366
|
+
"urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return Ik([g],g)}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"'}},d={retryParameters:Re(),failureCallback:function(g){return Ik([g],void 0)},
|
|
367
|
+
rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1};if(navigator.userAgent.match(/Edge\//)||Cd()||Gd())d.gapDetectionThreshold=
|
|
368
|
+
.5;if(Bd("Web0S")||Cd()||Gd())d.stallSkip=0;var e={trackSelectionCallback:function(g){return I(function(h){return h["return"](g)})},downloadSizeCallback:function(g){var h;return I(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?u(k,navigator.storage.estimate(),3):k["return"](!0);h=k.h;return k["return"](h.usage+g<.95*h.quota)})},progressCallback:function(g,h){return Ik([g,h],void 0)},usePersistentLicense:!0,numberOfParallelDownloads:5},f={drm:b,manifest:c,streaming:d,offline:e,
|
|
369
|
+
abrFactory:function(){return new ze},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",
|
|
370
|
+
preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};e.trackSelectionCallback=function(g){return I(function(h){return h["return"](Lk(g,
|
|
371
|
+
f.preferredAudioLanguage))})};return f}function Mk(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Gk(a,b,c||Kk(),d,"")}
|
|
372
|
+
function Lk(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Tb(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Lb(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
|
|
373
|
+
2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=r(a);for(g=d.next();!g.done;g=d.next())g=g.value,g.type!=Hb&&"image"!=g.type||c.push(g);return c}J("shaka.util.PlayerConfiguration",Jk);Jk.mergeConfigObjects=Mk;Jk.createDefault=Kk;function Nk(){this.g=null;this.h=[]}function Ok(a,b){if(null==a.g)a.g={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.g.duration=c-a.g.timestamp;a.g.state!=b&&(a.h.push(a.g),a.g={timestamp:c,state:b,duration:0})}}function Pk(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=r(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
|
|
374
|
+
function Qk(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(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 Rk(){this.i=this.h=null;this.g=[]}function Sk(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 Tk(){this.A=this.B=this.H=this.F=this.m=this.j=this.G=this.l=this.i=this.I=this.J=this.K=this.C=this.N=NaN;this.g=new Nk;this.h=new Rk};function S(a,b){eb.call(this);var c=this;this.l=Uk;this.ld=this.g=null;this.ba=!1;this.pd=new rf;this.hb=new rf;this.A=new rf;this.le=this.C=this.gb=this.i=this.qd=this.J=this.j=this.ea=this.U=this.sd=this.N=this.md=this.I=this.Wa=this.G=this.K=this.m=this.H=null;this.Jf=1E9;this.h=Vk(this);this.Pe={width:Infinity,height:Infinity};this.B=null;this.ya=new Ie(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.za=this.h.preferredTextLanguage;this.vb=this.h.preferredTextRole;
|
|
375
|
+
this.ib=this.h.preferForcedSubs;this.fb=[];this.Bc=null;b&&b(this);this.H=Wk(this);this.H.Ae(this.h.streaming.forceHTTPS);this.F=null;Xk&&(this.F=Xk());this.pd.o(window,"online",function(){c.qe()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.Qe={name:"manifest-parser"};this.Me={name:"manifest"};this.La={name:"media-source"};this.me={name:"drm-engine"};this.$={name:"load"};this.Re={name:"src-equals-drm-engine"};this.Xa={name:"src-equals"};var d=new Map;d.set(this.X,function(e,
|
|
376
|
+
f){return Xe(Yk(c,e,f))});d.set(this.P,function(e){e.O&&(c.hb.Pc(),e.O=null);c.F&&c.F.release();c.g=null;e=Promise.resolve();return Xe(e)});d.set(this.aa,function(e){return Xe(Zk(c,e))});d.set(this.La,function(e){e=$k(c,e);return Xe(e)});d.set(this.Qe,function(e,f){var g=al(c,e,f);return Xe(g)});d.set(this.Me,function(e){return bl(c,e)});d.set(this.me,function(e){e=cl(c,e);return Xe(e)});d.set(this.$,function(e,f){return Xe(dl(c,e,f))});d.set(this.Re,function(e,f){var g=el(c,e,f);return Xe(g)});d.set(this.Xa,
|
|
377
|
+
function(e,f){return fl(c,e,f)});this.ma=new Qj(this.P,{rg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.X);e==c.X&&(k=g==c.P||f.O!=h.O?c.P:g==c.X?c.X:g==c.La||g==c.$?c.La:g==c.Xa?c.Re:null);e==c.La&&(k=g==c.$&&f.O==h.O?c.Qe:c.aa);e==c.Qe&&(k=gl(c.$,c.Me,c.aa,g,f,h));e==c.Me&&(k=gl(c.$,c.me,c.aa,g,f,h));e==c.me&&(k=gl(c.$,c.$,c.aa,g,f,h));e==c.Re&&(k=g==c.Xa&&f.O==h.O?c.Xa:c.aa);if(e==c.$||e==c.Xa)k=c.aa;e==c.aa&&(k=h.O&&f.O==h.O?c.X:c.P);return k},Wf:function(e,f,g){c.dispatchEvent(hl(il,
|
|
378
|
+
(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return I(function(f){return 1==f.g?u(f,Zk(c,e),2):f["return"](e.O?c.X:c.P)})},Mg:function(e){c.dispatchEvent(hl(jl,(new Map).set("state",e.name)))}});a&&this.yc(a,!0)}qa(S,eb);function hl(a,b){return new M(a,b)}q=S.prototype;
|
|
379
|
+
q.destroy=function(){var a=this,b;return I(function(c){switch(c.g){case 1:if(a.l==kl)return c["return"]();a.l=kl;b=Vj(a.ma,function(){return{node:a.P,payload:Rj(),Jb:!1}});return u(c,new Promise(function(d){b.jc=function(){};b.td=function(){d()};b.Pb=function(){d()};b.onError=function(){d()};b.vd=function(){d()}}),2);case 2:return u(c,a.ma.destroy(),3);case 3:a.pd&&(a.pd.release(),a.pd=null);a.hb&&(a.hb.release(),a.hb=null);a.A&&(a.A.release(),a.A=null);a.le=null;a.C=null;a.h=null;a.B=null;a.ld=null;
|
|
380
|
+
a.U=null;if(!a.H){c.D(4);break}return u(c,a.H.destroy(),5);case 5:a.H=null;case 4:eb.prototype.release.call(a),z(c)}})};
|
|
381
|
+
function ll(){window.Promise||Ta("A Promise implementation or polyfill is required");window.TextDecoder&&window.TextEncoder||Ta("A TextDecoder/TextEncoder implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&window.TextDecoder&&window.TextEncoder&&Array.prototype.forEach)||Bd("Trident/"))return!1;var a=Id();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?
|
|
382
|
+
!1:xd()?!0:yd("application/x-mpegurl")}q.yc=function(a,b){b=void 0===b?!0:b;if(this.l==kl)return Promise.reject(ml());var c=Rj();c.O=a;xd()||(b=!1);var d=b?this.La:this.X,e=Vj(this.ma,function(){return{node:d,payload:c,Jb:!1}});e.jc=function(){};return nl(e)};q.detach=function(){var a=this;if(this.l==kl)return Promise.reject(ml());var b=Vj(this.ma,function(){return{node:a.P,payload:Rj(),Jb:!1}});b.jc=function(){};return nl(b)};
|
|
383
|
+
q.Ne=function(a){var b=this;a=void 0===a?!0:a;if(this.l==kl)return Promise.reject(ml());xd()||(a=!1);var c=Rj(),d=Vj(this.ma,function(e){var f=e.O&&a?b.La:e.O?b.X:b.P;c.O=e.O;return{node:f,payload:c,Jb:!1}});d.jc=function(){};return nl(d)};q.mh=function(a){this.Bc=a};
|
|
384
|
+
q.load=function(a,b,c){var d=this;this.Bc=null;if(this.l==kl)return Promise.reject(ml());this.dispatchEvent(hl(ol));var e=Rj();e.uri=a;e.He=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=pl(this,e)?this.Xa:this.$,g=Vj(this.ma,function(h){if(null==h.O)return null;e.O=h.O;return{node:f,payload:e,Jb:!0}});this.B=new Tk;this.U=ql(this);g.jc=function(){};return new Promise(function(h,k){g.vd=function(){return k(new O(2,7,7002))};g.td=function(){h();d.dispatchEvent(hl(rl))};g.Pb=function(){return k(ml())};
|
|
385
|
+
g.onError=function(l){return k(l)}})};function pl(a,b){if(!xd())return!0;var c=b.mimeType,d=b.uri||"";c||(c=pg(d),c=sl[c]);if(c){if(""==(b.O||zd()).canPlayType(c))return!1;if(!xd()||!(c in og||pg(d)in qg)||a.h.streaming.preferNativeHls)return!0;if(Hd())return a.h.streaming.useNativeHlsOnSafari}return!1}function Yk(a,b,c){null==b.O&&(b.O=c.O,a.hb.o(b.O,"error",function(){var d=tl(a);d&&ul(a,d)}));a.g=b.O;return Promise.resolve()}
|
|
386
|
+
function Zk(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return a.l!=kl&&(a.l=Uk),c=a.fb.map(function(p){return p()}),a.fb=[],u(n,Promise.all(c),2);case 2:a.dispatchEvent(hl(vl));b.mimeType=null;b.startTime=null;b.uri=null;b.O&&a.A.Pc();a.Wa&&(a.Wa.release(),a.Wa=null);a.md&&(a.md.stop(),a.md=null);if(!a.J){n.D(3);break}return u(n,a.J.stop(),4);case 4:a.J=null,a.qd=null;case 3:if(!a.C){n.D(5);break}return u(n,a.C.stop(),5);case 5:if(!a.j){n.D(7);break}return u(n,a.j.destroy(),
|
|
387
|
+
8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.G&&(a.G.release(),a.G=null);if(!a.K){n.D(9);break}return u(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.F)a.F.onAssetUnload();if(!b.O||!b.O.src){n.D(11);break}return u(n,new Promise(function(p){return(new P(p)).S(.1)}),12);case 12:for(b.O.removeAttribute("src"),b.O.load();b.O.lastChild;)b.O.removeChild(b.O.firstChild);case 11:if(!a.m){n.D(13);break}return u(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.gb=null;a.N=null;if(a.i){d=r(a.i.variants);
|
|
388
|
+
for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.B=new Tk;a.re=null;wl(a);z(n)}})}
|
|
389
|
+
function $k(a,b){var c,d,e,f,g,h;return I(function(k){if(1==k.g)return c=new Ph,d=a.h.textDisplayFactory,e=d(),a.re=d,f=xl(b.O,c,e,function(l,m,n){l=r(l);for(var p=l.next();!p.done;p=l.next())if(p=p.value,p.data&&p.cueTime&&p.frames){for(var t=p.cueTime+m,w=n,y=r(p.frames),x=y.next();!x.done;x=y.next())yl(a,t,w,"ID3",x.value);if(a.F)a.F.onHlsTimedMetadata(p,t)}}),g=a.h.manifest,h=g.segmentRelativeVttTiming,f.H=h,u(k,f.I,2);a.K=f;z(k)})}
|
|
390
|
+
function al(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.gb=d,f=a,u(h,ng(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.qd=h.h;a.J=a.qd();g=$e(a.h.manifest);c.O&&"AUDIO"===c.O.nodeName&&(g.disableVideo=!0);a.J.configure(g);z(h)})}
|
|
391
|
+
function bl(a,b){var c=b.uri,d=a.H;a.sd=new gj(function(){return a.Ia()});a.sd.addEventListener("regionadd",function(g){g=g.region;zl(a,Al,g);if(a.F)a.F.onDashTimedMetadata(g)});a.ea=null;a.h.streaming.observeQualityChanges&&(a.ea=new cj(function(){return a.yb()}),a.ea.addEventListener("qualitychange",function(g){var h=g.quality;g=g.position;h=(new Map).set("mediaQuality",{bandwidth:h.bandwidth,audioSamplingRate:h.audioSamplingRate,codecs:h.codecs,contentType:h.contentType,frameRate:h.frameRate,height:h.height,
|
|
392
|
+
mimeType:h.mimeType,channelsCount:h.channelsCount,pixelAspectRatio:h.pixelAspectRatio,width:h.width}).set("position",g);a.dispatchEvent(hl(Bl,h))}));var e={networkingEngine:d,modifyManifestRequest:function(g,h){var k=a.U;try{k.g.enabled&&(k.A=h.format,wk(k,g,{ot:zk,su:!k.i}))}catch(l){Ua("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",l)}},modifySegmentRequest:function(g,h){mk(a.U,g,h)},filter:function(g){return Cl(a,g)},makeTextStreamsForClosedCaptions:function(g){return Dl(a,g)},
|
|
393
|
+
onTimelineRegionAdded:function(g){var h=a.sd;a:{var k=r(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=l;break a}k=null}null==k&&(h.g.add(g),g=new M("regionadd",new Map([["region",g]])),h.dispatchEvent(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return ul(a,g)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
|
|
394
|
+
enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)}},f=Date.now()/1E3;return new Te(function(){var g,h,k,l;return I(function(m){if(1==m.g)return g=a,u(m,a.J.start(c,e),2);g.i=m.h;h=hl(El);a.dispatchEvent(h);if(0==a.i.variants.length)throw new O(2,4,4036);Fl(a.i);k=Date.now()/1E3;l=k-f;a.B.G=l;z(m)})}(),function(){return a.J.stop()})}
|
|
395
|
+
function cl(a,b){var c,d;return I(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=Gl(a,{Ob:a.H,onError:function(f){ul(a,f)},ud:function(f){Hl(a,f)},onExpirationUpdated:function(f,g){Il(a,f,g)},onEvent:function(f){a.dispatchEvent(f);f.type==Jl&&d&&(d=!1,a.B.j=Date.now()/1E3-c)}}),a.m.configure(a.h.drm),u(e,Gf(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.yc(b.O),3):u(e,Cl(a,a.i),0)})}
|
|
396
|
+
function dl(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w;return I(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Bc&&(b.startTime=a.Bc,a.Bc=null);d=b.O;e=b.uri;a.gb=e;a.I=new Zi({kd:function(){return d.playbackRate},gd:function(){return d.defaultPlaybackRate},Ce:function(x){d.playbackRate=x},uf:function(x){d.currentTime+=x}});f=function(){return Kl(a)};g=function(){return Ll(a)};a.A.o(d,"playing",f);a.A.o(d,"pause",f);a.A.o(d,"ended",f);a.A.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.le==h||
|
|
397
|
+
(a.le=h,a.C=h(),a.C.configure(a.h.abr));a.ya=new Ie(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.za=a.h.preferredTextLanguage;a.vb=a.h.preferredTextRole;a.ib=a.h.preferForcedSubs;Ml(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(x,v,D){a.j&&x!=a.j.l&&Nl(a,x,!0,void 0===v?!1:v,void 0===D?0:D)});a.G=Ol(a,b.startTime);a.Wa=Pl(a);k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Ql(a,k);Ld(a.i,a.h.preferredVideoCodecs,
|
|
398
|
+
a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Rl(a);a.j.configure(a.h.streaming);a.l=Sl;d.textTracks&&a.A.o(d.textTracks,"addtrack",function(x){if(x.track)switch(x=x.track,x.kind){case "chapters":Tl(a,x)}});a.dispatchEvent(hl(Ul));l=null;if(m=a.Za().find(function(x){return x.active})){y.D(2);break}l=Vl(a)?a.C.chooseVariant():null;Nl(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(3);break}n=a.G.m();return u(y,Wl(l,n),4);case 4:p=y.h,a.G.A(p);
|
|
399
|
+
case 3:Xl(a,null,me(l));case 2:return t=a.Ab().find(function(x){return x.active}),t||((w=we(a.i.textStreams,a.za,a.vb,a.ib)[0]||null)&&Sk(a.B.h,w,!0),l&&(w?(l.audio&&Yl(a,l.audio,w)&&(a.ba=!0),a.ba&&a.K.m.setTextVisibility(!0),Zl(a)):a.ba=!1),w&&(a.h.streaming.alwaysStreamText||a.Nb())&&zj(a.j,w)),u(y,a.j.start(),5);case 5:a.h.abr.enabled&&(a.C.enable(),$l(a)),ae(a.j?a.j.l:null,a.i),am(a.i),bm(a),Vl(a),a.i.variants.some(function(x){return x.primary}),a.A.Fa(d,"loadedmetadata",function(){a.B.l=Date.now()/
|
|
400
|
+
1E3-c.He}),z(y)}})}
|
|
401
|
+
function el(a,b,c){var d,e,f,g,h,k,l;return I(function(m){return 1==m.g?(d=Ib,e=Date.now()/1E3,f=!0,a.m=Gl(a,{Ob:a.H,onError:function(n){ul(a,n)},ud:function(n){Hl(a,n)},onExpirationUpdated:function(n,p){Il(a,n,p)},onEvent:function(n){a.dispatchEvent(n);n.type==Jl&&f&&(f=!1,a.B.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=pg(g),k=sl[h],"application/x-mpegurl"==k&&Hd()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,
|
|
402
|
+
createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?md(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ma,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},a.m.X=!0,u(m,Gf(a.m,[l],[]),2)):u(m,a.m.yc(b.O),
|
|
402
403
|
0)})}
|
|
403
|
-
function
|
|
404
|
-
a.A.Fa(e,"loadedmetadata",function(){a.B.l=Date.now()/1E3-c.
|
|
405
|
-
"change",function(){return
|
|
406
|
-
e.error?h.reject(
|
|
407
|
-
function
|
|
408
|
-
function
|
|
409
|
-
function
|
|
410
|
-
function
|
|
411
|
-
function
|
|
412
|
-
function
|
|
413
|
-
function
|
|
414
|
-
function
|
|
415
|
-
q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=
|
|
416
|
-
function
|
|
417
|
-
c);a.
|
|
418
|
-
q.
|
|
419
|
-
q.
|
|
420
|
-
q.Ia=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.
|
|
421
|
-
q.
|
|
422
|
-
q.
|
|
423
|
-
q.
|
|
424
|
-
q.
|
|
425
|
-
|
|
426
|
-
q.
|
|
427
|
-
q.
|
|
428
|
-
|
|
429
|
-
q.
|
|
430
|
-
|
|
431
|
-
q.
|
|
432
|
-
q.
|
|
433
|
-
q.
|
|
434
|
-
function
|
|
435
|
-
q.
|
|
436
|
-
q.
|
|
437
|
-
q.mf=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.l);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.
|
|
438
|
-
q.getStats=function(){if(this.l!=
|
|
439
|
-
b:Math.max(c.i,b)}a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),c=this.B,b=Number(a.totalVideoFrames),c.K=Number(a.droppedVideoFrames),c.J=b,this.B.I=Number(a.corruptedVideoFrames));this.m?(a=this.m,a=a.J?a.J:NaN):a=NaN;this.B.m=a;if(this.l==
|
|
440
|
-
(this.B.H=this.i.presentationTimeline.g);a=this.C.getBandwidthEstimate();this.B.A=a}var d=this.B;a=d.
|
|
441
|
-
estimatedBandwidth:h,completionPercent:k,loadLatency:l,manifestTimeSeconds:m,drmTimeSeconds:
|
|
442
|
-
q.
|
|
443
|
-
Ib;
|
|
444
|
-
emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};
|
|
445
|
-
q.
|
|
446
|
-
case 5:throw new O(1,2,2012);}})};function
|
|
447
|
-
function
|
|
448
|
-
a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return
|
|
449
|
-
function
|
|
450
|
-
q.
|
|
451
|
-
function
|
|
452
|
-
function
|
|
453
|
-
segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Hb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};b.textStreams.push(h);c.add(g)}}function
|
|
454
|
-
function
|
|
455
|
-
function
|
|
456
|
-
f.next())g=g.value,
|
|
457
|
-
function
|
|
458
|
-
function
|
|
459
|
-
function
|
|
460
|
-
function
|
|
461
|
-
function
|
|
462
|
-
function
|
|
463
|
-
function
|
|
464
|
-
function
|
|
465
|
-
(e=!0)}}}if(!e||
|
|
466
|
-
function
|
|
467
|
-
missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new O(2,4,4012,c);}function
|
|
468
|
-
function
|
|
469
|
-
h.push({language:l,role:
|
|
470
|
-
S.prototype.getManifestParserFactory=S.prototype.
|
|
471
|
-
S.prototype.setTextTrackVisibility=S.prototype.
|
|
472
|
-
S.prototype.getAudioLanguagesAndRoles=S.prototype
|
|
473
|
-
S.prototype.getExpiration=S.prototype.
|
|
474
|
-
S.prototype.getLoadMode=S.prototype.lf;S.prototype.resetConfiguration=S.prototype.
|
|
475
|
-
S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return I(function(h){if(1==h.g)return b={},a?u(h,
|
|
476
|
-
xd()?!!
|
|
477
|
-
k={};
|
|
478
|
-
var
|
|
479
|
-
|
|
480
|
-
var
|
|
481
|
-
ssa:"text/x-ssa",ass:"text/x-ssa"};function
|
|
404
|
+
function fl(a,b,c){function d(){return Kl(a)}b.uri=c.uri;b.startTime=c.startTime;a.gb=b.uri;var e=b.O;a.G=new Oi(e);var f=!1;a.fb.push(function(){f=!0});null!=b.startTime&&a.G.A(b.startTime);a.I=new Zi({kd:function(){return e.playbackRate},gd:function(){return e.defaultPlaybackRate},Ce:function(k){e.playbackRate=k},uf:function(k){e.currentTime+=k}});Ql(a,a.h.streaming.rebufferingGoal);a.A.o(e,"playing",d);a.A.o(e,"pause",d);a.A.o(e,"ended",d);a.A.o(e,"ratechange",function(){return Ll(a)});"none"!=e.preload&&
|
|
405
|
+
a.A.Fa(e,"loadedmetadata",function(){a.B.l=Date.now()/1E3-c.He});e.audioTracks&&(a.A.o(e.audioTracks,"addtrack",function(){return bm(a)}),a.A.o(e.audioTracks,"removetrack",function(){return bm(a)}),a.A.o(e.audioTracks,"change",function(){return bm(a)}));e.textTracks&&(a.A.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":cm(a,k);break;case "chapters":Tl(a,k);break;default:bm(a)}}),a.A.o(e.textTracks,"removetrack",function(){return bm(a)}),a.A.o(e.textTracks,
|
|
406
|
+
"change",function(){return bm(a)}));var g=pg(b.uri);e.src=xk(a.U,b.uri,sl[g]);(Cd()||Bd("Web0S"))&&e.load();a.l=dm;a.dispatchEvent(hl(Ul));var h=new Mc;Fi(e,HTMLMediaElement.HAVE_METADATA,a.A,function(){h.resolve()});Fi(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.A,function(){var k;return I(function(l){if(1==l.g)return em(a),k=fm(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):u(l,new Promise(function(m){a.A.Fa(e.textTracks,"change",m);(new P(m)).S(1)}),2);if(f)return l["return"]();gm(a);z(l)})});
|
|
407
|
+
e.error?h.reject(tl(a)):"none"==e.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.'),h.resolve());a.A.Fa(e,"error",function(){h.reject(tl(a))});return new Te(h,function(){h.reject(new O(2,7,7001));return Promise.resolve()})}
|
|
408
|
+
function em(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Bd(b);var c=a.h.preferredVariantRole;""!=c&&a.Bd(b,c)}}function gm(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.ve(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.ve(b,d,c)}}
|
|
409
|
+
function cm(a,b){if("metadata"==b.kind){b.mode="hidden";a.A.o(b,"cuechange",function(){if(b.activeCues)for(var d=r(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,yl(a,e.startTime,e.endTime,e.type,e.value),a.F)a.F.onCueMetadataChange(e.value)});var c=(new P(function(){var d=hm(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).xa().S(.5);a.fb.push(function(){c.stop()})}}
|
|
410
|
+
function yl(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(hl(im,b))}function Tl(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new P(function(){b.mode="hidden"})).xa().S(.5);a.fb.push(function(){c.stop()})}}function Fl(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))}function Gl(a,b){return new zf(b,a.h.drm.updateExpirationTime)}
|
|
411
|
+
function Wk(a){return new df(function(b,c){a.C&&a.C.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(hl(jm,b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(hl(km,b))})}function Ol(a,b){return new Pi(a.g,a.i,a.h.streaming,b,function(){a.Wa&&bj(a.Wa,!0);a.j&&a.j.Qc();a.N&&lm(a)})}
|
|
412
|
+
function Pl(a){var b=new hj(a.sd);b.addEventListener("enter",function(d){zl(a,mm,d.region)});b.addEventListener("exit",function(d){zl(a,nm,d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(zl(a,mm,e),zl(a,nm,e))});var c=new aj(a.g);c.g.add(b);a.ea&&c.g.add(a.ea);return c}function Ql(a,b){a.N=new Me;a.N.g=Oe;Pe(a.N,b,Math.min(.5,b/2));wl(a);a.md=(new P(function(){lm(a)})).ka(.25)}
|
|
413
|
+
function lm(a){switch(a.l){case dm:if(a.g.ended)var b=!0;else{var c=Sh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Sl:a:if(a.g.ended||ci(a.K))b=!0;else{if(a.i.presentationTimeline.T()){c=a.i.presentationTimeline.Ib();var d=Sh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Uh(a.g.buffered,a.g.currentTime);c=a.N;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Ne:Oe;c.g=d;b!=d&&wl(a)}function xl(a,b,c,d){return new Xh(a,b,c,d)}
|
|
414
|
+
function ql(a){return new lk({getBandwidthEstimate:function(){return a.C?a.C.getBandwidthEstimate():NaN},yb:function(){return a.yb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Za:function(){return a.Za()},zb:function(){return a.zb()},T:function(){return a.T()}},a.h.cmcd)}
|
|
415
|
+
function Rl(a){return new nj(a.i,{jd:function(){return a.G.m()},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){mk(a.U,b,c)},V:a.K,Ob:a.H,onError:function(b){return ul(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Og:function(){a.J&&a.J.update&&a.J.update()},ke:function(){a.G&&a.G.G();lm(a)},Ng:function(b,c){var d=c.ee;d&&a.ea&&ej(a.ea,d,b)}})}
|
|
416
|
+
q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Hk(a,b));a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01));var c=Mk(this.h,a,Vk(this));om(this);return c};
|
|
417
|
+
function om(a){if(a.J){var b=$e(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{pm(a,a.i)}catch(f){ul(a,f)}a.C&&Vl(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||qm(a)}a.H&&a.H.Ae(a.h.streaming.forceHTTPS);if(a.K&&(a.K.H=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.re!=b)){var c=b(),d=a.K,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.i=
|
|
418
|
+
c);a.re=b;a.j&&(b=a.j,(c=b.h.get(Hb))&&xj(b,c.stream,!0,0,!0))}a.C&&(a.C.configure(a.h.abr),a.h.abr.enabled?a.C.enable():a.C.disable(),$l(a));a.N&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Pe(a.N,b,Math.min(.5,b/2)));a.i&&Ml(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}q.getConfiguration=function(){var a=Vk(this);Mk(a,this.h,Vk(this));return a};
|
|
419
|
+
q.Zf=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.Ia().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};q.Yg=function(){for(var a in this.h)delete this.h[a];Mk(this.h,Vk(this),Vk(this));om(this)};q.lf=function(){return this.l};q.qg=function(){return this.g};q.Ec=function(){return this.H};q.Vd=function(){return this.gb};
|
|
420
|
+
q.fd=function(){return this.F?this.F:null};q.T=function(){return this.i?this.i.presentationTimeline.T():this.g&&this.g.src?Infinity==this.g.duration:!1};q.Lb=function(){return this.i?this.i.presentationTimeline.Lb():!1};q.ec=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};
|
|
421
|
+
q.Ia=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.cc(),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}};q.Cg=function(){this.T()&&(this.g.currentTime=this.Ia().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Dc=function(){return this.m?this.m.Dc():Infinity};q.hd=function(){return this.m?this.m.hd():{}};
|
|
422
|
+
q.Jc=function(){return this.N?this.N.g==Oe:!1};q.zb=function(){return this.g?this.I?this.I.i:1:0};q.Le=function(a){0==a?Ta("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==Sl&&(this.C.playbackRateChanged(a),wj(this.j,1<Math.abs(a))))};q.Ve=function(){var a=this.I.gd();this.l==dm&&this.I.set(a);this.l==Sl&&(this.I.set(a),this.C.playbackRateChanged(a),wj(this.j,!1))};
|
|
423
|
+
q.Za=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=r(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,ue(e)){var f=me(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 te(g)}):[]};
|
|
424
|
+
q.Ab=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=ne(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?fm(this).map(function(f){return re(f)}):[]};q.ig=function(){return this.i?this.i.imageStreams.map(function(a){return oe(a)}):[]};
|
|
425
|
+
q.yg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,D,C,A;return I(function(F){if(1==F.g)return c.i?(d=c.i.imageStreams.find(function(G){return G.id==a}))?d.segmentIndex?F.D(3):u(F,d.createSegmentIndex(),3):F["return"](null):F.D(2);if(2!=F.g){e=d.segmentIndex.find(b);if(null==e)return F["return"](null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return F["return"](null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;t=l/n;
|
|
426
|
+
w=m*n;y=f.j-f.startTime;x=f.l||y/w;v=f.startTime;C=D=0;1<w&&(A=Math.floor((b-f.startTime)/x),v=f.startTime+A*x,D=A%m*p,C=Math.floor(A/m)*t);return F["return"]({imageHeight:l,imageWidth:k,height:t,positionX:D,positionY:C,startTime:v,duration:x,uris:f.Pa(),width:p})}return F["return"](null)})};
|
|
427
|
+
q.we=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(Sk(this.B.h,b,!1),zj(this.j,b),rm(this),this.za=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=fm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,pe(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";rm(this)}};
|
|
428
|
+
q.xe=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&&ue(d)&&(Nl(this,d,!1,b,c),this.ya=new He(d),Vl(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=r(b),c=b.next();!c.done;c=b.next())if(c=c.value,
|
|
429
|
+
pe(c)==a.id){sm(this,c);break}};q.Yf=function(){return tm(this.Za())};q.xg=function(){return tm(this.Ab())};q.Xf=function(){return Array.from(um(this.Za()))};q.wg=function(){return Array.from(um(this.Ab()))};
|
|
430
|
+
q.Bd=function(a,b){if(this.i&&this.G){this.ya=new Ie(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.j.l,e=this.ya.create(this.i.variants),f=null;e=r(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=me(f),this.xe(c,!0)):qm(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Lb(a);f=d=null;e=
|
|
431
|
+
r(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=te(g);Lb(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?sm(this,f):d&&sm(this,d)}};
|
|
432
|
+
q.ve=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.G){if(this.za=a,this.vb=b||"",this.ib=c,(a=we(this.i.textStreams,this.za,this.vb,this.ib)[0]||null)&&a!=this.j.A&&(Sk(this.B.h,a,!1),this.h.streaming.alwaysStreamText||this.Nb()))zj(this.j,a),rm(this)}else{var d=Lb(a);(a=this.Ab().find(function(e){return Lb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.we(a)}};
|
|
433
|
+
q.ah=function(a){if(this.i&&this.G){for(var b=null,c=r(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.ya=new Ie(b.language,"",0,a),qm(this))}};q.Nb=function(){var a=this.ba;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?fm(this).some(function(b){return"showing"==b.mode}):a};q.jf=function(){return this.g&&this.g.src&&this.g.textTracks?vm(this).map(function(a){return re(a)}):[]};
|
|
434
|
+
q.ag=function(a){var b=Lb(a),c=vm(this).filter(function(f){return Lb(f.language)==b});if(!c||!c.length)return[];a=[];c=r(c);for(var d=c.next();!d.done;d=c.next())if((d=d.value)&&d.cues){d=r(d.cues);for(var e=d.next();!e.done;e=d.next())e=e.value,a.push({title:e.text,startTime:e.startTime,endTime:e.endTime})}return a};function fm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}
|
|
435
|
+
function hm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function vm(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
|
|
436
|
+
q.Fe=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==Sl)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=we(this.i.textStreams,this.za,this.vb,this.ib),0<a.length&&(zj(this.j,a[0]),rm(this))):vj(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=fm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Zl(this)}};
|
|
437
|
+
q.sg=function(){if(!this.T())return null;var a=this.ma.l,b=0;if(this.G)b=this.G.m();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.l+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
|
|
438
|
+
q.mf=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.l);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.yb=function(){if(this.l==Sl)return this.K.yb();var a={total:[],audio:[],video:[],text:[]};this.l==dm&&(a.total=Vh(this.g.buffered));return a};
|
|
439
|
+
q.getStats=function(){if(this.l!=Sl&&this.l!=dm)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames: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:[]};Kl(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.B;b=Math.round(100*b);c.i=isNaN(c.i)?
|
|
440
|
+
b:Math.max(c.i,b)}a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),c=this.B,b=Number(a.totalVideoFrames),c.K=Number(a.droppedVideoFrames),c.J=b,this.B.I=Number(a.corruptedVideoFrames));this.m?(a=this.m,a=a.J?a.J:NaN):a=NaN;this.B.m=a;if(this.l==Sl){if(a=this.j.l)this.B.B=(this.I?this.I.i:1)*a.bandwidth;a&&a.video&&(c=this.B,b=a.video.height||NaN,c.N=a.video.width||NaN,c.C=b);this.T()&&(a=this.mf().valueOf()+1E3*this.Ia().end,this.B.F=(Date.now()-a)/1E3);this.i&&this.i.presentationTimeline&&
|
|
441
|
+
(this.B.H=this.i.presentationTimeline.g);a=this.C.getBandwidthEstimate();this.B.A=a}var d=this.B;a=d.N;c=d.C;b=d.B;var e=d.J,f=d.K,g=d.I,h=d.A,k=d.i,l=d.l,m=d.G,n=d.j,p=Pk(d.g,"playing"),t=Pk(d.g,"paused"),w=Pk(d.g,"buffering"),y=d.m,x=d.F,v=d.H,D=Qk(d.g),C=[];d=r(d.h.g);for(var A=d.next();!A.done;A=d.next())A=A.value,C.push({timestamp:A.timestamp,id:A.id,type:A.type,fromAdaptation:A.fromAdaptation,bandwidth:A.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:e,droppedFrames:f,corruptedFrames:g,
|
|
442
|
+
estimatedBandwidth:h,completionPercent:k,loadLatency:l,manifestTimeSeconds:m,drmTimeSeconds:n,playTime:p,pauseTime:t,bufferingTime:w,licenseTime:y,liveLatency:x,maxSegmentDuration:v,stateHistory:D,switchHistory:C}};
|
|
443
|
+
q.Of=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,t,w,y,x,v,D;return I(function(C){switch(C.g){case 1:if(h.l!=Sl&&h.l!=dm)throw new O(1,7,7004);if(d){C.D(2);break}return u(C,wm(h,a),3);case 3:d=C.h;case 2:k=[];if(h.F)try{k=h.F.getServerSideCuePoints()}catch(A){}if(h.l!=dm){C.D(4);break}g&&(c="forced");return u(C,xm(h,a,b,c,d,f||"",k),5);case 5:l=h.Ab();if(m=l.find(function(A){return A.language==b&&A.label==(f||"")&&A.kind==c}))return bm(h),C["return"](m);throw new O(1,2,2012);case 4:n=
|
|
444
|
+
Ib;p=h.i.presentationTimeline.getDuration();if(Infinity==p)throw new O(1,4,4033);if(!k.length){C.D(6);break}return u(C,ym(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=C.h,w=zm(h,t,d,k),y=new Blob([w],{type:"text/vtt"}),a=$h(y),d="text/vtt";case 6:x={id:h.Jf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Xi(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:n.ha,primary:!1,trickModeVideo:null,
|
|
445
|
+
emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};v=id(x.mimeType,x.codecs);D=od(v);if(!D)throw new O(2,2,2014,d);h.i.textStreams.push(x);bm(h);return C["return"](ne(x))}})};
|
|
446
|
+
q.Nf=function(a,b,c){var d=this,e,f,g,h;return I(function(k){switch(k.g){case 1:if(d.l!=Sl&&d.l!=dm)throw new O(1,7,7004);if(c){k.D(2);break}return u(k,wm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.F)try{e=d.F.getServerSideCuePoints()}catch(l){}return u(k,xm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.jf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.A.Fa(f,"load",l);d.A.Fa(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return k["return"](h);
|
|
447
|
+
case 5:throw new O(1,2,2012);}})};function wm(a,b){var c,d;return I(function(e){switch(e.g){case 1:c=pg(b);if(d=Am[c])return e["return"](d);B(e,2);return u(e,rg(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:E(e);case 3:if(d)return e["return"](d);throw new O(1,2,2011,c);}})}
|
|
448
|
+
function xm(a,b,c,d,e,f,g){var h,k,l,m;return I(function(n){if(1==n.g)return"text/vtt"!=e||g.length?u(n,ym(a,b,a.H,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=zm(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=$h(l),e="text/vtt");m=document.createElement("track");var p=a.U,t=b;try{if(p.g.enabled){var w=yk(p);w.ot=Ek;w.su=!0;var y=Ak(w);var x=Bk(t,y)}else x=t}catch(v){Ua("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",v),x=t}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
|
|
449
|
+
a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n["return"](m)})}function ym(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){e=of;f=hf([b],d);f.method="GET";var k=a.U;try{k.g.enabled&&wk(k,f,{ot:Ek,su:!0})}catch(l){Ua("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h["return"](g.data)})}
|
|
450
|
+
function zm(a,b,c,d){var e=pd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Fc(b),b=c.parseMedia(b,a),kk(b,d);throw new O(2,2,2014,c);}q.Be=function(a,b){this.Pe.width=a;this.Pe.height=b};q.qe=function(){if(this.l==Sl){var a=this.j;if(a.j.g)a=!1;else if(a.B)a=!1;else{for(var b=r(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,c.Hc&&(c.Hc=!1,uj(a,c,.1));a=!0}}else a=!1;return a};
|
|
451
|
+
q.ng=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};q.og=function(){return this.qd};
|
|
452
|
+
function Vk(a){var b=Kk();b.streaming.failureCallback=function(c){var d=[1001,1002,1003];a.T()&&d.includes(c.code)&&(c.severity=1,a.qe())};b.textDisplayFactory=function(){return a.ld?new dk(a.g,a.ld):new Xj(a.g)};return b}q.Ge=function(a){this.ld=a};
|
|
453
|
+
function Dl(a,b){for(var c=new Set,d=r(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=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(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 Yi;h={id:a.Jf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
|
|
454
|
+
segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Hb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};b.textStreams.push(h);c.add(g)}}function Cl(a,b){return I(function(c){if(1==c.g)return u(c,Bm(a,b),2);pm(a,b);z(c)})}
|
|
455
|
+
function Bm(a,b){var c;return I(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,Zd(c,b),2);am(b);z(d)})}
|
|
456
|
+
function pm(a,b){if(a.l!=kl){for(var c=a.h.restrictions,d=a.Pe,e=!1,f=r(b.variants),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.allowedByApplication;g.allowedByApplication=Yd(g,c,d);h!=g.allowedByApplication&&(e=!0)}e&&a.j&&bm(a);if((c=a.m?a.m.g:null)&&a.m.B)for(d=r(b.variants),e=d.next();!e.done;e=d.next())for(e=e.value,e=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])),f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem)for(f=r(f.initData||[]),g=f.next();!g.done;g=
|
|
457
|
+
f.next())g=g.value,Pf(a.m,g.initDataType,g.initData);Cm(a,b)}}
|
|
458
|
+
function Wl(a,b){var c,d,e,f,g;return I(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return I(function(t){if(1==t.g)return k?u(t,k.createSegmentIndex(),2):t["return"](null);n=(m=k.segmentIndex.ac(l))?m.next().value:null;if(!n)return t["return"](null);p=n.startTime;return t["return"](p)})},u(h,e(c,b),2);if(3!=h.g)return f=h.h,u(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)})}
|
|
459
|
+
function wl(a){var b=a.Jc();if(a.B&&a.N&&a.G){var c=a.I;c.j=b;$i(c);a.U&&(c=a.U,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);Kl(a)}b=(new Map).set("buffering",b);a.dispatchEvent(hl(Dm,b))}function Ll(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=hl(Em),a.dispatchEvent(b))}function Kl(a){if(a.B&&a.N){var b=a.B.g;a.N.g==Oe?Ok(b,"buffering"):a.g.paused?Ok(b,"paused"):a.g.ended?Ok(b,"ended"):Ok(b,"playing")}}
|
|
460
|
+
function Vl(a){try{Cm(a,a.i)}catch(c){return ul(a,c),!1}var b=a.i.variants.filter(function(c){return ue(c)});b=a.ya.create(b);a.C.setVariants(Array.from(b.values()));return!0}function qm(a){var b;(b=Vl(a)?a.C.chooseVariant():null)&&Nl(a,b,!0,!0,0)}
|
|
461
|
+
function Nl(a,b,c,d,e){var f=a.j.l;if(b==f)d&&yj(a.j,b,d,e,!0);else{var g=a.B.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));yj(a.j,b,d,e);d=null;f&&(d=me(f));b=me(b);c?Xl(a,d,b):Fm(a,d,b)}}function sm(a,b){var c=Array.from(a.g.audioTracks).find(function(e){return e.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=te(c);var d=te(b);Fm(a,c,d)}
|
|
462
|
+
function Yl(a,b,c){a=Lb(a.h.preferredTextLanguage);b=Lb(b.language);c=Lb(c.language);return Kb(c,a)&&!Kb(b,c)}function Xl(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=hl(Gm,b);Hm(a,b)}function bm(a){var b=hl(Im);Hm(a,b)}function Fm(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=hl(Jm,b);Hm(a,b)}function rm(a){var b=hl(Km);Hm(a,b)}function Zl(a){var b=hl(Lm);Hm(a,b)}function $l(a){var b=(new Map).set("newStatus",a.h.abr.enabled);Hm(a,hl(Mm,b))}
|
|
463
|
+
function ul(a,b){if(a.l!=kl){var c=hl(Nm,(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function zl(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(hl(b,c))}
|
|
464
|
+
function tl(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 O(2,3,3016,b,c,a.g.error.message)}
|
|
465
|
+
function Hl(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=r(a.i.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=r(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=r(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!Om.includes(l)}h!=f.allowedByKeySystem&&
|
|
466
|
+
(e=!0)}}}if(!e||Vl(a))(d=a.j.l)&&!d.allowedByKeySystem&&qm(a),e&&bm(a)}}function Il(a,b,c){if(a.J&&a.J.onExpirationUpdated)a.J.onExpirationUpdated(b,c);b=hl(Pm);a.dispatchEvent(b)}function Ml(a,b,c){0<b&&(a.T()||a.Df(b));b=a.getDuration();c<b&&(a.T()||a.bb(c))}
|
|
467
|
+
function Cm(a,b){var c=a.m?a.m.hd():{},d=Object.keys(c);d=d.length&&"00"==d[0];for(var e=!1,f=!1,g=new Set,h=new Set,k=r(b.variants),l=k.next();!l.done;l=k.next()){l=l.value;var m=[];l.audio&&m.push(l.audio);l.video&&m.push(l.video);m=r(m);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n.keyIds.size){n=r(n.keyIds);for(var p=n.next();!p.done;p=n.next()){p=p.value;var t=c[d?"00":p];t?Om.includes(t)&&h.add(t):g.add(p)}}l.allowedByApplication?l.allowedByKeySystem&&(e=!0):f=!0}if(!e)throw c={hasAppRestrictions:f,
|
|
468
|
+
missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new O(2,4,4012,c);}function am(a){if(!a.variants.some(ue))throw new O(2,4,4032);}function Hm(a,b){I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=kl&&a.dispatchEvent(b);z(c)})}function um(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Lb(c.language)):b.add("und");return b}
|
|
469
|
+
function tm(a){var b=new Map,c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Lb(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=r(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){for(var m=r(k),n=m.next();!n.done;n=m.next()){n=n.value;var p=null;c.has(l)&&c.get(l).has(n)&&(p=c.get(l).get(n));
|
|
470
|
+
h.push({language:l,role:n,label:p})}});return h}function ml(){return new O(2,7,7E3)}function gl(a,b,c,d,e,f){return d==a&&e.O==f.O&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Rj(){return{O:null,mimeType:null,startTime:null,He:NaN,uri:null}}function nl(a){return new Promise(function(b,c){a.Pb=function(){return c(ml())};a.td=function(){return b()};a.onError=function(d){return c(d)};a.vd=function(){return c(ml())}})}J("shaka.Player",S);S.prototype.setVideoContainer=S.prototype.Ge;
|
|
471
|
+
S.prototype.getManifestParserFactory=S.prototype.og;S.prototype.getManifest=S.prototype.ng;S.prototype.retryStreaming=S.prototype.qe;S.prototype.setMaxHardwareResolution=S.prototype.Be;S.prototype.addChaptersTrack=S.prototype.Nf;S.prototype.addTextTrackAsync=S.prototype.Of;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.yb;S.prototype.getPresentationStartTimeAsDate=S.prototype.mf;S.prototype.getPlayheadTimeAsDate=S.prototype.sg;
|
|
472
|
+
S.prototype.setTextTrackVisibility=S.prototype.Fe;S.prototype.getChapters=S.prototype.ag;S.prototype.getChaptersTracks=S.prototype.jf;S.prototype.isTextTrackVisible=S.prototype.Nb;S.prototype.selectVariantsByLabel=S.prototype.ah;S.prototype.selectTextLanguage=S.prototype.ve;S.prototype.selectAudioLanguage=S.prototype.Bd;S.prototype.getTextLanguages=S.prototype.wg;S.prototype.getAudioLanguages=S.prototype.Xf;S.prototype.getTextLanguagesAndRoles=S.prototype.xg;
|
|
473
|
+
S.prototype.getAudioLanguagesAndRoles=S.prototype.Yf;S.prototype.selectVariantTrack=S.prototype.xe;S.prototype.selectTextTrack=S.prototype.we;S.prototype.getThumbnails=S.prototype.yg;S.prototype.getImageTracks=S.prototype.ig;S.prototype.getTextTracks=S.prototype.Ab;S.prototype.getVariantTracks=S.prototype.Za;S.prototype.cancelTrickPlay=S.prototype.Ve;S.prototype.trickPlay=S.prototype.Le;S.prototype.getPlaybackRate=S.prototype.zb;S.prototype.isBuffering=S.prototype.Jc;S.prototype.getKeyStatuses=S.prototype.hd;
|
|
474
|
+
S.prototype.getExpiration=S.prototype.Dc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.Cg;S.prototype.seekRange=S.prototype.Ia;S.prototype.isAudioOnly=S.prototype.ec;S.prototype.isInProgress=S.prototype.Lb;S.prototype.isLive=S.prototype.T;S.prototype.getAdManager=S.prototype.fd;S.prototype.getAssetUri=S.prototype.Vd;S.prototype.getNetworkingEngine=S.prototype.Ec;S.prototype.getMediaElement=S.prototype.qg;
|
|
475
|
+
S.prototype.getLoadMode=S.prototype.lf;S.prototype.resetConfiguration=S.prototype.Yg;S.prototype.getBufferFullness=S.prototype.Zf;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.mh;S.prototype.unload=S.prototype.Ne;S.prototype.detach=S.prototype.detach;S.prototype.attach=S.prototype.yc;
|
|
476
|
+
S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return I(function(h){if(1==h.g)return b={},a?u(h,fg(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(xd()){for(var l in og)k[l]=!0;for(var m in qg)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,k[n]=xd()?!!og[n]:yd(n);for(var p in l)k[p]=
|
|
477
|
+
xd()?!!qg[p]:yd(l[p]);c=k;p='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",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",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(ia(ti));
|
|
478
|
+
k={};p=r(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=xd()?od(l)?!0:MediaSource.isTypeSupported(l)||dd(l):yd(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Qm;for(g in f)e[g]=f[g]();return h["return"](e)})};S.isBrowserSupported=ll;S.setAdManagerFactory=function(a){Xk=a};S.registerSupportPlugin=function(a,b){Qm[a]=b};S.prototype.destroy=S.prototype.destroy;
|
|
479
|
+
var Mm="abrstatuschanged",Gm="adaptation",Dm="buffering",km="downloadfailed",jm="downloadheadersreceived",Jl="drmsessionupdate",Oj="emsg",Nm="error",Pm="expirationupdated",rl="loaded",ol="loading",El="manifestparsed",Bl="mediaqualitychanged",im="metadata",il="onstatechange",jl="onstateidle",Em="ratechange",Ul="streaming",Km="textchanged",Lm="texttrackvisibility",Al="timelineregionadded",mm="timelineregionenter",nm="timelineregionexit",Im="trackschanged",vl="unloading",Jm="variantchanged",Rm={uh:Mm,
|
|
480
|
+
vh:Gm,wh:Dm,Bh:km,Ch:jm,Dh:Jl,Kh:Oj,Error:Nm,Lh:Pm,Rh:rl,Sh:ol,Xh:El,Yh:Bl,Metadata:im,ci:il,di:jl,oi:Em,xi:"sessiondata",zi:Ul,Ai:Km,Bi:Lm,Ci:Al,Di:mm,Ei:nm,Fi:Im,Ki:vl,Mi:Jm},kl=0,Uk=1,Sl=2,dm=3;S.LoadMode={DESTROYED:kl,NOT_LOADED:Uk,MEDIA_SOURCE:Sl,SRC_EQUALS:dm};S.version="v4.0.3";
|
|
481
|
+
var Om=["output-restricted","internal-error"],Qm={},Xk=null,sl={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",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Am={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
|
|
482
|
+
ssa:"text/x-ssa",ass:"text/x-ssa"};function Sm(){this.h=[];this.j=this.i=this.g=0};function Tm(a,b,c){var d=this;this.h=a;this.g=b;this.m=c;this.i=!1;this.l=this.g.getVolume();this.j=new rf;this.j.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=Tm.prototype;q.getDuration=function(){return this.h.getDuration()};q.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.g.getRemainingTime()};q.isPaused=function(){return this.i};
|
|
482
483
|
q.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.h.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.g.getAdSkippableState()};q.skip=function(){return this.g.skip()};q.pause=function(){return this.g.pause()};q.play=function(){return this.g.resume()};q.getVolume=function(){return this.g.getVolume()};q.setVolume=function(a){return this.g.setVolume(a)};q.isMuted=function(){return 0==this.g.getVolume()};
|
|
483
484
|
q.isLinear=function(){return this.h.isLinear()};q.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};q.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
|
|
484
|
-
q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=null};J("shaka.ads.ClientSideAd",
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
function(f){
|
|
488
|
-
function
|
|
489
|
-
function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,
|
|
490
|
-
function
|
|
491
|
-
function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){
|
|
485
|
+
q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=null};J("shaka.ads.ClientSideAd",Tm);Tm.prototype.release=Tm.prototype.release;Tm.prototype.getPositionInSequence=Tm.prototype.getPositionInSequence;Tm.prototype.getSequenceLength=Tm.prototype.getSequenceLength;Tm.prototype.setMuted=Tm.prototype.setMuted;Tm.prototype.resize=Tm.prototype.resize;Tm.prototype.isLinear=Tm.prototype.isLinear;Tm.prototype.isMuted=Tm.prototype.isMuted;
|
|
486
|
+
Tm.prototype.setVolume=Tm.prototype.setVolume;Tm.prototype.getVolume=Tm.prototype.getVolume;Tm.prototype.play=Tm.prototype.play;Tm.prototype.pause=Tm.prototype.pause;Tm.prototype.skip=Tm.prototype.skip;Tm.prototype.canSkipNow=Tm.prototype.canSkipNow;Tm.prototype.getTimeUntilSkippable=Tm.prototype.getTimeUntilSkippable;Tm.prototype.isSkippable=Tm.prototype.isSkippable;Tm.prototype.isPaused=Tm.prototype.isPaused;Tm.prototype.getRemainingTime=Tm.prototype.getRemainingTime;
|
|
487
|
+
Tm.prototype.getMinSuggestedDuration=Tm.prototype.getMinSuggestedDuration;Tm.prototype.getDuration=Tm.prototype.getDuration;function Um(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.j=d;this.m=null;this.h=new rf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.0.3");this.g=null;this.h.Fa(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){Vm(e,f)});this.h.o(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,
|
|
488
|
+
function(f){Wm(e,f)});this.i.onended=function(){e.l.contentComplete()}}Um.prototype.stop=function(){this.g&&this.g.stop();this.A&&ck(this.A)};Um.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};function Wm(a,b){b.getError();Xm(a,null);a.j(new M("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
489
|
+
function Vm(a,b){a.j(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.j(new M("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next())d.push({start:e.value,end:null});a.j(new M("ad-cue-points-changed",(new Map).set("cuepoints",d)))}Ym(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Zm(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
|
|
490
|
+
function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Zm(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window&&(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Zm(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)),a.g.start()}catch(f){Xm(a,null)}}function Zm(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
|
|
491
|
+
function Ym(a){function b(c,d){var e=(new Map).set("originalEvent",c);a.j(new M(d,e))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Wm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){$m(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){$m(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,
|
|
492
|
+
function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Xm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Xm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
|
|
492
493
|
a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.m.i=!0;b(c,"ad-paused")});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.m.i=!1;b(c,"ad-resumed")});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){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")});a.h.o(a.g,
|
|
493
494
|
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,google.ima.AdEvent.Type.AD_METADATA,
|
|
494
|
-
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")})}function
|
|
495
|
-
function
|
|
495
|
+
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")})}function $m(a,b){var c=b.getAd();a.m=new Tm(c,a.g,a.i);c=(new Map).set("ad",a.m).set("sdkAdObject",c).set("originalEvent",b);a.j(new M("ad-started",c));a.m.isLinear()&&(a.A.setAttribute("ad-active","true"),a.i.pause())}
|
|
496
|
+
function Xm(a,b){a.j(new M("ad-stopped",(new Map).set("originalEvent",b)));a.m.isLinear()&&(a.A.removeAttribute("ad-active"),a.i.play())};function an(a,b){this.i=a;this.h=null;this.g=b}q=an.prototype;q.getDuration=function(){return this.h?this.h.duration:-1};q.getMinSuggestedDuration=function(){return this.getDuration()};q.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};q.isPaused=function(){return this.g.paused};q.isSkippable=function(){return this.i.isSkippable()};q.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
|
|
496
497
|
q.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};q.skip=function(){this.g.currentTime+=this.getRemainingTime()};q.pause=function(){return this.g.pause()};q.play=function(){return this.g.play()};q.getVolume=function(){return this.g.volume};q.setVolume=function(a){this.g.volume=a};q.isMuted=function(){return this.g.muted};q.isLinear=function(){return!0};q.resize=function(){};q.setMuted=function(a){this.g.muted=a};
|
|
497
|
-
q.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=this.i=null};J("shaka.ads.ServerSideAd",
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
e.j.resolve(e.F):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new
|
|
498
|
+
q.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=this.i=null};J("shaka.ads.ServerSideAd",an);an.prototype.release=an.prototype.release;an.prototype.getPositionInSequence=an.prototype.getPositionInSequence;an.prototype.getSequenceLength=an.prototype.getSequenceLength;an.prototype.setMuted=an.prototype.setMuted;
|
|
499
|
+
an.prototype.resize=an.prototype.resize;an.prototype.isLinear=an.prototype.isLinear;an.prototype.isMuted=an.prototype.isMuted;an.prototype.setVolume=an.prototype.setVolume;an.prototype.getVolume=an.prototype.getVolume;an.prototype.play=an.prototype.play;an.prototype.pause=an.prototype.pause;an.prototype.skip=an.prototype.skip;an.prototype.canSkipNow=an.prototype.canSkipNow;an.prototype.getTimeUntilSkippable=an.prototype.getTimeUntilSkippable;an.prototype.isSkippable=an.prototype.isSkippable;
|
|
500
|
+
an.prototype.isPaused=an.prototype.isPaused;an.prototype.getRemainingTime=an.prototype.getRemainingTime;an.prototype.getMinSuggestedDuration=an.prototype.getMinSuggestedDuration;an.prototype.getDuration=an.prototype.getDuration;function bn(a,b,c,d){var e=this;this.B=a;this.l=b;this.j=null;this.I=NaN;this.i=d;this.H=!1;this.C=this.m=this.A=null;this.F="";this.G=[];this.h=new rf;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.B,a);this.i(new M("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){cn(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.F.length?
|
|
501
|
+
e.j.resolve(e.F):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new an(f,e.l);e.C&&(e.m.h=e.C);e.i(new M("ad-started",(new Map).set("ad",e.m)));e.B.setAttribute("ad-active","true")});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");
|
|
501
502
|
var f=e.l.currentTime;e.A&&e.A>f&&(e.l.currentTime=e.A,e.A=null)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.C=f.getStreamData().adProgressData;e.m&&(e.m.h=e.C)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new M("ad-first-quartile"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new M("ad-midpoint"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new M("ad-third-quartile"))});
|
|
502
|
-
this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new M("ad-complete"));e.i(new M("ad-stopped"));e.B.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new M("ad-skipped"));e.i(new M("ad-stopped"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=
|
|
503
|
-
f;e.i(new M("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}
|
|
504
|
-
function
|
|
505
|
-
q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);eb.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new M("ad-stopped"));this.h=new
|
|
506
|
-
q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new O(2,10,10002);this.g&&this.g.release();this.g=new
|
|
507
|
-
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(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.0.
|
|
508
|
-
(c.H=!0),c.j=new Mc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(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.0.
|
|
503
|
+
this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new M("ad-complete"));e.i(new M("ad-stopped"));e.B.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new M("ad-skipped"));e.i(new M("ad-stopped"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=r(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.G=
|
|
504
|
+
f;e.i(new M("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}bn.prototype.stop=function(){this.F="";this.A=null;this.G=[]};bn.prototype.release=function(){this.stop();this.h&&this.h.release()};bn.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
|
|
505
|
+
function cn(a,b){a.i(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));var c=b.getStreamData().url;a.j.resolve(c);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var d=a.l.currentTime;if(0!=d){a.g.streamTimeForContentTime(d);var e=a.g.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.l.currentTime=e.start)}})};function T(){eb.call(this);this.g=this.i=null;this.h=new Sm;this.j=navigator.language}qa(T,eb);q=T.prototype;q.setLocale=function(a){this.j=a};q.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new O(2,10,1E4);this.i&&this.i.release();this.i=new Um(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
|
|
506
|
+
q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);eb.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new M("ad-stopped"));this.h=new Sm};q.requestClientSideAds=function(a){if(!this.i)throw new O(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.l.requestAds(a)};
|
|
507
|
+
q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new O(2,10,10002);this.g&&this.g.release();this.g=new bn(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
|
|
508
|
+
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(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.0.3";c=this.g;var d=b;c.j?c=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
|
|
509
|
+
(c.H=!0),c.j=new Mc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(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.0.3";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.G};
|
|
509
510
|
q.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.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)}};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};J("shaka.ads.AdManager",T);
|
|
510
511
|
T.prototype.onCueMetadataChange=T.prototype.onCueMetadataChange;T.prototype.onHlsTimedMetadata=T.prototype.onHlsTimedMetadata;T.prototype.onDashTimedMetadata=T.prototype.onDashTimedMetadata;T.prototype.getStats=T.prototype.getStats;T.prototype.getServerSideCuePoints=T.prototype.getServerSideCuePoints;T.prototype.replaceServerSideAdTagParameters=T.prototype.replaceServerSideAdTagParameters;T.prototype.requestServerSideStream=T.prototype.requestServerSideStream;T.prototype.initServerSide=T.prototype.initServerSide;
|
|
511
512
|
T.prototype.requestClientSideAds=T.prototype.requestClientSideAds;T.prototype.onAssetUnload=T.prototype.onAssetUnload;T.prototype.release=T.prototype.release;T.prototype.initClientSide=T.prototype.initClientSide;T.prototype.setLocale=T.prototype.setLocale;T.ADS_LOADED="ads-loaded";T.AD_STARTED="ad-started";T.AD_FIRST_QUARTILE="ad-first-quartile";T.AD_MIDPOINT="ad-midpoint";T.AD_THIRD_QUARTILE="ad-third-quartile";T.AD_COMPLETE="ad-complete";T.AD_STOPPED="ad-stopped";T.AD_SKIPPED="ad-skipped";
|
|
512
513
|
T.AD_VOLUME_CHANGED="ad-volume-changed";T.AD_MUTED="ad-muted";T.AD_PAUSED="ad-paused";T.AD_RESUMED="ad-resumed";T.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";T.CUEPOINTS_CHANGED="ad-cue-points-changed";T.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";T.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";T.AD_CLICKED="ad-clicked";T.AD_PROGRESS="ad-progress";T.AD_BUFFERING="ad-buffering";T.AD_IMPRESSION="ad-impression";T.AD_DURATION_CHANGED="ad-duration-changed";T.AD_CLOSED="ad-closed";
|
|
513
|
-
T.AD_LOADED="ad-loaded";T.ALL_ADS_COMPLETED="all-ads-completed";T.AD_LINEAR_CHANGED="ad-linear-changed";T.AD_METADATA="ad-metadata";T.AD_RECOVERABLE_ERROR="ad-recoverable-error";T.AD_BREAK_READY="ad-break-ready";T.AD_INTERACTION="ad-interaction";
|
|
514
|
-
TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=
|
|
515
|
-
function
|
|
516
|
-
function
|
|
517
|
-
var
|
|
518
|
-
getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},
|
|
519
|
-
|
|
520
|
-
for(m in l)
|
|
521
|
-
q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.
|
|
522
|
-
a):
|
|
523
|
-
q.cast=function(a){var b=this;return I(function(c){if(!b.m)throw new O(1,8,8E3);if(!
|
|
524
|
-
q.get=function(a,b){var c=this;if("video"==a){if(
|
|
525
|
-
q.set=function(a,b,c){this.g[a][b]=c;
|
|
526
|
-
q.
|
|
527
|
-
function
|
|
528
|
-
function
|
|
529
|
-
q.destroy=function(a){a&&this.g.
|
|
530
|
-
q.cast=function(){var a=this,b;return I(function(c){return 1==c.g?(b=
|
|
531
|
-
q.Ye=function(a){var b=this;return I(function(c){if(1==c.g){if(a==b.F)return c["return"]();b.F=a;b.g.
|
|
532
|
-
function
|
|
533
|
-
function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return
|
|
534
|
-
function
|
|
535
|
-
function
|
|
536
|
-
function
|
|
537
|
-
function
|
|
538
|
-
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 M(
|
|
539
|
-
function
|
|
540
|
-
function
|
|
541
|
-
if("setVideoContainer"==b)return function(c){return a.h.
|
|
542
|
-
J("shaka.cast.CastProxy",
|
|
543
|
-
q.
|
|
514
|
+
T.AD_LOADED="ad-loaded";T.ALL_ADS_COMPLETED="all-ads-completed";T.AD_LINEAR_CHANGED="ad-linear-changed";T.AD_METADATA="ad-metadata";T.AD_RECOVERABLE_ERROR="ad-recoverable-error";T.AD_BREAK_READY="ad-break-ready";T.AD_INTERACTION="ad-interaction";Xk=function(){return new T};function dn(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof M){var d={};for(f in c){var e=c[f];e&&"object"==typeof e?"detail"==f&&(d[f]=e):f in Event||(d[f]=e)}return d}if(c instanceof Error){var f=new Set(["name","message","stack"]);for(d in c)f.add(d);e=r(Object.getOwnPropertyNames(c));for(d=e.next();!d.done;d=e.next())f.add(d.value);e={};f=r(f);for(d=f.next();!d.done;d=f.next())d=d.value,e[d]=c[d];f={__type__:"Error",contents:e}}else if(c instanceof
|
|
515
|
+
TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=r(Vh(c)),e=d.next();!e.done;e=d.next()){e=e.value;var g=e.end;f.start.push(e.start);f.end.push(g)}else f=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return f}})}
|
|
516
|
+
function en(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=fn(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){d=c.contents;var e=Error(d.message),f;for(f in d)e[f]=d[f];d=e}else d=c;return d})}
|
|
517
|
+
function fn(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
|
|
518
|
+
var gn="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),hn="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),jn=["loop","playbackRate"],kn=["pause","play"],ln={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getConfiguration:4,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,
|
|
519
|
+
getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},mn={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},nn=[["getConfiguration","configure"]],on=[["isTextTrackVisible","setTextTrackVisibility"]],pn="addChaptersTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
|
|
520
|
+
qn=["attach","detach","load","unload"];function rn(a,b,c,d,e,f){var g=this;this.I=a;this.j=new P(b);this.P=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.N="";this.A=null;this.F=function(){return sn(g)};this.G=function(h,k){var l=en(k);switch(l.type){case "event":var m=l.targetName;l=Pa(l.event);g.B(m,l);break;case "update":m=l.update;for(var n in m){l=g.g[n]||{};for(var p in m[n])l[p]=m[n][p]}g.C&&(g.P(),g.C=!1);break;case "asyncComplete":if(n=l.id,l=l.error,p=g.i[n],delete g.i[n],p)if(l){n=new O(l.severity,l.category,l.code);
|
|
521
|
+
for(m in l)n[m]=l[m];p.reject(n)}else p.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;tn.add(this)}q=rn.prototype;q.destroy=function(){tn["delete"](this);un(this);vn&&wn(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.A=null;return Promise.resolve()};q.qa=function(){return this.h};q.yd=function(){return this.N};
|
|
522
|
+
q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.xa();var a=new chrome.cast.SessionRequest(this.I);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(tn),d=c.next();!d.done;d=c.next())xn(d.value,b)},function(b){for(var c=r(tn),d=c.next();!d.done;d=c.next())d=d.value,yn="available"==b,d.j.xa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});yn&&this.j.S(zn);(a=vn)&&a.status!=chrome.cast.SessionStatus.STOPPED?xn(this,
|
|
523
|
+
a):vn=null}else window.__onGCastApiAvailable||(window.__onGCastApiAvailable=An),window.__onGCastApiAvailable!=An&&Ta("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")};q.ye=function(a){this.A=a;this.h&&Bn(this,{type:"appData",appData:this.A})};
|
|
524
|
+
q.cast=function(a){var b=this;return I(function(c){if(!b.m)throw new O(1,8,8E3);if(!yn)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new Mc;chrome.cast.requestSession(function(d){return Cn(b,a,d)},function(d){return Dn(b,d)});return u(c,b.l,0)})};function En(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return Cn(a,b,c)},function(c){return Dn(a,c)})}}q.Zb=function(){if(this.h){un(this);if(vn){wn(this);try{vn.stop(function(){},function(){})}catch(a){}vn=null}sn(this)}};
|
|
525
|
+
q.get=function(a,b){var c=this;if("video"==a){if(kn.includes(b))return function(){return c.xf.apply(c,[a,b].concat(ia(Ha.apply(0,arguments))))}}else if("player"==a){if(mn[b]&&!this.get("player","isLive")())return function(){};if(pn.includes(b))return function(){return c.xf.apply(c,[a,b].concat(ia(Ha.apply(0,arguments))))};if(qn.includes(b))return function(){return c.Vg.apply(c,[a,b].concat(ia(Ha.apply(0,arguments))))};if(ln[b])return function(){return c.g[a][b]}}return this.g[a][b]};
|
|
526
|
+
q.set=function(a,b,c){this.g[a][b]=c;Bn(this,{type:"set",targetName:a,property:b,value:c})};function Cn(a,b,c){vn=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);sn(a);Bn(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}function Dn(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 O(2,8,c,b))}
|
|
527
|
+
q.xf=function(a,b){Bn(this,{type:"call",targetName:a,methodName:b,args:Ha.apply(2,arguments)})};q.Vg=function(a,b){var c=Ha.apply(2,arguments),d=new Mc,e=this.J.toString();this.J++;this.i[e]=d;try{Bn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function xn(a,b){var c=a.K();a.l=new Mc;a.C=!0;Cn(a,c,b)}function wn(a){var b=vn;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
|
|
528
|
+
function sn(a){var b=vn?"connected"==vn.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};un(a)}a.h=b;a.N=b?vn.receiver.friendlyName:"";a.j.xa()}function un(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function Bn(a,b){var c=dn(b),d=vn;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Wa)}catch(e){throw c=new O(2,8,8005,e),d=new M("error",(new Map).set("detail",c)),a.B("player",d),a.Zb(),c;}}var zn=.02,yn=!1,vn=null,tn=new Set;
|
|
529
|
+
function An(a){if(a){a=r(tn);for(var b=a.next();!b.done;b=a.next())b.value.init()}};function Fn(a,b,c){eb.call(this);var d=this;this.i=a;this.h=b;this.m=this.A=this.j=this.B=this.l=null;this.F=c;this.C=new Map;this.g=new rn(c,function(){return Gn(d)},function(){return Hn(d)},function(e,f){return In(d,e,f)},function(){return Jn(d)},function(){return Kn(d)});Ln(this)}qa(Fn,eb);q=Fn.prototype;
|
|
530
|
+
q.destroy=function(a){a&&this.g.Zb();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.B=this.l=this.i=null;eb.prototype.release.call(this);return Promise.all(a)};q.Bb=function(){return this.l};q.bc=function(){return this.B};q.Ue=function(){return this.g.m&&yn};q.qa=function(){return this.g.qa()};q.yd=function(){return this.g.yd()};
|
|
531
|
+
q.cast=function(){var a=this,b;return I(function(c){return 1==c.g?(b=Kn(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.Ne(),0):c["return"]()})};q.ye=function(a){this.g.ye(a)};q.Ff=function(){En(this.g)};q.Zb=function(){this.g.Zb()};
|
|
532
|
+
q.Ye=function(a){var b=this;return I(function(c){if(1==c.g){if(a==b.F)return c["return"]();b.F=a;b.g.Zb();return u(c,b.g.destroy(),2)}b.g=null;b.g=new rn(a,function(){return Gn(b)},function(){return Hn(b)},function(d,e){return In(b,d,e)},function(){return Jn(b)},function(){return Kn(b)});b.g.init();z(c)})};
|
|
533
|
+
function Ln(a){a.g.init();a.m=new rf;for(var b=r(gn),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.qa()||(f=Pa(f),a.j.dispatchEvent(f))});for(var d in Rm)a.m.o(a.h,Rm[d],function(f){a.g.qa()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.sc=e,Object.defineProperty(a.l,b.sc,{configurable:!1,enumerable:!0,get:function(f){return function(){return Mn(a,f.sc)}}(b),set:function(f){return function(g){var h=f.sc;a.g.qa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={sc:b.sc};a.B={};Nn(a,
|
|
534
|
+
function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return On(a,f)}})});Pn(a);a.j=new eb;a.j.nd=a.l;a.A=new eb;a.A.nd=a.B}function Pn(a){var b=new Map;Nn(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.C.set(c,e):a.C.set(e,c)}else b.set(d,c)})}
|
|
535
|
+
function Nn(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.h,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=r(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}}
|
|
536
|
+
function Kn(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.Vd(),startTime:null};a.i.pause();for(var c=r(jn),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=r(nn);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=r(on);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 Gn(a){var b=new M("caststatuschanged");a.dispatchEvent(b)}
|
|
537
|
+
function Hn(a){var b=new M(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
|
|
538
|
+
function Jn(a){for(var b=r(nn),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=r(jn);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=r(jn),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=r(on);for(k=
|
|
539
|
+
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 M(Nm,h);a.h.dispatchEvent(h)})}
|
|
540
|
+
function Mn(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.qa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.qa()?a.g.get("video",b):(c=a.i[b],"function"==typeof c&&(c=c.bind(a.i)),c)}
|
|
541
|
+
function On(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.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.Ec()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.fd()};
|
|
542
|
+
if("setVideoContainer"==b)return function(c){return a.h.Ge(c)};if(a.g.qa()){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.qa()&&0==Object.keys(a.g.g.video).length&&ln[b]||!a.g.qa()?a.h[b].bind(a.h):a.g.get("player",b)}function In(a,b,c){a.g.qa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}
|
|
543
|
+
J("shaka.cast.CastProxy",Fn);Fn.prototype.changeReceiverId=Fn.prototype.Ye;Fn.prototype.forceDisconnect=Fn.prototype.Zb;Fn.prototype.suggestDisconnect=Fn.prototype.Ff;Fn.prototype.setAppData=Fn.prototype.ye;Fn.prototype.cast=Fn.prototype.cast;Fn.prototype.receiverName=Fn.prototype.yd;Fn.prototype.isCasting=Fn.prototype.qa;Fn.prototype.canCast=Fn.prototype.Ue;Fn.prototype.getPlayer=Fn.prototype.bc;Fn.prototype.getVideo=Fn.prototype.Bb;Fn.prototype.destroy=Fn.prototype.destroy;function Qn(a,b,c,d){eb.call(this);var e=this;this.g=a;this.h=b;this.j=new rf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new P(function(){Rn(e)});Sn(this)}qa(Qn,eb);q=Qn.prototype;q.isConnected=function(){return this.H};q.Fg=function(){return this.A};q.eh=function(a){this.i=a};q.Uf=function(){this.i=null};
|
|
544
|
+
q.fh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.dh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.bh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
|
|
544
545
|
q.destroy=function(){var a=this,b,c;return I(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.A=!0,a.l=null,a.B=null,eb.prototype.release.call(a),u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();z(d)})};
|
|
545
|
-
function
|
|
546
|
-
e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return
|
|
547
|
-
!1
|
|
548
|
-
function
|
|
549
|
-
function
|
|
550
|
-
a.h[
|
|
551
|
-
function
|
|
552
|
-
function
|
|
553
|
-
function
|
|
554
|
-
c.methodName;"player"==d&&"load"==e&&(a.m=0,a.F=!1);var g=c.id,h=b.senderId;f=a.J[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return
|
|
555
|
-
function
|
|
556
|
-
null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||
|
|
557
|
-
function
|
|
558
|
-
J("shaka.cast.CastReceiver",
|
|
559
|
-
function
|
|
560
|
-
function
|
|
561
|
-
function
|
|
562
|
-
function
|
|
563
|
-
function
|
|
564
|
-
function
|
|
565
|
-
|
|
566
|
-
function
|
|
567
|
-
function
|
|
568
|
-
function
|
|
569
|
-
226,251,75]),m=new Uint8Array([]);k=[{initData:
|
|
570
|
-
function
|
|
571
|
-
var
|
|
546
|
+
function Sn(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return Tn(a)};b.onSenderDisconnected=function(){return Tn(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Un(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Un(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.B=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.B.onMessage=function(e){return Vn(a,
|
|
547
|
+
e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Wn(a,e)};b.start();b=r(gn);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return Xn(a,"video",e)});for(var d in Rm)a.j.o(a.h,Rm[d],function(e){return Xn(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Be(3840,2160):a.h.Be(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
|
|
548
|
+
!1;Yn(a)});a.j.o(a.g,"playing",function(){a.A=!1;Yn(a)});a.j.o(a.g,"pause",function(){Yn(a)});a.j.o(a.h,"unloading",function(){a.A=!0;Yn(a)});a.j.o(a.g,"ended",function(){(new P(function(){a.g&&a.g.ended&&(a.A=!0,Yn(a))})).S(Zn)})}function Tn(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Yn(a)}
|
|
549
|
+
function Yn(a){var b;I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c["return"]();b=new M("caststatuschanged");a.dispatchEvent(b);$n(a)||ao(a);z(c)})}
|
|
550
|
+
function bo(a,b,c){var d,e,f,g,h,k,l,m,n,p,t;I(function(w){switch(w.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,B(w,5),u(w,a.h.load(b.manifest,b.startTime),7)):u(w,Promise.resolve(),3);case 7:va(w,3);break;case 5:return g=E(w),h=Nm,k=(new Map).set("detail",g),l=new M(h,k),a.h&&a.h.dispatchEvent(l),w["return"]();case 3:if(!a.h)return w["return"]();for(m in b.video)n=b.video[m],a.g[m]=n;for(p in b.playerAfterLoad)t=b.playerAfterLoad[p],
|
|
551
|
+
a.h[p](t);a.g.autoplay=f;b.manifest&&(a.g.play(),ao(a));z(w)}})}function Xn(a,b,c){a.h&&(Rn(a),Un(a,{type:"event",targetName:b,event:c},a.l))}
|
|
552
|
+
function Rn(a){a.I.S(co);for(var b={video:{},player:{}},c=r(hn),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.T())for(var e in mn)0==a.m%mn[e]&&(b.player[e]=a.h[e]());for(var f in ln)0==a.m%ln[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;a.F&&(a.m+=1);Un(a,{type:"update",update:b},a.l);$n(a)}function $n(a){return a.C&&(a.g.duration||a.h.T())?(eo(a),a.C=!1,!0):!1}
|
|
553
|
+
function eo(a,b){var c={contentId:a.h.Vd(),streamType:a.h.T()?"LIVE":"BUFFERED",contentType:""};a.h.T()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);ao(a,void 0===b?0:b,c)}
|
|
554
|
+
function Wn(a,b){var c=en(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;bo(a,c.initState,c.appData);Rn(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.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=
|
|
555
|
+
c.methodName;"player"==d&&"load"==e&&(a.m=0,a.F=!1);var g=c.id,h=b.senderId;f=a.J[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return fo(a,h,g,null)},function(k){return fo(a,h,g,k)})}}
|
|
556
|
+
function Vn(a,b){var c=en(b.data);switch(c.type){case "PLAY":a.g.play();ao(a);break;case "PAUSE":a.g.pause();ao(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),ao(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),ao(a));break;case "STOP":a.h.Ne().then(function(){a.h&&ao(a)});break;case "GET_STATUS":eo(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
|
|
557
|
+
null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||ao(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;d=c.media;e=c.currentTime;f=a.K(d.contentId);g=c.autoplay||!0;a.G(d.customData);g&&(a.g.autoplay=!0);a.h.load(f,e).then(function(){a.h&&eo(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");Un(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:Un(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
|
|
558
|
+
function fo(a,b,c,d){a.h&&Un(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Un(a,b,c,d){a.H&&(a=dn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function ao(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?go:a.h.Jc()?ho:a.g.paused?io:jo,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Un(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
|
|
559
|
+
J("shaka.cast.CastReceiver",Qn);Qn.prototype.destroy=Qn.prototype.destroy;Qn.prototype.setContentArtist=Qn.prototype.bh;Qn.prototype.setContentImage=Qn.prototype.dh;Qn.prototype.setContentTitle=Qn.prototype.fh;Qn.prototype.clearContentMetadata=Qn.prototype.Uf;Qn.prototype.setContentMetadata=Qn.prototype.eh;Qn.prototype.isIdle=Qn.prototype.Fg;Qn.prototype.isConnected=Qn.prototype.isConnected;var co=.5,Zn=5,go="IDLE",jo="PLAYING",ho="BUFFERING",io="PAUSED";function ko(a){var b=this;this.g=[];this.h=[];this.data=[];(new vg).box("moov",zg).Y("pssh",function(c){if(!(1<c.version)){var d=Fc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(ad(c.reader.Cb(16)));if(0<c.version){d=c.reader.R();for(var e=0;e<d;e++){var f=ad(c.reader.Cb(16));b.h.push(f)}}}}).parse(a)}
|
|
560
|
+
function lo(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=Ic(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=r(c),c=b.next();!c.done;c=b.next())c=$c(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function mo(a,b){var c=no(a,b);return 1!=c.length?null:c[0]}function oo(a,b,c){a=po(a,b,c);return 1!=a.length?null:a[0]}function no(a,b){for(var c=[],d=r(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&e.tagName==b&&c.push(e);return c}function qo(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
|
|
561
|
+
function po(a,b,c){var d=[];a=r(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 ro(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function so(a,b,c){b=r(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 to(a){return Array.from(a.childNodes).every(uo)?a.textContent.trim():null}
|
|
562
|
+
function uo(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function vo(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 wo(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}
|
|
563
|
+
function xo(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
|
|
564
|
+
function yo(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 zo(a){a=Number(a);return 0===a%1?a:null}function Ao(a){a=Number(a);return 0===a%1&&0<a?a:null}function Bo(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Co(a){a=Number(a);return isNaN(a)?null:a}function Do(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
|
|
565
|
+
function Eo(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,"text/xml")}catch(e){return null}c=d.documentElement;return!c||c.getElementsByTagName("parsererror").length||d.documentElement.tagName!=b?null:c}function Fo(a,b){try{var c=Pc(a);return Eo(c,b)}catch(d){return null}};function Go(a,b,c){var d=Ho(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g["delete"](null);if(1<g.size)throw new O(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.ue?(e=h.init||e,!1):!0}),f.length&&(a=Io(e,f,c,g),0==a.length&&(a=[Db("",e)])));if(d.length&&(b||!f.length))for(a=[],b=r(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Db(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c=
|
|
566
|
+
r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{cf:g,Ni:e,drmInfos:a,hf:!0}}function Jo(a,b,c,d){var e=Go(a,c,d);if(b.hf){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.hf=!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 O(2,4,4008);return e.cf||b.cf}
|
|
567
|
+
function Ko(a){var b=0,c=Ic(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=Fc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
|
|
568
|
+
function Lo(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(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""}function Mo(a){a=oo(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=Zc(a.textContent);a=Ko(a).filter(function(b){return b.type===No})[0];if(!a)return"";a=Rc(a.value,!0);return(a=Eo(a,"WRMHEADER"))?Lo(a):""}
|
|
569
|
+
function Io(a,b,c,d){var e=[];b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.ue];if(g){var h;if(h=oo(f.node,"urn:microsoft:playready","pro")){h=Zc(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:lo(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.ue)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,
|
|
570
|
+
226,251,75]),m=new Uint8Array([]);k=[{initData:lo(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Db(g,f.init||a||h||k);if(g=Oo.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function Ho(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Po(c.value))&&b.push(c);return b}
|
|
571
|
+
function Po(a){var b=a.getAttribute("schemeIdUri"),c=ro(a,"urn:mpeg:cenc:2013","default_KID"),d=po(a,"urn:mpeg:cenc:2013","pssh").map(to);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new O(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:Zc(f),keyId:null}})}catch(f){throw new O(2,4,4007);}return{node:a,ue:b,keyId:c,init:0<e.length?e:null}}
|
|
572
|
+
var No=1,Oo=(new Map).set("com.widevine.alpha",function(a){return(a=oo(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",Mo).set("com.microsoft.playready.recommendation",Mo).set("com.microsoft.playready.software",Mo).set("com.microsoft.playready.hardware",Mo).set("org.w3.clearkey",function(a){return(a=oo(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function Qo(a,b,c,d,e){var f={RepresentationID:b,Number:c,Bandwidth:d,Time:e};return a.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(g,h,k,l){if("$$"==g)return"$";var m=f[h];if(null==m)return g;"RepresentationID"==h&&k&&(k=void 0);"Time"==h&&(m=Math.round(m));switch(l){case void 0:case "d":case "i":case "u":g=m.toString();break;case "o":g=m.toString(8);break;case "x":g=m.toString(16);break;case "X":g=m.toString(16).toUpperCase();break;default:g=m.toString()}k=
|
|
572
573
|
window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
|
|
573
|
-
function
|
|
574
|
-
|
|
575
|
-
function
|
|
576
|
-
function
|
|
577
|
-
for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;
|
|
578
|
-
function
|
|
579
|
-
function
|
|
580
|
-
function
|
|
581
|
-
d)}function
|
|
582
|
-
function
|
|
583
|
-
function
|
|
584
|
-
function
|
|
585
|
-
function
|
|
586
|
-
L=new
|
|
587
|
-
function
|
|
588
|
-
function
|
|
589
|
-
Infinity,c);f&&(f.segmentIndex=e);return{
|
|
590
|
-
function
|
|
591
|
-
function
|
|
592
|
-
|
|
593
|
-
function
|
|
594
|
-
function
|
|
595
|
-
|
|
596
|
-
function
|
|
597
|
-
function
|
|
598
|
-
function
|
|
599
|
-
|
|
600
|
-
!
|
|
601
|
-
a.l=C;z(Fa)}})}function
|
|
602
|
-
function
|
|
603
|
-
function
|
|
604
|
-
function
|
|
605
|
-
function
|
|
606
|
-
h.value,k.push(
|
|
607
|
-
C.value,A.variantIds=[
|
|
608
|
-
function
|
|
609
|
-
C.next())for(A=
|
|
610
|
-
function
|
|
611
|
-
function
|
|
612
|
-
function
|
|
613
|
-
function
|
|
614
|
-
function
|
|
615
|
-
function
|
|
616
|
-
(a.closedCaptions=new Map);c=
|
|
617
|
-
function
|
|
618
|
-
function
|
|
619
|
-
function
|
|
620
|
-
function
|
|
621
|
-
d
|
|
622
|
-
function
|
|
623
|
-
function
|
|
624
|
-
a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function
|
|
625
|
-
function
|
|
626
|
-
function
|
|
627
|
-
q.stop=function(){for(var a=
|
|
628
|
-
function
|
|
629
|
-
function
|
|
630
|
-
function
|
|
631
|
-
"timeShiftBufferDepth",
|
|
632
|
-
!isNaN(a.g.availabilityWindowOverride)&&(
|
|
633
|
-
A.
|
|
634
|
-
function
|
|
635
|
-
null;break}g=m+
|
|
636
|
-
function
|
|
637
|
-
}d=c.filter(function(m){return!m.
|
|
638
|
-
[]:
|
|
639
|
-
function
|
|
640
|
-
function
|
|
641
|
-
l}}var
|
|
642
|
-
10)));m=
|
|
643
|
-
1,null!=
|
|
644
|
-
(l=l[0],l.textContent&&(F=l.textContent));l=
|
|
645
|
-
m.value,
|
|
646
|
-
function
|
|
647
|
-
throw H;}
|
|
648
|
-
(C=l.getAttribute("value")),!C))return null;var A;l=b.L.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"))&&(A="PQ");var F=b.L.id?b.ra.id+","+b.L.id:"",G={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,L,K;return I(function(N){if(1==N.g){L=(H=F&&b.
|
|
649
|
-
(G.segmentIndex.release(),G.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:
|
|
650
|
-
hdr:A,tilesLayout:C,matchedStreams:[]};F&&b.
|
|
651
|
-
function
|
|
652
|
-
m.next())
|
|
653
|
-
"height",
|
|
654
|
-
function
|
|
655
|
-
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
|
|
656
|
-
function
|
|
657
|
-
function
|
|
658
|
-
case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),
|
|
659
|
-
case 9:
|
|
660
|
-
function
|
|
661
|
-
function
|
|
662
|
-
|
|
663
|
-
function
|
|
664
|
-
var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=
|
|
665
|
-
"EXT-X-STREAM-INF"==h.name&&(h.g.push(new
|
|
666
|
-
var
|
|
667
|
-
J("shaka.net.DataUriPlugin",
|
|
668
|
-
q.start=function(a,b){var c=this,d,e;return I(function(f){if(1==f.g)return c.
|
|
669
|
-
q.update=function(){var a=this,b,c,d;return I(function(e){if(1==e.g){if(a.m==
|
|
670
|
-
function
|
|
671
|
-
function
|
|
672
|
-
function
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
function
|
|
679
|
-
function
|
|
680
|
-
|
|
574
|
+
function Ro(a,b){var c=So(a,b,"timescale"),d=1;c&&(d=Ao(c)||1);var e=So(a,b,"duration");c=Ao(e||"");"image"==a.L.contentType&&(c=Co(e||""));c&&(c/=d);var f=So(a,b,"startNumber");e=Number(So(a,b,"presentationTimeOffset"))||0;var g=Bo(f||"");if(null==f||null==g)g=1;var h=To(a,b,"SegmentTimeline");f=null;if(h){f=d;var k=a.Z.duration||Infinity;h=no(h,"S");for(var l=[],m=-e,n=0;n<h.length;++n){var p=h[n],t=h[n+1],w=vo(p,"t",Bo),y=vo(p,"d",Bo);p=vo(p,"r",zo);null!=w&&(w-=e);if(!y)break;w=null!=w?w:m;p=
|
|
575
|
+
p||0;if(0>p)if(t){t=vo(t,"t",Bo);if(null==t)break;else if(w>=t)break;p=Math.ceil((t-w)/y)-1}else{if(Infinity==k)break;else if(w/f>=k)break;p=Math.ceil((k*f-w)/y)-1}0<l.length&&w!=m&&(l[l.length-1].end=w/f);for(t=0;t<=p;++t)m=w+y,l.push({start:w/f,end:m/f,kh:w}),w=m}f=l}return{timescale:d,wa:c,mc:g,qb:e/d||0,Oe:e,timeline:f}}function So(a,b,c){return[b(a.L),b(a.Aa),b(a.ra)].filter(Bb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
|
|
576
|
+
function To(a,b,c){return[b(a.L),b(a.Aa),b(a.ra)].filter(Bb).map(function(d){return mo(d,c)}).reduce(function(d,e){return d||e})}
|
|
577
|
+
function Uo(a,b,c,d,e,f){for(var g=ro(a,"http://www.w3.org/1999/xlink","href"),h=ro(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(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 Ue(new O(2,4,4028));if("onLoad"!=h)return Ue(new O(2,4,4027));var m=Cb([d],[g]);return e.request(0,hf(m,b)).na(function(n){n=Fo(n.data,a.tagName);if(!n)return Ue(new O(2,4,4001,g));
|
|
578
|
+
for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var p=n.childNodes[0];n.removeChild(p);a.appendChild(p)}n=r(Array.from(n.attributes));for(p=n.next();!p.done;p=n.next())a.setAttributeNode(p.value.cloneNode(!1));return Vo(a,b,c,m[0],e,f+1)})}
|
|
579
|
+
function Vo(a,b,c,d,e,f){f=void 0===f?0:f;if(ro(a,"http://www.w3.org/1999/xlink","href")){var g=Uo(a,b,c,d,e,f);c&&(g=g.na(void 0,function(){return Vo(a,b,c,d,e,f)}));return g}g=[];for(var h=r(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"==ro(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Vo(k,b,c,d,e,f)));return Ye(g).na(function(){return a})};function Wo(a,b,c,d,e,f,g){var h,k=(new vg).Y("sidx",function(l){h=Xo(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
|
|
580
|
+
function Xo(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.R();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.R();var m=g.reader.R()}else l=g.reader.lc(),m=g.reader.lc();g.reader.skip(2);var n=g.reader.oe();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.R(),t=(p&2147483648)>>>31;p&=2147483647;var w=g.reader.R();g.reader.skip(4);if(1==t)throw new O(2,3,3006);h.push(new wi(l/k+c,(l+w)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=w;a+=p}g.parser.stop();return h};function Yo(a){this.h=Ic(a);this.g=new sg(this.h,0)}Yo.prototype.Da=function(){return this.g.Da()};
|
|
581
|
+
function Zo(a){var b=$o(a);if(7<b.length)throw new O(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=$o(a);a:{d=r(ap);for(var e=d.next();!e.done;e=d.next())if(Dc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.oa();else{if(8==b.length&&b[1]&224)throw new O(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.oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.oa();d=Ic(a.h,a.g.oa(),b);a.g.skip(b);return new bp(c,
|
|
582
|
+
d)}function $o(a){var b=a.g.oa(),c=a.g.pb();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Fc(a.h,b,c)}var ap=[[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 bp(a,b){this.id=a;this.g=b}
|
|
583
|
+
function cp(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(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 dp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Yo(a.g);for(var n=null,p=null;a.Da();){var t=Zo(a);if(187==t.id){var w=ep(t);w&&(t=c*w.lh,w=b+w.Ug,null!=n&&m.push(new wi(n+g,t+g,l,p,w-1,f,g,h,k)),n=t,p=w)}}null!=n&&m.push(new wi(n+g,d+g,l,p,null,f,g,h,k));return m}
|
|
584
|
+
function ep(a){var b=new Yo(a.g);a=Zo(b);if(179!=a.id)throw new O(2,3,3013);a=cp(a);b=Zo(b);if(183!=b.id)throw new O(2,3,3012);b=new Yo(b.g);for(var c=0;b.Da();){var d=Zo(b);if(241==d.id){c=cp(d);break}}return{lh:a,Ug:c}};function fp(a,b){var c=To(a,b,"Initialization");if(!c)return null;var d=a.L.Na,e=c.getAttribute("sourceURL");e&&(d=Cb(a.L.Na,[e]));e=0;var f=null;if(c=vo(c,"range",yo))e=c.start,f=c.end;return new ui(function(){return d},e,f,gp(a))}
|
|
585
|
+
function hp(a,b){var c=Number(So(a,ip,"presentationTimeOffset"))||0,d=So(a,ip,"timescale"),e=1;d&&(e=Ao(d)||1);var f=c/e||0,g=fp(a,ip);jp(a,g);var h=af(a);return{$b:function(){var k=To(h,ip,"RepresentationIndex"),l=h.L.Na;k&&(k=k.getAttribute("sourceURL"))&&(l=Cb(h.L.Na,[k]));k=lp(h);return mp(h,b,g,l,k.start,k.end,f)}}}
|
|
586
|
+
function mp(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,w,y,x,v,D,C,A,F;return I(function(G){if(1==G.g)return h=a.presentationTimeline,k=!a.wb||!a.Z.tf,l=a.Z.start,m=a.Z.duration,n=a.L.mimeType.split("/")[1],p=b,t=null,w=[p(d,e,f),"webm"==n?p(c.Pa(),c.Sa,c.Ca):null],p=null,u(G,Promise.all(w),2);y=G.h;x=y[0];v=y[1]||null;D=null;C=l-g;A=l;F=m?l+m:Infinity;if("mp4"==n)var H=Wo(x,e,d,c,C,A,F);else{H=new Yo(v);if(440786851!=Zo(H).id)throw new O(2,3,3008);var L=Zo(H);if(408125543!=L.id)throw new O(2,3,3009);H=L.g.byteOffset;
|
|
587
|
+
L=new Yo(L.g);for(var K=null;L.Da();){var N=Zo(L);if(357149030==N.id){K=N;break}}if(!K)throw new O(2,3,3010);K=new Yo(K.g);N=1E6;for(L=null;K.Da();){var V=Zo(K);if(2807729==V.id)N=cp(V);else if(17545==V.id)if(4==V.g.byteLength)L=V.g.getFloat32(0);else if(8==V.g.byteLength)L=V.g.getFloat64(0);else throw new O(2,3,3003);}if(null==L)throw new O(2,3,3011);K=N/1E9;L*=K;N=Zo(new Yo(x));if(475249515!=N.id)throw new O(2,3,3007);H=dp(N,H,K,L,d,c,C,A,F)}D=H;h.ic(D);t=new Vi(D);k&&t.xb(A,F,!0);return G["return"](t)})}
|
|
588
|
+
function ip(a){return a.Rc}function lp(a){var b=To(a,ip,"RepresentationIndex");a=So(a,ip,"indexRange");a=yo(a||"");b&&(a=vo(b,"range",yo,a));return a}function jp(a,b){np(a,b);if(!lp(a))throw new O(2,4,4002);}function np(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Hb&&"mp4"!=c&&"webm"!=c)throw new O(2,4,4006);if("webm"==c&&!b)throw new O(2,4,4005);}
|
|
589
|
+
function gp(a){var b=a.L;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.rd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function op(a,b){var c=fp(a,pp),d=qp(a);if(!d.wa&&!d.timeline&&1<d.fc.length)throw new O(2,4,4002);if(!d.wa&&!a.Z.duration&&!d.timeline&&1==d.fc.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.ra.id&&a.L.id&&(f=b[a.ra.id+","+a.L.id])&&(e=f.segmentIndex);var g=rp(a.Z.start,a.Z.duration,a.L.Na,d,c);c=!e;e?e.hc(g,a.presentationTimeline.mb()):e=new Vi(g);a.presentationTimeline.ic(g);a.wb&&a.Z.tf||e.xb(a.Z.start,a.Z.duration?a.Z.start+a.Z.duration:
|
|
590
|
+
Infinity,c);f&&(f.segmentIndex=e);return{$b:function(){e&&0!=e.M.length||e.Lc(g);return Promise.resolve(e)}}}function pp(a){return a.Db}function qp(a){var b=sp(a);a=Ro(a,pp);var c=a.mc;0==c&&(c=1);var d=0;a.wa?d=a.wa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{wa:a.wa,startTime:d,mc:c,qb:a.qb,timeline:a.timeline,fc:b}}
|
|
591
|
+
function rp(a,b,c,d,e){var f=d.fc.length;d.timeline&&d.timeline.length!=d.fc.length&&(f=Math.min(d.timeline.length,d.fc.length));for(var g=a-d.qb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={Ld:m.Ld},n++){var p=d.fc[n];m.Ld=Cb(c,[p.Lg]);var t=void 0;t=null!=d.wa?l+d.wa:d.timeline?d.timeline[n].end:l+b;k.push(new wi(a+l,a+t,function(w){return function(){return w.Ld}}(m),p.start,p.end,e,g,a,h));l=t}return k}
|
|
592
|
+
function sp(a){return[a.L.Db,a.Aa.Db,a.ra.Db].filter(Bb).map(function(b){return no(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.qf&&(a.qf=!0);var c=b.getAttribute("media");b=vo(b,"mediaRange",yo,{start:0,end:null});return{Lg:c,start:b.start,end:b.end}})};function tp(a,b,c,d,e,f){var g=up(a),h=vp(a);wp(h);var k=af(a);if(h.Ic)return np(a,g),{$b:function(){var t=Qo(h.Ic,k.L.id,null,k.bandwidth||null,null);t=Cb(k.L.Na,[t]);return mp(k,b,g,t,0,null,h.qb)}};if(h.wa)return d||(a.presentationTimeline.ge(h.wa),a.presentationTimeline.ie(a.Z.start)),{$b:function(){return xp(k,h,e,g,f)}};var l=null;d=d=null;a.ra.id&&a.L.id&&(d=a.ra.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=yp(k,h,g);c=a.Z.start;var n=a.Z.duration?a.Z.start+a.Z.duration:Infinity,p=Infinity!=
|
|
593
|
+
n;l?(p&&(new Vi(m)).xb(c,n,!0),l.hc(m,a.presentationTimeline.mb())):l=new Vi(m);a.presentationTimeline.ic(m);p&&l.xb(c,n);d&&a.wb&&(d.segmentIndex=l);return{$b:function(){l&&0!=l.M.length||l.Lc(m);return Promise.resolve(l)}}}function zp(a){return a.Sc}function vp(a){var b=Ro(a,zp),c=So(a,zp,"media");a=So(a,zp,"index");return{wa:b.wa,timescale:b.timescale,mc:b.mc,qb:b.qb,Oe:b.Oe,timeline:b.timeline,fe:c,Ic:a}}
|
|
594
|
+
function wp(a){var b=a.Ic?1:0;b+=a.timeline?1:0;b+=a.wa?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.Ic&&(a.timeline=null),a.wa=null);if(!a.Ic&&!a.fe)throw new O(2,4,4002);}
|
|
595
|
+
function xp(a,b,c,d,e){function f(K){var N=(K-t)*p,V=N+b.qb,Y=N+l;N=Y+p;var ha=Math.min(N,h());Y=new wi(Y,ha,function(){var ja=Qo(y,v,K,x,V*w);return Cb(D,[ja])},0,null,d,C,l,h());Y.j=N;return Y}function g(){var K=[Math.max(k.mb(),l),Math.min(k.Ib(),h())].map(function(N){return N-l});return[Math.ceil(K[0]/p),Math.ceil(K[1]/p)-1].map(function(N){return N+t})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Z.start,m=a.ra.id,n=a.Z.duration,p=b.wa,t=b.mc,w=b.timescale,
|
|
596
|
+
y=b.fe,x=a.bandwidth||null,v=a.L.id,D=a.L.Na,C=l-b.qb,A=g();a=a.wb?Math.max(A[0],A[1]-c+1):A[0];A=A[1];c=[];for(var F=a;F<=A;++F){var G=f(F);c.push(G)}var H=new Vi(c);c=k.Ib()<h();F=k.T();if(c||F){var L=Math.max(a,A+1);H.Cd(p,function(){var K=k.mb();H.Gb(K);var N=r(g());N.next();N=N.next().value;for(var V=[];L<=N;){var Y=f(L);V.push(Y);L++}return K>h()&&!V.length?null:V})}return Promise.resolve(H)}
|
|
597
|
+
function yp(a,b,c){var d=a.Z.start,e=a.Z.duration,f=d-b.qb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Kd:h.Kd,Od:h.Od,Rd:h.Rd,Hd:h.Hd,Td:h.Td,Id:h.Id},k++){var l=b.timeline[k],m=l.start,n=l.kh;l=l.end;h.Rd=k+b.mc;h.Td=n+b.Oe;h.Od=a.L.id;h.Hd=a.bandwidth||null;h.Kd=b.fe;h.Id=a.L.Na;g.push(new wi(d+m,d+l,function(p){return function(){var t=Qo(p.Kd,p.Od,p.Rd,p.Hd||null,p.Td);return Cb(p.Id,[t]).map(function(w){return w.toString()})}}(h),0,null,c,f,d,e))}return g}
|
|
598
|
+
function up(a){var b=So(a,zp,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Na;return new ui(function(){var f=Qo(b,c,null,d,null);return Cb(e,[f])},0,null,gp(a))};function Ap(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}Ap.prototype.release=function(){for(var a=r(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
|
|
599
|
+
function Bp(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,D,C,A,F,G,H,L,K,N,V,Y,ha,ja,xa,La;return I(function(Fa){switch(Fa.g){case 1:d=Ib;Cp(b);Dp(b);Ep(b);Fp(b);if(!c&&1==b.length){e=b[0];a.g=e.bd;a.h=e.Ed;a.j=e.textStreams;a.i=e.imageStreams;Fa.D(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return Fa["return"]();k=b.map(function(Ra){return Ra.bd});l=b.map(function(Ra){return Ra.Ed});m=b.map(function(Ra){return Ra.textStreams});n=b.map(function(Ra){return Ra.imageStreams});
|
|
600
|
+
p=r(m);for(t=p.next();!t.done;t=p.next())w=t.value,w.push(Gp(d.ha));y=r(n);for(x=y.next();!x.done;x=y.next())v=x.value,v.push(Gp(d.xc));return u(Fa,Hp(a.g,k,f,Ip,Jp),3);case 3:return u(Fa,Hp(a.h,l,f,Ip,Jp),4);case 4:return u(Fa,Hp(a.j,m,f,Ip,Jp),5);case 5:return u(Fa,Hp(a.i,n,f,Ip,Jp),2);case 2:D=0;C=[];if(a.h.length&&a.g.length)for(K=r(a.g),N=K.next();!N.done;N=K.next())for(V=N.value,Y=r(a.h),ha=Y.next();!ha.done;ha=Y.next())ja=ha.value,xa=ig(V.drmInfos,ja.drmInfos),V.drmInfos.length&&ja.drmInfos.length&&
|
|
601
|
+
!xa.length||(La=D++,C.push({id:La,language:V.language,primary:V.primary,audio:V,video:ja,bandwidth:(V.bandwidth||0)+(ja.bandwidth||0),drmInfos:xa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(A=a.h.concat(a.g),F=r(A),G=F.next();!G.done;G=F.next())H=G.value,L=D++,C.push({id:L,language:H.language,primary:H.primary,audio:H.type==d.Fb?H:null,video:H.type==d.Ma?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
|
|
602
|
+
a.l=C;z(Fa)}})}function Cp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.bd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&dc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.bd=c}}
|
|
603
|
+
function Ep(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&dc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
|
|
604
|
+
function Dp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Ed),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&dc(e.roles,h.roles)&&yf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Ed=c}}
|
|
605
|
+
function Fp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.imageStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&(f=!0);f||c.push(e)}b.imageStreams=c}}
|
|
606
|
+
function Kp(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,D,C,A,F,G,H,L,K,N,V;return I(function(Y){switch(Y.g){case 1:b=Ib;if(1==a.length)return Y["return"](a[0]);c=a.map(function(ha){return ha.filter(function(ja){return ja.type==b.Fb})});d=a.map(function(ha){return ha.filter(function(ja){return ja.type==b.Ma})});e=a.map(function(ha){return ha.filter(function(ja){return ja.type==b.ha})});f=a.map(function(ha){return ha.filter(function(ja){return ja.type==b.xc})});g=r(e);for(h=g.next();!h.done;h=g.next())k=
|
|
607
|
+
h.value,k.push(Lp(b.ha));l=r(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(Lp(b.xc));return u(Y,Hp([],c,0,Mp,Np),2);case 2:return p=Y.h,u(Y,Hp([],d,0,Mp,Np),3);case 3:return t=Y.h,u(Y,Hp([],e,0,Mp,Np),4);case 4:return w=Y.h,u(Y,Hp([],f,0,Mp,Np),5);case 5:y=Y.h;x=0;if(t.length&&p.length)for(F=r(p),G=F.next();!G.done;G=F.next())for(H=G.value,L=r(t),K=L.next();!K.done;K=L.next())N=K.value,V=x++,N.variantIds.push(V),H.variantIds.push(V);else for(v=t.concat(p),D=r(v),C=D.next();!C.done;C=D.next())A=
|
|
608
|
+
C.value,A.variantIds=[x++];return Y["return"](t.concat(p).concat(w).concat(y))}})}
|
|
609
|
+
function Hp(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,w,y,x,v,D,C,A,F,G,H,L,K;return I(function(N){switch(N.g){case 1:f=Ib;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=r(a);l=k.next();case 2:if(l.done){N.D(4);break}m=l.value;return u(N,Op(m,b,c,e,g),5);case 5:n=N.h;if(!n)throw new O(2,4,4037);l=k.next();N.D(2);break;case 4:p=r(g);for(t=p.next();!t.done;t=p.next())for(w=t.value,y=r(w),x=y.next();!x.done;x=y.next())v=x.value,(D=Pp(v,b,d,e,g))&&a.push(D);C=r(g);for(t=C.next();!t.done;t=
|
|
610
|
+
C.next())for(A=t.value,F={},G=r(A),x=G.next();!x.done;F={ub:F.ub},x=G.next())if(F.ub=x.value,H=F.ub.type==f.ha&&!F.ub.language,L=F.ub.type==f.xc&&!F.ub.tilesLayout,!H&&!L&&(K=a.some(function(V){return function(Y){return Y.mimeType==V.ub.mimeType&&kd(Y.codecs)==kd(V.ub.codecs)}}(F))))throw new O(2,4,4037);return N["return"](a)}})}
|
|
611
|
+
function Op(a,b,c,d,e){return I(function(f){if(1==f.g)return Qp(b,a),a.matchedStreams?a.segmentIndex?u(f,Rp(a,c),2):f.D(2):f["return"](!1);Sp(a,c,d,e);return f["return"](!0)})}
|
|
612
|
+
function Rp(a,b){var c,d,e,f,g,h,k;return I(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=r(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 u(l,Promise.all(c),2)}if(a.segmentIndex instanceof Yi)for(h=0;h<d.length;h++)k=d[h],k.segmentIndex&&h>=b&&a.segmentIndex.j.push(k.segmentIndex);z(l)})}
|
|
613
|
+
function Pp(a,b,c,d,e){var f=c(a);Qp(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return I(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new Yi;return u(g,Rp(f,0),0)})});if(!f.matchedStreams)return null;Sp(f,0,d,e);return f}function Sp(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==Rb(a.language,g.language)&&(h=!1);h&&d[f]["delete"](g)}}
|
|
614
|
+
function Ip(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=r(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
|
|
615
|
+
function Mp(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
|
|
616
|
+
function Jp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set([].concat(ia(f),ia(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=ig(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new O(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
|
|
617
|
+
(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=Ip(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),Jp(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&Jp(a.trickModeVideo,b)}
|
|
618
|
+
function Np(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
|
|
619
|
+
function Qp(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:Tp,video:Tp,text:Up,image:Vp}[f.type],h={audio:Wp,video:Xp,text:Yp,image:Zp}[f.type],k=null;e=r(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return;c.push(f)}b.matchedStreams=c}function Tp(a,b){var c;if(!(c=b.mimeType!=a.mimeType||kd(b.codecs)!=kd(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<ig(c,d).length:1)}return c?!1:!0}
|
|
620
|
+
function Up(a,b){return a.language?b.language?0==Rb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function Vp(a){return a.tilesLayout?!0:!1}
|
|
621
|
+
function Wp(a,b,c){if(a.id==c.id)return!0;var d=Rb(a.language,b.language),e=Rb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
|
|
622
|
+
d=$p(a.channelsCount,b.channelsCount,c.channelsCount);if(d==aq)return!0;if(d==bq)return!1;d=$p(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==aq?!0:d==bq?!1:a.bandwidth&&cq(a.bandwidth,b.bandwidth,c.bandwidth)==aq?!0:!1}
|
|
623
|
+
function Xp(a,b,c){if(a.id==c.id)return!0;var d=$p(a.width*a.height,b.width*b.height,c.width*c.height);if(d==aq)return!0;if(d==bq)return!1;if(a.frameRate){d=$p(a.frameRate,b.frameRate,c.frameRate);if(d==aq)return!0;if(d==bq)return!1}return a.bandwidth&&cq(a.bandwidth,b.bandwidth,c.bandwidth)==aq?!0:!1}
|
|
624
|
+
function Yp(a,b,c){if(a.id==c.id)return!0;var d=Rb(a.language,b.language),e=Rb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
|
|
625
|
+
a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Zp(a,b,c){return a.id==c.id?!0:$p(a.width*a.height,b.width*b.height,c.width*c.height)==aq?!0:!1}function Lp(a){return{id:0,originalId:"",primary:!1,type:a,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
|
|
626
|
+
function Gp(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vi([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
|
|
627
|
+
function $p(a,b,c){if(b==a&&a!=c)return bq;if(c==a&&a!=b)return aq;if(b>a){if(c<=a||c-a<b-a)return aq;if(c-a>b-a)return bq}else{if(c>a)return bq;if(a-c<a-b)return aq;if(a-c>a-b)return bq}return dq}function cq(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?aq:b<a?bq:dq}var aq=1,dq=0,bq=-1;function eq(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.N={};this.j=new Ap;this.H=0;this.J=new Zb(5);this.G=new P(function(){fq(a)});this.A=new bf;this.B=null;this.K=[];this.C=Infinity;this.F=!1}q=eq.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return I(function(e){if(1==e.g)return c.F=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,gq(c),2);d=e.h;c.h&&hq(c,d);if(!c.h)throw new O(2,7,7001);return e["return"](c.i)})};
|
|
628
|
+
q.stop=function(){for(var a=r(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.G&&(this.G.stop(),this.G=null);return this.A.destroy()};q.update=function(){var a=this,b;return I(function(c){if(1==c.g)return B(c,2),u(c,gq(a),4);if(2!=c.g)return va(c,0);b=E(c);if(!a.h||!b)return c["return"]();a.h.onError(b);z(c)})};q.onExpirationUpdated=function(){};
|
|
629
|
+
function gq(a){var b,c,d,e,f,g,h;return I(function(k){if(1==k.g)return b=hf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),cf(a.A,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k["return"](0);f.uri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return u(k,iq(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k["return"](h)})}
|
|
630
|
+
function iq(a,b,c){var d,e,f,g,h;return I(function(k){if(1==k.g){d=Fo(b,"MPD");if(!d)throw new O(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k["return"](jq(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Vo(d,a.g.retryParameters,f,c,a.h.networkingEngine);cf(a.A,g);return u(k,g.promise,2)}h=k.h;return k["return"](jq(a,h,c))})}
|
|
631
|
+
function jq(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,D,C,A,F,G,H,L,K,N,V,Y,ha,ja,xa,La,Fa,Ra;return I(function(Ga){switch(Ga.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=no(b,"Location").map(to).filter(Bb);0<f.length&&(g=Cb(e,f),e=a.m=g);h=no(b,"BaseURL");k=h.map(to);l=Cb(e,k);m=0;h&&h.length&&(m=vo(h[0],"availabilityTimeOffset",Co)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=vo(b,"minBufferTime",xo)||0);a.H=vo(b,"minimumUpdatePeriod",xo,-1);t=vo(b,"availabilityStartTime",wo);w=vo(b,
|
|
632
|
+
"timeShiftBufferDepth",xo);y=a.g.dash.ignoreSuggestedPresentationDelay;x=null;y||(x=vo(b,"suggestedPresentationDelay",xo));v=a.g.dash.ignoreMaxSegmentDuration;D=null;v||(D=vo(b,"maxSegmentDuration",xo));C=b.getAttribute("type")||"static";if(a.i)for(A=a.i.presentationTimeline,F=r(Object.values(a.l)),G=F.next();!G.done;G=F.next())H=G.value,H.segmentIndex&&H.segmentIndex.Gb(A.mb());else L=a.g.defaultPresentationDelay||1.5*p,K=null!=x?x:L,A=new Q(t,K,a.g.dash.autoCorrectDrift);A.Tc("static"==C);(N=A.T())&&
|
|
633
|
+
!isNaN(a.g.availabilityWindowOverride)&&(w=a.g.availabilityWindowOverride);null==w&&(w=Infinity);A.Ee(w);V=b.getAttribute("profiles")||"";Y={wb:"static"!=C,presentationTimeline:A,ra:null,Z:null,Aa:null,L:null,bandwidth:0,qf:!1,Yb:m,profiles:V.split(",")};ha=kq(a,Y,l,b);ja=ha.duration;xa=ha.periods;"static"!=C&&ha.ef||A.bb(ja||Infinity);a.C&&!a.F&&(La=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?A.zf(a.C):a.C&&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.");
|
|
634
|
+
A.ge(D||1);return u(Ga,Bp(a.j,xa,Y.wb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Ga.D(3);break}a.i={presentationTimeline:A,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:!1};if(!A.Hf()){Ga.D(3);break}Fa=no(b,"UTCTiming");return u(Ga,lq(a,l,Fa),5);case 5:Ra=Ga.h;if(!a.h)return Ga["return"]();A.Af(Ra);case 3:a.h.makeTextStreamsForClosedCaptions(a.i),z(Ga)}})}
|
|
635
|
+
function kq(a,b,c,d){var e=vo(d,"mediaPresentationDuration",xo),f=[],g=0;d=no(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=vo(k,"start",xo,g),n=k.id,p=vo(k,"duration",xo),t=null;if(l){var w=vo(l,"start",xo);null!=w&&(t=w-m)}else null!=e&&(t=e-m);null==t&&(t=p);if(!(null!==a.B&&null!==n&&null!==m&&m<a.B)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=mq(a,b,c,{start:m,duration:t,node:k,tf:null==t||!l});f.push(g);b.ra.id&&t&&(a.N[b.ra.id]=t);if(null==t){g=
|
|
636
|
+
null;break}g=m+t}}a.K=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,ef:!1}:{periods:f,duration:g,ef:!0}}
|
|
637
|
+
function mq(a,b,c,d){b.ra=nq(d.node,null,c);b.Z=d;b.ra.Yb=b.Yb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=no(d.node,"EventStream");c=b.presentationTimeline.mb();e=r(e);for(var f=e.next();!f.done;f=e.next())oq(a,d.start,d.duration,f.value,c);c=no(d.node,"AdaptationSet").map(function(m){return pq(a,b,m)}).filter(Bb);if(b.wb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.Xg);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
|
|
638
|
+
}d=c.filter(function(m){return!m.Ke});c=c.filter(function(m){return m.Ke});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Ke.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(k.streams);for(var l=k.next();!l.done;h={Zc:h.Zc},l=k.next())h.Zc=l.value,h.Zc.trickModeVideo=e.streams.find(function(m){return function(n){return kd(m.Zc.codecs)==kd(n.codecs)}}(h))}}}e=a.g.disableAudio?[]:qq(d,"audio");g=a.g.disableVideo?[]:qq(d,"video");f=a.g.disableText?
|
|
639
|
+
[]:qq(d,Hb);c=a.g.disableThumbnails?[]:qq(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=r(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=r(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=r(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=r(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.ra.id,bd:d,Ed:e,textStreams:g,imageStreams:f}}
|
|
640
|
+
function qq(a,b){return a.filter(function(c){return c.contentType==b})}
|
|
641
|
+
function pq(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.Aa=nq(c,b.ra,null);var e=!1,f=no(c,"Role"),g=f.map(function(G){return G.getAttribute("value")}).filter(Bb),h=void 0,k=b.Aa.contentType==Hb;k&&(h="subtitle");f=r(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=
|
|
642
|
+
l}}var n;m=no(c,"EssentialProperty");f=null;l=!1;m=r(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var t=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==t?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?n=d(parseInt(p.getAttribute("value"),10)):l=!0}m=no(c,"SupplementalProperty");m=r(m);for(p=m.next();!p.done;p=m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==p.getAttribute("schemeIdUri")&&(n=d(parseInt(p.getAttribute("value"),
|
|
643
|
+
10)));m=no(c,"Accessibility");var w=new Map;m=r(m);for(p=m.next();!p.done;p=m.next())if(t=p.value,p=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=t){t=t.split(";");for(var y=r(t),x=y.next();!x.done;x=y.next()){var v=x.value,D=x=void 0;v.includes("=")?(v=v.split("="),x=v[0].startsWith("CC")?v[0]:"CC"+v[0],D=v[1]||"und"):(x="CC"+p,2==t.length?p+=2:p++,D=v);w.set(x,Lb(D))}}else w.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=
|
|
644
|
+
1,null!=t)for(t=r(t.split(";")),x=t.next();!x.done;x=t.next())x=x.value,v=y=void 0,x.includes("=")?(x=x.split("="),y="svc"+x[0],v=x[1].split(",")[0].split(":").pop()):(y="svc"+p,p++,v=x),w.set(y,Lb(v));else w.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=no(c,"ContentProtection");var C=Go(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),A=Lb(c.getAttribute("lang")||"und"),F=c.getAttribute("label");(l=no(c,"Label"))&&l.length&&
|
|
645
|
+
(l=l[0],l.textContent&&(F=l.textContent));l=no(c,"Representation");c=l.map(function(G){if(G=rq(a,b,C,h,A,F,e,g,w,G))G.hdr=G.hdr||n;return G}).filter(function(G){return!!G});if(0==c.length){f="image"==b.Aa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new O(2,4,4003);}if(!b.Aa.contentType||"application"==b.Aa.contentType)for(b.Aa.contentType=sq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.Aa.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=
|
|
646
|
+
m.value,p=r(C.drmInfos),t=p.next();!t.done;t=p.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ia(t.keyIds),ia(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(G){return G.getAttribute("id")}).filter(Bb);return{id:b.Aa.id||"__fake__"+a.I++,contentType:b.Aa.contentType,language:A,Oi:e,streams:c,drmInfos:C.drmInfos,Ke:f,Xg:k}}
|
|
647
|
+
function rq(a,b,c,d,e,f,g,h,k,l){b.L=nq(l,b.Aa,null);a.C=Math.min(a.C,b.L.Yb);if(!tq(b.L))return null;var m=b.Z.start;b.bandwidth=vo(l,"bandwidth",Ao)||0;var n=b.L.contentType,p=n==Hb||"application"==n;n="image"==n;try{var t=function(H,L,K){return uq(a,H,L,K)};if(b.L.Rc)var w=hp(b,t);else if(b.L.Db)w=op(b,a.l);else if(b.L.Sc)w=tp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var y=b.L.Na,x=b.Z.duration||0;w={$b:function(){return Promise.resolve(Xi(m,x,y))}}}}catch(H){if((p||n)&&4002==H.code)return null;
|
|
648
|
+
throw H;}t=no(l,"ContentProtection");t=Jo(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var v=!1;no(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(v=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var C;if(n&&((l=no(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
|
|
649
|
+
(C=l.getAttribute("value")),!C))return null;var A;l=b.L.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"))&&(A="PQ");var F=b.L.id?b.ra.id+","+b.L.id:"",G={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,L,K;return I(function(N){if(1==N.g){L=(H=F&&b.wb&&a.l[F])?a.l[F]:G;if(L.segmentIndex)return N.D(0);K=L;return u(N,w.$b(),3)}K.segmentIndex=N.h;z(N)})},closeSegmentIndex:function(){G.segmentIndex&&
|
|
650
|
+
(G.segmentIndex.release(),G.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:t,language:e,label:f,type:b.Aa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.L.rd,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:v,closedCaptions:k,
|
|
651
|
+
hdr:A,tilesLayout:C,matchedStreams:[]};F&&b.wb&&!a.l[F]&&(a.l[F]=G);return G}function fq(a){var b,c;I(function(d){switch(d.g){case 1:return b=0,B(d,2),u(d,gq(a),4);case 4:b=d.h;va(d,3);break;case 2:c=E(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d["return"]();hq(a,b);z(d)}})}function hq(a,b){0>a.H||a.G.S(Math.max(3,a.H-b,$b(a.J)))}
|
|
652
|
+
function nq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,rd:null,audioSamplingRate:null,Yb:0};c=c||b.Na;var d=no(a,"BaseURL"),e=d.map(to),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=vo(a,"frameRate",Do)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=no(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=r(m);for(var p=m.next();!p.done;p=
|
|
653
|
+
m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=no(a,"AudioChannelConfiguration");m=vq(m)||b.rd;p=vo(a,"audioSamplingRate",Bo)||b.audioSamplingRate;f||(f=sq(g,h));var t=mo(a,"SegmentBase"),w=mo(a,"SegmentTemplate"),y=t?vo(t,"availabilityTimeOffset",Co)||0:0,x=w?vo(w,"availabilityTimeOffset",Co)||0:0;d=d&&d.length?vo(d[0],"availabilityTimeOffset",Co)||0:0;d=b.Yb+d+y+x;return{Na:Cb(c,e),Rc:t||b.Rc,Db:mo(a,"SegmentList")||b.Db,Sc:w||b.Sc,width:vo(a,"width",Bo)||b.width,height:vo(a,
|
|
654
|
+
"height",Bo)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),rd:m,audioSamplingRate:p,Yb:d}}
|
|
655
|
+
function vq(a){a=r(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=
|
|
656
|
+
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 tq(a){var b=a.Rc?1:0;b+=a.Db?1:0;b+=a.Sc?1:0;if(0==b)return a.contentType==Hb||"application"==a.contentType?!0:!1;1!=b&&(a.Rc&&(a.Db=null),a.Sc=null);return!0}
|
|
657
|
+
function wq(a,b,c,d){var e,f,g,h,k,l;return I(function(m){if(1==m.g)return e=Cb(b,[c]),f=hf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),cf(a.A,g),u(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=Pc(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
|
|
658
|
+
function lq(a,b,c){var d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=r(d),g=f.next();case 2:if(g.done){n.D(4);break}h=g.value;B(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.D(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.D(8);
|
|
659
|
+
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.D(9);break;case 7:return u(n,wq(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return u(n,wq(a,b,l,"GET"),11);case 11:return n["return"](n.h);
|
|
660
|
+
case 9:va(n,3);break;case 5:E(n);case 3:g=f.next();n.D(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)}})}
|
|
661
|
+
function oq(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=vo(d,"timescale",Bo)||1;d=r(no(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=vo(k,"presentationTime",Bo)||0,m=vo(k,"duration",Bo)||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.h.onTimelineRegionAdded(k))}}
|
|
662
|
+
function uq(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=of,f=mj(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),cf(a.A,h),u(l,h.promise,2);k=l.h;return l["return"](k.data)})}function sq(a,b){return od(id(a,b))?Hb:a.split("/")[0]}J("shaka.dash.DashParser",eq);qg.mpd=function(){return new eq};og["application/dash+xml"]=function(){return new eq};og["video/vnd.mpeg.dash.mpd"]=function(){return new eq};function xq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function yq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}yq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
|
|
663
|
+
yq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function U(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function zq(a,b){var c=a.getAttribute(b);if(!c)throw new O(2,4,4023,b);return c.value}function Aq(a,b,c){c=void 0===c?[]:c;this.h=b;this.i=a;this.g=c}function Bq(a,b){this.name=a;this.value=b};function Cq(a,b){return a.filter(function(c){return c.name==b})}function Dq(a,b){return a.filter(function(c){return zq(c,"TYPE")==b})}function Eq(a,b){var c=Cq(a,b);return c.length?c[0]:null}function Fq(a){var b=0;b=void 0===b?0:b;return(a=Eq(a,"EXT-X-MEDIA-SEQUENCE"))?Number(a.value):b};function Gq(a){this.h=a;this.g=0}function Hq(a){Iq(a,/[ \t]+/gm)}function Iq(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function Jq(a){return a.g==a.h.length?null:(a=Iq(a,/[^ \t\n]*/gm))?a[0]:null};function Kq(){this.g=0}
|
|
664
|
+
function Lq(a,b,c){b=Pc(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new O(2,4,4015);b=0;for(var e=!0,f=r(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=Mq(a,g),--a.g,Nq.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=Mq(a,h);if(Oq.includes(h.name)){if(1!=b)throw new O(2,4,4017);
|
|
665
|
+
var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=Mq(a,m),Nq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==U(m,"TYPE")?k.push(m):"MAP"==U(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Cb([d],[m.trim()])[0],h&&g.push(h),e.push(new Aq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new Aq("",g,k)));return new xq(c,b,f,e)}f.push(h);
|
|
666
|
+
"EXT-X-STREAM-INF"==h.name&&(h.g.push(new Bq("URI",k)),e=!0)}}return new xq(c,b,f)}function Mq(a,b){var c=a.g++,d=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!d)throw new O(2,4,4016,b);var e=d[1],f=d[2];d=[];var g;if(f){f=new Gq(f);var h;(h=Iq(f,/^([^,=]+)(?:,|$)/g))&&(g=h[1]);for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;h=Iq(f,k);)d.push(new Bq(h[1],h[2]||h[3])),Hq(f)}return new yq(c,e,d,g)}
|
|
667
|
+
var Nq="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".split(" "),Oq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Pq(){}function Qq(a){try{var b=Rq(a);return We({uri:a,vf:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Ue(c)}}function Rq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(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=Zc(a):e=Uc(a);return{data:e,contentType:c}}
|
|
668
|
+
J("shaka.net.DataUriPlugin",Pq);Pq.parse=Qq;ef("data",Qq);function Sq(){var a=this;this.h=this.i=null;this.ya=1;this.A=new Map;this.C=new Map;this.ma=new Set;this.g=new Map;this.j=null;this.K="";this.$=new Kq;this.ea=0;this.U=!1;this.N=null;this.F=new P(function(){Tq(a)});this.m=Uq;this.I=null;this.aa=0;this.H=Infinity;this.X=this.ba=0;this.G=new bf;this.P=[];this.J=new Map;this.za=!1;this.B=new Map;this.ua=new Map;this.l=!1}q=Sq.prototype;q.configure=function(a){this.h=a};
|
|
669
|
+
q.start=function(a,b){var c=this,d,e;return I(function(f){if(1==f.g)return c.i=b,c.l=b.isLowLatencyMode(),u(f,Vq(c,a),2);if(3!=f.g)return d=f.h,c.K=d.uri,u(f,Wq(c,d.data,a),3);e=c.ea;0<e&&c.F.S(e);return f["return"](c.I)})};q.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.h=this.i=null;this.ma.clear();this.I=null;this.g.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
|
|
670
|
+
q.update=function(){var a=this,b,c,d;return I(function(e){if(1==e.g){if(a.m==Uq)return e["return"]();b=[];c=Array.from(a.g.values());return c.length?u(e,Xq(a,c[0]),2):e.D(2)}for(d=1;d<c.length;d++)b.push(Xq(a,c[d]));return u(e,Promise.all(b),0)})};
|
|
671
|
+
function Xq(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w;return I(function(y){if(1==y.g)return c=Yq,d=b.Mf,e=new kb(d),a.l&&b.Rf&&nb(e,new pb("_HLS_skip=YES")),u(y,Vq(a,e.toString()),2);f=y.h;g=Lq(a.$,f.data,f.uri);if(1!=g.type)throw new O(2,4,4017);h=Cq(g.g,"EXT-X-DEFINE");k=Zq(a,h);l=b.stream;m=$q(a,g,l.type,b.Kc,k);l.segmentIndex.hc(m,a.j.mb());m.length&&(n=Fq(g.g),p=b.Kc.get(n),l.segmentIndex.Gb(p));t=m[m.length-1];if(w=Eq(g.g,"EXT-X-ENDLIST"))ar(a,c.Lf),a.j.bb(t.endTime);z(y)})}q.onExpirationUpdated=function(){};
|
|
672
|
+
function br(a){if(!a.U){for(var b=-1,c=new Map,d=r(a.g.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex;if(f&&(f=f.M[0]||null))for(var g=r(e.Kc),h=g.next();!h.done;h=g.next()){h=r(h.value);var k=h.next().value;if(h.next().value==f.startTime){c.set(e,k);b=Math.max(b,k);break}}}if(!(0>b)){a.N=b;b=r(a.g.values());for(e=b.next();!e.done;e=b.next())if(d=e.value,e=d.stream.segmentIndex)f=a.N-c.get(d),e.M.splice(0,f),(e=e.M[0]||null)&&cr(d,-e.startTime);a.U=!0}}}
|
|
673
|
+
function dr(a){if(!a.U){for(var b=Infinity,c=r(a.g.values()),d=c.next();!d.done;d=c.next())if(d=d.value.stream.segmentIndex)d=d.M[0]||null,null!=d&&null!=d.g&&(b=Math.min(b,d.g));if(Infinity!=b){c=r(a.g.values());for(d=c.next();!d.done;d=c.next()){d=d.value;var e=d.stream.segmentIndex;null!=e&&(e=e.M[0]||null,null==e.g?Sa("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.Dd,"Expect AV sync issues!"):cr(d,e.g-b-e.startTime))}a.U=!0}}}
|
|
674
|
+
function cr(a,b){a.stream.segmentIndex.offset(b);a.ce+=b;for(var c=r(a.Kc),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.Kc.set(d,e+b)}}
|
|
675
|
+
function Wq(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,D,C,A,F,G,H,L,K,N,V,Y,ha,ja,xa,La,Fa,Ra,Ga,qc,Qc,Dd,Ed,qb,Fd,rc,Ee;return I(function(ab){switch(ab.g){case 1:d=Lq(a.$,b,a.K);e=Cq(d.g,"EXT-X-DEFINE");er(a,e);f=[];g=[];h=[];if(1==d.type)return F=a.h.hls.mediaPlaylistFullMimeType,G=F.split(";")[0],H=G.split("/")[0],L=md(F),K=new Map,u(ab,fr(a,d,c,c,L,H,"",!0,"Media Playlist",null,K,null,!1,!1,G),8);k=Cq(d.g,"EXT-X-MEDIA");l=Cq(d.g,"EXT-X-STREAM-INF");m=Cq(d.g,"EXT-X-IMAGE-STREAM-INF");gr(a,l);n=
|
|
676
|
+
Cq(d.g,"EXT-X-SESSION-DATA");p=r(n);for(t=p.next();!t.done;t=p.next())if(w=t.value,y=U(w,"DATA-ID"),x=U(w,"URI"),v=U(w,"LANGUAGE"),D=U(w,"VALUE"),C=(new Map).set("id",y),x&&C.set("uri",Cb([a.K],[x])[0]),v&&C.set("language",v),D&&C.set("value",D),A=new M("sessiondata",C),a.i)a.i.onEvent(A);return u(ab,hr(a,k),4);case 4:return ir(a,k),u(ab,jr(a,l),5);case 5:return f=ab.h,u(ab,kr(a,k),6);case 6:return g=ab.h,u(ab,lr(a,m),7);case 7:h=ab.h;ab.D(3);break;case 8:N=ab.h,a.g.set(c,N),f.push({id:0,language:"und",
|
|
677
|
+
primary:!0,audio:"audio"==H?N.stream:null,video:"video"==H?N.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new O(2,7,7001);a.h.hls.ignoreManifestProgramDateTime?br(a):dr(a);if(a.za&&0==f.length)throw new O(2,4,4034);V=Infinity;Y=r(a.g.values());for(ha=Y.next();!ha.done;ha=Y.next())ja=ha.value,"text"!=ja.stream.type&&(V=Math.min(V,ja.ce));a.m!=Uq?(a.j=new Q(0,a.h.defaultPresentationDelay?a.h.defaultPresentationDelay:a.X?a.X:3*a.aa),a.j.Tc(!1)):
|
|
678
|
+
(a.j=new Q(null,0),a.j.Tc(!0));mr(a);if(a.m!=Uq)a.ea=a.H,xa=Yq,a.m==xa.Se&&(La=a.j.xd,isNaN(a.h.availabilityWindowOverride)||(La=a.h.availabilityWindowOverride),a.j.Ee(La));else for(a.j.bb(V),Fa=r(a.g.values()),ha=Fa.next();!ha.done;ha=Fa.next())Ra=ha.value,Ra.stream.segmentIndex.xb(0,V);a.P=[];Ga=[];qc=r(f);for(Qc=qc.next();!Qc.done;Qc=qc.next())for(Dd=Qc.value,Ed=r([Dd.video,Dd.audio]),qb=Ed.next();!qb.done;qb=Ed.next())(Fd=qb.value)&&Ga.push(Fd);return u(ab,Promise.all(Ga.map(function(jg){return I(function(kg){return u(kg,
|
|
679
|
+
jg.createSegmentIndex(),0)})})),9);case 9:rc=r(Ga);for(qb=rc.next();!qb.done;qb=rc.next())Ee=qb.value,a.P.push(Ee.segmentIndex.M);mr(a);a.I={presentationTimeline:a.j,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.i.makeTextStreamsForClosedCaptions(a.I);z(ab)}})}function er(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=U(e,"NAME");e=U(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}
|
|
680
|
+
function Zq(a,b){for(var c=new Map,d=r(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=U(f,"NAME");var g=U(f,"VALUE");f=U(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}function gr(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=U(e,"AUDIO");d=U(e,"VIDEO");var g=U(e,"SUBTITLES");e=nr(a,e);if(g){var h=Fb(Hb,e);a.B.set(g,h);cc(e,h)}f&&(g=Eb("audio",e),a.B.set(f,g));d&&(f=Eb("video",e),a.B.set(d,f))}}
|
|
681
|
+
function kr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t;return I(function(w){if(1==w.g)return c=Dq(b,"SUBTITLES"),d=c.map(function(y){var x,v,D;return I(function(C){if(1==C.g){if(x=a.h.disableText)return C["return"](null);B(C,2);return u(C,or(a,y),4)}if(2!=C.g)return v=C.h,C["return"](v.stream);D=E(C);if(a.h.hls.ignoreTextStreamFailures)return C["return"](null);throw D;})}),u(w,Promise.all(d),2);e=w.h;f=r(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=zq(h,"GROUP-ID"),l=a.B.get(k))if(m=a.C.get(k))for(n=
|
|
682
|
+
r(m),p=n.next();!p.done;p=n.next())t=p.value,t.stream.codecs=l;return w["return"](e.filter(function(y){return y}))})}
|
|
681
683
|
function lr(a,b){var c,d;return I(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return I(function(l){if(1==l.g){if(g=a.h.disableThumbnails)return l["return"](null);B(l,2);return u(l,pr(a,f),4)}if(2!=l.g)return h=l.h,l["return"](h.stream);k=E(l);if(a.h.hls.ignoreImageStreamFailures)return l["return"](null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e["return"](d.filter(function(f){return f}))})}
|
|
682
|
-
function hr(a,b){var c;return I(function(d){
|
|
683
|
-
function jr(a,b){var c,d,e;return I(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,p,
|
|
684
|
-
void 0,A.frameRate=Number(h)||void 0,A.hdr=
|
|
685
|
-
!!L&&L.primary,audio:G,video:L,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},C.push(G),a.
|
|
686
|
-
function qr(a,b){var c,d,e,f,g,h,k,l,m,p,
|
|
687
|
-
sr(k);return
|
|
688
|
-
function sr(a){a=
|
|
689
|
-
function or(a,b){var c,d,e,f,g,h,k,l,m,p,
|
|
690
|
-
|
|
691
|
-
function pr(a,b){var c,d,e,f,g,h,k,l,m,
|
|
692
|
-
Number(k.split("x")[1])*Number(m.split("x")[1]);if(
|
|
693
|
-
function rr(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){e=ur(
|
|
694
|
-
function vr(a,b,c,d,e,f,g,h,k,l,m,
|
|
695
|
-
function fr(a,b,c,d,e,f,g,h,k,l,m,p,
|
|
696
|
-
"METHOD"),"NONE"!=Y){G=!0;if("AES-128"==Y)return a.za=!0,sc["return"](null);
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
function wr(a,b){var c=
|
|
700
|
-
function Br(a,b,c,d){c=
|
|
701
|
-
function Dr(a,b,c,d,e,f,g,h){var k=d.
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
function mr(a){if(a.
|
|
705
|
-
function
|
|
706
|
-
{
|
|
707
|
-
b=c.
|
|
708
|
-
function xr(a,b,c,d,e){var f,g,h,k,l,m,p,
|
|
709
|
-
x=
|
|
710
|
-
function Gr(a,b,c){if(!a.G)throw new O(2,7,7001);b=a.
|
|
684
|
+
function hr(a,b){var c;return I(function(d){b=b.filter(function(e){var f=U(e,"URI")||"";return"SUBTITLES"!=U(e,"TYPE")&&""!=f});c=b.map(function(e){return or(a,e)});return u(d,Promise.all(c),0)})}
|
|
685
|
+
function jr(a,b){var c,d,e;return I(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,t,w;return I(function(y){if(1==y.g)return h=U(g,"FRAME-RATE"),k=Number(U(g,"AVERAGE-BANDWIDTH"))||Number(zq(g,"BANDWIDTH")),l=U(g,"RESOLUTION"),m=r(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,t=U(g,"VIDEO-RANGE"),u(y,qr(a,g),2);if(w=y.h){for(var x=y["return"],v=w.audio,D=w.video,C=r(D),A=C.next();!A.done;A=C.next())if(A=A.value.stream)A.width=Number(n)||void 0,A.height=Number(p)||
|
|
686
|
+
void 0,A.frameRate=Number(h)||void 0,A.hdr=t||void 0;C=a.h.disableAudio;if(!v.length||C)v=[null];C=a.h.disableVideo;if(!D.length||C)D=[null];C=[];v=r(v);for(A=v.next();!A.done;A=v.next()){A=A.value;for(var F=r(D),G=F.next();!G.done;G=F.next()){var H=G.value;G=A?A.stream:null;var L=H?H.stream:null,K=A?A.stream.drmInfos:null,N=H?H.stream.drmInfos:null;H=(H?H.Dd:"")+" - "+(A?A.Dd:"");G&&L&&K.length&&N.length&&!(0<ig(K,N).length)||a.ma.has(H)||(G={id:a.ya++,language:G?G.language:"und",primary:!!G&&G.primary||
|
|
687
|
+
!!L&&L.primary,audio:G,video:L,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},C.push(G),a.ma.add(H))}}y=x.call(y,C)}else y=y["return"]([]);return y})}),u(f,Promise.all(c),2);d=f.h;e=d.reduce(zb,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
|
|
688
|
+
function qr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){if(1==x.g)return c=Ib,d=nr(a,b),e=U(b,"AUDIO"),f=U(b,"VIDEO"),h=(g=e||f)&&a.C.has(g)?a.C.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=zq(b,"URI"),p=k.audio.find(function(v){return v&&v.Dd==n}),t=Fb(c.Ma,d),(w=Fb(c.Fb,d))&&!t?l=c.Fb:!h.length&&w&&t?(l=c.Ma,d=[[t,w].join()]):k.audio.length&&p?(l=c.Fb,m=!0):l=k.video.length?c.Fb:c.Ma,m?x.D(2):u(x,rr(a,b,d,l),3);2!=x.g&&(y=x.h);if(y)k[y.stream.type]=[y];else if(null===y)return x["return"](null);
|
|
689
|
+
sr(k);return x["return"](k)})}function nr(a,b){var c=[];a.h.disableVideo||c.push(a.h.hls.defaultVideoCodec);a.h.disableAudio||c.push(a.h.hls.defaultAudioCodec);var d=U(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=ld(f)[0];c.has(g)||(e.push(f),c.add(g))}return e}function tr(a){a=U(a,"LANGUAGE")||"und";return Lb(a)}
|
|
690
|
+
function sr(a){a=r(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}function ir(a,b){var c=Dq(b,"CLOSED-CAPTIONS");c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=tr(e);var f=zq(e,"GROUP-ID");e=zq(e,"INSTREAM-ID");a.J.get(f)||a.J.set(f,new Map);a.J.get(f).set(e,d)}}
|
|
691
|
+
function or(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){if(1==x.g){c=zq(b,"GROUP-ID");d="";var v=zq(b,"TYPE").toLowerCase();"subtitles"==v&&(v=Hb);e=v;e!=Hb&&c&&a.B.has(c)&&(d=a.B.get(c));f=ur(zq(b,"URI"),a.A);if(a.g.has(f))return x["return"](a.g.get(f));g=tr(b);h=U(b,"NAME");k=U(b,"DEFAULT");l="YES"==k;"audio"==e?v=(v=U(b,"CHANNELS"))?parseInt(v.split("/")[0],10):null:v=null;m=v;"audio"==e?v=(v=U(b,"CHANNELS"))?v.includes("/JOC"):!1:v=!1;n=v;p=U(b,"CHARACTERISTICS");t=U(b,"FORCED");
|
|
692
|
+
w="YES"==t;return u(x,vr(a,f,d,e,g,l,h,m,null,p,w,n),2)}y=x.h;a.C.has(c)?a.C.get(c).push(y):a.C.set(c,[y]);if(null==y)return x["return"](null);if(a.g.has(f))return x["return"](a.g.get(f));a.g.set(f,y);return x["return"](y)})}
|
|
693
|
+
function pr(a,b){var c,d,e,f,g,h,k,l,m,n;return I(function(p){if(1==p.g){c=ur(zq(b,"URI"),a.A);d=U(b,"CODECS","jpeg")||"";if(a.g.has(c))return p["return"](a.g.get(c));e=tr(b);f=U(b,"NAME");g=U(b,"CHARACTERISTICS");return u(p,vr(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=p.h;if(null==h)return p["return"](null);if(a.g.has(c))return p["return"](a.g.get(c));if(k=U(b,"RESOLUTION"))if(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=
|
|
694
|
+
Number(k.split("x")[1])*Number(m.split("x")[1]);if(n=U(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.g.set(c,h);return p["return"](h)})}
|
|
695
|
+
function rr(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){e=ur(zq(b,"URI"),a.A);if(a.g.has(e))return k["return"](a.g.get(e));var l=U(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.J.get(l):null;g=Eb(d,c);return u(k,vr(a,e,g,d,"und",!1,null,null,f,null,!1,!1),2)}h=k.h;if(null==h)return k["return"](null);if(a.g.has(e))return k["return"](a.g.get(e));a.g.set(e,h);return k["return"](h)})}
|
|
696
|
+
function vr(a,b,c,d,e,f,g,h,k,l,m,n){var p,t,w;return I(function(y){if(1==y.g)return p=Cb([a.K],[b])[0],u(y,Vq(a,p),2);t=y.h;p=t.uri;w=Lq(a.$,t.data,p);return y["return"](fr(a,w,b,p,c,d,e,f,g,h,k,l,m,n))})}
|
|
697
|
+
function fr(a,b,c,d,e,f,g,h,k,l,m,n,p,t,w){var y,x,v,D,C,A,F,G,H,L,K,N,V,Y,ha,ja,xa,La,Fa,Ra,Ga,qc,Qc,Dd,Ed,qb,Fd,rc,Ee,ab,jg,kg;return I(function(sc){if(1==sc.g){if(1!=b.type)throw new O(2,4,4017);y=Cq(b.g,"EXT-X-DEFINE");x=Zq(a,y);wr(a,b);return w?sc.D(2):u(sc,xr(a,f,e,b,x),3)}2!=sc.g&&(w=sc.h);v=[];if(b.segments)for(D=r(b.segments),C=D.next();!C.done;C=D.next())A=C.value,F=Cq(A.h,"EXT-X-KEY"),v.push.apply(v,ia(F));G=!1;H=[];L=new Set;K=r(v);for(N=K.next();!N.done;N=K.next())if(V=N.value,Y=zq(V,
|
|
698
|
+
"METHOD"),"NONE"!=Y){G=!0;if("AES-128"==Y)return a.za=!0,sc["return"](null);ha=zq(V,"KEYFORMAT");if(xa=(ja=yr[ha])?ja(V,w):null){if(xa.keyIds)for(La=r(xa.keyIds),Fa=La.next();!Fa.done;Fa=La.next())Ra=Fa.value,L.add(Ra);H.push(xa)}}if(G&&!H.length)throw new O(2,4,4026);ti.includes(w)&&(e="");Ga=new Map;try{qc=$q(a,b,f,Ga,x)}catch(kp){if(4035==kp.code)return Ta("Skipping unsupported HLS stream",w,c),sc["return"](null);throw kp;}Qc=qc[qc.length-1].endTime;Dd=new Vi(qc);Ed=f==Hb?"subtitle":void 0;qb=
|
|
699
|
+
[];if(n)for(Fd=r(n.split(",")),rc=Fd.next();!rc.done;rc=Fd.next())Ee=rc.value,qb.push(Ee);jg=(ab=Eq(b.g,"EXT-X-SERVER-CONTROL"))?null!=ab.getAttribute("CAN-SKIP-UNTIL"):!1;kg={id:a.ya++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Dd,mimeType:w,codecs:e,kind:Ed,encrypted:G,drmInfos:H,keyIds:L,language:g,label:k,type:f,primary:h,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:qb,
|
|
700
|
+
forced:p,channelsCount:l,audioSamplingRate:null,spatialAudio:t,closedCaptions:m,hdr:void 0,tilesLayout:void 0};return sc["return"]({stream:kg,Dd:c,Mf:d,ce:Qc,Kc:Ga,Rf:jg})})}
|
|
701
|
+
function wr(a,b){var c=Eq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Eq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)ar(a,Uq);else{c?ar(a,zr):ar(a,Ar);d=Eq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Eq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ba=Number(zq(c,"PART-TARGET")),a.H=Math.min(a.ba,a.H),c=Eq(b.g,"EXT-X-SERVER-CONTROL"),a.X=c?Number(zq(c,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.aa=Math.max(d,a.aa)}}
|
|
702
|
+
function Br(a,b,c,d){c=Eq(c,"EXT-X-MAP");if(!c)return null;var e=zq(c,"URI");d=ur(Cb([b],[e])[0],d);b=[d,U(c,"BYTERANGE","")].join("-");a.ua.has(b)||(c=Cr(d,c),a.ua.set(b,c));return a.ua.get(b)}function Cr(a,b){var c=0,d=null,e=U(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new ui(function(){return[a]},c,d)}
|
|
703
|
+
function Dr(a,b,c,d,e,f,g,h){var k=d.h,l=ur(d.i,f),m=Eq(k,"EXTINF"),n=f=0,p=null;d.g.length&&!a.l&&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 t=null;if(!a.h.hls.ignoreManifestProgramDateTime){var w=Eq(k,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(t=wo(w.value))}w=xi;Eq(k,"EXT-X-GAP")&&(w=2);if(!m){if(0==d.g.length)throw new O(2,4,4024,"EXTINF");
|
|
704
|
+
if(!a.l)return null}var y=[];if(a.l)for(var x={},v=0;v<d.g.length;x={Md:x.Md},v++){var D=d.g[v],C=0==v?c:y[y.length-1],A=0==v?e:C.endTime,F=Number(U(D,"DURATION"))||a.ba;if(F){F=A+F;var G=0,H=null;"EXT-X-PRELOAD-HINT"==D.name?G=(C=U(D,"BYTERANGE-START"))?Number(C):0:(G=U(D,"BYTERANGE"),C=r(Er(C,G)),G=C.next().value,H=C.next().value);if(D=U(D,"URI"))x.Md=Cb([g],[D])[0],y.push(new wi(A,F,function(L){return function(){return[L.Md]}}(x),G,H,b,0,0,Infinity))}}m?f=e+Number(m.value.split(",")[0]):f=y[y.length-
|
|
705
|
+
1].endTime;(a=Eq(k,"EXT-X-BYTERANGE"))?(p=r(Er(c,a.value)),n=p.next().value,p=p.next().value):y.length&&(n=y[0].Sa,p=y[y.length-1].Ca);c="";a=null;"image"==h&&(c="1x1",h=Eq(k,"EXT-X-TILES"))&&(c=zq(h,"LAYOUT"),(h=U(h,"DURATION"))&&(a=Number(h)));return new wi(e,f,function(){return l.length?[l]:[]},n,p,b,0,0,Infinity,y,c,a,t,w)}function Er(a,b){var c=0,d=null;b&&(c=b.split("@"),d=Number(c[0]),c=c[1]?Number(c[1]):a.Ca+1,d=c+d-1);return[c,d]}
|
|
706
|
+
function mr(a){if(a.j){for(var b=r(a.P),c=b.next();!c.done;c=b.next())a.j.ic(c.value);a.P=[]}}
|
|
707
|
+
function $q(a,b,c,d,e){var f=b.segments,g=Fq(b.g),h=Eq(b.g,"EXT-X-SKIP");h=h?Number(U(h,"SKIPPED-SEGMENTS")):0;var k=g+h,l=0;a.m!=Uq&&d.has(k)&&(l=d.get(k));for(var m=[],n=null,p=0;p<f.length;p++){var t=f[p],w=0==p?l:n.endTime;k=g+h+p;d.set(k,w);var y=Br(a,b.h,t.h,e);!a.l&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.l=a.i.isLowLatencyMode());(n=y=Dr(a,y,n,t,w,e,b.h,c))&&(a.h.hls.ignoreManifestProgramDateTime&&null!=a.N&&k<a.N||m.push(y))}if(a=m.some(function(x){return null!=x.g}))for(b=
|
|
708
|
+
{},c=0;c<m.length;b={rc:b.rc,qc:b.qc,Uc:b.Uc,rb:b.rb,pc:b.pc},c++)if(b.rb=m[c],null==b.rb.g)for(b.qc=0,b.rc=c,d=function(x){return function(){var v=m[x.rc];if(v){if(null!=v.g)return v.g+x.qc;x.qc-=v.endTime-v.startTime;x.rc+=1}return null}}(b),b.pc=0,b.Uc=c,e=function(x){return function(){var v=m[x.Uc];if(v){v!=x.rb&&(x.pc+=v.endTime-v.startTime);if(null!=v.g)return v.g+x.pc;--x.Uc}return null}}(b);null==b.rb.g;)b.rb.g=e(),null==b.rb.g&&(b.rb.g=d());if(a)for(a=r(m),b=a.next();!b.done;b=a.next())for(c=
|
|
709
|
+
b.value,b=c.g,c=r(c.h),d=c.next();!d.done;d=c.next())d=d.value,d.g=b,b+=d.endTime-d.startTime;return m}function ur(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new O(2,4,4039,f);}}return c}
|
|
710
|
+
function xr(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,w,y,x;return I(function(v){if(1==v.g){f=Ib;g=of;h=Math.trunc((d.segments.length-1)/2);k=ur(d.segments[h].i,e);l=new kb(k);m=l.Ka.split(".").pop();n=Fr[b];if(p=n[m])return v["return"](p);if(b==f.ha){if("vtt"==c||"wvtt"==c)return v["return"]("text/vtt");if(c&&""!==c)return v["return"]("application/mp4")}if(b==f.xc&&(!c||"jpeg"==c))return v["return"]("image/jpeg");t=hf([k],a.h.retryParameters);t.method="HEAD";return u(v,Gr(a,t,g),2)}w=v.h;y=w.headers["content-type"];
|
|
711
|
+
if(!y){if(b==f.ha)return v["return"]("text/vtt");x=n.mp4;return v["return"](x)}return v["return"](y.split(";")[0])})}function Vq(a,b){var c=hf([b],a.h.retryParameters);a.i.modifyManifestRequest(c,{format:"h"});return Gr(a,c,0)}function Tq(a){var b,c;I(function(d){if(1==d.g){if(!a.i)return d["return"]();B(d,2);return u(d,a.update(),4)}if(2!=d.g)return b=a.ea,a.F.S(b),va(d,0);c=E(d);if(!a.i)return d["return"]();c.severity=1;a.i.onError(c);a.F.S(.1);z(d)})}
|
|
712
|
+
function ar(a,b){a.m=b;a.j&&a.j.Tc(a.m==Uq);a.m!=Uq||a.F.stop()}function Gr(a,b,c){if(!a.G)throw new O(2,7,7001);b=a.i.networkingEngine.request(c,b);cf(a.G,b);return b.promise}J("shaka.hls.HlsParser",Sq);
|
|
711
713
|
var Fr={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",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},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"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"},
|
|
712
|
-
image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},yr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);return Db("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=
|
|
713
|
-
if(a=U(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=
|
|
714
|
-
Bd("Tizen 3")||Bd("Tizen 2")||Bd("Web0S")&&Bd("Chrome/38.0.2125.122 Safari/537.36")||(
|
|
715
|
-
function Mr(a,b,c,d,e,f,g){var h,k,l,m,p,
|
|
716
|
-
break}return u(K,g(H.value),5);case 5:L=Date.now();if(100<L-
|
|
717
|
-
function Qr(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}J("shaka.net.HttpFetchPlugin",Ir);Ir.isSupported=Qr;Ir.parse=Jr;var Nr=window.fetch,Lr=window.AbortController,Or=window.ReadableStream,Kr=window.Headers;Qr()&&(
|
|
718
|
-
function Sr(a,b,c,d,e){var f=new Tr,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 O(1,1,7001,a,c))};var
|
|
719
|
-
c))};f.ontimeout=function(){m(new O(1,1,1003,a,c))};f.onprogress=function(
|
|
720
|
-
function Ur(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=
|
|
721
|
-
function cs(a,b,c,d,e,f){
|
|
722
|
-
function ds(a,b){var c,d,e,f;return I(function(g){if(1==g.g)return c=
|
|
723
|
-
function gs(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return I(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return u(g,b(f.key,f.value,f),2)}f["continue"]();z(g)})}})}fs.prototype.store=function(){return this.h};fs.prototype.promise=function(){return this.g};function hs(a){this.h=a;this.g=[]}hs.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function is(a,b){return js(a,b,"readwrite")}function js(a,b,c){c=a.h.transaction([b],c);var d=new fs(c,b);a.g.push(d);d.promise().then(function(){
|
|
714
|
+
image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},yr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);return Db("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=zq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=zq(a,"URI");b=Rq(b);b=Fc(b.data);b=Db("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);
|
|
715
|
+
if(a=U(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=zq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=zq(a,"URI");a=Rq(a);a=Fc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=lo(a,b,new Set,0);return Db("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},Uq="VOD",Ar="EVENT",zr="LIVE",Yq={Lf:Uq,Gh:Ar,Se:zr};
|
|
716
|
+
Bd("Tizen 3")||Bd("Tizen 2")||Bd("Web0S")&&Bd("Chrome/38.0.2125.122 Safari/537.36")||(qg.m3u8=function(){return new Sq},og["application/x-mpegurl"]=function(){return new Sq},og["application/vnd.apple.mpegurl"]=function(){return new Sq});function Hr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,vf:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Tc(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Ir(){}function Jr(a,b,c,d,e){var f=new Kr;wf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Lr,h={We:!1,Gf:!1};a=Mr(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 Te(a,function(){h.We=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.Gf=!0;g.abort()});k.S(b/1E3);a["finally"](function(){k.stop()})}return a}
|
|
717
|
+
function Mr(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,w,y,x,v,D,C;return I(function(A){switch(A.g){case 1:return h=Nr,k=Or,p=n=0,t=Date.now(),B(A,2),u(A,h(a,c),4);case 4:return l=A.h,f(Pr(l.headers)),w=l.clone().body.getReader(),x=(y=l.headers.get("Content-Length"))?parseInt(y,10):0,v=function(F){function G(){var H,L;return I(function(K){switch(K.g){case 1:return B(K,2),u(K,w.read(),4);case 4:H=K.h;va(K,3);break;case 2:return E(K),K["return"]();case 3:if(H.done){K.D(5);break}n+=H.value.byteLength;if(!g){K.D(5);
|
|
718
|
+
break}return u(K,g(H.value),5);case 5:L=Date.now();if(100<L-t||H.done)e(L-t,n-p,x-n),p=n,t=L;H.done?F.close():(F.enqueue(H.value),G());z(K)}})}G()},new k({start:v}),u(A,l.arrayBuffer(),5);case 5:m=A.h;va(A,3);break;case 2:D=E(A);if(d.We)throw new O(1,1,7001,a,b);if(d.Gf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,D,b);case 3:return C=Pr(l.headers),A["return"](Hr(C,m,l.status,a,l.url,b))}})}function Pr(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
|
|
719
|
+
function Qr(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}J("shaka.net.HttpFetchPlugin",Ir);Ir.isSupported=Qr;Ir.parse=Jr;var Nr=window.fetch,Lr=window.AbortController,Or=window.ReadableStream,Kr=window.Headers;Qr()&&(ef("http",Jr,2,!0),ef("https",Jr,2,!0),ef("blob",Jr,2,!0));function Rr(){}
|
|
720
|
+
function Sr(a,b,c,d,e){var f=new Tr,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 O(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var t=Ur(f);e(t);n=!0}};f.onload=function(){var t=Ur(f),w=f.response;try{var y=Hr(t,w,f.status,a,f.responseURL,c);l(y)}catch(x){m(x)}};f.onerror=function(t){m(new O(1,1,1002,a,t,
|
|
721
|
+
c))};f.ontimeout=function(){m(new O(1,1,1003,a,c))};f.onprogress=function(t){var w=Date.now();if(100<w-g||t.lengthComputable&&t.loaded==t.total)d(w-g,t.loaded-h,t.total-t.loaded),h=t.loaded,g=w};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new Te(k,function(){f.abort();return Promise.resolve()})}
|
|
722
|
+
function Ur(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=r(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}J("shaka.net.HttpXHRPlugin",Rr);Rr.parse=Sr;var Tr=window.XMLHttpRequest;ef("http",Sr,1,!0);ef("https",Sr,1,!0);ef("blob",Sr,1,!0);function Vr(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Wr(a){return a.Pa().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Sa+":"+a.Ca}function Xr(a,b){return mj(a.g.Pa(),a.g.Sa,a.g.Ca,b.streaming.retryParameters)};function Yr(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Zr(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Yr.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 $r(a){var b=this;this.A=a;this.j=new Map;this.i=new pf(function(){return as(b)["catch"](function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Yr}$r.prototype.destroy=function(){return this.i.destroy()};function bs(a,b,c){a.m=b;a.l=c}function as(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
|
|
723
|
+
function cs(a,b,c,d,e,f){qf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,t;return I(function(w){if(1==w.g)return u(w,ds(a,c),2);h=w.h;if(a.i.g)throw new O(2,9,7001);if(e)for(m in k=Fc(h),l=new ko(k),l.data)n=Number(m),p=l.data[n],t=l.g[n],a.l(p,t);a.g.close(d,h.byteLength);var y=a.g;a.m(0==y.i?0:y.j/y.i,a.g.h);return w["return"](f(h))})});a.j.set(b,g)}function es(a){return I(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b["return"](a.g.h)})}
|
|
724
|
+
function ds(a,b){var c,d,e,f;return I(function(g){if(1==g.g)return c=of,d=a.A.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;cc(a.h,e);return g["return"](f.data)})};function fs(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Mc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}fs.prototype.abort=function(){var a=this;return I(function(b){if(1==b.g){try{a.i.abort()}catch(c){}B(b,2);return u(b,a.g,4)}if(2!=b.g)return va(b,0);E(b);z(b)})};
|
|
725
|
+
function gs(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return I(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return u(g,b(f.key,f.value,f),2)}f["continue"]();z(g)})}})}fs.prototype.store=function(){return this.h};fs.prototype.promise=function(){return this.g};function hs(a){this.h=a;this.g=[]}hs.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function is(a,b){return js(a,b,"readwrite")}function js(a,b,c){c=a.h.transaction([b],c);var d=new fs(c,b);a.g.push(d);d.promise().then(function(){cc(a.g,d)},function(){cc(a.g,d)});return d};function ks(a,b,c){this.h=new hs(a);this.i=b;this.g=c}q=ks.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return ls(this.i)};q.removeSegments=function(a,b){return ms(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,ns(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.Ze(e)}))})};q.addManifests=function(){return ls(this.g)};
|
|
724
726
|
q.updateManifest=function(){return Promise.reject(new O(2,9,9016,"Cannot modify values in "+this.g))};function os(a,b,c){a=is(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}q.updateManifestExpiration=function(a,b){var c=is(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()};q.removeManifests=function(a,b){return ms(this,this.g,a,b)};
|
|
725
|
-
q.getManifests=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,ns(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.
|
|
726
|
-
function ls(a){return Promise.reject(new O(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=is(c.h,a);e=d.store();f=[];g={};h=
|
|
727
|
-
function ms(a,b,c,d){a=is(a.h,b);b=a.store();var e={};c=
|
|
728
|
-
function ns(a,b,c){var d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=js(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=
|
|
729
|
-
ps.prototype.remove=function(a){var b=this,c;return I(function(d){return 1==d.g?(c=is(b.g,"session-ids"),u(d,gs(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):u(d,c.promise(),0)})};function qs(){this.g=new Map}qs.prototype.destroy=function(){for(var a=[],b=
|
|
730
|
-
function ss(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{
|
|
727
|
+
q.getManifests=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,ns(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.Ac(e)})))})};q.getAllManifests=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=js(a.h,a.g,"readonly"),c=new Map,u(d,gs(b,function(e,f){var g;return I(function(h){if(1==h.g)return u(h,a.Ac(f),2);g=h.h;c.set(e,g);z(h)})}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};q.Ze=function(a){return a};q.Ac=function(a){return Promise.resolve(a)};
|
|
728
|
+
function ls(a){return Promise.reject(new O(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=is(c.h,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={Yc:g.Yc},k=h.next())l=k.value,g.Yc=e.add(l),g.Yc.onsuccess=function(n){return function(){f.push(n.Yc.result)}}(g);return u(m,d.promise(),2)}return m["return"](f)})};
|
|
729
|
+
function ms(a,b,c,d){a=is(a.h,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={Xc:e.Xc},f=c.next())e.Xc=f.value,b["delete"](e.Xc).onsuccess=function(g){return function(){return d(g.Xc)}}(e);return a.promise()}
|
|
730
|
+
function ns(a,b,c){var d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=js(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={wc:h.wc,tc:h.tc},l=k.next())h.tc=l.value,h.wc=e.get(h.tc),h.wc.onsuccess=function(n){return function(){void 0==n.wc.result&&g.push(n.tc);f[n.tc]=n.wc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new O(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function ps(a){this.g=new hs(a)}ps.prototype.destroy=function(){return this.g.destroy()};ps.prototype.getAll=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=js(a.g,"session-ids","readonly"),c=[],u(d,gs(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};ps.prototype.add=function(a){var b=is(this.g,"session-ids"),c=b.store();a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
|
|
731
|
+
ps.prototype.remove=function(a){var b=this,c;return I(function(d){return 1==d.g?(c=is(b.g,"session-ids"),u(d,gs(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):u(d,c.promise(),0)})};function qs(){this.g=new Map}qs.prototype.destroy=function(){for(var a=[],b=r(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};qs.prototype.init=function(){var a=this;rs.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=r(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
|
|
732
|
+
function ss(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ra:d,Ba:f},Ba:e})})});if(b)return b;throw new O(2,9,9013,"Could not find a cell that supports add-operations");}function ts(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ra:d,Ba:f},e)})})}
|
|
731
733
|
function us(a,b,c){a=a.g.get(b);if(!a)throw new O(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new O(2,9,9013,"Could not find cell with name "+c);return b}function vs(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function ws(a){var b=Array.from(a.g.keys());if(!b.length)throw new O(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
|
|
732
|
-
function xs(a){var b,c,d;return I(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=rs,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function ys(a,b){rs.set(a,b)}J("shaka.offline.StorageMuxer",qs);qs.unregister=function(a){rs["delete"](a)};qs.register=ys;qs.prototype.destroy=qs.prototype.destroy;var rs=new Map;function zs(){ks.apply(this,arguments)}
|
|
733
|
-
zs.prototype.
|
|
734
|
-
function As(a,b){Bs(a);for(var c=
|
|
734
|
+
function xs(a){var b,c,d;return I(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=rs,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function ys(a,b){rs.set(a,b)}J("shaka.offline.StorageMuxer",qs);qs.unregister=function(a){rs["delete"](a)};qs.register=ys;qs.prototype.destroy=qs.prototype.destroy;var rs=new Map;function zs(){ks.apply(this,arguments)}qa(zs,ks);zs.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return I(function(g){d=is(c.h,c.g);e=d.store();f=new Mc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new O(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
|
|
735
|
+
zs.prototype.Ac=function(a){var b,c,d,e,f,g;return I(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=As(a.periods[c],e),b.push(f);return u(h,Kp(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})})};
|
|
736
|
+
function As(a,b){Bs(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return Cs(e,a.startTime,b)})}
|
|
735
737
|
function Cs(a,b,c){var d=a.initSegmentUri?Ds(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:a.kind,language:a.language,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=Ds(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
|
|
736
738
|
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}}zs.prototype.Ze=function(a){return{data:a.data}};function Ds(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 O(2,9,9004,"Could not parse uri "+a);}
|
|
737
|
-
function Bs(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=
|
|
738
|
-
f=
|
|
739
|
-
Es.prototype.
|
|
739
|
+
function Bs(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=r(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=r(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=r(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
|
|
740
|
+
f=r(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=r(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=r(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function Es(){ks.apply(this,arguments)}qa(Es,ks);
|
|
741
|
+
Es.prototype.Ac=function(a){var b,c,d,e,f,g;return I(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=r(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(Fs(n,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,Kp(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
|
|
740
742
|
a.expiration?Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
|
|
741
743
|
function Fs(a,b,c){return{id:a.id,originalId:a.originalId,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,kind:a.kind,language:a.language,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,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,
|
|
742
|
-
dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function Gs(){ks.apply(this,arguments)}
|
|
744
|
+
dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function Gs(){ks.apply(this,arguments)}qa(Gs,ks);q=Gs.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.i,a)};q.addManifests=function(a){return this.add(this.g,a)};q.updateManifest=function(a,b){return os(this,a,b)};q.Ac=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function Hs(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=Hs.prototype;
|
|
743
745
|
q.init=function(){var a=this,b=new Mc,c=window.indexedDB.open("shaka_offline_db",5);c.onsuccess=function(){var d=c.result;a.l=d;var e=d.objectStoreNames;e=e.contains("manifest")&&e.contains("segment")?new zs(d,"segment","manifest"):null;a.g=e;e=d.objectStoreNames;e=e.contains("manifest-v2")&&e.contains("segment-v2")?new Es(d,"segment-v2","manifest-v2"):null;a.h=e;e=d.objectStoreNames;e=e.contains("manifest-v3")&&e.contains("segment-v3")?new Es(d,"segment-v3","manifest-v3"):null;a.i=e;e=d.objectStoreNames;
|
|
744
|
-
e=e.contains("manifest-v5")&&e.contains("segment-v5")?new Gs(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new ps(d):null;a.m=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=
|
|
746
|
+
e=e.contains("manifest-v5")&&e.contains("segment-v5")?new Gs(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new ps(d):null;a.m=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=r(["segment-v5","manifest-v5","session-ids"]),f=e.next();!f.done;f=e.next())f=f.value,d.objectStoreNames.contains(f)||d.createObjectStore(f,{autoIncrement:!0})};c.onerror=function(d){b.reject(new O(2,9,9001,c.error));d.preventDefault()};return b};
|
|
745
747
|
q.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:if(!a.m){b.D(10);break}return u(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),z(b)}})};
|
|
746
748
|
q.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};q.getEmeSessionCell=function(){return this.m};
|
|
747
749
|
q.erase=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,Is(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
|
|
748
|
-
function Is(){var a=new Mc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new O(2,9,9001,b.error));c.preventDefault()};return a}ys("idb",function(){return
|
|
750
|
+
function Is(){var a=new Mc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new O(2,9,9001,b.error));c.preventDefault()};return a}ys("idb",function(){return Gd()||Ad()||!window.indexedDB?null:new Hs});function Js(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}Js.prototype.Ra=function(){return this.i};Js.prototype.Ba=function(){return this.h};Js.prototype.key=function(){return this.l};Js.prototype.toString=function(){return this.j};
|
|
749
751
|
function Ks(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 Js(b,c,d,Number(a[4])):null};function Ls(a,b){this.h=a;this.g=b}
|
|
750
|
-
function Ms(a,b){var c=new Q(null,0);c.
|
|
752
|
+
function Ms(a,b){var c=new Q(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=Ns(a,d,e,c);e=b.streams.filter(function(l){return l.type==Hb}).map(function(l){return Os(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Os(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=r(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
|
|
751
753
|
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}}
|
|
752
|
-
function Ns(a,b,c,d){for(var e=new Set,f=
|
|
753
|
-
e.value,g=Os(a,e,d),h=
|
|
754
|
-
function Os(a,b,c){var d=b.segments.map(function(e){return Ps(a,e)});c.
|
|
755
|
-
roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function Ps(a,b){var c=new Js("segment",a.h,a.g,b.dataKey);return new
|
|
756
|
-
function Qs(a,b){var c=new Js("segment",a.h,a.g,b);return new
|
|
757
|
-
q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:d=Ks(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new qs;
|
|
758
|
-
q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return d=c.g,e=new qs,B(m,2,3),u(m,e.init(),5);case 5:return u(m,us(e,d.
|
|
759
|
-
|
|
760
|
-
function Us(a,b){var c=new qs;return
|
|
761
|
-
function Xs(a,b,c){var d,e;return I(function(f){switch(f.g){case 1:return d=new
|
|
762
|
-
9);case 9:return f["return"]([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return I(function(h){if(1==h.g)return B(h,2),u(h,
|
|
763
|
-
function Ws(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&
|
|
764
|
-
function Zs(a){var b=[],c=
|
|
765
|
-
case 4:b.h=null,b.g=null,z(k)}})})}function ft(){if(xd())a:{var a=
|
|
766
|
-
q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new $r(this.g);this.j.push(f);b=gt(this,a,b||{},function(){var g;return I(function(h){if(1==h.g)return u(h,
|
|
767
|
-
function gt(a,b,c,d,e,f){var g,h,k,l,m,p,
|
|
768
|
-
|
|
769
|
-
function ot(a,b,c,d,e,f,g,h,k){var l,m,p,
|
|
770
|
-
return u(
|
|
771
|
-
E(C),D=Object.values(l),u(C,g.removeSegments(D,function(){}),10);case 10:throw
|
|
772
|
-
function tt(a,b,c,d,e,f){var g,h,k,l,m,p,
|
|
773
|
-
(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(
|
|
774
|
-
function mt(a,b){var c,d,e,f,g,h,k,l,m,p,
|
|
775
|
-
|
|
776
|
-
for(F=
|
|
777
|
-
function nt(a,b,c,d,e,f){var g=Ys(c,b,d),h=e.offline.progressCallback;bs(f,function(
|
|
778
|
-
n&&p
|
|
779
|
-
function st(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 qt(a,b,c,d){b.expiration=c.
|
|
780
|
-
function yt(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:it();c=Ks(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new qs;
|
|
781
|
-
function Bt(a,b){for(var c=[],d=
|
|
782
|
-
function At(a,b,c){function d(){}var e=Dt(c);$s(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.
|
|
783
|
-
function Et(a){var b,c,d,e,f,g,h,k,l,m;return I(function(
|
|
784
|
-
q.list=function(){return xt(this,Ft())};function Ft(){var a,b,c;return I(function(d){switch(d.g){case 1:return it(),a=[],b=new qs,
|
|
754
|
+
function Ns(a,b,c,d){for(var e=new Set,f=r(b),g=f.next();!g.done;g=f.next()){var h=r(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=r(c);for(g=f.next();!g.done;g=f.next())for(h=r(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=r(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=r(b);for(e=b.next();!e.done;e=b.next())for(e=
|
|
755
|
+
e.value,g=Os(a,e,d),h=r(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=r(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Os(a,e,d),g=r(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}
|
|
756
|
+
function Os(a,b,c){var d=b.segments.map(function(e){return Ps(a,e)});c.ic(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vi(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,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,
|
|
757
|
+
roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function Ps(a,b){var c=new Js("segment",a.h,a.g,b.dataKey);return new wi(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?Qs(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
|
|
758
|
+
function Qs(a,b){var c=new Js("segment",a.h,a.g,b);return new ui(function(){return[c.toString()]},0,null)};function Rs(){this.g=null}q=Rs.prototype;q.configure=function(){};
|
|
759
|
+
q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:d=Ks(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new qs;ua(m);return u(m,e.init(),4);case 4:return u(m,us(e,d.Ra(),d.Ba()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new Ls(d.Ra(),d.Ba()),l=Ms(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return wa(m),u(m,e.destroy(),7);case 7:ya(m,0)}})};q.stop=function(){return Promise.resolve()};
|
|
760
|
+
q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return d=c.g,e=new qs,B(m,2,3),u(m,e.init(),5);case 5:return u(m,us(e,d.Ra(),d.Ba()),6);case 6:return f=m.h,u(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.D(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return wa(m),u(m,e.destroy(),10);case 10:ya(m,0);break;case 2:E(m),m.D(3)}})};
|
|
761
|
+
og["application/x-offline-manifest"]=function(){return new Rs};function Ss(){}function Ts(a){var b=Ks(a);b&&"manifest"==b.g?(a={uri:a,vf:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=We(a)):a=b&&"segment"==b.g?Us(b.key(),b):Ue(new O(2,1,9004,a));return a}
|
|
762
|
+
function Us(a,b){var c=new qs;return We(void 0).na(function(){return c.init()}).na(function(){return us(c,b.Ra(),b.Ba())}).na(function(d){return d.getSegments([b.key()])}).na(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}J("shaka.offline.OfflineScheme",Ss);Ss.plugin=Ts;ef("offline",Ts);function Vs(a,b,c){var d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:d=[];for(var m=[],n=r(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var t=!1,w=r(m),y=w.next();!y.done;y=w.next())if(y=y.value,Ws(y.info,p)){y.sessionIds.push(p.sessionId);t=!0;break}t||m.push({info:p,sessionIds:[p.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Xs(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l["return"](d)}})}
|
|
763
|
+
function Xs(a,b,c){var d,e;return I(function(f){switch(f.g){case 1:return d=new zf({Ob:b,onError:function(){},ud:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),B(f,2),d.configure(a),u(f,Hf(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 E(f),u(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return B(f,6),u(f,Sf(d),8);case 8:va(f,7);break;case 6:return E(f),u(f,d.destroy(),
|
|
764
|
+
9);case 9:return f["return"]([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return I(function(h){if(1==h.g)return B(h,2),u(h,Tf(d,g),4);if(2!=h.g)return e.push(g),va(h,0);E(h);z(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f["return"](e)}})}
|
|
765
|
+
function Ws(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&dc(a.audioCapabilities,b.audioCapabilities,c)&&dc(a.videoCapabilities,b.videoCapabilities,c)};function Ys(a,b,c){var d=b.presentationTimeline.getDuration();b=Zs(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function $s(a,b){var c=Ms(new Ls(a.Ra(),a.Ba()),b),d=b.appMetadata||{};c=Zs(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}}
|
|
766
|
+
function Zs(a){var b=[],c=ve(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.next())b.push(me(d.value));a=r(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(ne(c.value));return b};function at(){this.g={}}function bt(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 ct(a,b){a.g[b.id]=b.bandwidth||2048}function dt(a,b){var c=a.g[b];null==c&&(c=0);return c};function et(a){var b=this;if(a&&a.constructor!=S)throw new O(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Ec()):(this.h=Kk(),this.g=new df);this.i=[];this.j=[];var c=!a;this.l=new pf(function(){var d,e,f,g,h;return I(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return as(l)})),2);case 2:d=function(){};e=[];f=r(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return u(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return u(k,b.g.destroy(),4);
|
|
767
|
+
case 4:b.h=null,b.g=null,z(k)}})})}function ft(){if(xd())a:{var a=r(rs.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}q=et.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Hk(a,b));return Mk(this.h,a)};q.getConfiguration=function(){var a=Kk();Mk(a,this.h,Kk());return a};q.Ec=function(){return this.g};
|
|
768
|
+
q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new $r(this.g);this.j.push(f);b=gt(this,a,b||{},function(){var g;return I(function(h){if(1==h.g)return u(h,ng(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h["return"](g())})},e,f);b=new Te(b,function(){return as(f)});b["finally"](function(){cc(d.j,f)});return ht(this,b)};
|
|
769
|
+
function gt(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,w,y,x,v,D,C;return I(function(A){switch(A.g){case 1:return it(),h=g=null,k=new qs,n=m=l=null,B(A,2,3),u(A,d(),5);case 5:return g=A.h,u(A,jt(a,b,g,e),6);case 6:p=A.h;kt(a);t=!p.presentationTimeline.T()&&!p.presentationTimeline.Lb();if(!t)throw new O(2,9,9005,b);return u(A,lt(a,p,function(F){n=n||F},e),7);case 7:h=A.h;kt(a);if(n)throw n;return u(A,mt(p,e),8);case 8:return u(A,k.init(),9);case 9:return kt(a),u(A,ss(k),10);case 10:return l=A.h,kt(a),w=nt(h,
|
|
770
|
+
p,b,c,e,f),y=w.Ig,x=w.Ie,u(A,l.Ba.addManifests([y]),11);case 11:v=A.h;kt(a);m=v[0];kt(a);if(n)throw n;return u(A,ot(a,x,m,y,f,e,l.Ba,p,h),12);case 12:return kt(a),D=new Js("manifest",l.path.Ra,l.path.Ba,m),A["return"]($s(D,y));case 3:return wa(A),u(A,k.destroy(),13);case 13:if(!g){A.D(14);break}return u(A,g.stop(),14);case 14:if(!h){A.D(16);break}return u(A,h.destroy(),16);case 16:ya(A,0);break;case 2:C=E(A);if(null==m){A.D(18);break}return u(A,pt(m),18);case 18:throw n||C;}})}
|
|
771
|
+
function ot(a,b,c,d,e,f,g,h,k){var l,m,n,p,t,w,y,x,v,D;return I(function(C){switch(C.g){case 1:l={};m=0;n=function(A,F){var G,H,L,K,N,V,Y;return I(function(ha){if(1==ha.g){G={};H=r(A);for(L=H.next();!L.done;G={Eb:G.Eb},L=H.next())G.Eb=L.value,K=Xr(G.Eb,f),N=G.Eb.i,V=G.Eb.h,Y=function(ja){return function(xa){var La,Fa,Ra;return I(function(Ga){if(1==Ga.g)return u(Ga,g.addSegments([{data:xa}]),2);La=Ga.h;kt(a);Fa=ja.Eb.g;Ra=Wr(Fa);l[Ra]=La[0];m+=xa.byteLength;z(Ga)})}}(G),cs(e,G.Eb.groupId,K,N,V,Y);
|
|
772
|
+
return u(ha,es(e),2)}if(!F)return ha.D(0);kt(a);qt(h,d,k,f);return u(ha,g.updateManifest(c,d),0)})};p=!1;B(C,2);if(!rt(h)||!p||st(h)){C.D(4);break}return u(C,n(b.filter(function(A){return A.h}),!0),5);case 5:return kt(a),b=b.filter(function(A){return!A.h}),t=l,w=m,l={},m=0,u(C,tt(g,c,d,t,w,function(){return kt(a)}),6);case 6:kt(a);case 4:if(p){C.D(7);break}return u(C,n(b,!1),8);case 8:return kt(a),y=l,x=m,l={},m=0,u(C,tt(g,c,d,y,x,function(){return kt(a)}),9);case 9:kt(a);case 7:va(C,0);break;case 2:return v=
|
|
773
|
+
E(C),D=Object.values(l),u(C,g.removeSegments(D,function(){}),10);case 10:throw v;}})}function pt(a){var b,c,d,e;return I(function(f){switch(f.g){case 1:return b=new qs,u(f,b.init(),2);case 2:return u(f,ss(b),3);case 3:return c=f.h,d=new Js("manifest",c.path.Ra,c.path.Ba,a),u(f,b.destroy(),4);case 4:return e=new et,u(f,e.remove(d.toString()),0)}})}
|
|
774
|
+
function tt(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,w,y,x;return I(function(v){switch(v.g){case 1:g=!1;B(v,2);h=!0;k=r(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=r(m.segments),p=n.next();!p.done;p=n.next())t=p.value,w=t.pendingSegmentRefId?d[t.pendingSegmentRefId]:null,null!=w&&(t.dataKey=w,t.pendingSegmentRefId=void 0),w=t.pendingInitSegmentRefId?d[t.pendingInitSegmentRefId]:null,null!=w&&(t.initSegmentKey=w,t.pendingInitSegmentRefId=void 0),t.pendingSegmentRefId&&(h=!1),t.pendingInitSegmentRefId&&
|
|
775
|
+
(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(v,a.updateManifest(b,c),4);case 4:g=!0;f();va(v,0);break;case 2:return y=E(v),u(v,pt(b),5);case 5:if(g){v.D(6);break}x=Object.values(d);return u(v,a.removeSegments(x,function(){}),6);case 6:throw y;}})}
|
|
776
|
+
function mt(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,D,C,A,F,G,H,L,K,N,V,Y,ha,ja;return I(function(xa){switch(xa.g){case 1:return c={width:Infinity,height:Infinity},Xd(a,b.restrictions,c),u(xa,$d(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Ld(a,g,h,e,f);k=r(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(me(m));n=r(a.textStreams);for(p=n.next();!p.done;p=n.next())t=
|
|
777
|
+
p.value,d.push(ne(t));w=r(a.imageStreams);for(y=w.next();!y.done;y=w.next())x=y.value,d.push(oe(x));return u(xa,b.offline.trackSelectionCallback(d),3);case 3:v=xa.h;D=a.presentationTimeline.getDuration();C=0;A=r(v);for(F=A.next();!F.done;F=A.next())G=F.value,H=G.bandwidth*D/8,C+=H;B(xa,4);return u(xa,b.offline.downloadSizeCallback(C),6);case 6:L=xa.h;if(!L)throw new O(2,9,9014);va(xa,5);break;case 4:K=E(xa);if(K instanceof O)throw K;throw new O(2,9,9015);case 5:N=new Set;V=new Set;Y=new Set;ha=r(v);
|
|
778
|
+
for(F=ha.next();!F.done;F=ha.next())ja=F.value,"variant"==ja.type&&N.add(ja.id),"text"==ja.type&&V.add(ja.id),"image"==ja.type&&Y.add(ja.id);a.variants=a.variants.filter(function(La){return N.has(La.id)});a.textStreams=a.textStreams.filter(function(La){return V.has(La.id)});a.imageStreams=a.imageStreams.filter(function(La){return Y.has(La.id)});ut(a);z(xa)}})}
|
|
779
|
+
function nt(a,b,c,d,e,f){var g=Ys(c,b,d),h=e.offline.progressCallback;bs(f,function(t,w){g.size=w;h(g,t)},function(t,w){k&&e.offline.usePersistentLicense&&l==w&&Pf(a,"cenc",t)});var k=rt(b)&&!st(b),l=null;k&&(l=vt.get(a.g.keySystem));for(var m=new at,n=r(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=r(b.imageStreams);for(p=n.next();!p.done;p=n.next())ct(m,p.value);p=r(b.variants);for(n=p.next();!n.done;n=p.next())bt(m,n.value);m=wt(f,m,b,e);f=m.streams;m=m.Ie;p=a.g;n=e.offline.usePersistentLicense;
|
|
780
|
+
p&&n&&(p.initData=[]);return{Ig:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Dc(),streams:f,sessionIds:n?Xf(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Ie:m}}function rt(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
|
|
781
|
+
function st(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 qt(a,b,c,d){b.expiration=c.Dc();c=Xf(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(rt(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}q.remove=function(a){return xt(this,yt(this,a))};
|
|
782
|
+
function yt(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:it();c=Ks(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new qs;ua(k);return u(k,e.init(),4);case 4:return u(k,us(e,d.Ra(),d.Ba()),5);case 5:return f=k.h,u(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],u(k,Promise.all([zt(a,h,e),At(f,d,h)]),2);case 2:return wa(k),u(k,e.destroy(),8);case 8:ya(k,0)}})}
|
|
783
|
+
function Bt(a,b){for(var c=[],d=r(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:id(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:id(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function zt(a,b,c){return I(function(d){return u(d,Ct(a.g,a.h.drm,c,b),0)})}
|
|
784
|
+
function At(a,b,c){function d(){}var e=Dt(c);$s(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.Wg=function(){return xt(this,Et(this))};
|
|
785
|
+
function Et(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return it(),b=a.g,c=a.h.drm,d=new qs,e=!1,ua(n),u(n,d.init(),4);case 4:f=[],vs(d,function(p){return f.push(p)}),g=r(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return u(n,k.getAll(),8);case 8:return l=n.h,u(n,Vs(c,b,l),9);case 9:return m=n.h,u(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return wa(n),u(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n["return"](!e)}})}
|
|
786
|
+
q.list=function(){return xt(this,Ft())};function Ft(){var a,b,c;return I(function(d){switch(d.g){case 1:return it(),a=[],b=new qs,ua(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),ts(b,function(e,f){c=c.then(function(){var g;return I(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=$s(new Js("manifest",e.Ra,e.Ba,l),k);a.push(m)});z(h)})})}),u(d,c,2);case 2:return wa(d),u(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d["return"](a)}})}
|
|
785
787
|
function jt(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},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(){}},c.configure(d.manifest),kt(a),u(l,c.start(b,
|
|
786
|
-
g),2);if(3!=l.g)return h=l.h,kt(a),k=Gt(h),u(l,Promise.all(fb(k,function(m){return m.createSegmentIndex()})),3);kt(a);if(e)throw e;return l["return"](h)})}function lt(a,b,c,d){var e;return I(function(f){switch(f.g){case 1:return e=new
|
|
787
|
-
function wt(a,b,c,d){var e=new Map,f=Gt(c),g=new Map;f=
|
|
788
|
+
g),2);if(3!=l.g)return h=l.h,kt(a),k=Gt(h),u(l,Promise.all(fb(k,function(m){return m.createSegmentIndex()})),3);kt(a);if(e)throw e;return l["return"](h)})}function lt(a,b,c,d){var e;return I(function(f){switch(f.g){case 1:return e=new zf({Ob:a.g,onError:c,ud:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,Ef(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,Sf(e),3);case 3:return u(f,Rf(e),4);case 4:return f["return"](e)}})}
|
|
789
|
+
function wt(a,b,c,d){var e=new Map,f=Gt(c),g=new Map;f=r(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=Ht(a,b,c,h,d,e);g.set(h.id,k)}a=r(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()),Ie:Array.from(e.values())}}
|
|
788
790
|
function Ht(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,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,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,
|
|
789
|
-
tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;It(d,c.presentationTimeline.
|
|
790
|
-
tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function It(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 kt(a){if(a.l.g)throw new O(2,9,7001);}function it(){if(!ft())throw new O(2,9,9E3);}function xt(a,b){return I(function(c){if(1==c.g)return a.i.push(b),
|
|
791
|
-
function ht(a,b){var c=b.promise;a.i.push(c);return b["finally"](function(){
|
|
791
|
+
tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;It(d,c.presentationTimeline.mb(),function(l){var m=Wr(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=dt(b,d.id)*p;p=Zr(a.g,p);f.set(m,new Vr(l,p,k,!1))}l.i&&(n=Wr(l.i),f.has(n)||(p=.5*dt(b,d.id),p=Zr(a.g,p),f.set(n,new Vr(l.i,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,
|
|
792
|
+
tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function It(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 kt(a){if(a.l.g)throw new O(2,9,7001);}function it(){if(!ft())throw new O(2,9,9E3);}function xt(a,b){return I(function(c){if(1==c.g)return a.i.push(b),ua(c),u(c,b,4);if(2!=c.g)return c["return"](c.h);wa(c);cc(a.i,b);return ya(c,0)})}
|
|
793
|
+
function ht(a,b){var c=b.promise;a.i.push(c);return b["finally"](function(){cc(a.i,c)})}function Dt(a){var b=new Set;a=r(a.streams);for(var c=a.next();!c.done;c=a.next()){c=r(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)}
|
|
792
794
|
function Ct(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=ws(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Bt(d,!1),videoCapabilities:Bt(d,!0)}});return u(h,Vs(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
|
|
793
|
-
function Gt(a){for(var b=new Set,c=
|
|
794
|
-
function ut(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=
|
|
795
|
-
et.prototype.removeEmeSessions=et.prototype.
|
|
795
|
+
function Gt(a){for(var b=new Set,c=r(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=r(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=r(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}
|
|
796
|
+
function ut(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=r(b),d=c.next();!d.done;d=c.next()){d=r(b);for(var e=d.next();!e.done;e=d.next());}b=r(a);for(c=b.next();!c.done;c=b.next())for(c=r(a),d=c.next();!d.done;d=c.next());}J("shaka.offline.Storage",et);et.deleteAll=function(){var a;return I(function(b){return 1==b.g?(a=new qs,ua(b),u(b,xs(a),2)):5!=b.g?(wa(b),u(b,a.destroy(),5)):ya(b,0)})};et.prototype.list=et.prototype.list;
|
|
797
|
+
et.prototype.removeEmeSessions=et.prototype.Wg;et.prototype.remove=et.prototype.remove;et.prototype.store=et.prototype.store;et.prototype.getNetworkingEngine=et.prototype.Ec;et.prototype.getConfiguration=et.prototype.getConfiguration;et.prototype.configure=et.prototype.configure;et.prototype.destroy=et.prototype.destroy;et.support=ft;
|
|
796
798
|
var vt=(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");
|
|
797
|
-
|
|
799
|
+
Qm.offline=ft;function Jt(){}function Kt(){for(var a=r(Lt),b=a.next();!b.done;b=a.next()){b=b.value;try{b.Qf()}catch(c){Ta("Error installing polyfill!",c)}}}function Mt(a,b){for(var c={priority:b||0,Qf:a},d=0;d<Lt.length;d++)if(Lt[d].priority<c.priority){Lt.splice(d,0,c);return}Lt.push(c)}J("shaka.polyfill",Jt);Jt.register=Mt;Jt.installAll=Kt;var Lt=[];function Nt(){}function Ot(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())Pt(b.value)}function Pt(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)}})}Jt.Aria=Nt;Nt.install=Ot;Mt(Ot);function Qt(){}function Rt(){St()}Jt.EncryptionScheme=Qt;Qt.install=Rt;Mt(Rt,-2);function Tt(){}
|
|
798
800
|
function Ut(){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}}),
|
|
799
801
|
Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Vt);document.addEventListener("webkitfullscreenerror",Vt);document.addEventListener("mozfullscreenchange",Vt);document.addEventListener("mozfullscreenerror",Vt);document.addEventListener("MSFullscreenChange",Vt);document.addEventListener("MSFullscreenError",Vt)}}
|
|
800
|
-
function Vt(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)}Jt.Fullscreen=Tt;Tt.install=Ut;Mt(Ut);function Wt(){}function Xt(){var a=!0;if(
|
|
801
|
-
function Zt(a){var b,c,d,e,f,g,h,k,l,m,p,
|
|
802
|
-
l=yd(k),!l))return
|
|
803
|
-
|
|
804
|
-
function cu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,
|
|
802
|
+
function Vt(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)}Jt.Fullscreen=Tt;Tt.install=Ut;Mt(Ut);function Wt(){}function Xt(){var a=!0;if(Hd()||Bd("PlayStation 5")||Gd())a=!1;Gd()&&Bd("Android")&&(a=!0);a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Yt=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Zt)}
|
|
803
|
+
function Zt(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,w,y,x;return I(function(v){switch(v.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return v["return"](b);if("media-source"==a.type){if(!xd()||a.video&&(c=a.video.contentType,d=MediaSource.isTypeSupported(c),!d)||a.audio&&(e=a.audio.contentType,f=MediaSource.isTypeSupported(e),!f))return v["return"](b)}else if("file"==a.type){if(a.video&&(g=a.video.contentType,h=yd(g),!h)||a.audio&&(k=a.audio.contentType,
|
|
804
|
+
l=yd(k),!l))return v["return"](b)}else return v["return"](b);if(!a.keySystemConfiguration)return b.supported=!0,v["return"](Promise.resolve(b));m=a.keySystemConfiguration;n=[];p=[];m.audio&&(t={robustness:m.audio.robustness||"",contentType:a.audio.contentType},n.push(t));m.video&&(w={robustness:m.video.robustness||"",contentType:a.video.contentType},p.push(w));y={initDataTypes:[m.initDataType],distinctiveIdentifier:m.distinctiveIdentifier,persistentState:m.persistentState,sessionTypes:m.sessionTypes};
|
|
805
|
+
n.length&&(y.audioCapabilities=n);p.length&&(y.videoCapabilities=p);B(v,3);return u(v,navigator.requestMediaKeySystemAccess(m.keySystem,[y]),5);case 5:x=v.h;va(v,4);break;case 3:E(v);case 4:x&&(b.supported=!0,b.keySystemAccess=x);case 2:return v["return"](b)}})}Jt.MediaCapabilities=Wt;Wt.install=Xt;var Yt=null;Wt.originalMcap=Yt;Mt(Xt,-1);function $t(){}function au(){var a=Id();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?bu():a?12>=a?(cu(),du()):cu():(Bd("Tizen 2")||Bd("Tizen 3")||Bd("Tizen 4"))&&eu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&fu()}
|
|
806
|
+
function cu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ha.apply(0,arguments));b.abort=function(){};return b}}function du(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function eu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=ld(b)[0]&&a(b)}}
|
|
805
807
|
function bu(){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)}}
|
|
806
808
|
function fu(){var a=MediaSource.isTypeSupported;Bd("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)})}Jt.MediaSource=$t;$t.install=au;Mt(au);function gu(){}function hu(){screen.orientation||void 0!=window.orientation&&iu()}function iu(){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 ju;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new M("change");b.dispatchEvent(c)})}Jt.Orientation=gu;
|
|
807
|
-
gu.install=hu;function ju(){eb.call(this);this.type="";this.angle=0}
|
|
809
|
+
gu.install=hu;function ju(){eb.call(this);this.type="";this.angle=0}qa(ju,eb);
|
|
808
810
|
ju.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)};
|
|
809
811
|
ju.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};Mt(hu);function ku(){}function lu(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=mu,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=nu,window.MediaKeys=ou,window.MediaKeySystemAccess=pu,window.shakaMediaKeysPolyfill=!0)}function mu(){return Promise.reject(Error("The key system specified is not supported."))}
|
|
810
812
|
function nu(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Jt.PatchedMediaKeysNop=ku;ku.install=lu;function ou(){throw new TypeError("Illegal constructor.");}ou.prototype.createSession=function(){};ou.prototype.setServerCertificate=function(){};function pu(){this.keySystem="";throw new TypeError("Illegal constructor.");}pu.prototype.getConfiguration=function(){};pu.prototype.createMediaKeys=function(){};Mt(lu,-10);function qu(){}
|
|
811
813
|
function ru(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)su="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=tu;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=uu;window.MediaKeys=vu;window.MediaKeySystemAccess=wu;window.shakaMediaKeysPolyfill=!0}}
|
|
812
814
|
function xu(a){var b=su;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function tu(a,b){try{var c=new wu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function uu(a){var b=this.mediaKeys;b&&b!=a&&yu(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&yu(a,this);return Promise.resolve()}Jt.PatchedMediaKeysWebkit=qu;qu.install=ru;
|
|
813
|
-
function wu(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");for(var f=
|
|
814
|
-
m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType.split(";")[0],this.g)&&(h.audioCapabilities.push(m),d=!0));if(g.videoCapabilities)for(l=
|
|
815
|
-
d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}wu.prototype.createMediaKeys=function(){var a=new vu(this.g);return Promise.resolve(a)};wu.prototype.getConfiguration=function(){return this.h};function vu(a){this.l=a;this.h=null;this.g=new
|
|
816
|
-
function yu(a,b){a.h=b;a.g.
|
|
815
|
+
function wu(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");for(var f=r(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=r(g.audioCapabilities),
|
|
816
|
+
m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType.split(";")[0],this.g)&&(h.audioCapabilities.push(m),d=!0));if(g.videoCapabilities)for(l=r(g.videoCapabilities),m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType,this.g)&&(h.videoCapabilities.push(m),d=!0));k||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==g.persistentState&&(c?(h.persistentState="required",h.sessionTypes=["persistent-license"]):
|
|
817
|
+
d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}wu.prototype.createMediaKeys=function(){var a=new vu(this.g);return Promise.resolve(a)};wu.prototype.getConfiguration=function(){return this.h};function vu(a){this.l=a;this.h=null;this.g=new rf;this.i=[];this.j=new Map}
|
|
818
|
+
function yu(a,b){a.h=b;a.g.Pc();var c=su;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Gc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=zu(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Wd()?"licenserequest":"licenserenewal").set("message",d.message),d=new M("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=zu(a,d.sessionId))Au(d,"usable"),
|
|
817
819
|
d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=zu(a,d.sessionId);e&&e.handleError(d)}))}vu.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 Bu(b,this.l,a);this.i.push(a);return a};vu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
|
|
818
|
-
function zu(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 Bu(a,b,c){eb.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 Mc;this.keyStatuses=new Cu}
|
|
820
|
+
function zu(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 Bu(a,b,c){eb.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 Mc;this.keyStatuses=new Cu}qa(Bu,eb);q=Bu.prototype;
|
|
819
821
|
q.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Au(this,"output-restricted"):1==b?Au(this,"expired"):Au(this,"internal-error"))};
|
|
820
822
|
function Du(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=Fc(Uc("LOAD_SESSION|"+c));else{var e=Uc("PERSISTENT|");d=bd(e,b)}else d=Fc(b)}catch(g){return Promise.reject(g)}a.h=new Mc;var f=xu("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new P(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).S(.01)}return a.h}
|
|
821
823
|
function Eu(a,b,c){if(a.g)a.g.then(function(){return Eu(a,b,c)})["catch"](function(){return Eu(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Pc(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=Zc(e.keys[0].k);e=Zc(e.keys[0].kid)}else d=Fc(c),e=null;var f=xu("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
|
|
822
824
|
function Au(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}q.generateRequest=function(a,b){return Du(this,b,null)};q.load=function(a){return"persistent-license"==this.l?Du(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Mc;Eu(this,b,a);return b};
|
|
823
825
|
q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=xu("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};q.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Cu(){this.size=0;this.g=void 0}q=Cu.prototype;q.Wd=function(){return this.g};
|
|
824
|
-
q.forEach=function(a){this.g&&a(this.g,
|
|
826
|
+
q.forEach=function(a){this.g&&a(this.g,lg.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=lg.value();return this.g&&Dc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var su="";Mt(ru);function Fu(){}function Gu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Hu,Object.defineProperty(a,"disablePictureInPicture",{get:Iu,set:Ju,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Ku,document.addEventListener("webkitpresentationmodechanged",Lu,!0))}}
|
|
825
827
|
function Lu(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)}
|
|
826
828
|
function Hu(){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 Ku(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
|
|
827
|
-
function Iu(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Ju(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Jt.PiPWebkit=Fu;Fu.install=Gu;Mt(Gu);function Mu(){}function Nu(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Ou))}function Ou(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Jt.RandomUUID=Mu;Mu.install=Nu;Mt(Nu);function Pu(){}function Qu(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Ru)}function Ru(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Jt.StorageEstimate=Pu;Pu.install=Qu;Mt(Qu);function Su(){}function Tu(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Uu})}function Uu(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Jt.Symbol=Su;Su.install=Tu;Mt(Tu);function Vu(){}function Wu(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}Jt.VideoPlayPromise=Vu;Vu.install=Wu;Mt(Wu);function Xu(){}function Yu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Zu)}}function Zu(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Jt.VideoPlaybackQuality=Xu;Xu.install=Yu;Mt(Yu);function $u(){}function av(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=bv;else if(6==b)a=cv;else{try{var c=!!bv(1,2,"")}catch(d){c=!1}c&&(a=bv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function bv(a,b,c){return new window.TextTrackCue(a,b,c)}function cv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Jt.VTTCue=$u;$u.install=av;Mt(av);function dv(){}dv.prototype.parseInit=function(){};dv.prototype.setSequenceMode=function(){};dv.prototype.parseMedia=function(a,b){var c=null,d=[],e=Pc(a).split(/\r?\n/);e=
|
|
829
|
+
function Iu(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Ju(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Jt.PiPWebkit=Fu;Fu.install=Gu;Mt(Gu);function Mu(){}function Nu(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Ou))}function Ou(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Jt.RandomUUID=Mu;Mu.install=Nu;Mt(Nu);function Pu(){}function Qu(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Ru)}function Ru(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Jt.StorageEstimate=Pu;Pu.install=Qu;Mt(Qu);function Su(){}function Tu(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Uu})}function Uu(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Jt.Symbol=Su;Su.install=Tu;Mt(Tu);function Vu(){}function Wu(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}Jt.VideoPlayPromise=Vu;Vu.install=Wu;Mt(Wu);function Xu(){}function Yu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Zu)}}function Zu(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Jt.VideoPlaybackQuality=Xu;Xu.install=Yu;Mt(Yu);function $u(){}function av(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=bv;else if(6==b)a=cv;else{try{var c=!!bv(1,2,"")}catch(d){c=!1}c&&(a=bv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function bv(a,b,c){return new window.TextTrackCue(a,b,c)}function cv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Jt.VTTCue=$u;$u.install=av;Mt(av);function dv(){}dv.prototype.parseInit=function(){};dv.prototype.setSequenceMode=function(){};dv.prototype.parseMedia=function(a,b){var c=null,d=[],e=Pc(a).split(/\r?\n/);e=r(e);for(var f=e.next();!f.done;f=e.next())if((f=f.value)&&!/^\s+$/.test(f)&&(f=ev.exec(f))){var g=fv.exec(f[1]);g=60*parseInt(g[1],10)+parseFloat(g[2].replace(",","."));f=new fc(g,b.segmentEnd?b.segmentEnd:g+2,f[2]);c&&(c.endTime=g,d.push(c));c=f}c&&d.push(c);return d};J("shaka.text.LrcTextParser",dv);dv.prototype.parseMedia=dv.prototype.parseMedia;
|
|
828
830
|
dv.prototype.setSequenceMode=dv.prototype.setSequenceMode;dv.prototype.parseInit=dv.prototype.parseInit;var ev=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,fv=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;pd["application/x-subtitle-lrc"]=function(){return new dv};function gv(){}gv.prototype.parseInit=function(){};gv.prototype.setSequenceMode=function(){};
|
|
829
|
-
gv.prototype.parseMedia=function(a,b){var c=Pc(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(C){throw new O(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new O(2,2,2005,c.textContent);var g=f.getElementsByTagName("tt")[0];if(!g)throw new O(2,2,2005,"TTML does not contain <tt> tag.");f=g.getElementsByTagName("body")[0];if(!f)return[];var h=
|
|
830
|
-
m=
|
|
831
|
-
|
|
832
|
-
Number(
|
|
833
|
-
function nv(a,b,c,d,e,f,g,h,k,l,m){var
|
|
834
|
-
a=[];if(!
|
|
835
|
-
c=b.next();!c.done;c=b.next())c=c.value,
|
|
836
|
-
(g=pv(l,"region",f,"")[0]);sv(b,
|
|
837
|
-
function sv(a,b,c,d,e,f,g){f=f||g;"rtl"==tv(b,c,e,"direction",f)&&(a.direction="rtl");g=tv(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=
|
|
831
|
+
gv.prototype.parseMedia=function(a,b){var c=Pc(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(C){throw new O(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new O(2,2,2005,c.textContent);var g=f.getElementsByTagName("tt")[0];if(!g)throw new O(2,2,2005,"TTML does not contain <tt> tag.");f=g.getElementsByTagName("body")[0];if(!f)return[];var h=so(g,hv,"frameRate"),k=so(g,hv,"subFrameRate"),l=so(g,hv,"frameRateMultiplier"),
|
|
832
|
+
m=so(g,hv,"tickRate"),n=so(g,hv,"cellResolution");c=g.getAttribute("xml:space")||"default";e=so(g,iv,"extent");if("default"!=c&&"preserve"!=c)throw new O(2,2,2005,"Invalid xml:space value: "+c);c="default"==c;h=new jv(h,k,l,m);n=n?(n=/^(\d+) (\d+)$/.exec(n))?{columns:parseInt(n[1],10),rows:parseInt(n[2],10)}:null:null;k=(k=g.getElementsByTagName("metadata")[0])?qo(k):[];l=Array.from(g.getElementsByTagName("style"));g=Array.from(g.getElementsByTagName("region"));m=[];for(var p=r(g),t=p.next();!t.done;t=
|
|
833
|
+
p.next()){var w=t.value;t=new hc;var y=w.getAttribute("xml:id");if(y){t.id=y;var x=null;e&&(x=kv.exec(e)||lv.exec(e));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var v,D;if(v=mv(w,l,"extent"))v=(D=kv.exec(v))||lv.exec(v),null!=v&&(t.width=Number(v[1]),t.height=Number(v[2]),D||(null!=y&&(t.width=100*t.width/y),null!=x&&(t.height=100*t.height/x)),t.widthUnits=D||null!=y?Ac:0,t.heightUnits=D||null!=x?Ac:0);if(w=mv(w,l,"origin"))v=(D=kv.exec(w))||lv.exec(w),null!=v&&(t.viewportAnchorX=Number(v[1]),t.viewportAnchorY=
|
|
834
|
+
Number(v[2]),D||(null!=x&&(t.viewportAnchorY=100*t.viewportAnchorY/x),null!=y&&(t.viewportAnchorX=100*t.viewportAnchorX/y)),t.viewportAnchorUnits=D||null!=y?Ac:0)}else t=null;t&&m.push(t)}if(no(f,"p").length)throw new O(2,2,2001,"<p> can only be inside <div> in TTML");e=r(no(f,"div"));for(p=e.next();!p.done;p=e.next())if(no(p.value,"span").length)throw new O(2,2,2001,"<span> can only be inside <p> in TTML");(f=nv(f,b.periodStart,h,k,l,g,m,c,n,null,!1))&&d.push(f)}return d};
|
|
835
|
+
function nv(a,b,c,d,e,f,g,h,k,l,m){var n=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var t=null,w=r(ov),y=w.next();!y.done&&!(t=pv(p,"backgroundImage",d,"#",y.value)[0]);y=w.next());w=m;if("p"==a.nodeName||t)m=!0;h="default"==(p.getAttribute("xml:space")||(h?"default":"preserve"));y=Array.from(p.childNodes).every(function(A){return A.nodeType==Node.TEXT_NODE});
|
|
836
|
+
a=[];if(!y)for(var x=r(p.childNodes),v=x.next();!v.done;v=x.next())(v=nv(v.value,b,c,d,e,f,g,h,k,p,m))&&a.push(v);d=null!=l;x=/\S/.test(p.textContent);var D=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(D||x||"br"==p.tagName||0!=a.length||d&&!h))return null;v=qv(p,c);x=v.start;for(v=v.end;n&&n.nodeType==Node.ELEMENT_NODE&&"tt"!=n.tagName;)v=rv(n,c,x,v),x=v.start,v=v.end,n=n.parentNode;null==x&&(x=0);x+=b;v=null==v?Infinity:v+b;if(!D&&0<a.length)for(x=Infinity,v=0,b=r(a),
|
|
837
|
+
c=b.next();!c.done;c=b.next())c=c.value,x=Math.min(x,c.startTime),v=Math.max(v,c.endTime);if("br"==p.tagName)return e=new fc(x,v,""),e.lineBreak=!0,e;b="";y&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new fc(x,v,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=pv(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var C=k.getAttribute("xml:id");b.region=g.filter(function(A){return A.id==C})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&
|
|
838
|
+
(g=pv(l,"region",f,"")[0]);sv(b,p,g,t,e,w,0==a.length);return b}
|
|
839
|
+
function sv(a,b,c,d,e,f,g){f=f||g;"rtl"==tv(b,c,e,"direction",f)&&(a.direction="rtl");g=tv(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=gc);(g=tv(b,c,e,"textAlign",!0))?(a.positionAlign=uv[g],a.lineAlign=vv[g],a.textAlign=uc[g.toUpperCase()]):a.textAlign=jc;if(g=tv(b,c,e,"displayAlign",!0))a.displayAlign=vc[g.toUpperCase()];if(g=tv(b,c,e,"color",f))a.color=g;if(g=tv(b,c,e,"backgroundColor",
|
|
838
840
|
f))a.backgroundColor=g;if(g=tv(b,c,e,"border",f))a.border=g;if(g=tv(b,c,e,"fontFamily",f))a.fontFamily=g;(g=tv(b,c,e,"fontWeight",f))&&"bold"==g&&(a.fontWeight=700);g=tv(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=tv(b,c,e,"lineHeight",f))&&g.match(wv)&&(a.lineHeight=g);(g=tv(b,c,e,"fontSize",f))&&(g.match(wv)||g.match(xv))&&(a.fontSize=g);if(g=tv(b,c,e,"fontStyle",f))a.fontStyle=zc[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");
|
|
839
841
|
d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=tv(b,c,e,"textOutline",f))d=d.split(" "),d[0].match(wv)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(wv)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=tv(b,c,e,"letterSpacing",f))&&d.match(wv)&&(a.letterSpacing=d);(d=tv(b,c,e,"linePadding",f))&&d.match(wv)&&(a.linePadding=d);if(f=tv(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=mv(c,e,"textDecoration"))&&yv(a,c);(b=
|
|
840
842
|
zv(b,e,"textDecoration"))&&yv(a,b)}
|
|
841
|
-
function yv(a,b){for(var c=
|
|
842
|
-
a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&
|
|
843
|
-
function Av(a,b,c){a=pv(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=
|
|
844
|
-
function pv(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?
|
|
843
|
+
function yv(a,b){for(var c=r(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&cc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&cc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
|
|
844
|
+
a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&cc(a.textDecoration,"overline")}}function tv(a,b,c,d,e){e=void 0===e?!0:e;return(a=zv(a,c,d))?a:e?mv(b,c,d):null}function mv(a,b,c){if(!a)return null;var d=so(a,iv,c);return d?d:Av(a,b,c)}function zv(a,b,c){var d=so(a,iv,c);return d?d:Av(a,b,c)}
|
|
845
|
+
function Av(a,b,c){a=pv(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=ro(a[e],"urn:ebu:tt:style",c);f||(f=so(a[e],iv,c));f||(f=zv(a[e],b,c));f&&(d=f)}return d}
|
|
846
|
+
function pv(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?ro(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=r(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=r(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function rv(a,b,c,d){a=qv(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}
|
|
845
847
|
function qv(a,b){var c=Bv(a.getAttribute("begin"),b),d=Bv(a.getAttribute("end"),b),e=Bv(a.getAttribute("dur"),b);null==d&&null!=e&&(d=c+e);return{start:c,end:d}}
|
|
846
848
|
function Bv(a,b){var c=null;if(Cv.test(a)){c=Cv.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else if(Dv.test(a))c=Ev(Dv,a);else if(Fv.test(a))c=Ev(Fv,a);else if(Gv.test(a))c=Gv.exec(a),c=Number(c[1])/b.frameRate;else if(Hv.test(a))c=Hv.exec(a),c=Number(c[1])/b.g;else if(Iv.test(a))c=Ev(Iv,a);else if(a)throw new O(2,2,2001,"Could not parse cue time range in TTML");return c}
|
|
847
849
|
function Ev(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}J("shaka.text.TtmlTextParser",gv);gv.prototype.parseMedia=gv.prototype.parseMedia;gv.prototype.setSequenceMode=gv.prototype.setSequenceMode;gv.prototype.parseInit=gv.prototype.parseInit;
|
|
848
850
|
function jv(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
|
|
849
|
-
var kv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,xv=/^(\d{1,2}(?:\.\d+)?|100)%$/,wv=/^(\d+px|\d+em|\d*\.?\d+c)$/,lv=/^(\d+)px (\d+)px$/,Cv=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Dv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Fv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Gv=/^(\d*(?:\.\d*)?)f$/,Hv=/^(\d*(?:\.\d*)?)t$/,Iv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),vv={left:
|
|
850
|
-
end:"end"},uv={left:"line-left",center:"center",right:"line-right"},hv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],iv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],ov=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];pd["application/ttml+xml"]=function(){return new gv};function Jv(){this.g=new gv}Jv.prototype.parseInit=function(a){var b=!1;(new
|
|
851
|
+
var kv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,xv=/^(\d{1,2}(?:\.\d+)?|100)%$/,wv=/^(\d+px|\d+em|\d*\.?\d+c)$/,lv=/^(\d+)px (\d+)px$/,Cv=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Dv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Fv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Gv=/^(\d*(?:\.\d*)?)f$/,Hv=/^(\d*(?:\.\d*)?)t$/,Iv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),vv={left:mc,center:"center",right:"end",start:mc,
|
|
852
|
+
end:"end"},uv={left:"line-left",center:"center",right:"line-right"},hv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],iv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],ov=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];pd["application/ttml+xml"]=function(){return new gv};function Jv(){this.g=new gv}Jv.prototype.parseInit=function(a){var b=!1;(new vg).box("moov",zg).box("trak",zg).box("mdia",zg).box("minf",zg).box("stbl",zg).Y("stsd",Bg).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new O(2,2,2007);};Jv.prototype.setSequenceMode=function(){};Jv.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new vg).box("mdat",Cg(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new O(2,2,2007);return e};
|
|
851
853
|
J("shaka.text.Mp4TtmlParser",Jv);Jv.prototype.parseMedia=Jv.prototype.parseMedia;Jv.prototype.setSequenceMode=Jv.prototype.setSequenceMode;Jv.prototype.parseInit=Jv.prototype.parseInit;pd['application/mp4; codecs="stpp"']=function(){return new Jv};pd['application/mp4; codecs="stpp.ttml"']=function(){return new Jv};pd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Jv};pd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Jv};function Kv(){this.g=!1}Kv.prototype.parseInit=function(){};Kv.prototype.setSequenceMode=function(a){this.g=a};
|
|
852
|
-
Kv.prototype.parseMedia=function(a,b){var c=Pc(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new O(2,2,2E3);c=b.vttOffset;if(d[0].includes("X-TIMESTAMP-MAP")&&this.g){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=Lv(new
|
|
853
|
-
c}}f=[];e=
|
|
854
|
-
(l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");
|
|
855
|
-
/^\s*([^:]+):\s*(.*)/.exec(k[
|
|
856
|
-
!0;m.opacity=parseFloat(
|
|
857
|
-
""):h=new
|
|
858
|
-
function Nv(a,b,c){0===c.size&&Mv(c);a=Pv(a);var d=
|
|
854
|
+
Kv.prototype.parseMedia=function(a,b){var c=Pc(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new O(2,2,2E3);c=b.vttOffset;if(d[0].includes("X-TIMESTAMP-MAP")&&this.g){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=Lv(new Gq(e[1]));if(null==c)throw new O(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-
|
|
855
|
+
c}}f=[];e=r(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new Gq(g);var h=new hc;Jq(g);Hq(g);for(var k=Jq(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
|
|
856
|
+
(l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");Hq(g);k=Jq(g)}f.push(h)}e=new Map;Mv(e);g=[];d=r(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]&&h[1].includes("::cue")){l="global";(k=h[1].match(/\((.*)\)/))&&(l=k.pop());k=h.slice(2,-1);h[1].includes("}")&&(m=/\{(.*?)\}/.exec(h[1]))&&(k=m[1].split(";"));m=new fc(0,0,"");for(var n=!1,p=0;p<k.length;p++){var t=
|
|
857
|
+
/^\s*([^:]+):\s*(.*)/.exec(k[p]);if(t){var w=t[2].trim().replace(";","");switch(t[1].trim()){case "background-color":n=!0;m.backgroundColor=w;break;case "color":n=!0;m.color=w;break;case "font-family":n=!0;m.fontFamily=w;break;case "font-size":n=!0;m.fontSize=w;break;case "font-weight":700<=parseInt(w,10)&&(n=!0,m.fontWeight=700);break;case "font-style":switch(w){case "normal":n=!0;m.fontStyle=pc;break;case "italic":n=!0;m.fontStyle="italic";break;case "oblique":n=!0,m.fontStyle="oblique"}break;case "opacity":n=
|
|
858
|
+
!0;m.opacity=parseFloat(w);break;case "white-space":n=!0,m.wrapLine="noWrap"!=w}}}n&&e.set(l,m)}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));k=new Gq(h[0]);m=Lv(k);t=Iq(k,/[ \t]+--\x3e[ \t]+/g);n=Lv(k);if(null==m||null==t||null==n)throw new O(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=h.slice(1).join("\n").trim();e.has("global")?(h=e.get("global").clone(),h.startTime=m,h.endTime=n,h.payload=
|
|
859
|
+
""):h=new fc(m,n,"");Nv(p,h,e);Hq(k);for(m=Jq(k);m;)Ov(h,m,f),Hq(k),m=Jq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};function Mv(a){for(var b=r(Object.entries(xc)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new fc(0,0,"");e.color=d;a.set(c,e)}b=r(Object.entries(yc));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new fc(0,0,""),e.backgroundColor=d,a.set(c,e)}
|
|
860
|
+
function Nv(a,b,c){0===c.size&&Mv(c);a=Pv(a);var d=Eo("<span>"+a+"</span>","span");if(d){var e=[];d=d.childNodes;if(1==d.length){var f=d[0];if(f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE){b.payload=a;return}}a=r(d);for(d=a.next();!d.done;d=a.next())Qv(d.value,b,e,c);b.nestedCues=e}else b.payload=a}
|
|
859
861
|
function Pv(a){for(var b=[],c=-1,d="",e=0;e<a.length;e++)if("/"===a[e]){var f=a.indexOf(">",e);if(f<=e)return a;f=a.substring(e+1,f);var g=b.pop();if(f&&g){if(g===f)d+="/"+f+">";else{if(!g.startsWith("c.")||"c"!==f)return a;d+="/"+g+">"}e+=f.length+1}else return a}else"<"===a[e]?c=e+1:">"===a[e]&&0<c&&(b.push(a.substr(c,e-c)),c=-1),d+=a[e];return d}function Rv(a,b){return a&&0<a.length?a:b}
|
|
860
|
-
function Qv(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=
|
|
861
|
-
"italic";break;case "u":e.textDecoration.push("underline")}}if(
|
|
862
|
-
function Ov(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=
|
|
863
|
-
b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Sv(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=wc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=
|
|
864
|
-
function Lv(a){a=
|
|
865
|
-
pd['text/vtt; codecs="wvtt"']=function(){return new Kv};function Tv(){this.g=null}Tv.prototype.parseInit=function(a){var b=this,c=!1;(new
|
|
866
|
-
Tv.prototype.parseMedia=function(a,b){if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new
|
|
867
|
-
c+
|
|
868
|
-
function Vv(a,b,c,d,e){d=new
|
|
869
|
-
function Xv(a){a=
|
|
862
|
+
function Qv(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(a.nodeName.split(/[ .]+/)),g=f.next();!g.done;g=f.next()){g=g.value;if(d.has(g)){var h=d.get(g);h&&(e.backgroundColor=Rv(h.backgroundColor,e.backgroundColor),e.color=Rv(h.color,e.color),e.fontFamily=Rv(h.fontFamily,e.fontFamily),e.fontSize=Rv(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine)}switch(g){case "b":e.fontWeight=700;break;case "i":e.fontStyle=
|
|
863
|
+
"italic";break;case "u":e.textDecoration.push("underline")}}if(uo(a))for(f=!0,d=r(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=r(a.childNodes),a=b.next();!a.done;a=b.next())Qv(a.value,e,c,d)}
|
|
864
|
+
function Ov(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=jc:a.textAlign=uc[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|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
|
|
865
|
+
b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Sv(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=wc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=lc,a.line=Number(c[1]),c[2]&&(a.lineAlign=wc[c[2].toUpperCase()])}function Sv(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
|
|
866
|
+
function Lv(a){a=Iq(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)}J("shaka.text.VttTextParser",Kv);Kv.prototype.parseMedia=Kv.prototype.parseMedia;Kv.prototype.setSequenceMode=Kv.prototype.setSequenceMode;Kv.prototype.parseInit=Kv.prototype.parseInit;pd["text/vtt"]=function(){return new Kv};pd['text/vtt; codecs="vtt"']=function(){return new Kv};
|
|
867
|
+
pd['text/vtt; codecs="wvtt"']=function(){return new Kv};function Tv(){this.g=null}Tv.prototype.parseInit=function(a){var b=this,c=!1;(new vg).box("moov",zg).box("trak",zg).box("mdia",zg).Y("mdhd",function(d){d=Mh(d.reader,d.version);b.g=d.timescale}).box("minf",zg).box("stbl",zg).Y("stsd",Bg).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};Tv.prototype.setSequenceMode=function(){};
|
|
868
|
+
Tv.prototype.parseMedia=function(a,b){if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new vg).box("moof",zg).box("traf",zg).Y("tfdt",function(A){g=!0;c=Lh(A.reader,A.version).Te}).Y("tfhd",function(A){l=Kh(A.reader,A.flags).df}).Y("trun",function(A){h=!0;d=Nh(A.reader,A.version,A.flags).yf}).box("mdat",Cg(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);for(var m=c,n=new sg(e,0),p=r(d),t=p.next();!t.done;t=p.next()){t=t.value;var w=t.se||l,y=t.zd?
|
|
869
|
+
c+t.zd:m;m=y+(w||0);var x=0;do{var v=n.R();x+=v;var D=n.R(),C=null;"vttc"==Dg(D)?8<v&&(C=n.Cb(v-8)):n.skip(v-8);w&&C&&(v=Uv(C,b.periodStart+y/this.g,b.periodStart+m/this.g),f.push(v))}while(t.sampleSize&&x<t.sampleSize)}return f.filter(Bb)};function Uv(a,b,c){var d,e,f;(new vg).box("payl",Cg(function(g){d=Pc(g)})).box("iden",Cg(function(g){e=Pc(g)})).box("sttg",Cg(function(g){f=Pc(g)})).parse(a);return d?Vv(d,e,f,b,c):null}
|
|
870
|
+
function Vv(a,b,c,d,e){d=new fc(d,e,"");Nv(a,d,new Map);b&&(d.id=b);if(c)for(a=new Gq(c),b=Jq(a);b;)Ov(d,b,[]),Hq(a),b=Jq(a);return d}J("shaka.text.Mp4VttParser",Tv);Tv.prototype.parseMedia=Tv.prototype.parseMedia;Tv.prototype.setSequenceMode=Tv.prototype.setSequenceMode;Tv.prototype.parseInit=Tv.prototype.parseInit;pd['application/mp4; codecs="wvtt"']=function(){return new Tv};function Wv(){}Wv.prototype.parseInit=function(){};Wv.prototype.setSequenceMode=function(){};Wv.prototype.parseMedia=function(a){var b=Pc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=r(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Gq(c[0]),e=Xv(d),f=Iq(d,/,/g);d=Xv(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new fc(e,d,c.slice(1).join("\n").trim()))}return a};
|
|
871
|
+
function Xv(a){a=Iq(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)}J("shaka.text.SbvTextParser",Wv);Wv.prototype.parseMedia=Wv.prototype.parseMedia;Wv.prototype.setSequenceMode=Wv.prototype.setSequenceMode;Wv.prototype.parseInit=Wv.prototype.parseInit;pd["text/x-subviewer"]=function(){return new Wv};function Yv(){this.g=new Kv}Yv.prototype.parseInit=function(){};Yv.prototype.setSequenceMode=function(){};Yv.prototype.parseMedia=function(a,b){var c=Pc(a);c=Zv(c);c=Fc(Uc(c));return this.g.parseMedia(c,b)};function Zv(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=r(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")+"\n\n";return b}J("shaka.text.SrtTextParser",Yv);
|
|
870
872
|
Yv.srt2webvtt=Zv;Yv.prototype.parseMedia=Yv.prototype.parseMedia;Yv.prototype.setSequenceMode=Yv.prototype.setSequenceMode;Yv.prototype.parseInit=Yv.prototype.parseInit;pd["text/srt"]=function(){return new Yv};function $v(){}$v.prototype.parseInit=function(){};$v.prototype.setSequenceMode=function(){};
|
|
871
|
-
$v.prototype.parseMedia=function(a){var b="",c="";a=Pc(a).split(/\r?\n\s*\r?\n/);a=
|
|
872
|
-
[];b=null;e={};c=
|
|
873
|
-
function ew(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=fw(c))a.color=c;if(c=b.BackColour)if(c=fw(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=
|
|
874
|
-
break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=
|
|
873
|
+
$v.prototype.parseMedia=function(a){var b="",c="";a=Pc(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=aw.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=r(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=bw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(cw);else if("Style"==e){e=f.split(cw);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
|
|
874
|
+
[];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={Sd:e.Sd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=bw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(cw);else if("Dialogue"==f){g=g.split(cw);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=dw(f.Start);var k=dw(f.End);g=new fc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Sd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Sd}}(e)))&&ew(g,f);d.push(g)}return d};
|
|
875
|
+
function ew(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=fw(c))a.color=c;if(c=b.BackColour)if(c=fw(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=nc;a.textAlign="start";break;case 2:a.displayAlign=nc;a.textAlign=jc;break;case 3:a.displayAlign=nc;a.textAlign="end";
|
|
876
|
+
break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=jc;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=jc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(c=b.AlphaLevel)a.opacity=parseFloat(c)}
|
|
875
877
|
function fw(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 dw(a){a=gw.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}J("shaka.text.SsaTextParser",$v);$v.prototype.parseMedia=$v.prototype.parseMedia;$v.prototype.setSequenceMode=$v.prototype.setSequenceMode;$v.prototype.parseInit=$v.prototype.parseInit;
|
|
876
878
|
var aw=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,bw=/^\s*([^:]+):\s*(.*)/,cw=/\s*,\s*/,gw=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;pd["text/x-ssa"]=function(){return new $v};function hw(){}J("shaka.util.FairPlayUtils",hw);hw.commonFairPlayResponse=function(a,b){if(2===a){try{var c=Pc(b.data)}catch(f){return}var d=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),d=!0);try{var e=JSON.parse(c);e.ckc&&(c=e.ckc,d=!0);e.CkcMessage&&(c=e.CkcMessage,d=!0);e.License&&(c=e.License,d=!0)}catch(f){}d&&(b.data=Gc(Zc(c)))}};
|
|
877
879
|
hw.spcFairPlayRequest=function(a,b){if(2===a){var c=Fc(b.body);c=Yc(c);b.headers["Content-Type"]="application/x-www-form-urlencoded";b.body=Uc("spc="+c)}};hw.initDataTransform=function(a,b,c){function d(h){Ic(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Fc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=Vc(b,!0):e=b;a=Tc(a);a=Vc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f};
|
|
878
|
-
hw.defaultGetContentId=function(a){a=Tc(a);return(new kb(a))
|
|
880
|
+
hw.defaultGetContentId=function(a){a=Tc(a);return(new kb(a)).Ya};hw.isFairPlaySupported=function(){var a;return I(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},B(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b["return"](!0);E(b);return b["return"](!1)})};/*
|
|
879
881
|
@license
|
|
880
882
|
EME Encryption Scheme Polyfill
|
|
881
883
|
Copyright 2019 Google LLC
|
|
@@ -884,17 +886,18 @@ hw.defaultGetContentId=function(a){a=Tc(a);return(new kb(a)).$a};hw.isFairPlaySu
|
|
|
884
886
|
function iw(){}var jw;function kw(){jw?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(jw=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=lw):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
|
|
885
887
|
function lw(a,b){var c=this,d;return I(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,jw.call(c,a,b),2);d=e.h;if(mw(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=jw,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=nw;return e["return"](nw.call(c,
|
|
886
888
|
a,b))})}
|
|
887
|
-
function nw(a,b){var c=this,d,e,f,g,h,k,l,m,p
|
|
888
|
-
|
|
889
|
+
function nw(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return I(function(t){if(1==t.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=ow(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=pw(h.videoCapabilities,d),l=pw(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
|
|
890
|
+
n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(t,jw.call(c,a,e),2)}p=t.h;return t["return"](new qw(p,d))})}function pw(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}J("EmeEncryptionSchemePolyfill",iw);iw.install=kw;function rw(){}var sw;
|
|
889
891
|
function tw(){sw?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(sw=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=uw):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
|
|
890
|
-
function uw(a){var b=this,c,d;return I(function(
|
|
891
|
-
navigator.mediaCapabilities.decodingInfo=vw;return e["return"](vw.call(b,a))})}
|
|
892
|
-
function vw(a){var b=this,c,d,e,f,g,h,k,l
|
|
893
|
-
new qw(k.keySystemAccess,c);
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
function
|
|
897
|
-
function
|
|
892
|
+
function uw(a){var b=this,c,d,e;return I(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,sw.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f["return"](c);if((d=c.keySystemAccess)&&mw(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=sw,f["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
|
|
893
|
+
navigator.mediaCapabilities.decodingInfo=vw;if(d){f.D(3);break}e=c;return u(f,ww(a),4);case 4:return e.keySystemAccess=f.h,f["return"](c);case 3:return f["return"](vw.call(b,a))}})}
|
|
894
|
+
function vw(a){var b=this,c,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=ow(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m["return"](h):u(m,sw.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
|
|
895
|
+
new qw(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return u(m,ww(a),5);case 5:l.keySystemAccess=m.h;case 3:return m["return"](k)}})}
|
|
896
|
+
function ww(a){var b,c;return I(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return u(d,
|
|
897
|
+
navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d["return"](c)})}J("McEncryptionSchemePolyfill",rw);rw.install=tw;function qw(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
|
|
898
|
+
qw.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};qw.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
|
|
899
|
+
function ow(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||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 mw(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}function xw(){}
|
|
900
|
+
function St(){kw();tw()}J("EncryptionSchemePolyfills",xw);xw.install=St;"undefined"!==typeof module&&module.exports&&(module.exports=xw);/*
|
|
898
901
|
@license
|
|
899
902
|
Copyright 2013 Ali Al Dallal
|
|
900
903
|
|
|
@@ -918,7 +921,7 @@ function St(){kw();tw()}J("EncryptionSchemePolyfills",ww);ww.install=St;"undefin
|
|
|
918
921
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
919
922
|
SOFTWARE.
|
|
920
923
|
*/
|
|
921
|
-
for(var
|
|
924
|
+
for(var yw={ach:{s:"Lwo",u:"Acholi"},ady:{s:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",u:"Adyghe"},af:{s:"Afrikaans",u:"Afrikaans"},"af-NA":{s:"Afrikaans (Namibia)",u:"Afrikaans (Namibia)"},"af-ZA":{s:"Afrikaans (South Africa)",u:"Afrikaans (South Africa)"},ak:{s:"T\u0255\u0265i",u:"Akan"},ar:{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-AR":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-MA":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic (Morocco)"},
|
|
922
925
|
"ar-SA":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",u:"Arabic (Saudi Arabia)"},"ay-BO":{s:"Aymar aru",u:"Aymara"},az:{s:"Az\u0259rbaycan dili",u:"Azerbaijani"},"az-AZ":{s:"Az\u0259rbaycan dili",u:"Azerbaijani"},"be-BY":{s:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",u:"Belarusian"},bg:{s:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",u:"Bulgarian"},"bg-BG":{s:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
|
|
923
926
|
u:"Bulgarian"},bn:{s:"\u09ac\u09be\u0982\u09b2\u09be",u:"Bengali"},"bn-IN":{s:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",u:"Bengali (India)"},"bn-BD":{s:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",u:"Bengali (Bangladesh)"},"bs-BA":{s:"Bosanski",u:"Bosnian"},ca:{s:"Catal\u00e0",u:"Catalan"},"ca-ES":{s:"Catal\u00e0",u:"Catalan"},cak:{s:"Maya Kaqchikel",u:"Kaqchikel"},"ck-US":{s:"\u13e3\u13b3\u13a9 (tsalagi)",u:"Cherokee"},cs:{s:"\u010ce\u0161tina",
|
|
924
927
|
u:"Czech"},"cs-CZ":{s:"\u010ce\u0161tina",u:"Czech"},cy:{s:"Cymraeg",u:"Welsh"},"cy-GB":{s:"Cymraeg",u:"Welsh"},da:{s:"Dansk",u:"Danish"},"da-DK":{s:"Dansk",u:"Danish"},de:{s:"Deutsch",u:"German"},"de-AT":{s:"Deutsch (\u00d6sterreich)",u:"German (Austria)"},"de-DE":{s:"Deutsch (Deutschland)",u:"German (Germany)"},"de-CH":{s:"Deutsch (Schweiz)",u:"German (Switzerland)"},dsb:{s:"Dolnoserb\u0161\u0107ina",u:"Lower Sorbian"},el:{s:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",u:"Greek"},"el-GR":{s:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
|
|
@@ -939,183 +942,183 @@ u:"Slovak"},"sk-SK":{s:"Sloven\u010dina (Slovakia)",u:"Slovak (Slovakia)"},sl:{s
|
|
|
939
942
|
sw:{s:"Kiswahili",u:"Swahili"},"sw-KE":{s:"Kiswahili",u:"Swahili (Kenya)"},ta:{s:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",u:"Tamil"},"ta-IN":{s:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",u:"Tamil"},te:{s:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",u:"Telugu"},"te-IN":{s:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",u:"Telugu"},tg:{s:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",u:"Tajik"},"tg-TJ":{s:"\u0442\u043e\u04b7\u0438\u043a\u04e3",u:"Tajik"},th:{s:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
|
|
940
943
|
u:"Thai"},"th-TH":{s:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",u:"Thai (Thailand)"},tl:{s:"Filipino",u:"Filipino"},"tl-PH":{s:"Filipino",u:"Filipino"},tlh:{s:"tlhIngan-Hol",u:"Klingon"},tr:{s:"T\u00fcrk\u00e7e",u:"Turkish"},"tr-TR":{s:"T\u00fcrk\u00e7e",u:"Turkish"},"tt-RU":{s:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",u:"Tatar"},uk:{s:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",u:"Ukrainian"},"uk-UA":{s:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
|
|
941
944
|
u:"Ukrainian"},ur:{s:"\u0627\u0631\u062f\u0648",u:"Urdu"},"ur-PK":{s:"\u0627\u0631\u062f\u0648",u:"Urdu"},uz:{s:"O'zbek",u:"Uzbek"},"uz-UZ":{s:"O'zbek",u:"Uzbek"},vi:{s:"Ti\u1ebfng Vi\u1ec7t",u:"Vietnamese"},"vi-VN":{s:"Ti\u1ebfng Vi\u1ec7t",u:"Vietnamese"},"xh-ZA":{s:"isiXhosa",u:"Xhosa"},yi:{s:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",u:"Yiddish"},"yi-DE":{s:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",u:"Yiddish (German)"},zh:{s:"\u4e2d\u6587",u:"Chinese"},"zh-HANS":{s:"\u4e2d\u6587\u7b80\u4f53",
|
|
942
|
-
u:"Chinese Simplified"},"zh-HANT":{s:"\u4e2d\u6587\u7e41\u9ad4",u:"Chinese Traditional"},"zh-CN":{s:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",u:"Chinese Simplified (China)"},"zh-HK":{s:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",u:"Chinese Traditional (Hong Kong)"},"zh-SG":{s:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",u:"Chinese Simplified (Singapore)"},"zh-TW":{s:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",u:"Chinese Traditional (Taiwan)"},"zu-ZA":{s:"isiZulu",u:"Zulu"}},
|
|
943
|
-
|
|
944
|
-
W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};J("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function
|
|
945
|
-
function
|
|
946
|
-
""))});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.
|
|
947
|
-
"ad-stopped",function(){c.h.textContent="";X(c.g,!1)});this.ad&&
|
|
948
|
-
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()?
|
|
949
|
-
J("shaka.ui.PlayButton",
|
|
950
|
-
!1)});this.eventManager.o(window,"click",function(){X(c.g,!1)});
|
|
951
|
-
|
|
952
|
-
this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.
|
|
953
|
-
"mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}
|
|
954
|
-
q.setValue=function(a){this.g||(this.bar.value=a)};function
|
|
955
|
-
|
|
956
|
-
"locale-changed",function(){return
|
|
957
|
-
q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);
|
|
958
|
-
q.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.Ia(),g=f.end-f.start;this.setRange(f.start,f.end);
|
|
945
|
+
u:"Chinese Simplified"},"zh-HANT":{s:"\u4e2d\u6587\u7e41\u9ad4",u:"Chinese Traditional"},"zh-CN":{s:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",u:"Chinese Simplified (China)"},"zh-HK":{s:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",u:"Chinese Traditional (Hong Kong)"},"zh-SG":{s:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",u:"Chinese Simplified (Singapore)"},"zh-TW":{s:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",u:"Chinese Traditional (Taiwan)"},"zu-ZA":{s:"isiZulu",u:"Zulu"}},zw=r(Object.keys(yw)),Aw=zw.next();!Aw.done;Aw=
|
|
946
|
+
zw.next()){var Bw=Aw.value;yw[Bw.toLowerCase()]=yw[Bw]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new rf;this.localization=this.controls.za;this.player=this.controls.bc();this.video=this.controls.Bb();this.adManager=this.player.fd();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})}
|
|
947
|
+
W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};J("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function Cw(a){return Dw(a,"shaka-back-to-overflow-button")}function Dw(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function Ew(a){a&&(a=Dw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Fw(){var a=R("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function X(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
|
|
948
|
+
function Gw(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function Hw(a,b){W.call(this,a,b);var c=this;this.i=R("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=R("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new P(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Gw(e-d,!1)+" / "+Gw(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=
|
|
949
|
+
""))});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.xa();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.xa(),this.g.ka(.5))}qa(Hw,W);Hw.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};J("shaka.ui.AdCounter",Hw);function Iw(a,b){W.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");X(this.g,!1);this.parent.appendChild(this.g);this.h=R("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Jw(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Jw(c)});this.eventManager.o(this.adManager,"ad-started",function(){Jw(c)});this.eventManager.o(this.adManager,
|
|
950
|
+
"ad-stopped",function(){c.h.textContent="";X(c.g,!1)});this.ad&&Jw(this)}qa(Iw,W);function Jw(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));X(a.g,!0)}}J("shaka.ui.AdPosition",Iw);function Kw(a,b){W.call(this,a,b);var c=this;this.button=bk();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();
|
|
951
|
+
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()?Lw(c.controls):Mw(c.controls)});this.ad&&(this.g(),this.h())}qa(Kw,W);Kw.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.B.paused&&!a.$;return a};Kw.prototype.g=function(){};Kw.prototype.h=function(){};
|
|
952
|
+
J("shaka.ui.PlayButton",Kw);function Nw(a,b){Kw.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}qa(Nw,Kw);Nw.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Nw.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};J("shaka.ui.BigPlayButton",Nw);function Ow(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=R("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";X(c.g,!0)}else X(c.g,
|
|
953
|
+
!1)});this.eventManager.o(window,"click",function(){X(c.g,!1)});Pw(this)}qa(Ow,W);Ow.prototype.release=function(){this.h=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Qw(a,b){Rw.set(a,b)}function Pw(a){for(var b=r(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Rw.get(c);d?a.i.push(d.create(a.g,a.controls)):Ta("Unrecognized context menu element:",c)}}J("shaka.ui.ContextMenu",Ow);
|
|
954
|
+
Ow.registerElement=Qw;var Rw=new Map;function Sw(a,b,c,d){W.call(this,a,b);var e=this;this.container=R("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new P(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ia(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);
|
|
955
|
+
this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Mb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Mb()&&(e.g=!0,Tw(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(Tw(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,Tw(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
|
|
956
|
+
"mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}qa(Sw,W);q=Sw.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.g||(this.g=!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.l.S(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
|
|
957
|
+
q.setValue=function(a){this.g||(this.bar.value=a)};function Tw(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}J("shaka.ui.RangeElement",Sw);Sw.prototype.setValue=Sw.prototype.setValue;Sw.prototype.getValue=Sw.prototype.getValue;Sw.prototype.changeTo=Sw.prototype.changeTo;Sw.prototype.onChangeEnd=Sw.prototype.onChangeEnd;Sw.prototype.onChange=Sw.prototype.onChange;
|
|
958
|
+
Sw.prototype.onChangeStart=Sw.prototype.onChangeStart;Sw.prototype.setRange=Sw.prototype.setRange;function Uw(a,b){Sw.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=R("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new P(function(){c.video.currentTime=c.getValue()});this.A=new P(function(){Vw(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return Ww(c)});this.eventManager.o(this.localization,
|
|
959
|
+
"locale-changed",function(){return Ww(c)});this.eventManager.o(this.adManager,"ad-started",function(){Xw(c)||X(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Xw(c)&&X(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Yw(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Yw(c)});this.setValue(this.video.currentTime);this.update();Ww(this);this.ad&&X(this.container,!1)}qa(Uw,Sw);q=Uw.prototype;
|
|
960
|
+
q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);Sw.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.De(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.S(.125))};q.onChangeEnd=function(){this.h.xa();this.controls.De(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
|
|
961
|
+
q.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.Ia(),g=f.end-f.start;this.setRange(f.start,f.end);Xw(this)?(X(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?
|
|
959
962
|
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()+")")):X(this.container,!1)};
|
|
960
|
-
function
|
|
961
|
-
100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
q.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.A){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.
|
|
965
|
-
null;case 6:a.F=null,a.A=null,a.B=null,a.
|
|
966
|
-
q.configure=function(a){this.i=a;this.C.Ye(a.castReceiverAppId);this.m&&(this.m=null);this.
|
|
967
|
-
|
|
968
|
-
q.
|
|
969
|
-
q.
|
|
963
|
+
function Vw(a){if(a.i.length){for(var b=a.player.Ia(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=r(a.i),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=r(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 "+
|
|
964
|
+
100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function Yw(a){Vw(a);var b=a.player.Ia();b=b.end-b.start;a.player.T()&&5<b&&a.A.ka(1)}function Xw(a){var b=a.player.Ia();b=b.end-b.start;return a.player.T()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Ww(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}J("shaka.ui.SeekBar",Uw);function Zw(){}
|
|
965
|
+
Zw.prototype.create=function(a,b){return new Uw(a,b)};Uw.Factory=Zw;function Z(a,b,c,d){eb.call(this);var e=this;this.U=!0;this.i=d;this.C=new Fn(c,a,this.i.castReceiverAppId);this.gb=!0;this.B=this.C.Bb();this.A=c;this.F=this.C.bc();this.ya=a;this.j=b;this.Wa=this.F.fd();this.m=this.l=null;this.$=!1;this.G=[];this.vb=[];this.ib=!1;this.aa=new P(function(){e.j.style.cursor="none";e.ib=!1;$w(e)});this.ea=new P(function(){e.g.removeAttribute("shown");e.I.S(2)});this.I=new P(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())X(g.value,!1)});this.La=new P(function(){e.Mb()&&
|
|
966
|
+
ax(e)});this.J=null;this.H=[];this.za=bx();this.h=new rf;this.configure(this.i);cx(this);this.ma=new Set;dx(this);this.La.ka(.125);this.h.o(this.za,"locale-changed",function(f){e.Wa.setLocale(f.locales[0])})}qa(Z,eb);q=Z.prototype;
|
|
967
|
+
q.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.A){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.La&&(a.La.stop(),a.La=null);ex(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ya){b.D(6);break}return u(b,a.ya.destroy(),7);case 7:a.ya=
|
|
968
|
+
null;case 6:a.F=null,a.A=null,a.B=null,a.za=null,a.ma.clear(),eb.prototype.release.call(a),z(b)}})};function ex(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function fx(a,b){gx.set(a,b)}q.Pf=function(a){this.gb=a;dx(this)};q.Hg=function(){$w(this)};
|
|
969
|
+
q.configure=function(a){this.i=a;this.C.Ye(a.castReceiverAppId);this.m&&(this.m=null);this.fb&&(this.fb=null);this.Xa&&(this.Xa=null);this.g?(ck(this.g),ex(this)):(hx(this),ix(this));this.j.classList.add("shaka-video-container");this.A.classList.add("shaka-video");jx(this);this.i.addBigPlayButton&&kx(this);this.i.customContextMenu&&(this.Xa=new Ow(this.X,this),this.H.push(this.Xa));this.ba||lx(this);this.hb=R("div");this.hb.classList.add("shaka-server-side-ad-container");this.g.appendChild(this.hb);
|
|
970
|
+
mx(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ia(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));nx(this);this.vb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));$w(this);a=r(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.h.o(b,"click",c);this.h.o(b,"dblclick",c)}};
|
|
971
|
+
q.ze=function(a){(this.U=a)?(this.j.setAttribute("shaka-controls","true"),this.A.tabIndex=-1,this.A.controls=!1):this.j.removeAttribute("shaka-controls");$w(this)};q.Bf=function(a){this.A.controls=a;this.A.tabIndex=a?0:-1;a&&this.ze(!1)};q.getAd=function(){return this.l};q.$f=function(){return this.C};q.mg=function(){return this.za};q.Bg=function(){return this.j};q.Bb=function(){return this.B};q.lg=function(){return this.A};q.bc=function(){return this.F};q.kg=function(){return this.ya};q.fg=function(){return this.g};
|
|
972
|
+
q.vg=function(){return this.hb};q.cg=function(){return this.P};q.dg=function(){return this.i};q.Gg=function(){return this.$};q.De=function(a){this.$=a};q.Eg=function(){return this.gb};q.kf=function(){return this.m?this.m.getValue():this.B.currentTime};q.Cf=function(a){this.J=a};q.$c=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.dc=function(){this.I.xa()};q.Yd=function(){return document.fullscreenEnabled||this.A.webkitSupportsFullscreen?!0:!1};
|
|
970
973
|
q.Xd=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.A;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
|
|
971
|
-
q.
|
|
972
|
-
9);case 9:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(10);break}B(d,11);return u(d,screen.orientation.lock("landscape"),13);case 13:
|
|
973
|
-
function
|
|
974
|
-
function
|
|
975
|
-
function
|
|
976
|
-
function
|
|
974
|
+
q.Je=function(){var a=this,b,c;return I(function(d){switch(d.g){case 1:if(!document.fullscreenEnabled){b=a.A;b.webkitSupportsFullscreen&&(b.webkitDisplayingFullscreen?b.webkitExitFullscreen():b.webkitEnterFullscreen());d.D(0);break}if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),u(d,document.exitFullscreen(),0);B(d,5);if(!document.pictureInPictureElement){d.D(7);break}return u(d,document.exitPictureInPicture(),7);case 7:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),
|
|
975
|
+
9);case 9:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(10);break}B(d,11);return u(d,screen.orientation.lock("landscape"),13);case 13:va(d,10,5);break;case 11:E(d,5);case 10:va(d,0);break;case 5:c=E(d),a.dispatchEvent(new M("error",(new Map).set("detail",c))),d.D(0)}})};q.Ef=function(){X(this.K,!0);X(this.P,!0);this.g.setAttribute("ad-active","true")};q.nf=function(){X(this.K,!1);X(this.P,!1);this.g.removeAttribute("ad-active")};
|
|
976
|
+
function Mw(a){a.U&&a.B.duration&&(a.F.Ve(),a.B.paused&&!a.$?a.B.play():a.B.pause())}function Lw(a){a.l&&a.l.isPaused()?a.l.play():a.l&&a.l.pause()}
|
|
977
|
+
function hx(a){a.g=R("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.B.duration&&(a.Mb()?a.J=Date.now():(ox(a,b),b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){px(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.Yd()&&a.Je()})}function kx(a){var b=R("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.fb=new Nw(b,a);a.H.push(a.fb)}
|
|
978
|
+
function jx(a){var b=R("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function qx(a){a.K=R("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.l&&a.l.isLinear();X(a.K,b);a.N.appendChild(a.K);b=new Iw(a.K,a);a.H.push(b);b=new Hw(a.K,a);a.H.push(b)}
|
|
979
|
+
function lx(a){a.ba=R("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=R("div");b.classList.add("shaka-spinner");a.ba.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");
|
|
977
980
|
b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
|
|
978
|
-
function
|
|
979
|
-
(c=
|
|
980
|
-
function
|
|
981
|
-
a.h.o(a.C,"caststatuschanged",function(){
|
|
982
|
-
case "End":a.m&&
|
|
983
|
-
function
|
|
984
|
-
function
|
|
985
|
-
function
|
|
986
|
-
function
|
|
987
|
-
function
|
|
988
|
-
function
|
|
989
|
-
function
|
|
990
|
-
function
|
|
981
|
+
function mx(a){a.N=R("div");a.N.classList.add("shaka-bottom-controls");a.N.classList.add("shaka-no-propagation");a.g.appendChild(a.N);a.h.o(a.N,"click",function(d){d.target.closest(".shaka-overflow-button")||a.dc()});qx(a);a.X=R("div");a.X.classList.add("shaka-controls-button-panel");a.X.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.X.classList.add("shaka-tooltips-on");a.N.appendChild(a.X);for(var b=r(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,gx.get(c)?
|
|
982
|
+
(c=gx.get(c).create(a.X,a),a.H.push(c)):Ta("Unrecognized control panel element requested:",c)}function nx(a){if(a.i.addSeekBar)a.m=rx.create(a.N,a),a.H.push(a.m);else{a=r(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function ix(a){a.P=R("div");a.P.classList.add("shaka-client-side-ad-container");X(a.P,!1);a.h.o(a.P,"click",function(){px(a)});a.j.appendChild(a.P)}
|
|
983
|
+
function cx(a){a.h.o(a.F,"buffering",function(){a.U&&X(a.ba,a.F.Jc())});a.U&&X(a.ba,a.F.Jc());a.h.o(window,"keydown",function(b){sx(a,b)});a.h.o(window,"click",function(){return a.dc()});a.h.o(a,"submenuopen",function(){a.dc()});a.h.o(a.B,"play",function(){$w(a)});a.h.o(a.B,"pause",function(){$w(a)});a.h.o(a.j,"mousemove",function(b){ox(a,b)});a.h.o(a.j,"touchmove",function(b){ox(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){ox(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.xa()});
|
|
984
|
+
a.h.o(a.C,"caststatuschanged",function(){dx(a)});a.h.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.g.contains(c)&&ox(a,b);if(a.i.enableKeyboardPlaybackControls)switch(b.key){case "ArrowLeft":a.m&&!d&&(b.preventDefault(),tx(a,a.m.getValue()-5));break;case "ArrowRight":a.m&&!d&&(b.preventDefault(),tx(a,a.m.getValue()+5));break;case "Home":a.m&&tx(a,a.F.Ia().start);break;
|
|
985
|
+
case "End":a.m&&tx(a,a.F.Ia().end);break;case " ":e&&ux(a)}});a.h.o(a.j,"keyup",function(b){a.ma["delete"](b.key)});a.h.o(a.Wa,"ad-started",function(b){a.l=b.ad;a.Ef()});a.h.o(a.Wa,"ad-stopped",function(){a.l=null;a.nf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return I(function(b){return u(b,vx(a),0)})});a.h.o(document,"fullscreenchange",function(){a.l&&a.l.resize(a.A.offsetWidth,a.A.offsetHeight)})}
|
|
986
|
+
function vx(a){return I(function(b){return a.B&&0!=a.B.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?u(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?u(b,document.exitFullscreen(),0):b.D(0):b["return"]()})}
|
|
987
|
+
function ox(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),$w(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.ib=!0,a.I.stop(),a.Mb()||(ax(a),$w(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.S(3))}function wx(a){return window.matchMedia("hover: hover").matches?a.vb.some(function(b){return b.matches(":hover")}):!1}
|
|
988
|
+
function $w(a){var b=a.l?a.l.isPaused():!1,c=a.B.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.l||!a.l.isLinear())&&c||a.ib||d||wx(a)?(ax(a),a.g.setAttribute("shown","true"),a.ea.stop()):a.ea.S(a.i.fadeDelay)}function px(a){a.U&&(a.$c()?a.I.xa():a.i.singleClickForPlayAndPause&&ux(a))}function ux(a){a.l&&a.l.isLinear()?Lw(a):Mw(a)}
|
|
989
|
+
function dx(a){var b=a.C.qa();a.dispatchEvent(new M("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Mb=function(){return this.U?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function tx(a,b){a.m.changeTo(b);a.Mb()&&ax(a)}
|
|
990
|
+
function ax(a){if(a.m)if(a.m.setValue(a.B.currentTime),a.m.update(),a.m.isShowing())for(var b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new M("timeandseekrangeupdated"))}
|
|
991
|
+
function sx(a,b){a.ma.add(b.key);var c=a.$c();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),$w(a),a.h.o(window,"mousedown",function(){a.h.nc(window,"mousedown")}));"Escape"==b.key&&a.I.xa();c&&a.ma.has("Tab")&&xx(a,b)}
|
|
992
|
+
function xx(a,b){var c=a.G.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.ma.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
|
|
993
|
+
function bx(){var a=new Ub("en");a.ia("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..."],
|
|
991
994
|
["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"],
|
|
992
995
|
["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"],
|
|
993
996
|
["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"],
|
|
994
997
|
["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"],
|
|
995
|
-
["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.
|
|
998
|
+
["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.ia("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"],
|
|
996
999
|
["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"],
|
|
997
1000
|
["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"]]));
|
|
998
|
-
a.
|
|
1001
|
+
a.ia("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"],
|
|
999
1002
|
["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"],
|
|
1000
|
-
["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.
|
|
1003
|
+
["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ia("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"],["EXIT_FULL_SCREEN",
|
|
1001
1004
|
"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","Playback speed"],
|
|
1002
|
-
["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.
|
|
1005
|
+
["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.ia("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","Enviar..."],
|
|
1003
1006
|
["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","M\u00e1s ajustes"],
|
|
1004
1007
|
["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"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE",
|
|
1005
|
-
"Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.
|
|
1008
|
+
"Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ia("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"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],
|
|
1006
1009
|
["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"],["ON","Activado"],["PAUSE","Detener"],
|
|
1007
|
-
["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"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.
|
|
1010
|
+
["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"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ia("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],
|
|
1008
1011
|
["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"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"],
|
|
1009
1012
|
["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","Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND",
|
|
1010
|
-
"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.
|
|
1013
|
+
"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.ia("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS",
|
|
1011
1014
|
"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","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],
|
|
1012
1015
|
["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","Indeterminata"],["UNMUTE","Riattiva audio"],
|
|
1013
|
-
["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.
|
|
1016
|
+
["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ia("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"],["ENTER_PICTURE_IN_PICTURE",
|
|
1014
1017
|
"\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"],["LANGUAGE","\u8a00\u8a9e"],
|
|
1015
1018
|
["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"],["RESOLUTION","\u89e3\u50cf\u5ea6"],
|
|
1016
|
-
["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.
|
|
1019
|
+
["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.ia("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],
|
|
1017
1020
|
["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","PIP \ubaa8\ub4dc \uc885\ub8cc"],
|
|
1018
1021
|
["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"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],
|
|
1019
|
-
["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","\ubcfc\ub968"]]));a.
|
|
1022
|
+
["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","\ubcfc\ub968"]]));a.ia("nl",new Map([["AD_DURATION",
|
|
1020
1023
|
"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"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN",
|
|
1021
1024
|
"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"],["SKIP_TO_LIVE","Doorgaan naar live"],
|
|
1022
|
-
["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.
|
|
1025
|
+
["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ia("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","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],
|
|
1023
1026
|
["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"],["MUTE","Wycisz"],["NOT_APPLICABLE",
|
|
1024
1027
|
"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","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE",
|
|
1025
|
-
"Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.
|
|
1028
|
+
"Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ia("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","Sair do modo tela cheia"],["EXIT_LOOP_MODE",
|
|
1026
1029
|
"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","Picture-in-picture"],["PLAY","Reproduzir"],
|
|
1027
|
-
["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.
|
|
1030
|
+
["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.ia("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"],
|
|
1028
1031
|
["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"],
|
|
1029
1032
|
["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"],
|
|
1030
1033
|
["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",
|
|
1031
1034
|
"\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",
|
|
1032
1035
|
"\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"],
|
|
1033
1036
|
["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"],
|
|
1034
|
-
["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.
|
|
1037
|
+
["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.ia("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"],
|
|
1035
1038
|
["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"],
|
|
1036
1039
|
["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"],
|
|
1037
1040
|
["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"],
|
|
1038
1041
|
["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"],
|
|
1039
1042
|
["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"],
|
|
1040
|
-
["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.
|
|
1043
|
+
["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.ia("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"],
|
|
1041
1044
|
["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"],
|
|
1042
|
-
["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.
|
|
1045
|
+
["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.ia("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
|
|
1043
1046
|
["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"],
|
|
1044
1047
|
["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"],
|
|
1045
|
-
["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.
|
|
1048
|
+
["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.ia("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
|
|
1046
1049
|
["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"],
|
|
1047
1050
|
["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"],
|
|
1048
|
-
["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.Xe(navigator.languages||[]);return a}J("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.
|
|
1049
|
-
Z.prototype.toggleFullScreen=Z.prototype.
|
|
1050
|
-
Z.prototype.getClientSideAdContainer=Z.prototype.
|
|
1051
|
-
Z.prototype.setEnabledNativeControls=Z.prototype.
|
|
1052
|
-
this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);
|
|
1053
|
-
d.stopPropagation()});this.eventManager.o(this.g,"click",function(){
|
|
1054
|
-
function
|
|
1055
|
-
J("shaka.ui.OverflowMenu",
|
|
1056
|
-
this.i=R("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);
|
|
1057
|
-
c.player.lf()==
|
|
1058
|
-
|
|
1059
|
-
q.getConfiguration=function(){var a=
|
|
1060
|
-
function
|
|
1061
|
-
"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:"",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)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},trackLabelFormat:
|
|
1051
|
+
["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.Xe(navigator.languages||[]);return a}J("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Mb;Z.prototype.hideAdUI=Z.prototype.nf;Z.prototype.showAdUI=Z.prototype.Ef;
|
|
1052
|
+
Z.prototype.toggleFullScreen=Z.prototype.Je;Z.prototype.isFullScreenEnabled=Z.prototype.Xd;Z.prototype.isFullScreenSupported=Z.prototype.Yd;Z.prototype.hideSettingsMenus=Z.prototype.dc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.$c;Z.prototype.setLastTouchEventTime=Z.prototype.Cf;Z.prototype.getDisplayTime=Z.prototype.kf;Z.prototype.isCastAllowed=Z.prototype.Eg;Z.prototype.setSeeking=Z.prototype.De;Z.prototype.isSeeking=Z.prototype.Gg;Z.prototype.getConfig=Z.prototype.dg;
|
|
1053
|
+
Z.prototype.getClientSideAdContainer=Z.prototype.cg;Z.prototype.getServerSideAdContainer=Z.prototype.vg;Z.prototype.getControlsContainer=Z.prototype.fg;Z.prototype.getLocalPlayer=Z.prototype.kg;Z.prototype.getPlayer=Z.prototype.bc;Z.prototype.getLocalVideo=Z.prototype.lg;Z.prototype.getVideo=Z.prototype.Bb;Z.prototype.getVideoContainer=Z.prototype.Bg;Z.prototype.getLocalization=Z.prototype.mg;Z.prototype.getCastProxy=Z.prototype.$f;Z.prototype.getAd=Z.prototype.getAd;
|
|
1054
|
+
Z.prototype.setEnabledNativeControls=Z.prototype.Bf;Z.prototype.setEnabledShakaControls=Z.prototype.ze;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Hg;Z.prototype.allowCast=Z.prototype.Pf;Z.registerSeekBar=function(a){rx=a};Z.registerElement=fx;Z.prototype.destroy=Z.prototype.destroy;var gx=new Map,rx=new Zw;function yx(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=bk();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=R("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");
|
|
1055
|
+
this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);zx(this);this.eventManager.o(this.localization,"locale-updated",function(){Ax(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ax(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&X(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){X(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){X(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Cf(Date.now());
|
|
1056
|
+
d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Bx(c)});Ax(this);this.ad&&this.ad.isLinear()&&X(this.g,!1)}qa(yx,W);yx.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Cx(a,b){Dx.set(a,b)}
|
|
1057
|
+
function zx(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Dx.get(c)?(c=Dx.get(c),a.i.push(c.create(a.h,a.controls))):Ta("Unrecognized overflow menu element requested:",c)}function Bx(a){if(a.controls.$c())a.controls.dc();else{X(a.h,!0);$w(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};hb(a.h.childNodes,b)&&ib(a.h.childNodes,b)[0].focus()}}function Ax(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
|
|
1058
|
+
J("shaka.ui.OverflowMenu",yx);yx.registerElement=Cx;function Ex(){}Ex.prototype.create=function(a,b){return new yx(a,b)};fx("overflow_menu",new Ex);var Dx=new Map;function Fx(a,b){W.call(this,a,b);var c=this;this.g=bk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=R("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");var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");d.appendChild(this.j);
|
|
1059
|
+
this.i=R("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);Gx(this);Hx(this);this.eventManager.o(this.localization,"locale-updated",function(){Gx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Gx(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});d=this.controls.Bb();this.eventManager.o(d,"webkitplaybacktargetavailabilitychanged",function(e){var f=
|
|
1060
|
+
c.player.lf()==dm;X(c.g,"available"==e.availability&&f)});this.eventManager.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){Hx(c)})}qa(Fx,W);function Hx(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Gx(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}J("shaka.ui.AirPlayButton",Fx);function Ix(){}Ix.prototype.create=function(a,b){return new Fx(a,b)};Cx("airplay",new Ix);
|
|
1061
|
+
fx("airplay",new Ix);function Jx(a,b,c){this.i=a;this.h=Kx(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.Zd()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.Ge(b);b.ui=this;c.ui=this}q=Jx.prototype;q.destroy=function(){var a=this;return I(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;z(b)})};q.Zd=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Hd()&&1<navigator.maxTouchPoints};
|
|
1062
|
+
q.getConfiguration=function(){var a=Kx(this);Gk(a,this.h,Kx(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Hk(a,b));Gk(this.h,a,Kx(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new M("uiupdated"))};q.eg=function(){return this.g};q.hh=function(a){this.g.ze(a)};
|
|
1063
|
+
function Kx(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",
|
|
1064
|
+
"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:"",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)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},trackLabelFormat:Lx,fadeDelay:0,
|
|
1062
1065
|
doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.Zd()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
|
|
1063
|
-
function
|
|
1064
|
-
case 4:if(k.done){
|
|
1065
|
-
function
|
|
1066
|
-
function
|
|
1067
|
-
k=h.next();case 2:if(k.done){m.D(0);break}l=k.value;B(m,5);return u(m,d.g.
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
break;case 3:
|
|
1071
|
-
function
|
|
1072
|
-
function
|
|
1073
|
-
function
|
|
1074
|
-
R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function
|
|
1075
|
-
function(){
|
|
1076
|
-
function
|
|
1077
|
-
d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);
|
|
1078
|
-
function
|
|
1079
|
-
function
|
|
1080
|
-
this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.
|
|
1081
|
-
c.controls.
|
|
1082
|
-
J("shaka.ui.FullscreenButton",
|
|
1083
|
-
d.appendChild(this.l);this.g.appendChild(d);
|
|
1084
|
-
function
|
|
1085
|
-
this.eventManager.o(this.video,"volumechange",function(){
|
|
1086
|
-
function
|
|
1087
|
-
this.h=R("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);this.g.appendChild(d);
|
|
1066
|
+
function Mx(){var a,b,c,d,e,f,g,h,k,l,m,n,p;return I(function(t){switch(t.g){case 1:Kt();if(!ll())return Nx("shaka-ui-load-failed",Ox),t["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){t.D(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),Px(f,e));t.D(2);break}h=r(a);k=h.next();
|
|
1067
|
+
case 4:if(k.done){t.D(2);break}l=k.value;if(l.ui){t.D(5);break}m=null;n=r(b);for(d=n.next();!d.done;d=n.next())if(p=d.value,p.parentElement==l){m=p;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));B(t,7);return u(t,Px(l,m),9);case 9:va(t,5);break;case 7:return E(t),Nx("shaka-ui-load-failed",Qx),t["return"]();case 5:k=h.next();t.D(4);break;case 2:Nx("shaka-ui-loaded"),z(t)}})}
|
|
1068
|
+
function Nx(a,b){var c=null;void 0!=b&&(c={reasonCode:b});c=new CustomEvent(a,{detail:c});document.dispatchEvent(c)}
|
|
1069
|
+
function Px(a,b){var c,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:c=new S(b);d=new Jx(c,a,b);e="";a.dataset&&a.dataset.shakaPlayerCastReceiverId?e=a.dataset.shakaPlayerCastReceiverId:b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId);e.length&&d.configure({castReceiverAppId:e});b.controls&&d.g.Bf(!0);if(f=b.getAttribute("src"))g=document.createElement("source"),g.setAttribute("src",f),b.appendChild(g),b.removeAttribute("src");h=r(b.querySelectorAll("source"));
|
|
1070
|
+
k=h.next();case 2:if(k.done){m.D(0);break}l=k.value;B(m,5);return u(m,d.g.bc().load(l.getAttribute("src")),7);case 7:m.D(0);break;case 5:E(m);case 3:k=h.next(),m.D(2)}})}J("shaka.ui.Overlay",Jx);Jx.prototype.setEnabled=Jx.prototype.hh;Jx.prototype.getControls=Jx.prototype.eg;Jx.prototype.configure=Jx.prototype.configure;Jx.prototype.getConfiguration=Jx.prototype.getConfiguration;Jx.prototype.isMobile=Jx.prototype.Zd;Jx.prototype.destroy=Jx.prototype.destroy;var Lx=0;
|
|
1071
|
+
Jx.TrackLabelFormat={LANGUAGE:Lx,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Ox=0,Qx=1;Jx.FailReasonCode={NO_BROWSER_SUPPORT:Ox,PLAYER_FAILED_TO_LOAD:Qx};"complete"==document.readyState?I(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Mx();z(a)}):window.addEventListener("load",Mx);function Rx(a,b,c,d,e,f,g){function h(C,A){return C+": "+A}function k(C){return"variant"==C.type?C.audioRoles?C.audioRoles.join(", "):void 0:C.roles.join(", ")}var l=a.find(function(C){return 1==C.active}),m=Cw(b);ck(b);b.appendChild(m);m=new Map;for(var n=r(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";n={};a=r(a);for(p=a.next();!p.done;n={Ua:n.Ua},p=a.next()){n.Ua=p.value;p=n.Ua.language;var t=
|
|
1072
|
+
n.Ua.forced,w=f.resolve(Yb.Kf),y=k(n.Ua),x=h(p,y);if(!m.has(x)){m.add(x);var v=bk();v.addEventListener("click",function(C){return function(){c(C.Ua)}}(n));var D=R("span");v.appendChild(D);D.textContent=Sx(p,f);switch(g){case Lx:t&&(D.textContent+=" ("+w+")");break;case 1:y?D.textContent=y:(Ta("Track #"+n.Ua.id+" does not have a role, but the UI is configured to only show role."),D.textContent="?");t&&(D.textContent+=" ("+w+")");break;case 2:y&&(D.textContent+=": "+y);t&&(D.textContent+=" ("+w+")");
|
|
1073
|
+
break;case 3:n.Ua.label?D.textContent=n.Ua.label:(Ta("Track #"+n.Ua.id+" does not have a label, but the UI is configured to only show labels."),D.textContent="?")}d&&x==l&&(v.appendChild(Fw()),D.classList.add("shaka-chosen-item"),v.ariaSelected="true",e.textContent=D.textContent);b.appendChild(v)}}}
|
|
1074
|
+
function Sx(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=Qb(a);return a in yw?yw[a].s:c in yw?yw[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Tx(a,b,c){W.call(this,a,b);var d=this;Ux(this,c);Vx(this);Wx(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new M("submenuopen")),X(d.menu,!0),Ew(d.menu)):X(d.menu,!1)})}qa(Tx,W);
|
|
1075
|
+
function Ux(a,b){a.button=bk();a.button.classList.add("shaka-overflow-button");a.icon=R("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=R("label");c.classList.add("shaka-overflow-button-label");c.classList.add("shaka-overflow-menu-only");a.nameSpan=R("span");c.appendChild(a.nameSpan);a.currentSelection=R("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
|
|
1076
|
+
function Vx(a){a.menu=R("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=bk();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.dc()});var b=R("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
|
|
1077
|
+
R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function Wx(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){X(a.parent,!0);a.parent.childNodes[0].focus();$w(a.controls)}))}J("shaka.ui.SettingsMenu",Tx);function Xx(a,b){Tx.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(){Yx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Yx(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Za().length;X(c.button,d);Zx(c)});this.eventManager.o(this.player,"variantchanged",
|
|
1078
|
+
function(){Zx(c)});Yx(this);Zx(this)}qa(Xx,Tx);function Zx(a){var b=a.player.Za();Rx(b,a.menu,function(c){a.player.Bd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Ew(a.menu);a.controls.dispatchEvent(new M("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
|
|
1079
|
+
function Yx(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")}J("shaka.ui.AudioLanguageSelection",Xx);function $x(){}$x.prototype.create=function(a,b){return new Xx(a,b)};Cx("language",new $x);fx("language",new $x);function ay(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=bk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=R("span");d.appendChild(this.l);this.j=R("span");this.j.classList.add("shaka-current-selection-span");
|
|
1080
|
+
d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);by(this);cy(this);this.eventManager.o(this.localization,"locale-updated",function(){by(c)});this.eventManager.o(this.localization,"locale-changed",function(){by(c)});this.eventManager.o(this.g,"click",function(){dy(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){cy(c)})}qa(ay,W);
|
|
1081
|
+
function dy(a){var b;I(function(c){if(1==c.g){if(a.h.qa())return a.h.Ff(),c.D(0);B(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=E(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));z(c)})}function cy(a){var b=a.h.Ue()&&a.controls.gb,c=a.h.qa();X(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");ey(a)}
|
|
1082
|
+
function ey(a){a.j.textContent=a.h.qa()?a.h.yd():a.localization.resolve("OFF")}function by(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");ey(a)}J("shaka.ui.CastButton",ay);function fy(){}fy.prototype.create=function(a,b){return new ay(a,b)};Cx("cast",new fy);fx("cast",new fy);function gy(a,b){W.call(this,a,b);var c=this;this.g=bk();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);hy(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){hy(c)});this.eventManager.o(this.localization,"locale-changed",function(){hy(c)});
|
|
1083
|
+
this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Le(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(gy,W);function hy(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}J("shaka.ui.FastForwardButton",gy);function iy(){}iy.prototype.create=function(a,b){return new gy(a,b)};fx("fast_forward",new iy);function jy(a,b){W.call(this,a,b);var c=this;this.h=this.controls.A;this.g=bk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");ky(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);ly(this);this.eventManager.o(this.localization,"locale-updated",function(){ly(c)});this.eventManager.o(this.localization,"locale-changed",function(){ly(c)});this.eventManager.o(this.g,"click",function(){return I(function(d){return u(d,
|
|
1084
|
+
c.controls.Je(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.Xd()?"fullscreen_exit":"fullscreen";ly(c)});this.eventManager.o(this.h,"loadedmetadata",function(){ky(c)});this.eventManager.o(this.h,"loadeddata",function(){ky(c)})}qa(jy,W);function ky(a){a.controls.Yd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function ly(a){a.g.ariaLabel=a.localization.resolve(a.controls.Xd()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
|
|
1085
|
+
J("shaka.ui.FullscreenButton",jy);function my(){}my.prototype.create=function(a,b){return new jy(a,b)};fx("fullscreen",new my);function ny(a,b){W.call(this,a,b);var c=this;this.g=bk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("LOOP");d.appendChild(this.j);this.l=R("span");this.l.classList.add("shaka-current-selection-span");
|
|
1086
|
+
d.appendChild(this.l);this.g.appendChild(d);oy(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){oy(c)});this.eventManager.o(this.localization,"locale-changed",function(){oy(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.xa();c.h.ka(1)});this.m=this.video.loop;this.h=new P(function(){c.m!=c.video.loop&&(oy(c),c.m=c.video.loop)});this.h.ka(1)}qa(ny,W);ny.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
|
|
1087
|
+
function oy(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")}J("shaka.ui.LoopButton",ny);function py(){}py.prototype.create=function(a,b){return new ny(a,b)};Cx("loop",new py);fx("loop",new py);Qw("loop",new py);function qy(a,b){W.call(this,a,b);var c=this;this.g=bk();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);ry(this);sy(this);this.eventManager.o(this.localization,"locale-updated",function(){ry(c)});this.eventManager.o(this.localization,"locale-changed",function(){ry(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});
|
|
1088
|
+
this.eventManager.o(this.video,"volumechange",function(){ry(c);sy(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){ry(c);sy(c)});this.eventManager.o(this.adManager,"ad-muted",function(){ry(c);sy(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;ry(c);sy(c)})}qa(qy,W);function ry(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
|
|
1089
|
+
function sy(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}J("shaka.ui.MuteButton",qy);function ty(){}ty.prototype.create=function(a,b){return new qy(a,b)};fx("mute",new ty);function uy(a,b){W.call(this,a,b);var c=this;this.l=this.controls.A;this.g=bk();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);
|
|
1090
|
+
this.h=R("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);this.g.appendChild(d);vy(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||X(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){vy(c)});this.eventManager.o(this.localization,"locale-changed",function(){vy(c)});this.eventManager.o(this.g,"click",function(){wy(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
|
|
1088
1091
|
"branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("ON")});this.eventManager.o(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.ariaLabel=c.localization.resolve("ENTER_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("OFF")});this.eventManager.o(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!1):
|
|
1089
|
-
document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){
|
|
1090
|
-
function
|
|
1091
|
-
function
|
|
1092
|
-
"x",d]}));
|
|
1093
|
-
function
|
|
1094
|
-
"x")}function
|
|
1095
|
-
!1):(
|
|
1096
|
-
"abrstatuschanged",function(){
|
|
1097
|
-
function
|
|
1098
|
-
for(var e={},f=
|
|
1099
|
-
a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=
|
|
1100
|
-
a.currentSelection.textContent);a.menu.appendChild(e);
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1103
|
-
this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.
|
|
1104
|
-
d:(c.i.stop(),X(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){
|
|
1105
|
-
"click",function(){c.ad.skip()});this.ad&&
|
|
1106
|
-
J("shaka.ui.SmallPlayButton",
|
|
1092
|
+
document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){xy(c)})}qa(uy,W);function wy(a){var b;I(function(c){if(1==c.g)return B(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return va(c,0);b=E(c);a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));z(c)})}
|
|
1093
|
+
function vy(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
|
|
1094
|
+
function xy(a){I(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return X(a.g,!1),b.D(0);if(!a.player||!a.player.ec())return X(a.g,!0),b.D(0);X(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}J("shaka.ui.PipButton",uy);function yy(){}yy.prototype.create=function(a,b){return new uy(a,b)};Cx("picture_in_picture",new yy);fx("picture_in_picture",new yy);Qw("picture_in_picture",new yy);function zy(a,b){Tx.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(){Ay(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ay(c)});this.eventManager.o(this.player,"ratechange",function(){By(c,c.player.zb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
|
|
1095
|
+
"x",d]}));Ay(this);Cy(this);By(this,this.player.zb())}qa(zy,Tx);function Ay(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")}
|
|
1096
|
+
function By(a,b){var c=Dw(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(Fw()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
|
|
1097
|
+
"x")}function Cy(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={uc:b.uc},d=c.next()){b.uc=d.value;d=bk();var e=R("span");e.textContent=b.uc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.uc);a.video.defaultPlaybackRate=a.g.get(f.uc)}}(b));a.menu.appendChild(d)}Ew(a.menu)}J("shaka.ui.PlaybackRateSelection",zy);function Dy(){}Dy.prototype.create=function(a,b){return new zy(a,b)};Cx("playback_rate",new Dy);fx("playback_rate",new Dy);function Ey(a,b){W.call(this,a,b);var c=this;this.g=bk();this.g.classList.add("shaka-current-time");Fy(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.Ia().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.kf(),f=c.video.duration,g=c.player.Ia(),h=g.end-g.start;c.player.T()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Fy(c,"- "+Gw(e,f)),c.g.disabled=
|
|
1098
|
+
!1):(Fy(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Gw(e,d),f&&(e+=" / "+Gw(f,d)),Fy(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.T()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}qa(Ey,W);function Fy(a,b){b!=a.g.textContent&&(a.g.textContent=b)}J("shaka.ui.PresentationTimeTracker",Ey);function Gy(){}Gy.prototype.create=function(a,b){return new Ey(a,b)};fx("time_and_duration",new Gy);function Hy(a,b){Tx.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(){Iy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Iy(c)});this.eventManager.o(this.player,"variantchanged",function(){Jy(c)});this.eventManager.o(this.player,"trackschanged",function(){Jy(c)});this.eventManager.o(this.player,
|
|
1099
|
+
"abrstatuschanged",function(){Jy(c)});Jy(this)}qa(Hy,Tx);
|
|
1100
|
+
function Jy(a){var b=a.player.Za(),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){return(a.player.ec()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.ec()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=Cw(a.menu);ck(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
|
|
1101
|
+
for(var e={},f=r(b),g=f.next();!g.done;e={Xb:e.Xb},g=f.next()){e.Xb=g.value;g=bk();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Xb;a.player.configure({abr:{enabled:!1}});a.player.xe(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=R("span");h.textContent=a.player.ec()?Math.round(e.Xb.bandwidth/1E3)+" kbits/s":e.Xb.height+"p";g.appendChild(h);d||e.Xb!=c||(g.ariaSelected="true",g.appendChild(Fw()),h.classList.add("shaka-chosen-item"),
|
|
1102
|
+
a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=bk();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Jy(a)});a.g=R("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(Fw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
|
|
1103
|
+
a.currentSelection.textContent);a.menu.appendChild(e);Ew(a.menu);a.controls.dispatchEvent(new M("resolutionselectionupdated"));Iy(a)}
|
|
1104
|
+
function Iy(a){var b=a.player.ec()?"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"))}J("shaka.ui.ResolutionSelection",Hy);function Ky(){}
|
|
1105
|
+
Ky.prototype.create=function(a,b){return new Hy(a,b)};Cx("quality",new Ky);fx("quality",new Ky);function Ly(a,b){W.call(this,a,b);var c=this;this.g=bk();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);My(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){My(c)});this.eventManager.o(this.localization,"locale-changed",function(){My(c)});
|
|
1106
|
+
this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Le(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(Ly,W);function My(a){a.g.ariaLabel=a.localization.resolve("REWIND")}J("shaka.ui.RewindButton",Ly);function Ny(){}Ny.prototype.create=function(a,b){return new Ly(a,b)};fx("rewind",new Ny);function Oy(a,b){W.call(this,a,b);var c=this;this.j=R("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=R("div");this.h.classList.add("shaka-skip-ad-counter");X(this.h,!1);this.j.appendChild(this.h);this.g=bk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;X(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Py(this);this.i=new P(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
|
|
1107
|
+
d:(c.i.stop(),X(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Py(c)});this.eventManager.o(this.localization,"locale-changed",function(){Py(c)});this.eventManager.o(this.adManager,"ad-started",function(){Qy(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),X(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;X(c.g,!1);X(c.h,!1)});this.eventManager.o(this.g,
|
|
1108
|
+
"click",function(){c.ad.skip()});this.ad&&Qy(this)}qa(Oy,W);Oy.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function Py(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Qy(a){a.ad.isSkippable()&&(X(a.g,!0),X(a.h,!0),a.h.textContent="",a.i.xa(),a.i.ka(.5))}J("shaka.ui.SkipAdButton",Oy);function Ry(a,b){Kw.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()}qa(Ry,Kw);Ry.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};Ry.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)}};
|
|
1109
|
+
J("shaka.ui.SmallPlayButton",Ry);function Sy(){}Sy.prototype.create=function(a,b){return new Ry(a,b)};fx("play_pause",new Sy);function Ty(a,b){W.call(this,a,b);var c=R("div");c.classList.add("shaka-spacer");c.ariaHidden="true";this.parent.appendChild(c)}qa(Ty,W);J("shaka.ui.Spacer",Ty);function Uy(){}Uy.prototype.create=function(a,b){return new Ty(a,b)};fx("spacer",new Uy);function Vy(a,b){function c(l){return Gw(h.h[l],!1)+" (m)"}function d(l){return Math.round(h.h[l]/1E3)+" (kbits/s)"}function e(l){return h.h[l].toFixed(2)+" (s)"}function f(l){return h.h[l]+" (frames)"}function g(l){return h.h[l]+" (px)"}W.call(this,a,b);var h=this;this.i=bk();this.i.classList.add("shaka-statistics-button");this.j=R("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);var k=R("label");k.classList.add("shaka-overflow-button-label");
|
|
1107
1110
|
this.A=R("span");k.appendChild(this.A);this.m=R("span");this.m.classList.add("shaka-current-selection-span");k.appendChild(this.m);this.i.appendChild(k);this.parent.appendChild(this.i);this.g=R("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.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
|
|
1108
|
-
this.B={};this.C={width:g,height:g,completionPercent:function(l){return h.h[l]+" (%)"},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};this.l=new P(function(){h.h=h.player.getStats();for(var l=
|
|
1109
|
-
"locale-updated",function(){
|
|
1110
|
-
function
|
|
1111
|
-
function
|
|
1112
|
-
|
|
1113
|
-
"texttrackvisibility",function(){
|
|
1114
|
-
function
|
|
1115
|
-
function
|
|
1116
|
-
a.currentSelection.textContent);
|
|
1117
|
-
function
|
|
1118
|
-
this.eventManager.o(this.localization,"locale-changed",function(){return
|
|
1119
|
-
function
|
|
1111
|
+
this.B={};this.C={width:g,height:g,completionPercent:function(l){return h.h[l]+" (%)"},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};this.l=new P(function(){h.h=h.player.getStats();for(var l=r(h.F),m=l.next();!m.done;m=l.next())m=m.value,h.B[m].textContent=h.C[m](m)});Wy(this);Xy(this);this.eventManager.o(this.localization,
|
|
1112
|
+
"locale-updated",function(){Wy(h)});this.eventManager.o(this.localization,"locale-changed",function(){Wy(h)});this.eventManager.o(this.i,"click",function(){X(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),X(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),X(h.g,!1));Wy(h)})}qa(Vy,W);
|
|
1113
|
+
function Wy(a){a.A.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")}
|
|
1114
|
+
function Xy(a){for(var b=r(a.controls.i.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=R("div"),h=R("label");h.textContent=c+":";g.appendChild(h);h=R("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ta("Unrecognized statistic element:",c)}Vy.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};J("shaka.ui.StatisticsButton",Vy);function Yy(){}
|
|
1115
|
+
Yy.prototype.create=function(a,b){return new Vy(a,b)};Cx("statistics",new Yy);Qw("statistics",new Yy);function Zy(a,b){Tx.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.Nb()?this.button.ariaPressed="true":this.button.ariaPressed="false";$y(this);this.eventManager.o(this.localization,"locale-updated",function(){az(c);bz(c)});this.eventManager.o(this.localization,"locale-changed",function(){az(c);bz(c)});this.eventManager.o(this.player,
|
|
1116
|
+
"texttrackvisibility",function(){cz(c);bz(c)});this.eventManager.o(this.player,"textchanged",function(){bz(c)});this.eventManager.o(this.player,"trackschanged",function(){dz(c)});cz(this);az(this);bz(this);dz(this)}qa(Zy,Tx);function $y(a){var b=bk();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Fw());a.g=R("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
|
|
1117
|
+
function cz(a){a.player.Nb()?(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption",a.button.ariaPressed="false");a.controls.dispatchEvent(new M("captionselectionupdated"))}
|
|
1118
|
+
function bz(a){var b=a.player.Ab();Rx(b,a.menu,function(c){return ez(a,c)},a.player.Nb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=bk();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Fe(!1);bz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Nb()||(b.ariaSelected="true",b.appendChild(Fw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
|
|
1119
|
+
a.currentSelection.textContent);Ew(a.menu);a.controls.dispatchEvent(new M("captionselectionupdated"))}function ez(a,b){return I(function(c){a.player.we(b);return u(c,a.player.Fe(!0),0)})}function az(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")}
|
|
1120
|
+
function dz(a){var b=0<a.player.Ab().length;X(a.button,b);bz(a)}J("shaka.ui.TextSelection",Zy);function fz(){}fz.prototype.create=function(a,b){return new Zy(a,b)};Cx("captions",new fz);fx("captions",new fz);function gz(a,b){Sw.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.eventManager.o(this.video,"volumechange",function(){return hz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return iz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return iz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return hz(c)});this.eventManager.o(this.localization,"locale-updated",function(){return jz(c)});
|
|
1121
|
+
this.eventManager.o(this.localization,"locale-changed",function(){return jz(c)});hz(this);jz(this);if(this.ad)this.onChange()}qa(gz,Sw);gz.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function hz(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);kz(a)}function iz(a){var b=a.ad.getVolume();a.setValue(b);kz(a)}
|
|
1122
|
+
function kz(a){var b=a.h.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function jz(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}J("shaka.ui.VolumeBar",gz);function lz(){}lz.prototype.create=function(a,b){return new gz(a,b)};fx("volume",new lz);}).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})();
|
|
1120
1123
|
|
|
1121
1124
|
//# sourceMappingURL=shaka-player.ui.map
|