shaka-player 4.3.4 → 4.3.6
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/.github/workflows/build-and-test.yaml +4 -4
- package/.github/workflows/demo-version-index.yaml +6 -0
- package/.github/workflows/selenium-lab-tests.yaml +78 -17
- package/.github/workflows/update-screenshots.yaml +142 -0
- package/AUTHORS +2 -1
- package/CHANGELOG.md +56 -0
- package/CONTRIBUTORS +4 -1
- package/demo/common/asset.js +15 -0
- package/demo/common/assets.js +4 -2
- package/demo/common/message_ids.js +1 -0
- package/demo/custom.js +19 -0
- package/demo/locales/en.json +1 -0
- package/demo/locales/source.json +4 -0
- package/demo/main.js +14 -0
- package/dist/controls.css +2 -2
- package/dist/controls.css.map +1 -1
- package/dist/demo.compiled.debug.js +184 -311
- package/dist/demo.compiled.debug.map +4 -4
- package/dist/demo.compiled.js +184 -311
- package/dist/demo.compiled.map +4 -4
- package/dist/deps.js +2 -2
- package/dist/locales.js +29 -29
- package/dist/receiver.compiled.debug.js +51 -80
- package/dist/receiver.compiled.debug.map +4 -4
- package/dist/receiver.compiled.js +51 -80
- package/dist/receiver.compiled.map +4 -4
- package/dist/shaka-player.compiled.d.ts +19 -3
- package/dist/shaka-player.compiled.debug.d.ts +19 -3
- package/dist/shaka-player.compiled.debug.externs.js +20 -14
- package/dist/shaka-player.compiled.debug.js +291 -283
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +20 -14
- package/dist/shaka-player.compiled.js +830 -825
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +19 -3
- package/dist/shaka-player.ui.debug.d.ts +19 -3
- package/dist/shaka-player.ui.debug.externs.js +8 -2
- package/dist/shaka-player.ui.debug.js +301 -292
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +8 -2
- package/dist/shaka-player.ui.js +927 -922
- package/dist/shaka-player.ui.map +3 -3
- package/docs/tutorials/a11y.md +0 -4
- package/docs/tutorials/ad_monetization.md +0 -4
- package/docs/tutorials/basic-usage.md +0 -5
- package/docs/tutorials/config.md +0 -5
- package/docs/tutorials/debugging.md +0 -5
- package/docs/tutorials/drm-config.md +0 -5
- package/docs/tutorials/errors.md +94 -0
- package/docs/tutorials/fairplay.md +4 -4
- package/docs/tutorials/index.json +2 -0
- package/docs/tutorials/license-server-auth.md +0 -5
- package/docs/tutorials/license-wrapping.md +0 -5
- package/docs/tutorials/network-and-buffering-config.md +0 -5
- package/docs/tutorials/ui-customization.md +0 -5
- package/docs/tutorials/ui.md +0 -7
- package/docs/tutorials/welcome.md +0 -5
- package/docs/tutorials/widevine-service-certs.md +45 -0
- package/externs/ima.js +9 -0
- package/externs/network_information.js +7 -2
- package/externs/shaka/abr_manager.js +6 -0
- package/externs/shaka/net.js +1 -0
- package/externs/shaka/player.js +13 -7
- package/lib/abr/simple_abr_manager.js +27 -3
- package/lib/ads/client_side_ad_manager.js +11 -5
- package/lib/dash/dash_parser.js +49 -48
- package/lib/debug/log.js +9 -13
- package/lib/hls/hls_parser.js +23 -6
- package/lib/media/drm_engine.js +4 -2
- package/lib/media/media_source_engine.js +27 -9
- package/lib/media/presentation_timeline.js +9 -2
- package/lib/media/segment_index.js +2 -0
- package/lib/media/segment_reference.js +3 -2
- package/lib/media/streaming_engine.js +31 -7
- package/lib/media/transmuxer.js +13 -7
- package/lib/media/video_wrapper.js +3 -3
- package/lib/net/http_fetch_plugin.js +79 -57
- package/lib/net/networking_engine.js +1 -0
- package/lib/offline/indexeddb/storage_mechanism.js +1 -1
- package/lib/player.js +24 -3
- package/lib/polyfill/media_capabilities.js +15 -8
- package/lib/polyfill/mediasource.js +24 -2
- package/lib/text/mp4_vtt_parser.js +4 -0
- package/lib/text/text_engine.js +1 -0
- package/lib/text/ui_text_displayer.js +1 -0
- package/lib/text/vtt_text_parser.js +4 -5
- package/lib/util/manifest_parser_utils.js +1 -2
- package/lib/util/mime_utils.js +12 -1
- package/lib/util/periods.js +5 -5
- package/lib/util/stream_utils.js +28 -16
- package/maintained-branches.md +2 -3
- package/package.json +1 -1
- package/test/dash/dash_parser_live_unit.js +3 -2
- package/test/hls/hls_parser_unit.js +156 -0
- package/test/media/content_workarounds_unit.js +43 -0
- package/test/media/drm_engine_integration.js +4 -17
- package/test/media/streaming_engine_unit.js +6 -1
- package/test/net/networking_engine_unit.js +6 -1
- package/test/player_integration.js +39 -0
- package/test/player_unit.js +57 -0
- package/test/polyfill/media_capabilities_unit.js +22 -22
- package/test/test/assets/text-clip-alt.vtt +63 -0
- package/test/test/util/fake_drm_engine.js +3 -0
- package/test/test/util/fake_media_source_engine.js +4 -0
- package/test/test/util/simple_fakes.js +6 -0
- package/test/test/util/test_scheme.js +9 -14
- package/test/text/mp4_vtt_parser_unit.js +8 -0
- package/test/text/vtt_text_parser_unit.js +26 -2
- package/test/text/web_vtt_layout_integration.js +0 -3
- package/test/util/mime_utils_unit.js +10 -0
- package/ui/less/containers.less +4 -0
package/dist/shaka-player.ui.js
CHANGED
|
@@ -21,58 +21,58 @@ fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("
|
|
|
21
21
|
fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(aa(this))}})}return a});function ha(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
|
|
22
22
|
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 ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ka;
|
|
23
23
|
if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
|
|
24
|
-
function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.
|
|
25
|
-
function sa(a,b){a.i={Ef:b,Nf:!0};a.g=a.m||a.j}qa.prototype.return=function(a){this.i={return:a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}qa.prototype.D=function(a){this.g=a};function
|
|
26
|
-
function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Nf?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 ya(a){this.g=new qa;this.h=a}function za(a,b){ra(a.g);var c=a.g.l;if(c)return
|
|
27
|
-
function
|
|
28
|
-
function
|
|
29
|
-
function G(a){return Fa(new
|
|
24
|
+
function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.uj=b.prototype}function qa(){this.s=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function ra(a){if(a.s)throw new TypeError("Generator is already running");a.s=!0}qa.prototype.B=function(a){this.h=a};
|
|
25
|
+
function sa(a,b){a.i={Ef:b,Nf:!0};a.g=a.m||a.j}qa.prototype.return=function(a){this.i={return:a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}qa.prototype.D=function(a){this.g=a};function A(a){a.g=0}function D(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ta(a){a.m=0;a.j=2}function ua(a,b,c){a.g=b;a.m=c||0}function va(a,b){a.m=b||0;b=a.i.Ef;a.i=null;return b}function wa(a){a.C=[a.i];a.m=0;a.j=0}
|
|
26
|
+
function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Nf?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 ya(a){this.g=new qa;this.h=a}function za(a,b){ra(a.g);var c=a.g.l;if(c)return Aa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ca(a)}
|
|
27
|
+
function Aa(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.s=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.s=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.s=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Nf)throw b.Ef;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
|
|
28
|
+
function Da(a){this.next=function(b){ra(a.g);a.g.l?b=Aa(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ca(a));return b};this.throw=function(b){ra(a.g);a.g.l?b=Aa(a,a.g.l["throw"],b,a.g.B):(sa(a.g,b),b=Ca(a));return b};this.return=function(b){return za(a,b)};this[Symbol.iterator]=function(){return this}}function Fa(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
|
|
29
|
+
function G(a){return Fa(new Da(new ya(a)))}function Ga(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
|
|
30
30
|
fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.s=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=ea.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
|
|
31
31
|
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)}};
|
|
32
32
|
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=ea.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.F=
|
|
33
33
|
function(){if(this.s)return!1;var g=ea.CustomEvent,h=ea.Event,k=ea.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=ea.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.C=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
|
|
34
|
-
b.prototype.J=function(g){var h=this.j();g.od(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(
|
|
35
|
-
break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=r(g),m=l.next();!m.done;m=l.next())d(m.value).od(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function
|
|
34
|
+
b.prototype.J=function(g){var h=this.j();g.od(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(n,t){return"function"==typeof n?function(v){try{l(n(v))}catch(y){m(y)}}:t}var l,m,p=new b(function(n,t){l=n;m=t});this.od(k(g,l),k(h,m));return p};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.od=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
|
|
35
|
+
break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=r(g),m=l.next();!m.done;m=l.next())d(m.value).od(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function p(v){return function(y){n[v]=y;t--;0==t&&l(n)}}var n=[],t=0;do n.push(void 0),t++,d(k.value).od(p(n.length-1),m),k=h.next();
|
|
36
36
|
while(!k.done)})};return b});function Ha(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
|
|
37
37
|
fa("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(!Ha(k,g)){var l=new c;ca(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
|
|
38
|
-
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(
|
|
38
|
+
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(p){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ha(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ha(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Ha(k,
|
|
39
39
|
g)&&Ha(k[g],this.g)};b.prototype.delete=function(k){return d(k)&&Ha(k,g)&&Ha(k[g],this.g)?delete k[g][this.g]:!1};return b});
|
|
40
|
-
fa("Map",function(a){function b(){var h={};return h.
|
|
40
|
+
fa("Map",function(a){function b(){var h={};return h.mb=h.next=h.head=h}function c(h,k){var l=h.g;return ha(function(){if(l){for(;l.head!=h.g;)l=l.mb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ha(h.h,l))for(h=0;h<m.length;h++){var p=m[h];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:h,wa:p}}return{id:l,
|
|
41
41
|
list:m,index:-1,wa: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||
|
|
42
|
-
"t"!=m.value[1]||!l.next().done?!1:!0}catch(
|
|
43
|
-
h.wa.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.
|
|
42
|
+
"t"!=m.value[1]||!l.next().done?!1:!0}catch(p){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.wa?l.wa.value=k:(l.wa={next:this.g,mb:this.g.mb,head:this.g,key:h,value:k},l.list.push(l.wa),this.g.mb.next=l.wa,this.g.mb=l.wa,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.wa&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.wa.mb.next=h.wa.next,h.wa.next.mb=h.wa.mb,
|
|
43
|
+
h.wa.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.mb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).wa};e.prototype.get=function(h){return(h=d(this,h).wa)&&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(),
|
|
44
44
|
m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ia(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}fa("Array.prototype.keys",function(a){return a?a:function(){return Ia(this,function(b){return b})}});
|
|
45
45
|
fa("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||
|
|
46
46
|
f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
|
|
47
47
|
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
|
|
48
48
|
function Ja(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Lf:e,v:f}}return{Lf:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ja(this,b,c).Lf}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
|
|
49
|
-
fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function
|
|
50
|
-
fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==
|
|
51
|
-
var
|
|
49
|
+
fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function La(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+""}
|
|
50
|
+
fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==La(this,b,"includes").indexOf(b,c||0)}});fa("Array.prototype.find",function(a){return a?a:function(b,c){return Ja(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=La(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
|
|
51
|
+
var Ma="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ha(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||Ma});fa("Array.prototype.values",function(a){return a?a:function(){return Ia(this,function(b,c){return c})}});
|
|
52
52
|
fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});fa("Array.prototype.entries",function(a){return a?a:function(){return Ia(this,function(b,c){return[b,c]})}});
|
|
53
|
-
fa("String.prototype.repeat",function(a){return a?a:function(b){var c=
|
|
54
|
-
fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push([d,b[d]]);return c}});var
|
|
55
|
-
function I(a,b){a=a.split(".");var c=
|
|
56
|
-
function
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
fa("String.prototype.repeat",function(a){return a?a:function(b){var c=La(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push(b[d]);return c}});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
|
|
54
|
+
fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push([d,b[d]]);return c}});var Na=this||self;
|
|
55
|
+
function I(a,b){a=a.split(".");var c=Na;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function L(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}
|
|
56
|
+
function Pa(a){var b=new L(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};L.prototype.stopImmediatePropagation=function(){this.g=!0};L.prototype.stopPropagation=function(){};I("shaka.util.FakeEvent",L);
|
|
57
|
+
var Qa={Vh:"abrstatuschanged",Wh:"adaptation",Xh:"buffering",$h:"downloadfailed",ai:"downloadheadersreceived",bi:"drmsessionupdate",ki:"emsg",Ni:"prft",Error:"error",li:"expirationupdated",oi:"gapjumped",si:"loaded",ti:"loading",Bi:"manifestparsed",Ci:"mediaqualitychanged",Metadata:"metadata",Hi:"onstatechange",Ii:"onstateidle",Si:"ratechange",Yi:"segmentappended",Zi:"sessiondata",$i:"stalldetected",aj:"streaming",bj:"textchanged",cj:"texttrackvisibility",dj:"timelineregionadded",ej:"timelineregionenter",
|
|
58
|
+
fj:"timelineregionexit",gj:"trackschanged",lj:"unloading",nj:"variantchanged"};function Ra(){}function Ta(){}function Ua(){}function Wa(a){var b=Ga.apply(1,arguments);Xa.has(a)||(Xa.add(a),Ua.apply(Ra,ia(b)))}function Ya(){}function Za(){}function $a(){}function ab(){}var Xa=new Set;window.console&&(Ua=function(){return console.warn.apply(console,ia(Ga.apply(0,arguments)))},Ta=function(){console.error.apply(console,ia(Ga.apply(0,arguments)))});function bb(){this.g={}}q=bb.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])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function db(){this.ra=new bb;this.Hd=this}db.prototype.addEventListener=function(a,b){this.ra&&this.ra.push(a,b)};db.prototype.removeEventListener=function(a,b){this.ra&&this.ra.remove(a,b)};db.prototype.dispatchEvent=function(a){if(!this.ra)return!0;var b=this.ra.get(a.type)||[],c=this.ra.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.Hd;a.currentTarget=this.Hd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
|
|
59
|
+
db.prototype.release=function(){this.ra=null};function eb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function fb(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function gb(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function hb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
|
|
60
60
|
@license
|
|
61
61
|
Copyright 2008 The Closure Library Authors
|
|
62
62
|
SPDX-License-Identifier: Apache-2.0
|
|
63
63
|
*/
|
|
64
|
-
var
|
|
64
|
+
var ib=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/*
|
|
65
65
|
@license
|
|
66
66
|
Copyright 2006 The Closure Library Authors
|
|
67
67
|
SPDX-License-Identifier: Apache-2.0
|
|
68
68
|
*/
|
|
69
|
-
function
|
|
70
|
-
q.toString=function(){var a=[],b=this.Wa;b&&a.push(
|
|
71
|
-
q.resolve=function(a){var b=this.clone();"data"===b.Wa&&(b=new
|
|
72
|
-
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.Ha=d:c=""!==a.g.toString();c?
|
|
73
|
-
function
|
|
74
|
-
function
|
|
75
|
-
q.set=function(a,b){
|
|
69
|
+
function jb(a){var b;a instanceof jb?(kb(this,a.Wa),this.Tb=a.Tb,this.ab=a.ab,lb(this,a.nc),this.Ha=a.Ha,mb(this,a.g.clone()),this.Hb=a.Hb):a&&(b=String(a).match(ib))?(kb(this,b[1]||"",!0),this.Tb=nb(b[2]||""),this.ab=nb(b[3]||"",!0),lb(this,b[4]),this.Ha=nb(b[5]||"",!0),mb(this,b[6]||"",!0),this.Hb=nb(b[7]||"")):this.g=new ob(null)}q=jb.prototype;q.Wa="";q.Tb="";q.ab="";q.nc=null;q.Ha="";q.Hb="";
|
|
70
|
+
q.toString=function(){var a=[],b=this.Wa;b&&a.push(pb(b,qb,!0),":");if(b=this.ab){a.push("//");var c=this.Tb;c&&a.push(pb(c,qb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.nc;null!=b&&a.push(":",String(b))}if(b=this.Ha)this.ab&&"/"!=b.charAt(0)&&a.push("/"),a.push(pb(b,"/"==b.charAt(0)?rb:sb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Hb)&&a.push("#",pb(b,tb));return a.join("")};
|
|
71
|
+
q.resolve=function(a){var b=this.clone();"data"===b.Wa&&(b=new jb);var c=!!a.Wa;c?kb(b,a.Wa):c=!!a.Tb;c?b.Tb=a.Tb:c=!!a.ab;c?b.ab=a.ab:c=null!=a.nc;var d=a.Ha;if(c)lb(b,a.nc);else if(c=!!a.Ha){if("/"!=d.charAt(0))if(this.ab&&!this.Ha)d="/"+d;else{var e=b.Ha.lastIndexOf("/");-1!=e&&(d=b.Ha.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(""):".."==
|
|
72
|
+
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.Ha=d:c=""!==a.g.toString();c?mb(b,a.g.clone()):c=!!a.Hb;c&&(b.Hb=a.Hb);return b};q.clone=function(){return new jb(this)};function kb(a,b,c){a.Wa=c?nb(b,!0):b;a.Wa&&(a.Wa=a.Wa.replace(/:$/,""))}function lb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.nc=b}else a.nc=null}function mb(a,b,c){b instanceof ob?a.g=b:(c||(b=pb(b,ub)),a.g=new ob(b))}
|
|
73
|
+
function nb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function pb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,vb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function vb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var qb=/[#\/\?@]/g,sb=/[#\?:]/g,rb=/[#\?]/g,ub=/[#\?@]/g,tb=/#/g;function ob(a){this.g=a||null}
|
|
74
|
+
function wb(a){if(!a.Da&&(a.Da={},a.rd=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=ob.prototype;q.Da=null;q.rd=null;q.add=function(a,b){wb(this);this.g=null;var c=this.Da.hasOwnProperty(a)?this.Da[a]:null;c||(this.Da[a]=c=[]);c.push(b);this.rd++;return this};
|
|
75
|
+
q.set=function(a,b){wb(this);this.g=null;this.Da.hasOwnProperty(a)?this.Da[a]=[b]:this.add(a,b);return this};q.toString=function(){if(this.g)return this.g;if(!this.Da)return"";var a=[],b;for(b in this.Da)for(var c=encodeURIComponent(b),d=this.Da[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 ob;a.g=this.g;if(this.Da){var b={},c;for(c in this.Da)b[c]=this.Da[c].concat();a.Da=b;a.rd=this.rd}return a};function M(a,b,c){var d=Ga.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}M.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};I("shaka.util.Error",M);M.Severity={RECOVERABLE:1,CRITICAL:2};M.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
|
|
76
76
|
M.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,
|
|
77
77
|
CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS:2016,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,
|
|
78
78
|
WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,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,
|
|
@@ -80,878 +80,883 @@ DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS
|
|
|
80
80
|
DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,HLS_AES_128_INVALID_IV_LENGTH:4043,HLS_AES_128_INVALID_KEY_LENGTH:4044,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,
|
|
81
81
|
NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,
|
|
82
82
|
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,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,
|
|
83
|
-
LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function
|
|
84
|
-
function
|
|
85
|
-
var
|
|
86
|
-
function
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
-
var
|
|
83
|
+
LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function xb(a,b){return a.concat(b)}function zb(){}function Ab(a){return null!=a};function Bb(a,b){if(0==b.length)return a;var c=b.map(function(d){return new jb(d)});return a.map(function(d){return new jb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(xb,[]).map(function(d){return d.toString()})}function Cb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
|
|
84
|
+
function Db(a,b){if(1==b.length)return b[0];a=Eb(a,b);if(null!=a)return a;throw new M(2,4,4025,b);}function Eb(a,b){for(var c=r(Fb[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==Gb?"":null}
|
|
85
|
+
var Gb="text",Hb={Ma:"video",jd:"audio",ba:Gb,Ac:"image",Sh:"application"},Fb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Ib(){}function Jb(a,b){a=Kb(a);b=Kb(b);return a.split("-")[0]==b.split("-")[0]}function Lb(a,b){a=Kb(a);b=Kb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Mb(a,b){a=Kb(a);b=Kb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function Kb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Nb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Ob(a,b){var c=Pb(a),d=Pb(b);return a!=c&&b!=d&&c==d}
|
|
86
|
+
function Qb(a,b){a=Kb(a);b=Kb(b);return b==a?4:Lb(b,a)?3:Mb(b,a)?2:Lb(a,b)?1:0}function Pb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Nb.get(a)||a}function Rb(a){return a.language?Kb(a.language):a.audio&&a.audio.language?Kb(a.audio.language):a.video&&a.video.language?Kb(a.video.language):"und"}
|
|
87
|
+
function Sb(a,b){a=Kb(a);var c=new Set,d=r(b);for(b=d.next();!b.done;b=d.next())c.add(Kb(b.value));d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Lb(b,a))return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Mb(b,a))return b;c=r(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,Lb(a,b))return b;return null}I("shaka.util.LanguageUtils",Ib);Ib.findClosestLocale=Sb;Ib.getLocaleForVariant=Rb;
|
|
88
|
+
Ib.getLocaleForText=function(a){return Kb(a.language||"und")};Ib.getBase=Pb;Ib.relatedness=Qb;Ib.areSiblings=Ob;Ib.normalize=Kb;Ib.isSiblingOf=Mb;Ib.isParentOf=Lb;Ib.areLanguageCompatible=Jb;Ib.areLocaleCompatible=function(a,b){a=Kb(a);b=Kb(b);return a==b};
|
|
89
|
+
var Nb=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",
|
|
90
90
|
"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",
|
|
91
91
|
"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",
|
|
92
92
|
"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",
|
|
93
93
|
"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",
|
|
94
|
-
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function
|
|
95
|
-
q.xf=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(
|
|
96
|
-
q.
|
|
97
|
-
function
|
|
98
|
-
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,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
function
|
|
102
|
-
this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}
|
|
103
|
-
function
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
function
|
|
108
|
-
|
|
109
|
-
function
|
|
110
|
-
|
|
94
|
+
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Tb(a){db.call(this);this.j=Kb(a);this.i=new Map;this.g=new Set;this.h=new Map}pa(Tb,db);q=Tb.prototype;q.release=function(){db.prototype.release.call(this)};
|
|
95
|
+
q.xf=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Kb(c.value));Ub(this);a=hb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new L("unknown-locales",(new Map).set("locales",a)));a=hb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new L("locale-changed",a))};
|
|
96
|
+
q.ea=function(a,b,c){a=Kb(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);Ub(this);this.dispatchEvent(new L("locale-updated"));return this};q.Ch=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 L("unknown-localization",a));return""};
|
|
97
|
+
function Ub(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={Xb:f.Xb},h=g.next()){f.Xb=h.value;e.add(f.Xb);e.add(Pb(f.Xb));h=hb(b.keys(),function(l){return function(m){return Ob(m,l.Xb)}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=hb(b.keys(),function(l){return function(m){return Pb(m)==l.Xb}}(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);
|
|
98
|
+
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 L("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)}I("shaka.ui.Localization",Tb);Tb.prototype.resolve=Tb.prototype.resolve;
|
|
99
|
+
Tb.prototype.resolveDictionary=Tb.prototype.Ch;Tb.prototype.insert=Tb.prototype.ea;Tb.prototype.changeLocale=Tb.prototype.xf;Tb.prototype.release=Tb.prototype.release;var Wb=1;Tb.ConflictResolution={USE_OLD:0,USE_NEW:Wb};Tb.UNKNOWN_LOCALES="unknown-locales";Tb.UNKNOWN_LOCALIZATION="unknown-localization";Tb.MISSING_LOCALIZATIONS="missing-localizations";Tb.LOCALE_CHANGED="locale-changed";Tb.LOCALE_UPDATED="locale-updated";var Yb={mi:"FAST_FORWARD",Qh:"AD_TIME",Ri:"REWIND",kj:"UNRECOGNIZED_LANGUAGE",Di:"NOT_APPLICABLE",Xi:"STATISTICS",Ph:"AD_DURATION",ri:"LOOP",gi:"EXIT_FULL_SCREEN",Pi:"REPLAY",mj:"VOLUME",Zh:"CAST",gg:"LIVE",xi:"MORE_SETTINGS",di:"ENTER_PICTURE_IN_PICTURE",BACK:"BACK",Mi:"PLAYBACK_RATE",ji:"EXIT_PICTURE_IN_PICTURE",pi:"LANGUAGE",ci:"ENTER_LOOP_MODE",jj:"UNMUTE",Ai:"MUTE",Ji:"PAUSE",Qi:"RESOLUTION",Rh:"AIRPLAY",AD_PROGRESS:"AD_PROGRESS",Th:"AUTO_QUALITY",ij:"UNDETERMINED_LANGUAGE",Ui:"SKIP_AD",ii:"EXIT_LOOP_MODE",
|
|
100
|
+
Li:"PLAY",ni:"FULL_SCREEN",zi:"MULTIPLE_LANGUAGES",Yh:"CAPTIONS",Ti:"SEEK",Vi:"SKIP_TO_LIVE",hg:"SUBTITLE_FORCED",Oi:"QUALITY",Ei:"OFF",Ki:"PICTURE_IN_PICTURE",Fi:"ON"};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);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,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;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};ac.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min($b(this.h),$b(this.j))};function bc(a){if(cc.has(a))return cc.get(a);var b=MediaSource.isTypeSupported(a);cc.set(a,b);return b}var cc=new Map;function dc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function ec(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function fc(a,b,c){c||(c=dc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Td:d.Td},e=a.next()){d.Td=e.value;e=b.findIndex(function(f){return function(g){return c(f.Td,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
|
|
101
|
+
function gc(a,b,c){c||(c=dc);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 hc(a,b,c){this.startTime=a;this.direction=ic;this.endTime=b;this.payload=c;this.region=new jc;this.position=null;this.positionAlign=lc;this.size=0;this.textAlign=mc;this.writingMode=nc;this.lineInterpretation=oc;this.line=null;this.lineHeight="";this.lineAlign=pc;this.displayAlign=qc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=rc;this.fontStyle=sc;this.linePadding=this.letterSpacing=
|
|
102
|
+
this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}hc.prototype.clone=function(){var a=new hc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
|
|
103
|
+
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(!gc(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(!gc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}I("shaka.text.Cue",hc);var lc="auto";
|
|
104
|
+
hc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:lc};var mc="center",uc={LEFT:"left",RIGHT:"right",CENTER:mc,START:"start",END:"end"};hc.textAlign=uc;var qc="after",vc={BEFORE:"before",CENTER:"center",AFTER:qc};hc.displayAlign=vc;var ic="ltr";hc.direction={HORIZONTAL_LEFT_TO_RIGHT:ic,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var nc="horizontal-tb";hc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:nc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var oc=0;
|
|
105
|
+
hc.lineInterpretation={LINE_NUMBER:oc,PERCENTAGE:1};var pc="start",wc={CENTER:"center",START:pc,END:"end"};hc.lineAlign=wc;var xc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};hc.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"};hc.defaultTextBackgroundColor=yc;var rc=400;hc.fontWeight={NORMAL:rc,BOLD:700};
|
|
106
|
+
var sc="normal",zc={NORMAL:sc,ITALIC:"italic",OBLIQUE:"oblique"};hc.fontStyle=zc;hc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function jc(){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}I("shaka.text.CueRegion",jc);var Ac=1;jc.units={PX:0,PERCENTAGE:Ac,LINES:2};var Bc="";jc.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;var c=Fc(a);b=Fc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])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}
|
|
107
|
+
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)}I("shaka.util.BufferUtils",Cc);Cc.toDataView=Ic;Cc.toUint8=Fc;Cc.toArrayBuffer=Gc;Cc.equal=Dc;function Jc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Jc.prototype.resolve=function(){};Jc.prototype.reject=function(){};function Kc(a){this.h=a;this.g=void 0}Kc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Lc(a){this.h=a;this.g=null}Lc.prototype.R=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Lc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function N(a){this.h=a;this.g=null}N.prototype.Aa=function(){this.stop();this.h();return this};N.prototype.R=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.h()})).R(a);return this};N.prototype.ha=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.g.R(a);b.h()})).R(a);return this};N.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};I("shaka.util.Timer",N);N.prototype.stop=N.prototype.stop;N.prototype.tickEvery=N.prototype.ha;N.prototype.tickAfter=N.prototype.R;
|
|
108
|
+
N.prototype.tickNow=N.prototype.Aa;function Mc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Nc(a){return""!=Oc().canPlayType(a)}function Pc(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Qc(){return Rc("Xbox One")}function Sc(){return Rc("Tizen")}function Tc(){return Rc("Web0S")&&Rc("Chrome/38.0.2125.122 Safari/537.36")}function Uc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Sc()&&!Rc("PC=EOS")&&!Rc("VirginMedia")&&!Vc()&&!Rc("AFT")}
|
|
109
|
+
function Vc(){return Rc("PlayStation 4")}function Wc(){if(!Uc())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Rc(a){return(navigator.userAgent||"").includes(a)}function Oc(){if(Xc)return Xc;Yc||(Yc=new N(function(){Xc=null}));(Xc=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Xc=document.createElement("video"));Yc.R(1);return Xc}
|
|
110
|
+
var Yc=null,Xc=null;function Zc(){}
|
|
111
|
+
function $c(a){if(!a)return"";a=Fc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Vc())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Ta('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128==
|
|
111
112
|
(a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b}
|
|
112
|
-
function
|
|
113
|
-
function
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
function
|
|
117
|
-
function
|
|
118
|
-
function
|
|
119
|
-
function
|
|
120
|
-
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
|
|
121
|
-
(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
function
|
|
125
|
-
function
|
|
126
|
-
a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}I("shaka.text.TextEngine",
|
|
127
|
-
function
|
|
128
|
-
function
|
|
129
|
-
function
|
|
130
|
-
function
|
|
131
|
-
function
|
|
132
|
-
function
|
|
133
|
-
function
|
|
134
|
-
e.height&&1080<e.height)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return
|
|
135
|
-
function
|
|
113
|
+
function ad(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new M(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 bd.value()(d)}
|
|
114
|
+
function cd(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 $c(c);if(254==c[0]&&255==c[1])return ad(c.subarray(2),!1);if(255==c[0]&&254==c[1])return ad(c.subarray(2),!0);if(0==c[0]&&0==c[2])return ad(a,!1);if(0==c[1]&&0==c[3])return ad(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return $c(a);throw new M(2,2,2003);}
|
|
115
|
+
function dd(a){if(window.TextEncoder&&!Vc()){var b=new TextEncoder;return Gc(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return Gc(b)}function ed(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}I("shaka.util.StringUtils",Zc);Zc.resetFromCharCode=function(){bd.g=void 0};Zc.toUTF16=ed;Zc.toUTF8=dd;Zc.fromBytesAutoDetect=cd;Zc.fromUTF16=ad;
|
|
116
|
+
Zc.fromUTF8=$c;var bd=new Kc(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={rb:65536};0<b.rb;b={rb:b.rb},b.rb/=2)if(a(b.rb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.rb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.rb));return e}}(b);return null});function fd(){}function gd(a){a=Fc(a);a=bd.value()(a);return btoa(a)}function hd(a,b){b=void 0==b?!0:b;a=gd(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function id(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 jd(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}
|
|
117
|
+
function kd(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 ld(){for(var a=Ga.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}I("shaka.util.Uint8ArrayUtils",fd);fd.concat=ld;fd.toHex=kd;fd.fromHex=jd;fd.fromBase64=id;fd.toBase64=hd;fd.toStandardBase64=gd;function md(){}I("shaka.dependencies",md);md.has=function(a){return nd.has(a)};md.add=function(a,b){if(!od[a])throw Error(a+" is not supported");nd.set(a,function(){return b})};var od={muxjs:"muxjs"};md.Allowed=od;var nd=new Map([["muxjs",function(){return window.muxjs}]]);function pd(a){var b=this;this.s=a;this.m=nd.get("muxjs")();this.h=this.g=null;this.l=[];this.i=[];this.j=!1;this.m&&(this.g=new this.m.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",function(c){b.i=c.captions;b.l.push(ld(c.initSegment,c.data))}),this.g.on("done",function(){var c={data:ld.apply(fd,ia(b.l)),captions:b.i};b.h.resolve(c);b.j=!1}))}pd.prototype.destroy=function(){this.g&&this.g.dispose();this.g=null;return Promise.resolve()};
|
|
118
|
+
function qd(a,b){var c=rd(a),d="audio/aac"==a.toLowerCase().split(";")[0];if(!nd.get("muxjs")()||!c&&!d)return!1;if(d)return bc('audio/mp4; codecs="mp4a.40.2"');if(b)return bc(sd(b,a));b=sd("audio",a);a=sd("video",a);return bc(b)||bc(a)}function rd(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}function td(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp4a.40.2"':rd(b)?sd(a,b):b}
|
|
119
|
+
function sd(a,b){b=b.replace(/mp2t/i,"mp4");"audio"==a&&(b=b.replace("video","audio"));if(a=/avc1\.(66|77|100)\.(\d+)/.exec(b)){var c="avc1.",d=a[1],e=Number(a[2]);c=("66"==d?c+"4200":"77"==d?c+"4d00":c+"6400")+(e>>4).toString(16);c+=(e&15).toString(16);b=b.replace(a[0],c)}return b}function ud(a,b){a.j=!0;a.h=new Jc;a.l=[];a.i=[];b=Fc(b);a.g.push(b);a.g.flush();a.j&&a.h.reject(new M(2,3,3018));return a.h};function vd(){}function wd(a,b){b&&(a+='; codecs="'+b+'"');return a}function xd(a,b,c){b=wd(a,b);return qd(b,c)?td(c,b):"video/mp2t"!=a&&"audio"==c?b.replace("video","audio"):b}
|
|
120
|
+
function yd(a){var b=zd(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";
|
|
121
|
+
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 Ad(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function zd(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}I("shaka.util.MimeUtils",vd);vd.getFullType=wd;
|
|
122
|
+
(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Bd(a){this.i=null;this.j=a;this.C=!1;this.l=this.B=0;this.m=Infinity;this.h=this.g=null;this.F="";this.s=new Map}function Cd(a){return Dd[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}Bd.prototype.destroy=function(){this.j=this.i=null;this.s.clear();return Promise.resolve()};
|
|
123
|
+
function Ed(a,b,c,d){var e,f,g,h;return G(function(k){if(1==k.g)return u(k,Promise.resolve(),2);if(!a.i||!a.j)return k.return();if(null==c||null==d)return a.i.parseInit(Fc(b)),k.return();e=a.C?c:a.B;f={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.i.parseMedia(Fc(b),f);h=g.filter(function(l){return l.startTime>=a.l&&l.startTime<a.m});a.j.append(h);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);A(k)})}
|
|
124
|
+
Bd.prototype.remove=function(a,b){var c=this;return G(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.j||!c.j.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));A(d)})};function Fd(a,b,c){a.l=b;a.m=c}function Gd(a,b,c){a.F=b;if(b=a.s.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.j.append(e)}
|
|
125
|
+
function Hd(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 hc(c.startTime,c.endTime,c.text)});return b}function Id(a,b,c){b.startTime+=c;b.endTime+=c;b=r(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Id(a,d.value,c)}
|
|
126
|
+
function Jd(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,[]);Id(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.j.append([k]))}e=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.s.has(f)||a.s.set(f,new Map),b=r(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.s.get(f).set(h,k);a.g=null==a.g?Math.max(c,
|
|
127
|
+
a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}I("shaka.text.TextEngine",Bd);Bd.prototype.destroy=Bd.prototype.destroy;Bd.findParser=function(a){return Dd[a]};Bd.unregisterParser=function(a){delete Dd[a]};Bd.registerParser=function(a,b){Dd[a]=b};var Dd={};function Kd(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Ld(f,b,c);f=Md(f,d);b=Nd(f);b=Od(b);var g=Pd(b,e);a.variants=a.variants.filter(function(h){return Qd(h)==g?!0:!1})}function Nd(a){var b=new bb;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Qd(c);b.push(d,c)}return b}
|
|
128
|
+
function Od(a){var b=0,c=new Map,d=a.size();a.forEach(function(e,f){f=r(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var h=g.video;if(h&&h.width&&h.height){h=h.width*h.height*(h.frameRate||1);c.has(h)||c.set(h,new bb);var k=c.get(h);k.push(e,g);k.size()===d&&(b=Math.max(b,h))}}});return b?c.get(b):a}
|
|
129
|
+
function Ld(a,b,c){var d={};b=r(b);for(var e=b.next();!e.done;d={ee:d.ee},e=b.next())if(d.ee=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.ee)}}(d)),e.length){a=e;break}d={};c=r(c);for(b=c.next();!b.done;d={Qd:d.Qd},b=c.next())if(d.Qd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Qd)}}(d)),b.length){a=b;break}return a}
|
|
130
|
+
function Pd(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c==Rd||c==Sd){if(a=Td(a,c),1==a.size())return a.keys()[0]}else if(c==Ud)break;return Vd(a)}function Td(a,b){var c=0,d=new bb;a.forEach(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}
|
|
131
|
+
function Vd(a){var b="",c=Infinity;a.forEach(function(d,e){var f=0,g=0;e=r(e);for(var h=e.next();!h.done;h=e.next())f+=h.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Qd(a){var b="";a.video&&(b=yd(a.video.codecs));var c="";a.audio&&(c=yd(a.audio.codecs));return b+"-"+c}function Wd(a,b,c){a.variants=a.variants.filter(function(d){return Xd(d,b,c)})}
|
|
132
|
+
function Xd(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
|
|
133
|
+
function Yd(a,b,c){var d=!1;a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=Xd(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function Zd(a,b){return G(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)})}
|
|
134
|
+
function $d(a,b){return G(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=Db("video",g);f=ee(f);g=Db("audio",g);g=fe(g);var h=xd(e.mimeType,g,"audio");if(!bc(h))return!1;f=[f,g].join()}g=xd(e.mimeType,f,"video");if(!bc(g))return!1;e.codecs=f}if(f=d.audio){g=fe(f.codecs);h=xd(f.mimeType,g,"audio");if(!bc(h))return!1;f.codecs=g}if(Qc()&&e&&(e.width&&1920<e.width||
|
|
135
|
+
e.height&&1080<e.height)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return Za(ge(d)),!1;(e=d.decodingInfos.some(function(k){return k.supported}))||Za(ge(d));return e});A(c)})}
|
|
136
|
+
function de(a,b,c){var d,e,f,g,h,k,l,m,p,n,t;return G(function(v){if(d=a.some(function(y){return y.decodingInfos.length}))return v.return();e=navigator.mediaCapabilities;f=[];g=function(y,w){var x;return G(function(C){if(1==C.g)return D(C,2),u(C,e.decodingInfo(w),4);if(2!=C.g)return x=C.h,y.decodingInfos.push(x),ua(C,0);va(C);JSON.stringify(w);A(C)})};h=r(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=he(l,b,c),p=r(m),n=p.next();!n.done;n=p.next())t=n.value,f.push(g(l,t));return u(v,Promise.all(f),
|
|
136
137
|
0)})}
|
|
137
|
-
function
|
|
138
|
-
break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=
|
|
139
|
-
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
|
|
140
|
-
(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}
|
|
141
|
-
function fe(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function
|
|
142
|
-
function
|
|
143
|
-
function
|
|
144
|
-
function
|
|
138
|
+
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=Db("video",g);f=ee(f);g=Db("audio",g);g=xd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=ee(f);f=xd(e.mimeType,f,"video");c.video={contentType:f,width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.transferFunction="srgb";
|
|
139
|
+
break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=fe(d.codecs),f=xd(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,[]);
|
|
140
|
+
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 p=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};p=r(p);for(h=p.next();!h.done;h=p.next()){h=h.value;if(h.initData&&h.initData.length){for(var n=new Set,t=r(h.initData),v=t.next();!v.done;v=t.next())n.add(v.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&
|
|
141
|
+
(m.distinctiveIdentifier="required");h.persistentStateRequired&&(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(""!=h.audioRobustness?m.audio?m.audio.robustness=m.audio.robustness||h.audioRobustness:m.audio={robustness:h.audioRobustness}:m.audio||(m.audio={}));e&&(""!=h.videoRobustness?m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness}:m.video||(m.video={}))}l.keySystemConfiguration=m;a.push(l)}return a}
|
|
142
|
+
function fe(a){return Sc()?"ac-3"==a.toLowerCase()?"ec-3":a:a}function ee(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return 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})}
|
|
143
|
+
function be(a){a.textStreams=a.textStreams.filter(function(b){return Cd(wd(b.mimeType,b.codecs))})}function ce(a){var b,c,d,e,f,g,h,k;return G(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,A(l)}})}
|
|
144
|
+
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}
|
|
145
|
+
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 p=r(b.roles),n=p.next();!n.done;n=p.next())m.add(n.value);if(c)for(p=r(c.roles),n=p.next();!n.done;n=p.next())m.add(n.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
|
|
145
146
|
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,
|
|
146
147
|
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}
|
|
147
|
-
function
|
|
148
|
+
function ne(a){return{id:a.id,active:!1,type:Gb,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,
|
|
148
149
|
originalAudioId:null,originalTextId:a.originalId,originalImageId:null}}
|
|
149
|
-
function
|
|
150
|
-
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
|
|
151
|
-
function
|
|
152
|
-
function
|
|
153
|
-
originalTextId:null,originalImageId:null}}function
|
|
154
|
-
function
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
-
function
|
|
158
|
-
var
|
|
159
|
-
q.stop=function(){this.m=null;this.l=!1;this.s=[];this.
|
|
160
|
-
q.chooseVariant=function(){var a=Infinity,b=Infinity;this.g.restrictToScreenSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=window.screen.height*b,b*=window.screen.width);this.h&&this.g.restrictToElementSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=this.j.clientWidth*b,b*=this.j.clientHeight);a=
|
|
161
|
-
d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.
|
|
162
|
-
q.segmentDownloaded=function(a,b){this.i.sample(a,b);if(null!=this.B&&this.l)a:{if(!this.
|
|
163
|
-
q.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.G.R(
|
|
164
|
-
function
|
|
165
|
-
|
|
166
|
-
function
|
|
167
|
-
function
|
|
168
|
-
|
|
169
|
-
function
|
|
170
|
-
function
|
|
171
|
-
function
|
|
172
|
-
|
|
173
|
-
function
|
|
174
|
-
function
|
|
175
|
-
q.request=function(a,b){var c=this,d=new
|
|
176
|
-
var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.ia(function(
|
|
177
|
-
function
|
|
178
|
-
function
|
|
179
|
-
if(!
|
|
180
|
-
c.uris[e],b));if(x instanceof M){if(7001==x.code)throw x;if(1010==x.code)throw f;if(1==x.severity)return
|
|
181
|
-
function
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
q.Rb=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.qc();this.g.g={}}};I("shaka.util.EventManager",
|
|
185
|
-
|
|
186
|
-
function
|
|
187
|
-
q.
|
|
188
|
-
q.skip=function(a){if(this.g+a>this.W.byteLength)throw
|
|
189
|
-
|
|
190
|
-
q.Tc=function(a,b,c,d){var e=b.ma();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.N(),g=b.N(),h=
|
|
191
|
-
partialOkay:c||!1,version:m,flags:
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
function
|
|
195
|
-
function
|
|
196
|
-
function
|
|
197
|
-
function
|
|
198
|
-
function
|
|
199
|
-
function
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
function
|
|
203
|
-
function
|
|
204
|
-
return u(w,
|
|
205
|
-
function
|
|
206
|
-
q.Bc=function(a){var b=this,c;return G(function(d){if(1==d.g){if(!b.C)return b.B.
|
|
207
|
-
|
|
208
|
-
function
|
|
209
|
-
D(g,6);return u(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:ua(g,0);break;case 6:throw f=va(g),new M(2,6,6004,f.message);}})}function
|
|
210
|
-
function
|
|
211
|
-
function
|
|
212
|
-
function
|
|
213
|
-
f.keySystem;var
|
|
214
|
-
|
|
215
|
-
x.audioCapabilities[0].robustness:"")||"",videoRobustness:(x.videoCapabilities?x.videoCapabilities[0].robustness:"")||"",serverCertificate:E[0],serverCertificateUri:
|
|
216
|
-
function
|
|
150
|
+
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:[],
|
|
151
|
+
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}
|
|
152
|
+
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}
|
|
153
|
+
function se(a){return{id:pe(a),active:!1,type:"",bandwidth:0,language:Kb(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,
|
|
154
|
+
originalTextId:null,originalImageId:null}}function ue(a){return a.allowedByApplication&&a.allowedByKeySystem}function ve(a){return a.filter(function(b){return ue(b)})}
|
|
155
|
+
function Md(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;a=c.filter(function(g){return g<=b});return a.length?d.get(Math.max.apply(Math,ia(a))):d.get(Math.min.apply(Math,ia(c)))}
|
|
156
|
+
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=Sb(Kb(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Kb(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(xb,[]);return a.length?
|
|
157
|
+
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(", ")}
|
|
158
|
+
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"}
|
|
159
|
+
var qe=0,Rd="smooth",Sd="powerEfficient",Ud="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.m=null;this.l=!1;this.i=new ac;navigator.connection&&navigator.connection.addEventListener&&(this.C=function(){if(a.g.useNetworkInformation&&a.l){a.i=new ac;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&a.m(b)}},navigator.connection.addEventListener("change",this.C));this.s=[];this.F=1;this.H=!1;this.C=this.h=this.j=this.g=this.B=null;this.G=new N(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant();b&&a.m(b)}})}q=ze.prototype;
|
|
160
|
+
q.stop=function(){this.m=null;this.l=!1;this.s=[];this.F=1;this.j=this.B=null;this.h&&(this.h.disconnect(),this.h=null);this.G.stop()};q.release=function(){navigator.connection&&navigator.connection.removeEventListener&&(navigator.connection.removeEventListener("change",this.C),this.C=null);this.G=null};q.init=function(a){this.m=a};
|
|
161
|
+
q.chooseVariant=function(){var a=Infinity,b=Infinity;this.g.restrictToScreenSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=window.screen.height*b,b*=window.screen.width);this.h&&this.g.restrictToElementSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=this.j.clientWidth*b,b*=this.j.clientHeight);a=Ae(this.g.restrictions,this.s,a,b);b=this.i.getBandwidthEstimate(Be(this));this.s.length&&!a.length&&(a=Ae(null,this.s,Infinity,Infinity),a=[a[0]]);for(var c=a[0]||null,
|
|
162
|
+
d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.F)?1:Math.abs(this.F),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.B=Date.now();return c};q.enable=function(){this.l=!0};q.disable=function(){this.l=!1};
|
|
163
|
+
q.segmentDownloaded=function(a,b){this.i.sample(a,b);if(null!=this.B&&this.l)a:{if(!this.H){a=this.i;if(!(a.g>=a.i))break a;this.H=!0}else if(Date.now()-this.B<1E3*this.g.switchInterval)break a;a=this.chooseVariant();this.i.getBandwidthEstimate(Be(this));a&&this.m(a)}};q.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(Be(this))};q.setVariants=function(a){this.s=a};q.playbackRateChanged=function(a){this.F=a};
|
|
164
|
+
q.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.G.R(Ce)}),this.h.observe(this.j))};q.configure=function(a){this.g=a;this.i&&this.g&&this.i.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}
|
|
165
|
+
function Ae(a,b,c,d){a&&(b=b.filter(function(e){return Xd(e,a,{width:d,height:c})}));return b.sort(function(e,f){return e.bandwidth-f.bandwidth})}I("shaka.abr.SimpleAbrManager",ze);ze.prototype.configure=ze.prototype.configure;ze.prototype.setMediaElement=ze.prototype.setMediaElement;ze.prototype.playbackRateChanged=ze.prototype.playbackRateChanged;ze.prototype.setVariants=ze.prototype.setVariants;ze.prototype.getBandwidthEstimate=ze.prototype.getBandwidthEstimate;ze.prototype.segmentDownloaded=ze.prototype.segmentDownloaded;
|
|
166
|
+
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.release=ze.prototype.release;ze.prototype.stop=ze.prototype.stop;var Ce=1;function De(a,b){this.g=a;this.h=b}De.prototype.toString=function(){return"v"+this.g+"."+this.h};function Ee(a,b){var c=new De(5,0),d=Fe,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Ge(a,b,c,d){Ua([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function He(a,b,c,d){Ta([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Fe=null;I("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function Ie(a,b){this.h=a;this.g=new Set([a]);b=b||[];a=r(b);for(b=a.next();!b.done;b=a.next())this.add(b.value)}Ie.prototype.add=function(a){return Je(this.h,a)?(this.g.add(a),!0):!1};
|
|
167
|
+
function Je(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)&&Ke(c,d)&&Le(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(a=a.video,b=b.video,c=!(Ke(a,b)&&Le(a.roles,b.roles)));return c?!1:!0}Ie.prototype.values=function(){return this.g.values()};
|
|
168
|
+
function Ke(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return zd(d)[0]});b=b.codecs.split(",").map(function(d){return zd(d)[0]});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function Le(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Me(a){this.g=a;this.h=new Ne(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Me.prototype.create=function(a){var b=this,c=a.filter(function(d){return Je(b.g,d)});return c.length?new Ie(c[0],c):this.h.create(a)};function Ne(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
|
|
169
|
+
Ne.prototype.create=function(a){var b=[];b=Oe(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Pe(b,this.j);a.length&&(b=a);this.g&&(a=Md(b,this.g),a.length&&(b=a));this.h&&(a=Qe(b,this.h),a.length&&(b=a));a=new Ie(b[0]);b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,Je(a.h,c)&&a.add(c);return a};function Oe(a,b){b=Kb(b);var c=Sb(b,a.map(function(d){return Rb(d)}));return c?a.filter(function(d){return c==Rb(d)}):[]}
|
|
170
|
+
function Pe(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Qe(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function Re(){this.g=Se;this.h=(new Map).set(Se,2).set(Te,1)}function Ue(a,b,c){a.h.set(Se,c).set(Te,b)}var Te=0,Se=1;function Ve(a,b){var c=We();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.s=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
|
|
171
|
+
function Xe(a){var b,c;return G(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new M(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return u(d,new Promise(function(e){(new N(e)).R(c/1E3)}),2)}a.h*=a.m;A(d)})}function We(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Ye(a,b){this.promise=a;this.i=b;this.g=!1}function Ze(a){return new Ye(Promise.reject(a),function(){return Promise.resolve()})}function $e(){var a=Promise.reject(new M(2,7,7001));a.catch(function(){});return new Ye(a,function(){return Promise.resolve()})}function af(a){return new Ye(Promise.resolve(a),function(){return Promise.resolve()})}function bf(a){return new Ye(a,function(){return a.catch(function(){})})}Ye.prototype.abort=function(){this.g=!0;return this.i()};
|
|
172
|
+
function cf(a){return new Ye(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Ye.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
|
|
173
|
+
Ye.prototype.ia=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=df(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Jc,g=new M(2,7,7001);this.promise.then(c(!0),c(!1));return new Ye(f,function(){return d()})};
|
|
174
|
+
function df(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()}}}I("shaka.util.AbortableOperation",Ye);Ye.prototype.chain=Ye.prototype.ia;Ye.prototype["finally"]=Ye.prototype.finally;Ye.all=cf;Ye.prototype.abort=Ye.prototype.abort;Ye.notAbortable=bf;Ye.completed=af;Ye.aborted=$e;Ye.failed=Ze;function ef(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 ff(a){var b={},c;for(c in a)b[c]=a[c];return b};function gf(){this.g=[]}function hf(a,b){a.g.push(b.finally(function(){ec(a.g,b)}))}gf.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 jf(a,b,c){db.call(this);this.i=!1;this.m=new gf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.s=!1}pa(jf,db);q=jf.prototype;q.Ne=function(a){this.s=a};function kf(a,b,c,d){c=c||lf;var e=mf[a];if(!e||c>=e.priority)mf[a]={priority:c,rh:b,sh:void 0===d?!1:d}}q.uh=function(a){this.g.add(a)};q.Kh=function(a){this.g.delete(a)};q.pg=function(){this.g.clear()};q.vh=function(a){this.h.add(a)};q.Lh=function(a){this.h.delete(a)};q.qg=function(){this.h.clear()};
|
|
175
|
+
function nf(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();db.prototype.release.call(this);return this.m.destroy()};
|
|
176
|
+
q.request=function(a,b){var c=this,d=new of;if(this.i){var e=Promise.reject(new M(2,7,7001));e.catch(function(){});return new pf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?ef(b.retryParameters):We();b.uris=ef(b.uris);e=qf(this,a,b);var f=e.ia(function(){return rf(c,a,b,new Ve(b.retryParameters,!1),0,null,d)}),g=f.ia(function(p){return sf(c,a,p)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
|
|
177
|
+
var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.ia(function(p){var n=Date.now()-l,t=p.response;t.timeMs+=k;t.timeMs+=n;p.dh||!c.l||t.fromCache||"HEAD"==b.method||a!=tf||c.l(t.timeMs,t.data.byteLength);return t},function(p){p&&(p.severity=2);throw p;});e=new pf(m.promise,function(){return m.abort()},d);hf(this.m,e);return e};
|
|
178
|
+
function qf(a,b,c){var d=af(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Zd:e.Zd},f=a.next())e.Zd=f.value,d=d.ia(function(g){return function(){c.body&&(c.body=Gc(c.body));return g.Zd(b,c)}}(e));return d.ia(void 0,function(g){if(g instanceof M&&7001==g.code)throw g;throw new M(2,1,1006,g);})}
|
|
179
|
+
function rf(a,b,c,d,e,f,g){a.s&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new jb(c.uris[e]),k=h.Wa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),kb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=mf[k])?k.rh:null;if(!m)return Ze(new M(2,1,1E3,h));var p=k.sh,n=null,t=null,v=!1,y=!1,w;return bf(Xe(d)).ia(function(){if(a.i)return $e();w=Date.now();var x=m(c.uris[e],c,b,function(B,E,F){n&&n.stop();t&&t.R(z/1E3);a.l&&b==tf&&(a.l(B,E),l=!0,g.g=F)},function(B){a.j&&a.j(B,c,b);y=!0});
|
|
180
|
+
if(!p)return x;var C=c.retryParameters.connectionTimeout;C&&(n=new N(function(){v=!0;x.abort()}),n.R(C/1E3));var z=c.retryParameters.stallTimeout;z&&(t=new N(function(){v=!0;x.abort()}));return x}).ia(function(x){n&&n.stop();t&&t.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-w);var C={response:x,dh:l};!y&&a.j&&a.j(x.headers,c,b);return C},function(x){n&&n.stop();t&&t.stop();if(a.B){var C=null,z=0;x instanceof M&&(C=x,1001==x.code&&(z=x.data[1]));a.B(c,C,z,v)}if(a.i)return $e();v&&(x=new M(1,1,1003,
|
|
181
|
+
c.uris[e],b));if(x instanceof M){if(7001==x.code)throw x;if(1010==x.code)throw f;if(1==x.severity)return C=(new Map).set("error",x),C=new L("retry",C),a.dispatchEvent(C),e=(e+1)%c.uris.length,rf(a,b,c,d,e,x,g)}throw x;})}
|
|
182
|
+
function sf(a,b,c){var d=af(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={$d:e.$d},f=a.next())e.$d=f.value,d=d.ia(function(g){return function(){var h=c.response;h.data&&(h.data=Gc(h.data));return g.$d(b,h)}}(e));return d.ia(function(){return c},function(g){var h=2;if(g instanceof M){if(7001==g.code)throw g;h=g.severity}throw new M(h,1,1007,g);})}I("shaka.net.NetworkingEngine",jf);jf.prototype.request=jf.prototype.request;jf.prototype.destroy=jf.prototype.destroy;jf.makeRequest=nf;
|
|
183
|
+
jf.defaultRetryParameters=function(){return We()};jf.prototype.clearAllResponseFilters=jf.prototype.qg;jf.prototype.unregisterResponseFilter=jf.prototype.Lh;jf.prototype.registerResponseFilter=jf.prototype.vh;jf.prototype.clearAllRequestFilters=jf.prototype.pg;jf.prototype.unregisterRequestFilter=jf.prototype.Kh;jf.prototype.registerRequestFilter=jf.prototype.uh;jf.unregisterScheme=function(a){delete mf[a]};jf.registerScheme=kf;jf.prototype.setForceHTTPS=jf.prototype.Ne;function of(){this.g=0}
|
|
184
|
+
jf.NumBytesRemainingClass=of;function pf(a,b,c){Ye.call(this,a,b);this.h=c}pa(pf,Ye);jf.PendingRequest=pf;var tf=1;jf.RequestType={MANIFEST:0,SEGMENT:tf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var lf=3;jf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:lf};var mf={};function uf(a){this.g=!1;this.h=new Jc;this.i=a}uf.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 vf(a,b){if(a.g){if(b instanceof M&&7003==b.code)throw b;throw new M(2,7,7003,b);}};function wf(){this.g=new bb}q=wf.prototype;q.release=function(){this.Rb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new xf(a,b,c,d),this.g.push(b,a))};q.ya=function(a,b,c,d){function e(g){f.qc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.qc=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.qc(),this.g.remove(b,e))}};
|
|
185
|
+
q.Rb=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.qc();this.g.g={}}};I("shaka.util.EventManager",wf);wf.prototype.removeAll=wf.prototype.Rb;wf.prototype.unlisten=wf.prototype.qc;wf.prototype.listenOnce=wf.prototype.ya;wf.prototype.listen=wf.prototype.o;wf.prototype.release=wf.prototype.release;function xf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=yf(a,d);this.target.addEventListener(b,c,this.g)}
|
|
186
|
+
xf.prototype.qc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function yf(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 zf(a)?b:b.capture||!1}
|
|
187
|
+
function zf(a){var b=Af;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}Af=b}return b||!1}var Af=void 0;function Bf(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 Cf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Df(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Ef(a,b){this.W=Ic(a);this.h=b==Ff;this.g=0}q=Ef.prototype;q.xa=function(){return this.g<this.W.byteLength};q.ma=function(){return this.g};q.Jg=function(){return this.W.byteLength};q.ob=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Gf();}};q.De=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Gf();}};q.N=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Gf();}};
|
|
188
|
+
q.Qf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Gf();}};q.Cb=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 Gf();}if(2097151<b)throw new M(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Bb=function(a){if(this.g+a>this.W.byteLength)throw Gf();var b=Fc(this.W,this.g,a);this.g+=a;return b};
|
|
189
|
+
q.skip=function(a){if(this.g+a>this.W.byteLength)throw Gf();this.g+=a};q.Dh=function(a){if(this.g<a)throw Gf();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw Gf();this.g=a};q.Vc=function(){for(var a=this.g;this.xa()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Fc(this.W,a,this.g-a);this.g+=1;return $c(a)};function Gf(){return new M(2,3,3E3)}I("shaka.util.DataViewReader",Ef);Ef.prototype.readTerminatedString=Ef.prototype.Vc;Ef.prototype.seek=Ef.prototype.seek;Ef.prototype.rewind=Ef.prototype.Dh;
|
|
190
|
+
Ef.prototype.skip=Ef.prototype.skip;Ef.prototype.readBytes=Ef.prototype.Bb;Ef.prototype.readUint64=Ef.prototype.Cb;Ef.prototype.readInt32=Ef.prototype.Qf;Ef.prototype.readUint32=Ef.prototype.N;Ef.prototype.readUint16=Ef.prototype.De;Ef.prototype.readUint8=Ef.prototype.ob;Ef.prototype.getLength=Ef.prototype.Jg;Ef.prototype.getPosition=Ef.prototype.ma;Ef.prototype.hasMoreData=Ef.prototype.xa;var Ff=1;Ef.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Ff};function Hf(){this.i=[];this.h=[];this.g=!1}q=Hf.prototype;q.box=function(a,b){a=If(a);this.i[a]=Jf;this.h[a]=b;return this};q.T=function(a,b){a=If(a);this.i[a]=Kf;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Ef(a,0);for(this.g=!1;a.xa()&&!this.g;)this.Tc(0,a,b,c)};
|
|
191
|
+
q.Tc=function(a,b,c,d){var e=b.ma();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.N(),g=b.N(),h=Lf(g),k=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.ma()+8>b.W.byteLength){this.g=!0;return}f=b.Cb();k=!0}var l=this.h[g];if(l){var m=null,p=null;if(this.i[g]==Kf){if(d&&b.ma()+4>b.W.byteLength){this.g=!0;return}p=b.N();m=p>>>24;p&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.ma(),b=0<d?b.Bb(d):new Uint8Array(0),b=new Ef(b,0),l({name:h,parser:this,
|
|
192
|
+
partialOkay:c||!1,version:m,flags:p,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.ma(),b.W.byteLength-b.ma()))}};function Mf(a){for(var b=Nf(a);a.reader.xa()&&!a.parser.g;)a.parser.Tc(a.start+b,a.reader,a.partialOkay)}function Of(a){for(var b=Nf(a),c=a.reader.N(),d=0;d<c&&(a.parser.Tc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Pf(a){var b=Nf(a);for(a.reader.skip(78);a.reader.xa()&&!a.parser.g;)a.parser.Tc(a.start+b,a.reader,a.partialOkay)}
|
|
193
|
+
function Qf(a){return function(b){a(b.reader.Bb(b.reader.W.byteLength-b.reader.ma()))}}function If(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 Lf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Nf(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}I("shaka.util.Mp4Parser",Hf);Hf.headerSize=Nf;Hf.typeToString=Lf;Hf.allData=Qf;Hf.visualSampleEntry=Pf;Hf.sampleDescription=Of;Hf.children=Mf;
|
|
194
|
+
Hf.prototype.parseNext=Hf.prototype.Tc;Hf.prototype.parse=Hf.prototype.parse;Hf.prototype.stop=Hf.prototype.stop;Hf.prototype.fullBox=Hf.prototype.T;Hf.prototype.box=Hf.prototype.box;var Jf=0,Kf=1;function Rf(a){var b=this;this.g=[];this.h=[];this.data=[];(new Hf).box("moov",Mf).box("moof",Mf).T("pssh",function(c){if(!(1<c.version)){var d=Fc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(kd(c.reader.Bb(16)));if(0<c.version){d=c.reader.N();for(var e=0;e<d;e++){var f=kd(c.reader.Bb(16));b.h.push(f)}}}}).parse(a)}
|
|
195
|
+
function Sf(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=jd(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Tf(a,b){a=Uf(a,b);return 1!=a.length?null:a[0]}function Vf(a,b,c){a=Wf(a,b,c);return 1!=a.length?null:a[0]}function Uf(a,b){var c=[];a=r(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function Xf(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
|
|
196
|
+
function Wf(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 Yf(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function Zf(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 $f(a){return Array.from(a.childNodes).every(ag)?a.textContent.trim():null}
|
|
197
|
+
function ag(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function bg(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 cg(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}
|
|
198
|
+
function dg(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}
|
|
199
|
+
function eg(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 fg(a){a=Number(a);return 0===a%1?a:null}function gg(a){a=Number(a);return 0===a%1&&0<a?a:null}function hg(a){a=Number(a);return 0===a%1&&0<=a?a:null}function ig(a){a=Number(a);return isNaN(a)?null:a}function jg(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
|
|
200
|
+
function kg(a,b){var c=new DOMParser,d=lg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function mg(a,b){try{var c=$c(a);return kg(c,b)}catch(d){return null}}
|
|
201
|
+
var lg=new Kc(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function ng(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.C=null;this.ra=this.X=!1;this.J=0;this.g=null;this.B=new wf;this.i=new Map;this.F=[];this.s=new Jc;this.h=null;this.m=function(d){c.s.reject(d);a.onError(d)};this.aa=new Map;this.Z=new Map;this.P=new N(function(){return og(c)});this.M=!1;this.K=[];this.O=!1;this.$=(new N(function(){pg(c)})).ha(b);this.s.catch(function(){});this.j=new uf(function(){return qg(c)});this.V=!1;this.H=null}q=ng.prototype;q.destroy=function(){return this.j.destroy()};
|
|
202
|
+
function qg(a){return G(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.s.reject(),a.$.stop(),a.$=null,a.P.stop(),a.P=null,u(b,rg(a),2);case 2:if(!a.l){b.D(3);break}D(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:ua(b,5);break;case 4:va(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.C=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.V=!1,a.H=null,A(b)}})}q.configure=function(a){this.h=a};function sg(a,b,c){a.ra=!0;a.F=[];a.M=c;return tg(a,b)}
|
|
203
|
+
function ug(a,b,c){a.F=c;a.M=0<c.length;return tg(a,b)}function vg(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 wg(a,g,[])}
|
|
204
|
+
function tg(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y;return G(function(w){if(1==w.g){if(c=xg(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(x){return x.video&&x.video.drmInfos.length||x.audio&&x.audio.drmInfos.length?!0:!1});g||(h=Bf(a.h.servers),yg(b,h));k=r(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=zg(l),p=r(m),n=p.next();!n.done;n=p.next())t=n.value,Ag(t,Bf(a.h.servers),Bf(a.h.advanced||{}),a.h.keySystemsMapping);
|
|
205
|
+
return u(w,de(b,a.M,a.V),2)}v=g||Object.keys(a.h.servers).length;if(!v)return a.X=!0,w.return(Promise.resolve());y=wg(a,void 0,b);return w.return(g?y:y.catch(function(){}))})}function Bg(a){var b;return G(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 vf(a.j),c.return();case 2:return D(c,4),a.H=a.l.setMediaKeys(a.C),u(c,a.H,6);case 6:ua(c,5);break;case 4:b=va(c),a.m(new M(2,6,6003,b.message));case 5:vf(a.j),A(c)}})}
|
|
206
|
+
function Cg(a,b){return G(function(c){if(1==c.g)return u(c,Bg(a),2);Dg(a,b.initDataType,Fc(b.initData));A(c)})}
|
|
207
|
+
q.Bc=function(a){var b=this,c;return G(function(d){if(1==d.g){if(!b.C)return b.B.ya(a,"encrypted",function(){b.m(new M(2,6,6010))}),d.return();b.l=a;b.B.ya(b.l,"play",function(){for(var e=r(b.K),f=e.next();!f.done;f=e.next())Eg(b,f.value);b.O=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return rg(b)});return(c=b.g?b.g.initData.find(function(e){return 0<e.initData.length}):null)||"com.apple.fps"!==b.g.keySystem||b.F.length?
|
|
208
|
+
u(d,Bg(b),2):d.D(2)}Fg(b);c||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(e){return Cg(b,e)});A(d)})};
|
|
209
|
+
function Gg(a){var b,c,d,e,f;return G(function(g){switch(g.g){case 1:if(!a.C||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=nf([a.g.serverCertificateUri],a.h.retryParameters);D(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);ua(g,4);break;case 3:throw e=va(g),new M(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();
|
|
210
|
+
D(g,6);return u(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:ua(g,0);break;case 6:throw f=va(g),new M(2,6,6004,f.message);}})}function Hg(a,b){var c,d,e;return G(function(f){if(1==f.g)return u(f,Ig(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 Jc,d.push(e.cb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i.delete(c);A(f)})}
|
|
211
|
+
function Fg(a){for(var b=(a.g?a.g.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Dg(a,d.initDataType,d.initData);c=r(a.F);for(d=c.next();!d.done;d=c.next())Ig(a,d.value);b.length||a.F.length||a.s.resolve();return a.s}function Dg(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)&&!Rc("Tizen 2"))return;0<a.i.size&&Jg(a)&&(a.s.resolve(),a.s=new Jc,a.s.catch(function(){}));Kg(a,b,c,a.g.sessionType)}}
|
|
212
|
+
function Lg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Mg(a){a=a.i.keys();a=eb(a,function(b){return b.sessionId});return Array.from(a)}q.Gc=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.ud=function(){return Cf(this.Z)};
|
|
213
|
+
function wg(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y;return G(function(w){switch(w.g){case 1:d=new Map;if(c.length){e=Ng(a,c,d);w.D(2);break}return u(w,Og(a,b),3);case 3:e=w.h;case 2:f=e;if(!f)throw new M(2,6,6001);vf(a.j);D(w,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())p=m.value,a.I.add(p.contentType.toLowerCase());n=r(k);for(m=n.next();!m.done;m=n.next())t=m.value,a.I.add(t.contentType.toLowerCase());if(c.length){var x=
|
|
214
|
+
f.keySystem;var C=d.get(f.keySystem);var z=[],B=[],E=[],F=[],H=new Set;Pg(C,z,E,B,F,H);var J=a.M?"persistent-license":"temporary";x={keySystem:x,licenseServerUri:z[0],distinctiveIdentifierRequired:C[0].distinctiveIdentifierRequired,persistentStateRequired:C[0].persistentStateRequired,sessionType:C[0].sessionType||J,audioRobustness:C[0].audioRobustness||"",videoRobustness:C[0].videoRobustness||"",serverCertificate:E[0],serverCertificateUri:B[0],initData:F,keyIds:H};C=r(C);for(z=C.next();!z.done;z=
|
|
215
|
+
C.next())z=z.value,z.distinctiveIdentifierRequired&&(x.distinctiveIdentifierRequired=z.distinctiveIdentifierRequired),z.persistentStateRequired&&(x.persistentStateRequired=z.persistentStateRequired);C=x}else C=f.keySystem,x=b.get(f.keySystem),z=[],B=[],E=[],F=[],H=new Set,Pg(x.drmInfos,z,E,B,F,H),C={keySystem:C,licenseServerUri:z[0],distinctiveIdentifierRequired:"required"==x.distinctiveIdentifier,persistentStateRequired:"required"==x.persistentState,sessionType:x.sessionTypes[0]||"temporary",audioRobustness:(x.audioCapabilities?
|
|
216
|
+
x.audioCapabilities[0].robustness:"")||"",videoRobustness:(x.videoCapabilities?x.videoCapabilities[0].robustness:"")||"",serverCertificate:E[0],serverCertificateUri:B[0],initData:F,keyIds:H};a.g=C;if(!a.g.licenseServerUri)throw new M(2,6,6012,a.g.keySystem);return u(w,f.createMediaKeys(),6);case 6:return v=w.h,vf(a.j),a.C=v,a.X=!0,u(w,Gg(a),7);case 7:vf(a.j);ua(w,0);break;case 4:y=va(w);vf(a.j,y);a.g=null;a.I.clear();if(y instanceof M)throw y;throw new M(2,6,6002,y.message);}})}
|
|
217
|
+
function Ng(a,b,c){for(var d=r(b),e=d.next();!e.done;e=d.next()){var f=r(zg(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 M(2,6,6E3);d={};a=r(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Xd:d.Xd},e=a.next())for(d.Xd=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==
|
|
217
218
|
l.Xd}}(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}
|
|
218
|
-
function
|
|
219
|
-
x.h,x.return(c);case 6:va(x);case 7:
|
|
220
|
-
function
|
|
219
|
+
function Og(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y,w;return G(function(x){switch(x.g){case 1:if(1==b.size&&b.has(""))throw new M(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){x.D(4);break}k=h.value;if(!b.has(k)){x.D(3);break}l=b.get(k);D(x,6);return u(x,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
|
|
220
|
+
x.h,x.return(c);case 6:va(x);case 7:vf(a.j);case 3:h=g.next();x.D(2);break;case 4:m=r([!0,!1]),p=m.next();case 9:if(p.done){x.D(11);break}n=p.value;t=r(b.keys());h=t.next();case 12:if(h.done){p=m.next();x.D(9);break}v=h.value;y=b.get(v);w=y.drmInfos.some(function(C){return!!C.licenseServerUri});if(w!=n){x.D(13);break}D(x,15);return u(x,navigator.requestMediaKeySystemAccess(v,[y]),17);case 17:return c=x.h,x.return(c);case 15:va(x);case 16:vf(a.j);case 13:h=t.next();x.D(12);break;case 11:return x.return(c)}})}
|
|
221
|
+
function xg(a){a=Bf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=hd(jd(f),!1));f=e;22!=f.length&&(f=hd(jd(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Fc(dd(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",
|
|
221
222
|
videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
|
|
222
|
-
function
|
|
223
|
-
h.h;
|
|
224
|
-
function
|
|
223
|
+
function Ig(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:try{c=a.C.createSession("persistent-license")}catch(k){return d=new M(2,6,6005,k.message),a.m(d),h.return(Promise.reject(d))}a.B.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.O?a.K.push(k):Eg(a,k)});a.B.o(c,"keystatuseschange",function(k){return Qg(a,k)});e={initData:null,initDataType:null,loaded:!1,Be:Infinity,cb:null,type:"persistent-license"};a.i.set(c,e);D(h,2);return u(h,c.load(b),4);case 4:f=
|
|
224
|
+
h.h;vf(a.j);if(!f)return a.i.delete(c),a.m(new M(2,6,6013)),h.return(Promise.resolve());e.loaded=!0;Jg(a)&&a.s.resolve();return h.return(c);case 2:g=va(h),vf(a.j,g),a.i.delete(c),a.m(new M(2,6,6005,g.message));case 3:return h.return(Promise.resolve())}})}
|
|
225
|
+
function Kg(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.m(new M(2,6,6005,f.message));return}a.B.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.O?a.K.push(f):Eg(a,f)});a.B.o(e,"keystatuseschange",function(f){return Qg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Be:Infinity,cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof M||(b=new M(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&hd(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
|
|
225
226
|
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 M(2,6,6006,f.message,f,h))}})}
|
|
226
|
-
function
|
|
227
|
-
|
|
228
|
-
a.G.onEvent(v);d&&(d.cb&&d.cb.resolve(),y=new
|
|
229
|
-
function
|
|
230
|
-
function
|
|
231
|
-
|
|
232
|
-
function
|
|
233
|
-
|
|
234
|
-
function
|
|
235
|
-
function
|
|
236
|
-
function
|
|
227
|
+
function Eg(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y;G(function(w){switch(w.g){case 1:return c=b.target,a.h.logLicenseExchange&&hd(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=nf([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),
|
|
228
|
+
Lg(a.g.keySystem)&&Rg(g),h=Date.now(),D(w,2),l=a.G.Ob.request(2,g),u(w,l.promise,4);case 4:k=w.h;ua(w,3);break;case 2:return m=va(w),p=new M(2,6,6007,m),a.m(p),d&&d.cb&&d.cb.reject(p),w.return();case 3:if(a.j.g)return w.return();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&hd(k.data);D(w,5);return u(w,c.update(k.data),7);case 7:ua(w,6);break;case 5:return n=va(w),t=new M(2,6,6008,n.message),a.m(t),d&&d.cb&&d.cb.reject(t),w.return();case 6:if(a.j.g)return w.return();v=new L("drmsessionupdate");
|
|
229
|
+
a.G.onEvent(v);d&&(d.cb&&d.cb.resolve(),y=new N(function(){d.loaded=!0;Jg(a)&&a.s.resolve()}),y.R(Sg));A(w)}})}
|
|
230
|
+
function Rg(a){var b=ad(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=kg(b,"PlayReadyKeyMessage");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=id(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
|
|
231
|
+
function Qg(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Lg(a.g.keySystem)&&16==g.byteLength&&(Pc()||Vc())){h=Ic(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=kd(g).slice(0,32);a.aa.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.cb&&(a.i.delete(b),b.close().catch(function(){}));
|
|
232
|
+
Jg(a)&&(a.s.resolve(),a.P.R(Tg))}function og(a){var b=a.aa,c=a.Z;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 M(2,6,6014));a.G.Fd(Cf(c))}
|
|
233
|
+
function Ug(){var a,b,c,d,e,f,g,h;return G(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,p,
|
|
234
|
+
n;return G(function(t){switch(t.g){case 1:D(t,2);if("org.w3.clearkey"===l&&Wc())throw Error("Unsupported keySystem");return u(t,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=t.h,n=(p=m.getConfiguration().sessionTypes)?p.includes("persistent-license"):!1,Rc("Tizen 3")&&(n=!1),f.set(l,{persistentState:n}),u(t,m.createMediaKeys(),5);case 5:ua(t,0);break;case 2:va(t),f.set(l,null),A(t)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k.return(Cf(f))})}
|
|
235
|
+
function Vg(a){var b;return G(function(c){if(1==c.g)return b=new Promise(function(d,e){(new N(e)).R(Wg)}),D(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ua(c,0);va(c);A(c)})}
|
|
236
|
+
function rg(a){var b;return G(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 G(function(g){if(1==g.g)return D(g,2),a.ra||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,Vg(e),5):u(g,e.remove(),5);if(2!=g.g)return ua(g,0);va(g);A(g)})})),0)})}
|
|
237
|
+
function Xg(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e={},f=r(b),g=f.next();!g.done;e={Ua:e.Ua},g=f.next())if(g=g.value,d.keySystem==g.keySystem){e.Ua=[];e.Ua=e.Ua.concat(d.initData||[]);e.Ua=e.Ua.concat(g.initData||[]);e.Ua=e.Ua.filter(function(h){return function(k,l){return void 0===k.keyId||l===h.Ua.findIndex(function(m){return m.keyId===k.keyId})}}(e));f=d.keyIds&&g.keyIds?new Set([].concat(ia(d.keyIds),ia(g.keyIds))):
|
|
237
238
|
d.keyIds||g.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||g.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||g.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||g.persistentStateRequired,videoRobustness:d.videoRobustness||g.videoRobustness,audioRobustness:d.audioRobustness||g.audioRobustness,serverCertificate:d.serverCertificate||g.serverCertificate,serverCertificateUri:d.serverCertificateUri||g.serverCertificateUri,
|
|
238
|
-
initData:e.Ua,keyIds:f});break}}return c}function
|
|
239
|
-
function
|
|
240
|
-
function
|
|
241
|
-
m.ed;return
|
|
242
|
-
function
|
|
243
|
-
c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var
|
|
244
|
-
function
|
|
245
|
-
function(l){g.push({box:l,Pb:1701733217})}).
|
|
246
|
-
function
|
|
247
|
-
k.setUint32(b,a+1);return e}function
|
|
248
|
-
t||-1===v)
|
|
249
|
-
function
|
|
250
|
-
function
|
|
251
|
-
var
|
|
252
|
-
[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"]]),
|
|
253
|
-
[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
|
|
254
|
-
var
|
|
255
|
-
function
|
|
256
|
-
function
|
|
257
|
-
b=null;c=r(
|
|
258
|
-
b.skip(1),d=
|
|
259
|
-
function
|
|
260
|
-
var
|
|
261
|
-
function
|
|
262
|
-
function
|
|
263
|
-
a=1===(a&1);if(c.h!==
|
|
264
|
-
(d&246)&&32===(a&224))
|
|
265
|
-
f-1),
|
|
266
|
-
function
|
|
267
|
-
v++)
|
|
268
|
-
String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&
|
|
269
|
-
function
|
|
270
|
-
|
|
271
|
-
b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("encv",
|
|
272
|
-
|
|
273
|
-
v=d,y=e,w=f,x=0,
|
|
274
|
-
4==F&&
|
|
275
|
-
function
|
|
276
|
-
;function
|
|
277
|
-
function
|
|
278
|
-
q.Jc=function(){return this.Ta};q.Fc=function(){return this.
|
|
279
|
-
q.Ve=function(a){null==this.g?
|
|
280
|
-
|
|
281
|
-
function
|
|
282
|
-
function
|
|
239
|
+
initData:e.Ua,keyIds:f});break}}return c}function zg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function pg(a){a.i.forEach(function(b,c){var d=b.Be,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Be=e)})}function Jg(a){a=a.i.values();return fb(a,function(b){return b.loaded})}
|
|
240
|
+
function yg(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)}
|
|
241
|
+
function Pg(a,b,c,d,e,f){var g={};a=r(a);for(var h=a.next();!h.done;g={Fa:g.Fa},h=a.next()){g.Fa=h.value;b.includes(g.Fa.licenseServerUri)||b.push(g.Fa.licenseServerUri);d.includes(g.Fa.serverCertificateUri)||d.push(g.Fa.serverCertificateUri);g.Fa.serverCertificate&&(c.some(function(m){return function(p){return Dc(p,m.Fa.serverCertificate)}}(g))||c.push(g.Fa.serverCertificate));if(g.Fa.initData){h={};for(var k=r(g.Fa.initData),l=k.next();!l.done;h={ed:h.ed},l=k.next())h.ed=l.value,e.some(function(m){return function(p){var n=
|
|
242
|
+
m.ed;return p.keyId&&p.keyId==n.keyId?!0:p.initDataType==n.initDataType&&Dc(p.initData,n.initData)}}(h))||e.push(h.ed)}if(g.Fa.keyIds)for(h=r(g.Fa.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
|
|
243
|
+
function Ag(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
|
|
244
|
+
c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var Wg=1,Sg=5,Tg=.5,Yg=new Kc(function(){return Gc(new Uint8Array([0]))});function Zg(){}function $g(a,b,c,d){var e,f,g,h;return G(function(k){if(1==k.g){if(d&&(e=ah[d.toLowerCase()]))return k.return(e);if(f=bh(a))if(g=ch[f])return k.return(g);return d?k.D(2):u(k,dh(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=ah[d]))return k.return(h);throw new M(2,4,4E3,a);})}function dh(a,b,c){var d,e,f;return G(function(g){if(1==g.g)return d=nf([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():"")})}
|
|
245
|
+
function bh(a){a=(new jb(a)).Ha.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}I("shaka.media.ManifestParser",Zg);Zg.unregisterParserByMime=function(a){delete ah[a]};Zg.registerParserByMime=function(a,b){ah[a]=b};Zg.registerParserByExtension=function(a,b){ch[a]=b};var ah={},ch={};function eh(a){function b(){d=!0}function c(l){f.push(l);Mf(l)}a=Fc(a);var d=!1,e,f=[],g=[];(new Hf).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).T("stsd",function(l){e=l;f.push(l);Of(l)}).T("encv",b).T("enca",b).T("hev1",function(l){g.push({box:l,Pb:1701733238})}).T("hvc1",function(l){g.push({box:l,Pb:1701733238})}).T("avc1",function(l){g.push({box:l,Pb:1701733238})}).T("avc3",function(l){g.push({box:l,Pb:1701733238})}).T("ac-3",function(l){g.push({box:l,Pb:1701733217})}).T("ec-3",
|
|
246
|
+
function(l){g.push({box:l,Pb:1701733217})}).T("mp4a",function(l){g.push({box:l,Pb:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw ab(kd(a)),new M(2,3,3019);g.reverse();for(var h=r(g),k=h.next();!k.done;k=h.next())k=k.value,a=fh(a,e,k.box,f,k.Pb);return a}
|
|
247
|
+
function fh(a,b,c,d,e){var f=gh.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);hh(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Qc()?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,hh(e,d.start,d.size+k.byteLength);k=Ic(e,b.start);b=Nf(b);a=k.getUint32(b);
|
|
248
|
+
k.setUint32(b,a+1);return e}function hh(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 gh=new Kc(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 ih(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(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",p=jh(d,e,h,k,l,m);f<=g;f++){for(var n=c[f],t=-1,v=-1,y=0;y<n.length;y++)if(null!=n[y]&&""!==n[y].g.trim()){t=y;break}for(y=n.length-1;0<=y;y--)if(null!=n[y]&&""!==n[y].g.trim()){v=y;break}if(-1===
|
|
249
|
+
t||-1===v)n=kh(d,e),a.nestedCues.push(n);else{for(;t<=v;t++)if(y=n[t]){var w=y.l,x=y.i,C=y.j,z=y.h;if(w!=h||x!=k||C!=l||z!=m)p.payload&&a.nestedCues.push(p),p=jh(d,e,w,x,C,z),h=w,k=x,l=C,m=z;p.payload+=y.g}else p.payload+=" ";p.payload&&a.nestedCues.push(p);f!==g&&(p=kh(d,e),a.nestedCues.push(p));p=jh(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
|
|
250
|
+
function jh(a,b,c,d,e,f){a=new hc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function kh(a,b){a=new hc(a,b,"");a.lineBreak=!0;return a}function lh(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function mh(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.s="black";nh(this)}function oh(a,b,c){return ih(new hc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function nh(a){ph(a,0,15);a.g=1}function qh(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case rh:d=sh.has(c)?sh.get(c):String.fromCharCode(c);break;case th:d=uh.get(c);break;case vh:a.i[a.g].pop();d=wh.get(c);break;case xh:a.i[a.g].pop(),d=yh.get(c)}d&&a.i[a.g].push(new lh(d,a.m,a.j,a.s,a.l))}}
|
|
251
|
+
function zh(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function ph(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
|
|
252
|
+
var rh=0,th=1,vh=2,xh=3,sh=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"]]),uh=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"]]),wh=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
|
|
253
|
+
[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"]]),yh=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
|
|
254
|
+
[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 Ah(a,b){this.h=Bh;this.s=new mh(a,b);this.i=new mh(a,b);this.l=new mh(a,b);this.g=this.i;this.j=0;this.m=null}function Ch(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Dh&&a.h!==Eh&&(e=oh(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,ph(c,0,15),c=a.l,c.g=0<c.h?c.h:0,ph(c,0,15),d.g=15);a.h=Dh;d.h=b;return e}function Fh(a){a.h=Gh;a.g=a.l;a.g.h=0}function Hh(a){Wa("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=Eh}
|
|
255
|
+
var Bh=0,Gh=1,Dh=3,Eh=4,Ih="black green blue cyan red yellow magenta black".split(" "),Jh="white green blue cyan red yellow magenta white_italics".split(" ");function Kh(){this.l=!1;this.F=this.H=0;this.G=Lh;this.i=[];this.g=this.h=this.j=0;this.C=this.s=!1;this.B="white";this.m="black";Mh(this)}function Mh(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Nh())}function Nh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Oh(a,b){Ph(a)&&(a.i[a.h][a.g]=new lh(b,a.C,a.s,a.m,a.B),a.g++)}function Ph(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}Kh.prototype.isVisible=function(){return this.l};
|
|
256
|
+
function Qh(a,b,c){var d=new hc(a.j,b,"");d.textAlign=a.G===Rh?"left":a.G===Sh?"right":mc;if(c=ih(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Rh=0,Sh=1,Lh=2;function Th(){this.i=[];this.h=null;this.g=0}function Uh(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 Vh(a.h)),a.h=null,a.g=0))}function Vh(a){this.g=0;this.h=a}Vh.prototype.xa=function(){return this.g<this.h.length};Vh.prototype.ma=function(){return this.g};function Wh(a){if(!a.xa())throw new M(2,2,3E3);return a.h[a.g++]}Vh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new M(2,2,3E3);this.g+=a};function Xh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
|
|
257
|
+
function Yh(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=Wh(b).value;b=null;c=r(Zh(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Qh(e,d,a.i)),Mh(e);return b}if(137===c)for(b=Wh(b).value,b=r(Zh(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=Wh(b).value;b=null;c=r(Zh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Qh(e,d,a.i)),e.l=!1;return b}if(139===c){c=Wh(b).value;
|
|
258
|
+
b=null;c=r(Zh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Qh(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Wh(b).value,$h(a,b,d);if(143===c)return d=$h(a,255,d),ai(a),d;if(144===c)b.skip(1),d=Wh(b).value,a.g&&(a.g.s=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=Wh(b).value,c=Wh(b).value,b.skip(1),a.g&&(b=bi((c&48)>>4,(c&12)>>2,c&3),a.g.B=bi((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=Wh(b).value,b=Wh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
|
|
259
|
+
b.skip(1),d=Wh(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 Kh;f.j=d;a.h[c]=f}d=Wh(b).value;Wh(b);Wh(b);f=Wh(b).value;var g=Wh(b).value;b=Wh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.s=!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 Zh(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
|
|
260
|
+
function $h(a,b,c){var d=null;b=r(Zh(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=Qh(f,c,a.i));a.h[e]=null}return d}function ai(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function bi(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return ci[a<<2|b<<1|c]}
|
|
261
|
+
var di=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"]]),ci="black blue green cyan red magenta yellow white".split(" ");function ei(){this.h=[];this.g=[];this.i=new Th;this.l=0;this.B=new Map([["CC1",new Ah(0,0)],["CC2",new Ah(0,1)],["CC3",new Ah(1,0)],["CC4",new Ah(1,1)]]);this.s=this.m=0;this.j=new Map;fi(this)}function fi(a){a.m=0;a.s=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,nh(b.i),nh(b.l),nh(b.s)}
|
|
262
|
+
function gi(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=hi(a,e.value))&&c.push(e);d=r(a.g);for(e=d.next();!e.done;e=d.next())Uh(a.i,e.value);d=r(a.i.i);for(e=d.next();!e.done;e=d.next())e=ii(a,e.value),c.push.apply(c,ia(e));a.i.i=[];a.h=[];a.g=[];return c}
|
|
263
|
+
function hi(a,b){var c=b.type;if(16===(b.Oa&112)){var d=b.Oa>>3&1;0===c?a.m=d:a.s=d}c=a.B.get("CC"+(c<<1|(c?a.s:a.m)+1));if(255===b.Oa&&255===b.hb||!b.Oa&&!b.hb||!ji(b.Oa)||!ji(b.hb))return 45<=++a.l&&fi(a),null;a.l=0;b.Oa&=127;b.hb&=127;if(!b.Oa&&!b.hb)return null;a=null;if(16===(b.Oa&112))a:{d=b.Oa;a=b.hb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=Jh[e]:7===e&&(f=!0);
|
|
264
|
+
a=1===(a&1);if(c.h!==Eh){e=c.g;if(c.h===Dh&&b!==e.g){var g=1+b-e.h;zh(e,g,1+e.g-e.h,e.h);ph(e,0,g-1);ph(e,b+1,15-b)}e.g=b;c.g.m=a;c.g.j=f;c.g.l=d;c.g.s="black"}}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",qh(c.g,rh,32),d=!1,b=Jh[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Ih[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))qh(c.g,th,a);else if(18===
|
|
265
|
+
(d&246)&&32===(a&224))qh(c.g,d&1?xh:vh,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.hb){case 32:Fh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Ch(c,2,a);break;case 38:d=Ch(c,3,a);break;case 39:d=Ch(c,4,a);break;case 40:qh(c.g,rh,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=a;break;case 42:nh(c.s);Hh(c);break;case 43:Hh(c);break;case 44:b=c.i;d=null;c.h!==Eh&&(d=oh(b,c.j,a));ph(b,0,15);break;case 45:b=c.g;c.h!==Dh?d=null:(d=oh(b,c.j,a),f=b.g-b.h+1,zh(b,f-1,f,b.h),ph(b,0,
|
|
266
|
+
f-1),ph(b,b.g,15-b.g),c.j=a);break;case 46:ph(c.l,0,15);break;case 47:b=null,c.h!==Eh&&(b=oh(c.i,c.j,a)),d=c.l,c.l=c.i,c.i=d,Fh(c),c.j=a,d=b}a=d;break a}a=null}else d=b.hb,qh(c.g,rh,b.Oa),qh(c.g,rh,d);return a}
|
|
267
|
+
function ii(a,b){var c=[];try{for(;b.xa();){var d=Wh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Wh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Xh(e));for(var g=a.j.get(e),h=b.ma();b.ma()-h<f;){e=b;var k=Wh(e),l=k.value,m=k.pts;if(16===l){var p=Wh(e);l=l<<16|p.value}if(0<=l&&31>=l){var n=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Ph(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=Qh(t,n,g.i));if(t.h+1>=t.H){n=t;for(var v=0,y=1;16>y;y++,
|
|
268
|
+
v++)n.i[v]=n.i[y];for(y=0;1>y;y++,v++)n.i[v]=Nh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=Qh(t,n,g.i));t.i[t.h]=Nh();t.g=0;break;case 12:t.isVisible()&&(e=Qh(t,n,g.i)),Mh(t),n=t,n.h=0,n.g=0}var w=e}else w=null}else if(128<=l&&159>=l)w=Yh(g,e,l,m);else{if(4096<=l&&4127>=l)n=l&255,8<=n&&15>=n?e.skip(1):16<=n&&23>=n?e.skip(2):24<=n&&31>=n&&e.skip(3);else if(4224<=l&&4255>=l)n=l&255,128<=n&&135>=n?e.skip(4):136<=n&&143>=n&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Oh(g.g,"\u266a"):Oh(g.g,
|
|
269
|
+
String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Oh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(di.has(e)){var x=di.get(e);Oh(g.g,x)}else Oh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Oh(g.g,"_"):Oh(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(C){if(C instanceof M&&3E3===C.code)Wa("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw C;}return c}function ji(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function ki(){}ki.prototype.init=function(){};ki.prototype.parse=function(){return[]};function li(a,b){var c=null,d=null,e=null,f=a.N();b&1&&(e=a.Cb());b&2&&a.skip(4);b&8&&(c=a.N());b&16&&(d=a.N());return{trackId:f,Cf:c,vg:d,oj:e}}function mi(a,b){return{rf:1==b?a.Cb():a.N()}}function ni(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.N()}}
|
|
270
|
+
function oi(a,b,c){var d=a.N(),e=[],f=null;c&1&&(f=a.N());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Ge:null,sampleSize:null,Ld:null};c&256&&(h.Ge=a.N());c&512&&(h.sampleSize=a.N());c&1024&&a.skip(4);c&2048&&(h.Ld=0==b?a.N():a.Qf());e.push(h)}return{tj:d,Sf:e,ug:f}};function pi(){this.j=new Map;this.i=this.h=0;this.g=qi}
|
|
271
|
+
pi.prototype.init=function(a){function b(f){f=f.name;f in ri&&(c.g=ri[f])}var c=this,d=[],e=[];(new Hf).box("moov",Mf).box("mvex",Mf).T("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.N();g=g.N();c.h=f;c.i=g}).box("trak",Mf).T("tkhd",function(f){var g=f.reader;1==f.version?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));f=g.N();d.push(f)}).box("mdia",Mf).T("mdhd",function(f){f=ni(f.reader,f.version);e.push(f.timescale)}).box("minf",Mf).box("stbl",Mf).T("stsd",Of).box("avc1",b).box("avc3",b).box("hev1",
|
|
272
|
+
b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("encv",Pf).box("sinf",Mf).box("frma",function(f){f=f.reader.N();f=Lf(f);f in ri&&(c.g=ri[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new M(2,2,2010);this.g==qi&&Ua("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
|
|
273
|
+
pi.prototype.parse=function(a){var b=this;if(this.g==qi)return[];var c=[],d=this.h,e=this.i,f=[],g=null,h=null,k=null,l=9E4;(new Hf).box("moof",function(m){g=m.start;Mf(m)}).box("traf",Mf).T("trun",function(m){m=oi(m.reader,m.version,m.flags);f=m.Sf;h=m.ug}).T("tfhd",function(m){m=li(m.reader,m.flags);d=m.Cf||b.h;e=m.vg||b.i;m=m.trackId;b.j.has(m)&&(l=b.j.get(m))}).T("tfdt",function(m){k=mi(m.reader,m.version).rf}).box("mdat",function(m){if(null===k)throw new M(2,2,2010);a:{var p=m.reader,n=k,t=l,
|
|
274
|
+
v=d,y=e,w=f,x=0,C=y;w.length&&(C=w[0].sampleSize||y);for(p.skip((g||0)+(h||0)-m.start-8);p.xa();){m=p.N();var z=p.ob();switch(b.g){case si:z&=31;z=6==z;break;case ti:z=z>>1&63;z=39==z||40==z;break;default:break a}if(z){z=0;w.length>x&&(z=w[x].Ld||0);z=(n+z)/t;for(var B=[],E,F=p.Bb(m-1),H=E=0;H<F.length;)2==E&&3==F[H]?(E=0,F=[].concat(ia(F)),F.splice(H,1),F=new Uint8Array(F)):0==F[H]?E++:E=0,H++;E=F;for(H=0;H<E.length;){for(F=0;255==E[H];)F+=255,H++;F+=E[H++];for(var J=0;255==E[H];)J+=255,H++;J+=E[H++];
|
|
275
|
+
4==F&&B.push(E.subarray(H,H+J));H+=J}B=r(B);for(E=B.next();!E.done;E=B.next())c.push({qh:E.value,pts:z})}else try{p.skip(m-1)}catch(K){break}C-=m+4;0==C&&(n=w.length>x?n+(w[x].Ge||v):n+v,x++,C=w.length>x?w[x].sampleSize||y:y)}}}).parse(a,!1);return c};var qi=0,si=1,ti=2,ri={avc1:si,avc3:si,hev1:ti,hvc1:ti,dvh1:ti,dvhe:ti};function ui(a){this.h=new ki;a.includes("video/mp4")&&(this.h=new pi);this.g=new ei}ui.prototype.init=function(a){this.h.init(a)};
|
|
276
|
+
function vi(a,b){b=a.h.parse(b);b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Fc(d.qh);if(0<e.length&&(c=a.g,d=d.pts,e=new Ef(e,0),181===e.ob()&&49===e.De()&&1195456820===e.N()&&3===e.ob())){var f=e.ob();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.ob(),k=(h&4)>>2,l=e.ob(),m=e.ob();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,Oa:l,hb:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return gi(a.g)}
|
|
277
|
+
;function wi(a,b,c,d,e){this.Pa=a;this.Ta=b;this.Ca=c;this.we=void 0===d?null:d;this.timescale=e}wi.prototype.Jc=function(){return this.Ta};wi.prototype.Fc=function(){return this.Ca};function xi(a,b){return a&&b?a.Jc()==b.Jc()&&a.Fc()==b.Fc()&&gc(a.Pa(),b.Pa()):a==b}I("shaka.media.InitSegmentReference",wi);wi.prototype.getEndByte=wi.prototype.Fc;wi.prototype.getStartByte=wi.prototype.Jc;
|
|
278
|
+
function yi(a,b,c,d,e,f,g,h,k,l,m,p,n,t,v){l=void 0===l?[]:l;t=void 0===t?zi:t;this.startTime=a;this.l=this.endTime=b;this.C=c;this.Ta=d;this.Ca=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.B=void 0===p?null:p;this.g=void 0===n?null:n;this.status=t;this.m=void 0===v?null:v;this.s=null;this.j=0}q=yi.prototype;q.Pa=function(){return this.C()};q.getStartTime=function(){return this.startTime};q.Hg=function(){return this.endTime};
|
|
279
|
+
q.Jc=function(){return this.Ta};q.Fc=function(){return this.Ca};q.$g=function(){return this.tilesLayout};q.Zg=function(){return this.B};q.ec=function(){return this.status};q.jh=function(){this.status=Ai};q.Zf=function(a){this.s=a};q.Xg=function(){return this.s};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.l+=a;for(var b=r(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.l+=a};
|
|
280
|
+
q.Ve=function(a){null==this.g?Ta("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};I("shaka.media.SegmentReference",yi);yi.prototype.syncAgainst=yi.prototype.Ve;yi.prototype.offset=yi.prototype.offset;yi.prototype.getThumbnailSprite=yi.prototype.Xg;yi.prototype.setThumbnailSprite=yi.prototype.Zf;yi.prototype.markAsUnavailable=yi.prototype.jh;yi.prototype.getStatus=yi.prototype.ec;yi.prototype.getTileDuration=yi.prototype.Zg;
|
|
281
|
+
yi.prototype.getTilesLayout=yi.prototype.$g;yi.prototype.getEndByte=yi.prototype.Fc;yi.prototype.getStartByte=yi.prototype.Jc;yi.prototype.getEndTime=yi.prototype.Hg;yi.prototype.getStartTime=yi.prototype.getStartTime;yi.prototype.getUris=yi.prototype.Pa;var zi=0,Ai=1;yi.Status={Uh:zi,hj:Ai,wi:2};function Bi(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 Ci(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Di(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)}
|
|
282
|
+
function Ei(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=r(Fi(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}function Gi(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Fi(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}
|
|
283
|
+
function Fi(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};/*
|
|
283
284
|
@license
|
|
284
285
|
Shaka Player
|
|
285
286
|
Copyright 2022 Google LLC
|
|
286
287
|
SPDX-License-Identifier: Apache-2.0
|
|
287
288
|
*/
|
|
288
|
-
function
|
|
289
|
-
function
|
|
290
|
-
a.size)return null;d=a.data.indexOf(0);if(-1===d)return null;d
|
|
291
|
-
function
|
|
292
|
-
I("shaka.util.Id3Utils",
|
|
293
|
-
|
|
289
|
+
function Hi(){}function Ii(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127}
|
|
290
|
+
function Ji(a){var b={key:a.type,description:"",data:""};if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=$c(Fc(a.data,1,c));a=$c(Fc(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;c=a.data.subarray(1).indexOf(0);if(-1===c)return null;d=$c(Fc(a.data,1,c));a=$c(Fc(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("PRIV"===a.type){if(2>
|
|
291
|
+
a.size)return null;d=a.data.indexOf(0);if(-1===d)return null;d=$c(Fc(a.data,0,d));a=Gc(a.data.subarray(d.length+1));b.description=d;b.data=a;return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=$c(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=$c(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Gc(a.data),b):null}
|
|
292
|
+
function Ki(a){for(var b=0,c=[];b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9];){var d=Ii(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=Ii(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Ji(e))&&c.push(f);b+=e.size+10}b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]&&(b+=10)}return c}
|
|
293
|
+
I("shaka.util.Id3Utils",Hi);Hi.getID3Frames=Ki;function Li(){this.s=null;this.B=!1;this.l=this.m=null;this.F=[];this.g=this.h=null;this.C=[];this.j=null;this.i=[]}
|
|
294
|
+
Li.prototype.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Mi(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71===a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h===e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.s=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.s:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,me:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&
|
|
294
295
|
15)<<8|f[h+11]);h<k;){var l=(f[h+1]&31)<<8|f[h+2];switch(f[h]){case 15:-1===g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1===g.me&&(g.me=l);break;case 27:-1===g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1===g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1===g.video&&(g.video=l,g.videoCodec="hvc")}h+=((f[h+3]&15)<<8|f[h+4])+5}f=g;null==this.l&&(this.l=f.video);null==this.g&&(this.g=f.audio);null==this.j&&(this.j=f.me);d&&!this.B&&(d=!1,e=b-188);this.B=!0;break;case this.l:f=
|
|
295
|
-
a.subarray(h,e+188);null==this.m&&(h=
|
|
296
|
-
function
|
|
297
|
-
function
|
|
298
|
-
(this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}
|
|
299
|
-
function
|
|
300
|
-
a.i={};a.
|
|
301
|
-
q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,
|
|
302
|
-
d.C.o(
|
|
303
|
-
function
|
|
304
|
-
function
|
|
305
|
-
a
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
function
|
|
310
|
-
function
|
|
311
|
-
|
|
312
|
-
function
|
|
313
|
-
function
|
|
314
|
-
function
|
|
315
|
-
|
|
316
|
-
q.
|
|
317
|
-
q.
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
function
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
function
|
|
296
|
+
a.subarray(h,e+188);null==this.m&&(h=Ni(f))&&null!=h.pts&&(this.m=h.pts/9E4);this.F.push(f);break;case this.g:f=a.subarray(h,e+188);null==this.h&&(h=Ni(f))&&null!=h.pts&&(this.h=h.pts/9E4);this.C.push(f);break;case this.j:this.i.push(a.subarray(h,e+188));break;default:d=!0}}return this};
|
|
297
|
+
function Ni(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),sj:6+(a[4]<<8|a[5]),pts:null,dts:null},c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));b.data=a.subarray(9+a[8]);return b}
|
|
298
|
+
function Oi(a){for(var b=[],c=new Uint8Array(0),d=a.i.length-1;0<=d;d--){c=ld(a.i[d],c);var e=Ni(c);e&&(b.unshift({cueTime:e.pts?e.pts/9E4:null,data:e.data,frames:Ki(e.data),dts:e.dts,pts:e.pts}),c=new Uint8Array(0))}return b}Li.prototype.getStartTime=function(){return{audio:this.h,video:this.m}};function Mi(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71===a[c]&&71===a[c+188]&&71===a[c+376])return c;c++}return-1}I("shaka.util.TsParser",Li);function Pi(a,b,c){this.g=null;this.i=-1;this.j=a;this.h=b;this.l=c;"undefined"===typeof libDPIModule&&Ua("Could not Find LCEVC Library dependencies on this page");"undefined"===typeof LcevcDil?Ua("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||Ua(LcevcDil.SupportObject.SupportError);"undefined"!==typeof LcevcDil&&"undefined"!==typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&
|
|
299
|
+
(this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}Pi.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Qi(a,b){var c=Ri;switch(b.mimeType){case "video/webm":c=Si;break;case "video/mp4":c=Ti}a.g&&(a.i=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(c))}I("shaka.lcevc.Dil",Pi);Pi.prototype.release=Pi.prototype.release;var Ri=0,Si=1,Ti=2;function Ui(a,b,c,d){var e=this;this.l=a;this.I=null;this.m=b;this.h={};this.M={};this.P={};this.g=null;this.J=!1;this.V=c||function(){};this.H=d||null;this.i={};this.C=new wf;this.s={};this.B=null;this.K=new Jc;this.j=Vi(this,this.K);this.G=new uf(function(){return Wi(e)});this.O="";this.F=!1;this.X=new Jc}function Vi(a,b){var c=new MediaSource;a.C.ya(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.O=Xi(c);a.l.src=a.O;return c}q=Ui.prototype;q.destroy=function(){return this.G.destroy()};
|
|
300
|
+
function Wi(a){var b,c,d,e,f,g,h,k;return G(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(zb)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new M(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.s)b.push(a.s[k].destroy());return u(l,Promise.all(b),2)}a.C&&(a.C.release(),a.C=null);a.l&&(a.l.removeAttribute("src"),a.l.load(),a.l=null);a.I=null;a.j=null;a.g=null;a.m=null;a.h={};a.s={};a.B=null;
|
|
301
|
+
a.i={};a.H=null;A(l)})}
|
|
302
|
+
q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,p;return G(function(n){if(1==n.g)return e=Hb,u(n,d.K,2);d.F=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Ea:f.Ea},h=g.next())if(f.Ea=h.value,k=a.get(f.Ea),l=wd(k.mimeType,k.codecs),f.Ea==e.ba)Yi(d,l,c);else{!b&&bc(l)||!qd(l,f.Ea)||(d.s[f.Ea]=new pd(l),l=td(f.Ea,l));m=l+d.I.sourceBufferExtraFeatures;vf(d.G);p=void 0;try{p=d.j.addSourceBuffer(m)}catch(t){throw new M(2,3,3015,t,"The mediaSource_ status was"+d.j.readyState+"expected 'open'");
|
|
303
|
+
}d.C.o(p,"error",function(t){return function(){d.i[t.Ea][0].p.reject(new M(2,3,3014,d.l.error?d.l.error.code:0))}}(f));d.C.o(p,"updateend",function(t){return function(){return Zi(d,t.Ea)}}(f));d.h[f.Ea]=p;d.M[f.Ea]=l;d.i[f.Ea]=[];d.P[f.Ea]=!!k.drmInfos.length}A(n)})};q.configure=function(a){this.I=a};
|
|
304
|
+
function Yi(a,b,c){a.g||(a.g=new Bd(a.m));var d=a.g;a=a.J;"application/cea-608"==b||"application/cea-708"==b?d.i=null:(d.i=(0,Dd[b])(),d.i.setSequenceMode?d.i.setSequenceMode(c):Ua('Text parsers should have a "setSequenceMode" method!'),d.C=a)}function $i(a){return a.j?"ended"==a.j.readyState:!0}function aj(a,b){return b==Gb?a.g.g:Bi(bj(a,b))}function cj(a,b){return b==Gb?a.g.h:Ci(bj(a,b))}function dj(a,b,c){if(b==Gb)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=bj(a,b);return Ei(a,c)}
|
|
305
|
+
q.ib=function(){var a={total:Fi(this.l.buffered),audio:Fi(bj(this,"audio")),video:Fi(bj(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 bj(a,b){try{return a.h[b].buffered}catch(c){return null}}
|
|
306
|
+
function ej(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,p,n,t,v,y,w,x,C,z,B,E,F,H,J,K,P,V,U,ba;return G(function(Q){switch(Q.g){case 1:h=Hb;if(b!=h.ba){Q.D(2);break}if(!a.F){Q.D(3);break}return u(Q,a.X,4);case 4:k=Q.h,a.g.B=k;case 3:return u(Q,Ed(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return Q.return();case 2:l=Fc(c);m=a.M[b];a.s[b]&&(m=a.s[b].s);0>Mi(l)?fj.includes(m)&&(v=Ki(l),v.length&&d&&(y={cueTime:d.startTime,data:l,frames:v,dts:d.startTime,pts:d.startTime},
|
|
307
|
+
a.V([y],0,d.endTime))):(p=(new Li).parse(l),n=d.startTime-(p.getStartTime()[b]||0),t=Oi(p),t.length&&a.V(t,n,d?d.endTime:null));if(!a.s[b]){e&&b==h.Ma&&(a.g||Yi(a,"application/cea-608",a.F),a.B||(a.B=new ui(m)),d?(w=vi(a.B,c),w.length&&(x=a.h[h.Ma].timestampOffset,Jd(a.g,w,d.startTime,d.endTime,x))):a.B.init(c));Q.D(6);break}f&&a.s[b].g.resetCaptions();return u(Q,ud(a.s[b],c),7);case 7:C=Q.h,a.g||Yi(a,"application/cea-608",a.F),C.captions&&C.captions.length&&(z=a.h[h.Ma].timestampOffset,B=Hd(C.captions),
|
|
308
|
+
Jd(a.g,B,d?d.startTime:null,d?d.endTime:null,z)),c=C.data;case 6:c=gj(a,c,d?d.startTime:null,b);E=a.h[b];F=hj;if(!a.F||E.mode==F||!d){Q.D(8);break}H=a.j.duration;J=b==h.Ma||!(h.Ma in a.h);if(!J){Q.D(9);break}K=[E.appendWindowStart,E.appendWindowEnd];E.appendWindowStart=0;E.appendWindowEnd=Infinity;P=E.timestampOffset;E.timestampOffset=0;return u(Q,ij(a,b,function(){return jj(a,b,c)}),10);case 10:return u(Q,ij(a,b,function(){return kj(a,b)}),11);case 11:return E.timestampOffset=P,E.appendWindowStart=
|
|
309
|
+
K[0],E.appendWindowEnd=K[1],V=Bi(bj(a,b)),U=(d.startTime||0)-(V||0),a.X.resolve(U),u(Q,ij(a,b,function(){return lj(a,b,0,H)}),12);case 12:if(b!=h.Ma){Q.D(9);break}return u(Q,ij(a,b,function(){a.l.currentTime-=.001;Zi(a,b)}),9);case 9:return E.mode=F,u(Q,a.Sa(H),8);case 8:return d&&a.F&&b!=h.ba&&(f||g)&&(ba=d.startTime,ij(a,b,function(){return kj(a,b)}),ij(a,b,function(){return mj(a,b,ba)})),u(Q,ij(a,b,function(){jj(a,b,c)}),16);case 16:A(Q)}})}function nj(a,b){var c=cj(a,"video")||0;Gd(a.g,b,c)}
|
|
310
|
+
function oj(a){a.g&&Gd(a.g,"",0)}q.remove=function(a,b,c){var d=this,e;return G(function(f){e=Hb;return a==e.ba?u(f,d.g.remove(b,c),0):u(f,ij(d,a,function(){return lj(d,a,b,c)}),0)})};function pj(a,b){var c;return G(function(d){c=Hb;return b==c.ba?a.g?u(d,a.g.remove(0,Infinity),0):d.return():u(d,ij(a,b,function(){return lj(a,b,0,a.j.duration)}),0)})}q.flush=function(a){var b=this,c;return G(function(d){c=Hb;return a==c.ba?d.return():u(d,ij(b,a,function(){b.l.currentTime-=.001;Zi(b,a)}),0)})};
|
|
311
|
+
function qj(a,b,c,d,e,f){var g;return G(function(h){g=Hb;return b==g.ba?(f||(a.g.B=c),Fd(a.g,d,e),h.return()):u(h,Promise.all([ij(a,b,function(){return kj(a,b)}),f?Promise.resolve():ij(a,b,function(){return mj(a,b,c)}),ij(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Zi(a,b)})]),0)})}
|
|
312
|
+
function rj(a,b,c){var d;return G(function(e){d=Hb;if(b==d.ba)return e.return();ij(a,b,function(){return kj(a,b)});return u(e,ij(a,b,function(){return mj(a,b,c)}),0)})}q.endOfStream=function(a){var b=this;return G(function(c){return u(c,sj(b,function(){$i(b)||"closed"===b.j.readyState||(a?b.j.endOfStream(a):b.j.endOfStream())}),0)})};
|
|
313
|
+
q.Sa=function(a){var b=this;return G(function(c){return u(c,sj(b,function(){if(a<b.j.duration)for(var d in b.h){var e={start:function(){},p:new Jc};b.i[d].unshift(e)}b.j.duration=a}),0)})};q.getDuration=function(){return this.j.duration};function jj(a,b,c){if("video"==b&&a.H){var d=a.H;d.g&&d.g.appendBuffer(c,"video",d.i)}a.h[b].appendBuffer(c)}function lj(a,b,c,d){d<=c?Zi(a,b):a.h[b].remove(c,d)}
|
|
314
|
+
function kj(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;Zi(a,b)}function mj(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;Zi(a,b)}function Zi(a,b){var c=a.i[b][0];c&&(c.p.resolve(),tj(a,b))}function ij(a,b,c){vf(a.G);c={start:c,p:new Jc};a.i[b].push(c);1==a.i[b].length&&uj(a,b);return c.p}
|
|
315
|
+
function sj(a,b){var c,d,e,f,g,h;return G(function(k){switch(k.g){case 1:vf(a.G);c=[];d={};for(e in a.h)d.yc=new Jc,f={start:function(l){return function(){return l.yc.resolve()}}(d),p:d.yc},a.i[e].push(f),c.push(d.yc),1==a.i[e].length&&f.start(),d={yc:d.yc};D(k,2);return u(k,Promise.all(c),4);case 4:ua(k,3);break;case 2:throw g=va(k),g;case 3:try{b()}catch(l){throw new M(2,3,3015,l);}finally{for(h in a.h)tj(a,h)}A(k)}})}function tj(a,b){a.i[b].shift();uj(a,b)}
|
|
316
|
+
function uj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new M(2,3,3017,b)):c.p.reject(new M(2,3,3015,d)),tj(a,b)}}function gj(a,b,c,d){var e=a.P[d];null==c&&e&&(Sc()||Qc())&&"mp4"==a.M[d].split(";")[0].split("/")[1]&&(b=eh(b));return b}var Xi=window.URL.createObjectURL,hj="sequence",fj=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function O(a,b,c){this.i=a;this.m=b;this.s=this.j=Infinity;this.g=1;this.h=this.l=null;this.B=0;this.C=!0;this.F=0;this.G=void 0===c?!0:c;this.H=0;this.I=!1}q=O.prototype;q.getDuration=function(){return this.j};q.Pg=function(){return this.g};q.Yf=function(a){this.i=a};q.Sa=function(a){this.j=a};q.Tg=function(){return this.i};q.Uf=function(a){this.B=a};q.$c=function(a){this.C=a};q.Re=function(a){this.s=a};q.Vf=function(a){this.m=a};q.Gg=function(){return this.m};
|
|
317
|
+
q.lc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.B)/1E3;a=r(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Ae(b);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.I&&(this.i=d-this.h-this.g)}};q.ve=function(){this.I=!0};q.Ae=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.ze=function(a){this.g=Math.max(this.g,a)};
|
|
318
|
+
q.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};q.U=function(){return Infinity==this.j&&!this.C};q.Lb=function(){return Infinity!=this.j&&!this.C};q.kb=function(){return Math.max(this.F,this.Ib()-this.s)};q.$f=function(a){this.F=a};q.Ib=function(){return this.U()||this.Lb()?Math.min(Math.max(0,(Date.now()+this.B)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};
|
|
319
|
+
q.Ic=function(a){var b=Math.max(this.l,this.F);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ib()-this.s+a,this.jb()))};q.dc=function(){return this.Ic(0)};q.jb=function(){return Math.max(0,this.Ib()-(this.U()||this.Lb()?this.m:0))};q.eg=function(){return null==this.i||null!=this.h&&this.G?!1:!0};q.Tf=function(a){this.H=a};I("shaka.media.PresentationTimeline",O);O.prototype.setAvailabilityTimeOffset=O.prototype.Tf;O.prototype.usingPresentationStartTime=O.prototype.eg;
|
|
320
|
+
O.prototype.getSeekRangeEnd=O.prototype.jb;O.prototype.getSeekRangeStart=O.prototype.dc;O.prototype.getSafeSeekRangeStart=O.prototype.Ic;O.prototype.getSegmentAvailabilityEnd=O.prototype.Ib;O.prototype.setUserSeekStart=O.prototype.$f;O.prototype.getSegmentAvailabilityStart=O.prototype.kb;O.prototype.isInProgress=O.prototype.Lb;O.prototype.isLive=O.prototype.U;O.prototype.offset=O.prototype.offset;O.prototype.notifyMaxSegmentDuration=O.prototype.ze;O.prototype.notifyMinSegmentStartTime=O.prototype.Ae;
|
|
321
|
+
O.prototype.lockStartTime=O.prototype.ve;O.prototype.notifySegments=O.prototype.lc;O.prototype.getDelay=O.prototype.Gg;O.prototype.setDelay=O.prototype.Vf;O.prototype.setSegmentAvailabilityDuration=O.prototype.Re;O.prototype.setStatic=O.prototype.$c;O.prototype.setClockOffset=O.prototype.Uf;O.prototype.getPresentationStartTime=O.prototype.Tg;O.prototype.setDuration=O.prototype.Sa;O.prototype.setPresentationStartTime=O.prototype.Yf;O.prototype.getMaxSegmentDuration=O.prototype.Pg;
|
|
322
|
+
O.prototype.getDuration=O.prototype.getDuration;function vj(a,b,c){this.l=c;this.j=a;this.B=wj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}vj.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function xj(a,b){a.i=b}function yj(a){this.g=a}function wj(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(Fi(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 zj(a,b,c,d,e){var f=this;this.s=e;this.g=a;this.B=b;this.G=c;this.i=new wf;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return Aj(f)});this.j=(new N(function(){Aj(f)})).ha(.25)}zj.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.B=this.s=null};zj.prototype.Ce=function(){this.l=!0;Aj(this)};
|
|
323
|
+
function Aj(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.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=wj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.m=f,b.g=e,b.B=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.s++,b.l(new L("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Gi(c,b,a.G.gapDetectionThreshold),null==
|
|
324
|
+
d||0==d&&!a.l||(e=c.start(d),e>=a.B.jb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.s(new L("gapjumped")))))}}};function Bj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Cj.value().get(b),c.ya(a,b,d))}var Cj=new Kc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Dj(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new wf;this.i=new Ej(a);Bj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Fj(d,d.j)})}Dj.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 Gj(a){return a.m?a.g.currentTime:a.j}function Hj(a,b){0<a.g.readyState?Ij(a.i,b):Bj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Fj(a,a.j)})}
|
|
325
|
+
function Fj(a,b){.001>Math.abs(a.g.currentTime-b)?Jj(a):(a.h.ya(a.g,"seeking",function(){Jj(a)}),Ij(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Jj(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function Ej(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new N(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ej.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
|
|
326
|
+
function Ij(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ha(.1)};function Kj(a){this.g=a;this.j=!1;this.h=null;this.i=new wf}q=Kj.prototype;q.ge=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ya(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;Bj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.ie=function(a){this.h=this.j?this.h:a};q.kd=function(){return(this.j?this.g.currentTime:this.h)||0};q.nf=function(){return 0};
|
|
325
327
|
q.mf=function(){return 0};q.Pf=function(){};
|
|
326
|
-
function
|
|
327
|
-
l-k&&(k=l-3);h<k&&(h=
|
|
328
|
-
function
|
|
329
|
-
function
|
|
328
|
+
function Lj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.F=b.minBufferTime||0;this.l=c;this.C=e;this.B=null;this.s=Mj(a,c,f);this.j=new zj(a,b.presentationTimeline,c,this.s,f);this.h=new Dj(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=Gj(g.h);h=Nj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;Hj(g.h,h);h=void 0;break a}g.C();h=void 0}return h},Oj(this,d));this.m=new N(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Gj(g.h),k=g.g.dc(),l=g.g.jb();3>
|
|
329
|
+
l-k&&(k=l-3);h<k&&(h=Nj(g,h),g.i.currentTime=h)}})}q=Lj.prototype;q.ge=function(){this.m.ha(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};q.ie=function(a){Hj(this.h,a)};q.kd=function(){var a=Gj(this.h);return 0<this.i.readyState&&!this.i.paused?Pj(this,a):a};q.nf=function(){return this.s?this.s.s:0};q.mf=function(){return this.j.C};
|
|
330
|
+
function Oj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.dc():a.g.jb():0>b&&(b=a.g.jb()+b);return Qj(a,Pj(a,b))}q.Pf=function(){this.j.Ce()};function Qj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Nj(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.dc(),f=a.g.jb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Ic(c),k=a.g.Ic(d);c=a.g.Ic(c+d);return b>=g?Qj(a,b):b>f?f:b<e?Di(a.i.buffered,k)?k:c:b>=h||Di(a.i.buffered,b)?b:c}
|
|
331
|
+
function Pj(a,b){var c=a.g.dc();if(b<c)return c;a=a.g.jb();return b>a?a:b}function Mj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new vj(new yj(a),b.stallThreshold,c);xj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Rj(a){this.g=a;this.h=null;this.i=0;this.j=!1}q=Rj.prototype;q.release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)};q.kh=function(){this.j=!0};function Sj(a,b){a=r(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.g.length&&a<this.g[0].startTime?this.i:null};
|
|
330
332
|
q.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.j)for(var b=r(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};q.Sc=function(a){if(!this.j&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,ia(a))}};
|
|
331
333
|
q.kc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Sc(a);this.Gb(b)};q.Gb=function(a){if(!this.j){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
|
|
332
|
-
q.wb=function(a,b,c){c=void 0===c?!1:c;if(!this.j){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new
|
|
333
|
-
q.Nd=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new
|
|
334
|
-
function
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
q.wb=function(a,b,c){c=void 0===c?!1:c;if(!this.j){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new yi(a.startTime,b,a.C,a.Ta,a.Ca,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.i,a.tilesLayout,a.B,a.g,a.status,a.m),this.g[this.g.length-1].j=a.j)}};
|
|
335
|
+
q.Nd=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new N(function(){var d=b();d?c.g.push.apply(c.g,ia(d)):(c.h.stop(),c.h=null)}),this.h.ha(a))};Rj.prototype[Symbol.iterator]=function(){return this.bc(0)};Rj.prototype.bc=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.i.length)for(var e=c.i.length-1;0<=e;--e){var f=c.i[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Tj(this,b,d)};
|
|
336
|
+
function Uj(a,b,c){return new Rj([new yi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}I("shaka.media.SegmentIndex",Rj);Rj.forSingleSegment=Uj;Rj.prototype.getIteratorForTime=Rj.prototype.bc;Rj.prototype.updateEvery=Rj.prototype.Nd;Rj.prototype.fit=Rj.prototype.wb;Rj.prototype.evict=Rj.prototype.Gb;Rj.prototype.mergeAndEvict=Rj.prototype.kc;Rj.prototype.offset=Rj.prototype.offset;Rj.prototype.get=Rj.prototype.get;Rj.prototype.find=Rj.prototype.find;Rj.prototype.markImmutable=Rj.prototype.kh;
|
|
337
|
+
Rj.prototype.release=Rj.prototype.release;function Tj(a,b,c){this.i=a;this.g=b;this.h=c}Tj.prototype.sg=function(){return this.g};Tj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.i.length&&a.Pa().length&&this.h>=a.i.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.i.length?a.i[this.h]:a};
|
|
338
|
+
Tj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.i.length?(this.h++,a.Pa().length&&this.h==a.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};I("shaka.media.SegmentIterator",Tj);Tj.prototype.next=Tj.prototype.next;Tj.prototype.current=Tj.prototype.current;Tj.prototype.currentPosition=Tj.prototype.sg;function Vj(){Rj.call(this,[]);this.l=[]}pa(Vj,Rj);q=Vj.prototype;q.clone=function(){var a=new Vj;a.l=this.l.slice();return a};
|
|
337
339
|
q.release=function(){for(var a=r(this.l),b=a.next();!b.done;b=a.next())b.value.release();this.l=[]};q.find=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.i+d.g.length}return null};q.get=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.i+d.g.length}return null};q.offset=function(){};q.Sc=function(){};q.Gb=function(){};q.kc=function(){};q.wb=function(){};q.Nd=function(){};
|
|
338
|
-
I("shaka.media.MetaSegmentIndex",
|
|
339
|
-
|
|
340
|
-
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.Af=d,JSON.stringify(d),c=new L("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function
|
|
341
|
-
function(c){b.g.delete(c.region)})}pa(
|
|
342
|
-
function
|
|
343
|
-
q.configure=function(a){this.i=a;this.
|
|
344
|
-
function
|
|
345
|
-
function
|
|
346
|
-
function
|
|
347
|
-
function
|
|
348
|
-
f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal)||b.Ka.h.g>h?!0:!1):f=!1;f&&b.Ka.abort();
|
|
349
|
-
q.Xc=function(){if(this.g)for(var a=this.g.vd(),b=r(this.j.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.j.get(d);c.qa=null;var e=this.g.
|
|
350
|
-
function
|
|
351
|
-
function
|
|
352
|
-
function
|
|
353
|
-
function
|
|
354
|
-
va(h),u(h,
|
|
355
|
-
function
|
|
356
|
-
f=Infinity;g=Array.from(a.j.values());g=r(g);for(h=g.next();!h.done;h=g.next())h=h.value,
|
|
357
|
-
function
|
|
358
|
-
function
|
|
359
|
-
function(K){F=K.size+K.start;E=!0}).parse(
|
|
360
|
-
if(a.B)return z.return();b.Ga=d;g.next();b.Ia=!1;b.Ee=!1;w=a.g.
|
|
361
|
-
function
|
|
362
|
-
function
|
|
363
|
-
function
|
|
364
|
-
2),u(w,k,4);case 4:return
|
|
365
|
-
return u(
|
|
366
|
-
function
|
|
367
|
-
|
|
368
|
-
v=new L("emsg",v),a.g.onEvent(v))});l&&h.
|
|
369
|
-
return u(
|
|
370
|
-
function
|
|
371
|
-
function
|
|
372
|
-
function
|
|
373
|
-
function
|
|
374
|
-
function
|
|
375
|
-
function
|
|
376
|
-
function
|
|
377
|
-
q.append=function(a){var b=
|
|
378
|
-
c.indexOf(g)});a=r(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};q.destroy=function(){this.g&&(
|
|
379
|
-
function
|
|
380
|
-
function
|
|
381
|
-
!0)}),this.l.observe(this.g));this.s=new Map}q=
|
|
382
|
-
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});
|
|
383
|
-
function
|
|
384
|
-
t.startTime?
|
|
385
|
-
function
|
|
386
|
-
g.style.height=c.height+h;g.style.width=c.width+k;g.style.position="absolute";g.style.top=c.viewportAnchorY+l;g.style.left=c.viewportAnchorX+l;g.style.display="flex";g.style.flexDirection="column";g.style.alignItems="center";g.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.s.set(e,g);c=g}e=f;d&&(e=R("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,f.appendChild(e));a.h.set(b,
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
"
|
|
390
|
-
|
|
391
|
-
(f.
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
function xl(a,b,c){
|
|
396
|
-
function
|
|
397
|
-
function
|
|
398
|
-
function
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
function
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
function
|
|
340
|
+
I("shaka.media.MetaSegmentIndex",Vj);Vj.prototype.updateEvery=Vj.prototype.Nd;Vj.prototype.fit=Vj.prototype.wb;Vj.prototype.mergeAndEvict=Vj.prototype.kc;Vj.prototype.evict=Vj.prototype.Gb;Vj.prototype.merge=Vj.prototype.Sc;Vj.prototype.offset=Vj.prototype.offset;Vj.prototype.get=Vj.prototype.get;Vj.prototype.find=Vj.prototype.find;Vj.prototype.release=Vj.prototype.release;function Wj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.wd();this.h=new N(function(){b.g.Of(.25*b.i)})}Wj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Wj.prototype.set=function(a){this.i=a;Xj(this)};Wj.prototype.td=function(){return this.g.td()};function Xj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.wd()!=b&&a.g.Pe(b);return}catch(c){}a.h.ha(.25);0!=a.g.wd()&&a.g.Pe(0)};function Yj(a){var b=this;this.h=a;this.g=new Set;this.i=(new N(function(){Zj(b,!1)})).ha(.25)}Yj.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 Zj(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function ak(a){db.call(this);this.g=new Map;this.h=a}pa(ak,db);ak.prototype.release=function(){this.g.clear();db.prototype.release.call(this)};function bk(a,b){var c=a.g.get(b);c||(c={Uc:[],Af:null,contentType:b},a.g.set(b,c));return c}function ck(a,b,c){var d=bk(a,b.contentType);dk(a,d);a={we:b,position:c};d=d.Uc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
|
|
341
|
+
ak.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.Uc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.we;break a}}d=null}if(e=d)e=c.Af,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);
|
|
342
|
+
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.Af=d,JSON.stringify(d),c=new L("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function dk(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Uc;b.Uc=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Uc=[]};function ek(a){db.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new N(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 L("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ha(2)}pa(ek,db);ek.prototype.release=function(){this.g.clear();this.h.stop();db.prototype.release.call(this)};function fk(a){db.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Vb:null,Ub:gk,Kb:function(c,d){return hk(b,"enter",c,d)}},{Vb:ik,Ub:gk,Kb:function(c,d){return hk(b,"enter",c,d)}},{Vb:jk,Ub:gk,Kb:function(c,d){return hk(b,"enter",c,d)}},{Vb:gk,Ub:ik,Kb:function(c,d){return hk(b,"exit",c,d)}},{Vb:gk,Ub:jk,Kb:function(c,d){return hk(b,"exit",c,d)}},{Vb:ik,Ub:jk,Kb:function(c,d){return hk(b,"skip",c,d)}},{Vb:jk,Ub:ik,Kb:function(c,d){return hk(b,"skip",c,d)}}];this.h=new wf;this.h.o(this.i,"regionremove",
|
|
343
|
+
function(c){b.g.delete(c.region)})}pa(fk,db);fk.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;db.prototype.release.call(this)};fk.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?ik:a>d.endTime?jk:gk;this.g.set(d,f);for(var g=r(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Vb==e&&h.Ub==f&&h.Kb(d,b)}};
|
|
344
|
+
function hk(a,b,c,d){b=new L(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var ik=1,gk=2,jk=3;function kk(a,b,c,d,e){a=nf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function lk(a,b){var c=this;this.g=b;this.m=a;this.i=null;this.C=1;this.s=this.l=null;this.H=0;this.G=!1;this.j=new Map;this.F=!1;this.I=null;this.B=!1;this.h=new uf(function(){return mk(c)})}q=lk.prototype;q.destroy=function(){return this.h.destroy()};function mk(a){var b,c,d,e;return G(function(f){if(1==f.g){b=[];c=r(a.j.values());for(d=c.next();!d.done;d=c.next())e=d.value,nk(e),b.push(ok(e));return u(f,Promise.all(b),2)}a.j.clear();a.g=null;a.m=null;a.i=null;A(f)})}
|
|
345
|
+
q.configure=function(a){this.i=a;this.I=new Ve({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)};q.start=function(){var a=this;return G(function(b){if(1==b.g)return u(b,pk(a),2);vf(a.h);a.F=!0;A(b)})};
|
|
346
|
+
function qk(a,b){var c,d,e,f,g,h,k;G(function(l){switch(l.g){case 1:return c=Hb,a.H++,d=a.H,D(l,2),u(l,pj(a.g.S,c.ba),4);case 4:ua(l,3);break;case 2:if(e=va(l),a.g)a.g.onError(e);case 3:f=wd(b.mimeType,b.codecs),Yi(a.g.S,f,a.m.sequenceMode),g=a.g.S.m,(h=g.isTextVisible()||a.i.alwaysStreamText)&&a.H==d&&(k=rk(b),a.j.set(c.ba,k),sk(a,k,0)),A(l)}})}function tk(a){var b=a.j.get(Gb);b&&(nk(b),ok(b).catch(function(){}),a.j.delete(Gb));a.s=null}
|
|
347
|
+
function uk(a,b){var c=a.j.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Sb&&(vk(a,b,!1,0,!1),c.Sb=d);else if(d=c.Sb)c.Sb=null,vk(a,d,!0,0,!1)}}function wk(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.l=b;a.F&&(b.video&&vk(a,b.video,c,d,e,f),b.audio&&vk(a,b.audio,c,d,e,f))}function xk(a,b){G(function(c){if(1==c.g)return a.s=b,a.F?b.segmentIndex?c.D(2):u(c,b.createSegmentIndex(),2):c.return();vk(a,b,!0,0,!1);A(c)})}
|
|
348
|
+
function vk(a,b,c,d,e,f){var g=a.j.get(b.type);g||b.type!=Gb?g&&(g.Sb&&(b.trickModeVideo?(g.Sb=b,b=b.trickModeVideo):g.Sb=null),g.stream!=b||e)&&(b.type==Gb&&Yi(a.g.S,wd(b.mimeType,b.codecs),a.m.sequenceMode),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.qa=null,g.pf=!!f,c&&(g.Cc?g.Pd=!0:g.Ia?(g.Eb=!0,g.qd=d,g.Pd=!0):(nk(g),yk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),zk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):qk(a,b)}
|
|
349
|
+
function zk(a,b){var c,d;return G(function(e){if(1==e.g){if(!b.Ka)return e.return();c=b.stream;d=b.Ka;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Ka!=d||b.stream!=c)return e.return();var f=a.g.vd();var g=cj(a.g.S,b.type),h=b.stream.segmentIndex.find(b.Ga?b.Ga.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ca?k.Ca-k.Ta:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.h)&&(h+=(k.Ca?k.Ca-k.Ta:null)||0),k=a.g.getBandwidthEstimate(),
|
|
350
|
+
f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal)||b.Ka.h.g>h?!0:!1):f=!1;f&&b.Ka.abort();A(e)})}
|
|
351
|
+
q.Xc=function(){if(this.g)for(var a=this.g.vd(),b=r(this.j.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.j.get(d);c.qa=null;var e=this.g.S;d==Gb?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=bj(e,d),e=Di(e,a));if(!e){(null!=cj(this.g.S,d)||c.Ia)&&Ak(this,c);c.Ka&&(c.Ka.abort(),c.Ka=null);if(d===Gb&&(d=this.g.S,d.B))for(d=d.B.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,fi(d),d=r(d.j.values()),e=d.next();!e.done;e=d.next())ai(e.value);c.Xc=!0}}};
|
|
352
|
+
function Ak(a,b){b.Cc||b.Eb||(b.Ia?(b.Eb=!0,b.qd=0):null==aj(a.g.S,b.type)?null==b.eb&&sk(a,b,0):(nk(b),yk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
|
|
353
|
+
function pk(a){var b,c,d,e,f,g,h,k,l,m;return G(function(p){if(1==p.g){b=Hb;if(!a.l)throw new M(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.jd,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ma,a.l.video),d.add(a.l.video));a.s&&(c.set(b.ba,a.s),d.add(a.s));e=a.g.S;f=a.i.forceTransmux;return u(p,e.init(c,f,a.m.sequenceMode),2)}vf(a.h);a.updateDuration();g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.j.has(k)||(m=rk(l),a.j.set(k,m),sk(a,m,0));A(p)})}
|
|
354
|
+
function rk(a){return{stream:a,type:a.type,qa:null,Ga:null,yd:null,se:null,re:null,qe:null,Sb:null,endOfStream:!1,Ia:!1,eb:null,Eb:!1,qd:0,Pd:!1,Cc:!1,Xc:!0,ye:!1,Ee:!1,Mc:!1,Ka:null}}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.S.Sa(a):this.g.S.Sa(Math.pow(2,32))};
|
|
355
|
+
function Bk(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:vf(a.h);if(b.Ia||null==b.eb||b.Cc)return h.return();b.eb=null;if(!b.Eb){h.D(2);break}return u(h,yk(a,b,b.Pd,b.qd),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(),b.Ia||b.eb||sk(a,b,0),h.return();case 4:D(h,6);d=Ck(a,b);null!=d&&(sk(a,b,d),b.Mc=!1);ua(h,7);break;case 6:return e=
|
|
356
|
+
va(h),u(h,Dk(a,e),8);case 8:return h.return();case 7:f=Array.from(a.j.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.S.endOfStream(),10);case 10:vf(a.h),g=a.g.S.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Sa(g),A(h)}})}
|
|
357
|
+
function Ck(a,b){if(Ek(b))return nj(a.g.S,b.stream.originalId||""),null;b.type==Gb&&oj(a.g.S);var c=a.g.vd(),d=b.Ga?b.Ga.endTime:c,e=dj(a.g.S,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.C,g=a.m.presentationTimeline.getDuration()-d,h=cj(a.g.S,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.j.get(Gb))&&Ek(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/2;e=Fk(a,b,c,h);if(!e)return a.i.updateIntervalSeconds;
|
|
358
|
+
f=Infinity;g=Array.from(a.j.values());g=r(g);for(h=g.next();!h.done;h=g.next())h=h.value,Ek(h)||h.qa&&!h.qa.current()||(f=Math.min(f,h.Ga?h.Ga.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.i.updateIntervalSeconds;Gk(a,b,c,e).catch(function(){});return null}
|
|
359
|
+
function Fk(a,b,c,d){if(b.qa)return b.qa.current();if(b.Ga||d)return c=b.Ga?b.Ga.endTime:d,b.ye=!0,b.qa=b.stream.segmentIndex.bc(c),b.qa&&b.qa.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.qa=b.stream.segmentIndex.bc(d),e=b.qa&&b.qa.next().value);e||(b.qa=b.stream.segmentIndex.bc(c),e=b.qa&&b.qa.next().value);return e}
|
|
360
|
+
function Gk(a,b,c,d){var e,f,g,h,k,l,m,p,n,t,v,y,w,x,C;return G(function(z){switch(z.g){case 1:e=Hb;f=b.stream;g=b.qa;b.Ia=!0;D(z,2);if(2==d.ec())throw new M(1,1,1011);return u(z,Hk(a,b,d),4);case 4:vf(a.h);if(a.B)return z.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.i.lowLatencyMode&&k&&h&&!d.m)return p=new Uint8Array(0),t=n=!1,v=function(B){var E,F,H;return G(function(J){if(n)return J.return();t=!0;vf(a.h);if(a.B)return J.return();p=Ik(p,B);E=!1;F=0;(new Hf).box("mdat",
|
|
361
|
+
function(K){F=K.size+K.start;E=!0}).parse(p,!1,!0);if(!E)return J.D(0);H=p.subarray(0,F);p=p.subarray(F);return u(J,Jk(a,b,c,f,d,H),0)})},u(z,Kk(a,b,d,v),11);l=Kk(a,b,d);return u(z,l,7);case 7:m=z.h;vf(a.h);if(a.B)return z.return();if(!d.m){z.D(8);break}return u(z,Lk(m,d,g),9);case 9:m=z.h;case 8:return vf(a.h),b.Eb?(b.Ia=!1,sk(a,b,0),z.return()):u(z,Jk(a,b,c,f,d,m),6);case 11:y=z.h;if(t){z.D(6);break}n=!0;vf(a.h);return a.B?z.return():b.Eb?(b.Ia=!1,sk(a,b,0),z.return()):u(z,Jk(a,b,c,f,d,y),6);case 6:vf(a.h);
|
|
362
|
+
if(a.B)return z.return();b.Ga=d;g.next();b.Ia=!1;b.Ee=!1;w=a.g.S.ib();x=w[b.type];$a(JSON.stringify(x));b.Eb||a.g.Ce(d.startTime,d.endTime,b.type);sk(a,b,0);ua(z,0);break;case 2:C=va(z);vf(a.h,C);if(a.B)return z.return();b.Ia=!1;if(7001==C.code)b.Ia=!1,nk(b),sk(a,b,0),z.D(0);else if(b.type==e.ba&&a.i.ignoreTextStreamFailures)a.j.delete(e.ba),z.D(0);else if(3017==C.code)Mk(a,b,C),z.D(0);else return b.Mc=!0,C.severity=2,u(z,Dk(a,C),0)}})}
|
|
363
|
+
function Lk(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return d=b.m,d.cryptoKey?h.D(2):u(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=Fc(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Ik(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
|
|
364
|
+
function Mk(a,b,c){if(!Array.from(a.j.values()).some(function(e){return e!=b&&e.Ee})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Mc=!0;a.B=!0;a.g.onError(c);return}b.Ee=!0}sk(a,b,4)}
|
|
365
|
+
function Hk(a,b,c){var d,e,f,g,h,k,l,m;return G(function(p){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.se||e!=b.re||f!=b.qe)h=function(){var n;return G(function(t){if(1==t.g)return D(t,2),b.re=e,b.qe=f,b.se=g,u(t,qj(a.g.S,b.type,g,e,f,a.m.sequenceMode),4);if(2!=t.g)return ua(t,0);n=va(t);b.re=null;b.qe=null;b.se=null;throw n;})},d.push(h());!xi(c.h,b.yd)&&(b.yd=c.h)&&(k=Kk(a,b,c.h),l=function(){var n,t,v,y;return G(function(w){switch(w.g){case 1:return D(w,
|
|
366
|
+
2),u(w,k,4);case 4:return n=w.h,vf(a.h),t=new Hf,t.box("moov",Mf).box("trak",Mf).box("mdia",Mf).T("mdhd",function(x){x=ni(x.reader||0,x.version||0);c.h.timescale=x.timescale}).parse(n),v=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(w,a.g.tf(b.type,n),5);case 5:return u(w,ej(a.g.S,b.type,n,null,v),6);case 6:ua(w,0);break;case 2:throw y=va(w),b.yd=null,y;}})},a.g.nh(c.startTime,c.h),d.push(l()));m=b.Ga?b.Ga.j:null;if(a.m.sequenceMode){if(c.j!=m||b.ye)b.ye=!1,d.push(rj(a.g.S,b.type,c.startTime))}else c.j!=
|
|
367
|
+
m&&d.push(rj(a.g.S,b.type,c.timestampOffset));return u(p,Promise.all(d),0)})}
|
|
368
|
+
function Jk(a,b,c,d,e,f){var g,h,k,l,m,p;return G(function(n){switch(n.g){case 1:g=d.closedCaptions&&0<d.closedCaptions.size;k=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes;l=a.i.parsePrftBox&&!a.G;if(k||l)h=new Hf;k&&h.T("emsg",function(t){var v=d.emsgSchemeIdUris;if(0===t.version){var y=t.reader.Vc();var w=t.reader.Vc();var x=t.reader.N();var C=t.reader.N();var z=t.reader.N();var B=t.reader.N();var E=e.startTime+C/x}else x=t.reader.N(),E=t.reader.Cb()/x+e.timestampOffset,
|
|
369
|
+
C=E-e.startTime,z=t.reader.N(),B=t.reader.N(),y=t.reader.Vc(),w=t.reader.Vc();t=t.reader.Bb(t.reader.W.byteLength-t.reader.ma());if(v&&v.includes(y)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.oh():"https://aomedia.org/emsg/ID3"==y?(v=Ki(t),v.length&&e&&a.g.ph([{cueTime:e.startTime,data:t,frames:v,dts:e.startTime,pts:e.startTime}],0,e.endTime)):(v=(new Map).set("detail",{startTime:E,endTime:E+z/x,schemeIdUri:y,value:w,timescale:x,presentationTimeDelta:C,eventDuration:z,id:B,messageData:t}),
|
|
370
|
+
v=new L("emsg",v),a.g.onEvent(v))});l&&h.T("prft",function(t){a:{if(!a.G&&e.h.timescale){t.reader.N();var v=t.reader.N(),y=t.reader.N();v=1E3*v+y/Math.pow(2,32)*1E3;if(0===t.version)var w=t.reader.N();else try{w=t.reader.Cb()}catch(x){a.G=!0;w=void 0;break a}t=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+v)).getTime();w=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-w/e.h.timescale*1E3)});w=new L("prft",w);a.g.onEvent(w);a.G=!0}w=void 0}return w});(k||l)&&h.parse(f);
|
|
371
|
+
return u(n,Nk(a,b,c),2);case 2:return vf(a.h),m=b.Xc,b.Xc=!1,p=b.pf,b.pf=!1,u(n,a.g.tf(b.type,f),3);case 3:return u(n,ej(a.g.S,b.type,f,e,g,m,p),4);case 4:vf(a.h),A(n)}})}function Nk(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=aj(a.g.S,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():u(h,a.g.S.remove(b.type,e,e+g),2)}vf(a.h);A(h)})}
|
|
372
|
+
function Ek(a){return a&&a.type==Gb&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}function Kk(a,b,c,d){var e,f,g,h,k;return G(function(l){if(1==l.g)return e=tf,f=kk(c.Pa(),c.Ta,c.Ca,a.i.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof wi,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Ob.request(e,f),b.Ka=h,u(l,h.promise,2);k=l.h;b.Ka=null;return l.return(k.data)})}
|
|
373
|
+
function yk(a,b,c,d){var e,f;return G(function(g){if(1==g.g)return b.Eb=!1,b.Pd=!1,b.qd=0,b.Cc=!0,b.Ga=null,b.yd=null,b.qa=null,d?(e=a.g.vd(),f=a.g.S.getDuration(),u(g,a.g.S.remove(b.type,e+d,f),3)):u(g,pj(a.g.S,b.type),4);if(3!=g.g)return vf(a.h),c?u(g,a.g.S.flush(b.type),3):g.D(3);vf(a.h);b.Cc=!1;b.endOfStream=!1;b.Ia||b.eb||sk(a,b,0);A(g)})}
|
|
374
|
+
function sk(a,b,c){var d=b.type;if(d!=Gb||a.j.has(d))b.eb=(new Lc(function(){var e;return G(function(f){if(1==f.g)return D(f,2),u(f,Bk(a,b),4);if(2!=f.g)return ua(f,0);e=va(f);if(a.g)a.g.onError(e);A(f)})})).R(c)}function nk(a){null!=a.eb&&(a.eb.stop(),a.eb=null)}function ok(a){return G(function(b){return a.Ka?u(b,a.Ka.abort(),0):b.D(0)})}function Dk(a,b){return G(function(c){if(1==c.g)return u(c,Xe(a.I),2);vf(a.h);a.g.onError(b);b.handled||a.i.failureCallback(b);A(c)})};function Ok(a,b){var c=Pk(),d=this;this.j=b;this.i=a;this.l=c;this.s=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return Qk(d)});this.B=new uf(function(){return Rk(d)})}Ok.prototype.destroy=function(){return this.B.destroy()};function Rk(a){var b,c,d;return G(function(e){if(1==e.g)return a.h&&a.h.abort(),Sk(a),u(e,a.C,2);a.g&&a.g.bb.Qb();b=r(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.bb.Qb();a.g=null;a.m=[];a.j=null;A(e)})}
|
|
375
|
+
function Tk(a,b){var c={mc:function(){},Ed:function(){},Qb:function(){},onError:function(){},Gd:function(){},rj:function(){}};a.m.push({create:b,bb:c});a.h&&a.h.abort();Sk(a);return c}
|
|
376
|
+
function Qk(a){return G(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.bb.Qb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.bb.mc(),a.g={node:d.node,payload:d.payload,Jb:d.Jb,bb:c.bb}):c.bb.Gd();c=!0}c?c=Promise.resolve():a.g?c=Uk(a):(a.j.mh(a.i),a.s=new Jc,c=a.s);b=u(b,c,1)}return b})}
|
|
377
|
+
function Uk(a){var b,c;return G(function(d){switch(d.g){case 1:return a.i=a.j.Rg(a.i,a.l,a.g.node,a.g.payload),D(d,2),a.h=a.j.wg(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.bb.Ed(),a.g=null);ua(d,0);break;case 2:b=va(d);if(7001==b.code)a.g.bb.Qb();else a.g.bb.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,A(d)}})}function Sk(a){a.s&&(a.s.resolve(),a.s=null)};function Vk(a){var b=[],c=700<=a.fontWeight,d="italic"==a.fontStyle,e=a.textDecoration.includes("underline");c&&b.push("b");d&&b.push("i");e&&b.push("u");c=b.reduce(function(f,g){return f+"<"+g+">"},"");b=b.reduceRight(function(f,g){return f+"</"+g+">"},"");return a.lineBreak?"\n":a.nestedCues.length?a.nestedCues.map(Vk).join(""):c+a.payload+b}
|
|
378
|
+
function Wk(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.isContainer)Wk(c.nestedCues,b);else{var d=c.clone();d.nestedCues=[];d.payload=Vk(c);b.push(d)}return b};function Xk(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=Xk.prototype;q.remove=function(a,b){if(!this.g)return!1;Yk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
|
|
379
|
+
q.append=function(a){var b=Wk(a,[]),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=r(b);for(var e=b.next();!e.done;d={Wb:d.Wb},e=b.next())d.Wb=e.value,a.some(function(f){return function(g){return g.startTime==f.Wb.startTime&&g.endTime==f.Wb.endTime&&g.text==f.Wb.payload?!0:!1}}(d))||(e=Zk(d.Wb))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
|
|
380
|
+
c.indexOf(g)});a=r(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};q.destroy=function(){this.g&&(Yk(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"};
|
|
381
|
+
function Zk(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}
|
|
382
|
+
function Yk(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}I("shaka.text.SimpleTextDisplayer",Xk);Xk.prototype.setTextVisibility=Xk.prototype.setTextVisibility;Xk.prototype.isTextVisible=Xk.prototype.isTextVisible;Xk.prototype.destroy=Xk.prototype.destroy;Xk.prototype.append=Xk.prototype.append;Xk.prototype.remove=Xk.prototype.remove;function $k(){}function R(a){return document.createElement(a)}function al(){var a=document.createElement("button");a.setAttribute("type","button");return a}function bl(a){for(;a.firstChild;)a.removeChild(a.firstChild)}I("shaka.util.Dom",$k);$k.removeAllChildren=bl;function cl(a,b){var c=this;this.j=!1;this.i=[];this.F=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.C=(new N(function(){dl(c)})).ha(.25);this.h=new Map;this.B=new wf;this.B.o(document,"fullscreenchange",function(){dl(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){dl(c,
|
|
383
|
+
!0)}),this.l.observe(this.g));this.s=new Map}q=cl.prototype;q.append=function(a){var b=[].concat(ia(this.i)),c={};a=r(a);for(var d=a.next();!d.done;c={dd:c.dd},d=a.next())c.dd=d.value,b.some(function(e){return function(f){return tc(f,e.dd)}}(c))||this.i.push(c.dd);dl(this)};q.destroy=function(){this.m.removeChild(this.g);this.g=null;this.j=!1;this.i=[];this.C&&this.C.stop();this.h.clear();this.B&&(this.B.release(),this.B=null);this.l&&(this.l.disconnect(),this.l=null)};
|
|
384
|
+
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});dl(this,c>this.i.length);return!0};q.isTextVisible=function(){return this.j};q.setTextVisibility=function(a){this.j=a};function el(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
|
|
385
|
+
function fl(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,p=l?l.fg:null;l&&(g.push(l.je),l.Wc&&g.push(l.Wc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?el(a,p)||(f=!0):(gl(a,k,e),l=a.h.get(k),p=l.fg,f=!0));0<k.nestedCues.length&&p&&fl(a,k.nestedCues,p,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(n,t){return n.startTime!=
|
|
386
|
+
t.startTime?n.startTime-t.startTime:n.endTime-t.endTime});h=r(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Wc?(c.appendChild(d.Wc),d.Wc.appendChild(d.je)):c.appendChild(d.je)}}function dl(a,b){if(a.g){var c=a.F.currentTime;if(!a.j||(void 0===b?0:b)){b=r(a.s.values());for(var d=b.next();!d.done;d=b.next())bl(d.value);bl(a.g);a.h.clear();a.s.clear()}if(a.j){b=new Map;d=r(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));fl(a,a.i,a.g,c,[])}}}
|
|
387
|
+
function gl(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&&hl(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,e=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Ac?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Ac?"%":"px"),a.s.has(e))c=a.s.get(e);else{var g=R("span"),h=c.heightUnits==Ac?"%":"px",k=c.widthUnits==Ac?"%":"px",l=c.viewportAnchorUnits==Ac?"%":"px";g.id="shaka-text-region---"+e;g.classList.add("shaka-text-region");
|
|
388
|
+
g.style.height=c.height+h;g.style.width=c.width+k;g.style.position="absolute";g.style.top=c.viewportAnchorY+l;g.style.left=c.viewportAnchorX+l;g.style.display="flex";g.style.flexDirection="column";g.style.alignItems="center";g.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.s.set(e,g);c=g}e=f;d&&(e=R("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,
|
|
389
|
+
{je:f,fg:e,Wc:c})}
|
|
390
|
+
function hl(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=il(c.linePadding,c,a.m);f.paddingRight=il(c.linePadding,c,a.m);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
|
|
391
|
+
"no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=R("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=jl(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?
|
|
392
|
+
"flex-start":"center"==c.displayAlign?"center":"flex-end");g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=il(c.fontSize,c,a.m);null!=c.line&&1==c.lineInterpretation&&(f.position="absolute",c.writingMode==nc?(f.width="100%",c.lineAlign==pc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=100-c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==pc?f.left=c.line+"%":"end"==c.lineAlign&&
|
|
393
|
+
(f.right=100-c.line+"%")):(f.height="100%",c.lineAlign==pc?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=100-c.line+"%")));f.lineHeight=c.lineHeight;null!=c.position&&(c.writingMode==nc?f.paddingLeft=c.position:f.paddingTop=c.position);"line-left"==c.positionAlign?f.cssFloat="left":"line-right"==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||
|
|
394
|
+
(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==nc?f.width=c.size+"%":f.height=c.size+"%")}function il(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 jl(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}
|
|
395
|
+
I("shaka.text.UITextDisplayer",cl);cl.prototype.setTextVisibility=cl.prototype.setTextVisibility;cl.prototype.isTextVisible=cl.prototype.isTextVisible;cl.prototype.remove=cl.prototype.remove;cl.prototype.destroy=cl.prototype.destroy;cl.prototype.append=cl.prototype.append;function kl(a,b){function c(f){for(var g=f,h=r(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.start<f&&(g+=k.end-k.start);f=Math.floor(g/3600);h=Math.floor(g/60%60);k=Math.floor(g%60);g=Math.floor(1E3*g%1E3);return(10>f?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=Wk(a,[]);a="WEBVTT\n\n";d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left");
|
|
396
|
+
break;case "right":g.push("align:right");break;case mc:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}I("shaka.text.WebVttGenerator",function(){});function ll(a,b){this.h=a;this.g=b;this.j="";this.s=void 0;this.i=!1;this.m=!0;this.l=!1}function ml(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.U()?nl:ol};d.ot=pl(c);var e=d.ot===ql||d.ot===rl||d.ot===sl||d.ot===tl;e&&(d.bl=ul(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==tl&&(d.tb=vl(a,d.ot)/1E3);wl(a,b,d)}}catch(f){Wa("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
|
|
397
|
+
function xl(a,b,c){try{if(!a.g.enabled)return b;var d=yl(a);a:{switch(c){case "video/webm":case "video/mp4":var e=sl;break a;case "application/x-mpegurl":e=zl;break a}e=void 0}d.ot=e;d.su=!0;var f=Al(d);return Bl(b,f)}catch(g){return Wa("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function yl(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.s,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
|
|
398
|
+
function wl(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,yl(a));c.pr=a.h.xb();var e=c.ot===ql||c.ot===sl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=Cl(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=Al(c);f&&(b.uris=b.uris.map(function(g){return Bl(g,f)}))}}}
|
|
399
|
+
function pl(a){var b=a.type;if(a.init)return Dl;if("video"==b)return a.codecs.includes(",")?sl:ql;if("audio"==b)return rl;if("text"==b)return"application/mp4"===a.mimeType?tl:El}function ul(a,b){b=a.h.ib()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
|
|
400
|
+
function vl(a,b){var c=a.h.Qa();if(!c.length)return NaN;a=c[0];c=r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case ql:return a.videoBandwidth||NaN;case rl:return a.audioBandwidth||NaN;default:return a.bandwidth}}
|
|
401
|
+
function Al(a){function b(p){return 100*c(p/100)}function c(p){return Math.round(p)}function d(p){return!Number.isNaN(p)&&null!=p&&""!==p&&!1!==p}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(p){return encodeURIComponent(p)},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"===
|
|
402
|
+
l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Cl(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=Al(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
|
|
403
|
+
function Bl(a,b){if(!b||a.includes("offline:"))return a;a=new jb(a);a.g.set("CMCD",b);return a.toString()}var zl="m",rl="a",ql="v",sl="av",Dl="i",El="c",tl="tt",ol="v",nl="l";I("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Wi:"s",Gi:"o"});function Fl(){}
|
|
404
|
+
function Gl(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]=ef(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=ef(l)),k=Gl(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?(Ta("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ua("Unexpected number of arguments for "+k),a[h]=b[h]):(Ta("Invalid config, unrecognized key "+
|
|
405
|
+
k),g=!1)}return g}function Hl(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 Il(a,b){return a&&b}I("shaka.util.ConfigUtils",Fl);Fl.convertToConfigObject=Hl;Fl.mergeConfigObjects=Gl;function Jl(){}function Kl(a){a=cd(a);return(new jb(a)).ab}function Ll(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 M(2,6,6015);var e;"string"==typeof b?e=ed(b,!0):e=b;a=cd(a);a=ed(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}I("shaka.util.FairPlayUtils",Jl);
|
|
406
|
+
Jl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=$c(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Gc(id(c)))}};Jl.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};Jl.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
|
|
407
|
+
Jl.verimatrixFairPlayRequest=function(a,b){2===a&&(a=Fc(b.body),a=hd(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=dd("spc="+a))};Jl.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=cd(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=new Uint16Array(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Ll(a,d,b)};
|
|
408
|
+
Jl.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=cd(a).split(";").pop();return Ll(a,c,b)};Jl.verimatrixInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=cd(a).split("skd://").pop();return Ll(a,c,b)};Jl.initDataTransform=Ll;Jl.defaultGetContentId=Kl;
|
|
409
|
+
Jl.isFairPlaySupported=function(){var a;return G(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},D(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);va(b);return b.return(!1)})};function Ml(){}
|
|
410
|
+
function Nl(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:We(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){"com.apple.fps.1_0"==k.keySystem&&"skd"==h&&(h=k.serverCertificate,k=Kl(g),g=Ll(g,k,h));return g},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:Qc()},c={retryParameters:We(),availabilityWindowOverride:NaN,disableAudio:!1,
|
|
408
411
|
disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey",
|
|
409
|
-
"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return
|
|
410
|
-
mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3}},d={retryParameters:
|
|
411
|
-
autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1};if(
|
|
412
|
-
.95*h.quota)})},progressCallback:function(g,h){return
|
|
412
|
+
"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return Il([g],g)},sequenceMode:!1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,
|
|
413
|
+
mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3}},d={retryParameters:We(),failureCallback:function(g){return Il([g])},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmux:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,
|
|
414
|
+
autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1};if(Rc("Web0S")||Sc()||Rc("CrKey"))d.stallSkip=0;var e={trackSelectionCallback:function(g){return G(function(h){return h.return(g)})},downloadSizeCallback:function(g){var h;return G(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<
|
|
415
|
+
.95*h.quota)})},progressCallback:function(g,h){return Il([g,h])},usePersistentLicense:!0,numberOfParallelDownloads:5},f={drm:b,manifest:c,streaming:d,mediaSource:{sourceBufferExtraFeatures:""},offline:e,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,
|
|
413
416
|
minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1},autoShowText:3,preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,
|
|
414
|
-
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},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1}};e.trackSelectionCallback=function(g){return G(function(h){return h.return(
|
|
415
|
-
function
|
|
416
|
-
function
|
|
417
|
-
2),d.sort(function(g,h){return g.bandwidth-h.bandwidth}),b.push(d[c]));a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,d.type!=
|
|
418
|
-
function
|
|
419
|
-
this.Kc=this.h.preferredTextRole;this.Ec=this.h.preferForcedSubs;this.
|
|
420
|
-
var d=new Map;d.set(this.X,function(e,f){return
|
|
421
|
-
function(e,f){e=
|
|
422
|
-
if(e==c.Z||e==c.$a)k=c
|
|
423
|
-
function
|
|
424
|
-
q.destroy=function(){var a=this,b;return G(function(c){switch(c.g){case 1:if(a.l==
|
|
425
|
-
null;
|
|
426
|
-
function
|
|
427
|
-
q.Bc=function(a,b){b=void 0===b?!0:b;if(this.l==
|
|
428
|
-
q.bf=function(a){var b=this;a=void 0===a?!0:a;if(this.l==
|
|
429
|
-
q.load=function(a,b,c){var d=this;this.Rc=null;this.Nc=!1;if(this.l==
|
|
430
|
-
function(){h();d.dispatchEvent(
|
|
431
|
-
function
|
|
432
|
-
function
|
|
433
|
-
5);case 5:if(!a.j){
|
|
434
|
-
case 11:if(!a.m){
|
|
435
|
-
function
|
|
436
|
-
function
|
|
437
|
-
function
|
|
438
|
-
height:g.height,mimeType:g.mimeType,channelsCount:g.channelsCount,pixelAspectRatio:g.pixelAspectRatio,width:g.width}).set("position",f);a.dispatchEvent(
|
|
439
|
-
f)},onTimelineRegionAdded:function(f){var g=a.sa;a:{var h=r(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new L("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return
|
|
440
|
-
enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(f){var g=a.m?a.m.g:null;g&&a.m.C&&
|
|
441
|
-
function
|
|
442
|
-
function
|
|
443
|
-
h=a.h.abrFactory;a.
|
|
444
|
-
|
|
445
|
-
m.push(v.createSegmentIndex());if(!(0<m.length)){
|
|
446
|
-
k&&(z?(k.audio&&
|
|
447
|
-
function
|
|
448
|
-
primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?
|
|
449
|
-
a.m.V=!0,u(m,
|
|
450
|
-
function
|
|
451
|
-
"none"!=e.preload&&a.
|
|
452
|
-
a.
|
|
453
|
-
if(f)return l.return();
|
|
454
|
-
function
|
|
455
|
-
function
|
|
456
|
-
function
|
|
457
|
-
function
|
|
458
|
-
function
|
|
459
|
-
function
|
|
460
|
-
function
|
|
461
|
-
function
|
|
462
|
-
function
|
|
463
|
-
function
|
|
464
|
-
|
|
465
|
-
q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=
|
|
466
|
-
.01));var c=
|
|
467
|
-
function
|
|
468
|
-
e.destroy());d.g&&(d.g.
|
|
469
|
-
q.
|
|
470
|
-
q.sd=function(){return this.G?this.G:null};q.
|
|
471
|
-
q.Ja=function(){if(!this.Nc)return{start:0,end:0};if(this.i){var a=this.i.presentationTimeline;return{start:a.dc(),end:a.
|
|
472
|
-
q.ud=function(){return this.m?this.m.ud():{}};q.Pc=function(){return this.O?this.O.g==
|
|
473
|
-
q.Qa=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,
|
|
474
|
-
q.yb=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=
|
|
475
|
-
q.
|
|
476
|
-
y=f.
|
|
477
|
-
q.Je=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(
|
|
478
|
-
q.Ke=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&&
|
|
479
|
-
|
|
480
|
-
q.Md=function(a,b,c){c=void 0===c?0:c;if(this.i&&this.F){this.La=new
|
|
481
|
-
a=
|
|
482
|
-
q.Ie=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Xa=a,this.Kc=b||"",this.Ec=c,(a=
|
|
483
|
-
q.
|
|
484
|
-
q.
|
|
485
|
-
function
|
|
486
|
-
|
|
487
|
-
q.
|
|
488
|
-
q.
|
|
489
|
-
q.
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
function
|
|
502
|
-
|
|
503
|
-
function
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
function
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
function
|
|
510
|
-
function
|
|
511
|
-
function
|
|
512
|
-
function
|
|
513
|
-
function
|
|
514
|
-
function
|
|
515
|
-
function
|
|
516
|
-
function
|
|
517
|
-
function
|
|
518
|
-
function wm(a){if(
|
|
519
|
-
function
|
|
520
|
-
(
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
S.prototype.
|
|
527
|
-
S.prototype.
|
|
528
|
-
S.prototype.
|
|
529
|
-
S.prototype.
|
|
530
|
-
S.
|
|
531
|
-
|
|
532
|
-
k=
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
417
|
+
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},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1}};e.trackSelectionCallback=function(g){return G(function(h){return h.return(Ol(g,f.preferredAudioLanguage))})};return f}
|
|
418
|
+
function Pl(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Gl(a,b,c||Nl(),d,"")}
|
|
419
|
+
function Ol(a,b){var c=a.filter(function(g){return"variant"==g.type}),d=[],e=Sb(b,c.map(function(g){return g.language}));e&&(d=c.filter(function(g){return Kb(g.language)==e}));0==d.length&&(d=c.filter(function(g){return g.primary}));0==d.length&&(c.map(function(g){return g.language}),d=c);var f=d.filter(function(g){return g.height&&480>=g.height});f.length&&(f.sort(function(g,h){return h.height-g.height}),d=f.filter(function(g){return g.height==f[0].height}));b=[];d.length&&(c=Math.floor(d.length/
|
|
420
|
+
2),d.sort(function(g,h){return g.bandwidth-h.bandwidth}),b.push(d[c]));a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,d.type!=Gb&&"image"!=d.type||b.push(d);return b}I("shaka.util.PlayerConfiguration",Ml);Ml.mergeConfigObjects=Pl;Ml.createDefault=Nl;function Ql(){this.g=null;this.h=[]}function Rl(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 Sl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=r(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}
|
|
421
|
+
function Tl(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 Ul(){this.i=this.h=null;this.g=[]}function Vl(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 Wl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.O=this.P=this.J=this.K=this.M=this.l=this.s=NaN;this.g=new Ql;this.h=new Ul};function S(a,b){db.call(this);var c=this;this.l=Xl;this.Bd=this.g=null;this.$=!1;this.Id=new wf;this.gb=new wf;this.C=new wf;this.fb=this.i=this.Kd=this.K=this.j=this.ka=this.M=this.lf=this.V=this.sa=this.O=this.Dd=this.J=this.Za=this.F=this.I=this.m=this.H=null;this.Nc=!1;this.$e=this.B=null;this.hf=1E9;this.h=Yl(this);this.Qc={width:Infinity,height:Infinity};this.s=null;this.La=new Ne(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Xa=this.h.preferredTextLanguage;
|
|
422
|
+
this.Kc=this.h.preferredTextRole;this.Ec=this.h.preferForcedSubs;this.ub=[];this.Rc=null;b&&b(this);this.H=Zl(this);this.H.Ne(this.h.streaming.forceHTTPS);this.G=null;$l&&(this.G=$l());this.Id.o(window,"online",function(){c.Fe()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.jf={name:"manifest-parser"};this.gf={name:"manifest"};this.Ya={name:"media-source"};this.df={name:"drm-engine"};this.Z={name:"load"};this.fe={name:"src-equals-drm-engine"};this.$a={name:"src-equals"};
|
|
423
|
+
var d=new Map;d.set(this.X,function(e,f){return bf(am(c,e,f))});d.set(this.P,function(e){e.mediaElement&&(c.gb.Rb(),e.mediaElement=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return bf(e)});d.set(this.aa,function(e){return bf(bm(c,e))});d.set(this.Ya,function(e){e=cm(c,e);return bf(e)});d.set(this.jf,function(e,f){e=dm(c,e,f);return bf(e)});d.set(this.gf,function(e){return em(c,e)});d.set(this.df,function(e){e=fm(c,e);return bf(e)});d.set(this.Z,function(e,f){return bf(gm(c,e,f))});d.set(this.fe,
|
|
424
|
+
function(e,f){e=hm(c,e,f);return bf(e)});d.set(this.$a,function(e,f){return im(c,e,f)});this.ua=new Ok(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.mediaElement!=h.mediaElement?c.P:g==c.X?c.X:g==c.Ya||g==c.Z?c.Ya:g==c.$a?c.fe:null);e==c.Ya&&(k=g==c.Z&&f.mediaElement==h.mediaElement?c.jf:c.aa);e==c.jf&&(k=jm(c.Z,c.gf,c.aa,g,f,h));e==c.gf&&(k=jm(c.Z,c.df,c.aa,g,f,h));e==c.df&&(k=jm(c.Z,c.Z,c.aa,g,f,h));e==c.fe&&(k=g==c.$a&&f.mediaElement==h.mediaElement?c.$a:
|
|
425
|
+
c.aa);if(e==c.Z||e==c.$a)k=c.aa;e==c.aa&&(k=h.mediaElement&&f.mediaElement==h.mediaElement?c.X:c.P);return k},wg:function(e,f,g){c.dispatchEvent(km("onstatechange",(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return G(function(f){return 1==f.g?u(f,bm(c,e),2):f.return(e.mediaElement?c.X:c.P)})},mh:function(e){c.dispatchEvent(km("onstateidle",(new Map).set("state",e.name)))}});this.kf=new N(function(){Yd(c.i.variants,c.h.restrictions,c.Qc)&&lm(c)});a&&this.Bc(a,!0)}
|
|
426
|
+
pa(S,db);function mm(a){null!=a.M&&(a.M.release(),a.M=null)}function nm(a,b){if(b.lcevc.enabled){var c=a.Qa();c&&c[0]&&c[0].videoMimeType==om.ts&&(Pc()||navigator.userAgent.match(/Edge\//))&&(b.streaming.forceTransmux||Ua("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled."));mm(a);null==a.M&&(a.M=new Pi(a.g,a.lf,b.lcevc),a.I&&(a.I.H=a.M))}else mm(a)}function km(a,b){return new L(a,b)}q=S.prototype;
|
|
427
|
+
q.destroy=function(){var a=this,b;return G(function(c){switch(c.g){case 1:if(a.l==pm)return c.return();mm(a);a.l=pm;b=Tk(a.ua,function(){return{node:a.P,payload:Pk(),Jb:!1}});return u(c,new Promise(function(d){b.mc=function(){};b.Ed=function(){d()};b.Qb=function(){d()};b.onError=function(){d()};b.Gd=function(){d()}}),2);case 2:return u(c,a.ua.destroy(),3);case 3:a.Id&&(a.Id.release(),a.Id=null);a.gb&&(a.gb.release(),a.gb=null);a.C&&(a.C.release(),a.C=null);a.$e=null;a.h=null;a.s=null;a.Bd=null;a.V=
|
|
428
|
+
null;if(!a.H){c.D(4);break}return u(c,a.H.destroy(),5);case 5:a.H=null;case 4:a.B&&(a.B.release(),a.B=null),db.prototype.release.call(a),A(c)}})};
|
|
429
|
+
function qm(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Rc("Trident/"))return!1;var a=Wc();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Mc()?!0:Nc("application/x-mpegurl")}
|
|
430
|
+
q.Bc=function(a,b){b=void 0===b?!0:b;if(this.l==pm)return Promise.reject(rm());var c=Pk();c.mediaElement=a;Mc()||(b=!1);var d=b?this.Ya:this.X;a=Tk(this.ua,function(){return{node:d,payload:c,Jb:!1}});a.mc=function(){};return sm(a)};q.qf=function(a){this.lf=a};q.detach=function(){var a=this;if(this.l==pm)return Promise.reject(rm());var b=Tk(this.ua,function(){return{node:a.P,payload:Pk(),Jb:!1}});b.mc=function(){};return sm(b)};
|
|
431
|
+
q.bf=function(a){var b=this;a=void 0===a?!0:a;if(this.l==pm)return Promise.reject(rm());this.Nc=!1;Mc()||(a=!1);mm(this);var c=Pk(),d=Tk(this.ua,function(e){var f=e.mediaElement&&a?b.Ya:e.mediaElement?b.X:b.P;c.mediaElement=e.mediaElement;return{node:f,payload:c,Jb:!1}});d.mc=function(){};return sm(d)};q.Oh=function(a){this.Rc=a};
|
|
432
|
+
q.load=function(a,b,c){var d=this;this.Rc=null;this.Nc=!1;if(this.l==pm)return Promise.reject(rm());this.dispatchEvent(km("loading"));var e=Pk();e.uri=a;e.Ue=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=tm(this,e)?this.$a:this.Z,g=Tk(this.ua,function(h){if(null==h.mediaElement)return null;e.mediaElement=h.mediaElement;return{node:f,payload:e,Jb:!0}});this.s=new Wl;this.V=um(this);g.mc=function(){};return new Promise(function(h,k){g.Gd=function(){return k(new M(2,7,7002))};g.Ed=
|
|
433
|
+
function(){h();d.dispatchEvent(km("loaded"))};g.Qb=function(){return k(rm())};g.onError=function(l){return k(l)}})};function tm(a,b){if(!Mc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=bh(d),c=om[c]);if(c){if(""==(b.mediaElement||Oc()).canPlayType(c))return!1;if(!Mc()||!(c in ah||bh(d)in ch)||("application/x-mpegurl"===c||"application/vnd.apple.mpegurl"===c)&&a.h.streaming.preferNativeHls)return!0;if(Uc())return a.h.streaming.useNativeHlsOnSafari}return!1}
|
|
434
|
+
function am(a,b,c){null==b.mediaElement&&(b.mediaElement=c.mediaElement,a.gb.o(b.mediaElement,"error",function(){var d=vm(a);d&&wm(a,d)}));a.g=b.mediaElement;return Promise.resolve()}
|
|
435
|
+
function bm(a,b){var c,d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:return a.l!=pm&&(a.l=Xl),c=a.ub.map(function(n){return n()}),a.ub=[],u(p,Promise.all(c),2);case 2:a.dispatchEvent(km("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.sa&&(a.sa.release(),a.sa=null);b.mediaElement&&a.C.Rb();a.kf.stop();a.Za&&(a.Za.release(),a.Za=null);a.Dd&&(a.Dd.stop(),a.Dd=null);if(!a.K){p.D(3);break}return u(p,a.K.stop(),4);case 4:a.K=null,a.Kd=null;case 3:if(!a.B){p.D(5);break}return u(p,a.B.stop(),
|
|
436
|
+
5);case 5:if(!a.j){p.D(7);break}return u(p,a.j.destroy(),8);case 8:a.j=null;case 7:a.J&&(a.J.release(),a.J=null);a.F&&(a.F.release(),a.F=null);if(!a.I){p.D(9);break}return u(p,a.I.destroy(),10);case 10:a.I=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.mediaElement||!b.mediaElement.src){p.D(11);break}return u(p,new Promise(function(n){return(new N(n)).R(.1)}),12);case 12:for(b.mediaElement.removeAttribute("src"),b.mediaElement.load();b.mediaElement.lastChild;)b.mediaElement.removeChild(b.mediaElement.firstChild);
|
|
437
|
+
case 11:if(!a.m){p.D(13);break}return u(p,a.m.destroy(),14);case 14:a.m=null;case 13:a.fb=null;a.O=null;if(a.i){d=r(a.i.variants);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.s=new Wl;a.ef=null;xm(a);A(p)}})}
|
|
438
|
+
function cm(a,b){var c,d,e,f,g;return G(function(h){if(1==h.g)return c=a.h.textDisplayFactory,d=c(),a.ef=c,e=ym(b.mediaElement,d,function(k,l,m){zm(a,k,l,m)},a.M),e.configure(a.h.mediaSource),f=a.h.manifest,g=f.segmentRelativeVttTiming,e.J=g,u(h,e.K,2);a.I=e;A(h)})}
|
|
439
|
+
function dm(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.fb=d,f=a,u(h,$g(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.Kd=h.h;a.K=a.Kd();g=ef(a.h.manifest);c.mediaElement&&"AUDIO"===c.mediaElement.nodeName&&(g.disableVideo=!0);a.K.configure(g);A(h)})}
|
|
440
|
+
function em(a,b){var c=b.uri;b=a.H;a.sa=new ek(function(){return a.Ja()});a.sa.addEventListener("regionadd",function(f){f=f.region;Am(a,"timelineregionadded",f);if(a.G)a.G.onDashTimedMetadata(f)});a.ka=null;a.h.streaming.observeQualityChanges&&(a.ka=new ak(function(){return a.ib()}),a.ka.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate,
|
|
441
|
+
height:g.height,mimeType:g.mimeType,channelsCount:g.channelsCount,pixelAspectRatio:g.pixelAspectRatio,width:g.width}).set("position",f);a.dispatchEvent(km("mediaqualitychanged",g))}));var d={networkingEngine:b,modifyManifestRequest:function(f,g){var h=a.V;try{h.g.enabled&&(h.s=g.format,wl(h,f,{ot:zl,su:!h.i}))}catch(k){Wa("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",k)}},modifySegmentRequest:function(f,g){ml(a.V,f,g)},filter:function(f){return Bm(a,f)},makeTextStreamsForClosedCaptions:function(f){return Cm(a,
|
|
442
|
+
f)},onTimelineRegionAdded:function(f){var g=a.sa;a:{var h=r(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new L("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return wm(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
|
|
443
|
+
enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(f){var g=a.m?a.m.g:null;g&&a.m.C&&Dm(a,g.keySystem,f)}},e=Date.now()/1E3;return new Ye(function(){var f,g,h,k;return G(function(l){if(1==l.g)return f=a,u(l,a.K.start(c,d),2);f.i=l.h;g=km("manifestparsed");a.dispatchEvent(g);if(0==a.i.variants.length)throw new M(2,4,4036);Em(a.i);h=Date.now()/1E3;k=h-e;a.s.H=k;A(l)})}(),function(){return a.K.stop()})}
|
|
444
|
+
function fm(a,b){var c,d;return G(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=Fm(a,{Ob:a.H,onError:function(f){wm(a,f)},Fd:function(f){Gm(a,f)},onExpirationUpdated:function(f,g){Hm(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.s.j=Date.now()/1E3-c,a.M&&(f=a.M,f.g&&f.h.classList.add("shaka-hidden")))}}),a.m.configure(a.h.drm),u(e,ug(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.Bc(b.mediaElement),3):u(e,Bm(a,a.i),0)})}
|
|
445
|
+
function gm(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z;return G(function(B){switch(B.g){case 1:b.startTime=c.startTime;null!=a.Rc&&(b.startTime=a.Rc,a.Rc=null);d=b.mediaElement;e=b.uri;a.fb=e;a.J=new Wj({wd:function(){return d.playbackRate},td:function(){return d.defaultPlaybackRate},Pe:function(E){d.playbackRate=E},Of:function(E){d.currentTime+=E}});f=function(){return Im(a)};g=function(){return Jm(a)};a.C.o(d,"playing",f);a.C.o(d,"pause",f);a.C.o(d,"ended",f);a.C.o(d,"ratechange",g);nm(a,a.h);
|
|
446
|
+
h=a.h.abrFactory;a.B&&a.$e==h||(a.$e=h,a.B=h(),"function"!=typeof a.B.setMediaElement&&(Ee("AbrManager","Please use an AbrManager with setMediaElement function."),a.B.setMediaElement=function(){}),a.B.configure(a.h.abr));a.La=new Ne(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Xa=a.h.preferredTextLanguage;a.Kc=a.h.preferredTextRole;a.Ec=a.h.preferForcedSubs;Km(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B.init(function(E,F,H){a.j&&E!=a.j.l&&
|
|
447
|
+
Lm(a,E,!0,void 0===F?!1:F,void 0===H?0:H)});a.B.setMediaElement(d);Kd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Mm(a);a.j.configure(a.h.streaming);a.l=Nm;d.textTracks&&a.C.o(d.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Om(a,E)}});a.dispatchEvent(km("streaming"));k=null;(l=a.j.l)||(k=lm(a));m=[];p=l||k;n=r([p.video,p.audio]);for(t=n.next();!t.done;t=n.next())(v=t.value)&&!v.segmentIndex&&
|
|
448
|
+
m.push(v.createSegmentIndex());if(!(0<m.length)){B.D(2);break}return u(B,Promise.all(m),2);case 2:a.F=Pm(a,b.startTime);a.Za=Qm(a);y=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Rm(a,y);if(l){B.D(4);break}Lm(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){B.D(5);break}w=a.F.kd();return u(B,Sm(k,w),6);case 6:x=B.h,a.F.ie(x);case 5:Tm(a,null,me(k));case 4:return a.F.ge(),C=a.yb().find(function(E){return E.active}),C||((z=we(a.i.textStreams,a.Xa,a.Kc,a.Ec)[0]||null)&&Vl(a.s.h,z,!0),
|
|
449
|
+
k&&(z?(k.audio&&Um(a,k.audio,z)&&(a.$=!0),a.$&&a.I.m.setTextVisibility(!0),Vm(a)):a.$=!1),z&&(a.h.streaming.alwaysStreamText||a.Nb())&&xk(a.j,z)),u(B,a.j.start(),7);case 7:a.h.abr.enabled&&(a.B.enable(),Wm(a)),ae(a.j?a.j.l:null,a.i),Xm(a.i),Ym(a),Zm(a),a.i.variants.some(function(E){return E.primary}),a.Nc=!0,a.C.ya(d,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Ue}),A(B)}})}
|
|
450
|
+
function hm(a,b,c){var d,e,f,g,h,k,l;return G(function(m){return 1==m.g?(d=Hb,e=Date.now()/1E3,f=!0,a.m=Fm(a,{Ob:a.H,onError:function(p){wm(a,p)},Fd:function(p){Gm(a,p)},onExpirationUpdated:function(p,n){Hm(a,p,n)},onEvent:function(p){a.dispatchEvent(p);"drmsessionupdate"==p.type&&f&&(f=!1,a.s.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=bh(g),k=om[h],"application/x-mpegurl"==k&&Uc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
|
|
451
|
+
primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Ad(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:[]},
|
|
452
|
+
a.m.V=!0,u(m,ug(a.m,[l],[]),2)):u(m,a.m.Bc(b.mediaElement),0)})}
|
|
453
|
+
function im(a,b,c){function d(){return Im(a)}b.uri=c.uri;b.startTime=c.startTime;a.fb=b.uri;var e=b.mediaElement;a.F=new Kj(e);var f=!1;a.ub.push(function(){f=!0});null!=b.startTime&&a.F.ie(b.startTime);a.J=new Wj({wd:function(){return e.playbackRate},td:function(){return e.defaultPlaybackRate},Pe:function(k){e.playbackRate=k},Of:function(k){e.currentTime+=k}});Rm(a,a.h.streaming.rebufferingGoal);a.C.o(e,"playing",d);a.C.o(e,"pause",d);a.C.o(e,"ended",d);a.C.o(e,"ratechange",function(){return Jm(a)});
|
|
454
|
+
"none"!=e.preload&&a.C.ya(e,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Ue});e.audioTracks&&(a.C.o(e.audioTracks,"addtrack",function(){return Ym(a)}),a.C.o(e.audioTracks,"removetrack",function(){return Ym(a)}),a.C.o(e.audioTracks,"change",function(){return Ym(a)}));e.textTracks&&(a.C.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":$m(a,k);break;case "chapters":Om(a,k);break;default:Ym(a)}}),a.C.o(e.textTracks,"removetrack",function(){return Ym(a)}),
|
|
455
|
+
a.C.o(e.textTracks,"change",function(){return Ym(a)}));var g=bh(b.uri);e.src=xl(a.V,b.uri,om[g]);(Sc()||Rc("Web0S"))&&e.load();a.l=an;a.dispatchEvent(km("streaming"));var h=new Jc;Bj(e,HTMLMediaElement.HAVE_METADATA,a.C,function(){a.F.ge();h.resolve()});Bj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.C,function(){var k;return G(function(l){if(1==l.g)return bn(a),k=cn(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.$=!0),l.D(2)):u(l,new Promise(function(m){a.C.ya(e.textTracks,"change",m);
|
|
456
|
+
(new N(m)).R(1)}),2);if(f)return l.return();dn(a);A(l)})});e.error?h.reject(vm(a)):"none"==e.preload&&(Ua('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.C.ya(e,"error",function(){h.reject(vm(a))});return(new Ye(h,function(){h.reject(new M(2,7,7001));return Promise.resolve()})).ia(function(){a.Nc=
|
|
457
|
+
!0})}function bn(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Md(b);var c=a.h.preferredVariantRole;""!=c&&a.Md(b,c)}}function dn(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.Ie(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.Ie(b,d,c)}}
|
|
458
|
+
function $m(a,b){if("metadata"==b.kind){b.mode="hidden";a.C.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,en(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new N(function(){var d=fn(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Aa().R(.5);a.ub.push(function(){c.stop()})}}
|
|
459
|
+
function zm(a,b,c,d){b=r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=r(e.frames),k=h.next();!k.done;k=h.next())en(a,f,g,"org.id3",k.value);if(a.G)a.G.onHlsTimedMetadata(e,f)}}function en(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(km("metadata",b))}
|
|
460
|
+
function Om(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new N(function(){b.mode="hidden"})).Aa().R(.5);a.ub.push(function(){c.stop()})}}function Em(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 Fm(a,b){return new ng(b,a.h.drm.updateExpirationTime)}
|
|
461
|
+
function Zl(a){return new jf(function(b,c){a.B&&a.B.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(km("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(km("downloadfailed",b))})}
|
|
462
|
+
function Pm(a,b){return new Lj(a.g,a.i,a.h.streaming,b,function(){a.Za&&Zj(a.Za,!0);a.j&&a.j.Xc();a.O&&gn(a)},function(c){return a.dispatchEvent(c)})}
|
|
463
|
+
function Qm(a){var b=new fk(a.sa);b.addEventListener("enter",function(d){Am(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){Am(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(Am(a,"timelineregionenter",e),Am(a,"timelineregionexit",e))});var c=new Yj(a.g);c.g.add(b);a.ka&&c.g.add(a.ka);return c}function Rm(a,b){a.O=new Re;a.O.g=Te;Ue(a.O,b,Math.min(.5,b/2));xm(a);a.Dd=(new N(function(){gn(a)})).ha(.25)}
|
|
464
|
+
function gn(a){switch(a.l){case an:if(a.g.ended)var b=!0;else{var c=Ci(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Nm:a:if(a.g.ended||$i(a.I))b=!0;else{if(a.i.presentationTimeline.U()){c=a.i.presentationTimeline.Ib();var d=Ci(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Ei(a.g.buffered,a.g.currentTime);c=a.O;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Se:Te;c.g=d;b!=d&&xm(a)}function ym(a,b,c,d){return new Ui(a,b,c,d)}
|
|
465
|
+
function um(a){return new ll({getBandwidthEstimate:function(){return a.B?a.B.getBandwidthEstimate():NaN},ib:function(){return a.ib()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Qa:function(){return a.Qa()},xb:function(){return a.xb()},U:function(){return a.U()}},a.h.cmcd)}
|
|
466
|
+
function Mm(a){return new lk(a.i,{vd:function(){return a.F?a.F.kd():0},getBandwidthEstimate:function(){return a.B.getBandwidthEstimate()},modifySegmentRequest:function(b,c){ml(a.V,b,c)},S:a.I,Ob:a.H,onError:function(b){return wm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},oh:function(){a.K&&a.K.update&&a.K.update()},Ce:function(b,c,d){a.F&&a.F.Pf();gn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(km("segmentappended",b))},nh:function(b,c){(c=c.we)&&a.ka&&
|
|
467
|
+
ck(a.ka,c,b)},tf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&["audio","video"].includes(b)){c=new Rf(Fc(c));var e=0,f=r(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=r(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Dg(d,"cenc",e);d=d.s}}else d=Promise.resolve();return d},ph:function(b,c,d){zm(a,b,c,d)}})}
|
|
468
|
+
q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Hl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Ee("streaming.forceTransmuxTS configuration","Please Use streaming.forceTransmux instead."),a.streaming.forceTransmux=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=
|
|
469
|
+
.01));var c=Pl(this.h,a,Yl(this));hn(this);return c};
|
|
470
|
+
function hn(a){if(a.K){var b=ef(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.K.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{jn(a,a.i)}catch(f){wm(a,f)}a.B&&Zm(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||kn(a)}a.H&&a.H.Ne(a.h.streaming.forceHTTPS);if(a.I&&(a.I.configure(a.h.mediaSource),a.I.J=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.ef!=b)){var c=b(),d=a.I,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),
|
|
471
|
+
e.destroy());d.g&&(d.g.j=c);a.ef=b;a.j&&(b=a.j,(c=b.j.get(Gb))&&vk(b,c.stream,!0,0,!0))}a.B&&(a.B.configure(a.h.abr),a.h.abr.enabled?a.B.enable():a.B.disable(),Wm(a));a.O&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ue(a.O,b,Math.min(.5,b/2)));a.i&&Km(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}q.getConfiguration=function(){var a=Yl(this);Pl(a,this.h,Yl(this));return a};
|
|
472
|
+
q.zg=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.Ja().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.Bh=function(){for(var a in this.h)delete this.h[a];Pl(this.h,Yl(this),Yl(this));hn(this)};q.If=function(){return this.l};q.Qg=function(){return this.g};q.Hc=function(){return this.H};q.le=function(){return this.fb};
|
|
473
|
+
q.sd=function(){return this.G?this.G:null};q.U=function(){return this.i?this.i.presentationTimeline.U():this.g&&this.g.src?Infinity==this.g.duration:!1};q.Lb=function(){return this.i?this.i.presentationTimeline.Lb():!1};q.hc=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};
|
|
474
|
+
q.Ja=function(){if(!this.Nc)return{start:0,end:0};if(this.i){var a=this.i.presentationTimeline;return{start:a.dc(),end:a.jb()}}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.bh=function(){this.U()&&(this.g.currentTime=this.Ja().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Gc=function(){return this.m?this.m.Gc():Infinity};
|
|
475
|
+
q.ud=function(){return this.m?this.m.ud():{}};q.Pc=function(){return this.O?this.O.g==Te:!1};q.xb=function(){return this.g?this.J?this.J.i:1:0};q.Ze=function(a){0==a?Ua("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.J.set(a),this.l==Nm&&(this.B.playbackRateChanged(a),uk(this.j,1<Math.abs(a))))};q.vf=function(){var a=this.J.td();this.l==an&&this.J.set(a);this.l==Nm&&(this.J.set(a),this.B.playbackRateChanged(a),uk(this.j,!1))};
|
|
476
|
+
q.Qa=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)}):[]};
|
|
477
|
+
q.yb=function(){if(this.i){for(var a=this.j?this.j.s: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?cn(this).map(function(f){return re(f)}):[]};q.Ig=function(){return this.i?this.i.imageStreams.map(function(a){return oe(a)}):[]};
|
|
478
|
+
q.Yg=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z,B,E,F;return G(function(H){if(1==H.g)return c.i?(d=c.i.imageStreams.find(function(J){return J.id==a}))?d.segmentIndex?H.D(3):u(H,d.createSegmentIndex(),3):H.return(null):H.D(2);if(2!=H.g){e=d.segmentIndex.find(b);if(null==e)return H.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return H.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);p=parseInt(h[2],10);n=k/m;t=l/p;v=m*p;
|
|
479
|
+
y=f.l-f.startTime;w=f.B||y/v;x=f.startTime;z=C=0;1<v&&(B=Math.floor((b-f.startTime)/w),x=f.startTime+B*w,C=B%m*n,z=Math.floor(B/m)*t);E=!1;if(F=f.s)E=!0,t=F.height,C=F.positionX,z=F.positionY,n=F.width;return H.return({imageHeight:l,imageWidth:k,height:t,positionX:C,positionY:z,startTime:x,duration:w,uris:f.Pa(),width:n,sprite:E})}return H.return(null)})};
|
|
480
|
+
q.Je=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(Vl(this.s.h,b,!1),xk(this.j,b),ln(this),this.Xa=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=cn(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,pe(c)==a.id?c.mode=this.$?"showing":"hidden":c.mode="disabled";ln(this)}};
|
|
481
|
+
q.Ke=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&&Ua("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)&&(Lm(this,d,!1,b,c),this.La=new Me(d),Zm(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,
|
|
482
|
+
pe(c)==a.id){mn(this,c);break}};q.yg=function(){return nn(this.Qa())};q.Wg=function(){return nn(this.yb())};q.xg=function(){return Array.from(on(this.Qa()))};q.Vg=function(){return Array.from(on(this.yb()))};
|
|
483
|
+
q.Md=function(a,b,c){c=void 0===c?0:c;if(this.i&&this.F){this.La=new Ne(a,b||"",c,"");b=function(h,k){return h.video||k.video?h.video&&k.video?Math.abs((h.video.height||0)-(k.video.height||0))+Math.abs((h.video.width||0)-(k.video.width||0)):Infinity:0};a=this.j.l;var d=this.La.create(this.i.variants);c=null;d=r(d.values());for(var e=d.next();!e.done;e=d.next())if(e=e.value,!c||b(c,a)>b(e,a))c=e;c?(b=me(c),this.Ke(b,!0)):kn(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);
|
|
484
|
+
a=Kb(a);d=c=null;e=r(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=te(f);Kb(g.language)==a&&(c=f,b?g.roles.includes(b)&&(d=f):0==g.roles.length&&(d=f))}d?mn(this,d):c&&mn(this,c)}};
|
|
485
|
+
q.Ie=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Xa=a,this.Kc=b||"",this.Ec=c,(a=we(this.i.textStreams,this.Xa,this.Kc,this.Ec)[0]||null)&&a!=this.j.s&&(Vl(this.s.h,a,!1),this.h.streaming.alwaysStreamText||this.Nb()))xk(this.j,a),ln(this)}else{var d=Kb(a);(a=this.yb().find(function(e){return Kb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.Je(a)}};
|
|
486
|
+
q.Eh=function(a){if(this.i&&this.F){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.La=new Ne(b.language,"",0,a),kn(this))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=r(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&mn(this,b)}};
|
|
487
|
+
q.Nb=function(){var a=this.$;return this.I?this.I.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?cn(this).some(function(b){return"showing"==b.mode}):a};q.Gf=function(){return this.g&&this.g.src&&this.g.textTracks?pn(this).map(function(a){return re(a)}):[]};
|
|
488
|
+
q.Bg=function(a){var b=Kb(a),c=pn(this).filter(function(h){return Kb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=r(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
|
|
489
|
+
function cn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function fn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function pn(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
|
|
490
|
+
q.Se=function(a){a=!!a;if(this.$!=a){this.$=a;if(this.l==Nm)this.I.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=we(this.i.textStreams,this.Xa,this.Kc,this.Ec),0<a.length&&(xk(this.j,a[0]),ln(this))):tk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=cn(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")}Vm(this)}};
|
|
491
|
+
q.Sg=function(){if(!this.U())return null;var a=this.ua.l,b=0;if(this.F)b=this.F.kd();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.i+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
|
|
492
|
+
q.Jf=function(){if(!this.U())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.ib=function(){if(this.l==Nm)return this.I.ib();var a={total:[],audio:[],video:[],text:[]};this.l==an&&(a.total=Fi(this.g.buffered));return a};
|
|
493
|
+
q.getStats=function(){if(this.l!=Nm&&this.l!=an)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};Im(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.s;b=
|
|
494
|
+
Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.s.O=this.F.mf(),this.s.P=this.F.nf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.s;var d=Number(c.totalVideoFrames);b.M=Number(c.droppedVideoFrames);b.K=d;this.s.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.J?c.J:NaN):c=NaN;this.s.B=c;if(this.l==Nm){if(c=this.j.l)this.s.F=(this.J?this.J.i:1)*c.bandwidth;c&&c.video&&(b=this.s,d=c.video.height||NaN,b.s=c.video.width||NaN,b.l=d);this.U()&&(c=this.Jf().valueOf()+
|
|
495
|
+
1E3*this.Ja().end,this.s.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.s.I=this.i.presentationTimeline.g);c=this.B.getBandwidthEstimate();this.s.C=c}this.l==an&&(c=this.s,b=a.videoHeight||NaN,c.s=a.videoWidth||NaN,c.l=b);var e=this.s;a=e.s;c=e.l;b=e.F;d=e.K;var f=e.M,g=e.J,h=e.P,k=e.O,l=e.C,m=e.i,p=e.m,n=e.H,t=e.j,v=Sl(e.g,"playing"),y=Sl(e.g,"paused"),w=Sl(e.g,"buffering"),x=e.B,C=e.G,z=e.I,B=Tl(e.g),E=[];e=r(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,E.push({timestamp:F.timestamp,
|
|
496
|
+
id:F.id,type:F.type,fromAdaptation:F.fromAdaptation,bandwidth:F.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:p,manifestTimeSeconds:n,drmTimeSeconds:t,playTime:v,pauseTime:y,bufferingTime:w,licenseTime:x,liveLatency:C,maxSegmentDuration:z,stateHistory:B,switchHistory:E}};
|
|
497
|
+
q.kg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,p,n,t,v,y,w,x,C;return G(function(z){switch(z.g){case 1:if(h.l!=Nm&&h.l!=an)throw new M(1,7,7004);if(d){z.D(2);break}return u(z,qn(h,a),3);case 3:d=z.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(B){}if(h.l!=an){z.D(4);break}g&&(c="forced");return u(z,rn(h,a,b,c,d,f||"",k),5);case 5:l=h.yb();if(m=l.find(function(B){return B.language==b&&B.label==(f||"")&&B.kind==c}))return Ym(h),z.return(m);throw new M(1,2,2012);case 4:p=
|
|
498
|
+
Hb;n=h.i.presentationTimeline.getDuration();if(Infinity==n)throw new M(1,4,4033);if(!k.length){z.D(6);break}return u(z,sn(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=z.h,v=tn(h,t,d,k),y=new Blob([v],{type:"text/vtt"}),a=Xi(y),d="text/vtt";case 6:w={id:h.hf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Uj(0,n,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:p.ba,primary:!1,trickModeVideo:null,
|
|
499
|
+
emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};x=wd(w.mimeType,w.codecs);C=Cd(x);if(!C)throw new M(2,2,2014,d);h.i.textStreams.push(w);Ym(h);return z.return(ne(w))}})};
|
|
500
|
+
q.lg=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C;return G(function(z){switch(z.g){case 1:if(c.l!=Nm&&c.l!=an)throw new M(1,7,7004);if(c.l==an)throw new M(1,2,2016);if(b){z.D(2);break}return u(z,qn(c,a),3);case 3:b=z.h;case 2:if("text/vtt"!=b)throw new M(1,2,2017,a);d=Hb;e=c.i.presentationTimeline.getDuration();if(Infinity==e)throw new M(1,4,4045);return u(z,sn(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=z.h;g=Dd[b];if(!g)throw new M(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,
|
|
501
|
+
segmentEnd:e,vttOffset:0};l=Fc(f);m=h.parseMedia(l,k);p=[];n={};t=r(m);for(v=t.next();!v.done;n={uc:n.uc},v=t.next())y=v.value,n.uc=Bb([a],[y.payload])[0],w=new yi(y.startTime,y.endTime,function(B){return function(){return[B.uc]}}(n),0,null,null,0,0,Infinity),n.uc.includes("#xywh")&&(x=n.uc.split("#xywh=")[1].split(","),4===x.length&&w.Zf({height:parseInt(x[3],10),positionX:parseInt(x[0],10),positionY:parseInt(x[1],10),width:parseInt(x[2],10)})),p.push(w);C={id:c.hf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},
|
|
502
|
+
segmentIndex:new Rj(p),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ac,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1"};c.i.imageStreams.push(C);Ym(c);return z.return(oe(C))}})};
|
|
503
|
+
q.jg=function(a,b,c){var d=this,e,f,g,h;return G(function(k){switch(k.g){case 1:if(d.l!=Nm&&d.l!=an)throw new M(1,7,7004);if(c){k.D(2);break}return u(k,qn(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,rn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Gf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.C.ya(f,"load",l);d.C.ya(f,"error",function(){m(new M(1,2,2015))})}),6);case 6:return k.return(h);
|
|
504
|
+
case 5:throw new M(1,2,2012);}})};function qn(a,b){var c,d;return G(function(e){switch(e.g){case 1:c=bh(b);if(d=un[c])return e.return(d);D(e,2);return u(e,dh(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;ua(e,3);break;case 2:va(e);case 3:if(d)return e.return(d);throw new M(1,2,2011,c);}})}
|
|
505
|
+
function rn(a,b,c,d,e,f,g){var h,k,l,m;return G(function(p){if(1==p.g)return"text/vtt"!=e||g.length?u(p,sn(a,b,a.H,a.h.streaming.retryParameters),3):p.D(2);2!=p.g&&(h=p.h,k=tn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Xi(l),e="text/vtt");m=document.createElement("track");var n=a.V,t=b;try{if(n.g.enabled){var v=yl(n);v.ot=El;v.su=!0;var y=Al(v);var w=Bl(t,y)}else w=t}catch(x){Wa("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",x),w=t}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
|
|
506
|
+
a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return p.return(m)})}function sn(a,b,c,d){var e,f,g;return G(function(h){if(1==h.g){e=tf;f=nf([b],d);f.method="GET";var k=a.V;try{k.g.enabled&&wl(k,f,{ot:El,su:!0})}catch(l){Wa("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)})}
|
|
507
|
+
function tn(a,b,c,d){var e=Dd[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),kl(b,d);throw new M(2,2,2014,c);}q.Oe=function(a,b){this.Qc.width=a;this.Qc.height=b};q.Fe=function(a){if(this.l==Nm){var b=this.j;a=void 0===a?.1:a;if(b.h.g)b=!1;else if(b.B)b=!1;else{for(var c=r(b.j.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Mc||d.Ia||d.eb||(d.Mc=!1,sk(b,d,a));b=!0}}else b=!1;return b};
|
|
508
|
+
q.Ng=function(){Ua("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.Kd};
|
|
509
|
+
function Yl(a){var b=Nl();b.streaming.failureCallback=function(c){if(a.U()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Fe(d))}};b.textDisplayFactory=function(){return a.Bd?new cl(a.g,a.Bd):new Xk(a.g)};return b}q.Te=function(a){this.Bd=a};
|
|
510
|
+
function Cm(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 Vj;h={id:a.hf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
|
|
511
|
+
segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Gb,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 Bm(a,b){return G(function(c){if(1==c.g)return u(c,vn(a,b),2);jn(a,b);A(c)})}
|
|
512
|
+
function vn(a,b){var c;return G(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,Zd(c,b),2);Xm(b);A(d)})}function jn(a,b){if(a.l!=pm){Yd(b.variants,a.h.restrictions,a.Qc)&&a.j&&Ym(a);var c=a.m?a.m.g:null;if(c&&a.m.C)for(var d=r(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Dm(a,c.keySystem,e.video),Dm(a,c.keySystem,e.audio);wn(a,b)}}
|
|
513
|
+
function Dm(a,b,c){if(c){c=r(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=r(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,Dg(a.m,e.initDataType,e.initData)}}}
|
|
514
|
+
function Sm(a,b){var c,d,e,f,g;return G(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,p,n;return G(function(t){if(1==t.g)return k?u(t,k.createSegmentIndex(),2):t.return(null);p=(m=k.segmentIndex.bc(l))?m.next().value:null;if(!p)return t.return(null);n=p.startTime;return t.return(n)})},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)})}
|
|
515
|
+
function xm(a){var b=a.Pc();if(a.s&&a.O&&a.F){var c=a.J;c.j=b;Xj(c);a.V&&(c=a.V,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);Im(a)}b=(new Map).set("buffering",b);a.dispatchEvent(km("buffering",b))}function Jm(a){var b=a.g.playbackRate;0!=b&&(a.J&&a.J.set(b),b=km("ratechange"),a.dispatchEvent(b))}function Im(a){if(a.s&&a.O){var b=a.s.g;a.O.g==Te?Rl(b,"buffering"):a.g.paused?Rl(b,"paused"):a.g.ended?Rl(b,"ended"):Rl(b,"playing")}}
|
|
516
|
+
function Zm(a){try{wn(a,a.i)}catch(c){return wm(a,c),!1}var b=a.i.variants.filter(function(c){return ue(c)});b=a.La.create(b);a.B.setVariants(Array.from(b.values()));return!0}function lm(a){return Zm(a)?a.B.chooseVariant():null}function kn(a){var b=lm(a);b&&Lm(a,b,!0,!0,0)}
|
|
517
|
+
function Lm(a,b,c,d,e){var f=a.j.l;if(b==f)d&&wk(a.j,b,d,e,!0);else{var g=a.s.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));wk(a.j,b,d,e,void 0,c);d=null;f&&(d=me(f));b=me(b);c?Tm(a,d,b):xn(a,d,b)}}function mn(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=te(c);b=te(b);xn(a,c,b)}
|
|
518
|
+
function Um(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=Kb(a.h.preferredTextLanguage);c=Kb(c.language);if(2==a.h.autoShowText)return Jb(c,d);if(3==a.h.autoShowText)return a=Kb(b.language),Jb(c,d)&&!Jb(a,c);Ua("Invalid autoShowText setting!");return!1}function Tm(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.M&&Qi(a.M,c);c=km("adaptation",b);yn(a,c)}function Ym(a){var b=km("trackschanged");yn(a,b)}
|
|
519
|
+
function xn(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.M&&Qi(a.M,c);c=km("variantchanged",b);yn(a,c)}function ln(a){var b=km("textchanged");yn(a,b)}function Vm(a){var b=km("texttrackvisibility");yn(a,b)}function Wm(a){var b=(new Map).set("newStatus",a.h.abr.enabled);yn(a,km("abrstatuschanged",b))}
|
|
520
|
+
function zn(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;b=a.Qa().find(function(g){return g.active});for(var d=a.i,e=r(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);Yd(d.variants,a.h.restrictions,a.Qc);b=lm(a);if(!b)return!1;d=a.ib().video.reduce(function(g,h){return g+h.end-h.start},0);Lm(a,b,!1,!0,d);a.kf.R(c);return!0}
|
|
521
|
+
function wm(a,b){if(a.l!=pm)if(zn(a,b))b.handled=!0;else{var c=km("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function Am(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(km(b,c))}
|
|
522
|
+
function vm(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new M(2,3,3016,b,c,a.g.error.message)}
|
|
523
|
+
function Gm(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&&!An.includes(l)}h!=f.allowedByKeySystem&&
|
|
524
|
+
(e=!0)}}}if(!e||Zm(a))(b=a.j.l)&&!b.allowedByKeySystem&&kn(a),e&&Ym(a)}}function Hm(a,b,c){if(a.K&&a.K.onExpirationUpdated)a.K.onExpirationUpdated(b,c);b=km("expirationupdated");a.dispatchEvent(b)}function Km(a,b,c){0<b&&(a.U()||a.$f(b));b=a.getDuration();c<b&&(a.U()||a.Sa(c))}
|
|
525
|
+
function wn(a,b){a=a.m?a.m.ud():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=r(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=r(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=r(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var p=a[c?"00":m];p?An.includes(p)&&g.add(p):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
|
|
526
|
+
missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new M(2,4,4012,a);}function Xm(a){if(!a.variants.some(ue))throw new M(2,4,4032);}function yn(a,b){G(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=pm&&a.dispatchEvent(b);A(c)})}function on(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(Kb(c.language)):b.add("und");return b}
|
|
527
|
+
function nn(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=Kb(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){k=r(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var p=null;c.has(l)&&c.get(l).has(m)&&(p=c.get(l).get(m));
|
|
528
|
+
h.push({language:l,role:m,label:p})}});return h}function rm(){return new M(2,7,7E3)}function jm(a,b,c,d,e,f){return d==a&&e.mediaElement==f.mediaElement&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Pk(){return{mediaElement:null,mimeType:null,startTime:null,Ue:NaN,uri:null}}function sm(a){return new Promise(function(b,c){a.Qb=function(){return c(rm())};a.Ed=function(){return b()};a.onError=function(d){return c(d)};a.Gd=function(){return c(rm())}})}I("shaka.Player",S);
|
|
529
|
+
S.prototype.setVideoContainer=S.prototype.Te;S.prototype.getManifestParserFactory=S.prototype.Og;S.prototype.getManifest=S.prototype.Ng;S.prototype.retryStreaming=S.prototype.Fe;S.prototype.setMaxHardwareResolution=S.prototype.Oe;S.prototype.addChaptersTrack=S.prototype.jg;S.prototype.addThumbnailsTrack=S.prototype.lg;S.prototype.addTextTrackAsync=S.prototype.kg;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.ib;S.prototype.getPresentationStartTimeAsDate=S.prototype.Jf;
|
|
530
|
+
S.prototype.getPlayheadTimeAsDate=S.prototype.Sg;S.prototype.setTextTrackVisibility=S.prototype.Se;S.prototype.getChapters=S.prototype.Bg;S.prototype.getChaptersTracks=S.prototype.Gf;S.prototype.isTextTrackVisible=S.prototype.Nb;S.prototype.selectVariantsByLabel=S.prototype.Eh;S.prototype.selectTextLanguage=S.prototype.Ie;S.prototype.selectAudioLanguage=S.prototype.Md;S.prototype.getTextLanguages=S.prototype.Vg;S.prototype.getAudioLanguages=S.prototype.xg;S.prototype.getTextLanguagesAndRoles=S.prototype.Wg;
|
|
531
|
+
S.prototype.getAudioLanguagesAndRoles=S.prototype.yg;S.prototype.selectVariantTrack=S.prototype.Ke;S.prototype.selectTextTrack=S.prototype.Je;S.prototype.getThumbnails=S.prototype.Yg;S.prototype.getImageTracks=S.prototype.Ig;S.prototype.getTextTracks=S.prototype.yb;S.prototype.getVariantTracks=S.prototype.Qa;S.prototype.cancelTrickPlay=S.prototype.vf;S.prototype.trickPlay=S.prototype.Ze;S.prototype.getPlaybackRate=S.prototype.xb;S.prototype.isBuffering=S.prototype.Pc;S.prototype.getKeyStatuses=S.prototype.ud;
|
|
532
|
+
S.prototype.getExpiration=S.prototype.Gc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.bh;S.prototype.seekRange=S.prototype.Ja;S.prototype.isAudioOnly=S.prototype.hc;S.prototype.isInProgress=S.prototype.Lb;S.prototype.isLive=S.prototype.U;S.prototype.getAdManager=S.prototype.sd;S.prototype.getAssetUri=S.prototype.le;S.prototype.getNetworkingEngine=S.prototype.Hc;S.prototype.getMediaElement=S.prototype.Qg;
|
|
533
|
+
S.prototype.getLoadMode=S.prototype.If;S.prototype.resetConfiguration=S.prototype.Bh;S.prototype.getBufferFullness=S.prototype.zg;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.Oh;S.prototype.unload=S.prototype.bf;S.prototype.detach=S.prototype.detach;S.prototype.attachCanvas=S.prototype.qf;S.prototype.attach=S.prototype.Bc;
|
|
534
|
+
S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return G(function(h){if(1==h.g)return b={},a?u(h,Ug(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Mc()){for(var l in ah)k[l]=!0;for(var m in ch)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 p=m.next();!p.done;p=m.next())p=p.value,k[p]=Mc()?!!ah[p]:Nc(p);for(var n in l)k[n]=
|
|
535
|
+
Mc()?!!ch[n]:Nc(l[n]);c=k;n='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",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(ia(fj));
|
|
536
|
+
k={};n=r(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=Mc()?Cd(l)?!0:bc(l)||qd(l):Nc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Bn;for(g in f)e[g]=f[g]();return h.return(e)})};S.isBrowserSupported=qm;S.setAdManagerFactory=function(a){$l=a};S.registerSupportPlugin=function(a,b){Bn[a]=b};S.prototype.destroy=S.prototype.destroy;var pm=0,Xl=1,Nm=2,an=3;S.LoadMode={DESTROYED:pm,NOT_LOADED:Xl,MEDIA_SOURCE:Nm,SRC_EQUALS:an};S.version="v4.3.6";var Cn=["4","3"];
|
|
537
|
+
Fe=new function(a){this.g=a;this.i=Ge;this.h=He}(new De(Number(Cn[0]),Number(Cn[1])));
|
|
538
|
+
var An=["output-restricted","internal-error"],Bn={},$l=null,om={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"},un={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
|
|
539
|
+
ssa:"text/x-ssa",ass:"text/x-ssa"};function Dn(){this.h=[];this.j=this.i=this.g=0};function En(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 wf;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=En.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};
|
|
536
540
|
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()};
|
|
537
541
|
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()};
|
|
538
|
-
q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.getTitle=function(){return this.h.getTitle()};q.getDescription=function(){return this.h.getDescription()};q.release=function(){this.g=this.h=null};I("shaka.ads.ClientSideAd",
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
function(f){
|
|
542
|
-
function
|
|
543
|
-
function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,
|
|
544
|
-
|
|
545
|
-
function
|
|
546
|
-
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){
|
|
542
|
+
q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.getTitle=function(){return this.h.getTitle()};q.getDescription=function(){return this.h.getDescription()};q.release=function(){this.g=this.h=null};I("shaka.ads.ClientSideAd",En);En.prototype.release=En.prototype.release;En.prototype.getDescription=En.prototype.getDescription;En.prototype.getTitle=En.prototype.getTitle;En.prototype.getPositionInSequence=En.prototype.getPositionInSequence;
|
|
543
|
+
En.prototype.getSequenceLength=En.prototype.getSequenceLength;En.prototype.setMuted=En.prototype.setMuted;En.prototype.resize=En.prototype.resize;En.prototype.isLinear=En.prototype.isLinear;En.prototype.isMuted=En.prototype.isMuted;En.prototype.setVolume=En.prototype.setVolume;En.prototype.getVolume=En.prototype.getVolume;En.prototype.play=En.prototype.play;En.prototype.pause=En.prototype.pause;En.prototype.skip=En.prototype.skip;En.prototype.canSkipNow=En.prototype.canSkipNow;
|
|
544
|
+
En.prototype.getTimeUntilSkippable=En.prototype.getTimeUntilSkippable;En.prototype.isSkippable=En.prototype.isSkippable;En.prototype.isPaused=En.prototype.isPaused;En.prototype.getRemainingTime=En.prototype.getRemainingTime;En.prototype.getMinSuggestedDuration=En.prototype.getMinSuggestedDuration;En.prototype.getDuration=En.prototype.getDuration;function Fn(a,b,c,d){var e=this;this.s=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new wf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.6");this.g=null;this.h.ya(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){Gn(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
|
|
545
|
+
function(f){Hn(e,f)});this.h.o(this.i,"ended",function(){e.m.contentComplete()})}Fn.prototype.stop=function(){this.g&&this.g.stop();this.s&&bl(this.s)};Fn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function Hn(a,b){b.getError();In(a,null);a.l(new L("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
546
|
+
function Gn(a,b){a.l(new L("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.l(new L("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=r(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.l(new L("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Jn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Kn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
|
|
547
|
+
function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Kn(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,Kn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Kn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.h.ya(a.i,"play",function(){a.g.start()})}catch(e){In(a,
|
|
548
|
+
null)}}function Kn(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
|
|
549
|
+
function Jn(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new L(d,c))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Hn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Ln(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Ln(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,
|
|
550
|
+
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){In(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){In(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")});
|
|
547
551
|
a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});
|
|
548
552
|
a.h.o(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.o(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.o(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.o(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.o(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.o(a.g,
|
|
549
553
|
google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
|
|
550
|
-
function
|
|
554
|
+
function Ln(a,b){var c=b.getAd();c?(a.j=new En(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new L("ad-started",b)),a.j.isLinear()&&(a.s.setAttribute("ad-active","true"),a.i.pause(),a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))):Ua("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
|
|
555
|
+
function In(a,b){a.l(new L("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.s.removeAttribute("ad-active"),a.i.ended||a.i.play())};function Mn(a,b){this.i=a;this.h=null;this.g=b}q=Mn.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)};
|
|
551
556
|
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};
|
|
552
|
-
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.getTitle=function(){return this.i.getTitle()};q.getDescription=function(){return this.i.getDescription()};q.release=function(){this.g=this.h=this.i=null};I("shaka.ads.ServerSideAd",
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
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
|
|
557
|
+
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.getTitle=function(){return this.i.getTitle()};q.getDescription=function(){return this.i.getDescription()};q.release=function(){this.g=this.h=this.i=null};I("shaka.ads.ServerSideAd",Mn);Mn.prototype.release=Mn.prototype.release;Mn.prototype.getDescription=Mn.prototype.getDescription;Mn.prototype.getTitle=Mn.prototype.getTitle;
|
|
558
|
+
Mn.prototype.getPositionInSequence=Mn.prototype.getPositionInSequence;Mn.prototype.getSequenceLength=Mn.prototype.getSequenceLength;Mn.prototype.setMuted=Mn.prototype.setMuted;Mn.prototype.resize=Mn.prototype.resize;Mn.prototype.isLinear=Mn.prototype.isLinear;Mn.prototype.isMuted=Mn.prototype.isMuted;Mn.prototype.setVolume=Mn.prototype.setVolume;Mn.prototype.getVolume=Mn.prototype.getVolume;Mn.prototype.play=Mn.prototype.play;Mn.prototype.pause=Mn.prototype.pause;Mn.prototype.skip=Mn.prototype.skip;
|
|
559
|
+
Mn.prototype.canSkipNow=Mn.prototype.canSkipNow;Mn.prototype.getTimeUntilSkippable=Mn.prototype.getTimeUntilSkippable;Mn.prototype.isSkippable=Mn.prototype.isSkippable;Mn.prototype.isPaused=Mn.prototype.isPaused;Mn.prototype.getRemainingTime=Mn.prototype.getRemainingTime;Mn.prototype.getMinSuggestedDuration=Mn.prototype.getMinSuggestedDuration;Mn.prototype.getDuration=Mn.prototype.getDuration;function Nn(a,b,c,d){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.s=null;this.F="";this.G=[];this.h=new wf;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 L("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){On(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.F.length?
|
|
560
|
+
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 Mn(f,e.l);e.C&&(e.m.h=e.C);e.i(new L("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");
|
|
556
561
|
var f=e.l.currentTime;e.s&&e.s>f&&(e.l.currentTime=e.s,e.s=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 L("ad-first-quartile"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new L("ad-midpoint"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new L("ad-third-quartile"))});
|
|
557
562
|
this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new L("ad-complete"));e.i(new L("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 L("ad-skipped"));e.i(new L("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=
|
|
558
|
-
f;e.i(new L("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}
|
|
559
|
-
function
|
|
560
|
-
q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);
|
|
561
|
-
q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new M(2,10,10002);this.g&&this.g.release();this.g=new
|
|
562
|
-
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new M(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&
|
|
563
|
-
(c.H=!0),c.j=new
|
|
563
|
+
f;e.i(new L("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Nn.prototype.stop=function(){this.F="";this.s=null;this.G=[]};Nn.prototype.release=function(){this.stop();this.h&&this.h.release()};Nn.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
|
|
564
|
+
function On(a,b){a.i(new L("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.s=c,a.l.currentTime=d.start)}})};function T(){db.call(this);this.g=this.i=null;this.h=new Dn;this.j=navigator.language}pa(T,db);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 M(2,10,1E4);this.i&&this.i.release();this.i=new Fn(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)})};
|
|
565
|
+
q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);db.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new L("ad-stopped"));this.h=new Dn};q.requestClientSideAds=function(a){if(!this.i)throw new M(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.m.requestAds(a)};
|
|
566
|
+
q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new M(2,10,10002);this.g&&this.g.release();this.g=new Nn(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)})};
|
|
567
|
+
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new M(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('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.3.6";c=this.g;c.j?a=Promise.reject(new M(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
|
|
568
|
+
(c.H=!0),c.j=new Jc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new M(1,10,10003);(a.mpt||a.mpv)&&Ua('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.3.6";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new M(1,10,10003);return this.g.G};
|
|
564
569
|
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)};I("shaka.ads.AdManager",T);
|
|
565
570
|
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;
|
|
566
571
|
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";
|
|
567
572
|
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";
|
|
568
|
-
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"
|
|
569
|
-
TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=r(
|
|
570
|
-
function
|
|
571
|
-
function
|
|
572
|
-
var
|
|
573
|
-
isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.
|
|
577
|
-
|
|
578
|
-
function
|
|
579
|
-
q.get=function(a,b){var c=this;if("video"==a){if(
|
|
580
|
-
q.set=function(a,b,c){this.g[a][b]=c;
|
|
581
|
-
q.
|
|
582
|
-
function
|
|
583
|
-
function
|
|
584
|
-
q.destroy=function(a){a&&this.g.$b();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;
|
|
585
|
-
q.cast=function(){var a=this,b;return G(function(c){return 1==c.g?(b=
|
|
586
|
-
q.yf=function(a,b){b=void 0===b?!1:b;var c=this;return G(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d.return();c.G=a;c.F=b;c.g.$b();return u(d,c.g.destroy(),2)}c.g=null;c.g=new
|
|
587
|
-
function
|
|
588
|
-
function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return
|
|
589
|
-
function
|
|
590
|
-
function
|
|
591
|
-
function
|
|
592
|
-
function
|
|
573
|
+
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";$l=function(){return new T};function Pn(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof L){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);b=r(Object.getOwnPropertyNames(c));for(d=b.next();!d.done;d=b.next())e.add(d.value);b={};e=r(e);for(d=e.next();!d.done;d=e.next())d=d.value,b[d]=c[d];c={__type__:"Error",contents:b}}else if(c instanceof
|
|
574
|
+
TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=r(Fi(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e}else c=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c}})}
|
|
575
|
+
function Qn(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=Rn(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})}
|
|
576
|
+
function Rn(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
|
|
577
|
+
var Sn="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Tn="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Un=["loop","playbackRate"],Vn=["pause","play"],Wn={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
|
|
578
|
+
isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Xn={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},Yn={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Zn=[["getConfiguration","configure"]],$n=[["isTextTrackVisible","setTextTrackVisibility"]],ao="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
|
|
579
|
+
bo=["attach","attachCanvas","detach","load","unload"];function co(a,b,c,d,e,f,g){var h=this;this.I=a;this.O=g;this.j=new N(b);this.P=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.M="";this.s=null;this.F=function(){return eo(h)};this.G=function(k,l){k=Qn(l);switch(k.type){case "event":var m=k.targetName,p=Pa(k.event);h.B(m,p);break;case "update":m=k.update;for(p in m){k=h.g[p]||{};for(var n in m[p])k[n]=m[p][n]}h.C&&(h.P(),h.C=!1);break;case "asyncComplete":if(p=k.id,n=k.error,k=h.i[p],delete h.i[p],k)if(n){p=new M(n.severity,n.category,
|
|
580
|
+
n.code);for(m in n)p[m]=n[m];k.reject(p)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;fo.add(this)}q=co.prototype;q.destroy=function(){fo.delete(this);go(this);ho&&io(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.s=null;return Promise.resolve()};q.na=function(){return this.h};q.Jd=function(){return this.M};
|
|
581
|
+
q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.Aa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.O,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(fo),d=c.next();!d.done;d=c.next())jo(d.value,b)},function(b){for(var c=r(fo),d=c.next();!d.done;d=c.next())d=d.value,ko="available"==b,d.j.Aa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});ko&&this.j.R(lo);(a=ho)&&a.status!=chrome.cast.SessionStatus.STOPPED?
|
|
582
|
+
jo(this,a):ho=null}else window.__onGCastApiAvailable!==mo&&(no=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=mo)};q.Le=function(a){this.s=a;this.h&&oo(this,{type:"appData",appData:this.s})};q.cast=function(a){var b=this;return G(function(c){if(!b.m)throw new M(1,8,8E3);if(!ko)throw new M(1,8,8001);if(b.h)throw new M(1,8,8002);b.l=new Jc;chrome.cast.requestSession(function(d){return po(b,a,d)},function(d){return qo(b,d)});return u(c,b.l,0)})};
|
|
583
|
+
function ro(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return po(a,b,c)},function(c){return qo(a,c)})}}q.$b=function(){if(this.h){go(this);if(ho){io(this);try{ho.stop(function(){},function(){})}catch(a){}ho=null}eo(this)}};
|
|
584
|
+
q.get=function(a,b){var c=this;if("video"==a){if(Vn.includes(b))return function(){return c.Rf.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))}}else if("player"==a){if(Yn[b]&&!this.get("player","isLive")())return function(){};if(ao.includes(b))return function(){return c.Rf.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))};if(bo.includes(b))return function(){return c.xh.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))};if(Wn[b]||Xn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
|
|
585
|
+
q.set=function(a,b,c){this.g[a][b]=c;oo(this,{type:"set",targetName:a,property:b,value:c})};function po(a,b,c){ho=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);eo(a);oo(a,{type:"init",initState:b,appData:a.s});a.l.resolve()}function qo(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 M(2,8,c,b))}
|
|
586
|
+
q.Rf=function(a,b){oo(this,{type:"call",targetName:a,methodName:b,args:Ga.apply(2,arguments)})};q.xh=function(a,b){var c=Ga.apply(2,arguments),d=new Jc,e=this.J.toString();this.J++;this.i[e]=d;try{oo(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function jo(a,b){var c=a.K();a.l=new Jc;a.C=!0;po(a,c,b)}function io(a){var b=ho;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
|
|
587
|
+
function eo(a){var b=ho?"connected"==ho.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};go(a)}a.h=b;a.M=b?ho.receiver.friendlyName:"";a.j.Aa()}function go(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new M(1,7,7E3))}}function oo(a,b){b=Pn(b);var c=ho;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Ya)}catch(d){throw b=new M(2,8,8005,d),c=new L("error",(new Map).set("detail",b)),a.B("player",c),a.$b(),b;}}var lo=.02,ko=!1,ho=null,no=null,fo=new Set;
|
|
588
|
+
function mo(a){no?window.__onGCastApiAvailable=no:delete window.__onGCastApiAvailable;no=null;if(a)for(var b=r(fo),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function so(a,b,c,d){d=void 0===d?!1:d;db.call(this);var e=this;this.i=a;this.h=b;this.m=this.s=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new co(c,function(){return to(e)},function(){return uo(e)},function(f,g){return vo(e,f,g)},function(){return wo(e)},function(){return xo(e)},d);yo(this)}pa(so,db);q=so.prototype;
|
|
589
|
+
q.destroy=function(a){a&&this.g.$b();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;db.prototype.release.call(this);return Promise.all(a)};q.zb=function(){return this.l};q.cc=function(){return this.B};q.uf=function(){return this.g.m&&ko};q.na=function(){return this.g.na()};q.Jd=function(){return this.g.Jd()};
|
|
590
|
+
q.cast=function(){var a=this,b;return G(function(c){return 1==c.g?(b=xo(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.bf(),0):c.return()})};q.Le=function(a){this.g.Le(a)};q.cg=function(){ro(this.g)};q.$b=function(){this.g.$b()};
|
|
591
|
+
q.yf=function(a,b){b=void 0===b?!1:b;var c=this;return G(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d.return();c.G=a;c.F=b;c.g.$b();return u(d,c.g.destroy(),2)}c.g=null;c.g=new co(a,function(){return to(c)},function(){return uo(c)},function(e,f){return vo(c,e,f)},function(){return wo(c)},function(){return xo(c)},b);c.g.init();A(d)})};
|
|
592
|
+
function yo(a){a.g.init();a.m=new wf;for(var b=r(Sn),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.na()||(f=Pa(f),a.j.dispatchEvent(f))});for(var d in Qa)a.m.o(a.h,Qa[d],function(f){a.g.na()||a.s.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.vc=e,Object.defineProperty(a.l,b.vc,{configurable:!1,enumerable:!0,get:function(f){return function(){return zo(a,f.vc)}}(b),set:function(f){return function(g){var h=f.vc;a.g.na()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={vc:b.vc};a.B={};Ao(a,
|
|
593
|
+
function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return Bo(a,f)}})});Co(a);a.j=new db;a.j.Hd=a.l;a.s=new db;a.s.Hd=a.B}function Co(a){var b=new Map;Ao(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.C.set(c,d):a.C.set(d,c)):b.set(d,c)})}
|
|
594
|
+
function Ao(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=r(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
|
|
595
|
+
function xo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.le(),startTime:null};a.i.pause();for(var c=r(Un),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(Zn);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($n);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 to(a){var b=new L("caststatuschanged");a.dispatchEvent(b)}
|
|
596
|
+
function uo(a){var b=new L(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
|
|
597
|
+
function wo(a){for(var b=r(Zn),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(Un);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(Un),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=r($n);for(k=
|
|
593
598
|
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 L("error",h);a.h.dispatchEvent(h)})}
|
|
594
|
-
function
|
|
595
|
-
function
|
|
596
|
-
if("setVideoContainer"==b)return function(c){return a.h.Te(c)};if(a.g.na()){if("getManifest"==b||"drmInfo"==b)return function(){
|
|
597
|
-
function
|
|
598
|
-
|
|
599
|
-
q.
|
|
600
|
-
q.destroy=function(){var a=this,b,c;return G(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.s=!0,a.l=null,a.B=null,
|
|
601
|
-
function
|
|
602
|
-
e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return
|
|
603
|
-
!1;
|
|
604
|
-
function
|
|
605
|
-
function
|
|
606
|
-
a.g.autoplay=f;b.manifest&&(a.g.play(),
|
|
607
|
-
function
|
|
608
|
-
1);
|
|
609
|
-
function
|
|
610
|
-
"player"==d&&"load"==e&&(a.m=0,a.F=!1);var f=c.id,g=b.senderId;b=a.J[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return
|
|
611
|
-
function
|
|
612
|
-
null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||
|
|
613
|
-
function
|
|
614
|
-
I("shaka.cast.CastReceiver",
|
|
615
|
-
r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{Bf:g,
|
|
616
|
-
function
|
|
617
|
-
function
|
|
618
|
-
function
|
|
619
|
-
226,251,75]),m=new Uint8Array([]);k=[{initData:
|
|
620
|
-
function
|
|
621
|
-
var
|
|
599
|
+
function zo(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.na()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.na()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
|
|
600
|
+
function Bo(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.s.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.s.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Hc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.sd()};
|
|
601
|
+
if("setVideoContainer"==b)return function(c){return a.h.Te(c)};if(a.g.na()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.na()&&0==Object.keys(a.g.g.video).length&&(Wn[b]||Xn[b])||!a.g.na()?a.h[b].bind(a.h):a.g.get("player",b)}
|
|
602
|
+
function vo(a,b,c){a.g.na()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}I("shaka.cast.CastProxy",so);so.prototype.changeReceiverId=so.prototype.yf;so.prototype.forceDisconnect=so.prototype.$b;so.prototype.suggestDisconnect=so.prototype.cg;so.prototype.setAppData=so.prototype.Le;so.prototype.cast=so.prototype.cast;so.prototype.receiverName=so.prototype.Jd;so.prototype.isCasting=so.prototype.na;so.prototype.canCast=so.prototype.uf;so.prototype.getPlayer=so.prototype.cc;
|
|
603
|
+
so.prototype.getVideo=so.prototype.zb;so.prototype.destroy=so.prototype.destroy;function Do(a,b,c,d){db.call(this);var e=this;this.g=a;this.h=b;this.j=new wf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.s=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new N(function(){Eo(e)});Fo(this)}pa(Do,db);q=Do.prototype;q.isConnected=function(){return this.H};q.fh=function(){return this.s};q.Hh=function(a){this.i=a};q.rg=function(){this.i=null};
|
|
604
|
+
q.Ih=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.Gh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.Fh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
|
|
605
|
+
q.destroy=function(){var a=this,b,c;return G(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.s=!0,a.l=null,a.B=null,db.prototype.release.call(a),u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();A(d)})};
|
|
606
|
+
function Fo(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return Go(a)};b.onSenderDisconnected=function(){return Go(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Ho(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Ho(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 Io(a,
|
|
607
|
+
e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Jo(a,e)};b.start();b=r(Sn);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return Ko(a,"video",e)});for(var d in Qa)a.j.o(a.h,Qa[d],function(e){return Ko(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Oe(3840,2160):a.h.Oe(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.s=
|
|
608
|
+
!1;Lo(a)});a.j.o(a.g,"playing",function(){a.s=!1;Lo(a)});a.j.o(a.g,"pause",function(){Lo(a)});a.j.o(a.h,"unloading",function(){a.s=!0;Lo(a)});a.j.o(a.g,"ended",function(){(new N(function(){a.g&&a.g.ended&&(a.s=!0,Lo(a))})).R(Mo)})}function Go(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Lo(a)}
|
|
609
|
+
function Lo(a){var b;G(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c.return();b=new L("caststatuschanged");a.dispatchEvent(b);No(a)||Oo(a);A(c)})}
|
|
610
|
+
function Po(a,b,c){var d,e,f,g,h,k,l,m,p,n;G(function(t){switch(t.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,D(t,5),u(t,a.h.load(b.manifest,b.startTime),7)):u(t,Promise.resolve(),3);case 7:ua(t,3);break;case 5:return g=va(t),h=(new Map).set("detail",g),k=new L("error",h),a.h&&a.h.dispatchEvent(k),t.return();case 3:if(!a.h)return t.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(p in b.playerAfterLoad)n=b.playerAfterLoad[p],a.h[p](n);
|
|
611
|
+
a.g.autoplay=f;b.manifest&&(a.g.play(),Oo(a));A(t)}})}function Ko(a,b,c){a.h&&(Eo(a),Ho(a,{type:"event",targetName:b,event:c},a.l))}
|
|
612
|
+
function Eo(a){a.I.R(Qo);for(var b={video:{},player:{}},c=r(Tn),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.U())for(var e in Yn)0==a.m%Yn[e]&&(b.player[e]=a.h[e]());for(var f in Wn)0==a.m%Wn[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;Ho(a,{type:"update",update:b},a.l);for(var g in Xn)0==a.m%Xn[g]&&(b={player:{}},b.player[g]=a.h[g](),Ho(a,{type:"update",update:b},a.l));a.F&&(a.m+=
|
|
613
|
+
1);No(a)}function No(a){return a.C&&(a.g.duration||a.h.U())?(Ro(a),a.C=!1,!0):!1}function Ro(a,b){var c={contentId:a.h.le(),streamType:a.h.U()?"LIVE":"BUFFERED",contentType:""};a.h.U()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Oo(a,void 0===b?0:b,c)}
|
|
614
|
+
function Jo(a,b){var c=Qn(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;Po(a,c.initState,c.appData);Eo(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break}else if("muted"==e){b.setSystemVolumeMuted(c);break}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=c.methodName;
|
|
615
|
+
"player"==d&&"load"==e&&(a.m=0,a.F=!1);var f=c.id,g=b.senderId;b=a.J[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return So(a,g,f,null)},function(h){return So(a,g,f,h)})}}
|
|
616
|
+
function Io(a,b){var c=Qn(b.data);switch(c.type){case "PLAY":a.g.play();Oo(a);break;case "PAUSE":a.g.pause();Oo(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Oo(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Oo(a));break;case "STOP":a.h.bf().then(function(){a.h&&Oo(a)});break;case "GET_STATUS":Ro(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
|
|
617
|
+
null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Oo(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.G(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Ro(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");Ho(a,{requestId:Number(c.requestId),type:h},a.B)});break;default:Ho(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
|
|
618
|
+
function So(a,b,c,d){a.h&&Ho(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Ho(a,b,c,d){a.H&&(a=Pn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Oo(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.s?To:a.h.Pc()?Uo:a.g.paused?Vo:Wo,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Ho(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
|
|
619
|
+
I("shaka.cast.CastReceiver",Do);Do.prototype.destroy=Do.prototype.destroy;Do.prototype.setContentArtist=Do.prototype.Fh;Do.prototype.setContentImage=Do.prototype.Gh;Do.prototype.setContentTitle=Do.prototype.Ih;Do.prototype.clearContentMetadata=Do.prototype.rg;Do.prototype.setContentMetadata=Do.prototype.Hh;Do.prototype.isIdle=Do.prototype.fh;Do.prototype.isConnected=Do.prototype.isConnected;var Qo=.5,Mo=5,To="IDLE",Wo="PLAYING",Uo="BUFFERING",Vo="PAUSED";function Xo(a,b,c){var d=Yo(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 M(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.He?(e=h.init||e,!1):!0}),f.length&&(a=Zo(e,f,c,g),0==a.length&&(a=[Cb("",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(Cb(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c=
|
|
620
|
+
r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{Bf:g,pj:e,drmInfos:a,Ff:!0}}function $o(a,b,c,d){var e=Xo(a,c,d);if(b.Ff){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.Ff=!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 M(2,4,4008);return e.Bf||b.Bf}
|
|
621
|
+
function ap(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}
|
|
622
|
+
function bp(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 cp(a){a=Vf(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=id(a.textContent);a=ap(a).filter(function(b){return b.type===dp})[0];if(!a)return"";a=ad(a.value,!0);return(a=kg(a,"WRMHEADER"))?bp(a):""}
|
|
623
|
+
function Zo(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.He];if(g){var h;if(h=Vf(f.node,"urn:microsoft:playready","pro")){h=id(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Sf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.He)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,
|
|
624
|
+
226,251,75]),m=new Uint8Array([]);k=[{initData:Sf(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Cb(g,f.init||a||h||k);if(g=ep.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function Yo(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=fp(c.value))&&b.push(c);return b}
|
|
625
|
+
function fp(a){var b=a.getAttribute("schemeIdUri"),c=Yf(a,"urn:mpeg:cenc:2013","default_KID"),d=Wf(a,"urn:mpeg:cenc:2013","pssh").map($f);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new M(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:id(f),keyId:null}})}catch(f){throw new M(2,4,4007);}return{node:a,He:b,keyId:c,init:0<e.length?e:null}}
|
|
626
|
+
var dp=1,ep=(new Map).set("com.widevine.alpha",function(a){return(a=Vf(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",cp).set("com.microsoft.playready.recommendation",cp).set("com.microsoft.playready.software",cp).set("com.microsoft.playready.hardware",cp).set("org.w3.clearkey",function(a){return(a=Vf(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function gp(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=
|
|
622
627
|
window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
|
|
623
|
-
function
|
|
624
|
-
m)if(
|
|
625
|
-
function
|
|
626
|
-
function
|
|
627
|
-
for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;
|
|
628
|
-
function
|
|
629
|
-
function
|
|
630
|
-
function
|
|
631
|
-
d)}function
|
|
632
|
-
function
|
|
633
|
-
function
|
|
634
|
-
function
|
|
635
|
-
function
|
|
636
|
-
J=new
|
|
637
|
-
function
|
|
638
|
-
function
|
|
639
|
-
Infinity,b);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.g.length||e.Sc(g);return Promise.resolve(e)}}}function
|
|
640
|
-
function
|
|
641
|
-
function
|
|
642
|
-
Infinity,
|
|
643
|
-
function
|
|
644
|
-
function
|
|
645
|
-
y=b.xe,w=a.bandwidth||null,x=a.L.id,
|
|
646
|
-
function
|
|
647
|
-
function
|
|
648
|
-
function
|
|
649
|
-
|
|
650
|
-
!
|
|
651
|
-
a.l=z;
|
|
652
|
-
function
|
|
653
|
-
function
|
|
654
|
-
function
|
|
655
|
-
function
|
|
656
|
-
k.push(
|
|
657
|
-
|
|
658
|
-
function
|
|
659
|
-
z.next())for(
|
|
660
|
-
function
|
|
661
|
-
function
|
|
662
|
-
function
|
|
663
|
-
function
|
|
664
|
-
function
|
|
665
|
-
(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
|
|
666
|
-
function
|
|
667
|
-
function
|
|
668
|
-
function
|
|
669
|
-
function
|
|
670
|
-
d=
|
|
671
|
-
function
|
|
672
|
-
function
|
|
673
|
-
a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function
|
|
674
|
-
function
|
|
675
|
-
function
|
|
676
|
-
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.s.destroy()};q.update=function(){var a=this,b;return G(function(c){if(1==c.g)return D(c,2),u(c,
|
|
677
|
-
function
|
|
678
|
-
function
|
|
679
|
-
function
|
|
680
|
-
"timeShiftBufferDepth",
|
|
681
|
-
!isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
function
|
|
628
|
+
function hp(a,b){var c=ip(a,b,"timescale"),d=1;c&&(d=gg(c)||1);var e=ip(a,b,"duration");c=gg(e||"");"image"==a.L.contentType&&(c=ig(e||""));c&&(c/=d);var f=ip(a,b,"startNumber");e=Number(ip(a,b,"presentationTimeOffset"))||0;var g=hg(f||"");if(null==f||null==g)g=1;f=jp(a,b,"SegmentTimeline");b=null;if(f){b=d;a=a.Y.duration||Infinity;f=Uf(f,"S");for(var h=[],k=-e,l=0;l<f.length;++l){var m=f[l],p=f[l+1],n=bg(m,"t",hg),t=bg(m,"d",hg);m=bg(m,"r",fg);null!=n&&(n-=e);if(!t)break;n=null!=n?n:k;m=m||0;if(0>
|
|
629
|
+
m)if(p){p=bg(p,"t",hg);if(null==p)break;else if(n>=p)break;m=Math.ceil((p-n)/t)-1}else{if(Infinity==a)break;else if(n/b>=a)break;m=Math.ceil((a*b-n)/t)-1}0<h.length&&n!=k&&(h[h.length-1].end=n/b);for(p=0;p<=m;++p)k=n+t,h.push({start:n/b,end:k/b,Mh:n}),n=k}b=h}return{timescale:d,za:c,pc:g,pb:e/d||0,cf:e,timeline:b}}function ip(a,b,c){return[b(a.L),b(a.va),b(a.oa)].filter(Ab).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
|
|
630
|
+
function jp(a,b,c){return[b(a.L),b(a.va),b(a.oa)].filter(Ab).map(function(d){return Tf(d,c)}).reduce(function(d,e){return d||e})}
|
|
631
|
+
function kp(a,b,c,d,e,f){for(var g=Yf(a,"http://www.w3.org/1999/xlink","href"),h=Yf(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 Ze(new M(2,4,4028));if("onLoad"!=h)return Ze(new M(2,4,4027));var m=Bb([d],[g]);return e.request(0,nf(m,b)).ia(function(p){p=mg(p.data,a.tagName);if(!p)return Ze(new M(2,4,4001,g));
|
|
632
|
+
for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;p.childNodes.length;){var n=p.childNodes[0];p.removeChild(n);a.appendChild(n)}p=r(Array.from(p.attributes));for(n=p.next();!n.done;n=p.next())a.setAttributeNode(n.value.cloneNode(!1));return lp(a,b,c,m[0],e,f+1)})}
|
|
633
|
+
function lp(a,b,c,d,e,f){f=void 0===f?0:f;if(Yf(a,"http://www.w3.org/1999/xlink","href")){var g=kp(a,b,c,d,e,f);c&&(g=g.ia(void 0,function(){return lp(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"==Yf(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(lp(k,b,c,d,e,f)));return cf(g).ia(function(){return a})};function mp(a,b,c,d,e,f,g){var h,k=(new Hf).T("sidx",function(l){h=np(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new M(2,3,3004);}
|
|
634
|
+
function np(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.N();if(0==k)throw new M(2,3,3005);if(0==g.version){var l=g.reader.N();var m=g.reader.N()}else l=g.reader.Cb(),m=g.reader.Cb();g.reader.skip(2);var p=g.reader.De();a=a+g.size+m;for(m=0;m<p;m++){var n=g.reader.N(),t=(n&2147483648)>>>31;n&=2147483647;var v=g.reader.N();g.reader.skip(4);if(1==t)throw new M(2,3,3006);h.push(new yi(l/k+c,(l+v)/k+c,function(){return f},a,a+n-1,b,c,d,e));l+=v;a+=n}g.parser.stop();return h};function op(a){this.h=Ic(a);this.g=new Ef(this.h,0)}op.prototype.xa=function(){return this.g.xa()};
|
|
635
|
+
function pp(a){var b=qp(a);if(7<b.length)throw new M(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=qp(a);a:{d=r(rp);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.ma();else{if(8==b.length&&b[1]&224)throw new M(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.ma()+b<=a.h.byteLength?b:a.h.byteLength-a.g.ma();d=Ic(a.h,a.g.ma(),b);a.g.skip(b);return new sp(c,
|
|
636
|
+
d)}function qp(a){var b=a.g.ma(),c=a.g.ob();if(0==c)throw new M(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Fc(a.h,b,c)}var rp=[[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 sp(a,b){this.id=a;this.g=b}
|
|
637
|
+
function tp(a){if(8<a.g.byteLength)throw new M(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new M(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 up(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new op(a.g);for(var p=null,n=null;a.xa();){var t=pp(a);if(187==t.id){var v=vp(t);v&&(t=c*v.Nh,v=b+v.wh,null!=p&&m.push(new yi(p+g,t+g,l,n,v-1,f,g,h,k)),p=t,n=v)}}null!=p&&m.push(new yi(p+g,d+g,l,n,null,f,g,h,k));return m}
|
|
638
|
+
function vp(a){var b=new op(a.g);a=pp(b);if(179!=a.id)throw new M(2,3,3013);a=tp(a);b=pp(b);if(183!=b.id)throw new M(2,3,3012);b=new op(b.g);for(var c=0;b.xa();){var d=pp(b);if(241==d.id){c=tp(d);break}}return{Nh:a,wh:c}};function wp(a,b){b=jp(a,b,"Initialization");if(!b)return null;var c=a.L.Na,d=b.getAttribute("sourceURL");d&&(c=Bb(a.L.Na,[d]));d=0;var e=null;if(b=bg(b,"range",eg))d=b.start,e=b.end;return new wi(function(){return c},d,e,xp(a))}
|
|
639
|
+
function yp(a,b){var c=Number(ip(a,zp,"presentationTimeOffset"))||0,d=ip(a,zp,"timescale"),e=1;d&&(e=gg(d)||1);var f=c/e||0,g=wp(a,zp);Ap(a,g);var h=ff(a);return{ac:function(){var k=jp(h,zp,"RepresentationIndex");var l=h.L.Na;k&&(k=k.getAttribute("sourceURL"))&&(l=Bb(h.L.Na,[k]));k=Bp(h);return Cp(h,b,g,l,k.start,k.end,f)}}}
|
|
640
|
+
function Cp(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,v,y,w,x,C,z,B,E;return G(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.vb||!a.Y.oe,l=a.Y.start,m=a.Y.duration,p=a.L.mimeType.split("/")[1],n=b,t=null,v=[n(d,e,f),"webm"==p?n(c.Pa(),c.Ta,c.Ca):null],n=null,u(F,Promise.all(v),2);y=F.h;w=y[0];x=y[1]||null;C=null;z=l-g;B=l;E=m?l+m:Infinity;if("mp4"==p)var H=mp(w,e,d,c,z,B,E);else{H=new op(x);if(440786851!=pp(H).id)throw new M(2,3,3008);var J=pp(H);if(408125543!=J.id)throw new M(2,3,3009);H=J.g.byteOffset;
|
|
641
|
+
J=new op(J.g);for(var K=null;J.xa();){var P=pp(J);if(357149030==P.id){K=P;break}}if(!K)throw new M(2,3,3010);K=new op(K.g);P=1E6;for(J=null;K.xa();){var V=pp(K);if(2807729==V.id)P=tp(V);else if(17545==V.id)if(4==V.g.byteLength)J=V.g.getFloat32(0);else if(8==V.g.byteLength)J=V.g.getFloat64(0);else throw new M(2,3,3003);}if(null==J)throw new M(2,3,3011);K=P/1E9;J*=K;P=pp(new op(w));if(475249515!=P.id)throw new M(2,3,3007);H=up(P,H,K,J,d,c,z,B,E)}C=H;h.lc(C);t=new Rj(C);k&&t.wb(B,E,!0);return F.return(t)})}
|
|
642
|
+
function zp(a){return a.Yc}function Bp(a){var b=jp(a,zp,"RepresentationIndex");a=ip(a,zp,"indexRange");a=eg(a||"");b&&(a=bg(b,"range",eg,a));return a}function Ap(a,b){Dp(a,b);if(!Bp(a))throw new M(2,4,4002);}function Dp(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Gb&&"mp4"!=c&&"webm"!=c)throw new M(2,4,4006);if("webm"==c&&!b)throw new M(2,4,4005);}
|
|
643
|
+
function xp(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.Cd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Ep(a,b){var c=wp(a,Fp),d=Gp(a);if(!d.za&&!d.timeline&&1<d.jc.length)throw new M(2,4,4002);if(!d.za&&!a.Y.duration&&!d.timeline&&1==d.jc.length)throw new M(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new M(2,4,4002);var e=null,f=null;a.oa.id&&a.L.id&&(f=b[a.oa.id+","+a.L.id])&&(e=f.segmentIndex);var g=Hp(a.Y.start,a.Y.duration,a.L.Na,d,c);b=!e;e?e.kc(g,a.presentationTimeline.kb()):e=new Rj(g);a.presentationTimeline.lc(g);a.vb&&a.Y.oe||e.wb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
|
|
644
|
+
Infinity,b);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.g.length||e.Sc(g);return Promise.resolve(e)}}}function Fp(a){return a.Db}function Gp(a){var b=Ip(a);a=hp(a,Fp);var c=a.pc;0==c&&(c=1);var d=0;a.za?d=a.za*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{za:a.za,startTime:d,pc:c,pb:a.pb,timeline:a.timeline,jc:b}}
|
|
645
|
+
function Hp(a,b,c,d,e){var f=d.jc.length;d.timeline&&d.timeline.length!=d.jc.length&&(f=Math.min(d.timeline.length,d.jc.length));for(var g=a-d.pb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},p=0;p<f;m={Vd:m.Vd},p++){var n=d.jc[p];m.Vd=Bb(c,[n.lh]);var t=void 0;t=null!=d.za?l+d.za:d.timeline?d.timeline[p].end:l+b;k.push(new yi(a+l,a+t,function(v){return function(){return v.Vd}}(m),n.start,n.end,e,g,a,h));l=t}return k}
|
|
646
|
+
function Ip(a){return[a.L.Db,a.va.Db,a.oa.Db].filter(Ab).map(function(b){return Uf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Mf&&(a.Mf=!0);var c=b.getAttribute("media");b=bg(b,"mediaRange",eg,{start:0,end:null});return{lh:c,start:b.start,end:b.end}})};function Jp(a,b,c,d,e,f){var g=Kp(a),h=Lp(a);Np(h);var k=ff(a);if(h.Oc)return Dp(a,g),{ac:function(){var t=gp(h.Oc,k.L.id,null,k.bandwidth||null,null);t=Bb(k.L.Na,[t]);return Cp(k,b,g,t,0,null,h.pb)}};if(h.za)return d||"image"===a.va.contentType||(a.presentationTimeline.ze(h.za),a.presentationTimeline.Ae(a.Y.start)),{ac:function(){return Op(k,h,e,g,f)}};var l=null;d=d=null;a.oa.id&&a.L.id&&(d=a.oa.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=Pp(k,h,g);c=a.Y.start;var p=a.Y.duration?a.Y.start+a.Y.duration:
|
|
647
|
+
Infinity,n=!(a.vb&&a.Y.oe);l?(n&&(new Rj(m)).wb(c,p,!0),l.kc(m,a.presentationTimeline.kb())):l=new Rj(m);a.presentationTimeline.lc(m);n&&l.wb(c,p);d&&a.vb&&(d.segmentIndex=l);return{ac:function(){l&&0!=l.g.length||l.Sc(m);return Promise.resolve(l)}}}function Qp(a){return a.Zc}function Lp(a){var b=hp(a,Qp),c=ip(a,Qp,"media");a=ip(a,Qp,"index");return{za:b.za,timescale:b.timescale,pc:b.pc,pb:b.pb,cf:b.cf,timeline:b.timeline,xe:c,Oc:a}}
|
|
648
|
+
function Np(a){var b=a.Oc?1:0;b+=a.timeline?1:0;b+=a.za?1:0;if(0==b)throw new M(2,4,4002);1!=b&&(a.Oc&&(a.timeline=null),a.za=null);if(!a.Oc&&!a.xe)throw new M(2,4,4002);}
|
|
649
|
+
function Op(a,b,c,d,e){function f(K){var P=(K-t)*n,V=P+b.pb,U=P+l;P=U+n;var ba=Math.min(P,h());U=new yi(U,ba,function(){var Q=gp(y,x,K,w,V*v);return Bb(C,[Q])},0,null,d,z,l,h());U.l=P;return U}function g(){var K=[Math.max(k.kb(),l),Math.min(k.Ib(),h())].map(function(P){return P-l});return[Math.ceil(K[0]/n),Math.ceil(K[1]/n)-1].map(function(P){return P+t})}function h(){var K=null!=m&&e[m]||p;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.oa.id,p=a.Y.duration,n=b.za,t=b.pc,v=b.timescale,
|
|
650
|
+
y=b.xe,w=a.bandwidth||null,x=a.L.id,C=a.L.Na,z=l-b.pb,B=g();a=a.vb?Math.max(B[0],B[1]-c+1):B[0];B=B[1];c=[];for(var E=a;E<=B;++E){var F=f(E);c.push(F)}var H=new Rj(c);c=k.Ib()<h();E=k.U();if(c||E){var J=Math.max(a,B+1);H.Nd(n,function(){var K=k.kb();H.Gb(K);var P=r(g());P.next();P=P.next().value;for(var V=[];J<=P;){var U=f(J);V.push(U);J++}return K>h()&&!V.length?null:V})}return Promise.resolve(H)}
|
|
651
|
+
function Pp(a,b,c){var d=a.Y.start,e=a.Y.duration,f=d-b.pb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Ud:h.Ud,Yd:h.Yd,ae:h.ae,Rd:h.Rd,ce:h.ce,Sd:h.Sd},k++){var l=b.timeline[k],m=l.start,p=l.Mh;l=l.end;h.ae=k+b.pc;h.ce=p+b.cf;h.Yd=a.L.id;h.Rd=a.bandwidth||null;h.Ud=b.xe;h.Sd=a.L.Na;g.push(new yi(d+m,d+l,function(n){return function(){var t=gp(n.Ud,n.Yd,n.ae,n.Rd||null,n.ce);return Bb(n.Sd,[t]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
|
|
652
|
+
function Kp(a){var b=ip(a,Qp,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Na;return new wi(function(){var f=gp(b,c,null,d,null);return Bb(e,[f])},0,null,xp(a))};function Rp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}Rp.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=[]};
|
|
653
|
+
function Sp(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z,B,E,F,H,J,K,P,V,U,ba,Q,Ea,Ka;return G(function(Ba){switch(Ba.g){case 1:d=Hb;Tp(b);Up(b);Vp(b);Wp(b);if(!c&&1==b.length){e=b[0];a.g=e.nd;a.h=e.Od;a.j=e.textStreams;a.i=e.imageStreams;Ba.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 Ba.return();k=b.map(function(Va){return Va.nd});l=b.map(function(Va){return Va.Od});m=b.map(function(Va){return Va.textStreams});p=b.map(function(Va){return Va.imageStreams});
|
|
654
|
+
n=r(m);for(t=n.next();!t.done;t=n.next())v=t.value,v.push(Xp(d.ba));y=r(p);for(w=y.next();!w.done;w=y.next())x=w.value,x.push(Xp(d.Ac));return u(Ba,Yp(a.g,k,f,Zp,$p),3);case 3:return u(Ba,Yp(a.h,l,f,Zp,$p),4);case 4:return u(Ba,Yp(a.j,m,f,Zp,$p),5);case 5:return u(Ba,Yp(a.i,p,f,Zp,$p),2);case 2:C=0;z=[];if(a.h.length&&a.g.length)for(K=r(a.g),P=K.next();!P.done;P=K.next())for(V=P.value,U=r(a.h),ba=U.next();!ba.done;ba=U.next())Q=ba.value,Ea=Xg(V.drmInfos,Q.drmInfos),V.drmInfos.length&&Q.drmInfos.length&&
|
|
655
|
+
!Ea.length||(Ka=C++,z.push({id:Ka,language:V.language,primary:V.primary,audio:V,video:Q,bandwidth:(V.bandwidth||0)+(Q.bandwidth||0),drmInfos:Ea,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(B=a.h.concat(a.g),E=r(B),F=E.next();!F.done;F=E.next())H=F.value,J=C++,z.push({id:J,language:H.language,primary:H.primary,audio:H.type==d.jd?H:null,video:H.type==d.Ma?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
|
|
656
|
+
a.l=z;A(Ba)}})}function Tp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.nd),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&&fc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.nd=c}}
|
|
657
|
+
function Vp(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&&fc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
|
|
658
|
+
function Up(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Od),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&&fc(e.roles,h.roles)&&Df(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Od=c}}
|
|
659
|
+
function Wp(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}}
|
|
660
|
+
function aq(a){var b,c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z,B,E,F,H,J,K,P,V;return G(function(U){switch(U.g){case 1:b=Hb;if(1==a.length)return U.return(a[0]);c=a.map(function(ba){return ba.filter(function(Q){return Q.type==b.jd})});d=a.map(function(ba){return ba.filter(function(Q){return Q.type==b.Ma})});e=a.map(function(ba){return ba.filter(function(Q){return Q.type==b.ba})});f=a.map(function(ba){return ba.filter(function(Q){return Q.type==b.Ac})});g=r(e);for(h=g.next();!h.done;h=g.next())k=h.value,
|
|
661
|
+
k.push(bq(b.ba));l=r(f);for(m=l.next();!m.done;m=l.next())p=m.value,p.push(bq(b.Ac));return u(U,Yp([],c,0,cq,dq),2);case 2:return n=U.h,u(U,Yp([],d,0,cq,dq),3);case 3:return t=U.h,u(U,Yp([],e,0,cq,dq),4);case 4:return v=U.h,u(U,Yp([],f,0,cq,dq),5);case 5:y=U.h;w=0;if(t.length&&n.length)for(E=r(n),F=E.next();!F.done;F=E.next())for(H=F.value,J=r(t),K=J.next();!K.done;K=J.next())P=K.value,V=w++,P.variantIds.push(V),H.variantIds.push(V);else for(x=t.concat(n),C=r(x),z=C.next();!z.done;z=C.next())B=z.value,
|
|
662
|
+
B.variantIds=[w++];return U.return(t.concat(n).concat(v).concat(y))}})}
|
|
663
|
+
function Yp(a,b,c,d,e){var f,g,h,k,l,m,p,n,t,v,y,w,x,C,z,B,E,F,H,J,K;return G(function(P){switch(P.g){case 1:f=Hb;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){P.D(4);break}m=l.value;return u(P,eq(m,b,c,e,g),5);case 5:p=P.h;if(!p)throw new M(2,4,4037);l=k.next();P.D(2);break;case 4:n=r(g);for(t=n.next();!t.done;t=n.next())for(v=t.value,y=r(v),w=y.next();!w.done;w=y.next())x=w.value,(C=fq(x,b,d,e,g))&&a.push(C);z=r(g);for(t=z.next();!t.done;t=
|
|
664
|
+
z.next())for(B=t.value,E={},F=r(B),w=F.next();!w.done;E={sb:E.sb},w=F.next())if(E.sb=w.value,H=E.sb.type==f.ba&&!E.sb.language,J=E.sb.type==f.Ac&&!E.sb.tilesLayout,!H&&!J&&(K=a.some(function(V){return function(U){return U.mimeType==V.sb.mimeType&&yd(U.codecs)==yd(V.sb.codecs)}}(E))))throw new M(2,4,4037);return P.return(a)}})}function eq(a,b,c,d,e){return G(function(f){if(1==f.g)return gq(b,a),a.matchedStreams?a.segmentIndex?u(f,hq(a,c),2):f.D(2):f.return(!1);iq(a,c,d,e);return f.return(!0)})}
|
|
665
|
+
function hq(a,b){var c,d,e,f,g,h,k;return G(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 Vj)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.l.push(k.segmentIndex);A(l)})}
|
|
666
|
+
function fq(a,b,c,d,e){var f=c(a);gq(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return G(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new Vj;return u(g,hq(f,0),0)})});if(!f.matchedStreams||!f.matchedStreams.length)return null;iq(f,0,d,e);return f}function iq(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==Qb(a.language,g.language)&&(h=!1);h&&d[f].delete(g)}}
|
|
667
|
+
function Zp(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}
|
|
668
|
+
function cq(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
|
|
669
|
+
function $p(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=Xg(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new M(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
|
|
670
|
+
(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=Zp(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),$p(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&$p(a.trickModeVideo,b)}
|
|
671
|
+
function dq(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)for(a.closedCaptions||(a.closedCaptions=new Map),b=r(b.closedCaptions),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;a.closedCaptions.set(c,d)}}
|
|
672
|
+
function gq(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=b,f={audio:jq,video:jq,text:kq,image:lq}[e.type],g={audio:mq,video:nq,text:oq,image:pq}[e.type],h=null;d=r(d.value);for(var k=d.next();!k.done;k=d.next())k=k.value,!f(e,k)||h&&!g(e,h,k)||(h=k);e=h;if(!e)return;c.push(e)}b.matchedStreams=c}function jq(a,b){var c;!(c=b.mimeType!=a.mimeType||yd(b.codecs)!=yd(a.codecs))&&(c=a.drmInfos)&&(a=a.drmInfos,b=b.drmInfos,c=!(a.length&&b.length?0<Xg(a,b).length:1));return c?!1:!0}
|
|
673
|
+
function kq(a,b){return a.language?b.language?0==Qb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function lq(a){return a.tilesLayout?!0:!1}
|
|
674
|
+
function mq(a,b,c){if(a.id==c.id)return!0;var d=Qb(a.language,b.language),e=Qb(a.language,c.language);if(e>d)return!0;if(e<d)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;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;
|
|
675
|
+
d=qq(a.channelsCount,b.channelsCount,c.channelsCount);if(d==rq)return!0;if(d==sq)return!1;d=qq(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==rq?!0:d==sq?!1:a.bandwidth&&tq(a.bandwidth,b.bandwidth,c.bandwidth)==rq?!0:!1}
|
|
676
|
+
function nq(a,b,c){if(a.id==c.id)return!0;var d=qq(a.width*a.height,b.width*b.height,c.width*c.height);if(d==rq)return!0;if(d==sq)return!1;if(a.frameRate){d=qq(a.frameRate,b.frameRate,c.frameRate);if(d==rq)return!0;if(d==sq)return!1}return a.bandwidth&&tq(a.bandwidth,b.bandwidth,c.bandwidth)==rq?!0:!1}
|
|
677
|
+
function oq(a,b,c){if(a.id==c.id)return!0;var d=Qb(a.language,b.language),e=Qb(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!=
|
|
678
|
+
a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function pq(a,b,c){return a.id==c.id?!0:qq(a.width*a.height,b.width*b.height,c.width*c.height)==rq?!0:!1}function bq(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}}
|
|
679
|
+
function Xp(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Rj([]),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}}
|
|
680
|
+
function qq(a,b,c){if(b==a&&a!=c)return sq;if(c==a&&a!=b)return rq;if(b>a){if(c<=a||c-a<b-a)return rq;if(c-a>b-a)return sq}else{if(c>a)return sq;if(a-c<a-b)return rq;if(a-c>a-b)return sq}return uq}function tq(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?rq:b<a?sq:uq}var rq=1,uq=0,sq=-1;function vq(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.M={};this.j=new Rp;this.H=0;this.J=new Zb(5);this.G=new N(function(){wq(a)});this.s=new gf;this.B=null;this.K=[];this.C=Infinity;this.F=!1}q=vq.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return G(function(e){if(1==e.g)return c.F=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,xq(c),2);d=e.h;c.h&&yq(c,d);if(!c.h)throw new M(2,7,7001);return e.return(c.i)})};
|
|
681
|
+
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.s.destroy()};q.update=function(){var a=this,b;return G(function(c){if(1==c.g)return D(c,2),u(c,xq(a),4);if(2!=c.g)return ua(c,0);b=va(c);if(!a.h||!b)return c.return();a.h.onError(b);A(c)})};q.onExpirationUpdated=function(){};
|
|
682
|
+
function xq(a){var b,c,d,e,f,g,h;return G(function(k){if(1==k.g)return b=nf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),hf(a.s,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,zq(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k.return(h)})}
|
|
683
|
+
function zq(a,b,c){var d,e,f,g,h;return G(function(k){if(1==k.g){d=mg(b,"MPD");if(!d)throw new M(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(Aq(a,d,c));f=a.g.dash.xlinkFailGracefully;g=lp(d,a.g.retryParameters,f,c,a.h.networkingEngine);hf(a.s,g);return u(k,g.promise,2)}h=k.h;return k.return(Aq(a,h,c))})}
|
|
684
|
+
function Aq(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z,B,E,F,H,J,K,P,V,U,ba,Q,Ea,Ka,Ba,Va;return G(function(Oa){switch(Oa.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Uf(b,"Location").map($f).filter(Ab);0<f.length&&(g=Bb(e,f),e=a.m=g);h=Uf(b,"BaseURL");k=h.map($f);l=Bb(e,k);m=0;h&&h.length&&(m=bg(h[0],"availabilityTimeOffset",ig)||0);p=a.g.dash.ignoreMinBufferTime;n=0;p||(n=bg(b,"minBufferTime",dg)||0);a.H=bg(b,"minimumUpdatePeriod",dg,-1);t=bg(b,"availabilityStartTime",cg);v=bg(b,
|
|
685
|
+
"timeShiftBufferDepth",dg);y=a.g.dash.ignoreSuggestedPresentationDelay;w=null;y||(w=bg(b,"suggestedPresentationDelay",dg));x=a.g.dash.ignoreMaxSegmentDuration;C=null;x||(C=bg(b,"maxSegmentDuration",dg));z=b.getAttribute("type")||"static";if(a.i)for(B=a.i.presentationTimeline,E=r(Object.values(a.l)),F=E.next();!F.done;F=E.next())H=F.value,H.segmentIndex&&H.segmentIndex.Gb(B.kb());else J=a.g.defaultPresentationDelay||1.5*n,K=null!=w?w:J,B=new O(t,K,a.g.dash.autoCorrectDrift);B.$c("static"==z);(P=B.U())&&
|
|
686
|
+
!isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);B.Re(v);V=b.getAttribute("profiles")||"";U={vb:"static"!=z,presentationTimeline:B,oa:null,Y:null,va:null,L:null,bandwidth:0,Mf:!1,Zb:m,profiles:V.split(",")};ba=Bq(a,U,l,b);Q=ba.duration;Ea=ba.periods;"static"!=z&&ba.Df||B.Sa(Q||Infinity);a.C&&!a.F&&(Ka=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?B.Tf(a.C):a.C&&Ua("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.");
|
|
687
|
+
B.ze(C||1);return u(Oa,Sp(a.j,Ea,U.vb),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);Oa.D(3);break}a.i={presentationTimeline:B,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:n||0,sequenceMode:a.g.dash.sequenceMode};if(!B.eg()){Oa.D(4);break}Ba=Uf(b,"UTCTiming");return u(Oa,Cq(a,l,Ba),5);case 5:Va=Oa.h;if(!a.h)return Oa.return();B.Uf(Va);case 4:B.ve();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),
|
|
688
|
+
A(Oa)}})}
|
|
689
|
+
function Bq(a,b,c,d){var e=bg(d,"mediaPresentationDuration",dg),f=[],g=0;d=Uf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=bg(k,"start",dg,g),p=k.id,n=bg(k,"duration",dg),t=null;if(l){var v=bg(l,"start",dg);null!=v&&(t=v-m)}else null!=e&&(t=e-m);null==t&&(t=n);if(!(null!==a.B&&null!==p&&null!==m&&m<a.B)||a.K.includes(p)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=Dq(a,b,c,{start:m,duration:t,node:k,oe:null==t||!l});f.push(g);b.oa.id&&t&&(a.M[b.oa.id]=t);if(null==t){g=
|
|
685
690
|
null;break}g=m+t}}a.K=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,Df:!1}:{periods:f,duration:g,Df:!0}}
|
|
686
|
-
function
|
|
687
|
-
}d=c.filter(function(m){return!m.Ye});c=c.filter(function(m){return m.Ye});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Ye.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={hd:h.hd},l=k.next())h.hd=l.value,h.hd.trickModeVideo=e.streams.find(function(m){return function(
|
|
688
|
-
[]:
|
|
689
|
-
function
|
|
690
|
-
function
|
|
691
|
-
l}}var
|
|
692
|
-
10)));m=
|
|
693
|
-
1,null!=t)for(t=r(t.split(";")),w=t.next();!w.done;w=t.next())w=w.value,x=y=void 0,w.includes("=")?(w=w.split("="),y="svc"+w[0],x=w[1].split(",")[0].split(":").pop()):(y="svc"+
|
|
694
|
-
(l=l[0],l.textContent&&(E=l.textContent));l=
|
|
695
|
-
m.value,
|
|
696
|
-
function
|
|
697
|
-
throw
|
|
698
|
-
(z=l.getAttribute("value")),!z))return null;var
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
function
|
|
702
|
-
m.next())
|
|
703
|
-
"height",
|
|
704
|
-
function
|
|
705
|
-
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
|
|
706
|
-
function
|
|
707
|
-
function
|
|
708
|
-
case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),
|
|
709
|
-
3);break;case 5:va(
|
|
710
|
-
function
|
|
711
|
-
function
|
|
712
|
-
|
|
713
|
-
function
|
|
714
|
-
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=
|
|
715
|
-
"EXT-X-STREAM-INF"==h.name&&(h.g.push(new
|
|
716
|
-
var
|
|
717
|
-
I("shaka.net.DataUriPlugin",
|
|
718
|
-
q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return G(function(e){return 1==e.g?(c.i=b,c.l=b.isLowLatencyMode(),u(e,
|
|
719
|
-
q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return G(function(m){if(1==m.g){if(!
|
|
720
|
-
function
|
|
721
|
-
function
|
|
722
|
-
|
|
723
|
-
function
|
|
724
|
-
function
|
|
725
|
-
function
|
|
726
|
-
function
|
|
727
|
-
|
|
728
|
-
Gb
|
|
729
|
-
|
|
730
|
-
7,7001);a.j=new
|
|
731
|
-
function
|
|
732
|
-
function
|
|
733
|
-
function
|
|
734
|
-
function
|
|
735
|
-
function
|
|
736
|
-
v=W(k,"VIDEO-RANGE");k=
|
|
737
|
-
e;w=
|
|
738
|
-
function
|
|
739
|
-
function
|
|
740
|
-
function
|
|
741
|
-
[d]);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
|
|
742
|
-
function
|
|
743
|
-
Number(m.split("x")[1]));if(
|
|
744
|
-
function
|
|
745
|
-
J.mimeType;
|
|
746
|
-
(v.codecs="");var y={stream:v,type:d,bd:b,ld:t,Ab:0,zd:new Map,pd:!1,Lc:!1,ke:-1,ue:!1},w=null,x=new AbortController;v.createSegmentIndex=function(){if(w)return w;x=new AbortController;return w=new Promise(function(
|
|
747
|
-
function
|
|
748
|
-
function
|
|
749
|
-
function
|
|
750
|
-
function
|
|
751
|
-
!1;ba
|
|
752
|
-
function
|
|
691
|
+
function Dq(a,b,c,d){b.oa=Eq(d.node,null,c);b.Y=d;b.oa.Zb=b.Zb;b.oa.id||(b.oa.id="__shaka_period_"+d.start);var e=Uf(d.node,"EventStream");c=b.presentationTimeline.kb();e=r(e);for(var f=e.next();!f.done;f=e.next())Fq(a,d.start,d.duration,f.value,c);c=Uf(d.node,"AdaptationSet").map(function(m){return Gq(a,b,m)}).filter(Ab);if(b.vb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.Ah);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new M(2,4,4018);
|
|
692
|
+
}d=c.filter(function(m){return!m.Ye});c=c.filter(function(m){return m.Ye});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Ye.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={hd:h.hd},l=k.next())h.hd=l.value,h.hd.trickModeVideo=e.streams.find(function(m){return function(p){return yd(m.hd.codecs)==yd(p.codecs)}}(h))}}}e=a.g.disableAudio?[]:Hq(d,"audio");g=a.g.disableVideo?[]:Hq(d,"video");f=a.g.disableText?
|
|
693
|
+
[]:Hq(d,Gb);c=a.g.disableThumbnails?[]:Hq(d,"image");if(!g.length&&!e.length)throw new M(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.oa.id,nd:d,Od:e,textStreams:g,imageStreams:f}}
|
|
694
|
+
function Hq(a,b){return a.filter(function(c){return c.contentType==b})}
|
|
695
|
+
function Gq(a,b,c){function d(F){switch(F){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.va=Eq(c,b.oa,null);var e=!1,f=Uf(c,"Role"),g=f.map(function(F){return F.getAttribute("value")}).filter(Ab),h=void 0,k=b.va.contentType==Gb;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=
|
|
696
|
+
l}}var p;m=Uf(c,"EssentialProperty");f=null;l=!1;m=r(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var t=n.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==t?f=n.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?p=d(parseInt(n.getAttribute("value"),10)):l=!0}m=Uf(c,"SupplementalProperty");m=r(m);for(n=m.next();!n.done;n=m.next())n=n.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==n.getAttribute("schemeIdUri")&&(p=d(parseInt(n.getAttribute("value"),
|
|
697
|
+
10)));m=Uf(c,"Accessibility");var v=new Map;m=r(m);for(n=m.next();!n.done;n=m.next())if(t=n.value,n=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==n)if(n=1,null!=t){t=t.split(";");for(var y=r(t),w=y.next();!w.done;w=y.next()){var x=w.value,C=w=void 0;x.includes("=")?(x=x.split("="),w=x[0].startsWith("CC")?x[0]:"CC"+x[0],C=x[1]||"und"):(w="CC"+n,2==t.length?n+=2:n++,C=x);v.set(w,Kb(C))}}else v.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==n)if(n=
|
|
698
|
+
1,null!=t)for(t=r(t.split(";")),w=t.next();!w.done;w=t.next())w=w.value,x=y=void 0,w.includes("=")?(w=w.split("="),y="svc"+w[0],x=w[1].split(",")[0].split(":").pop()):(y="svc"+n,n++,x=w),v.set(y,Kb(x));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==n&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=Uf(c,"ContentProtection");var z=Xo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),B=Kb(c.getAttribute("lang")||"und"),E=c.getAttribute("label");(l=Uf(c,"Label"))&&l.length&&
|
|
699
|
+
(l=l[0],l.textContent&&(E=l.textContent));l=Uf(c,"Representation");c=l.map(function(F){if(F=Iq(a,b,z,h,B,E,e,g,v,F))F.hdr=F.hdr||p;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.va.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new M(2,4,4003);}if(!b.va.contentType||"application"==b.va.contentType)for(b.va.contentType=Jq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.va.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=
|
|
700
|
+
m.value,n=r(z.drmInfos),t=n.next();!t.done;t=n.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(F){return F.getAttribute("id")}).filter(Ab);return{id:b.va.id||"__fake__"+a.I++,contentType:b.va.contentType,language:B,qj:e,streams:c,drmInfos:z.drmInfos,Ye:f,Ah:k}}
|
|
701
|
+
function Iq(a,b,c,d,e,f,g,h,k,l){b.L=Eq(l,b.va,null);a.C=Math.min(a.C,b.L.Zb);if(!Kq(b.L))return null;var m=b.Y.start;b.bandwidth=bg(l,"bandwidth",gg)||0;var p=b.L.contentType,n=p==Gb||"application"==p;p="image"==p;try{var t=function(F,H,J){return Lq(a,F,H,J)};if(b.L.Yc)var v=yp(b,t);else if(b.L.Db)v=Ep(b,a.l);else if(b.L.Zc)v=Jp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.M);else{var y=b.L.Na,w=b.Y.duration||0;v={ac:function(){return Promise.resolve(Uj(m,w,y))}}}}catch(F){if((n||p)&&4002==F.code)return null;
|
|
702
|
+
throw F;}t=Uf(l,"ContentProtection");t=$o(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var x=!1;Uf(l,"SupplementalProperty").some(function(F){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==F.getAttribute("schemeIdUri")&&"JOC"==F.getAttribute("value")})&&(x=!0);var C=!1;n&&(C=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(p&&((l=Uf(l,"EssentialProperty").find(function(F){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(F.getAttribute("schemeIdUri"))}))&&
|
|
703
|
+
(z=l.getAttribute("value")),!z))return null;var B;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"))&&(B="PQ");l=b.L.id?b.oa.id+","+b.L.id:"";var E=l&&a.l[l]?a.l[l]:{id:a.I++,originalId:b.L.id,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){E.segmentIndex&&(E.segmentIndex.release(),E.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,
|
|
704
|
+
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.va.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:C,channelsCount:b.L.Cd,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:x,closedCaptions:k,hdr:B,tilesLayout:z,matchedStreams:[]};E.createSegmentIndex=function(){var F;return G(function(H){if(1==
|
|
705
|
+
H.g){if(E.segmentIndex)return H.D(0);F=E;return u(H,v.ac(),3)}F.segmentIndex=H.h;A(H)})};l&&b.vb&&!a.l[l]&&(a.l[l]=E);return E}function wq(a){var b,c;G(function(d){switch(d.g){case 1:return b=0,D(d,2),u(d,xq(a),4);case 4:b=d.h;ua(d,3);break;case 2:c=va(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d.return();yq(a,b);A(d)}})}function yq(a,b){0>a.H||a.G.R(Math.max(3,a.H-b,$b(a.J)))}
|
|
706
|
+
function Eq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Cd:null,audioSamplingRate:null,Zb:0};c=c||b.Na;var d=Uf(a,"BaseURL"),e=d.map($f),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=bg(a,"frameRate",jg)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Uf(a,"InbandEventStream"),p=b.emsgSchemeIdUris.slice();m=r(m);for(var n=m.next();!n.done;n=
|
|
707
|
+
m.next())n=n.value.getAttribute("schemeIdUri"),p.includes(n)||p.push(n);m=Uf(a,"AudioChannelConfiguration");m=Mq(m)||b.Cd;n=bg(a,"audioSamplingRate",hg)||b.audioSamplingRate;f||(f=Jq(g,h));var t=Tf(a,"SegmentBase"),v=Tf(a,"SegmentTemplate"),y=t?bg(t,"availabilityTimeOffset",ig)||0:0,w=v?bg(v,"availabilityTimeOffset",ig)||0:0;d=d&&d.length?bg(d[0],"availabilityTimeOffset",ig)||0:0;d=b.Zb+d+y+w;return{Na:Bb(c,e),Yc:t||b.Yc,Db:Tf(a,"SegmentList")||b.Db,Zc:v||b.Zc,width:bg(a,"width",hg)||b.width,height:bg(a,
|
|
708
|
+
"height",hg)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:p,id:a.getAttribute("id"),Cd:m,audioSamplingRate:n,Zb:d}}
|
|
709
|
+
function Mq(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=
|
|
710
|
+
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 Kq(a){var b=a.Yc?1:0;b+=a.Db?1:0;b+=a.Zc?1:0;if(0==b)return a.contentType==Gb||"application"==a.contentType?!0:!1;1!=b&&(a.Yc&&(a.Db=null),a.Zc=null);return!0}
|
|
711
|
+
function Nq(a,b,c,d){var e,f,g,h,k,l;return G(function(m){if(1==m.g)return e=Bb(b,[c]),f=nf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),hf(a.s,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=$c(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})}
|
|
712
|
+
function Cq(a,b,c){var d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:d=c.map(function(n){return{scheme:n.getAttribute("schemeIdUri"),value:n.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){p.D(4);break}h=g.value;D(p,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 p.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 p.D(8);
|
|
713
|
+
case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),p.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":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}p.D(9);break;case 7:return u(p,Nq(a,b,l,"HEAD"),10);case 10:return p.return(p.h);case 8:return u(p,Nq(a,b,l,"GET"),11);case 11:return p.return(p.h);case 9:ua(p,
|
|
714
|
+
3);break;case 5:va(p);case 3:g=f.next();p.D(2);break;case 4:return Ua("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),p.return(0)}})}
|
|
715
|
+
function Fq(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=bg(d,"timescale",hg)||1;d=r(Uf(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=bg(k,"presentationTime",hg)||0,m=bg(k,"duration",hg)||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))}}
|
|
716
|
+
function Lq(a,b,c,d){var e,f,g,h,k;return G(function(l){if(1==l.g)return e=tf,f=kk(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),hf(a.s,h),u(l,h.promise,2);k=l.h;return l.return(k.data)})}function Jq(a,b){return Cd(wd(a,b))?Gb:a.split("/")[0]}I("shaka.dash.DashParser",vq);ch.mpd=function(){return new vq};ah["application/dash+xml"]=function(){return new vq};ah["video/vnd.mpeg.dash.mpd"]=function(){return new vq};function Oq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function Pq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Pq.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};
|
|
717
|
+
Pq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function W(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Qq(a,b){a=a.getAttribute(b);if(!a)throw new M(2,4,4023,b);return a.value}function Rq(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function Sq(a,b){this.name=a;this.value=b};function Tq(a,b){return a.filter(function(c){return c.name==b})}function Uq(a,b){return a.filter(function(c){return Qq(c,"TYPE")==b})}function Vq(a,b){a=Tq(a,b);return a.length?a[0]:null}function Wq(a,b){var c=0;c=void 0===c?0:c;return(a=Vq(a,b))?Number(a.value):c}function Xq(a,b){return Bb([a],[b])[0]};function Yq(a){this.h=a;this.g=0}function Zq(a){$q(a,/[ \t]+/gm)}function $q(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function ar(a){return a.g==a.h.length?null:(a=$q(a,/[^ \t\n]*/gm))?a[0]:null};function br(){this.g=0}
|
|
718
|
+
function cr(a,b,c){b=$c(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 M(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=dr(a,g),--a.g,er.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=dr(a,h);if(fr.includes(h.name)){if(1!=b)throw new M(2,4,4017);
|
|
719
|
+
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=dr(a,m),er.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"==W(m,"TYPE")?k.push(m):"MAP"==W(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Xq(d,m.trim()),h&&g.push(h),e.push(new Rq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new Rq("",g,k)));return new Oq(c,b,f,e)}f.push(h);
|
|
720
|
+
"EXT-X-STREAM-INF"==h.name&&(h.g.push(new Sq("URI",k)),e=!0)}}return new Oq(c,b,f)}function dr(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new M(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Yq(d);var f;(f=$q(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=$q(d,g);)c.push(new Sq(f[1],f[2]||f[3])),Zq(d)}return new Pq(a,b,c,e)}
|
|
721
|
+
var er="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(" "),fr="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function gr(){}function hr(a){try{var b=ir(a);return af({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Ze(c)}}
|
|
722
|
+
function ir(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new M(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new M(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=id(a):e=dd(a);return{data:e,contentType:c}}I("shaka.net.DataUriPlugin",gr);gr.parse=hr;kf("data",hr);function jr(){var a=this;this.g=this.i=null;this.sa=1;this.s=new Map;this.C=new Map;this.H=new Map;this.H.set("video",new Map);this.H.set("audio",new Map);this.H.set(Gb,new Map);this.H.set("image",new Map);this.ka=new Set;this.h=new Map;this.j=null;this.O="";this.X=new br;this.P=0;this.F=-1;this.J=Infinity;this.ua=!1;this.m=new N(function(){kr(a)});this.aa=lr;this.G=null;this.$=0;this.K=Infinity;this.V=this.ra=0;this.I=new gf;this.M=new Map;this.B=new Map;this.Z=new Map;this.l=!1}q=jr.prototype;
|
|
723
|
+
q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return G(function(e){return 1==e.g?(c.i=b,c.l=b.isLowLatencyMode(),u(e,mr(c,a),2)):3!=e.g?(d=e.h,c.O=d.uri,u(e,nr(c,d.data,a),3)):e.return(c.G)})};q.stop=function(){this.m&&(this.m.stop(),this.m=null);var a=[];this.I&&(a.push(this.I.destroy()),this.I=null);this.g=this.i=null;this.ka.clear();this.G=null;this.h.clear();this.C.clear();this.B.clear();this.s.clear();return Promise.all(a)};
|
|
724
|
+
q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return G(function(m){if(1==m.g){if(!or(a))return m.return();b=[];c=Array.from(a.h.values());d=c.filter(function(p){return p.stream.segmentIndex});e=r(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(pr(a,g));return u(m,Promise.all(b),2)}qr(a,d.map(function(p){return p.stream}));h=d.some(function(p){return 0==p.Lc});d.length&&!h&&(k=rr,sr(a,k.ig),l=d.map(function(p){return p.Ab}),a.j.Sa(Math.min.apply(Math,ia(l))),a.i.updateDuration());A(m)})};
|
|
725
|
+
function tr(a,b){return or(a)?a.H.get(b.type):b.zd}
|
|
726
|
+
function pr(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C;return G(function(z){if(1==z.g)return c=b.ld,d=new jb(c),a.l&&b.pd&&mb(d,new ob("_HLS_skip=YES")),u(z,mr(a,d.toString()),2);e=z.h;if(!b.stream.segmentIndex)return z.return();f=cr(a.X,e.data,e.uri);if(1!=f.type)throw new M(2,4,4017);g=Tq(f.g,"EXT-X-DEFINE");h=ur(a,g);k=b.stream;l=tr(a,b);m=vr(f,k.mimeType);p=m.keyIds;n=m.drmInfos;t=function(B,E){return B.size===E.size&&[].concat(ia(B)).every(function(F){return E.has(F)})};t(k.keyIds,p)||(k.keyIds=
|
|
727
|
+
p,k.drmInfos=n,a.i.newDrmInfo(k));v=wr(a,f,k.type,l,h);k.segmentIndex.kc(v,a.j.kb());v.length&&(y=Wq(f.g,"EXT-X-MEDIA-SEQUENCE"),w=l.get(y),k.segmentIndex.Gb(w));x=v[v.length-1];if(C=Vq(f.g,"EXT-X-ENDLIST"))b.Lc=!0,b.Ab=x.endTime;A(z)})}q.onExpirationUpdated=function(){};
|
|
728
|
+
function xr(a,b){for(var c=-1==a.F,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=tr(a,e);if(f=f.g[0]||null){g=r(g);for(var h=g.next();!h.done;h=g.next()){h=r(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.F=Math.max(a.F,k));e.ke=k;break}}}}if(!(0>a.F))for(b=r(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.F-c.ke),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),yr(a,c,d)}
|
|
729
|
+
function zr(a,b){if(Infinity==a.J){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.g&&(a.J=Math.min(a.J,d.g))}}b=a.J;if(Infinity!=b)for(d=r(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.g)Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.bd,"Expect AV sync issues!");else for(yr(a,c,f.g-b-f.startTime),c=r(e),e=c.next();!e.done;e=c.next())e.value.Ve(b)}}}
|
|
730
|
+
function yr(a,b,c){b.Ab+=c;a=tr(a,b);b=r(a);for(var d=b.next();!d.done;d=b.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.set(d,e+c)}}
|
|
731
|
+
function nr(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z,B,E,F,H,J,K,P,V,U,ba,Q,Ea,Ka,Ba,Va;return G(function(Oa){switch(Oa.g){case 1:d=cr(a.X,b,a.O);e=Tq(d.g,"EXT-X-DEFINE");for(var Vb=r(e),Sa=Vb.next();!Sa.done;Sa=Vb.next()){var cb=Sa.value;Sa=W(cb,"NAME");cb=W(cb,"VALUE");Sa&&cb&&(a.s.has(Sa)||a.s.set(Sa,cb))}f=[];g=[];h=[];if(1==d.type)return F=a.g.hls.mediaPlaylistFullMimeType,d.segments.length&&(H=new jb(d.segments[0].i),J=H.Ha.split(".").pop(),(K=Ar[J])?F=K:"ts"!==J&&"mp4"!==J&&(Br[J]?(K=Br[J],
|
|
732
|
+
P=a.g.hls.defaultAudioCodec,F=K+'; codecs="'+P+'"'):Cr[J]&&(K=Cr[J],V=a.g.hls.defaultVideoCodec,F=K+'; codecs="'+V+'"'))),U=F.split(";")[0],ba=U.split("/")[0],Q=Ad(F),Ea=new Map,u(Oa,Dr(a,d,c,c,Q,ba,"",!0,"Media Playlist",null,Ea,null,!1,!1,U),5);k=Tq(d.g,"EXT-X-MEDIA");l=Tq(d.g,"EXT-X-STREAM-INF");m=Tq(d.g,"EXT-X-IMAGE-STREAM-INF");p=Tq(d.g,"EXT-X-SESSION-KEY");Vb=r(l);for(Sa=Vb.next();!Sa.done;Sa=Vb.next()){var kc=Sa.value;cb=W(kc,"AUDIO");Sa=W(kc,"VIDEO");var yb=W(kc,"SUBTITLES");kc=Er(a,kc);if(yb){var Mp=
|
|
733
|
+
Eb(Gb,kc);a.B.set(yb,Mp);ec(kc,Mp)}cb&&(yb=Eb("audio",kc),yb||(yb=a.g.hls.defaultAudioCodec),a.B.set(cb,yb));Sa&&(cb=Eb("video",kc),cb||(cb=a.g.hls.defaultVideoCodec),a.B.set(Sa,cb))}n=Tq(d.g,"EXT-X-SESSION-DATA");t=r(n);for(v=t.next();!v.done;v=t.next())if(y=v.value,w=W(y,"DATA-ID"),x=W(y,"URI"),C=W(y,"LANGUAGE"),z=W(y,"VALUE"),B=(new Map).set("id",w),x&&B.set("uri",Xq(a.O,x)),C&&B.set("language",C),z&&B.set("value",z),E=new L("sessiondata",B),a.i)a.i.onEvent(E);Fr(a,k);Vb=Uq(k,"CLOSED-CAPTIONS");
|
|
734
|
+
Vb=r(Vb);for(Sa=Vb.next();!Sa.done;Sa=Vb.next())yb=Sa.value,Sa=Gr(yb),cb=Qq(yb,"GROUP-ID"),yb=Qq(yb,"INSTREAM-ID"),a.M.get(cb)||a.M.set(cb,new Map),a.M.get(cb).set(yb,Sa);f=Hr(a,l,p);g=Ir(a,k);return u(Oa,Jr(a,m),4);case 4:h=Oa.h;Oa.D(3);break;case 5:Ka=Oa.h,a.h.set(c,Ka),f.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==ba?Ka.stream:null,video:"video"==ba?Ka.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new M(2,
|
|
735
|
+
7,7001);a.j=new O(null,0);a.j.$c(!0);1==d.type&&(or(a)&&(Kr(a),Ba=a.P,a.m.R(Ba)),Va=Array.from(a.h.values()),Lr(a,Va),Mr(a));a.G={presentationTimeline:a.j,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.i.makeTextStreamsForClosedCaptions(a.G);A(Oa)}})}
|
|
736
|
+
function Mr(a){if(or(a)){if(a.P=a.K,a.aa==Nr){var b=Or(a);a.g.hls.useSafariBehaviorForLive&&(b=a.j.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.j.Re(b)}}else a.j.Sa(Or(a));a.j.ve()}function ur(a,b){var c=new Map;b=r(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=W(e,"NAME");var f=W(e,"VALUE");e=W(e,"IMPORT");d&&f&&c.set(d,f);e&&(d=a.s.get(e))&&c.set(e,d)}return c}
|
|
737
|
+
function Ir(a,b){var c=Uq(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Pr(a,g).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=Qq(d.value,"GROUP-ID");if(d=a.B.get(e))if(e=a.C.get(e)){e=r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Qr(Gb,d)||Rr(Gb)}}return b.filter(function(g){return g})}
|
|
738
|
+
function Jr(a,b){var c,d;return G(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return G(function(l){if(1==l.g){if(g=a.g.disableThumbnails)return l.return(null);D(l,2);return u(l,Sr(a,f),4)}if(2!=l.g)return h=l.h,l.return(h.stream);k=va(l);if(a.g.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}))})}
|
|
739
|
+
function Fr(a,b){b=b.filter(function(d){var e=W(d,"URI")||"";return"SUBTITLES"!=W(d,"TYPE")&&""!=e});b=r(b);for(var c=b.next();!c.done;c=b.next())Pr(a,c.value)}
|
|
740
|
+
function Hr(a,b,c){var d=[],e=new Set;if(0<c.length){c=r(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=Qq(f,"METHOD");if("NONE"!=g&&"AES-128"!=g&&(g=W(f,"KEYFORMAT")||"identity",f=(g=Tr[g])?g(f,""):null)){if(f.keyIds){g=r(f.keyIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value)}d.push(f)}}}b=b.map(function(k){var l=W(k,"FRAME-RATE"),m=Number(W(k,"AVERAGE-BANDWIDTH"))||Number(Qq(k,"BANDWIDTH")),p=W(k,"RESOLUTION");p=r(p?p.split("x"):[null,null]);var n=p.next().value,t=p.next().value,
|
|
741
|
+
v=W(k,"VIDEO-RANGE");k=Ur(a,k);p=k.audio;k=k.video;for(var y=r(k),w=y.next();!w.done;w=y.next())if(w=w.value.stream)w.width=Number(n)||void 0,w.height=Number(t)||void 0,w.frameRate=Number(l)||void 0,w.hdr=v||void 0;l=a.g.disableAudio;if(!p.length||l)p=[null];l=a.g.disableVideo;if(!k.length||l)k=[null];l=[];p=r(p);for(n=p.next();!n.done;n=p.next())for(n=n.value,t=r(k),v=t.next();!v.done;v=t.next()){var x=v.value;if(v=n?n.stream:null)v.drmInfos=d,v.keyIds=e;if(y=x?x.stream:null)y.drmInfos=d,y.keyIds=
|
|
742
|
+
e;w=n?n.stream.drmInfos:null;var C=x?x.stream.drmInfos:null;x=(x?x.bd:"")+" - "+(n?n.bd:"");v&&y&&w.length&&C.length&&!(0<Xg(w,C).length)||a.ka.has(x)||(v={id:a.sa++,language:v?v.language:"und",primary:!!v&&v.primary||!!y&&y.primary,audio:v,video:y,bandwidth:m,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},l.push(v),a.ka.add(x))}return l}).reduce(xb,[]);return b=b.filter(function(k){return null!=k})}
|
|
743
|
+
function Ur(a,b){var c=Er(a,b),d=W(b,"AUDIO"),e=W(b,"VIDEO"),f=d||e;f=f&&a.C.has(f)?a.C.get(f):[];d={audio:d?f:[],video:e?f:[]};e=!1;var g=Qq(b,"URI"),h=d.audio.find(function(m){return m&&m.bd==g}),k=Eb("video",c),l=Eb("audio",c);l&&!k?f="audio":!f.length&&l&&k?(f="video",c=[[k,l].join()]):d.audio.length&&h?(f="audio",e=!0):f=d.video.length&&!d.audio.length?"audio":"video";e||(a=Vr(a,b,c,f),d[a.stream.type]=[a]);return d}
|
|
744
|
+
function Er(a,b){var c=[];a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec);a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec);c=W(b,"CODECS",c.join(",")).split(/\s*,\s*/);a=new Set;b=[];c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=zd(d)[0];a.has(e)||(b.push(d),a.add(e))}return b}function Gr(a){a=W(a,"LANGUAGE")||"und";return Kb(a)}
|
|
745
|
+
function Pr(a,b){var c=Qq(b,"GROUP-ID"),d="",e=Qq(b,"TYPE").toLowerCase();"subtitles"==e&&(e=Gb);var f=e;f==Gb?d=W(b,"CODECS")||"":c&&a.B.has(c)&&(d=a.B.get(c));e=Wr(Qq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);var g=Gr(b),h=W(b,"NAME"),k="YES"==W(b,"DEFAULT");var l="audio"==f?(l=W(b,"CHANNELS"))?parseInt(l.split("/")[0],10):null:null;var m="audio"==f?(m=W(b,"CHANNELS"))?m.includes("/JOC"):!1:!1;var p=W(b,"CHARACTERISTICS");b="YES"==W(b,"FORCED");d=Xr(a,e,d,f,g,k,h,l,null,p,b,m);a.C.has(c)?a.C.get(c).push(d):
|
|
746
|
+
a.C.set(c,[d]);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
|
|
747
|
+
function Sr(a,b){var c,d,e,f,g,h,k,l,m,p;return G(function(n){if(1==n.g){c=Wr(Qq(b,"URI"),a.s);d=W(b,"CODECS","jpeg")||"";if(a.h.has(c))return n.return(a.h.get(c));e=Gr(b);f=W(b,"NAME");g=W(b,"CHARACTERISTICS");h=Xr(a,c,d,"image",e,!1,f,null,null,g,!1,!1);return a.h.has(c)?n.return(a.h.get(c)):(k=W(b,"RESOLUTION"))?u(n,h.stream.createSegmentIndex(),3):n.D(2)}2!=n.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
|
|
748
|
+
Number(m.split("x")[1]));if(p=W(b,"BANDWIDTH"))h.stream.bandwidth=Number(p);a.h.set(c,h);return n.return(h)})}function Vr(a,b,c,d){var e=Wr(Qq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);b=W(b,"CLOSED-CAPTIONS");b="video"==d&&b&&"NONE"!=b?a.M.get(b):null;c=Db(d,c);d=Xr(a,e,c,d,"und",!1,null,null,b,null,!1,!1);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
|
|
749
|
+
function Xr(a,b,c,d,e,f,g,h,k,l,m,p){function n(C){var z,B,E,F,H,J,K,P,V,U,ba,Q,Ea,Ka;return G(function(Ba){if(1==Ba.g)return u(Ba,mr(a,y.ld),2);if(3!=Ba.g){z=Ba.h;if(C.aborted)return Ba.return();B=z.uri;E=cr(a.X,z.data,B);F=or(a);return u(Ba,Dr(a,E,b,B,c,d,e,f,g,h,k,l,m,p),3)}H=Ba.h;if(C.aborted)return Ba.return();J=H.stream;or(a)&&!F&&Kr(a);y.ld=B;y.Ab=H.Ab;y.pd=H.pd;y.Lc=H.Lc;y.zd=H.zd;y.ue=!0;v.segmentIndex=J.segmentIndex;v.encrypted=J.encrypted;v.drmInfos=J.drmInfos;v.keyIds=J.keyIds;v.mimeType=
|
|
750
|
+
J.mimeType;fj.includes(v.mimeType)&&(v.codecs="");v.drmInfos.length&&a.i.newDrmInfo(v);K=Hb;if(d==K.Ma||d==K.jd)for(P=r(a.h.values()),V=P.next();!V.done;V=P.next())U=V.value,U.ue||U.type!=d||(U.stream.mimeType=J.mimeType,fj.includes(U.stream.mimeType)&&(U.stream.codecs=""));d==K.ba&&(ba=J.segmentIndex.get(0))&&ba.h&&(v.mimeType="application/mp4");Yr(a)&&(a.ua?Lr(a,[y]):(a.ua=!0,Q=Array.from(a.h.values()),Ea=Q.filter(function(Va){return Va.stream.segmentIndex}),Lr(a,Ea),Mr(a),Ka=a.P,0<Ka&&a.m.R(Ka)));
|
|
751
|
+
A(Ba)})}var t=Xq(a.O,b),v=Zr(a,c,d,e,f,g,h,k,l,m,p);fj.includes(v.mimeType)&&(v.codecs="");var y={stream:v,type:d,bd:b,ld:t,Ab:0,zd:new Map,pd:!1,Lc:!1,ke:-1,ue:!1},w=null,x=new AbortController;v.createSegmentIndex=function(){if(w)return w;x=new AbortController;return w=new Promise(function(C){C(n(x.signal))})};v.closeSegmentIndex=function(){w&&!v.segmentIndex&&x.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);w=null};return y}
|
|
752
|
+
function Or(a){var b=Infinity;a=r(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.Ab));return b}function qr(a,b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Sj(d.segmentIndex,function(e){c.push(e)});a.j.lc(c)}
|
|
753
|
+
function Lr(a,b){if(!or(a))for(var c=Or(a),d=r(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.wb(0,c);c=r(b);for(e=c.next();!e.done;e=c.next())e=e.value.stream,fj.includes(e.mimeType)&&(e.codecs="");qr(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?xr(a,b):zr(a,b)}
|
|
754
|
+
function Yr(a){if(!a.G)return!1;var b=[],c=[];a=r(a.G.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
|
|
755
|
+
function Dr(a,b,c,d,e,f,g,h,k,l,m,p,n,t,v){var y,w,x,C,z,B,E,F,H,J,K,P,V,U,ba;return G(function(Q){if(1==Q.g){if(1!=b.type)throw new M(2,4,4017);y=Tq(b.g,"EXT-X-DEFINE");w=ur(a,y);$r(a,b);return v?Q.D(2):u(Q,as(a,f,e,b,w),3)}2!=Q.g&&(v=Q.h);x=vr(b,v);C=x.drmInfos;z=x.keyIds;B=x.encrypted;E=x.mg;if(B&&!C.length&&!E)throw new M(2,4,4026);F=or(a)?a.H.get(f):new Map;H=a.l;J=wr(a,b,f,F,w);H!=a.l&&$r(a,b);K=J[J.length-1].endTime;P=new Rj(J);U=(V=Vq(b.g,"EXT-X-SERVER-CONTROL"))?null!=V.getAttribute("CAN-SKIP-UNTIL"):
|
|
756
|
+
!1;ba=Zr(a,e,f,g,h,k,l,m,p,n,t);ba.segmentIndex=P;ba.encrypted=B;ba.drmInfos=C;ba.keyIds=z;ba.mimeType=v;return Q.return({stream:ba,type:f,bd:c,ld:d,Ab:K,pd:U,Lc:!1,ke:-1,zd:F,ue:!1})})}
|
|
757
|
+
function Zr(a,b,c,d,e,f,g,h,k,l,m){var p=Qr(c,b)||Rr(c);return{id:a.sa++,originalId:f,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:p,codecs:b,kind:c==Gb?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:k?k.split(","):[],forced:l,channelsCount:g,audioSamplingRate:null,spatialAudio:m,closedCaptions:h,
|
|
753
758
|
hdr:void 0,tilesLayout:void 0}}
|
|
754
|
-
function
|
|
755
|
-
function
|
|
756
|
-
|
|
757
|
-
function
|
|
758
|
-
function
|
|
759
|
-
function
|
|
760
|
-
if(!a.l)return null}var
|
|
761
|
-
f=e+Number(n.value.split(",")[0]):f=
|
|
762
|
-
function
|
|
763
|
-
|
|
764
|
-
f=function(
|
|
765
|
-
function
|
|
766
|
-
function
|
|
767
|
-
function
|
|
768
|
-
function
|
|
769
|
-
var
|
|
770
|
-
ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},
|
|
771
|
-
b=
|
|
772
|
-
|
|
773
|
-
function
|
|
774
|
-
break}return u(K,g(H.value),5);case 5:J=Date.now();if(100<J-t||H.done)e(J-t,n
|
|
775
|
-
function
|
|
776
|
-
function
|
|
777
|
-
c))};f.ontimeout=function(){m(new M(1,1,1003,a,c))};f.onprogress=function(t){var v=Date.now();if(100<v-g||t.lengthComputable&&t.loaded==t.total)d(v-g,t.loaded-h,t.total-t.loaded),h=t.loaded,g=v};for(var
|
|
778
|
-
function
|
|
779
|
-
function
|
|
780
|
-
function
|
|
781
|
-
function
|
|
782
|
-
q.updateManifest=function(){return Promise.reject(new M(2,9,9016,"Cannot modify values in "+this.g))};function
|
|
783
|
-
q.getManifests=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,
|
|
784
|
-
function
|
|
785
|
-
function
|
|
786
|
-
function
|
|
787
|
-
|
|
788
|
-
function
|
|
789
|
-
function
|
|
790
|
-
function
|
|
791
|
-
|
|
792
|
-
function
|
|
793
|
-
function
|
|
794
|
-
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}}
|
|
795
|
-
function
|
|
796
|
-
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
|
|
797
|
-
|
|
759
|
+
function vr(a,b){var c=[];if(a.segments){a=r(a.segments);for(var d=a.next();!d.done;d=a.next())d=Tq(d.value.g,"EXT-X-KEY"),c.push.apply(c,ia(d))}d=a=!1;var e=[],f=new Set;c=r(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Qq(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=W(g,"KEYFORMAT")||"identity",g=(h=Tr[h])?h(g,b):null){if(g.keyIds){h=r(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,mg:d}}
|
|
760
|
+
function bs(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new M(2,4,4042);var d=0,e=W(b,"IV","");if(e){var f=jd(e.substr(2));if(16!=f.byteLength)throw new M(2,4,4043);}else d=Wq(c.g,"EXT-X-MEDIA-SEQUENCE");b=Xq(c.h,Qq(b,"URI"));var g=nf([b],a.g.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l,m;return G(function(p){if(1==p.g)return u(p,
|
|
761
|
+
cs(a,g,6),2);if(3!=p.g){k=p.h;if(!k.data||16!=k.data.byteLength)throw new M(2,4,4044);l={name:"AES-CBC"};m=h;return u(p,window.crypto.subtle.importKey("raw",k.data,l,!0,["decrypt"]),3)}m.cryptoKey=p.h;h.fetchKey=void 0;A(p)})}};return h}
|
|
762
|
+
function $r(a,b){var c=Vq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Vq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)sr(a,lr);else{c?sr(a,Nr):sr(a,ds);d=Vq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new M(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Vq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ra=Number(Qq(c,"PART-TARGET")),a.K=Math.min(a.ra,a.K),b=Vq(b.g,"EXT-X-SERVER-CONTROL"),a.V=b?Number(Qq(b,"PART-HOLD-BACK")):0):a.K=Math.min(d,a.K);a.$=Math.max(d,a.$)}}
|
|
763
|
+
function Kr(a){var b=a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.V?a.V:a.$*a.g.hls.liveSegmentsDelay;a.j.Yf(0);a.j.Vf(b);a.j.$c(!1)}function es(a,b,c,d){c=Vq(c,"EXT-X-MAP");if(!c)return null;var e=Qq(c,"URI");d=Wr(Xq(b,e),d);b=[d,W(c,"BYTERANGE","")].join("-");a.Z.has(b)||(c=fs(d,c),a.Z.set(b,c));return a.Z.get(b)}function fs(a,b){var c=0,d=null;if(b=W(b,"BYTERANGE"))c=b.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1;return new wi(function(){return[a]},c,d)}
|
|
764
|
+
function gs(a,b,c,d,e,f,g,h,k,l){var m=d.g,p=Wr(d.i,f),n=Vq(m,"EXTINF"),t=f=0,v=null;d.h.length&&!a.l&&Ua("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 y=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=Vq(m,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(y=cg(w.value))}w=zi;Vq(m,"EXT-X-GAP")&&(w=2);if(!n){if(0==d.h.length)throw new M(2,4,4024,
|
|
765
|
+
"EXTINF");if(!a.l)return null}var x=[];if(a.l)for(var C={},z=0;z<d.h.length;C={Wd:C.Wd},z++){var B=d.h[z],E=0==z?c:x[x.length-1],F=0==z?e:E.endTime,H=Number(W(B,"DURATION"))||a.ra;if(H){H=F+H;var J=0,K=null;"EXT-X-PRELOAD-HINT"==B.name?J=(J=W(B,"BYTERANGE-START"))?Number(J):0:(J=W(B,"BYTERANGE"),K=r(hs(E,J)),J=K.next().value,K=K.next().value);if(E=W(B,"URI"))C.Wd=Xq(g,E),E=zi,"YES"==W(B,"GAP")&&(E=2),x.push(new yi(F,H,function(P){return function(){return[P.Wd]}}(C),J,K,b,0,0,Infinity,[],"",null,null,
|
|
766
|
+
E))}}n?f=e+Number(n.value.split(",")[0]):f=x[x.length-1].endTime;(a=Vq(m,"EXT-X-BYTERANGE"))?(v=r(hs(c,a.value)),t=v.next().value,v=v.next().value):x.length&&(t=x[0].Ta,v=x[x.length-1].Ca);c="";a=null;"image"==h&&(c="1x1",h=Vq(m,"EXT-X-TILES"))&&(c=Qq(h,"LAYOUT"),(h=W(h,"DURATION"))&&(a=Number(h)));return new yi(e,f,function(){return p.length?[p]:[]},t,v,b,k,0,Infinity,x,c,a,y,w,l)}function hs(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ca+1,d=c+b-1);return[c,d]}
|
|
767
|
+
function wr(a,b,c,d,e){var f=b.segments,g=void 0,h=Wq(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=Wq(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Vq(b.g,"EXT-X-SKIP");l=l?Number(W(l,"SKIPPED-SEGMENTS")):0;var m=k+l,p=0;or(a)&&d.has(m)&&(p=d.get(m));for(var n=[],t=null,v=p,y=0;y<f.length;y++){var w=f[y],x=0==y?p:t.endTime;m=k+l+y;Vq(w.g,"EXT-X-DISCONTINUITY")&&(h++,v=x);var C=r(w.g);for(var z=C.next();!z.done;z=C.next())z=z.value,"EXT-X-KEY"==z.name&&("AES-128"==Qq(z,"METHOD")?g=bs(a,z,b):g=void 0);d.set(m,x);C=es(a,b.h,
|
|
768
|
+
w.g,e);!a.l&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.l=a.i.isLowLatencyMode());if(t=w=gs(a,C,t,w,x,e,b.h,c,v,g))w.j=h,a.g.hls.ignoreManifestProgramDateTime&&null!=a.F&&m<a.F||n.push(w)}if(b=n.some(function(B){return null!=B.g}))for(c={},d=0;d<n.length;c={tc:c.tc,sc:c.sc,cd:c.cd,qb:c.qb,rc:c.rc},d++)if(c.qb=n[d],null==c.qb.g)for(c.sc=0,c.tc=d,e=function(B){return function(){var E=n[B.tc];if(E){if(null!=E.g)return E.g+B.sc;B.sc-=E.endTime-E.startTime;B.tc+=1}return null}}(c),c.rc=
|
|
769
|
+
0,c.cd=d,f=function(B){return function(){var E=n[B.cd];if(E){E!=B.qb&&(B.rc+=E.endTime-E.startTime);if(null!=E.g)return E.g+B.rc;--B.cd}return null}}(c);null==c.qb.g;)c.qb.g=f(),null==c.qb.g&&(c.qb.g=e());if(b)for(c=r(n),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=r(e.i),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.J;if(b&&Infinity!=a)for(b=r(n),d=b.next();!d.done;d=b.next())d.value.Ve(a);return n}
|
|
770
|
+
function Wr(a,b){a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new M(2,4,4039,e);}}return a}function Qr(a,b){if(a==Gb){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":null:"image/jpeg"}
|
|
771
|
+
function Rr(a){return a==Gb?"text/vtt":is[a].mp4}function as(a,b,c,d,e){var f,g,h,k,l,m,p,n,t,v;return G(function(y){if(1==y.g){f=tf;g=Math.trunc((d.segments.length-1)/2);h=Wr(d.segments[g].i,e);k=new jb(h);l=k.Ha.split(".").pop();m=is[b];if((p=m[l])||(p=Ar[l])||(p=Qr(b,c)))return y.return(p);n=nf([h],a.g.retryParameters);n.method="HEAD";return u(y,cs(a,n,f),2)}t=y.h;return(v=t.headers["content-type"])?y.return(v.split(";")[0]):y.return(Rr(b))})}
|
|
772
|
+
function mr(a,b){b=nf([b],a.g.retryParameters);a.i.modifyManifestRequest(b,{format:"h"});return cs(a,b,0)}function kr(a){var b,c;G(function(d){if(1==d.g){if(!a.i)return d.return();D(d,2);return u(d,a.update(),4)}if(2!=d.g)return or(a)&&(b=a.P,a.m.R(b)),ua(d,0);c=va(d);if(!a.i)return d.return();c.severity=1;a.i.onError(c);a.m.R(.1);A(d)})}function or(a){return a.aa!=lr}function sr(a,b){a.aa=b;a.j&&a.j.$c(!or(a));or(a)||a.m.stop()}
|
|
773
|
+
function cs(a,b,c){if(!a.I)throw new M(2,7,7001);b=a.i.networkingEngine.request(c,b);hf(a.I,b);return b.promise}I("shaka.hls.HlsParser",jr);
|
|
774
|
+
var Ar={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Br={mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},Cr={mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},is={audio:Br,video:Cr,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
|
|
775
|
+
vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Tr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new M(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new M(2,4,4041);return Cb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Qq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
|
|
776
|
+
b=Qq(a,"URI");b=ir(b);b=Fc(b.data);b=Cb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=W(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=Qq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Qq(a,"URI");a=ir(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=Sf(a,b,new Set,0);return Cb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a){a=
|
|
777
|
+
Qq(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Cb("org.w3.clearkey",null):null}},lr="VOD",ds="EVENT",Nr="LIVE",rr={ig:lr,ei:ds,gg:Nr};Rc("Tizen 3")||Rc("Tizen 2")||Tc()||(ch.m3u8=function(){return new jr},ah["application/x-mpegurl"]=function(){return new jr},ah["application/vnd.apple.mpegurl"]=function(){return new jr});function js(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=cd(b)}catch(g){}throw new M(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function ks(){}function ls(a,b,c,d,e){var f=new ms;Bf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new ns,h={wf:!1,dg:!1};a=os(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 Ye(a,function(){h.wf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new N(function(){h.dg=!0;g.abort()});k.R(b/1E3);a.finally(function(){k.stop()})}return a}
|
|
778
|
+
function os(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,v,y,w,x,C,z;return G(function(B){switch(B.g){case 1:return h=ps,k=qs,n=p=0,t=Date.now(),D(B,2),u(B,h(a,c),4);case 4:l=B.h;f(rs(l.headers));if("HEAD"==c.method){B.D(5);break}v=l.clone().body.getReader();w=(y=l.headers.get("Content-Length"))?parseInt(y,10):0;x=function(E){function F(){var H,J;return G(function(K){switch(K.g){case 1:return D(K,2),u(K,v.read(),4);case 4:H=K.h;ua(K,3);break;case 2:return va(K),K.return();case 3:if(H.done){K.D(5);break}p+=H.value.byteLength;
|
|
779
|
+
if(!g){K.D(5);break}return u(K,g(H.value),5);case 5:J=Date.now();if(100<J-t||H.done)e(J-t,p-n,w-p),n=p,t=J;H.done?E.close():(E.enqueue(H.value),F());A(K)}})}F()};new k({start:x});return u(B,l.arrayBuffer(),6);case 6:m=B.h;case 5:ua(B,3);break;case 2:C=va(B);if(d.wf)throw new M(1,1,7001,a,b);if(d.dg)throw new M(1,1,1003,a,b);throw new M(1,1,1002,a,C,b);case 3:return z=rs(l.headers),B.return(js(z,m,l.status,a,l.url,b))}})}function rs(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
|
|
780
|
+
function ss(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}I("shaka.net.HttpFetchPlugin",ks);ks.isSupported=ss;ks.parse=ls;var ps=window.fetch,ns=window.AbortController,qs=window.ReadableStream,ms=window.Headers;ss()&&(kf("http",ls,2,!0),kf("https",ls,2,!0),kf("blob",ls,2,!0));function ts(){}
|
|
781
|
+
function us(a,b,c,d,e){var f=new vs,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 M(1,1,7001,a,c))};var p=!1;f.onreadystatechange=function(){if(2==f.readyState&&!p){var t=ws(f);e(t);p=!0}};f.onload=function(){var t=ws(f),v=f.response;try{var y=js(t,v,f.status,a,f.responseURL,c);l(y)}catch(w){m(w)}};f.onerror=function(t){m(new M(1,1,1002,a,t,
|
|
782
|
+
c))};f.ontimeout=function(){m(new M(1,1,1003,a,c))};f.onprogress=function(t){var v=Date.now();if(100<v-g||t.lengthComputable&&t.loaded==t.total)d(v-g,t.loaded-h,t.total-t.loaded),h=t.loaded,g=v};for(var n in b.headers)f.setRequestHeader(n.toLowerCase(),b.headers[n]);f.send(b.body)});return new Ye(k,function(){f.abort();return Promise.resolve()})}
|
|
783
|
+
function ws(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}I("shaka.net.HttpXHRPlugin",ts);ts.parse=us;var vs=window.XMLHttpRequest;kf("http",us,1,!0);kf("https",us,1,!0);kf("blob",us,1,!0);function xs(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function ys(a){return a.Pa().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ta+":"+a.Ca}function zs(a,b){return kk(a.g.Pa(),a.g.Ta,a.g.Ca,b.streaming.retryParameters)};function As(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Bs(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}As.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 Cs(a){var b=this;this.s=a;this.j=new Map;this.i=new uf(function(){return Ds(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new As}Cs.prototype.destroy=function(){return this.i.destroy()};function Es(a,b,c){a.m=b;a.l=c}function Ds(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
|
|
784
|
+
function Fs(a,b,c,d,e,f){vf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,p,n,t;return G(function(v){if(1==v.g)return u(v,Gs(a,c),2);h=v.h;if(a.i.g)throw new M(2,9,7001);if(e)for(m in k=Fc(h),l=new Rf(k),l.data)p=Number(m),n=l.data[p],t=l.g[p],a.l(n,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 v.return(f(h))})});a.j.set(b,g)}function Hs(a){return G(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
|
|
785
|
+
function Gs(a,b){var c,d,e,f;return G(function(g){if(1==g.g)return c=tf,d=a.s.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;ec(a.h,e);return g.return(f.data)})};function Is(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Jc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Is.prototype.abort=function(){var a=this;return G(function(b){if(1==b.g){try{a.i.abort()}catch(c){}D(b,2);return u(b,a.g,4)}if(2!=b.g)return ua(b,0);va(b);A(b)})};
|
|
786
|
+
function Js(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return G(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();A(g)})}})}Is.prototype.store=function(){return this.h};Is.prototype.promise=function(){return this.g};function Ks(a){this.h=a;this.g=[]}Ks.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Ls(a,b){return Ms(a,b,"readwrite")}function Ms(a,b,c){c=a.h.transaction([b],c);var d=new Is(c,b);a.g.push(d);d.promise().then(function(){ec(a.g,d)},function(){ec(a.g,d)});return d};function Ns(a,b,c){this.h=new Ks(a);this.i=b;this.g=c}q=Ns.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Os(this.i)};q.removeSegments=function(a,b){return Ps(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,Qs(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.zf(e)}))})};q.addManifests=function(){return Os(this.g)};
|
|
787
|
+
q.updateManifest=function(){return Promise.reject(new M(2,9,9016,"Cannot modify values in "+this.g))};function Rs(a,b,c){a=Ls(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=Ls(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 Ps(this,this.g,a,b)};
|
|
788
|
+
q.getManifests=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,Qs(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Dc(e)})))})};q.getAllManifests=function(){var a=this,b,c;return G(function(d){return 1==d.g?(b=Ms(a.h,a.g,"readonly"),c=new Map,u(d,Js(b,function(e,f){var g;return G(function(h){if(1==h.g)return u(h,a.Dc(f),2);g=h.h;c.set(e,g);A(h)})}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};q.zf=function(a){return a};q.Dc=function(a){return Promise.resolve(a)};
|
|
789
|
+
function Os(a){return Promise.reject(new M(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 G(function(m){if(1==m.g){d=Ls(c.h,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={gd:g.gd},k=h.next())l=k.value,g.gd=e.add(l),g.gd.onsuccess=function(p){return function(){f.push(p.gd.result)}}(g);return u(m,d.promise(),2)}return m.return(f)})};
|
|
790
|
+
function Ps(a,b,c,d){a=Ls(a.h,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={fd:e.fd},f=c.next())e.fd=f.value,b.delete(e.fd).onsuccess=function(g){return function(){return d(g.fd)}}(e);return a.promise()}
|
|
791
|
+
function Qs(a,b,c){var d,e,f,g,h,k,l;return G(function(m){if(1==m.g){d=Ms(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={zc:h.zc,wc:h.wc},l=k.next())h.wc=l.value,h.zc=e.get(h.wc),h.zc.onsuccess=function(p){return function(){void 0==p.zc.result&&g.push(p.wc);f[p.wc]=p.zc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new M(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(p){return f[p]}))})};function Ss(a){this.g=new Ks(a)}Ss.prototype.destroy=function(){return this.g.destroy()};Ss.prototype.getAll=function(){var a=this,b,c;return G(function(d){return 1==d.g?(b=Ms(a.g,"session-ids","readonly"),c=[],u(d,Js(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};Ss.prototype.add=function(a){var b=Ls(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()};
|
|
792
|
+
Ss.prototype.remove=function(a){var b=this,c;return G(function(d){return 1==d.g?(c=Ls(b.g,"session-ids"),u(d,Js(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):u(d,c.promise(),0)})};function Ts(){this.g=new Map}Ts.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)};Ts.prototype.init=function(){var a=this;Us.forEach(function(e,f){(e=e())&&a.g.set(f,e)});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)};
|
|
793
|
+
function Vs(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 M(2,9,9013,"Could not find a cell that supports add-operations");}function Ws(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ra:d,Ba:f},e)})})}
|
|
794
|
+
function Xs(a,b,c){a=a.g.get(b);if(!a)throw new M(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new M(2,9,9013,"Could not find cell with name "+c);return b}function Ys(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function Zs(a){var b=Array.from(a.g.keys());if(!b.length)throw new M(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
|
|
795
|
+
function $s(a){var b,c,d;return G(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Us,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 at(a,b){Us.set(a,b)}I("shaka.offline.StorageMuxer",Ts);Ts.unregister=function(a){Us.delete(a)};Ts.register=at;Ts.prototype.destroy=Ts.prototype.destroy;var Us=new Map;function bt(){Ns.apply(this,arguments)}pa(bt,Ns);bt.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return G(function(g){d=Ls(c.h,c.g);e=d.store();f=new Jc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new M(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
|
|
796
|
+
bt.prototype.Dc=function(a){var b,c,d,e,f,g;return G(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=ct(a.periods[c],e),b.push(f);return u(h,aq(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})})};
|
|
797
|
+
function ct(a,b){dt(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return et(e,a.startTime,b)})}
|
|
798
|
+
function et(a,b,c){var d=a.initSegmentUri?ft(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=ft(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
|
|
799
|
+
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}}bt.prototype.zf=function(a){return{data:a.data}};function ft(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 M(2,9,9004,"Could not parse uri "+a);}
|
|
800
|
+
function dt(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++,
|
|
801
|
+
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 gt(){Ns.apply(this,arguments)}pa(gt,Ns);
|
|
802
|
+
gt.prototype.Dc=function(a){var b,c,d,e,f,g;return G(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),p=m.next();!p.done;p=m.next())p=p.value,0!=p.variantIds.length&&l.push(ht(p,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,aq(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
|
|
798
803
|
Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
|
|
799
|
-
function
|
|
800
|
-
dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function
|
|
801
|
-
q.init=function(){var a=this,b=new
|
|
802
|
-
new
|
|
803
|
-
9,9001,e.error)),d.stop(),f.preventDefault())};return b};q.destroy=function(){var a=this;return G(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(),
|
|
804
|
+
function ht(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,
|
|
805
|
+
dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function it(){Ns.apply(this,arguments)}pa(it,Ns);q=it.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 Rs(this,a,b)};q.Dc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function jt(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=jt.prototype;
|
|
806
|
+
q.init=function(){var a=this,b=new Jc,c=!1,d=new N(function(){c=!0;b.reject(new M(2,9,9017))});d.R(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new bt(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new gt(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
|
|
807
|
+
new gt(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new it(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new Ss(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=r(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new M(2,
|
|
808
|
+
9,9001,e.error)),d.stop(),f.preventDefault())};return b};q.destroy=function(){var a=this;return G(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(),A(b)}})};
|
|
804
809
|
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};
|
|
805
|
-
q.erase=function(){var a=this;return G(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,
|
|
806
|
-
function
|
|
807
|
-
function
|
|
808
|
-
function
|
|
810
|
+
q.erase=function(){var a=this;return G(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,kt(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
|
|
811
|
+
function kt(){var a=new Jc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new M(2,9,9001,b.error));c.preventDefault()};return a}at("idb",function(){return Rc("CrKey")||Qc()||!window.indexedDB?null:new jt});function lt(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}lt.prototype.Ra=function(){return this.i};lt.prototype.Ba=function(){return this.h};lt.prototype.key=function(){return this.l};lt.prototype.toString=function(){return this.j};
|
|
812
|
+
function mt(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 lt(b,c,d,Number(a[4])):null};function nt(a,b){this.h=a;this.g=b}
|
|
813
|
+
function ot(a,b){var c=new O(null,0);c.Sa(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=pt(a,d,e,c);e=b.streams.filter(function(l){return l.type==Gb}).map(function(l){return qt(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return qt(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=
|
|
809
814
|
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}}
|
|
810
|
-
function
|
|
811
|
-
b.next())for(e=e.value,g=
|
|
812
|
-
function
|
|
813
|
-
roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function
|
|
814
|
-
function
|
|
815
|
-
q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:d=
|
|
815
|
+
function pt(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:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=r(b);for(e=b.next();!e.done;e=
|
|
816
|
+
b.next())for(e=e.value,g=qt(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=qt(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}
|
|
817
|
+
function qt(a,b,c){var d=b.segments.map(function(e){return rt(a,e)});c.lc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Rj(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,
|
|
818
|
+
roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function rt(a,b){var c=new lt("segment",a.h,a.g,b.dataKey);return new yi(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?st(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
|
|
819
|
+
function st(a,b){var c=new lt("segment",a.h,a.g,b);return new wi(function(){return[c.toString()]},0,null)};function tt(){this.g=null}q=tt.prototype;q.configure=function(){};
|
|
820
|
+
q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:d=mt(a);c.g=d;if(null==d||"manifest"!=d.g)throw new M(2,1,9004,a);e=new Ts;ta(m);return u(m,e.init(),4);case 4:return u(m,Xs(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 nt(d.Ra(),d.Ba()),l=ot(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return wa(m),u(m,e.destroy(),7);case 7:xa(m,0)}})};q.stop=function(){return Promise.resolve()};
|
|
816
821
|
q.update=function(){};
|
|
817
|
-
q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:return d=c.g,e=new
|
|
818
|
-
|
|
819
|
-
function
|
|
820
|
-
function
|
|
821
|
-
9);case 9:return f.return([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return G(function(h){if(1==h.g)return D(h,2),u(h,
|
|
822
|
-
function
|
|
823
|
-
function
|
|
824
|
-
case 4:b.h=null,b.g=null,
|
|
825
|
-
q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new
|
|
826
|
-
function
|
|
827
|
-
|
|
828
|
-
function
|
|
829
|
-
|
|
830
|
-
va(z),
|
|
831
|
-
function
|
|
832
|
-
(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(x,a.updateManifest(b,c),4);case 4:g=!0;f();ua(x,0);break;case 2:return y=va(x),u(x,
|
|
833
|
-
function
|
|
834
|
-
d.push(
|
|
835
|
-
ba.next();!E.done;E=ba.next())Q=E.value,"variant"==Q.type&&
|
|
836
|
-
function
|
|
837
|
-
p&&n
|
|
838
|
-
function
|
|
839
|
-
function
|
|
840
|
-
function
|
|
841
|
-
function
|
|
842
|
-
function
|
|
843
|
-
q.list=function(){return
|
|
844
|
-
function
|
|
845
|
-
c.configure(d.manifest),
|
|
846
|
-
function
|
|
847
|
-
function
|
|
848
|
-
function
|
|
849
|
-
tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;
|
|
850
|
-
tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function
|
|
851
|
-
function
|
|
852
|
-
function
|
|
853
|
-
function
|
|
854
|
-
function
|
|
855
|
-
|
|
856
|
-
var
|
|
857
|
-
|
|
858
|
-
function
|
|
859
|
-
function
|
|
860
|
-
Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",
|
|
861
|
-
function
|
|
862
|
-
function
|
|
863
|
-
c.
|
|
864
|
-
"",contentType:a.audio.contentType},
|
|
865
|
-
x);case 2:return
|
|
866
|
-
function
|
|
867
|
-
function
|
|
868
|
-
function Mu(){var a=MediaSource.isTypeSupported;
|
|
869
|
-
Nu.install=Ou;function Qu(){
|
|
822
|
+
q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:return d=c.g,e=new Ts,D(m,2,3),u(m,e.init(),5);case 5:return u(m,Xs(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:xa(m,0);break;case 2:va(m),m.D(3)}})};
|
|
823
|
+
ah["application/x-offline-manifest"]=function(){return new tt};function ut(){}function vt(a){var b=mt(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=af(a)):a=b&&"segment"==b.g?wt(b.key(),b):Ze(new M(2,1,9004,a));return a}
|
|
824
|
+
function wt(a,b){var c=new Ts;return af(void 0).ia(function(){return c.init()}).ia(function(){return Xs(c,b.Ra(),b.Ba())}).ia(function(d){return d.getSegments([b.key()])}).ia(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}I("shaka.offline.OfflineScheme",ut);ut.plugin=vt;kf("offline",vt);function xt(a,b,c){var d,e,f,g,h,k;return G(function(l){switch(l.g){case 1:d=[];for(var m=[],p=r(c),n=p.next();!n.done;n=p.next()){n=n.value;for(var t=!1,v=r(m),y=v.next();!y.done;y=v.next())if(y=y.value,yt(y.info,n)){y.sessionIds.push(n.sessionId);t=!0;break}t||m.push({info:n,sessionIds:[n.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=zt(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)}})}
|
|
825
|
+
function zt(a,b,c){var d,e;return G(function(f){switch(f.g){case 1:return d=new ng({Ob:b,onError:function(){},Fd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),D(f,2),d.configure(a),u(f,vg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ua(f,3);break;case 2:return va(f),u(f,d.destroy(),5);case 5:return f.return([]);case 3:return D(f,6),u(f,Gg(d),8);case 8:ua(f,7);break;case 6:return va(f),u(f,d.destroy(),
|
|
826
|
+
9);case 9:return f.return([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return G(function(h){if(1==h.g)return D(h,2),u(h,Hg(d,g),4);if(2!=h.g)return e.push(g),ua(h,0);va(h);A(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f.return(e)}})}
|
|
827
|
+
function yt(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&fc(a.audioCapabilities,b.audioCapabilities,c)&&fc(a.videoCapabilities,b.videoCapabilities,c)};function At(a,b,c){var d=b.presentationTimeline.getDuration();b=Bt(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Ct(a,b){var c=ot(new nt(a.Ra(),a.Ba()),b),d=b.appMetadata||{};c=Bt(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}}
|
|
828
|
+
function Bt(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 Dt(){this.g={}}function Et(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 Ft(a,b){a.g[b.id]=b.bandwidth||2048}function Gt(a,b){a=a.g[b];null==a&&(a=0);return a};function Ht(a){var b=this;if(a&&a.constructor!=S)throw new M(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Hc()):(this.h=Nl(),this.g=new jf);this.i=[];this.j=[];var c=!a;this.l=new uf(function(){var d,e,f,g,h;return G(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return Ds(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);
|
|
829
|
+
case 4:b.h=null,b.g=null,A(k)}})})}function It(){if(Mc())a:{var a=r(Us.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=Ht.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Hl(a,b));return Pl(this.h,a)};q.getConfiguration=function(){var a=Nl();Pl(a,this.h,Nl());return a};q.Hc=function(){return this.g};
|
|
830
|
+
q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Cs(this.g);this.j.push(f);b=Jt(this,a,b||{},function(){var g;return G(function(h){if(1==h.g)return u(h,$g(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h.return(g())})},e,f);b=new Ye(b,function(){return Ds(f)});b.finally(function(){ec(d.j,f)});return Kt(this,b)};
|
|
831
|
+
function Jt(a,b,c,d,e,f){var g,h,k,l,m,p,n,t,v,y,w,x,C,z;return G(function(B){switch(B.g){case 1:return Lt(),h=g=null,k=new Ts,p=m=l=null,D(B,2,3),u(B,d(),5);case 5:return g=B.h,u(B,Mt(a,b,g,e),6);case 6:n=B.h;Nt(a);t=!n.presentationTimeline.U()&&!n.presentationTimeline.Lb();if(!t)throw new M(2,9,9005,b);return u(B,Ot(a,n,function(E){p=p||E},e),7);case 7:h=B.h;Nt(a);if(p)throw p;return u(B,Pt(n,e),8);case 8:return u(B,k.init(),9);case 9:return Nt(a),u(B,Vs(k),10);case 10:return l=B.h,Nt(a),v=Qt(h,
|
|
832
|
+
n,b,c,e,f),y=v.ih,w=v.We,u(B,l.Ba.addManifests([y]),11);case 11:x=B.h;Nt(a);m=x[0];Nt(a);if(p)throw p;return u(B,Rt(a,w,m,y,f,e,l.Ba,n,h),12);case 12:return Nt(a),C=new lt("manifest",l.path.Ra,l.path.Ba,m),B.return(Ct(C,y));case 3:return wa(B),u(B,k.destroy(),13);case 13:if(!g){B.D(14);break}return u(B,g.stop(),14);case 14:if(!h){B.D(16);break}return u(B,h.destroy(),16);case 16:xa(B,0);break;case 2:z=va(B);if(null==m){B.D(18);break}return u(B,St(m),18);case 18:throw p||z;}})}
|
|
833
|
+
function Rt(a,b,c,d,e,f,g,h,k){var l,m,p,n,t,v,y,w,x,C;return G(function(z){switch(z.g){case 1:l={};m=0;p=function(B,E){var F,H,J,K,P,V,U;return G(function(ba){if(1==ba.g){F={};H=r(B);for(J=H.next();!J.done;F={Fb:F.Fb},J=H.next())F.Fb=J.value,K=zs(F.Fb,f),P=F.Fb.i,V=F.Fb.h,U=function(Q){return function(Ea){var Ka,Ba,Va;return G(function(Oa){if(1==Oa.g)return u(Oa,g.addSegments([{data:Ea}]),2);Ka=Oa.h;Nt(a);Ba=Q.Fb.g;Va=ys(Ba);l[Va]=Ka[0];m+=Ea.byteLength;A(Oa)})}}(F),Fs(e,F.Fb.groupId,K,P,V,U);return u(ba,
|
|
834
|
+
Hs(e),2)}if(!E)return ba.D(0);Nt(a);Tt(h,d,k,f);return u(ba,g.updateManifest(c,d),0)})};n=!1;D(z,2);if(!Ut(h)||!n||Vt(h)){z.D(4);break}return u(z,p(b.filter(function(B){return B.h}),!0),5);case 5:return Nt(a),b=b.filter(function(B){return!B.h}),t=l,v=m,l={},m=0,u(z,Wt(g,c,d,t,v,function(){return Nt(a)}),6);case 6:Nt(a);case 4:if(n){z.D(7);break}return u(z,p(b,!1),8);case 8:return Nt(a),y=l,w=m,l={},m=0,u(z,Wt(g,c,d,y,w,function(){return Nt(a)}),9);case 9:Nt(a);case 7:ua(z,0);break;case 2:return x=
|
|
835
|
+
va(z),C=Object.values(l),u(z,g.removeSegments(C,function(){}),10);case 10:throw x;}})}function St(a){var b,c,d,e;return G(function(f){switch(f.g){case 1:return b=new Ts,u(f,b.init(),2);case 2:return u(f,Vs(b),3);case 3:return c=f.h,d=new lt("manifest",c.path.Ra,c.path.Ba,a),u(f,b.destroy(),4);case 4:return e=new Ht,u(f,e.remove(d.toString()),0)}})}
|
|
836
|
+
function Wt(a,b,c,d,e,f){var g,h,k,l,m,p,n,t,v,y,w;return G(function(x){switch(x.g){case 1:g=!1;D(x,2);h=!0;k=r(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,p=r(m.segments),n=p.next();!n.done;n=p.next())t=n.value,v=t.pendingSegmentRefId?d[t.pendingSegmentRefId]:null,null!=v&&(t.dataKey=v,t.pendingSegmentRefId=void 0),v=t.pendingInitSegmentRefId?d[t.pendingInitSegmentRefId]:null,null!=v&&(t.initSegmentKey=v,t.pendingInitSegmentRefId=void 0),t.pendingSegmentRefId&&(h=!1),t.pendingInitSegmentRefId&&
|
|
837
|
+
(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(x,a.updateManifest(b,c),4);case 4:g=!0;f();ua(x,0);break;case 2:return y=va(x),u(x,St(b),5);case 5:if(g){x.D(6);break}w=Object.values(d);return u(x,a.removeSegments(w,function(){}),6);case 6:throw y;}})}
|
|
838
|
+
function Pt(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z,B,E,F,H,J,K,P,V,U,ba,Q;return G(function(Ea){switch(Ea.g){case 1:return c={width:Infinity,height:Infinity},Wd(a,b.restrictions,c),u(Ea,$d(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Kd(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));p=r(a.textStreams);for(n=p.next();!n.done;n=p.next())t=n.value,
|
|
839
|
+
d.push(ne(t));v=r(a.imageStreams);for(y=v.next();!y.done;y=v.next())w=y.value,d.push(oe(w));return u(Ea,b.offline.trackSelectionCallback(d),3);case 3:x=Ea.h;C=a.presentationTimeline.getDuration();z=0;B=r(x);for(E=B.next();!E.done;E=B.next())F=E.value,H=F.bandwidth*C/8,z+=H;D(Ea,4);return u(Ea,b.offline.downloadSizeCallback(z),6);case 6:J=Ea.h;if(!J)throw new M(2,9,9014);ua(Ea,5);break;case 4:K=va(Ea);if(K instanceof M)throw K;throw new M(2,9,9015);case 5:P=new Set;V=new Set;U=new Set;ba=r(x);for(E=
|
|
840
|
+
ba.next();!E.done;E=ba.next())Q=E.value,"variant"==Q.type&&P.add(Q.id),"text"==Q.type&&V.add(Q.id),"image"==Q.type&&U.add(Q.id);a.variants=a.variants.filter(function(Ka){return P.has(Ka.id)});a.textStreams=a.textStreams.filter(function(Ka){return V.has(Ka.id)});a.imageStreams=a.imageStreams.filter(function(Ka){return U.has(Ka.id)});Xt(a);A(Ea)}})}
|
|
841
|
+
function Qt(a,b,c,d,e,f){var g=At(c,b,d),h=e.offline.progressCallback;Es(f,function(t,v){g.size=v;h(g,t)},function(t,v){k&&e.offline.usePersistentLicense&&l==v&&Dg(a,"cenc",t)});var k=Ut(b)&&!Vt(b),l=null;k&&(l=Yt.get(a.g.keySystem));for(var m=new Dt,p=r(b.textStreams),n=p.next();!n.done;n=p.next())m.g[n.value.id]=52;p=r(b.imageStreams);for(n=p.next();!n.done;n=p.next())Ft(m,n.value);n=r(b.variants);for(p=n.next();!p.done;p=n.next())Et(m,p.value);m=Zt(f,m,b,e);f=m.streams;m=m.We;n=a.g;p=e.offline.usePersistentLicense;
|
|
842
|
+
n&&p&&(n.initData=[]);return{ih:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Gc(),streams:f,sessionIds:p?Mg(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},We:m}}function Ut(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
|
|
843
|
+
function Vt(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 Tt(a,b,c,d){b.expiration=c.Gc();c=Mg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Ut(a)&&d.offline.usePersistentLicense&&!c.length)throw new M(2,9,9007);}q.remove=function(a){return $t(this,au(this,a))};
|
|
844
|
+
function au(a,b){var c,d,e,f,g,h;return G(function(k){switch(k.g){case 1:Lt();c=mt(b);if(null==c||"manifest"!=c.g)throw new M(2,9,9004,b);d=c;e=new Ts;ta(k);return u(k,e.init(),4);case 4:return u(k,Xs(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([bu(a,h,e),cu(f,d,h)]),2);case 2:return wa(k),u(k,e.destroy(),8);case 8:xa(k,0)}})}
|
|
845
|
+
function du(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:wd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:wd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function bu(a,b,c){return G(function(d){return u(d,eu(a.g,a.h.drm,c,b),0)})}
|
|
846
|
+
function cu(a,b,c){function d(){}var e=fu(c);Ct(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.yh=function(){return $t(this,gu(this))};
|
|
847
|
+
function gu(a){var b,c,d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:return Lt(),b=a.g,c=a.h.drm,d=new Ts,e=!1,ta(p),u(p,d.init(),4);case 4:f=[],Ys(d,function(n){return f.push(n)}),g=r(f),h=g.next();case 5:if(h.done){p.D(2);break}k=h.value;return u(p,k.getAll(),8);case 8:return l=p.h,u(p,xt(c,b,l),9);case 9:return m=p.h,u(p,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();p.D(5);break;case 2:return wa(p),u(p,d.destroy(),11);case 11:xa(p,3);break;case 3:return p.return(!e)}})}
|
|
848
|
+
q.list=function(){return $t(this,hu())};function hu(){var a,b,c;return G(function(d){switch(d.g){case 1:return Lt(),a=[],b=new Ts,ta(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),Ws(b,function(e,f){c=c.then(function(){var g;return G(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Ct(new lt("manifest",e.Ra,e.Ba,l),k);a.push(k)});A(h)})})}),u(d,c,2);case 2:return wa(d),u(d,b.destroy(),6);case 6:xa(d,3);break;case 3:return d.return(a)}})}
|
|
849
|
+
function Mt(a,b,c,d){var e,f,g,h,k;return G(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(){},updateDuration:function(){},newDrmInfo:function(){}},
|
|
850
|
+
c.configure(d.manifest),Nt(a),u(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Nt(a),k=iu(h),u(l,Promise.all(eb(k,function(m){return m.createSegmentIndex()})),3);Nt(a);if(e)throw e;return l.return(h)})}
|
|
851
|
+
function Ot(a,b,c,d){var e;return G(function(f){switch(f.g){case 1:return e=new ng({Ob:a.g,onError:c,Fd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,sg(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,Gg(e),3);case 3:return u(f,Fg(e),4);case 4:return f.return(e)}})}
|
|
852
|
+
function Zt(a,b,c,d){var e=new Map,f=iu(c),g=new Map;f=r(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=ju(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()),We:Array.from(e.values())}}
|
|
853
|
+
function ju(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,
|
|
854
|
+
tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;ku(d,c.presentationTimeline.kb(),function(l){var m=ys(l),p=void 0;if(!f.has(m)){var n=l.endTime-l.startTime;n=Gt(b,d.id)*n;n=Bs(a.g,n);f.set(m,new xs(l,n,k,!1))}l.h&&(p=ys(l.h),f.has(p)||(n=.5*Gt(b,d.id),n=Bs(a.g,n),f.set(p,new xs(l.h,n,k,!0))));g.segments.push({pendingInitSegmentRefId:p,initSegmentKey:p?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,
|
|
855
|
+
tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function ku(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 Nt(a){if(a.l.g)throw new M(2,9,7001);}function Lt(){if(!It())throw new M(2,9,9E3);}function $t(a,b){return G(function(c){if(1==c.g)return a.i.push(b),ta(c),u(c,b,4);if(2!=c.g)return c.return(c.h);wa(c);ec(a.i,b);return xa(c,0)})}
|
|
856
|
+
function Kt(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){ec(a.i,c)})}function fu(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)}
|
|
857
|
+
function eu(a,b,c,d){var e,f,g;return G(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=Zs(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:du(d,!1),videoCapabilities:du(d,!0)}});return u(h,xt(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)})}
|
|
858
|
+
function iu(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}
|
|
859
|
+
function Xt(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());}I("shaka.offline.Storage",Ht);Ht.deleteAll=function(){var a;return G(function(b){return 1==b.g?(a=new Ts,ta(b),u(b,$s(a),2)):5!=b.g?(wa(b),u(b,a.destroy(),5)):xa(b,0)})};Ht.prototype.list=Ht.prototype.list;
|
|
860
|
+
Ht.prototype.removeEmeSessions=Ht.prototype.yh;Ht.prototype.remove=Ht.prototype.remove;Ht.prototype.store=Ht.prototype.store;Ht.prototype.getNetworkingEngine=Ht.prototype.Hc;Ht.prototype.getConfiguration=Ht.prototype.getConfiguration;Ht.prototype.configure=Ht.prototype.configure;Ht.prototype.destroy=Ht.prototype.destroy;Ht.support=It;
|
|
861
|
+
var Yt=(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");
|
|
862
|
+
Bn.offline=It;function lu(){}function mu(){for(var a=r(nu),b=a.next();!b.done;b=a.next()){b=b.value;try{b.og()}catch(c){Ua("Error installing polyfill!",c)}}}function ou(a,b){a={priority:b||0,og:a};for(b=0;b<nu.length;b++)if(nu[b].priority<a.priority){nu.splice(b,0,a);return}nu.push(a)}I("shaka.polyfill",lu);lu.register=ou;lu.installAll=mu;var nu=[];function pu(){this.g=new qu}function ru(){window.AbortController||(window.AbortController=pu,window.AbortSignal=qu)}pu.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new L("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};ea.Object.defineProperties(pu.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});lu.AbortController=pu;pu.install=ru;
|
|
863
|
+
function qu(){db.call(this);this.h=!1;this.g=void 0;this.onabort=null}pa(qu,db);ea.Object.defineProperties(qu.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});ou(ru);function su(){}function tu(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())uu(b.value)}function uu(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)}})}lu.Aria=su;su.install=tu;ou(tu);function vu(){}function wu(){xu()}lu.EncryptionScheme=vu;vu.install=wu;ou(wu,-2);function yu(){}
|
|
864
|
+
function zu(){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}}),
|
|
865
|
+
Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Au);document.addEventListener("webkitfullscreenerror",Au);document.addEventListener("mozfullscreenchange",Au);document.addEventListener("mozfullscreenerror",Au);document.addEventListener("MSFullscreenChange",Au);document.addEventListener("MSFullscreenError",Au)}}
|
|
866
|
+
function Au(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)}lu.Fullscreen=yu;yu.install=zu;ou(zu);function Bu(){}function Cu(){var a=!0;if(Uc()||Rc("PlayStation 5")||Vc()||Rc("Web0S")||Sc()||Rc("CrKey")||Rc("PC=EOS")||Rc("Hisense")||Rc("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Du=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Eu)}
|
|
867
|
+
function Eu(a){var b,c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C;return G(function(z){switch(z.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return z.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Mc())return z.return(b);if(c){if(Rc("CrKey"))if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var B=c.contentType;c.width&&c.height&&(B+="; width="+c.width+"; height="+c.height);c.framerate&&(B+="; framerate="+c.framerate);"pq"===
|
|
868
|
+
c.transferFunction&&(B+="; eotf=smpte2084");e=cast.__platform__.canDisplayType(B)}else e=bc(c.contentType);else Sc()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.framerate&&(f+="; framerate="+c.framerate),c.bitrate&&(f+="; bitrate="+c.bitrate),e=bc(f)):e=bc(c.contentType);if(!e)return z.return(b)}if(d&&(g=d.contentType,h=bc(g),!h))return z.return(b)}else if("file"==a.type){if(c&&(k=c.contentType,l=Nc(k),!l)||d&&(m=d.contentType,p=Nc(m),!p))return z.return(b)}else return z.return(b);
|
|
869
|
+
if(!a.keySystemConfiguration)return b.supported=!0,z.return(Promise.resolve(b));n=a.keySystemConfiguration;t=[];v=[];n.audio&&(y={robustness:n.audio.robustness||"",contentType:a.audio.contentType},t.push(y));n.video&&(w={robustness:n.video.robustness||"",contentType:a.video.contentType},v.push(w));x={initDataTypes:[n.initDataType],distinctiveIdentifier:n.distinctiveIdentifier,persistentState:n.persistentState,sessionTypes:n.sessionTypes};t.length&&(x.audioCapabilities=t);v.length&&(x.videoCapabilities=
|
|
870
|
+
v);D(z,3);return u(z,navigator.requestMediaKeySystemAccess(n.keySystem,[x]),5);case 5:C=z.h;ua(z,4);break;case 3:va(z);case 4:C&&(b.supported=!0,b.keySystemAccess=C);case 2:return z.return(b)}})}lu.MediaCapabilities=Bu;Bu.install=Cu;var Du=null;Bu.originalMcap=Du;ou(Cu,-1);function Fu(){}function Gu(){var a=Wc();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Hu():a?12>=a?(Iu(),Ju()):15>=a&&Iu():Pc()?Ku():(Rc("Tizen 2")||Rc("Tizen 3")||Rc("Tizen 4"))&&Lu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Mu()}
|
|
871
|
+
function Iu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ga.apply(0,arguments));b.abort=function(){};return b}}function Ju(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Ku(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}
|
|
872
|
+
function Lu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=zd(b)[0]&&a(b)}}function Hu(){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)}}
|
|
873
|
+
function Mu(){var a=MediaSource.isTypeSupported;Rc("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)})}lu.MediaSource=Fu;Fu.install=Gu;ou(Gu);function Nu(){}function Ou(){screen.orientation||void 0!=window.orientation&&Pu()}function Pu(){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 Qu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new L("change");b.dispatchEvent(c)})}lu.Orientation=Nu;
|
|
874
|
+
Nu.install=Ou;function Qu(){db.call(this);this.type="";this.angle=0}pa(Qu,db);
|
|
870
875
|
Qu.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)};
|
|
871
|
-
Qu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};
|
|
872
|
-
function bv(a){a=
|
|
876
|
+
Qu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};ou(Ou);function Ru(){}var Su,Tu,Uu,Vu,Wu,Xu;function Yu(a,b){try{var c=new Zu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function $u(a){var b=this.mediaKeys;b&&b!=a&&av(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?av(a,this):Promise.resolve()}
|
|
877
|
+
function bv(a){a=Fc(a.initData);if(Ic(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=ad(a.subarray(4),!0);a=dd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Gc(a);this.dispatchEvent(b)}lu.PatchedMediaKeysApple=Ru;
|
|
873
878
|
Ru.uninstall=function(){Su&&(Su=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Tu),HTMLMediaElement.prototype.setMediaKeys=Uu,window.MediaKeys=Vu,window.MediaKeySystemAccess=Wu,navigator.requestMediaKeySystemAccess=Xu,Tu=Xu=Uu=Wu=Vu=null,window.shakaMediaKeysPolyfill=!1)};
|
|
874
879
|
Ru.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Su=!0,Tu=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Uu=HTMLMediaElement.prototype.setMediaKeys,Vu=window.MediaKeys,Wu=window.MediaKeySystemAccess,Xu=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=$u;window.MediaKeys=cv;window.MediaKeySystemAccess=Zu;navigator.requestMediaKeySystemAccess=
|
|
875
880
|
Yu;window.shakaMediaKeysPolyfill=!0}};
|
|
876
881
|
function Zu(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=r(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=r(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
|
|
877
882
|
g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=r(c.videoCapabilities),g=c.next();!g.done;g=c.next())f=g.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
|
|
878
|
-
Zu.prototype.createMediaKeys=function(){var a=new cv(this.keySystem);return Promise.resolve(a)};Zu.prototype.getConfiguration=function(){return this.g};function cv(a){this.h=new WebKitMediaKeys(a);this.g=new
|
|
879
|
-
function av(a,b){a.g.Rb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",bv);try{return
|
|
880
|
-
q.generateRequest=function(a,b){var c=this;this.h=new
|
|
883
|
+
Zu.prototype.createMediaKeys=function(){var a=new cv(this.keySystem);return Promise.resolve(a)};Zu.prototype.getConfiguration=function(){return this.g};function cv(a){this.h=new WebKitMediaKeys(a);this.g=new wf}cv.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new dv(this.h,a)};cv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
|
|
884
|
+
function av(a,b){a.g.Rb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",bv);try{return Bj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function dv(a){db.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new wf;this.sessionId="";this.expiration=NaN;this.closed=new Jc;this.keyStatuses=new ev}pa(dv,db);q=dv.prototype;
|
|
885
|
+
q.generateRequest=function(a,b){var c=this;this.h=new Jc;try{var d=this.l.createSession("video/mp4",Fc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ec()?"license-request":"license-renewal").set("message",Gc(e.message));e=new L("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(fv(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
|
|
881
886
|
function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:fv(c,"output-not-allowed");break;default:fv(c,"internal-error")}});fv(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
|
|
882
|
-
q.update=function(a){this.g=new
|
|
883
|
-
function ev(){this.size=0;this.g=void 0}q=ev.prototype;q.ec=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,
|
|
884
|
-
function jv(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}
|
|
887
|
+
q.update=function(a){this.g=new Jc;try{this.i.update(Fc(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Rb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function fv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new L("keystatuseschange");a.dispatchEvent(b)}
|
|
888
|
+
function ev(){this.size=0;this.g=void 0}q=ev.prototype;q.ec=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,Yg.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=Yg.value();return this.g&&Dc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function gv(){}function hv(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=iv,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=jv,window.MediaKeys=kv,window.MediaKeySystemAccess=lv,window.shakaMediaKeysPolyfill=!0)}function iv(){return Promise.reject(Error("The key system specified is not supported."))}
|
|
889
|
+
function jv(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}lu.PatchedMediaKeysNop=gv;gv.install=hv;function kv(){throw new TypeError("Illegal constructor.");}kv.prototype.createSession=function(){};kv.prototype.setServerCertificate=function(){};function lv(){this.keySystem="";throw new TypeError("Illegal constructor.");}lv.prototype.getConfiguration=function(){};lv.prototype.createMediaKeys=function(){};ou(hv,-10);function mv(){}
|
|
885
890
|
function nv(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)ov="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=pv;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=qv;window.MediaKeys=rv;window.MediaKeySystemAccess=sv;window.shakaMediaKeysPolyfill=!0}}
|
|
886
|
-
function tv(a){var b=ov;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function pv(a,b){try{var c=new sv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function qv(a){var b=this.mediaKeys;b&&b!=a&&uv(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&uv(a,this);return Promise.resolve()}
|
|
891
|
+
function tv(a){var b=ov;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function pv(a,b){try{var c=new sv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function qv(a){var b=this.mediaKeys;b&&b!=a&&uv(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&uv(a,this);return Promise.resolve()}lu.PatchedMediaKeysWebkit=mv;mv.install=nv;
|
|
887
892
|
function sv(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=r(f.audioCapabilities),
|
|
888
893
|
l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=r(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
|
|
889
|
-
d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}sv.prototype.createMediaKeys=function(){var a=new rv(this.g);return Promise.resolve(a)};sv.prototype.getConfiguration=function(){return this.h};function rv(a){this.l=a;this.h=null;this.g=new
|
|
890
|
-
function uv(a,b){a.h=b;a.g.Rb();var c=ov;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=
|
|
894
|
+
d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}sv.prototype.createMediaKeys=function(){var a=new rv(this.g);return Promise.resolve(a)};sv.prototype.getConfiguration=function(){return this.h};function rv(a){this.l=a;this.h=null;this.g=new wf;this.i=[];this.j=new Map}
|
|
895
|
+
function uv(a,b){a.h=b;a.g.Rb();var c=ov;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=vv(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ec()?"licenserequest":"licenserenewal").set("message",d.message),d=new L("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=vv(a,d.sessionId))wv(d,"usable"),
|
|
891
896
|
d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=vv(a,d.sessionId);e&&e.handleError(d)}))}rv.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 xv(b,this.l,a);this.i.push(a);return a};rv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
|
|
892
|
-
function vv(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 xv(a,b,c){
|
|
897
|
+
function vv(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 xv(a,b,c){db.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 Jc;this.keyStatuses=new yv}pa(xv,db);q=xv.prototype;
|
|
893
898
|
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?wv(this,"output-restricted"):1==b?wv(this,"expired"):wv(this,"internal-error"))};
|
|
894
|
-
function zv(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=
|
|
895
|
-
function Av(a,b,c){if(a.g)a.g.then(function(){return Av(a,b,c)}).catch(function(){return Av(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d
|
|
896
|
-
function wv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new L("keystatuseschange");a.dispatchEvent(b)}q.generateRequest=function(a,b){return zv(this,b,null)};q.load=function(a){return"persistent-license"==this.l?zv(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new
|
|
899
|
+
function zv(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(dd("LOAD_SESSION|"+c));else{var e=dd("PERSISTENT|");d=ld(e,b)}else d=Fc(b)}catch(g){return Promise.reject(g)}a.h=new Jc;var f=tv("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new N(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).R(.01)}return a.h}
|
|
900
|
+
function Av(a,b,c){if(a.g)a.g.then(function(){return Av(a,b,c)}).catch(function(){return Av(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=$c(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=id(e.keys[0].k);e=id(e.keys[0].kid)}else d=Fc(c),e=null;var f=tv("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
|
|
901
|
+
function wv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new L("keystatuseschange");a.dispatchEvent(b)}q.generateRequest=function(a,b){return zv(this,b,null)};q.load=function(a){return"persistent-license"==this.l?zv(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Jc;Av(this,b,a);return b};
|
|
897
902
|
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=tv("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 yv(){this.size=0;this.g=void 0}q=yv.prototype;q.ec=function(){return this.g};
|
|
898
|
-
q.forEach=function(a){this.g&&a(this.g,
|
|
903
|
+
q.forEach=function(a){this.g&&a(this.g,Yg.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=Yg.value();return this.g&&Dc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var ov="";ou(nv);function Bv(){}function Cv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Dv,Object.defineProperty(a,"disablePictureInPicture",{get:Ev,set:Fv,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Gv,document.addEventListener("webkitpresentationmodechanged",Hv,!0))}}
|
|
899
904
|
function Hv(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)}
|
|
900
905
|
function Dv(){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 Gv(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
|
|
901
|
-
function Ev(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Fv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}
|
|
902
|
-
$v.prototype.setSequenceMode=$v.prototype.setSequenceMode;$v.prototype.parseInit=$v.prototype.parseInit;var aw=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,bw=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;
|
|
903
|
-
cw.prototype.parseMedia=function(a,b){var c
|
|
904
|
-
g,h);k=k?(k=/^(\d+) (\d+)$/.exec(k))?{columns:parseInt(k[1],10),rows:parseInt(k[2],10)}:null:null;f=(f=d.getElementsByTagName("metadata")[0])?
|
|
905
|
-
null!=w&&(
|
|
906
|
-
2,2001,"<p> can only be inside <div> in TTML");m=r(
|
|
907
|
-
function jw(a,b,c,d,e,f,g,h,k,l,m){var
|
|
908
|
-
a=[];if(!y)for(var w=r(
|
|
909
|
-
x=Math.min(x,b.segmentEnd);if(!
|
|
910
|
-
z})[0]}g=k;l&&d&&!
|
|
911
|
-
function ow(a,b,c,d,e,f,g){f=f||g;"rtl"==pw(b,c,e,"direction",f)&&(a.direction="rtl");g=pw(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=
|
|
906
|
+
function Ev(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Fv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}lu.PiPWebkit=Bv;Bv.install=Cv;ou(Cv);function Iv(){}function Jv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Kv))}function Kv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}lu.RandomUUID=Iv;Iv.install=Jv;ou(Jv);function Lv(){}function Mv(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Nv)}function Nv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}lu.StorageEstimate=Lv;Lv.install=Mv;ou(Mv);function Ov(){}function Pv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Qv})}function Qv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}lu.Symbol=Ov;Ov.install=Pv;ou(Pv);function Rv(){}function Sv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}lu.VideoPlayPromise=Rv;Rv.install=Sv;ou(Sv);function Tv(){}function Uv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Tc())&&(a.getVideoPlaybackQuality=Vv)}}function Vv(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}lu.VideoPlaybackQuality=Tv;Tv.install=Uv;ou(Uv);function Wv(){}function Xv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Yv;else if(6==b)a=Zv;else{try{var c=!!Yv(1,2,"")}catch(d){c=!1}c&&(a=Yv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Yv(a,b,c){return new window.TextTrackCue(a,b,c)}function Zv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}lu.VTTCue=Wv;Wv.install=Xv;ou(Xv);function $v(){}$v.prototype.parseInit=function(){};$v.prototype.setSequenceMode=function(){};$v.prototype.parseMedia=function(a,b){var c=null,d=[];a=$c(a).split(/\r?\n/);a=r(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=aw.exec(e))){var f=bw.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new hc(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};I("shaka.text.LrcTextParser",$v);$v.prototype.parseMedia=$v.prototype.parseMedia;
|
|
907
|
+
$v.prototype.setSequenceMode=$v.prototype.setSequenceMode;$v.prototype.parseInit=$v.prototype.parseInit;var aw=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,bw=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Dd["application/x-subtitle-lrc"]=function(){return new $v};function cw(){}cw.prototype.parseInit=function(){};cw.prototype.setSequenceMode=function(){};
|
|
908
|
+
cw.prototype.parseMedia=function(a,b){var c=$c(a);a=[];if(""==c)return a;var d=kg(c,"tt");if(!d)throw new M(2,2,2005,"Failed to parse TTML.");c=d.getElementsByTagName("body")[0];if(!c)return[];var e=Zf(d,dw,"frameRate"),f=Zf(d,dw,"subFrameRate"),g=Zf(d,dw,"frameRateMultiplier"),h=Zf(d,dw,"tickRate"),k=Zf(d,dw,"cellResolution"),l=d.getAttribute("xml:space")||"default",m=Zf(d,ew,"extent");if("default"!=l&&"preserve"!=l)throw new M(2,2,2005,"Invalid xml:space value: "+l);l="default"==l;e=new fw(e,f,
|
|
909
|
+
g,h);k=k?(k=/^(\d+) (\d+)$/.exec(k))?{columns:parseInt(k[1],10),rows:parseInt(k[2],10)}:null:null;f=(f=d.getElementsByTagName("metadata")[0])?Xf(f):[];g=Array.from(d.getElementsByTagName("style"));d=Array.from(d.getElementsByTagName("region"));h=[];for(var p=r(d),n=p.next();!n.done;n=p.next()){var t=n.value;n=new jc;var v=t.getAttribute("xml:id");if(v){n.id=v;var y=null;m&&(y=gw.exec(m)||hw.exec(m));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var w,x;if(w=iw(t,g,"extent"))w=(x=gw.exec(w))||hw.exec(w),
|
|
910
|
+
null!=w&&(n.width=Number(w[1]),n.height=Number(w[2]),x||(null!=v&&(n.width=100*n.width/v),null!=y&&(n.height=100*n.height/y)),n.widthUnits=x||null!=v?Ac:0,n.heightUnits=x||null!=y?Ac:0);if(t=iw(t,g,"origin"))w=(x=gw.exec(t))||hw.exec(t),null!=w&&(n.viewportAnchorX=Number(w[1]),n.viewportAnchorY=Number(w[2]),x||(null!=y&&(n.viewportAnchorY=100*n.viewportAnchorY/y),null!=v&&(n.viewportAnchorX=100*n.viewportAnchorX/v)),n.viewportAnchorUnits=x||null!=v?Ac:0)}else n=null;n&&h.push(n)}if(Uf(c,"p").length)throw new M(2,
|
|
911
|
+
2,2001,"<p> can only be inside <div> in TTML");m=r(Uf(c,"div"));for(p=m.next();!p.done;p=m.next())if(Uf(p.value,"span").length)throw new M(2,2,2001,"<span> can only be inside <p> in TTML");if(b=jw(c,b,e,f,g,d,h,l,k,null,!1))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
|
|
912
|
+
function jw(a,b,c,d,e,f,g,h,k,l,m){var p=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var n=document.createElement("span");n.textContent=a.textContent}else n=a;for(var t=null,v=r(kw),y=v.next();!y.done&&!(t=lw(n,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=m;if("p"==a.nodeName||t)m=!0;h="default"==(n.getAttribute("xml:space")||(h?"default":"preserve"));y=Array.from(n.childNodes).every(function(B){return B.nodeType==Node.TEXT_NODE});
|
|
913
|
+
a=[];if(!y)for(var w=r(n.childNodes),x=w.next();!x.done;x=w.next())(x=jw(x.value,b,c,d,e,f,g,h,k,n,m))&&a.push(x);d=null!=l;w=/\S/.test(n.textContent);var C=n.hasAttribute("begin")||n.hasAttribute("end")||n.hasAttribute("dur");if(!(C||w||"br"==n.tagName||0!=a.length||d&&!h))return null;x=mw(n,c);w=x.start;for(x=x.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)x=nw(p,c,w,x),w=x.start,x=x.end,p=p.parentNode;null==w&&(w=0);w+=b.periodStart;x=null==x?Infinity:x+b.periodStart;w=Math.max(w,b.segmentStart);
|
|
914
|
+
x=Math.min(x,b.segmentEnd);if(!C&&0<a.length)for(w=Infinity,x=0,b=r(a),c=b.next();!c.done;c=b.next())c=c.value,w=Math.min(w,c.startTime),x=Math.max(x,c.endTime);if("br"==n.tagName)return e=new hc(w,x,""),e.lineBreak=!0,e;b="";y&&(b=n.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new hc(w,x,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=lw(n,"region",f,"")[0];if(n.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(B){return B.id==
|
|
915
|
+
z})[0]}g=k;l&&d&&!n.getAttribute("region")&&!n.getAttribute("style")&&(g=lw(l,"region",f,"")[0]);ow(b,n,g,t,e,v,0==a.length);return b}
|
|
916
|
+
function ow(a,b,c,d,e,f,g){f=f||g;"rtl"==pw(b,c,e,"direction",f)&&(a.direction="rtl");g=pw(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=ic);(g=pw(b,c,e,"textAlign",!0))?(a.positionAlign=qw[g],a.lineAlign=rw[g],a.textAlign=uc[g.toUpperCase()]):a.textAlign=mc;if(g=pw(b,c,e,"displayAlign",!0))a.displayAlign=vc[g.toUpperCase()];if(g=pw(b,c,e,"color",f))a.color=g;if(g=pw(b,c,e,"backgroundColor",
|
|
912
917
|
f))a.backgroundColor=g;if(g=pw(b,c,e,"border",f))a.border=g;if(g=pw(b,c,e,"fontFamily",f))switch(g){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=g}(g=pw(b,c,e,"fontWeight",f))&&
|
|
913
|
-
"bold"==g&&(a.fontWeight=700);g=pw(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=pw(b,c,e,"lineHeight",f))&&g.match(sw)&&(a.lineHeight=g);(g=pw(b,c,e,"fontSize",f))&&(g.match(sw)||g.match(tw))&&(a.fontSize=g);if(g=pw(b,c,e,"fontStyle",f))a.fontStyle=
|
|
918
|
+
"bold"==g&&(a.fontWeight=700);g=pw(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=pw(b,c,e,"lineHeight",f))&&g.match(sw)&&(a.lineHeight=g);(g=pw(b,c,e,"fontSize",f))&&(g.match(sw)||g.match(tw))&&(a.fontSize=g);if(g=pw(b,c,e,"fontStyle",f))a.fontStyle=zc[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=pw(b,c,e,"textOutline",
|
|
914
919
|
f))d=d.split(" "),d[0].match(sw)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(sw)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=pw(b,c,e,"letterSpacing",f))&&d.match(sw)&&(a.letterSpacing=d);(d=pw(b,c,e,"linePadding",f))&&d.match(sw)&&(a.linePadding=d);if(f=pw(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=iw(c,e,"textDecoration"))&&uw(a,c);(b=vw(b,e,"textDecoration"))&&uw(a,b)}
|
|
915
|
-
function uw(a,b){b=r(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&
|
|
916
|
-
a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&
|
|
917
|
-
function ww(a,b,c){a=lw(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=
|
|
918
|
-
function lw(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?
|
|
920
|
+
function uw(a,b){b=r(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&ec(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&ec(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
|
|
921
|
+
a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&ec(a.textDecoration,"overline")}}function pw(a,b,c,d,e){e=void 0===e?!0:e;return(a=vw(a,c,d))?a:e?iw(b,c,d):null}function iw(a,b,c){if(!a)return null;var d=Zf(a,ew,c);return d?d:ww(a,b,c)}function vw(a,b,c){var d=Zf(a,ew,c);return d?d:ww(a,b,c)}
|
|
922
|
+
function ww(a,b,c){a=lw(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=Yf(a[e],"urn:ebu:tt:style",c);f||(f=Zf(a[e],ew,c));f||(f=vw(a[e],b,c));f&&(d=f)}return d}
|
|
923
|
+
function lw(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?Yf(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 nw(a,b,c,d){a=mw(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}}
|
|
919
924
|
function mw(a,b){var c=xw(a.getAttribute("begin"),b),d=xw(a.getAttribute("end"),b);a=xw(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
|
|
920
925
|
function xw(a,b){var c=null;if(yw.test(a)){a=yw.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(zw.test(a))c=Aw(zw,a);else if(Bw.test(a))c=Aw(Bw,a);else if(Cw.test(a))a=Cw.exec(a),c=Number(a[1])/b.frameRate;else if(Dw.test(a))a=Dw.exec(a),c=Number(a[1])/b.g;else if(Ew.test(a))c=Aw(Ew,a);else if(a)throw new M(2,2,2001,"Could not parse cue time range in TTML");return c}
|
|
921
926
|
function Aw(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}I("shaka.text.TtmlTextParser",cw);cw.prototype.parseMedia=cw.prototype.parseMedia;cw.prototype.setSequenceMode=cw.prototype.setSequenceMode;cw.prototype.parseInit=cw.prototype.parseInit;
|
|
922
927
|
function fw(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]))}
|
|
923
|
-
var gw=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,tw=/^(\d{1,2}(?:\.\d+)?|100)%$/,sw=/^(\d+px|\d+em|\d*\.?\d+c)$/,hw=/^(\d+)px (\d+)px$/,yw=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,zw=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Bw=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Cw=/^(\d*(?:\.\d*)?)f$/,Dw=/^(\d*(?:\.\d*)?)t$/,Ew=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),rw={left:
|
|
924
|
-
end:"end"},qw={left:"line-left",center:"center",right:"line-right"},dw=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],ew=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],kw=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];
|
|
925
|
-
I("shaka.text.Mp4TtmlParser",Fw);Fw.prototype.parseMedia=Fw.prototype.parseMedia;Fw.prototype.setSequenceMode=Fw.prototype.setSequenceMode;Fw.prototype.parseInit=Fw.prototype.parseInit;
|
|
926
|
-
Gw.prototype.parseMedia=function(a,b){a
|
|
927
|
-
e/9E4-a}}b=[];e=r(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new
|
|
928
|
-
(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up")
|
|
929
|
-
(g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=e.get(g))||(l=new
|
|
930
|
-
t)m=!0,l.fontWeight=700;break;case "font-style":switch(t){case "normal":m=!0;l.fontStyle=
|
|
931
|
-
g=new
|
|
932
|
-
function Iw(a){for(var b=r(Object.entries(
|
|
933
|
-
function
|
|
934
|
-
a.substr(f,e-f),f.match(
|
|
935
|
-
">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),d+=e[h];e=r(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),d=d.replace("<"+f+">","<"+g+">"),d=d.replace("</"+f+">","</"+g+">"),a||(d+="</"+g+">");a=d}if(e=
|
|
928
|
+
var gw=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,tw=/^(\d{1,2}(?:\.\d+)?|100)%$/,sw=/^(\d+px|\d+em|\d*\.?\d+c)$/,hw=/^(\d+)px (\d+)px$/,yw=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,zw=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Bw=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Cw=/^(\d*(?:\.\d*)?)f$/,Dw=/^(\d*(?:\.\d*)?)t$/,Ew=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),rw={left:pc,center:"center",right:"end",start:pc,
|
|
929
|
+
end:"end"},qw={left:"line-left",center:"center",right:"line-right"},dw=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],ew=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],kw=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Dd["application/ttml+xml"]=function(){return new cw};function Fw(){this.g=new cw}Fw.prototype.parseInit=function(a){var b=!1;(new Hf).box("moov",Mf).box("trak",Mf).box("mdia",Mf).box("minf",Mf).box("stbl",Mf).T("stsd",Of).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new M(2,2,2007);};Fw.prototype.setSequenceMode=function(){};Fw.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new Hf).box("mdat",Qf(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new M(2,2,2007);return e};
|
|
930
|
+
I("shaka.text.Mp4TtmlParser",Fw);Fw.prototype.parseMedia=Fw.prototype.parseMedia;Fw.prototype.setSequenceMode=Fw.prototype.setSequenceMode;Fw.prototype.parseInit=Fw.prototype.parseInit;Dd['application/mp4; codecs="stpp"']=function(){return new Fw};Dd['application/mp4; codecs="stpp.ttml"']=function(){return new Fw};Dd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Fw};Dd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Fw};function Gw(){this.g=!1}Gw.prototype.parseInit=function(){};Gw.prototype.setSequenceMode=function(a){this.g=a};
|
|
931
|
+
Gw.prototype.parseMedia=function(a,b){a=$c(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new M(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.g){var d=c[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),e=c[0].match(/MPEGTS:(\d+)/m);if(d&&e){a=Hw(new Yq(d[1]));if(null==a)throw new M(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
|
|
932
|
+
e/9E4-a}}b=[];e=r(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new Yq(d);var f=new jc;ar(d);Zq(d);for(var g=ar(d);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?
|
|
933
|
+
(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Zq(d);g=ar(d)}b.push(f)}e=new Map;Iw(e);d=[];c=r(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=r(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&
|
|
934
|
+
(g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=e.get(g))||(l=new hc(0,0,""));for(var m=!1,p=0;p<k.length;p++){var n=/^\s*([^:]+):\s*(.*)/.exec(k[p]);if(n){var t=n[2].trim().replace(";","");switch(n[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=t;break;case "color":m=!0;l.color=t;break;case "font-family":m=!0;l.fontFamily=t;break;case "font-size":m=!0;l.fontSize=t;break;case "font-weight":if(700<=parseInt(t,10)||"bold"==
|
|
935
|
+
t)m=!0,l.fontWeight=700;break;case "font-style":switch(t){case "normal":m=!0;l.fontStyle=sc;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(t);break;case "text-shadow":m=!0;l.textShadow=t;break;case "white-space":m=!0,l.wrapLine="noWrap"!=t}}}m&&e.set(g,l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else{h=null;f[0].includes("--\x3e")||(h=f[0],f.splice(0,1));
|
|
936
|
+
g=new Yq(f[0]);k=Hw(g);p=$q(g,/[ \t]+--\x3e[ \t]+/g);l=Hw(g);if(null==k||null==p||null==l)throw new M(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;m=f.slice(1).join("\n").trim();e.has("global")?(f=e.get("global").clone(),f.startTime=k,f.endTime=l,f.payload=""):f=new hc(k,l,"");Jw(m,f,e);Zq(g);for(k=ar(g);k;)Kw(f,k,b),Zq(g),k=ar(g);null!=h&&(f.id=h)}f&&d.push(f)}return d};
|
|
937
|
+
function Iw(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 hc(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 hc(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
|
|
938
|
+
function Jw(a,b,c){0===c.size&&Iw(c);a:{var d=a;a=[];for(var e=-1,f="",g=0;g<d.length;g++)if("/"===d[g]&&0<g&&"<"===d[g-1]){var h=d.indexOf(">",g);if(h<=g){a=d;break a}if((h=d.substring(g+1,h))&&"c"===h){var k=a.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=d[g]:f+=d[g]}else f+=d[g]}else"<"===d[g]?(e=g+1,"c"!=d[e]&&(e=-1)):">"===d[g]&&0<e&&(a.push(d.substr(e,g-e)),e=-1),f+=d[g];a=f}d=[];f=-1;for(e=0;e<a.length;e++)"<"===a[e]?f=e+1:">"===a[e]&&0<f&&(f=
|
|
939
|
+
a.substr(f,e-f),f.match(Lw)&&d.push(f),f=-1);d=r(d);for(e=d.next();!e.done;e=d.next())e=e.value,a=a.replace("<"+e+">",'<div time="'+e+'">'),a+="</div>";a:{e=a;f=[];g=-1;d="";a=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){a=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)d+="/"+k+">";else{if(!l.startsWith("v")){d+=e[h];continue}d+="/"+l+">"}h+=k.length+1}else d+=e[h]}else d+=e[h]}else"<"===e[h]?(g=h+1,"v"!=e[g]&&(g=-1)):
|
|
940
|
+
">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),d+=e[h];e=r(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),d=d.replace("<"+f+">","<"+g+">"),d=d.replace("</"+f+">","</"+g+">"),a||(d+="</"+g+">");a=d}if(e=kg("<span>"+a+"</span>","span")){d=[];e=e.childNodes;if(1==e.length&&(f=e[0],f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE)){b.payload=Mw(a);return}a=r(e);for(e=a.next();!e.done;e=a.next())Nw(e.value,b,d,c);b.nestedCues=d}else b.payload=Mw(a)}
|
|
936
941
|
function Ow(a,b){return a&&0<a.length?a:b}
|
|
937
942
|
function Nw(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(a.nodeName.split(/(?=[ .])+/g)),g=f.next();!g.done;g=f.next()){var h=g=g.value;if(h.startsWith(".voice-")){var k=h.split("-").pop();h='v[voice="'+k+'"]';d.has(h)||(h="v[voice="+k+"]")}d.has(h)&&(h=d.get(h))&&(e.backgroundColor=Ow(h.backgroundColor,e.backgroundColor),e.color=Ow(h.color,e.color),e.fontFamily=Ow(h.fontFamily,e.fontFamily),e.fontSize=Ow(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=
|
|
938
|
-
h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine);switch(g){case "br":g=b.clone();g.lineBreak=!0;c.push(g);break;case "b":e.fontWeight=700;break;case "i":e.fontStyle="italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=Hw(new
|
|
943
|
+
h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine);switch(g){case "br":g=b.clone();g.lineBreak=!0;c.push(g);break;case "b":e.fontWeight=700;break;case "i":e.fontStyle="italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=Hw(new Yq(g)))e.startTime=g}}if(ag(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=Mw(a),c.push(f)),f=!1;else for(b=
|
|
939
944
|
r(a.childNodes),a=b.next();!a.done;a=b.next())Nw(a.value,e,c,d)}
|
|
940
|
-
function
|
|
941
|
-
b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Pw(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=
|
|
942
|
-
function Hw(a){a
|
|
943
|
-
Gw.prototype.setSequenceMode=Gw.prototype.setSequenceMode;Gw.prototype.parseInit=Gw.prototype.parseInit;var
|
|
944
|
-
Qw.prototype.parseMedia=function(a,b){if(!this.g)throw new M(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new
|
|
945
|
-
c+
|
|
946
|
-
function Sw(a,b,c,d,e){d=new
|
|
947
|
-
function Uw(a){a
|
|
948
|
-
Vw.srt2webvtt=Ww;Vw.prototype.parseMedia=Vw.prototype.parseMedia;Vw.prototype.setSequenceMode=Vw.prototype.setSequenceMode;Vw.prototype.parseInit=Vw.prototype.parseInit;
|
|
949
|
-
Xw.prototype.parseMedia=function(a){var b="",c="";a
|
|
950
|
-
[];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={be:e.be},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Zw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split($w);else if("Dialogue"==f){g=g.split($w);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=ax(f.Start);var k=ax(f.End);g=new
|
|
951
|
-
function bx(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=cx(c))a.color=c;if(c=b.BackColour)if(c=cx(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=
|
|
952
|
-
break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=
|
|
945
|
+
function Kw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=mc: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"==
|
|
946
|
+
b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Pw(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=oc,a.line=Number(c[1]),c[2]&&(a.lineAlign=wc[c[2].toUpperCase()])}function Pw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
|
|
947
|
+
function Hw(a){a=$q(a,Lw);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)}function Mw(a){var b={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":"\u00a0","‎":"\u200e","‏":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}I("shaka.text.VttTextParser",Gw);Gw.prototype.parseMedia=Gw.prototype.parseMedia;
|
|
948
|
+
Gw.prototype.setSequenceMode=Gw.prototype.setSequenceMode;Gw.prototype.parseInit=Gw.prototype.parseInit;var Lw=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Dd["text/vtt"]=function(){return new Gw};Dd['text/vtt; codecs="vtt"']=function(){return new Gw};Dd['text/vtt; codecs="wvtt"']=function(){return new Gw};function Qw(){this.g=null}Qw.prototype.parseInit=function(a){var b=this,c=!1;(new Hf).box("moov",Mf).box("trak",Mf).box("mdia",Mf).T("mdhd",function(d){d=ni(d.reader,d.version);b.g=d.timescale}).box("minf",Mf).box("stbl",Mf).T("stsd",Of).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new M(2,2,2008);if(!c)throw new M(2,2,2008);};Qw.prototype.setSequenceMode=function(){};
|
|
949
|
+
Qw.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new M(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Hf).box("moof",Mf).box("traf",Mf).T("tfdt",function(z){g=!0;c=mi(z.reader,z.version).rf}).T("tfhd",function(z){l=li(z.reader,z.flags).Cf}).T("trun",function(z){h=!0;d=oi(z.reader,z.version,z.flags).Sf}).box("mdat",Qf(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new M(2,2,2008);a=c;for(var m=new Ef(e,0),p=r(d),n=p.next();!n.done;n=p.next()){n=n.value;
|
|
950
|
+
var t=n.Ge||l,v=n.Ld?c+n.Ld:a;a=v+(t||0);var y=0;do{var w=m.N();y+=w;var x=m.N(),C=null;"vttc"==Lf(x)?8<w&&(C=m.Bb(w-8)):m.skip(w-8);t&&C&&(w=Rw(C,b.periodStart+v/this.g,b.periodStart+a/this.g),f.push(w))}while(n.sampleSize&&y<n.sampleSize)}return f.filter(Ab)};function Rw(a,b,c){var d,e,f;(new Hf).box("payl",Qf(function(g){d=$c(g)})).box("iden",Qf(function(g){e=$c(g)})).box("sttg",Qf(function(g){f=$c(g)})).parse(a);return d?Sw(d,e,f,b,c):null}
|
|
951
|
+
function Sw(a,b,c,d,e){d=new hc(d,e,"");Jw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Yq(c),b=ar(a);b;)Kw(d,b,[]),Zq(a),b=ar(a);return d}I("shaka.text.Mp4VttParser",Qw);Qw.prototype.parseMedia=Qw.prototype.parseMedia;Qw.prototype.setSequenceMode=Qw.prototype.setSequenceMode;Qw.prototype.parseInit=Qw.prototype.parseInit;Dd['application/mp4; codecs="wvtt"']=function(){return new Qw};function Tw(){}Tw.prototype.parseInit=function(){};Tw.prototype.setSequenceMode=function(){};Tw.prototype.parseMedia=function(a){var b=$c(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 Yq(c[0]),e=Uw(d),f=$q(d,/,/g);d=Uw(d);if(null==e||null==f||null==d)throw new M(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new hc(e,d,c.slice(1).join("\n").trim()))}return a};
|
|
952
|
+
function Uw(a){a=$q(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)}I("shaka.text.SbvTextParser",Tw);Tw.prototype.parseMedia=Tw.prototype.parseMedia;Tw.prototype.setSequenceMode=Tw.prototype.setSequenceMode;Tw.prototype.parseInit=Tw.prototype.parseInit;Dd["text/x-subviewer"]=function(){return new Tw};function Vw(){this.g=new Gw}Vw.prototype.parseInit=function(){};Vw.prototype.setSequenceMode=function(){};Vw.prototype.parseMedia=function(a,b){a=$c(a);a=Ww(a);a=Fc(dd(a));return this.g.parseMedia(a,b)};function Ww(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}I("shaka.text.SrtTextParser",Vw);
|
|
953
|
+
Vw.srt2webvtt=Ww;Vw.prototype.parseMedia=Vw.prototype.parseMedia;Vw.prototype.setSequenceMode=Vw.prototype.setSequenceMode;Vw.prototype.parseInit=Vw.prototype.parseInit;Dd["text/srt"]=function(){return new Vw};function Xw(){}Xw.prototype.parseInit=function(){};Xw.prototype.setSequenceMode=function(){};
|
|
954
|
+
Xw.prototype.parseMedia=function(a){var b="",c="";a=$c(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=Yw.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=Zw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split($w);else if("Style"==e){e=f.split($w);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
|
|
955
|
+
[];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={be:e.be},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Zw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split($w);else if("Dialogue"==f){g=g.split($w);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=ax(f.Start);var k=ax(f.End);g=new hc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.be=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.be}}(e)))&&bx(g,f);d.push(g)}return d};
|
|
956
|
+
function bx(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=cx(c))a.color=c;if(c=b.BackColour)if(c=cx(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=qc;a.textAlign="start";break;case 2:a.displayAlign=qc;a.textAlign=mc;break;case 3:a.displayAlign=qc;a.textAlign="end";
|
|
957
|
+
break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=mc;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=mc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
|
|
953
958
|
function cx(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 ax(a){a=dx.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}I("shaka.text.SsaTextParser",Xw);Xw.prototype.parseMedia=Xw.prototype.parseMedia;Xw.prototype.setSequenceMode=Xw.prototype.setSequenceMode;Xw.prototype.parseInit=Xw.prototype.parseInit;
|
|
954
|
-
var Yw=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Zw=/^\s*([^:]+):\s*(.*)/,$w=/\s*,\s*/,dx=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;
|
|
959
|
+
var Yw=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Zw=/^\s*([^:]+):\s*(.*)/,$w=/\s*,\s*/,dx=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Dd["text/x-ssa"]=function(){return new Xw};/*
|
|
955
960
|
@license
|
|
956
961
|
EME Encryption Scheme Polyfill
|
|
957
962
|
Copyright 2019 Google LLC
|
|
@@ -960,8 +965,8 @@ var Yw=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Zw=/^\s*([^:]+):\s*(.*)/,$w=/\s*,\s*/,dx
|
|
|
960
965
|
function ex(){}var fx;function gx(){fx?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(fx=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=hx):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
|
|
961
966
|
function hx(a,b){var c=this,d;return G(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,fx.call(c,a,b),2);d=e.h;if(ix(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=fx,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=jx;return e.return(jx.call(c,
|
|
962
967
|
a,b))})}
|
|
963
|
-
function jx(a,b){var c=this,d,e,f,g,h,k,l,m,n
|
|
964
|
-
|
|
968
|
+
function jx(a,b){var c=this,d,e,f,g,h,k,l,m,p,n;return G(function(t){if(1==t.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=kx(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=lx(h.videoCapabilities,d),l=lx(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 p=Error("Unsupported keySystem or supportedConfigurations."),
|
|
969
|
+
p.name="NotSupportedError",p.code=DOMException.NOT_SUPPORTED_ERR,p;return u(t,fx.call(c,a,e),2)}n=t.h;return t.return(new mx(n,d))})}function lx(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}I("EmeEncryptionSchemePolyfill",ex);ex.install=gx;function nx(){}var ox;
|
|
965
970
|
function px(){ox?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(ox=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=qx):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
|
|
966
971
|
function qx(a){var b=this,c,d,e;return G(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,ox.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&ix(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=ox,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
|
|
967
972
|
navigator.mediaCapabilities.decodingInfo=rx;if(d){f.D(3);break}e=c;return u(f,sx(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(rx.call(b,a))}})}
|
|
@@ -971,7 +976,7 @@ function sx(a){var b,c;return G(function(d){if(1==d.g){var e=a.keySystemConfigur
|
|
|
971
976
|
navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}I("McEncryptionSchemePolyfill",nx);nx.install=px;function mx(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
|
|
972
977
|
mx.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};mx.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
|
|
973
978
|
function kx(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function ix(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}
|
|
974
|
-
function tx(){}function
|
|
979
|
+
function tx(){}function xu(){gx();px()}I("EncryptionSchemePolyfills",tx);tx.install=xu;"undefined"!==typeof module&&module.exports&&(module.exports=tx);/*
|
|
975
980
|
@license
|
|
976
981
|
Copyright 2013 Ali Al Dallal
|
|
977
982
|
|
|
@@ -1017,179 +1022,179 @@ sw:{u:"Kiswahili",A:"Swahili"},"sw-KE":{u:"Kiswahili",A:"Swahili (Kenya)"},ta:{u
|
|
|
1017
1022
|
A:"Thai"},"th-TH":{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",A:"Thai (Thailand)"},tl:{u:"Filipino",A:"Filipino"},"tl-PH":{u:"Filipino",A:"Filipino"},tlh:{u:"tlhIngan-Hol",A:"Klingon"},tr:{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tr-TR":{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tt-RU":{u:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",A:"Tatar"},uk:{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",A:"Ukrainian"},"uk-UA":{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
|
|
1018
1023
|
A:"Ukrainian"},ur:{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},"ur-PK":{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},uz:{u:"O'zbek",A:"Uzbek"},"uz-UZ":{u:"O'zbek",A:"Uzbek"},vi:{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"vi-VN":{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"xh-ZA":{u:"isiXhosa",A:"Xhosa"},yi:{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",A:"Yiddish"},"yi-DE":{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",A:"Yiddish (German)"},zh:{u:"\u4e2d\u6587",A:"Chinese"},"zh-HANS":{u:"\u4e2d\u6587\u7b80\u4f53",
|
|
1019
1024
|
A:"Chinese Simplified"},"zh-HANT":{u:"\u4e2d\u6587\u7e41\u9ad4",A:"Chinese Traditional"},"zh-CN":{u:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",A:"Chinese Simplified (China)"},"zh-HK":{u:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",A:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",A:"Chinese Simplified (Singapore)"},"zh-TW":{u:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",A:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",A:"Zulu"}},vx=r(Object.keys(ux)),wx=vx.next();!wx.done;wx=
|
|
1020
|
-
vx.next()){var xx=wx.value;ux[xx.toLowerCase()]=ux[xx]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new
|
|
1025
|
+
vx.next()){var xx=wx.value;ux[xx.toLowerCase()]=ux[xx]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new wf;this.localization=this.controls.ua;this.player=this.controls.cc();this.video=this.controls.zb();this.adManager=this.player.sd();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})}
|
|
1021
1026
|
X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};I("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function yx(a){return zx(a,"shaka-back-to-overflow-button")}function zx(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function Ax(a){a&&(a=zx(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Bx(){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 Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
|
|
1022
|
-
function Cx(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function Dx(a,b){X.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
|
|
1023
|
-
""))});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.
|
|
1024
|
-
"ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&Fx(this)}pa(Ex,X);function Fx(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));Y(a.g,!0)}}I("shaka.ui.AdPosition",Ex);function Gx(a,b){X.call(this,a,b);var c=this;this.button=
|
|
1027
|
+
function Cx(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function Dx(a,b){X.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 N(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Cx(e-d,!1)+" / "+Cx(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=
|
|
1028
|
+
""))});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.Aa();c.g.ha(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Aa(),this.g.ha(.5))}pa(Dx,X);Dx.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};I("shaka.ui.AdCounter",Dx);function Ex(a,b){X.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");Y(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&&Fx(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Fx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Fx(c)});this.eventManager.o(this.adManager,
|
|
1029
|
+
"ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&Fx(this)}pa(Ex,X);function Fx(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));Y(a.g,!0)}}I("shaka.ui.AdPosition",Ex);function Gx(a,b){X.call(this,a,b);var c=this;this.button=al();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();
|
|
1025
1030
|
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()?Hx(c.controls):Ix(c.controls)});this.ad&&(this.g(),this.h())}pa(Gx,X);Gx.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.s.paused&&!a.X;return a};Gx.prototype.g=function(){};Gx.prototype.h=function(){};
|
|
1026
1031
|
I("shaka.ui.PlayButton",Gx);function Jx(a,b){Gx.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}pa(Jx,Gx);Jx.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Jx.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};I("shaka.ui.BigPlayButton",Jx);function Kx(a,b){X.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";Y(c.g,!0)}else Y(c.g,
|
|
1027
|
-
!1)});this.eventManager.o(window,"click",function(){Y(c.g,!1)});Lx(this)}pa(Kx,X);Kx.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=[];X.prototype.release.call(this)};function Mx(a,b){Nx.set(a,b)}function Lx(a){for(var b=r(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Nx.get(c);d?a.i.push(d.create(a.g,a.controls)):
|
|
1028
|
-
Kx.registerElement=Mx;var Nx=new Map;function Ox(a,b,c,d){X.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
|
|
1032
|
+
!1)});this.eventManager.o(window,"click",function(){Y(c.g,!1)});Lx(this)}pa(Kx,X);Kx.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=[];X.prototype.release.call(this)};function Mx(a,b){Nx.set(a,b)}function Lx(a){for(var b=r(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Nx.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}I("shaka.ui.ContextMenu",Kx);
|
|
1033
|
+
Kx.registerElement=Mx;var Nx=new Map;function Ox(a,b,c,d){X.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 N(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);
|
|
1029
1034
|
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,Px(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(Px(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,Px(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
|
|
1030
1035
|
"mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}pa(Ox,X);q=Ox.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);X.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.R(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
|
|
1031
1036
|
q.setValue=function(a){this.g||(this.bar.value=a)};function Px(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}I("shaka.ui.RangeElement",Ox);Ox.prototype.setValue=Ox.prototype.setValue;Ox.prototype.getValue=Ox.prototype.getValue;Ox.prototype.changeTo=Ox.prototype.changeTo;Ox.prototype.onChangeEnd=Ox.prototype.onChangeEnd;
|
|
1032
|
-
Ox.prototype.onChange=Ox.prototype.onChange;Ox.prototype.onChangeStart=Ox.prototype.onChangeStart;Ox.prototype.setRange=Ox.prototype.setRange;function Qx(a,b){Ox.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
|
|
1037
|
+
Ox.prototype.onChange=Ox.prototype.onChange;Ox.prototype.onChangeStart=Ox.prototype.onChangeStart;Ox.prototype.setRange=Ox.prototype.setRange;function Qx(a,b){Ox.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 N(function(){c.video.currentTime=c.getValue()});this.s=new N(function(){Rx(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return Sx(c)});this.eventManager.o(this.localization,
|
|
1033
1038
|
"locale-changed",function(){return Sx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Tx(c)||Y(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Tx(c)&&Y(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Ux(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Ux(c)});this.setValue(this.video.currentTime);this.update();Sx(this);this.ad&&Y(this.container,!1)}pa(Qx,Ox);q=Qx.prototype;
|
|
1034
|
-
q.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Ox.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Qe(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};q.onChangeEnd=function(){this.h.
|
|
1039
|
+
q.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Ox.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Qe(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};q.onChangeEnd=function(){this.h.Aa();this.controls.Qe(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
|
|
1035
1040
|
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.Ja(),g=f.end-f.start;this.setRange(f.start,f.end);Tx(this)?(Y(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?
|
|
1036
1041
|
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()+")")):Y(this.container,!1)};
|
|
1037
1042
|
function Rx(a){if(a.i.length){for(var b=a.player.Ja(),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 "+
|
|
1038
|
-
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 Ux(a){Rx(a);var b=a.player.Ja();b=b.end-b.start;a.player.
|
|
1039
|
-
Vx.prototype.create=function(a,b){return new Qx(a,b)};Qx.Factory=Vx;function Z(a,b,c,d){
|
|
1040
|
-
!1)});this.La=new
|
|
1043
|
+
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 Ux(a){Rx(a);var b=a.player.Ja();b=b.end-b.start;a.player.U()&&5<b&&a.s.ha(1)}function Tx(a){var b=a.player.Ja();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Sx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}I("shaka.ui.SeekBar",Qx);function Vx(){}
|
|
1044
|
+
Vx.prototype.create=function(a,b){return new Qx(a,b)};Qx.Factory=Vx;function Z(a,b,c,d){db.call(this);var e=this;this.P=!0;this.i=d;this.C=new so(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.Za=!0;this.s=this.C.zb();this.B=c;this.F=this.C.cc();this.sa=a;this.j=b;this.Xa=this.F.sd();this.l=this.m=null;this.X=!1;this.G=[];this.ub=[];this.gb=!1;this.Z=new N(function(){e.j.style.cursor="none";e.gb=!1;Wx(e)});this.aa=new N(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new N(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())Y(g.value,
|
|
1045
|
+
!1)});this.La=new N(function(){e.Mb()&&Xx(e)});this.J=null;this.H=[];this.ua=Yx();this.h=new wf;this.configure(this.i);Zx(this);this.ka=new Set;$x(this);this.La.ha(.125);this.h.o(this.ua,"locale-changed",function(f){e.Xa.setLocale(f.locales[0])})}pa(Z,db);q=Z.prototype;
|
|
1041
1046
|
q.destroy=function(){var a=this;return G(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.La&&(a.La.stop(),a.La=null);ay(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.sa){b.D(6);break}return u(b,a.sa.destroy(),7);case 7:a.sa=
|
|
1042
|
-
null;case 6:a.F=null,a.B=null,a.s=null,a.ua=null,a.ka.clear(),
|
|
1043
|
-
q.configure=function(a){this.i=a;this.C.yf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.fb&&(this.fb=null);this.Ya&&(this.Ya=null);this.g?(
|
|
1044
|
-
this.g.appendChild(this.$a);iy(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"))));jy(this);this.
|
|
1045
|
-
c)}};q.Me=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Wx(this)};q.
|
|
1046
|
-
q.
|
|
1047
|
+
null;case 6:a.F=null,a.B=null,a.s=null,a.ua=null,a.ka.clear(),db.prototype.release.call(a),A(b)}})};function ay(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function by(a,b){cy.set(a,b)}q.ng=function(a){this.Za=a;$x(this)};q.hh=function(){Wx(this)};
|
|
1048
|
+
q.configure=function(a){this.i=a;this.C.yf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.fb&&(this.fb=null);this.Ya&&(this.Ya=null);this.g?(bl(this.g),ay(this)):(dy(this),ey(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");fy(this);this.i.addBigPlayButton&&gy(this);this.i.customContextMenu&&(this.Ya=new Kx(this.V,this),this.H.push(this.Ya));this.$||hy(this);this.$a=R("div");this.$a.classList.add("shaka-server-side-ad-container");
|
|
1049
|
+
this.g.appendChild(this.$a);iy(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"))));jy(this);this.ub=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Wx(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",
|
|
1050
|
+
c)}};q.Me=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Wx(this)};q.Wf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Me(!1)};q.getAd=function(){return this.m};q.Ag=function(){return this.C};q.Mg=function(){return this.ua};q.ah=function(){return this.j};q.zb=function(){return this.s};q.Lg=function(){return this.B};q.cc=function(){return this.F};q.Kg=function(){return this.sa};
|
|
1051
|
+
q.Fg=function(){return this.g};q.Ug=function(){return this.$a};q.Cg=function(){return this.O};q.Dg=function(){return this.i};q.gh=function(){return this.X};q.Qe=function(a){this.X=a};q.eh=function(){return this.Za};q.Hf=function(){return this.l?this.l.getValue():this.s.currentTime};q.Xf=function(a){this.J=a};q.md=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.fc=function(){this.I.Aa()};
|
|
1047
1052
|
q.xd=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};q.ic=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
|
|
1048
1053
|
function ky(a){var b,c;return G(function(d){switch(d.g){case 1:D(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return u(d,document.exitPictureInPicture(),5);case 5:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}D(d,9);return u(d,screen.orientation.lock("landscape"),11);case 11:ua(d,4,2);break;case 9:va(d,
|
|
1049
|
-
2);case 4:ua(d,0);break;case 2:c=va(d),a.dispatchEvent(new L("error",(new Map).set("detail",c))),
|
|
1050
|
-
q.
|
|
1054
|
+
2);case 4:ua(d,0);break;case 2:c=va(d),a.dispatchEvent(new L("error",(new Map).set("detail",c))),A(d)}})}function ly(a){var b;return G(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return u(c,document.exitFullscreen(),0)})}q.Xe=function(){var a=this;return G(function(b){return a.ic()?u(b,ly(a),0):u(b,ky(a),0)})};
|
|
1055
|
+
q.ag=function(){Y(this.K,!0);Y(this.O,!0);this.g.setAttribute("ad-active","true")};q.Kf=function(){Y(this.K,!1);Y(this.O,!1);this.g.removeAttribute("ad-active")};function Ix(a){a.P&&a.s.duration&&(a.F.vf(),a.s.paused&&!a.X?a.s.play():a.s.pause())}function Hx(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
|
|
1051
1056
|
function dy(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.s.duration&&(a.Mb()?a.J=Date.now():(my(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){ny(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.xd()&&a.Xe()})}
|
|
1052
1057
|
function gy(a){var b=R("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.fb=new Jx(b,a);a.H.push(a.fb)}function fy(a){var b=R("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function oy(a){a.K=R("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Y(a.K,b);a.M.appendChild(a.K);b=new Ex(a.K,a);a.H.push(b);b=new Dx(a.K,a);a.H.push(b)}
|
|
1053
1058
|
function hy(a){a.$=R("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=R("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
|
|
1054
1059
|
"none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
|
|
1055
1060
|
function iy(a){a.M=R("div");a.M.classList.add("shaka-bottom-controls");a.M.classList.add("shaka-no-propagation");a.g.appendChild(a.M);a.h.o(a.M,"click",function(d){d.target.closest(".shaka-overflow-button")||a.fc()});oy(a);a.V=R("div");a.V.classList.add("shaka-controls-button-panel");a.V.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.V.classList.add("shaka-tooltips-on");a.M.appendChild(a.V);for(var b=r(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,cy.get(c)?
|
|
1056
|
-
(c=cy.get(c).create(a.V,a),a.H.push(c)):
|
|
1057
|
-
function Zx(a){a.h.o(a.F,"buffering",function(){a.P&&Y(a.$,a.F.Pc())});a.P&&Y(a.$,a.F.Pc());a.h.o(window,"keydown",function(b){qy(a,b)});a.h.o(window,"click",function(){return a.fc()});a.h.o(a,"submenuopen",function(){a.fc()});a.h.o(a.s,"play",function(){Wx(a)});a.h.o(a.s,"pause",function(){Wx(a)});a.h.o(a.j,"mousemove",function(b){my(a,b)});a.h.o(a.j,"touchmove",function(b){my(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){my(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.Z.
|
|
1061
|
+
(c=cy.get(c).create(a.V,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function jy(a){if(a.i.addSeekBar)a.l=py.create(a.M,a),a.H.push(a.l);else{a=r(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function ey(a){a.O=R("div");a.O.classList.add("shaka-client-side-ad-container");Y(a.O,!1);a.h.o(a.O,"click",function(){ny(a)});a.j.appendChild(a.O)}
|
|
1062
|
+
function Zx(a){a.h.o(a.F,"buffering",function(){a.P&&Y(a.$,a.F.Pc())});a.P&&Y(a.$,a.F.Pc());a.h.o(window,"keydown",function(b){qy(a,b)});a.h.o(window,"click",function(){return a.fc()});a.h.o(a,"submenuopen",function(){a.fc()});a.h.o(a.s,"play",function(){Wx(a)});a.h.o(a.s,"pause",function(){Wx(a)});a.h.o(a.j,"mousemove",function(b){my(a,b)});a.h.o(a.j,"touchmove",function(b){my(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){my(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.Z.Aa()});
|
|
1058
1063
|
a.h.o(a.C,"caststatuschanged",function(){$x(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)&&my(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),ry(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),ry(a,a.l.getValue()+c));break;case "Home":a.l&&
|
|
1059
|
-
ry(a,a.F.Ja().start);break;case "End":a.l&&ry(a,a.F.Ja().end);break;case " ":e&&sy(a)}});a.h.o(a.j,"keyup",function(b){a.ka.delete(b.key)});a.h.o(a.Xa,"ad-started",function(b){a.m=b.ad;a.
|
|
1064
|
+
ry(a,a.F.Ja().start);break;case "End":a.l&&ry(a,a.F.Ja().end);break;case " ":e&&sy(a)}});a.h.o(a.j,"keyup",function(b){a.ka.delete(b.key)});a.h.o(a.Xa,"ad-started",function(b){a.m=b.ad;a.ag()});a.h.o(a.Xa,"ad-stopped",function(){a.m=null;a.Kf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return G(function(b){return u(b,ty(a),0)})})}
|
|
1060
1065
|
function ty(a){return G(function(b){return a.s&&0!=a.s.readyState&&!a.C.na()&&a.i.enableFullscreenOnRotation&&a.xd()?screen.orientation.type.includes("landscape")&&!a.ic()?u(b,ky(a),0):screen.orientation.type.includes("portrait")&&a.ic()?u(b,ly(a),0):b.D(0):b.return()})}
|
|
1061
|
-
function my(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),Wx(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.gb=!0,a.I.stop(),a.Mb()||(Xx(a),Wx(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.R(3))}function uy(a){return window.matchMedia("hover: hover").matches?a.
|
|
1062
|
-
function Wx(a){var b=a.m?a.m.isPaused():!1,c=a.s.paused&&!a.X,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.gb||d||uy(a)?(Xx(a),a.g.setAttribute("shown","true"),a.aa.stop()):a.aa.R(a.i.fadeDelay)}function ny(a){a.P&&(a.md()?a.I.
|
|
1066
|
+
function my(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),Wx(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.gb=!0,a.I.stop(),a.Mb()||(Xx(a),Wx(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.R(3))}function uy(a){return window.matchMedia("hover: hover").matches?a.ub.some(function(b){return b.matches(":hover")}):!1}
|
|
1067
|
+
function Wx(a){var b=a.m?a.m.isPaused():!1,c=a.s.paused&&!a.X,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.gb||d||uy(a)?(Xx(a),a.g.setAttribute("shown","true"),a.aa.stop()):a.aa.R(a.i.fadeDelay)}function ny(a){a.P&&(a.md()?a.I.Aa():a.i.singleClickForPlayAndPause&&sy(a))}function sy(a){a.m&&a.m.isLinear()?Hx(a):Ix(a)}
|
|
1063
1068
|
function $x(a){var b=a.C.na();a.dispatchEvent(new L("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Mb=function(){return this.P?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function ry(a,b){a.l.changeTo(b);a.Mb()&&Xx(a)}
|
|
1064
1069
|
function Xx(a){if(a.l)if(a.l.setValue(a.s.currentTime),a.l.update(),a.l.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 L("timeandseekrangeupdated"))}
|
|
1065
|
-
function qy(a,b){a.ka.add(b.key);var c=a.md();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),Wx(a),a.h.o(window,"mousedown",function(){a.h.qc(window,"mousedown")}));"Escape"==b.key&&a.I.
|
|
1070
|
+
function qy(a,b){a.ka.add(b.key);var c=a.md();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),Wx(a),a.h.o(window,"mousedown",function(){a.h.qc(window,"mousedown")}));"Escape"==b.key&&a.I.Aa();c&&a.ka.has("Tab")&&vy(a,b)}
|
|
1066
1071
|
function vy(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.ka.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
|
|
1067
|
-
function Yx(){var a=new
|
|
1072
|
+
function Yx(){var a=new Tb("en");a.ea("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..."],
|
|
1068
1073
|
["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"],
|
|
1069
1074
|
["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"],
|
|
1070
1075
|
["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"],
|
|
1071
1076
|
["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"],
|
|
1072
|
-
["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.
|
|
1077
|
+
["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.ea("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"],
|
|
1073
1078
|
["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"],
|
|
1074
1079
|
["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"]]));
|
|
1075
|
-
a.
|
|
1080
|
+
a.ea("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"],
|
|
1076
1081
|
["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"],
|
|
1077
|
-
["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.
|
|
1082
|
+
["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ea("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",
|
|
1078
1083
|
"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"],
|
|
1079
|
-
["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.
|
|
1084
|
+
["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.ea("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..."],
|
|
1080
1085
|
["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"],
|
|
1081
1086
|
["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",
|
|
1082
|
-
"Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.
|
|
1087
|
+
"Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ea("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"],
|
|
1083
1088
|
["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"],
|
|
1084
|
-
["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.
|
|
1089
|
+
["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.ea("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],
|
|
1085
1090
|
["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)"],
|
|
1086
1091
|
["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",
|
|
1087
|
-
"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.
|
|
1092
|
+
"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.ea("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",
|
|
1088
1093
|
"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"],
|
|
1089
1094
|
["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"],
|
|
1090
|
-
["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.
|
|
1095
|
+
["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ea("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",
|
|
1091
1096
|
"\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"],
|
|
1092
1097
|
["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"],
|
|
1093
|
-
["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.
|
|
1098
|
+
["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.ea("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],
|
|
1094
1099
|
["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"],
|
|
1095
1100
|
["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"],
|
|
1096
|
-
["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.
|
|
1101
|
+
["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.ea("nl",new Map([["AD_DURATION",
|
|
1097
1102
|
"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",
|
|
1098
1103
|
"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"],
|
|
1099
|
-
["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.
|
|
1104
|
+
["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ea("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"],
|
|
1100
1105
|
["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",
|
|
1101
1106
|
"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",
|
|
1102
|
-
"Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.
|
|
1107
|
+
"Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ea("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",
|
|
1103
1108
|
"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"],
|
|
1104
|
-
["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.
|
|
1109
|
+
["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.ea("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"],
|
|
1105
1110
|
["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"],
|
|
1106
1111
|
["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"],
|
|
1107
1112
|
["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",
|
|
1108
1113
|
"\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",
|
|
1109
1114
|
"\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"],
|
|
1110
1115
|
["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"],
|
|
1111
|
-
["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.
|
|
1116
|
+
["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.ea("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"],
|
|
1112
1117
|
["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"],
|
|
1113
1118
|
["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"],
|
|
1114
1119
|
["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"],
|
|
1115
1120
|
["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"],
|
|
1116
1121
|
["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"],
|
|
1117
|
-
["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.
|
|
1122
|
+
["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.ea("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"],
|
|
1118
1123
|
["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"],
|
|
1119
|
-
["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.
|
|
1124
|
+
["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.ea("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
|
|
1120
1125
|
["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"],
|
|
1121
1126
|
["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"],
|
|
1122
|
-
["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.
|
|
1127
|
+
["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.ea("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
|
|
1123
1128
|
["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"],
|
|
1124
1129
|
["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"],
|
|
1125
|
-
["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.xf(navigator.languages||[]);return a}I("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Mb;Z.prototype.hideAdUI=Z.prototype.Kf;Z.prototype.showAdUI=Z.prototype.
|
|
1126
|
-
Z.prototype.toggleFullScreen=Z.prototype.Xe;Z.prototype.isFullScreenEnabled=Z.prototype.ic;Z.prototype.isFullScreenSupported=Z.prototype.xd;Z.prototype.hideSettingsMenus=Z.prototype.fc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.md;Z.prototype.setLastTouchEventTime=Z.prototype.
|
|
1127
|
-
Z.prototype.getClientSideAdContainer=Z.prototype.
|
|
1128
|
-
Z.prototype.setEnabledNativeControls=Z.prototype.
|
|
1129
|
-
this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);xy(this);this.eventManager.o(this.localization,"locale-updated",function(){yy(c)});this.eventManager.o(this.localization,"locale-changed",function(){yy(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Y(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Y(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Y(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.
|
|
1130
|
+
["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.xf(navigator.languages||[]);return a}I("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Mb;Z.prototype.hideAdUI=Z.prototype.Kf;Z.prototype.showAdUI=Z.prototype.ag;
|
|
1131
|
+
Z.prototype.toggleFullScreen=Z.prototype.Xe;Z.prototype.isFullScreenEnabled=Z.prototype.ic;Z.prototype.isFullScreenSupported=Z.prototype.xd;Z.prototype.hideSettingsMenus=Z.prototype.fc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.md;Z.prototype.setLastTouchEventTime=Z.prototype.Xf;Z.prototype.getDisplayTime=Z.prototype.Hf;Z.prototype.isCastAllowed=Z.prototype.eh;Z.prototype.setSeeking=Z.prototype.Qe;Z.prototype.isSeeking=Z.prototype.gh;Z.prototype.getConfig=Z.prototype.Dg;
|
|
1132
|
+
Z.prototype.getClientSideAdContainer=Z.prototype.Cg;Z.prototype.getServerSideAdContainer=Z.prototype.Ug;Z.prototype.getControlsContainer=Z.prototype.Fg;Z.prototype.getLocalPlayer=Z.prototype.Kg;Z.prototype.getPlayer=Z.prototype.cc;Z.prototype.getLocalVideo=Z.prototype.Lg;Z.prototype.getVideo=Z.prototype.zb;Z.prototype.getVideoContainer=Z.prototype.ah;Z.prototype.getLocalization=Z.prototype.Mg;Z.prototype.getCastProxy=Z.prototype.Ag;Z.prototype.getAd=Z.prototype.getAd;
|
|
1133
|
+
Z.prototype.setEnabledNativeControls=Z.prototype.Wf;Z.prototype.setEnabledShakaControls=Z.prototype.Me;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.hh;Z.prototype.allowCast=Z.prototype.ng;Z.registerSeekBar=function(a){py=a};Z.registerElement=by;Z.prototype.destroy=Z.prototype.destroy;var cy=new Map,py=new Vx;function wy(a,b){X.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=al();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");
|
|
1134
|
+
this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);xy(this);this.eventManager.o(this.localization,"locale-updated",function(){yy(c)});this.eventManager.o(this.localization,"locale-changed",function(){yy(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Y(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Y(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Y(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Xf(Date.now());
|
|
1130
1135
|
d.stopPropagation()});this.eventManager.o(this.g,"click",function(){zy(c)});yy(this);this.ad&&this.ad.isLinear()&&Y(this.g,!1)}pa(wy,X);wy.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=[];X.prototype.release.call(this)};function Ay(a,b){By.set(a,b)}
|
|
1131
|
-
function xy(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,By.get(c)?(c=By.get(c),a.i.push(c.create(a.h,a.controls))):
|
|
1132
|
-
I("shaka.ui.OverflowMenu",wy);wy.registerElement=Ay;function Cy(){}Cy.prototype.create=function(a,b){return new wy(a,b)};by("overflow_menu",new Cy);var By=new Map;function Dy(a,b){X.call(this,a,b);var c=this;this.g=
|
|
1136
|
+
function xy(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,By.get(c)?(c=By.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function zy(a){if(a.controls.md())a.controls.fc();else{Y(a.h,!0);Wx(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};gb(a.h.childNodes,b)&&hb(a.h.childNodes,b)[0].focus()}}function yy(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
|
|
1137
|
+
I("shaka.ui.OverflowMenu",wy);wy.registerElement=Ay;function Cy(){}Cy.prototype.create=function(a,b){return new wy(a,b)};by("overflow_menu",new Cy);var By=new Map;function Dy(a,b){X.call(this,a,b);var c=this;this.g=al();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");a=R("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=R("span");a.appendChild(this.j);
|
|
1133
1138
|
this.i=R("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);Ey(this);Fy(this);this.eventManager.o(this.localization,"locale-updated",function(){Ey(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ey(c)});this.eventManager.o(this.g,"click",function(){c.controls.zb().webkitShowPlaybackTargetPicker()});a=this.controls.zb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
|
|
1134
|
-
c.player.If()==
|
|
1135
|
-
by("airplay",new Gy);function Hy(a,b,c){this.i=a;this.h=Iy(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.pe()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.Te(b);b.ui=this;c.ui=this}q=Hy.prototype;q.destroy=function(){var a=this;return G(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;
|
|
1136
|
-
q.getConfiguration=function(){var a=Iy(this);
|
|
1139
|
+
c.player.If()==an;Y(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){Fy(c)})}pa(Dy,X);function Fy(a){var b=a.controls.zb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Ey(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}I("shaka.ui.AirPlayButton",Dy);function Gy(){}Gy.prototype.create=function(a,b){return new Dy(a,b)};Ay("airplay",new Gy);
|
|
1140
|
+
by("airplay",new Gy);function Hy(a,b,c){this.i=a;this.h=Iy(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.pe()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.Te(b);b.ui=this;c.ui=this}q=Hy.prototype;q.destroy=function(){var a=this;return G(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;A(b)})};q.pe=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Uc()&&1<navigator.maxTouchPoints};
|
|
1141
|
+
q.getConfiguration=function(){var a=Iy(this);Gl(a,this.h,Iy(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Hl(a,b));Gl(this.h,a,Iy(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new L("uiupdated"))};q.Eg=function(){return this.g};q.Jh=function(a){this.g.Me(a)};
|
|
1137
1142
|
function Iy(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",
|
|
1138
1143
|
"picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},
|
|
1139
1144
|
trackLabelFormat:Jy,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.pe()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
|
|
1140
|
-
function Ky(){var a,b,c,d,e,f,g,h,k,l,m,n,
|
|
1141
|
-
h.replaceChild(g,f);g.appendChild(f);k=null;l=r(c);for(m=l.next();!m.done;m=l.next())if(
|
|
1142
|
-
|
|
1143
|
-
function Ny(a,b,c){var d,e,f,g,h,k,l,m,
|
|
1144
|
-
b.controls&&e.g.
|
|
1145
|
-
Hy.prototype.getConfiguration=Hy.prototype.getConfiguration;Hy.prototype.isMobile=Hy.prototype.pe;Hy.prototype.destroy=Hy.prototype.destroy;var Jy=0;Hy.TrackLabelFormat={LANGUAGE:Jy,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var My=0,Oy=1;Hy.FailReasonCode={NO_BROWSER_SUPPORT:My,PLAYER_FAILED_TO_LOAD:Oy};"complete"==document.readyState?G(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Ky();
|
|
1146
|
-
|
|
1147
|
-
break;case 3:
|
|
1148
|
-
function Qy(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=
|
|
1149
|
-
function Sy(a,b){a.button=
|
|
1150
|
-
function Ty(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=
|
|
1151
|
-
R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function Uy(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}Y(a.parent,!0);
|
|
1145
|
+
function Ky(){var a,b,c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,C,z,B;return G(function(E){switch(E.g){case 1:mu();if(!qm())return Ly("shaka-ui-load-failed",My),E.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){E.D(2);break}if(b.length&&!a.length){d=r(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
|
|
1146
|
+
h.replaceChild(g,f);g.appendChild(f);k=null;l=r(c);for(m=l.next();!m.done;m=l.next())if(p=m.value,p.parentElement==g){k=p;break}k||(k=document.createElement("canvas"),k.classList.add("shaka-canvas-container"),g.appendChild(k));Ny(g,f,k)}E.D(2);break}n=r(a);t=n.next();case 4:if(t.done){E.D(2);break}v=t.value;if(v.ui){E.D(5);break}y=null;w=r(b);for(e=w.next();!e.done;e=w.next())if(x=e.value,x.parentElement==v){y=x;break}y||(y=document.createElement("video"),y.setAttribute("playsinline",""),v.appendChild(y));
|
|
1147
|
+
C=null;z=r(c);for(m=z.next();!m.done;m=z.next())if(B=m.value,B.parentElement==v){C=B;break}C||(C=document.createElement("canvas"),C.classList.add("shaka-canvas-container"),v.appendChild(C));D(E,7);return u(E,Ny(v,y,C),9);case 9:ua(E,5);break;case 7:return va(E),Ly("shaka-ui-load-failed",Oy),E.return();case 5:t=n.next();E.D(4);break;case 2:Ly("shaka-ui-loaded"),A(E)}})}function Ly(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
|
|
1148
|
+
function Ny(a,b,c){var d,e,f,g,h,k,l,m,p;return G(function(n){switch(n.g){case 1:d=new S(b);e=new Hy(d,a,b);d.qf(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});
|
|
1149
|
+
b.controls&&e.g.Wf(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=r(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){n.D(0);break}p=m.value;D(n,5);return u(n,e.g.cc().load(p.getAttribute("src")),7);case 7:n.D(0);break;case 5:va(n);case 3:m=l.next(),n.D(2)}})}I("shaka.ui.Overlay",Hy);Hy.prototype.setEnabled=Hy.prototype.Jh;Hy.prototype.getControls=Hy.prototype.Eg;Hy.prototype.configure=Hy.prototype.configure;
|
|
1150
|
+
Hy.prototype.getConfiguration=Hy.prototype.getConfiguration;Hy.prototype.isMobile=Hy.prototype.pe;Hy.prototype.destroy=Hy.prototype.destroy;var Jy=0;Hy.TrackLabelFormat={LANGUAGE:Jy,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var My=0,Oy=1;Hy.FailReasonCode={NO_BROWSER_SUPPORT:My,PLAYER_FAILED_TO_LOAD:Oy};"complete"==document.readyState?G(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Ky();A(a)}):window.addEventListener("load",Ky);function Py(a,b,c,d,e,f,g){function h(z,B){return z+": "+B}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.find(function(z){return 1==z.active}),m=yx(b);bl(b);b.appendChild(m);m=new Map;for(var p=r(a),n=p.next();!n.done;n=p.next())n=n.value,m.has(n.language)||m.set(n.language,new Set),m.get(n.language).add(k(n));m=new Set;l=l?h(l.language,k(l)):"";p={};a=r(a);for(n=a.next();!n.done;p={Va:p.Va},n=a.next()){p.Va=n.value;n=p.Va.language;var t=
|
|
1151
|
+
p.Va.forced,v=f.resolve(Yb.hg),y=k(p.Va),w=h(n,y);if(!m.has(w)){m.add(w);var x=al();x.addEventListener("click",function(z){return function(){c(z.Va)}}(p));var C=R("span");x.appendChild(C);C.textContent=Qy(n,f);switch(g){case Jy:t&&(C.textContent+=" ("+v+")");break;case 1:y?C.textContent=y:(Ua("Track #"+p.Va.id+" does not have a role, but the UI is configured to only show role."),C.textContent="?");t&&(C.textContent+=" ("+v+")");break;case 2:y&&(C.textContent+=": "+y);t&&(C.textContent+=" ("+v+")");
|
|
1152
|
+
break;case 3:p.Va.label?C.textContent=p.Va.label:(Ua("Track #"+p.Va.id+" does not have a label, but the UI is configured to only show labels."),C.textContent="?")}d&&w==l&&(x.appendChild(Bx()),C.classList.add("shaka-chosen-item"),x.ariaSelected="true",e.textContent=C.textContent);b.appendChild(x)}}}
|
|
1153
|
+
function Qy(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=Pb(a);return a in ux?ux[a].u:c in ux?ux[c].u+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Ry(a,b,c){X.call(this,a,b);var d=this;Sy(this,c);Ty(this);Uy(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new L("submenuopen")),Y(d.menu,!0),Ax(d.menu)):Y(d.menu,!1)})}pa(Ry,X);
|
|
1154
|
+
function Sy(a,b){a.button=al();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);b=R("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=R("span");b.appendChild(a.nameSpan);a.currentSelection=R("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
|
|
1155
|
+
function Ty(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=al();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.fc()});var b=R("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
|
|
1156
|
+
R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function Uy(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}Y(a.parent,!0);gb(a.parent.childNodes,b)&&hb(a.parent.childNodes,b)[0].focus();Wx(a.controls)}))}I("shaka.ui.SettingsMenu",Ry);function Vy(a,b){Ry.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(){Wy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Wy(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Qa().length;Y(c.button,d);Xy(c)});this.eventManager.o(this.player,"variantchanged",
|
|
1152
1157
|
function(){Xy(c)});Wy(this);Xy(this)}pa(Vy,Ry);function Xy(a){var b=a.player.Qa();Py(b,a.menu,function(c){a.player.Md(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Ax(a.menu);a.controls.dispatchEvent(new L("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
|
|
1153
|
-
function Wy(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")}I("shaka.ui.AudioLanguageSelection",Vy);function Yy(){}Yy.prototype.create=function(a,b){return new Vy(a,b)};Ay("language",new Yy);by("language",new Yy);function Zy(a,b){X.call(this,a,b);var c=this;this.h=this.controls.C;this.g=
|
|
1158
|
+
function Wy(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")}I("shaka.ui.AudioLanguageSelection",Vy);function Yy(){}Yy.prototype.create=function(a,b){return new Vy(a,b)};Ay("language",new Yy);by("language",new Yy);function Zy(a,b){X.call(this,a,b);var c=this;this.h=this.controls.C;this.g=al();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);a=R("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=R("span");a.appendChild(this.l);this.j=R("span");this.j.classList.add("shaka-current-selection-span");
|
|
1154
1159
|
a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);$y(this);az(this);this.eventManager.o(this.localization,"locale-updated",function(){$y(c)});this.eventManager.o(this.localization,"locale-changed",function(){$y(c)});this.eventManager.o(this.g,"click",function(){bz(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){az(c)})}pa(Zy,X);
|
|
1155
|
-
function bz(a){var b;G(function(c){if(1==c.g){if(a.h.na())return a.h.
|
|
1156
|
-
function cz(a){a.j.textContent=a.h.na()?a.h.Jd():a.localization.resolve("OFF")}function $y(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");cz(a)}I("shaka.ui.CastButton",Zy);function dz(){}dz.prototype.create=function(a,b){return new Zy(a,b)};Ay("cast",new dz);by("cast",new dz);function ez(a,b){X.call(this,a,b);var c=this;this.g=
|
|
1157
|
-
this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.xb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ze(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(ez,X);function fz(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}I("shaka.ui.FastForwardButton",ez);function gz(){}gz.prototype.create=function(a,b){return new ez(a,b)};by("fast_forward",new gz);function hz(a,b){X.call(this,a,b);var c=this;this.h=this.controls.B;this.g=
|
|
1160
|
+
function bz(a){var b;G(function(c){if(1==c.g){if(a.h.na())return a.h.cg(),c.D(0);D(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,ua(c,0);b=va(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new L("error",(new Map).set("detail",b)));A(c)})}function az(a){var b=a.h.uf()&&a.controls.Za,c=a.h.na();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");cz(a)}
|
|
1161
|
+
function cz(a){a.j.textContent=a.h.na()?a.h.Jd():a.localization.resolve("OFF")}function $y(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");cz(a)}I("shaka.ui.CastButton",Zy);function dz(){}dz.prototype.create=function(a,b){return new Zy(a,b)};Ay("cast",new dz);by("cast",new dz);function ez(a,b){X.call(this,a,b);var c=this;this.g=al();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);fz(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){fz(c)});this.eventManager.o(this.localization,"locale-changed",function(){fz(c)});
|
|
1162
|
+
this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.xb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ze(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(ez,X);function fz(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}I("shaka.ui.FastForwardButton",ez);function gz(){}gz.prototype.create=function(a,b){return new ez(a,b)};by("fast_forward",new gz);function hz(a,b){X.call(this,a,b);var c=this;this.h=this.controls.B;this.g=al();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");iz(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);jz(this);this.eventManager.o(this.localization,"locale-updated",function(){jz(c)});this.eventManager.o(this.localization,"locale-changed",function(){jz(c)});this.eventManager.o(this.g,"click",function(){return G(function(d){return u(d,
|
|
1158
1163
|
c.controls.Xe(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.ic()?"fullscreen_exit":"fullscreen";jz(c)});this.eventManager.o(this.h,"loadedmetadata",function(){iz(c)});this.eventManager.o(this.h,"loadeddata",function(){iz(c)})}pa(hz,X);function iz(a){a.controls.xd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function jz(a){a.g.ariaLabel=a.localization.resolve(a.controls.ic()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
|
|
1159
|
-
I("shaka.ui.FullscreenButton",hz);function kz(){}kz.prototype.create=function(a,b){return new hz(a,b)};by("fullscreen",new kz);function lz(a,b){X.call(this,a,b);var c=this;this.g=
|
|
1160
|
-
a.appendChild(this.l);this.g.appendChild(a);mz(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){mz(c)});this.eventManager.o(this.localization,"locale-changed",function(){mz(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.
|
|
1161
|
-
function mz(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")}I("shaka.ui.LoopButton",lz);function nz(){}nz.prototype.create=function(a,b){return new lz(a,b)};Ay("loop",new nz);by("loop",new nz);Mx("loop",new nz);function oz(a,b){X.call(this,a,b);var c=this;this.g=
|
|
1164
|
+
I("shaka.ui.FullscreenButton",hz);function kz(){}kz.prototype.create=function(a,b){return new hz(a,b)};by("fullscreen",new kz);function lz(a,b){X.call(this,a,b);var c=this;this.g=al();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);a=R("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=R("span");this.l.classList.add("shaka-current-selection-span");
|
|
1165
|
+
a.appendChild(this.l);this.g.appendChild(a);mz(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){mz(c)});this.eventManager.o(this.localization,"locale-changed",function(){mz(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Aa();c.h.ha(1)});this.m=this.video.loop;this.h=new N(function(){c.m!=c.video.loop&&(mz(c),c.m=c.video.loop)});this.h.ha(1)}pa(lz,X);lz.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
|
|
1166
|
+
function mz(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")}I("shaka.ui.LoopButton",lz);function nz(){}nz.prototype.create=function(a,b){return new lz(a,b)};Ay("loop",new nz);by("loop",new nz);Mx("loop",new nz);function oz(a,b){X.call(this,a,b);var c=this;this.g=al();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);pz(this);qz(this);this.eventManager.o(this.localization,"locale-updated",function(){pz(c)});this.eventManager.o(this.localization,"locale-changed",function(){pz(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});
|
|
1162
1167
|
this.eventManager.o(this.video,"volumechange",function(){pz(c);qz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){pz(c);qz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){pz(c);qz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;pz(c);qz(c)})}pa(oz,X);function pz(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
|
|
1163
|
-
function qz(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}I("shaka.ui.MuteButton",oz);function rz(){}rz.prototype.create=function(a,b){return new oz(a,b)};by("mute",new rz);function sz(a,b){X.call(this,a,b);var c=this;this.l=this.controls.B;this.g=
|
|
1168
|
+
function qz(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}I("shaka.ui.MuteButton",oz);function rz(){}rz.prototype.create=function(a,b){return new oz(a,b)};by("mute",new rz);function sz(a,b){X.call(this,a,b);var c=this;this.l=this.controls.B;this.g=al();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);a=R("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
|
|
1164
1169
|
R("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);tz(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Y(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){tz(c)});this.eventManager.o(this.localization,"locale-changed",function(){tz(c)});this.eventManager.o(this.g,"click",function(){uz(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
|
|
1165
1170
|
"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(d){d.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!1):
|
|
1166
|
-
document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){vz(c)})}pa(sz,X);function uz(a){var b;G(function(c){if(1==c.g)return D(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return ua(c,0);b=va(c);a.controls.dispatchEvent(new L("error",(new Map).set("detail",b)));
|
|
1171
|
+
document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){vz(c)})}pa(sz,X);function uz(a){var b;G(function(c){if(1==c.g)return D(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return ua(c,0);b=va(c);a.controls.dispatchEvent(new L("error",(new Map).set("detail",b)));A(c)})}
|
|
1167
1172
|
function tz(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")}
|
|
1168
1173
|
function vz(a){G(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Y(a.g,!1),b.D(0);if(!a.player||!a.player.hc())return Y(a.g,!0),b.D(0);Y(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}I("shaka.ui.PipButton",sz);function wz(){}wz.prototype.create=function(a,b){return new sz(a,b)};Ay("picture_in_picture",new wz);by("picture_in_picture",new wz);Mx("picture_in_picture",new wz);function xz(a,b){Ry.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(){yz(c)});this.eventManager.o(this.localization,"locale-changed",function(){yz(c)});this.eventManager.o(this.player,"ratechange",function(){zz(c,c.player.xb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
|
|
1169
1174
|
"x",d]}));yz(this);Az(this);zz(this,this.player.xb())}pa(xz,Ry);function yz(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")}
|
|
1170
1175
|
function zz(a,b){var c=zx(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(Bx()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
|
|
1171
|
-
"x")}function Az(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={xc:b.xc},d=c.next()){b.xc=d.value;d=
|
|
1172
|
-
!1):(Dz(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Cx(e,d),f&&(e+=" / "+Cx(f,d)),Dz(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.
|
|
1176
|
+
"x")}function Az(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={xc:b.xc},d=c.next()){b.xc=d.value;d=al();var e=R("span");e.textContent=b.xc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.xc);a.video.defaultPlaybackRate=a.g.get(f.xc)}}(b));a.menu.appendChild(d)}Ax(a.menu)}I("shaka.ui.PlaybackRateSelection",xz);function Bz(){}Bz.prototype.create=function(a,b){return new xz(a,b)};Ay("playback_rate",new Bz);by("playback_rate",new Bz);function Cz(a,b){X.call(this,a,b);var c=this;this.g=al();this.g.classList.add("shaka-current-time");Dz(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ja().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.X,e=c.controls.Hf(),f=c.video.duration,g=c.player.Ja(),h=g.end-g.start;c.player.U()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Dz(c,"- "+Cx(e,f)),c.g.disabled=
|
|
1177
|
+
!1):(Dz(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Cx(e,d),f&&(e+=" / "+Cx(f,d)),Dz(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}pa(Cz,X);function Dz(a,b){b!=a.g.textContent&&(a.g.textContent=b)}I("shaka.ui.PresentationTimeTracker",Cz);function Ez(){}Ez.prototype.create=function(a,b){return new Cz(a,b)};by("time_and_duration",new Ez);function Fz(a,b){Ry.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(){Gz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Gz(c)});this.eventManager.o(this.player,"variantchanged",function(){Hz(c)});this.eventManager.o(this.player,"trackschanged",function(){Hz(c)});this.eventManager.o(this.player,
|
|
1173
1178
|
"abrstatuschanged",function(){Hz(c)});Hz(this)}pa(Fz,Ry);
|
|
1174
|
-
function Hz(a){var b=a.player.Qa(),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.hc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.hc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=yx(a.menu);
|
|
1175
|
-
for(var e={},f=r(b),g=f.next();!g.done;e={Yb:e.Yb},g=f.next()){e.Yb=g.value;g=
|
|
1176
|
-
a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=
|
|
1179
|
+
function Hz(a){var b=a.player.Qa(),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.hc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.hc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=yx(a.menu);bl(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
|
|
1180
|
+
for(var e={},f=r(b),g=f.next();!g.done;e={Yb:e.Yb},g=f.next()){e.Yb=g.value;g=al();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Yb;a.player.configure({abr:{enabled:!1}});a.player.Ke(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=R("span");h.textContent=a.player.hc()?Math.round(e.Yb.bandwidth/1E3)+" kbits/s":e.Yb.height+"p";g.appendChild(h);d||e.Yb!=c||(g.ariaSelected="true",g.appendChild(Bx()),h.classList.add("shaka-chosen-item"),
|
|
1181
|
+
a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=al();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Hz(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(Bx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
|
|
1177
1182
|
a.currentSelection.textContent);a.menu.appendChild(e);Ax(a.menu);a.controls.dispatchEvent(new L("resolutionselectionupdated"));Gz(a)}
|
|
1178
1183
|
function Gz(a){var b=a.player.hc()?"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"))}I("shaka.ui.ResolutionSelection",Fz);function Iz(){}
|
|
1179
|
-
Iz.prototype.create=function(a,b){return new Fz(a,b)};Ay("quality",new Iz);by("quality",new Iz);function Jz(a,b){X.call(this,a,b);var c=this;this.g=
|
|
1180
|
-
this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.xb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ze(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(Jz,X);function Kz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}I("shaka.ui.RewindButton",Jz);function Lz(){}Lz.prototype.create=function(a,b){return new Jz(a,b)};by("rewind",new Lz);function Mz(a,b){X.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");Y(this.h,!1);this.j.appendChild(this.h);this.g=
|
|
1184
|
+
Iz.prototype.create=function(a,b){return new Fz(a,b)};Ay("quality",new Iz);by("quality",new Iz);function Jz(a,b){X.call(this,a,b);var c=this;this.g=al();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);Kz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){Kz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Kz(c)});
|
|
1185
|
+
this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.xb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ze(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(Jz,X);function Kz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}I("shaka.ui.RewindButton",Jz);function Lz(){}Lz.prototype.create=function(a,b){return new Jz(a,b)};by("rewind",new Lz);function Mz(a,b){X.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");Y(this.h,!1);this.j.appendChild(this.h);this.g=al();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Y(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Nz(this);this.i=new N(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
|
|
1181
1186
|
d:(c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Nz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Nz(c)});this.eventManager.o(this.adManager,"ad-started",function(){Oz(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Y(c.g,!1);Y(c.h,!1)});this.eventManager.o(this.g,
|
|
1182
|
-
"click",function(){c.ad.skip()});this.ad&&Oz(this)}pa(Mz,X);Mz.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function Nz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Oz(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.
|
|
1183
|
-
I("shaka.ui.SmallPlayButton",Pz);function Qz(){}Qz.prototype.create=function(a,b){return new Pz(a,b)};by("play_pause",new Qz);function Rz(a,b){X.call(this,a,b);a=R("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}pa(Rz,X);I("shaka.ui.Spacer",Rz);function Sz(){}Sz.prototype.create=function(a,b){return new Rz(a,b)};by("spacer",new Sz);function Tz(a,b){function c(k){return Cx(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}X.call(this,a,b);var h=this;this.i=
|
|
1187
|
+
"click",function(){c.ad.skip()});this.ad&&Oz(this)}pa(Mz,X);Mz.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function Nz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Oz(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.Aa(),a.i.ha(.5))}I("shaka.ui.SkipAdButton",Mz);function Pz(a,b){Gx.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}pa(Pz,Gx);Pz.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};Pz.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)}};
|
|
1188
|
+
I("shaka.ui.SmallPlayButton",Pz);function Qz(){}Qz.prototype.create=function(a,b){return new Pz(a,b)};by("play_pause",new Qz);function Rz(a,b){X.call(this,a,b);a=R("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}pa(Rz,X);I("shaka.ui.Spacer",Rz);function Sz(){}Sz.prototype.create=function(a,b){return new Rz(a,b)};by("spacer",new Sz);function Tz(a,b){function c(k){return Cx(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}X.call(this,a,b);var h=this;this.i=al();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);a=R("label");a.classList.add("shaka-overflow-button-label");
|
|
1184
1189
|
this.s=R("span");a.appendChild(this.s);this.m=R("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);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();
|
|
1185
|
-
this.B={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new
|
|
1186
|
-
k.next())l=l.value,h.B[l].textContent=h.C[l](l)});Uz(this);Vz(this);this.eventManager.o(this.localization,"locale-updated",function(){Uz(h)});this.eventManager.o(this.localization,"locale-changed",function(){Uz(h)});this.eventManager.o(this.i,"click",function(){Y(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.
|
|
1190
|
+
this.B={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new N(function(){h.h=h.player.getStats();for(var k=r(h.F),l=k.next();!l.done;l=
|
|
1191
|
+
k.next())l=l.value,h.B[l].textContent=h.C[l](l)});Uz(this);Vz(this);this.eventManager.o(this.localization,"locale-updated",function(){Uz(h)});this.eventManager.o(this.localization,"locale-changed",function(){Uz(h)});this.eventManager.o(this.i,"click",function(){Y(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ha(.1),Y(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Y(h.g,!1));Uz(h)})}pa(Tz,X);
|
|
1187
1192
|
function Uz(a){a.s.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
|
|
1188
|
-
function Vz(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
|
|
1193
|
+
function Vz(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 Ua("Unrecognized statistic element:",c)}Tz.prototype.release=function(){this.l.stop();this.l=null;X.prototype.release.call(this)};I("shaka.ui.StatisticsButton",Tz);function Wz(){}
|
|
1189
1194
|
Wz.prototype.create=function(a,b){return new Tz(a,b)};Ay("statistics",new Wz);Mx("statistics",new Wz);function Xz(a,b){Ry.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";Yz(this);this.eventManager.o(this.localization,"locale-updated",function(){Zz(c);$z(c)});this.eventManager.o(this.localization,"locale-changed",function(){Zz(c);$z(c)});this.eventManager.o(this.player,
|
|
1190
|
-
"texttrackvisibility",function(){aA(c);$z(c)});this.eventManager.o(this.player,"textchanged",function(){$z(c)});this.eventManager.o(this.player,"trackschanged",function(){bA(c)});aA(this);Zz(this);$z(this);bA(this)}pa(Xz,Ry);function Yz(a){var b=
|
|
1195
|
+
"texttrackvisibility",function(){aA(c);$z(c)});this.eventManager.o(this.player,"textchanged",function(){$z(c)});this.eventManager.o(this.player,"trackschanged",function(){bA(c)});aA(this);Zz(this);$z(this);bA(this)}pa(Xz,Ry);function Yz(a){var b=al();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Bx());a.g=R("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
|
|
1191
1196
|
function aA(a){a.player.Nb()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new L("captionselectionupdated"))}
|
|
1192
|
-
function $z(a){var b=a.player.yb();Py(b,a.menu,function(c){return cA(a,c)},a.player.Nb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=
|
|
1197
|
+
function $z(a){var b=a.player.yb();Py(b,a.menu,function(c){return cA(a,c)},a.player.Nb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=al();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Se(!1);$z(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Nb()||(b.ariaSelected="true",b.appendChild(Bx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
|
|
1193
1198
|
a.currentSelection.textContent);Ax(a.menu);a.controls.dispatchEvent(new L("captionselectionupdated"))}function cA(a,b){return G(function(c){a.player.Je(b);return u(c,a.player.Se(!0),0)})}function Zz(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")}
|
|
1194
1199
|
function bA(a){var b=0<a.player.yb().length;Y(a.button,b);$z(a)}I("shaka.ui.TextSelection",Xz);function dA(){}dA.prototype.create=function(a,b){return new Xz(a,b)};Ay("captions",new dA);by("captions",new dA);function eA(a,b){Ox.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 fA(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return gA(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return gA(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return fA(c)});this.eventManager.o(this.localization,"locale-updated",function(){return hA(c)});
|
|
1195
1200
|
this.eventManager.o(this.localization,"locale-changed",function(){return hA(c)});fA(this);hA(this);if(this.ad)this.onChange()}pa(eA,Ox);eA.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 fA(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);iA(a)}function gA(a){var b=a.ad.getVolume();a.setValue(b);iA(a)}
|