PageSourceSearch

https://eloquent-melba-91fb9d.netlify.app/content/js/shaka-player.ui.js

js eloquent-melba-91fb9d.netlify.app collected 2026-10-03 10:41:38 UTC 491,343 bytes, 1,086 lines download raw bytes

vendor: 2,381 bytes, lines 1-17
1/*
2 @license
3 Shaka Player
4 Copyright 2016 Google LLC
5 SPDX-License-Identifier: Apache-2.0
6*/
7(function(){var innerGlobal=typeof window!="undefined"?window:global;var exportTo={};(function(window,global,module){/*
8
9 Copyright The Closure Library Authors.
10 SPDX-License-Identifier: Apache-2.0
11*/
12var q;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
13function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ea=da(this);function fa(a,b){if(b)a:{for(var c=ea,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ca(c,d,{configurable:!0,writable:!0,value:f})}}
14fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ca(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
15fa("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}
16function 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;
17if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;la=pa.a;break a}catch(a){}la=!1}
17ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=ka;
18function ra(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(qa)qa(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.zi=b.prototype}function sa(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.o=0;this.D=this.i=null}function ta(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}sa.prototype.B=function(a){this.h=a};
19function ua(a,b){a.i={Re:b,$e:!0};a.g=a.o||a.j}sa.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}sa.prototype.C=function(a){this.g=a};function z(a){a.g=0}function A(a,b,c){a.o=b;void 0!=c&&(a.j=c)}function va(a){a.o=0;a.j=2}function wa(a,b,c){a.g=b;a.o=c||0}function E(a,b){a.o=b||0;var c=a.i.Re;a.i=null;return c}function xa(a){a.D=[a.i];a.o=0;a.j=0}
20function ya(a,b){var c=a.D.splice(0)[0];(c=a.i=a.i||c)?c.$e?a.g=a.o||a.j:void 0!=c.C&&a.j<c.C?(a.g=c.C,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new sa;this.h=a}function Aa(a,b){ta(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Ca(a)}
21function Ba(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.A=!1,e;var f=e.value}catch(g){return a.g.l=null,ua(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}
22function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ua(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.$e)throw b.Re;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
23function Da(a){this.next=function(b){ta(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ca(a));return b};this["throw"]=function(b){ta(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.B):(ua(a.g,b),b=Ca(a));return b};this["return"]=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}function Fa(a,b){var c=new Da(new za(b));qa&&a.prototype&&qa(c,a.prototype);return c}
24function Ga(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}function H(a){return Ga(new Da(new za(a)))}
25fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.A=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=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=
26g[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.K),reject:g(this.l)}};b.prototype.K=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.O(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.I(g):this.o(g)}};
27b.prototype.I=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.R(h,g):this.o(g)};b.prototype.l=function(g){this.B(2,g)};b.prototype.o=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.N();this.D()};b.prototype.N=function(){var g=this;e(function(){if(g.H()){var h=ea.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.H=
28function(){if(this.A)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.D=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;
29b.prototype.O=function(g){var h=this.j();g.Yc(h.resolve,h.reject)};b.prototype.R=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(p,t){return"function"==typeof p?function(v){try{l(p(v))}catch(w){m(w)}}:t}var l,m,n=new b(function(p,t){l=p;m=t});
vendor: 4,329 bytes, lines 29-40
29this.Yc(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Yc=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
30break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=r(g),m=l.next();!m.done;m=l.next())d(m.value).Yc(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(v){return function(w){p[v]=w;t--;0==t&&l(p)}}var p=[],t=0;do p.push(void 0),t++,d(k.value).Yc(n(p.length-1),m),k=h.next();
31while(!k.done)})};return b});function Ha(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
32fa("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({}),
33m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m["delete"](k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ha(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ha(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
34Ha(k,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});
35fa("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(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,ya:p}}return{id:l,
36list:m,index:-1,ya:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=r(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(r([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
37"t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.ya?l.ya.value=k:(l.ya={next:this.g,mb:this.g.mb,head:this.g,key:h,value:k},l.list.push(l.ya),this.g.mb.next=l.ya,this.g.mb=l.ya,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.ya&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.ya.mb.next=h.ya.next,h.ya.next.mb=h.ya.mb,
38h.ya.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).ya};e.prototype.get=function(h){return(h=d(this,h).ya)&&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(),
39m;!(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});
40fa("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;
vendor: 1,486 bytes, lines 40-43
40try{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||
41f.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;
42b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});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})}});
43fa("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;
43)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}});function Ka(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{za:e,yf:f}}return{za:-1,yf:void 0}}
44fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).za}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});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,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});
45function 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+""}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 Ka(this,b,c).yf}});
46fa("String.prototype.startsWith",function(a){return a?a:function(b,c){for(var d=La(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});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});
47fa("Array.prototype.values",function(a){return a?a:function(){return Ia(this,function(b,c){return c})}});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]})}});
48fa("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("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}});
49fa("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 Oa=this||self;function I(a,b){var c=a.split("."),d=Oa;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};/*
50 @license
51 Shaka Player
52 Copyright 2016 Google LLC
53 SPDX-License-Identifier: Apache-2.0
54*/
55function K(a,b){b=void 0===b?{}:b;for(var 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}K.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};K.prototype.stopImmediatePropagation=function(){this.g=!0};
56K.prototype.stopPropagation=function(){};I("shaka.util.FakeEvent",K);function Pa(){}function Qa(){}function Ra(){}function Sa(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];Ta.has(a)||(Ta.add(a),Ra.apply(Pa,ia(c)))}function Ua(){}function Va(){}function Wa(){}function Xa(){}var Ta=new Set;
57if(window.console&&window.console.log.bind){var Ya={},$a=(Ya[1]=console.error.bind(console),Ya[2]=console.warn.bind(console),Ya[3]=console.info.bind(console),Ya[4]=console.log.bind(console),Ya[5]=console.debug.bind(console),Ya[6]=console.debug.bind(console),Ya);Ra=$a[2];Qa=$a[1]};function ab(){this.g={}}q=ab.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function bb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function cb(){this.Vc=new ab;this.Uc=this}cb.prototype.addEventListener=function(a,b){this.Vc.push(a,b)};cb.prototype.removeEventListener=function(a,b){this.Vc.remove(a,b)};cb.prototype.dispatchEvent=function(a){var b=this.Vc.get(a.type)||[],c=this.Vc.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.Uc;a.currentTarget=this.Uc;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};function db(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function eb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function fb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function gb(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c}
58var ib=function hb(a){var c;return Fa(hb,function(d){1==d.g&&(c=0);if(3!=d.g)return c<a?u(d,c,3):d.C(0);c++;return d.C(2)})},kb=function jb(a){var c,d,e,f,g,h;return Fa(jb,function(k){1==k.g&&(c=-1,e=d=void 0,f=r(a),g=f.next());if(5!=k.g){if(g.done)return-1==c?k.C(0):u(k,{za:c,Jg:d,item:e,next:void 0},0);h=g.value;return 0<=c?u(k,{za:c,item:e,Jg:d,next:h},5):k.C(5)}c++;d=e;e=h;g=f.next();return k.C(2)})};/*
59 @license
60 Copyright 2008 The Closure Library Authors
61 SPDX-License-Identifier: Apache-2.0
62*/
63var lb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;/*
64 @license
65 Copyright 2006 The Closure Library Authors
66 SPDX-License-Identifier: Apache-2.0
67*/
68function ob(a){var b;a instanceof ob?(pb(this,a.Wa),this.Rb=a.Rb,this.Ya=a.Ya,qb(this,a.ic),this.Qa=a.Qa,rb(this,a.g.clone()),this.Eb=a.Eb):a&&(b=String(a).match(lb))?(pb(this,b[1]||"",!0),this.Rb=sb(b[2]||""),this.Ya=sb(b[3]||"",!0),qb(this,b[4]),this.Qa=sb(b[5]||"",!0),rb(this,b[6]||"",!0),this.Eb=sb(b[7]||"")):this.g=new tb(null)}q=ob.prototype;q.Wa="";q.Rb="";q.Ya="";q.ic=null;q.Qa="";q.Eb="";
69q.toString=function(){var a=[],b=this.Wa;b&&a.push(vb(b,wb,!0),":");if(b=this.Ya){a.push("//");var c=this.Rb;c&&a.push(vb(c,wb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ic;null!=b&&a.push(":",String(b))}if(b=this.Qa)this.Ya&&"/"!=b.charAt(0)&&a.push("/"),a.push(vb(b,"/"==b.charAt(0)?xb:yb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Eb)&&a.push("#",vb(b,zb));return a.join("")};
70q.resolve=function(a){var b=this.clone();"data"===b.Wa&&(b=new ob);var c=!!a.Wa;c?pb(b,a.Wa):c=!!a.Rb;c?b.Rb=a.Rb:c=!!a.Ya;c?b.Ya=a.Ya:c=null!=a.ic;var d=a.Qa;if(c)qb(b,a.ic);else if(c=!!a.Qa){if("/"!=d.charAt(0))if(this.Ya&&!this.Qa)d="/"+d;else{var e=b.Qa.lastIndexOf("/");-1!=e&&(d=b.Qa.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(""):".."==
71h?((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.Qa=d:c=""!==a.g.toString();c?rb(b,a.g.clone()):c=!!a.Eb;c&&(b.Eb=a.Eb);return b};q.clone=function(){return new ob(this)};function pb(a,b,c){a.Wa=c?sb(b,!0):b;a.Wa&&(a.Wa=a.Wa.replace(/:$/,""))}function qb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ic=b}else a.ic=null}function rb(a,b,c){b instanceof tb?a.g=b:(c||(b=vb(b,Ab)),a.g=new tb(b))}
72function sb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function vb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Cb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Cb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var wb=/[#\/\?@]/g,yb=/[#\?:]/g,xb=/[#\?]/g,Ab=/[#\?@]/g,zb=/#/g;function tb(a){this.g=a||null}q=tb.prototype;q.Na=null;q.$c=null;
73q.add=function(a,b){if(!this.Na&&(this.Na={},this.$c=0,this.g))for(var c=this.g.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.g=null;(c=this.Na.hasOwnProperty(a)&&this.Na[a])||(this.Na[a]=c=[]);c.push(b);this.$c++;return this};
74q.toString=function(){if(this.g)return this.g;if(!this.Na)return"";var a=[],b;for(b in this.Na)for(var c=encodeURIComponent(b),d=this.Na[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 tb;a.g=this.g;if(this.Na){var b={},c;for(c in this.Na)b[c]=this.Na[c].concat();a.Na=b;a.$c=this.$c}return a};function N(a,b,c,d){for(var e=[],f=3;f<arguments.length;++f)e[f-3]=arguments[f];this.severity=a;this.category=b;this.code=c;this.data=e;this.handled=!1}N.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null,"  ")};I("shaka.util.Error",N);N.Severity={RECOVERABLE:1,CRITICAL:2};N.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
75N.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,
76TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
77MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,
78HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,
79HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,
80ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,
81STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OP
81ERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,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 Db(a,b){this.g=a;this.h=b}Db.prototype.toString=function(){return"v"+this.g+"."+this.h};function Eb(a,b){var c=new Db(4,0),d=Fb,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Gb(a,b,c,d){Ra([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Hb(a,b,c,d){Qa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Fb=null;function Ib(a,b){return a.concat(b)}function Jb(){}function Kb(a){return null!=a}function Lb(a){var b=Object.create(a.prototype||Object.prototype);try{var c=a.call(b);c||(Eb("Factories requiring new","Factories should be plain functions"),c=b)}catch(d){Eb("Factories requiring new","Factories should be plain functions"),c=new a}return c};function Mb(a,b){if(0==b.length)return a;var c=b.map(function(d){return new ob(d)});return a.map(function(d){return new ob(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(Ib,[]).map(function(d){return d.toString()})}function Nb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
82function Ob(a,b){if(1==b.length)return b[0];var c=Pb(a,b);if(null!=c)return c;throw new N(2,4,4025,b);}function Pb(a,b){for(var c=r(Qb[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==Rb?"":null}var Rb="text",Sb={fb:"video",zb:"audio",oa:Rb,tc:"image",ih:"application"},Qb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Tb(a,b){a=Ub(a);b=Ub(b);return a.split("-")[0]==b.split("-")[0]}function Vb(a,b){a=Ub(a);b=Ub(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Wb(a,b){a=Ub(a);b=Ub(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Ub(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Xb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Yb(a,b){a=Ub(a);b=Ub(b);return b==a?4:Vb(b,a)?3:Wb(b,a)?2:Vb(a,b)?1:0}
83function Zb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Xb.get(a)||a}function ac(a){return a.language?Ub(a.language):a.audio&&a.audio.language?Ub(a.audio.language):a.video&&a.video.language?Ub(a.video.language):"und"}
84function bc(a,b){for(var c=Ub(a),d=new Set,e=r(b),f=e.next();!f.done;f=e.next())d.add(Ub(f.value));e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Vb(f,c))return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Wb(f,c))return f;d=r(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Vb(c,f))return f;return null}
85var Xb=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",
86"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"],["
86ibo","ig"],["ice",
87"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",
88"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",
89"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",
90"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function cc(a){this.l=Ub(a);this.j=new Map;this.h=new Set;this.i=new Map;this.g=new cb}q=cc.prototype;q.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};q.removeEventListener=function(a,b,c){this.g.removeEventListener(a,b,c||void 0)};q.dispatchEvent=function(a){return this.g.dispatchEvent(a)};
91q.Le=function(a){var b=this;this.h.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.h.add(Ub(c.value));dc(this);a=gb(this.h,function(d){return!b.i.has(d)});a.length&&this.g.dispatchEvent(new K("unknown-locales",{locales:a}));a=gb(this.h,function(d){return b.i.has(d)});this.g.dispatchEvent(new K("locale-changed",{locales:a.length?a:[this.l]}))};
92q.ha=function(a,b,c){a=Ub(a);void 0===c&&(c=ec);var d=this.i.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=ec||d.set(f,e)});this.i.set(a,d);dc(this);this.g.dispatchEvent(new K("locale-updated"));return this};q.Sg=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.j.get(a);if(b)return b;a={locales:Array.from(this.h),missing:a};this.g.dispatchEvent(new K("unknown-localization",a));return""};
93function dc(a){for(var b=a.i,c=a.l,d=a.h,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Wb:f.Wb},h=g.next()){f.Wb=h.value;e.add(f.Wb);e.add(Zb(f.Wb));h=gb(b.keys(),function(l){return function(m){var n=l.Wb,p=Zb(m),t=Zb(n);return m!=p&&n!=t&&p==t}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=gb(b.keys(),function(l){return function(m){return Zb(m)==l.Wb}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=
94b.get(h.value))&&c.push(h);c.reverse();a.j.clear();b=r(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.j.set(m,l)});b=a.j.keys();e=new Set;c=r(a.h);for(h=c.next();!h.done;h=c.next())h=a.i.get(h.value)||new Map,fc(h,b,e);0<e.size&&(d={locales:Array.from(d),missing:Array.from(e)},a.g.dispatchEvent(new K("missing-localizations",d)))}function fc(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",cc);cc.prototype.resolve=cc.prototype.resolve;
95cc.prototype.resolveDictionary=cc.prototype.Sg;cc.prototype.insert=cc.prototype.ha;cc.prototype.changeLocale=cc.prototype.Le;cc.prototype.dispatchEvent=cc.prototype.dispatchEvent;cc.prototype.removeEventListener=cc.prototype.removeEventListener;cc.prototype.addEventListener=cc.prototype.addEventListener;var ec=1;cc.ConflictResolution={USE_OLD:0,USE_NEW:ec};cc.UNKNOWN_LOCALES="unknown-locales";cc.UNKNOWN_LOCALIZATION="unknown-localization";cc.MISSING_LOCALIZATIONS="missing-localizations";
96cc.LOCALE_CHANGED="locale-changed";cc.LOCALE_UPDATED="locale-updated";var gc={oi:"VOLUME",ki:"UNDETERMINED_LANGUAGE",fh:"AD_DURATION",Jh:"MUTE",Qh:"PAUSE",Mh:"OFF",mi:"UNRECOGNIZED_LANGUAGE",Yh:"SEEK",Bh:"FULL_SCREEN",Lh:"NOT_APPLICABLE",Wh:"REWIND",Ah:"FAST_FORWARD",Uh:"REPLAY",uh:"EXIT_FULL_SCREEN",wh:"EXIT_PICTURE_IN_PICTURE",Vh:"RESOLUTION",vh:"EXIT_LOOP_MODE",$h:"SKIP_TO_LIVE",li:"UNMUTE",nh:"
96CAPTIONS",Sh:"PLAY",Dh:"LOOP",BACK:"BACK",Nh:"ON",Ih:"MULTIPLE_LANGUAGES",qh:"ENTER_LOOP_MODE",zf:"SUBTITLE_FORCED",Th:"PLAYBACK_RATE",Rh:"PICTURE_IN_PICTURE",AD_PROGRESS:"AD_PROGRESS",
97gh:"AD_TIME",Ch:"LANGUAGE",jh:"AUTO_QUALITY",Hh:"MORE_SETTINGS",rh:"ENTER_PICTURE_IN_PICTURE",hh:"AIRPLAY",Zh:"SKIP_AD",oh:"CAST",He:"LIVE"};function hc(a){this.i=Math.exp(Math.log(.5)/a);this.h=this.g=0}function ic(a,b,c){var d=Math.pow(a.i,b);c=c*(1-d)+d*a.g;isNaN(c)||(a.g=c,a.h+=b)}function jc(a){return a.g/(1-Math.pow(a.i,a.h))};function kc(){this.h=new hc(2);this.i=new hc(5);this.g=0}kc.prototype.getBandwidthEstimate=function(a){return 128E3>this.g?a:Math.min(jc(this.h),jc(this.i))};function lc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function mc(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function nc(a,b,c){c||(c=lc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Cd:d.Cd},e=a.next()){d.Cd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Cd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
98function oc(a,b,c){c||(c=lc);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 pc(a,b,c){this.startTime=a;this.direction=qc;this.endTime=b;this.payload=c;this.region=new rc;this.position=null;this.positionAlign=tc;this.size=0;this.textAlign=uc;this.writingMode=vc;this.lineInterpretation=wc;this.line=null;this.lineHeight="";this.lineAlign=xc;this.displayAlign=yc;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=zc;this.fontStyle=Ac;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textDecoration=
99[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.spacer=this.lineBreak=!1;this.cellResolution={columns:32,rows:15}}pc.prototype.clone=function(){var a=new pc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
100function Bc(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(!oc(a.nestedCues,b.nestedCues,Bc))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(!oc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}I("shaka.text.Cue",pc);var tc="auto";
101pc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:tc};var uc="center",Cc={LEFT:"left",RIGHT:"right",CENTER:uc,START:"start",END:"end"};pc.textAlign=Cc;var yc="after",Dc={BEFORE:"before",CENTER:"center",AFTER:yc};pc.displayAlign=Dc;var qc="ltr";pc.direction={HORIZONTAL_LEFT_TO_RIGHT:qc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var vc="horizontal-tb";pc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:vc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var wc=0;
102pc.lineInterpretation={LINE_NUMBER:wc,PERCENTAGE:1};var xc="start",Ec={CENTER:"center",START:xc,END:"end"};pc.lineAlign=Ec;var Fc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};pc.defaultTextColor=Fc;var Gc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};pc.defaultTextBackgroundColor=Gc;var zc=400;pc.fontWeight={NORMAL:zc,BOLD:700};
103var Ac="normal",Hc={NORMAL:Ac,ITALIC:"italic",OBLIQUE:"oblique"};pc.fontStyle=Hc;pc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function rc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ic;this.scroll=Jc}I("shaka.text.CueRegion",rc);var Ic=1;rc.units={PX:0,PERCENTAGE:Ic,LINES:2};var Jc="";rc.scrollMode={NONE:Jc,UP:"up"};function Kc(){}function Lc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Mc(a)==Mc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=Nc(a),d=Nc(b),e=r(ib(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0}function Mc(a){return a instanceof ArrayBuffer?a:a.buffer}function Oc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
104function Nc(a,b,c){c=void 0===c?Infinity:c;return Pc(a,void 0===b?0:b,c,Uint8Array)}function Qc(a,b,c){c=void 0===c?Infinity:c;return Pc(a,void 0===b?0:b,c,DataView)}function Pc(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(Mc(a),b,Math.min(b+Math.max(c,0),e)-b)}I("shaka.util.BufferUtils",Kc);Kc.toDataView=Qc;Kc.toUint8=Nc;Kc.toArrayBuffer=Oc;Kc.equal=Lc;function Rc(){}I("shaka.dependencies",Rc);Rc.has=function(a){return Sc.has(a)};Rc.add=function(a,b){if(!Tc[a])throw Error(a+" is not supported");Sc.set(a,function(){return b})};var Tc={muxjs:"muxjs"};Rc.Allowed=Tc;var Sc=new Map([["muxjs",function(){return window.muxjs}]]);function Uc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Uc.prototype.resolve=function(){};Uc.prototype.reject=function(){};function Vc(a){this.h=a;this.g=void 0}Vc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Wc(){}function Xc(a){if(!a)return"";a=Nc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));a=(new TextDecoder).decode(a);a.includes("\ufffd")&&Qa('Decoded string contains an "unknown character" codepoint.  That probably means the UTF8 encoding was incorrect!');return a}
105function Yc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new N(2,2,2004);var d=Math.floor(a.byteLength/2);c=new Uint16Array(d);a=Qc(a);d=r(ib(d));for(var e=d.next();!e.done;e=d.next())e=e.value,c[e]=a.getUint16(2*e,b);return Zc.value()(c)}
106function $c(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Nc(a);if(239==c[0]&&187==c[1]&&191==c[2])return Xc(c);if(254==c[0]&&255==c[1])return Yc(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Yc(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Yc(a,!1);if(0==c[1]&&0==c[3])return Yc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Xc(a);throw new N(2,2,2003);}function ad(a){var b=new TextEncoder;return Oc(b.encode(a))}
107function bd(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=r(kb(a)),f=e.next();!f.done;f=e.next())f=f.value,d.setUint16(2*f.za,f.item.charCodeAt(0),b);return c}I("shaka.util.StringUtils",Wc);Wc.resetFromCharCode=function(){Zc.g=void 0};Wc.toUTF16=bd;Wc.toUTF8=ad;Wc.fromBytesAutoDetect=$c;Wc.fromUTF16=Yc;Wc.fromUTF8=Xc;
108var Zc=new Vc(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={qb:65536};0<b.qb;b={qb:b.qb},b.qb/=2)if(a(b.qb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.qb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.qb));return e}}(b);return null});function cd(){}function dd(a){a=Nc(a);a=Zc.value()(a);return btoa(a)}function ed(a,b){b=void 0==b?!0:b;var c=dd(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function fd(a){var b=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));a=new Uint8Array(b.length);b=r(kb(b));for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.za]=c.item.charCodeAt(0);return a}
109function gd(a){var b=a.length/2,c=new Uint8Array(b);b=r(ib(b));for(var d=b.next();!d.done;d=b.next())d=d.value,c[d]=window.parseInt(a.substr(2*d,2),16);return c}function hd(a){var b=Nc(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}
110function id(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];var d=0,e=r(b);for(c=e.next();!c.done;c=e.next())d+=c.value.byteLength;d=new Uint8Array(d);e=0;b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,d.set(Nc(c),e),e+=c.byteLength;return d}I("shaka.util.Uint8ArrayUtils",cd);cd.concat=id;cd.toHex=hd;cd.fromHex=gd;cd.fromBase64=fd;cd.toBase64=ed;cd.toStandardBase64=dd;
111cd.equal=function(a,b){Eb("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead.");return Lc(a,b)};
111function jd(){var a=this;this.A=Sc.get("muxjs")();this.g=new this.A.mp4.Transmuxer({keepOriginalTimestamps:!0});this.h=null;this.o=[];this.j=[];this.i=[];this.l=!1;this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.o.push(id(b.initSegment,b.data))});this.g.on("done",function(){var b={data:id.apply(cd,ia(a.o)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}jd.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
112function kd(a,b){if(!Sc.get("muxjs")()||!ld(a))return!1;if(b)return MediaSource.isTypeSupported(md(b,a));var c=md("audio",a),d=md("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}function ld(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}
113function md(a,b){var c=b.replace(/mp2t/i,"mp4");"audio"==a&&(c=c.replace("video","audio"));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function nd(a,b){a.l=!0;a.h=new Uc;a.o=[];a.j=[];a.i=[];var c=Nc(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new N(2,3,3018));return a.h};function od(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function pd(a,b,c){a=od(a,b);return Sc.get("muxjs")()&&ld(a)?md(c,a):a}function qd(a){a=a.split(".");var b=a[0];a.pop();return b}function rd(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function sd(a){this.A=null;this.i=a;this.j=this.D=0;this.l=Infinity;this.h=this.g=null;this.B="";this.o=new Map}function td(a){return ud[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}sd.prototype.destroy=function(){this.i=this.A=null;this.o.clear();return Promise.resolve()};
114function vd(a,b,c,d){var e,f,g;return H(function(h){if(1==h.g)return u(h,Promise.resolve(),2);if(!a.A||!a.i)return h["return"]();if(null==c||null==d)return a.A.parseInit(Nc(b)),h["return"]();e={periodStart:a.D,segmentStart:c,segmentEnd:d};f=a.A.parseMedia(Nc(b),e);g=f.filter(function(k){return k.startTime>=a.j&&k.startTime<a.l});a.i.append(g);null==a.g&&(a.g=Math.max(c,a.j));a.h=Math.min(d,a.l);z(h)})}
115sd.prototype.remove=function(a,b){var c=this;return H(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.i||!c.i.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));z(d)})};function xd(a,b,c){a.j=b;a.l=c}function yd(a,b,c){a.B=b;if(b=a.o.get(b))for(var d=r(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
116function zd(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 pc(c.startTime,c.endTime,c.text)});return b}
117function Ad(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,[]);k.startTime+=e;k.endTime+=e;k.startTime>=a.j&&k.startTime<a.l&&(g.get(h).get(f).push(k),h==a.B&&a.i.append([k]))}e=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.o.has(f)||a.o.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.o.get(f).set(h,k);a.g=null==
118a.g?Math.max(c,a.j):Math.min(a.g,Math.max(c,a.j));a.h=Math.max(a.h,Math.min(d,a.l))}I("shaka.text.TextEngine",sd);sd.prototype.destroy=sd.prototype.destroy;sd.findParser=function(a){return ud[a]};sd.unregisterParser=function(a){delete ud[a]};sd.registerParser=function(a,b){ud[a]=b};var ud={};function Bd(a){this.h=a;this.g=null}Bd.prototype.S=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Bd.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Q(a){this.h=a;this.g=null}Q.prototype.Ca=function(){this.stop();this.h();return this};Q.prototype.S=function(a){var b=this;this.stop();this.g=(new Bd(function(){b.h()})).S(a);return this};Q.prototype.ma=function(a){var b=this;this.stop();this.g=(new Bd(function(){b.g.S(a);b.h()})).S(a);return this};Q.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};I("shaka.util.Timer",Q);Q.prototype.stop=Q.prototype.stop;Q.prototype.tickEvery=Q.prototype.ma;Q.prototype.tickAfter=Q.prototype.S;
119Q.prototype.tickNow=Q.prototype.Ca;
119function Cd(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Dd(a){return""!=Ed().canPlayType(a)}function Fd(){return Gd("Tizen")}function Hd(){return Gd("CrKey")}function Id(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Fd()}function Jd(){if(!Id())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}
120function Gd(a){return(navigator.userAgent||"").includes(a)}function Ed(){if(Kd)return Kd;Ld||(Ld=new Q(function(){Kd=null}));(Kd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Kd=document.createElement("video"));Ld.S(1);return Kd}var Ld=null,Kd=null;function Md(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Nd(f,b,c);f=Od(f,d);b=Pd(f);b=Qd(b);var g=Rd(b,e);a.variants=a.variants.filter(function(h){return Sd(h)==g?!0:!1})}function Pd(a){var b=new ab;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Sd(c);b.push(d,c)}return b}
121function Qd(a){var b=0,c=new Map,d=a.size();bb(a,function(e,f){for(var g=r(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new ab);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}
122function Nd(a,b,c){var d={};b=r(b);for(var e=b.next();!e.done;d={Nd:d.Nd},e=b.next())if(d.Nd=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Nd)}}(d)),e.length){a=e;break}d={};c=r(c);for(b=c.next();!b.done;d={yd:d.yd},b=c.next())if(d.yd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.yd)}}(d)),b.length){a=b;break}return a}
123function Rd(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next())if(d=d.value,d==Td||d==Ud){if(a=Vd(a,d),1==a.size())return a.keys()[0]}else if(d==Wd)break;return Xd(a)}function Vd(a,b){var c=0,d=new ab;bb(a,function(e,f){for(var g=0,h=0,k=r(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
124function Xd(a){var b="",c=Infinity;bb(a,function(d,e){for(var f=0,g=0,h=r(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Sd(a){var b="";a.video&&(b=qd(a.video.codecs));var c="";a.audio&&(c=qd(a.audio.codecs));return b+"-"+c}function Yd(a,b,c){a.variants=a.variants.filter(function(d){return Zd(d,b,c)})}
125function Zd(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
126function $d(a,b){return H(function(c){if(1==c.g)return u(c,ae(b,0<b.offlineSessionIds.length),2);be(a,b);ce(b);de(b);z(c)})}function ae(a,b){return H(function(c){if(1==c.g)return u(c,ee(a.variants,b),2);a.variants=a.variants.filter(function(d){var e=d.video;if(Gd("Xbox One")&&e&&(e.width&&1920<e.width||e.height&&1080<e.height)&&e.codecs.includes("avc1."))return Va(fe(d)),!1;(e=d.decodingInfos.some(function(f){return f.supported}))||Va(fe(d));return e});z(c)})}
127function ee(a,b){var c,d,e,f,g,h,k,l,m,n,p;return H(function(t){if(c=a.some(function(v){return v.decodingInfos.length}))return t["return"]();d=navigator.mediaCapabilities;e=[];f=function(v,w){var x;return H(function(y){if(1==y.g)return A(y,2),u(y,d.decodingInfo(w),4);if(2!=y.g)return x=y.h,v.decodingInfos.push(x),wa(y,0);E(y);JSON.stringify(w);z(y)})};g=r(a);for(h=g.next();!h.done;h=g.next())for(k=h.value,l=ge(k,b),m=r(l),n=m.next();!n.done;n=m.next())p=n.value,e.push(f(k,p));return u(t,Promise.all(e),
1280)})}
129function ge(a,b){var c=a.audio,d=a.video,e={type:"media-source"};if(d){var f=d.codecs;if(d.codecs.includes(",")){var g=d.codecs.split(",");f=Ob("video",g);f="vp9"==f?"vp09.00.10.08":f;g=Ob("audio",g);g=pd(d.mimeType,g,"audio");e.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=pd(d.mimeType,"vp9"==f?"vp09.00.10.08":f,"video");
129e.video={contentType:f,width:d.width||1,height:d.height||1,bitrate:d.bandwidth||a.bandwidth||1,framerate:d.frameRate||1}}c&&(f="ac-3"==
130c.codecs.toLowerCase()&&Fd()?"ec-3":c.codecs,f=pd(c.mimeType,f,"audio"),e.audio={contentType:f,channels:c.channelsCount||2,bitrate:c.bandwidth||a.bandwidth||1,samplerate:c.audioSamplingRate||1,spatialRendering:c.spatialAudio});var h=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!h.length)return[e];f=[];g=new Map;h=r(h);for(var k=h.next();!k.done;k=h.next()){var l=k.value;g.get(l.keySystem)||g.set(l.keySystem,[]);g.get(l.keySystem).push(l)}h=b?"required":"optional";l=b?["persistent-license"]:
131["temporary"];for(var m=r(g.keys()),n=m.next();!n.done;n=m.next()){var p=n.value;n=Object.assign({},e);var t=g.get(p);p={keySystem:p,initDataType:"cenc",persistentState:h,distinctiveIdentifier:"optional",sessionTypes:l};t=r(t);for(k=t.next();!k.done;k=t.next()){k=k.value;if(k.initData&&k.initData.length){for(var v=new Set,w=r(k.initData),x=w.next();!x.done;x=w.next())v.add(x.value.initDataType);p.initDataType=k.initData[0].initDataType}k.distinctiveIdentifierRequired&&(p.distinctiveIdentifier="required");
132k.persistentStateRequired&&(p.persistentState="required");k.sessionType&&(p.sessionTypes=[k.sessionType]);c&&(p.audio?p.audio.robustness=p.audio.robustness||k.audioRobustness:p.audio={robustness:k.audioRobustness});d&&(p.video?p.video.robustness=p.video.robustness||k.videoRobustness:p.video={robustness:k.videoRobustness})}n.keySystemConfiguration=p;f.push(n)}return f}
133function be(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!he(d,a.audio)||c&&a&&a.video&&!he(c,a.video)?!1:!0})}function ce(a){a.textStreams=a.textStreams.filter(function(b){return td(od(b.mimeType,b.codecs))})}function de(a){a.imageStreams=a.imageStreams.filter(function(b){var c=["image/svg+xml","image/png","image/jpeg"];(Gd("Web0S")||Fd()||Hd())&&c.push("image/webp");return c.includes(b.mimeType)})}
134function he(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
135function ie(a){var b=a.audio,c=a.video,d=b?b.codecs:null,e=c?c.codecs:null,f=[];e&&f.push(e);d&&f.push(d);var g=[];c&&g.push(c.mimeType);b&&g.push(b.mimeType);g=g[0]||null;var h=[];b&&h.push(b.kind);c&&h.push(c.kind);h=h[0]||null;var k=new Set;if(b)for(var l=r(b.roles),m=l.next();!m.done;m=l.next())k.add(m.value);if(c)for(l=r(c.roles),m=l.next();!m.done;m=l.next())k.add(m.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,kind:h,width:null,height:null,
136frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:g,codecs:f.join(", "),audioCodec:d,videoCodec:e,primary:a.primary,roles:Array.from(k),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,a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||
137null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=c.bandwidth||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.label=b.label,a.audioR
137oles=b.roles);return a}
138function je(a){return{id:a.id,active:!1,type:Rb,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,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,originalAudioId:null,
139originalTextId:a.originalId,originalImageId:null}}
140function ke(a){return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:a.width||null,height:a.height||null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:a.tilesLayout||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,
141originalTextId:null,originalImageId:a.originalId}}function le(a){a.__shaka_id||(a.__shaka_id=me++);return a.__shaka_id}function ne(a){var b=oe(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}
142function pe(a){var b=oe(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}
143function oe(a){return{id:le(a),active:!1,type:"",bandwidth:0,language:Ub(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioR
143oles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null}}
144function qe(a){return a.allowedByApplication&&a.allowedByKeySystem}function re(a){return a.filter(function(b){return qe(b)})}
145function Od(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=r(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;e=c.filter(function(g){return g<=b});return e.length?d.get(Math.max.apply(Math,ia(e))):d.get(Math.min.apply(Math,ia(c)))}
146function se(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=bc(Ub(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Ub(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=te(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(Ib,[]);return a.length?
147te(e,a[0]):e}function te(a,b){return a.filter(function(c){return c.roles.includes(b)})}function fe(a){var b=[];a.audio&&b.push(ue(a.audio));a.video&&b.push(ue(a.video));return b.join(", ")}
148function ue(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"}var me=0,Td="smooth",Ud="powerEfficient",Wd="bandwidth";function ve(){var a=this;this.j=null;this.h=!1;this.g=new kc;navigator.connection&&navigator.connection.addEventListener("change",function(){if(a.s.useNetworkInformation&&a.h){a.g=new kc;var b=a.chooseVariant();b&&a.j(b)}});this.i=[];this.o=1;this.A=!1;this.s=this.l=null}q=ve.prototype;q.stop=function(){this.j=null;this.h=!1;this.i=[];this.o=1;this.l=null};q.init=function(a){this.j=a};
149q.chooseVariant=function(){var a=we(this.s.restrictions,this.i),b=this.g.getBandwidthEstimate(xe(this));this.i.length&&!a.length&&(a=we(null,this.i),a=[a[0]]);var c=a[0]||null;a=r(kb(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.item;var f=isNaN(this.o)?1:Math.abs(this.o);e=f*(e.next||{bandwidth:Infinity}).bandwidth/this.s.bandwidthUpgradeTarget;b>=f*d.bandwidth/this.s.bandwidthDowngradeTarget&&b<=e&&(c=d)}this.l=Date.now();return c};q.enable=function(){this.h=!0};
150q.disable=function(){this.h=!1};q.segmentDownloaded=function(a,b){var c=this.g;if(!(16E3>b)){var d=8E3*b/a,e=a/1E3;c.g+=b;ic(c.h,e,d);ic(c.i,e,d)}if(null!=this.l&&this.h)a:{if(!this.A){if(!(128E3<=this.g.g))break a;this.A=!0}else if(Date.now()-this.l<1E3*this.s.switchInterval)break a;c=this.chooseVariant();this.g.getBandwidthEstimate(xe(this));c&&this.j(c)}};q.getBandwidthEstimate=function(){return this.g.getBandwidthEstimate(this.s.defaultBandwidthEstimate)};q.setVariants=function(a){this.i=a};
151q.playbackRateChanged=function(a){this.o=a};q.configure=function(a){this.s=a};function xe(a){var b=a.s.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.s.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}function we(a,b){a&&(b=b.filter(function(c){return Zd(c,a,{width:Infinity,height:Infinity})}));return b.sort(function(c,d){return c.bandwidth-d.bandwidth})}I("shaka.abr.SimpleAbrManager",ve);ve.prototype.configure=ve.prototype.configure;
152ve.prototype.playbackRateChanged=ve.prototype.playbackRateChanged;ve.prototype.setVariants=ve.prototype.setVariants;ve.prototype.getBandwidthEstimate=ve.prototype.getBandwidthEstimate;ve.prototype.segmentDownloaded=ve.prototype.segmentDownloaded;ve.prototype.disable=ve.prototype.disable;ve.prototype.enable=ve.prototype.enable;ve.prototype.chooseVariant=ve.prototype.chooseVariant;ve.prototype.init=ve.prototype.init;ve.prototype.stop=ve.prototype.stop;function ye(a,b){this.h=a;this.g=new Set([a]);b=b||[];for(var c=r(b),d=c.next();!d.done;d=c.next())this.add(d.value)}ye.prototype.add=function(a){return ze(this.h,a)?(this.g.add(a),!0):!1};
153function ze(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)&&Ae(c,d)&&Be(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(c=a.video,d=b.video,c=!(Ae(c,d)&&Be(c.roles,d.roles)));return c?!1:!0}ye.prototype.values=function(){return this.g.values()};
154function Ae(a,b){if(a.mimeType!=b.mimeType)return!1;var c=a.codecs.split(",").map(function(g){return qd(g)}),d=b.codecs.split(",").map(function(g){return qd(g)});if(c.length!=d.length)return!1;c.sort();d.sort();for(var e=r(ib(c.length)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0}
155function Be(a,b){var c=new Set(a),d=new Set(b);c["delete"]("main");d["delete"]("main");if(c.size!=d.size)return!1;c=r(c);for(var e=c.next();!e.done;e=c.next())if(!d.has(e.value))return!1;return!0};function Ce(a){this.g=a;this.h=new De(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Ce.prototype.create=function(a){var b=this,c=a.filter(function(d){return ze(b.g,d)});return c.length?new ye(c[0],c):this.h.create(a)};function De(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
156De.prototype.create=function(a){var b=[];b=Ee(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Fe(b,this.j);a.length&&(b=a);this.g&&(a=Od(b,this.g),a.length&&(b=a));this.h&&(a=Ge(b,this.h),a.length&&(b=a));a=new ye(b[0]);b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,ze(a.h,c)&&a.add(c);return a};function Ee(a,b){var c=Ub(b),d=bc(c,a.map(function(e){return ac(e)}));return d?a.filter(function(e){return d==ac(e)}):[]}
157function Fe(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Ge(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function He(){this.g=Ie;this.h=(new Map).set(Ie,2).set(Je,1)}function Ke(a,b,c){a.h.set(Ie,c).set(Je,b)}var Je=0,Ie=1;function Le(a,b){var c=Me();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.A=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.o=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}
158function Ne(a){var b,c;return H(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new N(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return u(d,new Promise(function(e){(new Q(e)).S(c/1E3)}),2)}
158a.h*=a.o;z(d)})}function Me(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Oe(a,b){this.promise=a;this.i=b;this.g=!1}function Pe(a){return new Oe(Promise.reject(a),function(){return Promise.resolve()})}function Qe(){var a=Promise.reject(new N(2,7,7001));a["catch"](function(){});return new Oe(a,function(){return Promise.resolve()})}function Re(a){return new Oe(Promise.resolve(a),function(){return Promise.resolve()})}function Se(a){return new Oe(a,function(){return a["catch"](function(){})})}Oe.prototype.abort=function(){this.g=!0;return this.i()};
159function Te(a){return new Oe(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Oe.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
160Oe.prototype.qa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Ue(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Uc,g=new N(2,7,7001);this.promise.then(c(!0),c(!1));return new Oe(f,function(){return d()})};
161function Ue(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",Oe);Oe.prototype.chain=Oe.prototype.qa;Oe.prototype["finally"]=Oe.prototype["finally"];Oe.all=Te;Oe.prototype.abort=Oe.prototype.abort;Oe.notAbortable=Se;Oe.completed=Re;Oe.aborted=Qe;Oe.failed=Pe;function Ve(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 We(a){var b={},c;for(c in a)b[c]=a[c];return b};function Xe(){this.g=[]}function Ye(a,b){a.g.push(b["finally"](function(){mc(a.g,b)}))}Xe.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 Ze(a){cb.call(this);this.i=!1;this.l=new Xe;this.g=new Set;this.h=new Set;this.j=a||null;this.o=!1}ra(Ze,cb);q=Ze.prototype;q.ue=function(a){this.o=a};function $e(a,b,c,d){c=c||af;var e=bf[a];if(!e||c>=e.priority)bf[a]={priority:c,Ig:b,Kg:void 0===d?!1:d}}q.Lg=function(a){this.g.add(a)};q.ah=function(a){this.g["delete"](a)};q.Hf=function(){this.g.clear()};q.Mg=function(a){this.h.add(a)};q.bh=function(a){this.h["delete"](a)};q.If=function(){this.h.clear()};
162function cf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,
162streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();return this.l.destroy()};
163q.request=function(a,b){var c=this,d=new df;if(this.i){var e=Promise.reject(new N(2,7,7001));e["catch"](function(){});return new ef(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Ve(b.retryParameters):Me();b.uris=Ve(b.uris);e=ff(this,a,b);var f=e.qa(function(){return gf(c,a,b,new Le(b.retryParameters,!1),0,null,d)}),g=f.qa(function(n){return hf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
164var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.qa(function(n){var p=Date.now()-l,t=n.response;t.timeMs+=k;t.timeMs+=p;n.ug||!c.j||t.fromCache||a!=jf||c.j(t.timeMs,t.data.byteLength);return t},function(n){n&&(n.severity=2);throw n;});e=new ef(m.promise,function(){return m.abort()},d);Ye(this.l,e);return e};
165function ff(a,b,c){var d=Re(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Id:e.Id},f=a.next())e.Id=f.value,d=d.qa(function(g){return function(){c.body&&(c.body=Oc(c.body));return g.Id(b,c)}}(e));return d.qa(void 0,function(g){if(g instanceof N&&7001==g.code)throw g;throw new N(2,1,1006,g);})}
166function gf(a,b,c,d,e,f,g){a.o&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new ob(c.uris[e]),k=h.Wa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),pb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=bf[k])?k.Ig:null;if(!m)return Pe(new N(2,1,1E3,h));var n=k.Kg,p=null,t=null,v=!1,w;return Se(Ne(d)).qa(function(){if(a.i)return Qe();w=Date.now();var x=m(c.uris[e],c,b,function(D,B,F){p&&p.stop();t&&t.S(C/1E3);a.j&&b==jf&&(a.j(D,B),l=!0,g.g=F)});if(!n)return x;var y=c.retryParameters.connectionTimeout;
167y&&(p=new Q(function(){v=!0;x.abort()}),p.S(y/1E3));var C=c.retryParameters.stallTimeout;C&&(t=new Q(function(){v=!0;x.abort()}));return x}).qa(function(x){p&&p.stop();t&&t.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-w);return{response:x,ug:l}},function(x){p&&p.stop();t&&t.stop();if(a.i)return Qe();v&&(x=new N(1,1,1003,c.uris[e],b));if(x instanceof N){if(7001==x.code)throw x;if(1010==x.code)throw f;if(1==x.severity){var y=new K("retry",{error:x});a.dispatchEvent(y);e=(e+1)%c.uris.length;return gf(a,
168b,c,d,e,x,g)}}throw x;})}function hf(a,b,c){var d=Re(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Jd:e.Jd},f=a.next())e.Jd=f.value,d=d.qa(function(g){return function(){var h=c.response;h.data&&(h.data=Oc(h.data));return g.Jd(b,h)}}(e));return d.qa(function(){return c},function(g){var h=2;if(g instanceof N){if(7001==g.code)throw g;h=g.severity}throw new N(h,1,1007,g);})}I("shaka.net.NetworkingEngine",Ze);Ze.prototype.request=Ze.prototype.request;Ze.prototype.destroy=Ze.prototype.destroy;
169Ze.makeRequest=cf;Ze.defaultRetryParameters=function(){return Me()};Ze.prototype.clearAllResponseFilters=Ze.prototype.If;Ze.prototype.unregisterResponseFilter=Ze.prototype.bh;Ze.prototype.registerResponseFilter=Ze.prototype.Mg;Ze.prototype.clearAllRequestFilters=Ze.prototype.Hf;Ze.prototype.unregisterRequestFilter=Ze.prototype.ah;Ze.prototype.registerRequestFilter=Ze.prototype.Lg;Ze.unregisterScheme=function(a){delete bf[a]};Ze.registerScheme=$e;Ze.prototype.setForceHTTPS=Ze.prototype.ue;
170function df(){this.g=0}Ze.NumBytesRemainingClass=df;function ef(a,b,c){Oe.call(this,a,b);this.h=c}ra(ef,Oe);Ze.PendingRequest=ef;var jf=1;Ze.RequestType={MANIFEST:0,SEGMENT:jf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var af=3;Ze.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:af};var bf={};function kf(a){this.g=!1;this.h=new Uc;this.i=a}kf.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 lf(a,b){if(a.g){if(b instanceof N&&7003==b.code)throw b;throw new N(2,7,7003,b);}};function mf(){this.g=new ab}q=mf.prototype;q.release=function(){this.Pb();this.g=null};q.m=function(a,b,c,d){this.g&&(a=new nf(a,b,c,d),this.g.push(b,a))};q.Oa=function(a,b,c,d){function e(g){f.Ra(a,b,e);c(g)}var f=this;this.m(a,b,e,d)};q.Ra=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.Ra(),this.g.remove(b,e))}};
171q.Pb=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.Ra();this.g.g={}}};I("shaka.util.EventManager",mf);mf.prototype.removeAll=mf.prototype.Pb;mf.prototype.unlisten=mf.prototype.Ra;mf.prototype.listenOnce=mf.prototype.Oa;mf.prototype.listen=mf.prototype.m;mf.prototype.release=mf.prototype.release;function nf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=of(a,d);this.target.addEventListener(b,c,this.g)}
172nf.prototype.Ra=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function of(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 pf(a)?b:b.capture||!1}
173function pf(a){var b=qf;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}qf=b}return b||!1}var qf=void 0;function rf(){}function sf(a){a=$c(a);return(new ob(a)).Ya}function tf(a,b,c){function d(h){Qc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Nc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new N(2,6,6015);var e;"string"==typeof b?e=bd(b,!0):e=b;a=$c(a);a=bd(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",rf);rf.initDataTransform=tf;rf.defaultGetContentId=sf;function uf(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 vf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function wf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=r(a),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function xf(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.D=new Set;this.g=this.o=null;this.ba=this.R=!1;this.H=0;this.i=null;this.h=new mf;this.j=new Map;this.B=[];this.A=new Uc;this.s=null;this.l=function(d){c.A.reject(d);a.onError(d)};this.ea=new Map;this.V=new Map;this.O=new Q(function(){return yf(c)});this.K=!1;this.I=[];this.N=!1;this.aa=(new Q(function(){zf(c)})).ma(b);this.A["catch"](function(){});this.L=new kf(function(){return Af(c)})}q=xf.prototype;q.destroy=function(){return this.L.destroy()};
174function Af(a){return H(function(b){switch(b.g){case 1:return a.h.release(),a.h=null,a.A.reject(),a.aa.stop(),a.aa=null,a.O.stop(),a.O=null,u(b,Bf(a),2);case 2:if(!a.g){b.C(3);break}A(b,4);return u(b,a.g.setMediaKeys(null),6);case 6:wa(b,5);break;case 4:E(b);case 5:a.g=null;case 3:a.i=null,a.D.clear(),a.o=null,a.B=[],a.s=null,a.l=function(){},a.G=null,z(b)}})}q.configure=function(a){this.s=a};function Cf(a,b,c){a.ba=!0;a.B=[];a.K=c;return Df(a,b)}
175function Ef(a,b,c){a.B=c;a.K=0<c.length;return Df(a,b)}function Ff(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,audioR
175obustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return Gf(a,g,[])}
176function Df(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w;return H(function(x){if(1==x.g){if(c=Hf(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(y){return y.video&&y.video.drmInfos.length||y.audio&&y.audio.drmInfos.length?!0:!1});g||(h=uf(a.s.servers),If(b,h));k=r(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Jf(l),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,Kf(t,uf(a.s.servers),uf(a.s.advanced||{}));return u(x,
177ee(b,a.K),2)}v=g||Object.keys(a.s.servers).length;if(!v)return a.R=!0,x["return"](Promise.resolve());w=Gf(a,void 0,b);return x["return"](g?w:w["catch"](function(){}))})}
178q.vc=function(a){var b=this,c,d;return H(function(e){if(1==e.g){if(!b.o)return b.h.Oa(a,"encrypted",function(){b.l(new N(2,6,6010))}),e["return"]();b.g=a;b.h.Oa(b.g,"play",function(){for(var f=r(b.I),g=f.next();!g.done;g=f.next())Lf(b,g.value);b.N=!0;b.I=[]});"webkitCurrentPlaybackTargetIsWireless"in b.g&&b.h.m(b.g,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Bf(b)});c=b.g.setMediaKeys(b.o);c=c["catch"](function(f){return Promise.reject(new N(2,6,6003,f.message))});return u(e,
179c,2)}lf(b.L);Mf(b);b.i.initData.length||b.B.length||(d=function(f){return Nf(b,f.initDataType,Nc(f.initData))},b.h.m(b.g,"encrypted",d));z(e)})};
180function Of(a){var b,c,d,e,f;return H(function(g){switch(g.g){case 1:if(!a.o||!a.i)return g["return"]();if(!a.i.serverCertificateUri||a.i.serverCertificate&&a.i.serverCertificate.length){g.C(2);break}b=cf([a.i.serverCertificateUri],a.s.retryParameters);A(g,3);c=a.G.Mb.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.i.serverCertificate=Nc(d.data);wa(g,4);break;case 3:throw e=E(g),new N(2,6,6017,e);case 4:if(a.L.g)return g["return"]();case 2:if(!a.i.serverCertificate||!a.i.serverCertificate.length)return g["return"]();
181A(g,6);return u(g,a.o.setServerCertificate(a.i.serverCertificate),8);case 8:wa(g,0);break;case 6:throw f=E(g),new N(2,6,6004,f.message);}})}function Pf(a,b){var c,d,e;return H(function(f){if(1==f.g)return u(f,Qf(a,b),2);c=f.h;if(!c)return f["return"]();d=[];if(e=a.j.get(c))e.bb=new Uc,d.push(e.bb);d.push(c.remove());return u(f,Promise.all(d),0)})}
182function Mf(a){for(var b=(a.i?a.i.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Nf(a,d.initDataType,d.initData);c=r(a.B);for(d=c.next();!d.done;d=c.next())Qf(a,d.value);b.length||a.B.length||a.A.resolve();return a.A}function Nf(a,b,c){var d=a.j.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(Lc(c,e.value.initData)&&!Gd("Tizen 2"))return;Rf(a,b,c,a.i.sessionType)}function Sf(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}
183function Uf(a){a=a.j.keys();a=db(a,function(b){return b.sessionId});return Array.from(a)}q.zc=function(){var a=Infinity,b=this.j.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.fd=function(){return vf(this.V)};
184function Gf(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,w;return H(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=Vf(a,c,d);x.C(2);break}return u(x,Xf(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new N(2,6,6001);lf(a.L);A(x,4);a.D.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.D.add(n.contentType.toLowerCase());p=r(k);for(m=p.next();!m.done;m=p.next())t=m.value,a.D.add(t.contentType.toLowerCase());if(c.length){var y=
185f.keySystem;var C=d.get(f.keySystem);var D=[],B=[],F=[],G=[],J=new Set;Yf(C,D,F,B,G,J);var O=a.K?"persistent-license":"temporary";y={keySystem:y,licenseServerUri:D[0],distinctiveIdentifierRequired:C[0].distinctiveIdentifierRequired,persistentStateRequired:C[0].persistentStateRequired,sessionType:C[0].sessionType||O,audioRobustness:C[0].audioRobustness||"",videoRobustness:C[0].videoRobustness||"",serverCertificate:F[0],serverCertificateUri:B[0],initData:G,keyIds:J};C=r(C);for(D=C.next();!D.done;D=
186C.next())D=D.value,D.distinctiveIdentifierRequired&&(y.distinctiveIdentifierRequired=D.distinctiveIdentifierRequired),D.persistentStateRequired&&(y.persistentStateRequired=D.persistentStateRequired);C=y}else C=f.keySystem,y=b.get(f.keySystem),D=[],B=[],F=[],G=[],J=new Set,Yf(y.drmInfos,D,F,B,G,J),C={keySystem:C,licenseServerUri:D[0],distinctiveIdentifierRequired:"required"==y.distinctiveIdentifier,persistentStateRequired:"required"==y.persistentState,sessionType:y.sessionTypes[0]||"temporary",audioRobustness:(y.audioCapabilities?
187y.audioCapabilities[0].robustness:"")||"",videoRobustness:(y.videoCapabilities?y.videoCapabilities[0].robustness:"")||"",serverCertificate:F[0],serverCertificateUri:B[0],initData:G,keyIds:J};a.i=C;if(!a.i.licenseServerUri)throw new N(2,6,6012,a.i.keySystem);return u(x,f.createMediaKeys(),6);case 6:return v=x.h,lf(a.L),a.o=v,a.R=!0,u(x,Of(a),7);case 7:lf(a.L);wa(x,0);break;case 4:w=E(x);lf(a.L,w);a.i=null;a.D.clear();if(w instanceof N)throw w;throw new N(2,6,6002,w.message);}})}
188function Vf(a,b,c){for(var d=r(b),e=d.next();!e.done;e=d.next()){var f=r(Jf(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 N(2,6,6E3);d={};a=r(a.s.preferredKeySystems);for(e=a.next();!e.done;d={Gd:d.Gd},e=a.next())for(d.Gd=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.ke
188ySystemAccess&&m.keySystemAccess.keySystem==
189l.Gd}}(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}
190function Xf(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w,x;return H(function(y){switch(y.g){case 1:if(1==b.size&&b.has(""))throw new N(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.s.preferredKeySystems);h=g.next();case 2:if(h.done){y.C(4);break}k=h.value;if(!b.has(k)){y.C(3);break}l=b.get(k);A(y,6);return u(y,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
191y.h,y["return"](c);case 6:E(y);case 7:lf(a.L);case 3:h=g.next();y.C(2);break;case 4:m=r([!0,!1]),n=m.next();case 9:if(n.done){y.C(11);break}p=n.value;t=r(b.keys());h=t.next();case 12:if(h.done){n=m.next();y.C(9);break}v=h.value;w=b.get(v);x=w.drmInfos.some(function(C){return!!C.licenseServerUri});if(x!=p){y.C(13);break}A(y,15);return u(y,navigator.requestMediaKeySystemAccess(v,[w]),17);case 17:return c=y.h,y["return"](c);case 15:E(y);case 16:lf(a.L);case 13:h=t.next();y.C(12);break;case 11:return y["return"](c)}})}
192function Hf(a){a=uf(a.s.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=gd(f),h=gd(e);g={kty:"oct",kid:ed(g,!1),k:ed(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Nc(ad(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
193serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
194function Qf(a,b){var c,d,e,f,g;return H(function(h){switch(h.g){case 1:try{c=a.o.createSession("persistent-license")}catch(k){return d=new N(2,6,6005,k.message),a.l(d),h["return"](Promise.reject(d))}a.h.m(c,"message",function(k){a.g&&a.s.delayLicenseRequestUntilPlayed&&a.g.paused&&!a.N?a.I.push(k):Lf(a,k)});a.h.m(c,"keystatuseschange",function(k){return Zf(a,k)});e={initData:null,loaded:!1,ge:Infinity,bb:null,type:"persistent-license"};a.j.set(c,e);A(h,2);return u(h,c.load(b),4);case 4:f=h.h;lf(a.L);
195if(!f)return a.j["delete"](c),a.l(new N(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;$f(a)&&a.A.resolve();return h["return"](c);case 2:g=E(h),lf(a.L,g),a.j["delete"](c),a.l(new N(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
196function Rf(a,b,c,d){try{var e=a.o.createSession(d)}catch(f){a.l(new N(2,6,6005,f.message));return}a.h.m(e,"message",function(f){a.g&&a.s.delayLicenseRequestUntilPlayed&&a.g.paused&&!a.N?a.I.push(f):Lf(a,f)});a.h.m(e,"keystatuseschange",function(f){return Zf(a,f)});a.j.set(e,{initData:c,loaded:!1,ge:Infinity,bb:null,type:d});try{c=a.s.initDataTransform(c,b,a.i)}catch(f){b=f;f instanceof N||(b=new N(2,6,6016,f));a.l(b);return}a.s.logLicenseExchange&&ed(c);e.generateRequest(b,c)["catch"](function(f){if(!a.L.g){a.j["delete"](e);
197var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.l(new N(2,6,6006,f.message,f,h))}})}function ag(a,b,c){"skd"==b&&(b=c.serverCertificate,c=sf(a),a=tf(a,c,b));return a}
198function Lf(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w;H(function(x){switch(x.g){case 1:return c=b.target,a.s.logLicenseExchange&&ed(b.message),d=a.j.get(c),e=a.i.licenseServerUri,f=a.s.advanced[a.i.keySystem],"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer),g=cf([e],a.s.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,Sf(a.i.keySystem)&&bg(g),h=Date.now(),A(x,2),l=a.G.Mb.request(2,g),u(x,
199l.promise,4);case 4:k=x.h;wa(x,3);break;case 2:return m=E(x),n=new N(2,6,6007,m),a.l(n),d&&d.bb&&d.bb.reject(n),x["return"]();case 3:if(a.L.g)return x["return"]();a.H+=(Date.now()-h)/1E3;a.s.logLicenseExchange&&ed(k.data);A(x,5);return u(x,c.update(k.data),7);case 7:wa(x,6);break;case 5:return p=E(x),t=new N(2,6,6008,p.message),a.l(t),d&&d.bb&&d.bb.reject(t),x["return"]();case 6:v=new K("drmsessionupdate"),a.G.onEvent(v),d&&(d.bb&&d.bb.resolve(),w=new Q(function(){d.loaded=!0;$f(a)&&a.A.resolve()}),
200w.S(cg)),z(x)}})}function bg(a){var b=Yc(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=(new DOMParser).parseFromString(b,"application/xml");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=fd(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
201function Zf(a,b){var c=b.target,d=a.j.get(c),e=!1;
201c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if(Sf(a.i.keySystem)&&16==h.byteLength&&navigator.userAgent.match(/Edge?\//)){k=Qc(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"status-pending"!=g&&(d.loaded=!0);"expired"==g&&(e=!0);k=hd(h);a.ea.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.bb&&(a.j["delete"](c),c.close()["catch"](function(){}));
202$f(a)&&(a.A.resolve(),a.O.S(dg))}function yf(a){var b=a.ea,c=a.V;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.l(new N(2,6,6014));a.G.md(vf(c))}
203function eg(){var a,b,c,d,e,f,g,h;return H(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,
204c],f=new Map,g=function(l){var m,n,p;return H(function(t){switch(t.g){case 1:return A(t,2),u(t,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=t.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Gd("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(t,m.createMediaKeys(),5);case 5:wa(t,0);break;case 2:E(t),f.set(l,null),z(t)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k["return"](vf(f))})}
205function fg(a){var b;return H(function(c){if(1==c.g)return b=new Promise(function(d,e){(new Q(e)).S(gg)}),A(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return wa(c,0);E(c);z(c)})}
206function Bf(a){var b;return H(function(c){b=Array.from(a.j.entries());a.j.clear();return u(c,Promise.all(b.map(function(d){d=r(d);var e=d.next().value,f=d.next().value;return H(function(g){if(1==g.g)return A(g,2),a.ba||a.B.includes(e.sessionId)||"persistent-license"!==f.type?u(g,fg(e),5):u(g,e.remove(),5);if(2!=g.g)return wa(g,0);E(g);z(g)})})),0)})}
207function hg(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=r(b),g=f.next();!g.done;g=f.next())if(g=g.value,e.keySystem==g.keySystem){f=[];f=f.concat(e.initData||[]);f=f.concat(g.initData||[]);var h=e.keyIds&&g.keyIds?new Set([].concat(ia(e.keyIds),ia(g.keyIds))):e.keyIds||g.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||g.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired||
208g.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||g.persistentStateRequired,videoRobustness:e.videoRobustness||g.videoRobustness,audioRobustness:e.audioRobustness||g.audioRobustness,serverCertificate:e.serverCertificate||g.serverCertificate,serverCertificateUri:e.serverCertificateUri||g.serverCertificateUri,initData:f,keyIds:h});break}}return c}function Jf(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}
209function zf(a){a.j.forEach(function(b,c){var d=b.ge,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.ge=e)})}function $f(a){a=a.j.values();return eb(a,function(b){return b.loaded})}
210function If(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});for(var d=r(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
211function Yf(a,b,c,d,e,f){var g={};a=r(a);for(var h=a.next();!h.done;g={Ha:g.Ha},h=a.next()){g.Ha=h.value;b.includes(g.Ha.licenseServerUri)||b.push(g.Ha.licenseServerUri);d.includes(g.Ha.serverCertificateUri)||d.push(g.Ha.serverCertificateUri);g.Ha.serverCertificate&&(c.some(function(m){return function(n){return Lc(n,m.Ha.serverCertificate)}}(g))||c.push(g.Ha.serverCertificate));if(g.Ha.initData){h={};for(var k=r(g.Ha.initData),l=k.next();!l.done;h={Qc:h.Qc},l=k.next())h.Qc=l.value,e.some(function(m){return function(n){var p=
212m.Qc;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Lc(n.initData,p.initData)}}(h))||e.push(h.Qc)}if(g.Ha.keyIds)for(h=r(g.Ha.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
213function Kf(a,b,c){if(a.keySystem&&("org.w3.clearkey"!=a.keySystem||!a.licenseServerUri)
213){b.size&&(b=b.get(a.keySystem)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(a.keySystem))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||
214(a.serverCertificate=c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==a.keySystem&&(a.keySystem="com.chromecast.playready")}}var gg=1,cg=5,dg=.5,ig=new Vc(function(){return Oc(new Uint8Array([0]))});function jg(){}function kg(a,b,c,d){var e,f,g,h;return H(function(k){if(1==k.g){if(d&&(e=lg[d.toLowerCase()]))return k["return"](e);if(f=mg(a))if(g=ng[f])return k["return"](g);return d?k.C(2):u(k,og(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=lg[d]))return k["return"](h);throw new N(2,4,4E3,a);})}
215function og(a,b,c){var d,e,f;return H(function(g){if(1==g.g)return d=cf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function mg(a){a=(new ob(a)).Qa.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}I("shaka.media.ManifestParser",jg);jg.unregisterParserByMime=function(a){delete lg[a]};jg.registerParserByMime=function(a,b){lg[a]=b};
216jg.registerParserByExtension=function(a,b){ng[a]=b};var lg={},ng={};function pg(a,b){this.W=Qc(a);this.h=b==qg;this.g=0}q=pg.prototype;q.Ga=function(){return this.g<this.W.byteLength};q.ia=function(){return this.g};q.Zf=function(){return this.W.byteLength};q.ka=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw rg();}};q.jc=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw rg();}};q.P=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw rg();}};
217q.jf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw rg();}};q.Ob=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 rg();}if(2097151<b)throw new N(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.xb=function(a){if(this.g+a>this.W.byteLength)throw rg();var b=Nc(this.W,this.g,a);this.g+=a;return b};
218q.skip=function(a){if(this.g+a>this.W.byteLength)throw rg();this.g+=a};q.lf=function(a){if(this.g<a)throw rg();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw rg();this.g=a};q.Kc=function(){for(var a=this.g;this.Ga()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Nc(this.W,a,this.g-a);this.g+=1;return Xc(a)};function rg(){return new N(2,3,3E3)}I("shaka.util.DataViewReader",pg);pg.prototype.readTerminatedString=pg.prototype.Kc;pg.prototype.seek=pg.prototype.seek;pg.prototype.rewind=pg.prototype.lf;
219pg.prototype.skip=pg.prototype.skip;pg.prototype.readBytes=pg.prototype.xb;pg.prototype.readUint64=pg.prototype.Ob;pg.prototype.readInt32=pg.prototype.jf;pg.prototype.readUint32=pg.prototype.P;pg.prototype.readUint16=pg.prototype.jc;pg.prototype.readUint8=pg.prototype.ka;pg.prototype.getLength=pg.prototype.Zf;pg.prototype.getPosition=pg.prototype.ia;pg.prototype.hasMoreData=pg.prototype.Ga;var qg=1;pg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:qg};function sg(){this.i=[];this.h=[];this.g=!1}q=sg.prototype;q.box=function(a,b){var c=tg(a);this.i[c]=ug;this.h[c]=b;return this};q.Z=function(a,b){var c=tg(a);this.i[c]=vg;this.h[c]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new pg(a,0);for(this.g=!1;a.Ga()&&!this.g;)this.od(0,a,b,c)};
220q.od=function(a,b,c,d){var e=b.ia();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.P(),g=b.P(),h=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.ia()+8>b.W.byteLength){this.g=!0;return}f=b.Ob();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==vg){if(d&&b.ia()+4>b.W.byteLength){this.g=!0;return}m=b.P();l=m>>>24;m&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.ia(),b=0<d?b.xb(d):new Uint8Array(0),b=new pg(b,0),k({parser:this,partialOkay:c||
221!1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.ia(),b.W.byteLength-b.ia()))}};function wg(a){for(var b=xg(a);a.reader.Ga()&&!a.parser.g;)a.parser.od(a.start+b,a.reader,a.partialOkay)}function yg(a){var b=xg(a),c=a.reader.P();c=r(ib(c));for(var d=c.next();!d.done&&(a.parser.od(a.start+b,a.reader,a.partialOkay),!a.parser.g);d=c.next());}function zg(a){return function(b){a(b.reader.xb(b.reader.W.byteLength-b.reader.ia()))}}
222function tg(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 Ag(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function xg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}I("shaka.util.Mp4Parser",sg);sg.headerSize=xg;sg.typeToString=Ag;sg.allData=zg;sg.sampleDescription=yg;sg.children=wg;sg.prototype.parseNext=sg.prototype.od;sg.prototype.parse=sg.prototype.parse;sg.prototype.stop=sg.prototype.stop;
223sg.prototype.fullBox=sg.prototype.Z;sg.prototype.box=sg.prototype.box;var ug=0,vg=1;function Bg(a){function b(){d=!0}function c(l){f.push(l);wg(l)}a=Nc(a);var d=!1,e,f=[],g=[];(new sg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).Z("stsd",function(l){e=l;f.push(l);yg(l)}).Z("encv",b).Z("enca",b).Z("avc1",function(l){g.push({box:l,ae:1701733238})}).Z("ec-3",function(l){g.push({box:l,ae:1701733217})}).Z("mp4a",function(l){g.push({box:l,ae:1701733217})}).parse(a);if(d)return a;
223if(0==g.length||!e)throw Xa(hd(a)),new N(2,3,3019);g.reverse();for(var h=r(g),k=h.next();!k.done;k=
224h.next())k=k.value,a=Cg(a,e,k.box,f,k.ae);return a}
225function Cg(a,b,c,d,e){var f=Dg.value(),g=a.subarray(c.start,c.start+c.size),h=Qc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Qc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Eg(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Gd("Xbox One")?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,Eg(e,d.start,d.size+k.byteLength);k=Qc(e,b.start);b=xg(b);
226a=k.getUint32(b);k.setUint32(b,a+1);return e}function Eg(a,b,c){a=Qc(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 Dg=new Vc(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 Fg(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",n=Gg(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],t=-1,v=-1,w=0;w<p.length;w++)if(null!=p[w]&&""!==p[w].g.trim()){t=w;break}for(w=p.length-1;0<=w;w--)if(null!=p[w]&&""!==p[w].g.trim()){v=w;break}if(-1===
227t||-1===v)p=Hg(d,e),a.nestedCues.push(p);else{for(;t<=v;t++)if(w=p[t]){var x=w.l,y=w.i,C=w.j,D=w.h;if(x!=h||y!=k||C!=l||D!=m)n.payload&&a.nestedCues.push(n),n=Gg(d,e,x,y,C,D),h=x,k=y,l=C,m=D;n.payload+=w.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Hg(d,e),a.nestedCues.push(n));n=Gg(d,e,h,k,l,m)}
227}return a.nestedCues.length?{cue:a,stream:b}:null}
228function Gg(a,b,c,d,e,f){a=new pc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Hg(a,b){var c=new pc(a,b,"");c.lineBreak=!0;return c}function Ig(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Jg(a,b){this.i=[];this.g=1;this.h=0;this.D=a;this.B=b;this.j=this.o=!1;this.l="white";this.A="black";Kg(this)}function Lg(a,b,c){return Fg(new pc(b,c,""),"CC"+(a.D<<1|a.B+1),a.i,b,c)}function Kg(a){Mg(a,0,15);a.g=1}function Ng(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case Og:d=Pg.has(c)?Pg.get(c):String.fromCharCode(c);break;case Qg:d=Rg.get(c);break;case Sg:a.i[a.g].pop();d=Tg.get(c);break;case Ug:a.i[a.g].pop(),d=Vg.get(c)}d&&a.i[a.g].push(new Ig(d,a.o,a.j,a.A,a.l))}}
229function Wg(a,b,c,d){if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function Mg(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
230var Og=0,Qg=1,Sg=2,Ug=3,Pg=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"]]),Rg=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"]]),Tg=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
231[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"]]),Vg=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
232[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 Xg(a,b){this.h=Yg;this.A=new Jg(a,b);this.i=new Jg(a,b);this.l=new Jg(a,b);this.g=this.i;this.j=0;this.o=null}function Zg(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==$g&&a.h!==ah&&(e=Lg(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,Mg(c,0,15),c=a.l,c.g=0<c.h?c.h:0,Mg(c,0,15),d.g=15);a.h=$g;d.h=b;return e}function bh(a){a.h=ch;a.g=a.l;a.g.h=0}function dh(a){Sa("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.A;a.h=ah}
233var Yg=0,ch=1,$g=3,ah=4,eh="black green blue cyan red yellow magenta black".split(" "),fh="white green blue cyan red yellow magenta white_italics".split(" ");function gh(){this.l=!1;this.H=this.K=0;this.I=hh;this.i=[];this.g=this.h=this.j=0;this.D=this.A=!1;this.B="white";this.o="black";ih(this)}function ih(a){a.i=[];for(var b=0;15>b;b++)a.i.push(jh())}function jh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function kh(a,b){lh(a)&&(a.i[a.h][a.g]=new Ig(b,a.D,a.A,a.o,a.B),a.g++)}function lh(a){var b=a.g<a.H&&0<=a.g;return a.h<a.K&&0<=a.h&&b}gh.prototype.isVisible=function(){return this.l};
234function mh(a,b,c){var d=new pc(a.j,b,"");d.textAlign=a.I===nh?"left":a.I===oh?"right":uc;if(c=Fg(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var nh=0,oh=1,hh=2;function ph(){this.i=[];this.h=null;this.g=0}function qh(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 rh(a.h)),a.h=null,a.g=0))}function rh(a){this.g=0;this.h=a}rh.prototype.Ga=function(){return this.g<this.h.length};rh.prototype.ia=function(){return this.g};function sh(a){if(!a.Ga())throw new N(2,2,3E3);return a.h[a.g++]}rh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new N(2,2,3E3);this.g+=a};function th(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
235function uh(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=sh(b).value;b=null;c=r(vh(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=mh(e,d,a.i)),ih(e);return b}if(137===c)for(b=sh(b).value,b=r(vh(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=sh(b).value;b=null;c=r(vh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=mh(e,d,a.i)),e.l=!1;return b}if(139===c){c=sh(b).value;
236b=null;c=r(vh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=mh(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=sh(b).value,wh(a,b,d);if(143===c)return d=wh(a,255,d),xh(a),d;if(144===c)b.skip(1),d=sh(b).value,a.g&&(a.g.A=0<(d&128),a.g.D=0<(d&64));else if(145===c)d=sh(b).value,c=sh(b).value,b.skip(1),a.g&&(b=yh((c&48)>>4,(c&12)>>2,c&3),a.g.B=yh((d&48)>>4,(d&12)>>2,d&3),a.g.o=b);else if(146===c)d=sh(b).value,b=sh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
237b.skip(1),d=sh(b).value,b.skip(1),a.g&&(a.g.I=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new gh;f.j=d;a.h[c]=f}d=sh(b).value;sh(b);sh(b);f=sh(b).value;var g=sh(b).value;b=sh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.D=!1,b.A=!1,b.B="white",b.o="black");b=a.h[c];b.l=0<(d&32);b.K=(f&15)+1;b.H=(g&63)+1;a.g=a.h[c]}}}return null}
238var vh=function zh(a,b){var d,e;return Fa(zh,function(f){1==f.g&&(d=0);if(5!=f.g)return 8>d?(e=1===(b&1))&&a.h[d]?u(f,d,5):f.C(5):f.C(0);b>>=1;d++;return f.C(2)})};function wh(a,b,c){var d=null;b=r(vh(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=mh(f,c,a.i));a.h[e]=null}return d}function xh(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function yh(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return Ah[a<<2|b<<1|c]}
239var Bh=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"]]),Ah="black blue green cyan red magenta yellow white".split(" ");function Ch(){this.h=[];this.g=[];this.i=new ph;this.l=0;this.B=new Map([["CC1",new Xg(0,0)],["CC2",new Xg(0,1)],["CC3",new Xg(1,0)],["CC4",new Xg(1,1)]]);this.A=this.o=0;this.j=new Map;Dh(this)}function Dh(a){a.o=0;a.A=0;a=r(a.B.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.h=2,b.g=b.i,b.o=null,Kg(b.i),Kg(b.l),Kg(b.A)}
240function Eh(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=Fh(a,e.value))&&c.push(e);d=r(a.g);for(e=d.next();!e.done;e=d.next())qh(a.i,e.value);d=r(a.i.i);for(e=d.next();!e.done;e=d.next())e=Gh(a,e.value),c.push.apply(c,ia(e));a.i.i=[];a.h=[];a.g=[];return c}
241function Fh(a,b){var c=b.type;if(16===(b.Ta&112)){var d=b.Ta>>3&1;0===c?a.o=d:a.A=d}c=a.B.get("CC"+(c<<1|(c?a.A:a.o)+1));if(255===b.Ta&&255===b.hb||!b.Ta&&!b.hb||!Hh(b.Ta)||!Hh(b.hb))return 45<=++a.l&&Dh(a),null;a.l=0;b.Ta&=127;b.hb&=127;if(!b.Ta&&!b.hb)return null;d=null;if(16===(b.Ta&112))a:{var e=b.Ta;d=b.hb;if(c.o===(e<<8|d))c.o=null;else if(c.o=e<<8|d,16===(e&240)&&64===(d&192)){e=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(e&7)<<1|d>>5&1];var f=(d&30)>>1,g="white",h=!1;7>f?g=fh[f]:7===f&&(h=!0);
242d=1===(d&1);if(c.h!==ah){f=c.g;if(c.h===$g&&e!==f.g){var k=1+e-f.h;Wg(f,k,1+f.g-f.h,f.h);Mg(f,0,k-1);Mg(f,e+1,15-e)}f.g=e;c.g.o=d;c.g.j=h;c.g.l=g;c.g.A="black"}}else if(17===(e&247)&&32===(d&240))c.g.o=!1,c.g.j=!1,c.g.l="white",Ng(c.g,Og,32),g=!1,e=fh[(d&14)>>1],"white_italics"===e&&(e="white",g=!0),c.g.o=1===(d&1),c.g.j=g,c.g.l=e;else if(16===(e&247)&&32===(d&240)||23===(e&247)&&45===(d&255))g="black",0===(e&7)&&(g=eh[(d&14)>>1]),c.g.A=g;else if(17===(e&247)&&48===(d&240))Ng(c.g,Qg,d);else if(18===
243(e&246)&&32===(d&224))Ng(c.g,e&1?Ug:Sg,d);else if(20===(e&246)&&32===(d&240)){d=b.pts;e=null;switch(b.hb){case 32:bh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:e=Zg(c,2,d);break;case 38:e=Zg(c,3,d);break;case 39:e=Zg(c,4,d);break;case 40:Ng(c.g,Og,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=d;break;case 42:Kg(c.A);dh(c);break;case 43:dh(c);break;case 44:e=c.i;g=null;c.h!==ah&&(g=Lg(e,c.j,d));Mg(e,0,15);e=g;break;case 45:e=c.g;c.h!==$g?e=null:(g=Lg(e,c.j,d),h=e.g-e.h+1,Wg(e,h-1,h,e.h),Mg(e,
2440,h-1),Mg(e,e.g,15-e.g),c.j=d,e=g);break;case 46:Mg(c.l,0,15);break;case 47:e=null,c.h!==ah&&(e=Lg(c.i,c.j,d)),g=c.l,c.l=c.i,c.i=g,bh(c),c.j=d}d=e;break a}d=null}else e=b.hb,Ng(c.g,Og,b.Ta),Ng(c.g,Og,e);return d}
245function Gh(a,b){var c=[];try{for(;b.Ga();){var d=sh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=sh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new th(e));for(var g=a.j.get(e),h=b.ia();
245b.ia()-h<f;){e=b;var k=sh(e),l=k.value,m=k.pts;if(16===l){var n=sh(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!lh(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.H-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=mh(t,p,g.i));if(t.h+1>=t.K){p=t;for(var v=0,w=1;15>w;w++,
246v++)p.i[v]=p.i[w];for(w=0;1>w;w++,v++)p.i[v]=jh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=mh(t,p,g.i));t.i[t.h]=jh();t.g=0;break;case 12:t.isVisible()&&(e=mh(t,p,g.i)),ih(t),p=t,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=uh(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?kh(g.g,"\u266a"):kh(g.g,
247String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&kh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Bh.has(e)){var y=Bh.get(e);kh(g.g,y)}else kh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?kh(g.g,"_"):kh(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(C){if(C instanceof N&&3E3===C.code)Sa("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw C;}return c}function Hh(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function Ih(){}var Kh=function Jh(a,b){var d,e,f,g;return Fa(Jh,function(h){if(1==h.g){for(var k=0,l=0,m=0;l<b.length;)2==k&&3==b[l]?k=0:(0==b[l]?k++:k=0,b[m]=b[l],m++),l++;d=l-m;e=0}if(4!=h.g){if(!(e+d<b.length))return h.C(0);for(f=0;255==b[e];)f+=255,e++;f+=b[e++];for(g=0;255==b[e];)g+=255,e++;g+=b[e++];return 4!=f?h.C(4):u(h,b.subarray(e,e+g),4)}e+=g;return h.C(2)})};function Lh(a,b){var c=null,d=null,e=a.P();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.P());b&16&&(d=a.P());return{trackId:e,Pe:c,Kf:d}}function Mh(a,b){return{Od:1==b?a.Ob():a.P()}}function Nh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.P()}}
248function Oh(a,b,c){var d=a.P(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=r(ib(d)),g=f.next();!g.done;g=f.next())g={me:null,sampleSize:null,rd:null},c&256&&(g.me=a.P()),c&512&&(g.sampleSize=a.P()),c&1024&&a.skip(4),c&2048&&(g.rd=0==b?a.P():a.jf()),e.push(g);return{xi:d,mf:e}};function Ph(){this.j=new Ih;this.i=new Map;this.h=this.g=0}
249Ph.prototype.init=function(a){var b=this,c=[],d=[];(new sg).box("moov",wg).box("mvex",wg).Z("trex",function(e){var f=e.reader;f.skip(4);f.skip(4);e=f.P();f=f.P();b.g=e;b.h=f}).box("trak",wg).Z("tkhd",function(e){var f=e.reader;1==e.version?(f.skip(8),f.skip(8),e=f.Ob()):(f.skip(4),f.skip(4),e=f.P());c.push(e)}).box("mdia",wg).Z("mdhd",function(e){e=Nh(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new N(2,2,2010);c.forEach(function(e,f){b.i.set(e,
250d[f])})};
251Ph.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new sg).box("moof",wg).box("traf",wg).Z("trun",function(k){f=Oh(k.reader,k.version,k.flags).mf}).Z("tfhd",function(k){k=Lh(k.reader,k.flags);d=k.Pe||b.g;e=k.Kf||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).Z("tfdt",function(k){g=Mh(k.reader,k.version).Od}).box("mdat",function(k){if(null===g)throw new N(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,t=f,v=0,w=p;for(t.length&&(w=t[0].sampleSize||p);k.Ga();){var x=k.P();if(6==
252(k.ka()&31)){var y=0;t.length>v&&(y=t[v].rd||0);y=(l+y)/m;for(var C=r(Kh(b.j,k.xb(x-1))),D=C.next();!D.done;D=C.next())c.push({Hg:D.value,pts:y})}else k.skip(x-1);w-=x+4;0==w&&(l=t.length>v?l+(t[v].me||n):l+n,v++,w=t.length>v?t[v].sampleSize||p:p)}}).parse(a,!1);return c};function Qh(){this.h=new Ph;this.g=new Ch}Qh.prototype.init=function(a){this.h.init(a)};
253function Rh(a,b){var c=a.h.parse(b);c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=Nc(e.Hg);d=a.g;e=e.pts;f=new pg(f,0);if(181===f.ka()&&49===f.jc()&&1195456820===f.P()&&3===f.ka()){var g=f.ka();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h<g;h++){var k=f.ka(),l=(k&4)>>2,m=f.ka(),n=f.ka();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,Ta:m,hb:n,order:d.h.length}):(d.g.push({pts:e,type:k,value:m,order:d.g.length}),d.g.push({pts:e,type:2,value:n,order:d.g.length})))}}}}return Eh(a.g)};function Sh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Th(a,b,c){c=void 0===c?0:c;return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b+c>=a.start(0)}function Uh(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=r(Vh(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}
254function Wh(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Vh(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Vh(a){if(!a)return[];for(var b=[],c=r(ib(a.length)),d=c.next();!d.done;d=c.next())d=d.value,b.push({start:a.start(d),end:a.end(d)});return b};function Xh(a,b,c,d){var e=this;this.g=a;this.o=c;this.j={};this.K={};this.i=null;this.N=d||function(){};this.l={};this.h=new mf;this.B={};this.D=b;this.H=new Uc;this.A=Yh(this,this.H);this.L=new kf(function(){return Zh(e)});this.I=""}function Yh(a,b){var c=new MediaSource;a.h.Oa(c,"sourceopen",function(){URL.revokeObjectURL(a.I);b.resolve()});a.I=$h(c);a.g.src=a.I;return c}q=Xh.prototype;q.destroy=function(){return this.L.destroy()};
255function Zh(a){var b,c,d,e,f,g,h,k;return H(function(l){if(1==l.g){b=[];
255for(c in a.l)for(d=a.l[c],e=d[0],a.l[c]=d.slice(0,1),e&&b.push(e.p["catch"](Jb)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new N(2,7,7003,void 0));a.i&&b.push(a.i.destroy());a.o&&b.push(a.o.destroy());for(k in a.B)b.push(a.B[k].destroy());return u(l,Promise.all(b),2)}a.h&&(a.h.release(),a.h=null);a.g&&(a.g.removeAttribute("src"),a.g.load(),a.g=null);a.A=null;a.i=null;a.o=null;a.j={};a.B={};a.D=null;a.l=
256{};z(l)})}
257q.init=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){if(1==m.g)return d=Sb,u(m,c.H,2);e={};f=r(a.keys());for(g=f.next();!g.done;e={La:e.La},g=f.next())e.La=g.value,h=a.get(e.La),k=od(h.mimeType,h.codecs),e.La==d.oa?ai(c,k):(!b&&MediaSource.isTypeSupported(k)||!kd(k,e.La)||(c.B[e.La]=new jd,k=md(e.La,k)),l=c.A.addSourceBuffer(k),c.h.m(l,"error",function(n){return function(){c.l[n.La][0].p.reject(new N(2,3,3014,c.g.error?c.g.error.code:0))}}(e)),c.h.m(l,"updateend",function(n){return function(){return bi(c,n.La)}}(e)),
258c.j[e.La]=l,c.K[e.La]=k,c.l[e.La]=[]);z(m)})};function ai(a,b){a.i||(a.i=new sd(a.o));"application/cea-608"!=b&&"application/cea-708"!=b&&(a.i.A=Lb(ud[b]))}function ci(a){return a.A?"ended"==a.A.readyState:!0}function di(a,b){if(b==Rb)var c=a.i.g;else c=ei(a,b),c=!c||1==c.length&&1E-6>c.end(0)-c.start(0)?null:1==c.length&&0>c.start(0)?0:c.length?c.start(0):null;return c}function fi(a,b){return b==Rb?a.i.h:Sh(ei(a,b))}
259function gi(a,b,c){if(b==Rb)return a=a.i,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=ei(a,b);return Uh(a,c)}q.dd=function(){var a={total:Vh(this.g.buffered),audio:Vh(ei(this,"audio")),video:Vh(ei(this,"video")),text:[]};if(this.i){var b=this.i.g,c=this.i.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function ei(a,b){try{return a.j[b].buffered}catch(c){return null}}
260function hi(a,b,c,d,e,f){var g,h,k,l,m,n,p,t;return H(function(v){if(1==v.g){g=Sb;if(b==g.oa)return u(v,vd(a.i,c,d,e),0);if(a.B[b])return u(v,nd(a.B[b],c),10);if(f)return a.i||ai(a,"text/vtt"),null==d&&null==e?a.D.init(c):(h=Rh(a.D,c),h.length&&(k=a.j[g.fb].timestampOffset,Ad(a.i,h,d,e,k))),c=ii(a,c,d,b),u(v,ji(a,b,function(){a.j[b].appendBuffer(c)}),0);c=ii(a,c,d,b);return u(v,ji(a,b,function(){a.j[b].appendBuffer(c)}),0)}l=v.h;a.i||ai(a,"text/vtt");l.metadata&&(m=a.j[b].timestampOffset,a.N(l.metadata,
261m,e));l.captions&&l.captions.length&&(n=a.j[g.fb].timestampOffset,p=zd(l.captions),Ad(a.i,p,d,e,n));t=l.data;t=ii(a,t,d,b);return u(v,ji(a,b,function(){a.j[b].appendBuffer(t)}),0)})}function ki(a,b){var c=fi(a,"video")||0;yd(a.i,b,c)}function li(a){a.i&&yd(a.i,"",0)}q.remove=function(a,b,c){var d=this,e;return H(function(f){e=Sb;return a==e.oa?u(f,d.i.remove(b,c),0):u(f,ji(d,a,function(){c<=b?bi(d,a):d.j[a].remove(b,c)}),0)})};
262function mi(a,b){var c;return H(function(d){c=Sb;return b==c.oa?a.i?u(d,a.i.remove(0,Infinity),0):d["return"]():u(d,ji(a,b,function(){var e=a.A.duration;0>=e?bi(a,b):a.j[b].remove(0,e)}),0)})}q.flush=function(a){var b=this,c;return H(function(d){c=Sb;return a==c.oa?d["return"]():u(d,ji(b,a,function(){b.g.currentTime-=.001;bi(b,a)}),0)})};
263function ni(a,b,c,d,e){var f;return H(function(g){f=Sb;return b==f.oa?(a.i.D=c,xd(a.i,d,e),g["return"]()):u(g,Promise.all([ji(a,b,function(){var h=a.j[b].appendWindowStart,k=a.j[b].appendWindowEnd;a.j[b].abort();a.j[b].appendWindowStart=h;a.j[b].appendWindowEnd=k;bi(a,b)}),ji(a,b,function(){var h=c;0>h&&(h+=.001);a.j[b].timestampOffset=h;bi(a,b)}),ji(a,b,function(){a.j[b].appendWindowStart=0;a.j[b].appendWindowEnd=e;a.j[b].appendWindowStart=d;bi(a,b)})]),0)})}
264q.endOfStream=function(a){var b=this;return H(function(c){return u(c,oi(b,function(){ci(b)||(a?b.A.endOfStream(a):b.A.endOfStream())}),0)})};q.ab=function(a){var b=this;return H(function(c){return u(c,oi(b,function(){b.A.duration=a}),0)})};q.getDuration=function(){return this.A.duration};function bi(a,b){var c=a.l[b][0];c&&(c.p.resolve(),pi(a,b))}function ji(a,b,c){lf(a.L);c={start:c,p:new Uc};a.l[b].push(c);1==a.l[b].length&&qi(a,b);return c.p}
265function oi(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:lf(a.L);c=[];d={};for(e in a.j)d.qc=new Uc,f={start:function(l){return function(){return l.qc.resolve()}}(d),p:d.qc},a.l[e].push(f),c.push(d.qc),1==a.l[e].length&&f.start(),d={qc:d.qc};A(k,2);return u(k,Promise.all(c),4);case 4:wa(k,3);break;case 2:throw g=E(k),g;case 3:try{b()}catch(l){throw new N(2,3,3015,l);}finally{for(h in a.j)pi(a,h)}z(k)}})}function pi(a,b){a.l[b].shift();qi(a,b)}
266function qi(a,b){var c=a.l[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new N(2,3,3017,b)):c.p.reject(new N(2,3,3015,d)),pi(a,b)}}function ii(a,b,c,d){var e=a.g.mediaKeys;null==c&&e&&(Fd()||Gd("Xbox One"))&&"mp4"==a.K[d].split(";")[0].split("/")[1]&&(b=Bg(b));return b}var $h=window.URL.createObjectURL;function ri(a,b,c){this.Fa=a;this.Ba=b;this.va=c}ri.prototype.Dc=function(){return this.Ba};ri.prototype.yc=function(){return this.va};function si(a,b){return a&&b?a.Dc()==b.Dc()&&a.yc()==b.yc()&&oc(a.Fa(),b.Fa()):a==b}I("shaka.media.InitSegmentReference",ri);ri.prototype.getEndByte=ri.prototype.yc;ri.prototype.getStartByte=ri.prototype.Dc;
267function ti(a,b,c,d,e,f,g,h,k,l,m){l=void 0===l?[]:l;this.startTime=a;this.j=this.endTime=b;this.i=c;this.Ba=d;this.va=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m}q=ti.prototype;q.Fa=function(){return this.i()};q.lg=function(){return this.startTime};q.Xf=function(){return this.endTime};q.Dc=function(){return this.Ba};q.yc=function(){return this.va};q.qg=function(){return this.tilesLayout};
268I("shaka.media.SegmentReference",ti);ti.prototype.getTilesLayout=ti.prototype.qg;ti.prototype.getEndByte=ti.prototype.yc;ti.prototype.getStartByte=ti.prototype.Dc;ti.prototype.getEndTime=ti.prototype.Xf;ti.prototype.getStartTime=ti.prototype.lg;ti.prototype.getUris=ti.prototype.Fa;function R(a,b,c){this.j=a;this.pd=b;this.o=this.l=Infinity;this.g=1;this.h=this.i=null;this.A=0;this.B=!0;this.D=0;this.H=void 0===c?!0:c;this.I=0}q=R.prototype;q.getDuration=function(){return this.l};q.fg=function(){return this.g};q.ab=function(a){this.l=a};q.jg=function(){return this.j};q.qf=function(a){this.A=a};q.Nc=function(a){this.B=a};q.ye=function(a){this.o=a};q.Yg=function(a){this.pd=a};q.Wf=function(){return this.pd};
269q.fc=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.ce(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.j&&this.H&&(this.j=(Date.now()+this.A)/1E3-this.h-this.g)}};q.ce=function(a){this.i=null==this.i?a:Math.min(this.i,a)};q.be=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.i&&(this.i+=a);null!=this.h&&(this.h+=a)};q.X=function(){return Infinity==this.l&&!this.B};
270q.Jb=function(){return Infinity!=this.l&&!this.B};q.vb=function(){return Math.max(this.D,this.Fb()-this.o)};q.tf=function(a){this.D=a};q.Fb=function(){return this.X()||this.Jb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.j)+this.I,this.l):this.h||this.l};q.Cc=function(a){var b=Math.max(this.i,this.D);return Infinity==this.o?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Fb()-this.o+a,this.ib()))};q.cc=function(){return this.Cc(0)};
271q.ib=function(){return Math.max(0,this.Fb()-(this.X()||this.Jb()?this.pd:0))};q.xf=function(){return null==this.j||null!=this.h&&this.H?!1:!0};q.pf=function(a){this.I=a};I("shaka.media.PresentationTimeline",R);R.prototype.setAvailabilityTimeOffset=R.prototype.pf;R.prototype.usingPresentationStartTime=R.prototype.xf;R.prototype.getSeekRangeEnd=R.prototype.ib;R.prototype.getSeekRangeStart=R.prototype.cc;R.prototype.getSafeSeekRangeStart=R.prototype.Cc;R.prototype.getSegmentAvailabilityEnd=R.prototype.Fb;
272R.prototype.setUserSeekStart=R.prototype.tf;R.prototype.getSegmentAvailabilityStart=R.prototype.vb;R.prototype.isInProgress=R.prototype.Jb;R.prototype.isLive=R.prototype.X;R.prototype.offset=R.prototype.offset;R.prototype.notifyMaxSegmentDuration=R.prototype.be;R.prototype.notifyMinSegmentStartTime=R.prototype.ce;R.prototype.notifySegments=R.prototype.fc;R.prototype.getDelay=R.prototype.Wf;R.prototype.setDelay=R.prototype.Yg;R.prototype.setSegmentAvailabilityDuration=R.prototype.ye;
273R.prototype.setStatic=R.prototype.Nc;R.prototype.setClockOffset=R.prototype.qf;R.prototype.getPresentationStartTime=R.prototype.jg;R.prototype.setDuration=R.prototype.ab;R.prototype.getMaxSegmentDuration=R.prototype.fg;R.prototype.getDuration=R.prototype.getDuration;function vi(a,b){this.j=a;this.o=wi(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.h=!1;this.A=b;this.i=function(){}}vi.prototype.release=function(){this.j=null;this.i=function(){}};function xi(a,b){a.i=b}function yi(a){this.g=a}function wi(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Vh(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function zi(a,b,c,d,e){var f=this;this.g=a;this.D=b;this.s=c;this.B=e;this.h=new mf;this.A=!1;this.H=a.readyState;this.j=!1;this.i=d;this.o=!1;this.h.m(a,"waiting",function(){return Ai(f)});this.l=(new Q(function(){Ai(f)})).ma(.25)}zi.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.l&&(this.l.stop(),this.l=null);this.i&&(this.i.release(),this.i=null);this.g=this.D=this.B=null};zi.prototype.ie=function(){this.o=!0;Ai(this)};
274function Ai(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.A)return}else a.A=!1;if(!a.g.paused||0==a.g.currentTime){a.g.readyState!=a.H&&(a.j=!1,a.H=a.g.readyState);var b;if(!(b=!a.i)){b=a.i;var c=b.j,d=wi(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.o!=d)b.l=f,b.g=e,b.o=d,b.h=!1;e=f-b.l;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime;b=!d}if(b){var g=a.s.smallGapLimit;e=a.g.currentTime;b=a.g.buffered;c=Wh(b,e,a.s.gapDetectionThreshold);if(!(null==c||0==c&&!a.o||(d=b.start(c),d>=
275a.D.ib()))){f=d-e;g=f<=g;var h=!1;.001>f||(g||a.j||(a.j=!0,e=new K("largegap",{currentTime:e,gapSize:f}),e.cancelable=!0,a.B(e),a.s.jumpLargeGaps&&!e.defaultPrevented&&(h=!0)),!g&&!h)||(0!=c&&b.end(c-1),a.g.currentTime=d)}}}}};function Bi(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Ci.value().get(b),c.Oa(a,b,d))}var Ci=new Vc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Di(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.o=!1;this.h=new mf;this.i=new Ei(a);Bi(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Fi(d,d.j)})}Di.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 Gi(a){return a.o?a.g.currentTime:a.j}function Hi(a,b){0<a.g.readyState?Ii(a.i,b):Bi(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Fi(a,a.j)})}
276function Fi(a,b){.001>Math.abs(a.g.currentTime-b)?Ji(a):(a.h.Oa(a.g,"seeking",function(){Ji(a)}),Ii(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Ji(a){a.o=!0;
276a.h.m(a.g,"seeking",function(){return a.l()})}function Ei(a){var b=this;this.h=a;this.o=10;this.l=this.j=this.i=0;this.g=new Q(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ei.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
277function Ii(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.o;a.h.currentTime=b;a.g.ma(.1)};function Ki(a){function b(){null==c.i?c.j=!0:(c.h.Oa(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.i))}var c=this;this.g=a;this.j=!1;this.i=null;this.h=new mf;Bi(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.h,function(){b()})}Ki.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.g=null};Ki.prototype.o=function(a){this.i=this.j?this.i:a};Ki.prototype.l=function(){return(this.j?this.g.currentTime:this.i)||0};Ki.prototype.H=function(){};
278function Li(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.I=b.minBufferTime||0;this.s=c;this.D=e;this.B=null;this.j=new zi(a,b.presentationTimeline,c,Mi(a,c),f);this.h=new Di(a,function(){a:{var h=g.j;h.A=!0;h.o=!1;h.j=!1;var k=Gi(g.h);h=Ni(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;Hi(g.h,h);h=void 0;break a}g.D();h=void 0}return h},Oi(this,d));this.A=(new Q(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Gi(g.h),k=g.g.cc(),l=g.g.ib();3>l-k&&(k=
279l-3);h<k&&(h=Ni(g,h),g.i.currentTime=h)}})).ma(.25)}Li.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.A&&(this.A.stop(),this.A=null);this.i=this.h=this.g=this.s=null;this.D=function(){}};Li.prototype.o=function(a){Hi(this.h,a)};Li.prototype.l=function(){var a=Gi(this.h);return 0<this.i.readyState&&!this.i.paused?Pi(this,a):a};
280function Oi(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.cc():a.g.ib():0>b&&(b=a.g.ib()+b);return Qi(a,Pi(a,b))}Li.prototype.H=function(){this.j.ie()};function Qi(a,b){var c=a.g.getDuration();return b>=c?c-a.s.durationBackoff:b}function Ni(a,b){var c=Math.max(a.I,a.s.rebufferingGoal),d=a.s.safeSeekOffset,e=a.g.cc(),f=a.g.ib(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Cc(c),k=a.g.Cc(d);c=a.g.Cc(c+d);return b>=g?Qi(a,b):b>f?f:b<e?Th(a.i.buffered,k)?k:c:b>=h||Th(a.i.buffered,b)?b:c}
281function Pi(a,b){var c=a.g.cc();if(b<c)return c;c=a.g.ib();return b>c?c:b}function Mi(a,b){if(!b.stallEnabled)return null;var c=b.stallSkip,d=new vi(new yi(a),b.stallThreshold);xi(d,function(){c?a.currentTime+=c:(a.pause(),a.play())});return d};function Ri(a){this.g=a;this.h=null;this.i=0;this.j=!1}q=Ri.prototype;q.destroy=function(){Eb("shaka.media.SegmentIndex","Please use release() instead of destroy().");this.release();return Promise.resolve()};q.release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)};q.zg=function(){this.j=!0};
282q.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};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=c.value,c.startTime+=a,c.endTime+=a,c.timestampOffset+=a};
283q.kd=function(a){!this.j&&a.length&&(this.g=this.g.filter(function(b){return b.startTime<a[0].startTime}),this.g.push.apply(this.g,ia(a)))};q.ec=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.kd(a);this.Db(b)};q.Db=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}};
284q.ub=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 ti(a.startTime,b,a.i,a.Ba,a.va,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout))}};
285q.ud=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new Q(function(){var d=b();d?c.g.push.apply(c.g,ia(d)):(c.h.stop(),c.h=null)}),this.h.ma(a))};Ri.prototype[Symbol.iterator]=function(){return this.ac(0)};Ri.prototype.ac=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.g.length)for(var e=c.g.length-1;0<=e;--e){var f=c.g[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Si(this,b,d)};
286function Ti(a,b,c){return new Ri([new ti(a,a+b,function(){return c},0,null,null,a,a,a+b)])}I("shaka.media.SegmentIndex",Ri);Ri.forSingleSegment=Ti;Ri.prototype.getIteratorForTime=Ri.prototype.ac;Ri.prototype.updateEvery=Ri.prototype.ud;Ri.prototype.fit=Ri.prototype.ub;Ri.prototype.evict=Ri.prototype.Db;Ri.prototype.mergeAndEvict=Ri.prototype.ec;Ri.prototype.merge=Ri.prototype.kd;Ri.prototype.offset=Ri.prototype.offset;Ri.prototype.get=Ri.prototype.get;Ri.prototype.find=Ri.prototype.find;
287Ri.prototype.markImmutable=Ri.prototype.zg;Ri.prototype.release=Ri.prototype.release;Ri.prototype.destroy=Ri.prototype.destroy;function Si(a,b,c){this.i=a;this.h=b;this.g=c}Si.prototype.seek=function(a){Eb("shaka.media.SegmentIterator","Please use SegmentIndex.getIteratorForTime instead of seek().");(a=this.i.ac(a))?(this.h=a.h,this.g=a.g):(this.h=Number.MAX_VALUE,this.g=0);return this.next().value};
288Si.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.Fa().length&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};Si.prototype.next=function(){var a=this.i.get(this.h);a&&0<a.g.length?(this.g++,a.Fa().length&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};I("shaka.media.SegmentIterator",Si);Si.prototype.next=Si.prototype.next;Si.prototype.current=Si.prototype.current;
289Si.prototype.seek=Si.prototype.seek;function Ui(){Ri.call(this,[]);this.l=[]}ra(Ui,Ri);q=Ui.prototype;q.clone=function(){var a=new Ui;a.l=this.l.slice();return a};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};
290q.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.kd=function(){};q.Db=function(){};q.ec=function(){};q.ub=function(){};q.ud=function(){};I("shaka.media.MetaSegmentIndex",Ui);Ui.prototype.updateEvery=Ui.prototype.ud;Ui.prototype.fit=Ui.prototype.ub;Ui.prototype.mergeAndEvict=Ui.prototype.ec;Ui.prototype.evict=Ui.prototype.Db;Ui.prototype.merge=Ui.prototype.kd;
291Ui.prototype.offset=Ui.prototype.offset;Ui.prototype.get=Ui.prototype.get;Ui.prototype.find=Ui.prototype.find;Ui.prototype.release=Ui.prototype.release;function Vi(a){var b=this;this.g=a;this.j=!1;this.i=this.g.hd();this.h=new Q(function(){b.g.df(.25*b.i)})}Vi.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Vi.prototype.set=function(a){this.i=a;Wi(this)};Vi.prototype.ed=function(){return this.g.ed()};function Wi(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.hd()!=b&&a.g.we(b);return}catch(c){}a.h.ma(.25);0!=a.g.hd()&&a.g.we(0)};function Xi(a){var b=this;this.h=a;this.g=new Set;this.i=(new Q(function(){Yi(b,!1)})).ma(.25)}Xi.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()};
292function Yi(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=a.h.currentTime,f=b,g=r(d.l.g),h=g.next();!h.done;h=g.next()){h=h.value;var k=d.j.get(h),l=e<h.startTime?Zi:e>h.endTime?$i:aj;d.j.set(h,l);for(var m=r(d.o),n=m.next();!n.done;
292n=m.next())n=n.value,n.Ub==k&&n.Tb==l&&n.Ib(h,f)}}};function bj(a){var b=this;this.h=function(){};this.g=new Set;this.j=a;this.i=(new Q(function(){for(var c=b.j(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&b.g["delete"](e)})).ma(2)}bj.prototype.release=function(){this.h=function(){};this.g.clear();this.i.stop()};function cj(a,b){a.h=b};function dj(a){var b=this;this.l=a;this.j=new Map;this.g=function(){};this.h=function(){};this.i=function(){};this.o=[{Ub:null,Tb:aj,Ib:function(c,d){return b.g(c,d)}},{Ub:Zi,Tb:aj,Ib:function(c,d){return b.g(c,d)}},{Ub:$i,Tb:aj,Ib:function(c,d){return b.g(c,d)}},{Ub:aj,Tb:Zi,Ib:function(c,d){return b.h(c,d)}},{Ub:aj,Tb:$i,Ib:function(c,d){return b.h(c,d)}},{Ub:Zi,Tb:$i,Ib:function(c,d){return b.i(c,d)}},{Ub:$i,Tb:Zi,Ib:function(c,d){return b.i(c,d)}}]}
293dj.prototype.release=function(){this.l=null;this.j.clear();this.g=function(){};this.h=function(){};this.i=function(){}};function ej(a,b,c,d){a.g=b;a.h=c;a.i=d}var Zi=1,aj=2,$i=3;function fj(a,b,c,d,e){a=cf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function gj(a,b){var c=this;this.G=b;this.F=a;this.s=null;this.l=1;this.i=this.h=null;this.g=new Map;this.o=!1;this.A=null;this.j=!1;this.L=new kf(function(){return hj(c)})}gj.prototype.destroy=function(){return this.L.destroy()};function hj(a){var b,c,d,e;return H(function(f){if(1==f.g){b=[];c=r(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,ij(e),b.push(jj(e));return u(f,Promise.all(b),2)}a.g.clear();a.G=null;a.F=null;a.s=null;z(f)})}
294gj.prototype.configure=function(a){this.s=a;this.A=new Le({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)};gj.prototype.start=function(){var a=this;return H(function(b){if(1==b.g)return u(b,kj(a),2);lf(a.L);a.o=!0;z(b)})};
295function lj(a,b){var c,d,e,f,g,h;H(function(k){switch(k.g){case 1:return c=Sb,A(k,2),u(k,mi(a.G.U,c.oa),4);case 4:wa(k,3);break;case 2:if(d=E(k),a.G)a.G.onError(d);case 3:e=od(b.mimeType,b.codecs);ai(a.G.U,e);f=a.G.U.o;if(g=f.isTextVisible()||a.s.alwaysStreamText)h=mj(b),a.g.set(c.oa,h),nj(a,h,0);z(k)}})}function oj(a){var b=a.g.get(Rb);b&&(ij(b),jj(b)["catch"](function(){}),a.g["delete"](Rb));a.i=null}
296function pj(a,b){var c=a.g.get("video");if(c){var d=c.stream;if(d)if(b){var e=d.trickModeVideo;e&&!c.Qb&&(qj(a,e,!1,0,!1),c.Qb=d)}else if(d=c.Qb)c.Qb=null,qj(a,d,!0,0,!1)}}function rj(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;a.h=b;a.o&&(b.video&&qj(a,b.video,c,d,e),b.audio&&qj(a,b.audio,c,d,e))}function sj(a,b){a.i=b;a.o&&qj(a,b,!0,0,!1)}
297function qj(a,b,c,d,e){var f=a.g.get(b.type);f||b.type!=Rb?f&&(f.Qb&&(b.trickModeVideo?(f.Qb=b,b=b.trickModeVideo):f.Qb=null),f.stream!=b||e)&&(b.type==Rb&&ai(a.G.U,od(b.mimeType,b.codecs)),f.stream=b,f.sa=null,c&&(f.wc?f.xd=!0:f.kb?(f.Sb=!0,f.Zc=d,f.xd=!0):(ij(f),tj(a,f,!0,d)["catch"](function(g){if(a.G)a.G.onError(g)}))),uj(a,f)["catch"](function(g){if(a.G)a.G.onError(g)})):lj(a,b)}
298function uj(a,b){var c,d;return H(function(e){if(1==e.g){if(!b.Pa)return e["return"]();c=b.stream;d=b.Pa;return c.segmentIndex?e.C(2):u(e,c.createSegmentIndex(),2)}if(b.Pa!=d||b.stream!=c)return e["return"]();var f=a.G.gd();var g=fi(a.G.U,b.type),h=b.stream.segmentIndex.find(b.Ua?b.Ua.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.va?k.va-k.Ba:null:null;k&&!h&&(h=(k.endTime-k.startTime)*(b.stream.bandwidth||0)/8);h?((k=k.h)&&(h+=(k.va?k.va-k.Ba:null)||0),k=a.G.getBandwidthEstimate(),
299f=8*h/k<(g||0)-f-Math.max(a.F.minBufferTime||0,a.s.rebufferingGoal)||b.Pa.h.g>h?!0:!1):f=!1;f&&b.Pa.abort();z(e)})}function vj(a,b){b.wc||b.Sb||(b.kb?(b.Sb=!0,b.Zc=0):null==di(a.G.U,b.type)?null==b.cb&&nj(a,b,0):(ij(b),tj(a,b,!1,0)["catch"](function(c){if(a.G)a.G.onError(c)})))}
300function kj(a){var b,c,d,e,f,g,h,k,l,m;return H(function(n){if(1==n.g){b=Sb;if(!a.h)throw new N(2,5,5006);c=new Map;d=new Set;a.h.audio&&(c.set(b.zb,a.h.audio),d.add(a.h.audio));a.h.video&&(c.set(b.fb,a.h.video),d.add(a.h.video));a.i&&(c.set(b.oa,a.i),d.add(a.i));e=a.G.U;f=a.s.forceTransmuxTS;return u(n,e.init(c,f),2)}lf(a.L);var p=a.F.presentationTimeline.getDuration();Infinity>p?a.G.U.ab(p):a.G.U.ab(Math.pow(2,32));g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.g.has(k)||
301(m=mj(l),a.g.set(k,m),nj(a,m,0));z(n)})}
301function mj(a){return{stream:a,type:a.type,sa:null,Ua:null,jd:null,Wd:null,Vd:null,Ud:null,Qb:null,endOfStream:!1,kb:!1,cb:null,Sb:!1,Zc:0,xd:!1,wc:!1,ke:!1,Ec:!1,Pa:null}}
302gj.prototype.Ic=function(a){var b=this,c,d,e,f,g;return H(function(h){switch(h.g){case 1:lf(b.L);if(a.kb||null==a.cb||a.wc)return h["return"]();a.cb=null;if(!a.Sb){h.C(2);break}return u(h,tj(b,a,a.xd,a.Zc),3);case 3:return h["return"]();case 2:if(a.stream.segmentIndex){h.C(4);break}c=a.stream;return u(h,a.stream.createSegmentIndex(),5);case 5:if(c!=a.stream)return null==a.cb&&nj(b,a,0),h["return"]();case 4:A(h,6);d=wj(b,a);null!=d&&(nj(b,a,d),a.Ec=!1);wa(h,7);break;case 6:return e=E(h),u(h,xj(b,e),
3038);case 8:return h["return"]();case 7:f=Array.from(b.g.values());if(!b.o||!f.every(function(k){return k.endOfStream})){h.C(0);break}return u(h,b.G.U.endOfStream(),10);case 10:lf(b.L),g=b.G.U.getDuration(),0!=g&&g<b.F.presentationTimeline.getDuration()&&b.F.presentationTimeline.ab(g),z(h)}})};
304function wj(a,b){if(yj(b))return ki(a.G.U,b.stream.originalId||""),null;b.type==Rb&&li(a.G.U);var c=a.G.gd(),d=b.Ua?b.Ua.endTime:c,e=gi(a.G.U,b.type,c),f=Math.max(a.F.minBufferTime||0,a.s.rebufferingGoal,a.s.bufferingGoal)*a.l;if(d>=a.F.presentationTimeline.getDuration())return b.endOfStream=!0,"video"==b.type&&(c=a.g.get(Rb))&&yj(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.s.updateIntervalSeconds/2;e=fi(a.G.U,b.type);e=zj(a,b,c,e);if(!e)return a.s.updateIntervalSeconds;f=Infinity;
305var g=Array.from(a.g.values());g=r(g);for(var h=g.next();!h.done;h=g.next())h=h.value,yj(h)||h.sa&&!h.sa.current()||(f=Math.min(f,h.Ua?h.Ua.endTime:c));if(d>=f+a.F.presentationTimeline.g)return a.s.updateIntervalSeconds;Aj(a,b,c,e)["catch"](function(){});return null}
306function zj(a,b,c,d){if(b.sa)return b.sa.current();if(b.Ua||d)return b.sa=b.stream.segmentIndex.ac(b.Ua?b.Ua.endTime:d),b.sa&&b.sa.next().value;a=a.s.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.sa=b.stream.segmentIndex.ac(d),e=b.sa&&b.sa.next().value);e||(b.sa=b.stream.segmentIndex.ac(c),e=b.sa&&b.sa.next().value);return e}
307function Aj(a,b,c,d){var e,f,g,h,k,l,m,n,p,t,v,w;return H(function(x){switch(x.g){case 1:return e=Sb,f=b.stream,g=b.sa,b.kb=!0,A(x,2),u(x,Bj(a,b,d),4);case 4:lf(a.L);if(a.j)return x["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.s.lowLatencyMode&&k&&h)return n=new Uint8Array(0),p=function(y){var C,D,B;return H(function(F){lf(a.L);if(a.j)return F["return"]();n=Cj(n,y);C=!1;D=0;(new sg).box("mdat",function(G){D=G.size+G.start;C=!0}).parse(n,!1,!0);if(!C)return F.C(0);
308B=n.subarray(0,D);n=n.subarray(D);return u(F,Dj(a,b,c,f,d,B),0)})},u(x,Ej(a,b,d,p),6);l=Ej(a,b,d);return u(x,l,7);case 7:return m=x.h,lf(a.L),a.j?x["return"]():b.Sb?(b.kb=!1,nj(a,b,0),x["return"]()):u(x,Dj(a,b,c,f,d,m),6);case 6:lf(a.L);if(a.j)return x["return"]();b.Ua=d;g.next();b.kb=!1;b.ke=!1;t=a.G.U.dd();v=t[b.type];Wa(JSON.stringify(v));b.Sb||a.G.ie();nj(a,b,0);wa(x,0);break;case 2:w=E(x);lf(a.L,w);if(a.j)return x["return"]();b.kb=!1;if(7001==w.code)b.kb=!1,b.cb=null,nj(a,b,0),x.C(0);else if(b.type==
309e.oa&&a.s.ignoreTextStreamFailures)a.g["delete"](e.oa),x.C(0);else if(3017==w.code)Fj(a,b,w),x.C(0);else if(1001==w.code&&w.data&&404==w.data[1])b.kb=!1,b.cb=null,nj(a,b,1),x.C(0);else return b.Ec=!0,w.severity=2,u(x,xj(a,w),0)}})}function Cj(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
310function Fj(a,b,c){if(!Array.from(a.g.values()).some(function(e){return e!=b&&e.ke})){var d=Math.round(100*a.l);if(20<d)a.l-=.2;else if(4<d)a.l-=.04;else{b.Ec=!0;a.j=!0;a.G.onError(c);return}b.ke=!0}nj(a,b,4)}
311function Bj(a,b,c){var d,e,f,g,h,k,l;return H(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.Wd||e!=b.Vd||f!=b.Ud)h=function(){var n;return H(function(p){if(1==p.g)return A(p,2),b.Vd=e,b.Ud=f,b.Wd=g,u(p,ni(a.G.U,b.type,g,e,f),4);if(2!=p.g)return wa(p,0);n=E(p);b.Vd=null;b.Ud=null;b.Wd=null;throw n;})},d.push(h());!si(c.h,b.jd)&&(b.jd=c.h)&&(k=Ej(a,b,c.h),l=function(){var n,p,t;return H(function(v){switch(v.g){case 1:return A(v,2),u(v,k,4);
312case 4:return n=v.h,lf(a.L),p=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(v,hi(a.G.U,b.type,n,null,null,p),5);case 5:wa(v,0);break;case 2:throw t=E(v),b.jd=null,t;}})}
312,d.push(l()));return u(m,Promise.all(d),0)})}
313function Dj(a,b,c,d,e,f){var g;return H(function(h){if(1==h.g)return g=d.closedCaptions&&0<d.closedCaptions.size,null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length&&(new sg).Z("emsg",function(k){var l=d.emsgSchemeIdUris;if(0===k.version){var m=k.reader.Kc();var n=k.reader.Kc();var p=k.reader.P();var t=k.reader.P();var v=k.reader.P();var w=k.reader.P();var x=e.startTime+t/p}else p=k.reader.P(),x=k.reader.Ob()/p+e.timestampOffset,t=x-e.startTime,v=k.reader.P(),w=k.reader.P(),m=k.reader.Kc(),n=k.reader.Kc();
314k=k.reader.xb(k.reader.W.byteLength-k.reader.ia());l.includes(m)&&("urn:mpeg:dash:event:2012"==m?a.G.Gg():(l=new K(Gj,{detail:{startTime:x,endTime:x+v/p,schemeIdUri:m,value:n,timescale:p,presentationTimeDelta:t,eventDuration:v,id:w,messageData:k}}),a.G.onEvent(l)))}).parse(f),u(h,Hj(a,b,c),2);if(3!=h.g)return lf(a.L),u(h,hi(a.G.U,b.type,f,e.startTime,e.endTime,g),3);lf(a.L);z(h)})}
315function Hj(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g){d=Math.max(a.s.bufferBehind,a.F.presentationTimeline.g);e=di(a.G.U,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():u(h,a.G.U.remove(b.type,e,e+g),2)}lf(a.L);z(h)})}function yj(a){return a&&a.type==Rb&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
316function Ej(a,b,c,d){var e,f,g,h;return H(function(k){if(1==k.g)return e=jf,f=fj(c.Fa(),c.Ba,c.va,a.s.retryParameters,d),g=a.G.Mb.request(e,f),b.Pa=g,u(k,g.promise,2);h=k.h;b.Pa=null;return k["return"](h.data)})}
317function tj(a,b,c,d){var e,f;return H(function(g){if(1==g.g)return b.Sb=!1,b.xd=!1,b.Zc=0,b.wc=!0,b.Ua=null,b.jd=null,b.sa=null,d?(e=a.G.gd(),f=a.G.U.getDuration(),u(g,a.G.U.remove(b.type,e+d,f),3)):u(g,mi(a.G.U,b.type),4);if(3!=g.g)return lf(a.L),c?u(g,a.G.U.flush(b.type),3):g.C(3);lf(a.L);b.wc=!1;b.endOfStream=!1;nj(a,b,0);z(g)})}
318function nj(a,b,c){var d=b.type;if(d!=Rb||a.g.has(d))b.cb=(new Bd(function(){var e;return H(function(f){if(1==f.g)return A(f,2),u(f,a.Ic(b),4);if(2!=f.g)return wa(f,0);e=E(f);if(a.G)a.G.onError(e);z(f)})})).S(c)}function ij(a){null!=a.cb&&(a.cb.stop(),a.cb=null)}function jj(a){return H(function(b){return a.Pa?u(b,a.Pa.abort(),0):b.C(0)})}function xj(a,b){return H(function(c){if(1==c.g)return u(c,Ne(a.A),2);lf(a.L);a.G.onError(b);b.handled||a.s.failureCallback(b);z(c)})};function Ij(a,b){var c=Jj(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.o=[];this.h=this.g=null;this.B=Promise.resolve().then(function(){return Kj(d)});this.L=new kf(function(){return Lj(d)})}Ij.prototype.destroy=function(){return this.L.destroy()};function Lj(a){var b,c,d;return H(function(e){if(1==e.g)return a.h&&a.h.abort(),Mj(a),u(e,a.B,2);a.g&&a.g.Za.Nb();b=r(a.o);for(c=b.next();!c.done;c=b.next())d=c.value,d.Za.Nb();a.g=null;a.o=[];a.j=null;z(e)})}
319function Nj(a,b){var c={hc:function(){},ld:function(){},Nb:function(){},onError:function(){},nd:function(){},wi:function(){}};a.o.push({create:b,Za:c});a.h&&a.h.abort();Mj(a);return c}
320function Kj(a){return H(function(b){if(a.L.g)b=b.C(0);else{if(0==a.o.length||a.g&&!a.g.Hb)var c=!1;else{a.g&&(a.g.Za.Nb(),a.g=null);c=a.o.shift();var d=c.create(a.l);d?(c.Za.hc(),a.g={node:d.node,payload:d.payload,Hb:d.Hb,Za:c.Za}):c.Za.nd();c=!0}c?c=Promise.resolve():a.g?c=Oj(a):(a.j.Fg(a.i),a.A=new Uc,c=a.A);b=u(b,c,1)}return b})}
321function Oj(a){var b,c;return H(function(d){switch(d.g){case 1:return a.i=a.j.hg(a.i,a.l,a.g.node,a.g.payload),A(d,2),a.h=a.j.Mf(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.Za.ld(),a.g=null);wa(d,0);break;case 2:b=E(d);if(7001==b.code)a.g.Za.Nb();else a.g.Za.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,z(d)}})}function Mj(a){a.A&&(a.A.resolve(),a.A=null)};function Pj(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=Pj.prototype;q.remove=function(a,b){if(!this.g)return!1;Qj(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
322q.append=function(a){function b(g){var h=[],k=700<=g.fontWeight,l="italic"==g.fontStyle,m=g.textDecoration.includes("underline");k&&h.push("b");l&&h.push("i");m&&h.push("u");k=h.reduce(function(n,p){return n+"<"+p+">"},"");h=h.reduceRight(function(n,p){return n+"</"+p+">"},"");return g.lineBreak||g.spacer?(g.spacer&&Eb("shaka.extern.Cue","Please use lineBreak instead of spacer."),"\n"):g.nestedCues.length?g.nestedCues.map(b).join(""):k+g.payload+h}var c=a.map(function(g){if(g.nestedCues.length){var h=
323g.clone();h.nestedCues=[];h.payload=b(g);return h}return g}),d=[];a=this.g.cues?Array.from(this.g.cues):[];var e={};c=r(c);for(var f=c.next();!f.done;e={Vb:e.Vb},f=c.next())e.Vb=f.value,a.some(function(g){return function(h){return h.startTime==g.Vb.startTime&&h.endTime==g.Vb.endTime&&h.text==g.Vb.payload?!0:!1}}(e))||(f=Rj(e.Vb))&&d.push(f);a=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-
324d.indexOf(g):d.indexOf(g)-d.indexOf(h)});a=r(a);for(e=a.next();!e.done;e=a.next())this.g.addCue(e.value)};q.destroy=function(){this.g&&(Qj(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"};
325function Rj(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}
326function Qj(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",Pj);Pj.prototype.setTextVisibility=Pj.prototype.setTextVisibility;Pj.prototype.isTextVisible=Pj.prototype.isTextVisible;Pj.prototype.destroy=Pj.prototype.destroy;Pj.prototype.append=Pj.prototype.append;Pj.prototype.remove=Pj.prototype.remove;function Sj(){}function S(a){return document.createElement(a)}function Tj(){return document.createElement("button")}function Uj(a){for(;a.firstChild;)a.removeChild(a.firstChild)}I("shaka.util.Dom",Sj);Sj.removeAllChildren=Uj;function Vj(a,b){var c=this;this.B=!1;this.j=[];this.g=a;this.o=b;this.i=S("div");this.i.classList.add("shaka-text-container");this.i.style.textAlign="center";this.i.style.display="flex";this.i.style.flexDirection="column";this.i.style.alignItems="center";this.i.style.justifyContent="flex-end";this.o.appendChild(this.i);this.D=(new Q(function(){Wj(c)})).ma(.25);this.l=new Map;this.h=new mf;this.h.m(document,"fullscreenchange",function(){Wj(c,!0)});this.A=null;"ResizeObserver"in window&&(this.A=new ResizeObserver(function(){Wj(c,
327!0)}),this.A.observe(this.i))}q=Vj.prototype;q.append=function(a){var b=[].concat(ia(this.j)),c={};a=r(a);for(var d=a.next();!d.done;c={Oc:c.Oc},d=a.next())c.Oc=d.value,b.some(function(e){return function(f){return Bc(f,e.Oc)}}(c))||this.j.push(c.Oc);Wj(this)};q.destroy=function(){this.o.removeChild(this.i);this.i=null;this.B=!1;this.j=[];this.D&&this.D.stop();this.l.clear();this.h&&(this.h.release(),this.h=null);this.A&&(this.A.disconnect(),this.A=null)};
328q.remove=function(a,b){if(!this.i)return!1;this.j=this.j.filter(function(c){return c.startTime<a||c.endTime>=b});Wj(this);return!0};q.isTextVisible=function(){return this.B};q.setTextVisibility=function(a){this.B=a};
329function Wj(a,b){function c(h){return a.j.includes(h)&&a.B&&h.startTime<=d&&h.endTime>d}b=void 0===b?!1:b;for(var d=a.g.currentTime,e=r(a.l.keys()),f=e.next();!f.done;f=e.next())if(f=f.value,!c(f)||b){var g=a.l.get(f);a.i.removeChild(g);a.l["delete"](f)}e=new Set(a.l.values());f=r(Array.from(a.i.childNodes));for(g=f.next();!g.done;g=f.next())g=g.value,e.has(g)||a.i.removeChild(g);
329e=a.j.filter(function(h){return c(h)&&!a.l.has(h)}).sort(function(h,k){return h.startTime!=k.startTime?h.startTime-k.startTime:
330h.endTime-k.endTime});e=r(e);for(f=e.next();!f.done;f=e.next())f=f.value,g=Xj(a,a.i,f,!1),a.l.set(f,g)}function Xj(a,b,c,d){var e=d?"span":"div";if(c.lineBreak||c.spacer)c.spacer&&Eb("shaka.extern.Cue","Please use lineBreak instead of spacer."),e="br";var f=S(e);"br"!=e&&Yj(a,f,c,d);e=f;!d&&c.nestedCues.length&&(e=S("span"),e.classList.add("shaka-text-wrapper"),f.appendChild(e));c=r(c.nestedCues);for(d=c.next();!d.done;d=c.next())Xj(a,e,d.value,!0);b.appendChild(f);return f}
331function Yj(a,b,c,d){var e=b.style,f=0==c.nestedCues.length;e.whiteSpace="pre-wrap";var g=c.payload.replace(/\s+$/g,function(h){return"\u00a0".repeat(h.length)});d?b.textContent=g:g.length&&(e=S("span"),e.textContent=g,b.appendChild(e),e=e.style);e.backgroundColor=c.backgroundColor;e.border=c.border;e.color=c.color;e.direction=c.direction;e.opacity=c.opacity;e.paddingLeft=Zj(c.linePadding,c,a.o);e.paddingRight=Zj(c.linePadding,c,a.o);c.backgroundImage&&(e.backgroundImage="url('"+c.backgroundImage+
332"')",e.backgroundRepeat="no-repeat",e.backgroundSize="contain",e.backgroundPosition="center",""==c.backgroundColor&&(e.backgroundColor="transparent"));d?e.display="inline":(e.display="flex",e.flexDirection="column",e.alignItems="center",e.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end");f||(e.margin="0");e.fontFamily=c.fontFamily;e.fontWeight=c.fontWeight.toString();e.fontStyle=c.fontStyle;e.letterSpacing=c.letterSpacing;e.fontSize=Zj(c.fontSize,c,
333a.o);c.line?1==c.lineInterpretation&&(e.position="absolute",c.writingMode==vc?c.lineAlign==xc?e.top=c.line+"%":"end"==c.lineAlign&&(e.bottom=c.line+"%"):"vertical-lr"==c.writingMode?c.lineAlign==xc?e.left=c.line+"%":"end"==c.lineAlign&&(e.right=c.line+"%"):c.lineAlign==xc?e.right=c.line+"%":"end"==c.lineAlign&&(e.left=c.line+"%")):c.region&&c.region.id&&(!d&&!f||c.backgroundImage)&&(a=c.region.widthUnits==Ic?"%":"px",b=c.region.viewportAnchorUnits==Ic?"%":"px",e.height=c.region.height+(c.region.heightUnits==
334Ic?"%":"px"),e.width=c.region.width+a,e.position="absolute",e.top=c.region.viewportAnchorY+b,e.left=c.region.viewportAnchorX+b);e.lineHeight=c.lineHeight;c.position&&(c.writingMode==vc?e.paddingLeft=c.position:e.paddingTop=c.position);"line-left"==c.positionAlign?e.cssFloat="left":"line-right"==c.positionAlign&&(e.cssFloat="right");e.textAlign=c.textAlign;e.textDecoration=c.textDecoration.join(" ");e.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&e.writingMode==c.writingMode||
335(e.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==vc?e.width=c.size+"%":e.height=c.size+"%")}function Zj(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),$g:d[2]}:null;if(!d)return a;var e=d.value;switch(d.$g){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}I("shaka.text.UITextDisplayer",Vj);Vj.prototype.setTextVisibility=Vj.prototype.setTextVisibility;
336Vj.prototype.isTextVisible=Vj.prototype.isTextVisible;Vj.prototype.remove=Vj.prototype.remove;Vj.prototype.destroy=Vj.prototype.destroy;Vj.prototype.append=Vj.prototype.append;function ak(a){function b(f){var g=[],h=700<=f.fontWeight,k="italic"==f.fontStyle,l=f.textDecoration.includes("underline");h&&g.push("b");k&&g.push("i");l&&g.push("u");h=g.reduce(function(m,n){return m+"<"+n+">"},"");g=g.reduceRight(function(m,n){return m+"</"+n+">"},"");return f.lineBreak||f.spacer?(f.spacer&&Eb("shaka.text.Cue","Please use lineBreak instead of spacer."),"\n"):f.nestedCues.length?f.nestedCues.map(b).join(""):h+f.payload+g}var c=a.map(function(f){if(f.nestedCues.length){var g=f.clone();
337g.nestedCues=[];g.payload=b(f);return g}return f});a="WEBVTT\n\n";c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=function(f){var g=Math.floor(f/3600),h=Math.floor(f/60%60),k=Math.floor(f%60);f=Math.floor(1E3*f%1E3);return(10>g?"0":"")+g+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>f?10>f?"00":"0":"")+f};a+=e(d.startTime)+" --\x3e "+e(d.endTime)+function(f){var g=[];
337switch(f.textAlign){case "left":g.push("align:left");break;case "right":g.push("align:right");break;case uc:g.push("align:middle");
338break;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(" "):""}(d)+"\n";a+=d.payload+"\n\n"}return a}I("shaka.text.WebVttGenerator",function(){});function bk(){}
339function ck(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]=Ve(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=Ve(l)),k=ck(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?(Qa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ra("Unexpected number of arguments for "+k),a[h]=b[h]):(Qa("Invalid config, unrecognized key "+
340k),g=!1)}return g}function dk(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}I("shaka.util.ConfigUtils",bk);bk.convertToConfigObject=dk;bk.mergeConfigObjects=ck;function ek(){}
341function fk(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:Me(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:ag,logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[]},c={retryParameters:Me(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,
342ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},
343manifestPreprocessor:function(g){return g}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,useFullSegmentsForStartTime:!1}},d={retryParameters:Me(),failureCallback:function(g){return[g]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,
344inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1};if(navigator.userAgent.match(/Edge\//)||Fd()||Hd())d.gapDetectionThreshold=.5;if(Gd("Web0S")||Fd()||Hd())d.stallSkip=0;var e={trackSelectionCallback:function(g){return H(function(h){return h["return"](g)})},downloadSizeCallback:function(g){var h;return H(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?u(k,navigator.storage.estimate(),3):k["return"](!0);
345h=k.h;return k["return"](h.usage+g<.95*h.quota)})},progressCallback:function(g,h){return[g,h]},usePersistentLicense:!0},f={drm:b,manifest:c,streaming:d,offline:e,abrFactory:function(){return new ve},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity}},
346preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null}};e.trackSelectionCallback=
347function(g){return H(function(h){return h["return"](gk(g,f.preferredAudioLanguage))})};return f}function hk(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return ck(a,b,c||fk(),d,"")}
348function gk(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=bc(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Ub(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
3492);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=r(a);for(g=d.next();!g.done;g=d.next())g=g.value,g.type!=Rb&&"image"!=g.type||c.push(g);return c}I("shaka.util.PlayerConfiguration",ek);ek.mergeConfigObjects=hk;function ik(){this.g=null;this.h=[]}function jk(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 kk(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=r(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
350function lk(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 mk(){this.i=this.h=null;this.g=[]}function nk(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 ok(){this.A=this.B=this.K=this.H=this.o=this.j=this.I=this.l=this.i=this.N=this.O=this.R=this.D=this.V=NaN;this.g=new ik;this.h=new mk};function U(a,b){cb.call(this);var c=this;this.l=pk;this.eb=this.g=null;this.V=!1;this.h=new mf;this.Ab=this.B=this.Ia=this.F=this.tb=this.A=this.i=this.pb=this.I=this.sb=this.H=this.ua=this.D=this.K=this.o=this.T=null;this.Xd=1E9;this.s=qk(this);this.Td={width:Infinity,height:Infinity};this.j=null;this.ba=new De(this.s.preferredAudioLanguage,this.s.preferredVariantRole,this.s.preferredAudioChannelCount);this.ea=this.s.preferredTextLanguage;this.Xa=this.s.preferredTextRole;this.Ja=this.s.preferForcedSubs;
351this.Bb=[];b&&b(this);this.T=rk(this);this.T.ue(this.s.streaming.forceHTTPS);this.N=null;sk&&(this.N=Lb(sk));this.h.m(window,"online",function(){c.le()});
351this.Ma={name:"detach"};this.gb={name:"attach"};this.R={name:"unload"};this.$d={name:"manifest-parser"};this.Rd={name:"manifest"};this.na={name:"media-source"};this.Yb={name:"drm-engine"};this.O={name:"load"};this.fe={name:"src-equals-drm-engine"};this.xa={name:"src-equals"};var d=new Map;d.set(this.gb,function(e,f){return Se(tk(c,e,f))});d.set(this.Ma,
352function(e){e.J&&(c.h.Ra(e.J,"error"),e.J=null);c.g=null;e=Promise.resolve();return Se(e)});d.set(this.R,function(e){return Se(uk(c,e))});d.set(this.na,function(e){e=vk(c,e);return Se(e)});d.set(this.$d,function(e,f){var g=wk(c,e,f);return Se(g)});d.set(this.Rd,function(e){return xk(c,e)});d.set(this.Yb,function(e){e=yk(c,e);return Se(e)});d.set(this.O,function(e,f){return Se(zk(c,e,f))});d.set(this.fe,function(e,f){var g=Ak(c,e,f);return Se(g)});d.set(this.xa,function(e,f){return Bk(c,e,f)});this.aa=
353new Ij(this.Ma,{hg:function(e,f,g,h){var k=null;e==c.Ma&&(k=g==c.Ma?c.Ma:c.gb);e==c.gb&&(k=g==c.Ma||f.J!=h.J?c.Ma:g==c.gb?c.gb:g==c.na||g==c.O?c.na:g==c.xa?c.fe:null);e==c.na&&(k=g==c.O&&f.J==h.J?c.$d:c.R);e==c.$d&&(k=Ck(c.O,c.Rd,c.R,g,f,h));e==c.Rd&&(k=Ck(c.O,c.Yb,c.R,g,f,h));e==c.Yb&&(k=Ck(c.O,c.O,c.R,g,f,h));e==c.fe&&(k=g==c.xa&&f.J==h.J?c.xa:c.R);if(e==c.O||e==c.xa)k=c.R;e==c.R&&(k=h.J&&f.J==h.J?c.gb:c.Ma);return k},Mf:function(e,f,g){c.dispatchEvent(Dk(Ek,{state:e.name}));return d.get(e)(f,g)},
354handleError:function(e){return H(function(f){return 1==f.g?u(f,uk(c,e),2):f["return"](e.J?c.gb:c.Ma)})},Fg:function(e){c.dispatchEvent(Dk(Fk,{state:e.name}))}});a&&this.vc(a,!0)}ra(U,cb);function Dk(a,b){return new K(a,b)}q=U.prototype;
355q.destroy=function(){var a=this,b;return H(function(c){switch(c.g){case 1:if(a.l==Gk)return c["return"]();a.l=Gk;b=Nj(a.aa,function(){return{node:a.Ma,payload:Jj(),Hb:!1}});return u(c,new Promise(function(d){b.hc=function(){};b.ld=function(){d()};b.Nb=function(){d()};b.onError=function(){d()};b.nd=function(){d()}}),2);case 2:return u(c,a.aa.destroy(),3);case 3:a.h&&(a.h.release(),a.h=null);a.Ab=null;a.B=null;a.s=null;a.j=null;a.eb=null;if(!a.T){c.C(0);break}return u(c,a.T.destroy(),5);case 5:a.T=
356null,z(c)}})};
357function Hk(){window.Promise||Ra("A Promise implementation or polyfill is required");window.TextDecoder&&window.TextEncoder||Ra("A TextDecoder/TextEncoder implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&window.TextDecoder&&window.TextEncoder&&Array.prototype.forEach)||Gd("Trident/"))return!1;var a=Jd();return a&&12>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:
358Cd()?!0:Dd("application/x-mpegurl")}q.vc=function(a,b){b=void 0===b?!0:b;if(this.l==Gk)return Promise.reject(Ik());var c=Jj();c.J=a;Cd()||(b=!1);var d=b?this.na:this.gb,e=Nj(this.aa,function(){return{node:d,payload:c,Hb:!1}});e.hc=function(){};return Jk(e)};q.detach=function(){var a=this;if(this.l==Gk)return Promise.reject(Ik());var b=Nj(this.aa,function(){return{node:a.Ma,payload:Jj(),Hb:!1}});b.hc=function(){};return Jk(b)};
359q.Fe=function(a){var b=this;a=void 0===a?!0:a;if(this.l==Gk)return Promise.reject(Ik());Cd()||(a=!1);var c=Jj(),d=Nj(this.aa,function(e){var f=e.J&&a?b.na:e.J?b.gb:b.Ma;c.J=e.J;return{node:f,payload:c,Hb:!1}});d.hc=function(){};return Jk(d)};
360q.load=function(a,b,c){var d=this;if(this.l==Gk)return Promise.reject(Ik());this.dispatchEvent(Dk(Kk));var e=Jj();e.uri=a;e.Be=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Lk(this,e)?this.xa:this.O,g=Nj(this.aa,function(h){if(null==h.J)return null;e.J=h.J;return{node:f,payload:e,Hb:!0}});this.j=new ok;g.hc=function(){};return new Promise(function(h,k){g.nd=function(){return k(new N(2,7,7002))};g.ld=function(){h();d.dispatchEvent(Dk(Mk))};g.Nb=function(){return k(Ik())};g.onError=
361function(l){return k(l)}})};function Lk(a,b){if(!Cd())return!0;var c=b.mimeType,d=b.uri||"";c||(c=mg(d),c=Nk[c]);if(c){if(""==(b.J||Ed()).canPlayType(c))return!1;if(!Cd()||!(c in lg||mg(d)in ng)||a.s.streaming.preferNativeHls)return!0;if(Id())return a.s.streaming.useNativeHlsOnSafari}return!1}function tk(a,b,c){null==b.J&&(b.J=c.J,a.h.m(b.J,"error",function(){var d=Ok(a);d&&Pk(a,d)}));a.g=b.J;return Promise.resolve()}
362function uk(a,b){var c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:return a.l!=Gk&&(a.l=pk),c=a.Bb.map(function(p){return p()}),a.Bb=[],u(n,Promise.all(c),2);case 2:a.dispatchEvent(Dk(Qk));b.mimeType=null;b.startTime=null;b.uri=null;b.J&&(a.h.Ra(b.J,"loadedmetadata"),a.h.Ra(b.J,"playing"),a.h.Ra(b.J,"pause"),a.h.Ra(b.J,"ended"),a.h.Ra(b.J,"ratechange"));a.ua&&(a.ua.release(),a.ua=null);a.sb&&(a.sb.stop(),a.sb=null);if(!a.A){n.C(3);break}return u(n,a.A.stop(),4);case 4:a.A=null,a.tb=null;
363case 3:if(!a.B){n.C(5);break}return u(n,a.B.stop(),5);case 5:if(!a.i){n.C(7);break}return u(n,a.i.destroy(),8);case 8:a.i=null;case 7:a.H&&(a.H.release(),a.H=null);a.D&&(a.D.release(),a.D=null);if(!a.K){n.C(9);break}return u(n,a.K.destroy(),10);case 10:a.K=null;
363case 9:if(a.N)a.N.onAssetUnload();if(!b.J||!b.J.src){n.C(11);break}return u(n,new Promise(function(p){return(new Q(p)).S(.1)}),12);case 12:for(b.J.removeAttribute("src"),b.J.load();b.J.lastChild;)b.J.removeChild(b.J.firstChild);case 11:if(!a.o){n.C(13);
364break}return u(n,a.o.destroy(),14);case 14:a.o=null;case 13:a.Ia=null;a.I=null;if(a.F){d=r(a.F.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.F.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.F=null;a.j=new ok;a.Qd=null;Rk(a);z(n)}})}
365function vk(a,b){var c,d,e,f;return H(function(g){if(1==g.g)return c=new Qh,d=a.s.textDisplayFactory,e=Lb(d),a.Qd=d,f=Sk(b.J,c,e,function(h,k,l){h=r(h);for(var m=h.next();!m.done;m=h.next())if(m=m.value,m.data&&m.cueTime&&m.frames){for(var n=m.cueTime+k,p=l,t=r(m.frames),v=t.next();!v.done;v=t.next())Tk(a,n,p,"ID3",v.value);if(a.N)a.N.onHlsTimedMetadata(m,n)}}),u(g,f.H,2);a.K=f;z(g)})}
366function wk(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.T,a.Ia=d,f=a,u(h,kg(d,e,a.s.manifest.retryParameters,b.mimeType),2);f.tb=h.h;a.A=Lb(a.tb);g=Ve(a.s.manifest);c.J&&"AUDIO"===c.J.nodeName&&(g.disableVideo=!0);a.A.configure(g);z(h)})}
367function xk(a,b){var c=b.uri,d=a.T;a.pb=new bj(function(){return a.Ka()});cj(a.pb,function(g){Uk(a,Vk,g);if(a.N)a.N.onDashTimedMetadata(g)});var e={networkingEngine:d,filter:function(g){return H(function(h){return h["return"](a.bd(g))})},makeTextStreamsForClosedCaptions:function(g){return Wk(a,g)},onTimelineRegionAdded:function(g){var h=a.pb;a:{var k=r(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=
368l;break a}k=null}null==k&&(h.g.add(g),h.h(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Pk(a,g)},isLowLatencyMode:function(){return a.s.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.s.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)}},f=Date.now()/1E3;return new Oe(function(){var g,h,k,l;return H(function(m){if(1==m.g)return g=a,u(m,a.A.start(c,e),2);g.F=m.h;h=Dk(Xk);a.dispatchEvent(h);if(0==
369a.F.variants.length)throw new N(2,4,4036);Yk(a.F);k=Date.now()/1E3;l=k-f;a.j.I=l;z(m)})}(),function(){return a.A.stop()})}
370function yk(a,b){var c,d;return H(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.o=Zk(a,{Mb:a.T,onError:function(f){Pk(a,f)},md:function(f){$k(a,f)},onExpirationUpdated:function(f,g){al(a,f,g)},onEvent:function(f){a.dispatchEvent(f);f.type==bl&&d&&(d=!1,a.j.j=Date.now()/1E3-c)}}),a.o.configure(a.s.drm),u(e,Ef(a.o,a.F.variants,a.F.offlineSessionIds),2)):3!=e.g?u(e,a.o.vc(b.J),3):u(e,a.bd(a.F),0)})}
371function zk(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v;return H(function(w){switch(w.g){case 1:b.startTime=c.startTime;d=b.J;e=b.uri;a.Ia=e;a.H=new Vi({hd:function(){return b.J.playbackRate},ed:function(){return b.J.defaultPlaybackRate},we:function(x){b.J.playbackRate=x},df:function(x){b.J.currentTime+=x}});f=function(){return cl(a)};g=function(){return dl(a)};a.h.m(d,"playing",f);a.h.m(d,"pause",f);a.h.m(d,"ended",f);a.h.m(d,"ratechange",g);h=a.s.abrFactory;a.B&&a.Ab==h||(a.Ab=h,a.B=Lb(h),"function"!=typeof a.B.playbackRateChanged&&
372(Eb("AbrManager","Please use an AbrManager with playbackRateChanged function."),a.B.playbackRateChanged=function(){}),a.B.configure(a.s.abr));a.ba=new De(a.s.preferredAudioLanguage,a.s.preferredVariantRole,a.s.preferredAudioChannelCount);a.ea=a.s.preferredTextLanguage;a.Xa=a.s.preferredTextRole;a.Ja=a.s.preferForcedSubs;el(a.F.presentationTimeline,a.s.playRangeStart,a.s.playRangeEnd);a.B.init(function(x,y,C){a.i&&x!=a.i.h&&fl(a,x,!0,void 0===y?!1:y,void 0===C?0:C)});a.D=gl(a,b.startTime);a.ua=hl(a);
373k=Math.max(a.F.minBufferTime,a.s.streaming.rebufferingGoal);il(a,k);Md(a.F,a.s.preferredVideoCodecs,a.s.preferredAudioCodecs,a.s.preferredAudioChannelCount,a.s.preferredDecodingAttributes);
373a.i=jl(a);a.i.configure(a.s.streaming);a.l=kl;a.dispatchEvent(Dk(ll));l=null;if(m=a.Gb().find(function(x){return x.active})){w.C(2);break}l=ml(a)?a.B.chooseVariant():null;fl(a,l,!0,!1,0);if(!a.s.streaming.startAtSegmentBoundary){w.C(3);break}n=a.D.l();return u(w,nl(l,n),4);case 4:p=w.h,a.D.o(p);case 3:ol(a,null,
374ie(l));case 2:return t=a.jb().find(function(x){return x.active}),t||((v=se(a.F.textStreams,a.ea,a.Xa,a.Ja)[0]||null)&&nk(a.j.h,v,!0),l&&(v?(l.audio&&pl(a,l.audio,v)&&(a.V=!0),a.V&&a.K.o.setTextVisibility(!0),ql(a)):a.V=!1),v&&(a.s.streaming.alwaysStreamText||a.Lb())&&sj(a.i,v)),u(w,a.i.start(),5);case 5:a.s.abr.enabled&&(a.B.enable(),rl(a)),be(a.i?a.i.h:null,a.F),sl(a.F),tl(a),ml(a),a.F.variants.some(function(x){return x.primary}),a.h.Oa(d,"loadedmetadata",function(){a.j.l=Date.now()/1E3-c.Be}),z(w)}})}
375function Ak(a,b,c){var d,e,f,g,h,k,l;return H(function(m){return 1==m.g?(d=Sb,e=Date.now()/1E3,f=!0,a.o=Zk(a,{Mb:a.T,onError:function(n){Pk(a,n)},md:function(n){$k(a,n)},onExpirationUpdated:function(n,p){al(a,n,p)},onEvent:function(n){a.dispatchEvent(n);n.type==bl&&f&&(f=!1,a.j.j=Date.now()/1E3-e)}}),a.o.configure(a.s.drm),g=b.uri||"",h=mg(g),k=Nk[h],"application/x-mpegurl"==k&&Id()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,
376createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?rd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.fb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},u(m,Ef(a.o,[l],[]),2)):u(m,a.o.vc(b.J),
3770)})}
378function Bk(a,b,c){function d(){return cl(a)}b.uri=c.uri;b.startTime=c.startTime;a.Ia=b.uri;a.D=new Ki(b.J);null!=b.startTime&&a.D.o(b.startTime);a.H=new Vi({hd:function(){return b.J.playbackRate},ed:function(){return b.J.defaultPlaybackRate},we:function(g){b.J.playbackRate=g},df:function(g){b.J.currentTime+=g}});il(a,a.s.streaming.rebufferingGoal);a.h.m(b.J,"playing",d);a.h.m(b.J,"pause",d);a.h.m(b.J,"ended",d);a.h.m(b.J,"ratechange",function(){return dl(a)});"none"!=a.g.preload&&a.h.Oa(a.g,"loadedmetadata",
379function(){a.j.l=Date.now()/1E3-c.Be});a.g.audioTracks&&(a.h.m(a.g.audioTracks,"addtrack",function(){return tl(a)}),a.h.m(a.g.audioTracks,"removetrack",function(){return tl(a)}),a.h.m(a.g.audioTracks,"change",function(){return tl(a)}));a.g.textTracks&&(a.h.m(a.g.textTracks,"addtrack",function(g){if(g.track)switch(g=g.track,g.kind){case "metadata":ul(a,g);break;case "chapters":vl(a,g);break;default:tl(a)}}),a.h.m(a.g.textTracks,"removetrack",function(){return tl(a)}),a.h.m(a.g.textTracks,"change",
380function(){return tl(a)}));b.J.src=b.uri;(Fd()||Gd("Web0S"))&&b.J.load();a.l=wl;a.dispatchEvent(Dk(ll));var e=new Uc;Bi(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){e.resolve()});var f=!1;a.Bb.push(function(){f=!0});Bi(a.g,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){var g;return H(function(h){if(1==h.g){if(f)return h["return"]();xl(a);g=yl(a);return g.find(function(k){return"disabled"!=k.mode})?h.C(2):u(h,new Promise(function(k){a.h.Oa(a.g.textTracks,"change",k);(new Q(k)).S(1)}),2)}if(f)return h["return"]();
381zl(a);z(h)})});a.g.error?e.reject(Ok(a)):"none"==a.g.preload&&(Ra('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.'),e.resolve());a.h.Oa(a.g,"error",function(){e.reject(Ok(a))});return new Oe(e,function(){e.reject(new N(2,7,7001));return Promise.resolve()})}
382function xl(a){var b=a.s.preferredAudioLanguage;if(""!=b){a.td(b);var c=a.s.preferredVariantRole;""!=c&&a.td(b,c)}}function zl(a){var b=a.s.preferredTextLanguage,c=a.s.preferForcedSubs;if(""!=b){a.oe(b,"",c);var d=a.s.preferredTextRole;""!=d&&a.oe(b,d,c)}}
383function ul(a,b){"metadata"==b.kind&&(b.mode="hidden",a.h.m(b,"cuechange",function(){if(b.activeCues)for(var c=r(b.activeCues),d=c.next();!d.done;d=c.next())if(d=d.value,Tk(a,d.startTime,d.endTime,d.type,d.value),a.N)a.N.onCueMetadataChange(d.value)}),(new Q(function(){var c=Al(a);c=r(c);for(var d=c.next();!d.done;d=c.next())d.value.mode="hidden"})).Ca().S(.5))}function Tk(a,b,c,d,e){a.dispatchEvent(Dk(Bl,{startTime:b,endTime:c,ti:d,payload:e}))}
384function vl(a,b){b&&"chapters"==b.kind&&(b.mode="hidden",(new Q(function(){var c=Cl(a);c=r(c);for(var d=c.next();!d.done;d=c.next())d.value.mode="hidden"})).Ca().S(.5))}function Yk(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 Zk(a,b){return new xf(b,a.s.drm.updateExpirationTime)}function rk(a){return new Ze(function(b,c){a.B&&a.B.segmentDownloaded(b,c)})}
385function gl(a,b){return new Li(a.g,a.F,a.s.streaming,b,function(){a.ua&&Yi(a.ua,!0);if(a.i)for(var c=a.i,d=c.G.gd(),e=c.s.smallGapLimit,f=r(c.g.keys()),g=f.next();!g.done;g=f.next()){g=g.value;var h=c.g.get(g);h.sa=null;var k=c.G.U;g==Rb?(k=k.i,k=null==k.g||null==k.h?!1:d>=k.g&&d<k.h):(k=ei(k,g),k=Th(k,d,e));if(!k&&(null!=fi(c.G.U,g)&&vj(c,h),h.Pa&&(h.Pa.abort(),h.Pa=null),g===Rb))for(g=c.G.U.D.g,g.l=0,g.h=[],g.g=[],h=g.i,h.i=[],h.h=[],h.g=0,Dh(g),g=r(g.j.values()),h=g.next();!h.done;h=g.next())xh(h.value)}a.I&&
386Dl(a)},function(c){return a.dispatchEvent(c)})}function hl(a){var b=new dj(a.pb);ej(b,function(d){Uk(a,El,d)},function(d){Uk(a,Fl,d)},function(d,e){e||(Uk(a,El,d),Uk(a,Fl,d))});var c=new Xi(a.g);c.g.add(b);return c}function il(a,b){a.I=new He;a.I.g=Je;Ke(a.I,b,Math.min(.5,b/2));Rk(a);a.sb=(new Q(function(){Dl(a)})).ma(.25)}
387function Dl(a){switch(a.l){case wl:if(a.g.ended)var b=!0;else{var c=Sh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case kl:a:if(a.g.ended||ci(a.K))b=!0;else{if(a.F.presentationTimeline.X()){c=a.F.presentationTimeline.Fb();var d=Sh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Uh(a.g.buffered,a.g.currentTime);c=a.I;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Ie:Je;c.g=d;b!=d&&Rk(a)}function Sk(a,b,c,d){return new Xh(a,b,c,d)}
388function jl(a){return new gj(a.F,{gd:function(){return a.D.l()},getBandwidthEstimate:function(){return a.B.getBandwidthEstimate()},U:a.K,Mb:a.T,onError:function(b){return Pk(a,b)},onEvent:function(b){return a.dispatchEvent(b)}
388,Gg:function(){a.A&&a.A.update&&a.A.update()},ie:function(){a.D&&a.D.H();Dl(a)}})}
389q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=dk(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(Eb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=
3900),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01));var c=hk(this.s,a,qk(this));Gl(this);return c};
391function Gl(a){if(a.A){var b=Ve(a.s.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.A.configure(b)}a.o&&a.o.configure(a.s.drm);if(a.i){a.i.configure(a.s.streaming);try{Hl(a,a.F)}catch(f){Pk(a,f)}a.B&&ml(a);b=a.i.h;!b||b.allowedByApplication&&b.allowedByKeySystem||Il(a)}a.T&&a.T.ue(a.s.streaming.forceHTTPS);if(a.K&&(b=a.s.textDisplayFactory,a.Qd!=b)){var c=Lb(b),d=a.K,e=d.o;d.o=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.i&&(d.i.i=c);a.Qd=b;a.i&&(b=a.i,(c=b.g.get(Rb))&&
392qj(b,c.stream,!0,0,!0))}a.B&&(a.B.configure(a.s.abr),a.s.abr.enabled?a.B.enable():a.B.disable(),rl(a));a.I&&(b=a.s.streaming.rebufferingGoal,a.F&&(b=Math.max(b,a.F.minBufferTime)),Ke(a.I,b,Math.min(.5,b/2)));a.F&&el(a.F.presentationTimeline,a.s.playRangeStart,a.s.playRangeEnd)}q.getConfiguration=function(){var a=qk(this);hk(a,this.s,qk(this));return a};
393q.Pf=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.Ka().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.Rg=function(){for(var a in this.s)delete this.s[a];hk(this.s,qk(this),qk(this));Gl(this)};q.Ve=function(){return this.l};q.gg=function(){return this.g};q.Ac=function(){return this.T};q.Pd=function(){return this.Ia};
394q.cd=function(){return this.N?this.N:null};q.X=function(){return this.F?this.F.presentationTimeline.X():this.g&&this.g.src?Infinity==this.g.duration:!1};q.Jb=function(){return this.F?this.F.presentationTimeline.Jb():!1};q.Ze=function(){if(this.F){var a=this.F.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};
395q.Ka=function(){if(this.F){var a=this.F.presentationTimeline;return{start:a.cc(),end:a.ib()}}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.sg=function(){this.X()&&(this.g.currentTime=this.Ka().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.o?this.o.i:null};q.zc=function(){return this.o?this.o.zc():Infinity};q.fd=function(){return this.o?this.o.fd():{}};
396q.Hc=function(){return this.I?this.I.g==Je:!1};q.Bc=function(){return this.g?this.H?this.H.i:1:0};q.Ee=function(a){0==a?Ra("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.H.set(a),this.l==kl&&(this.B.playbackRateChanged(a),pj(this.i,1<Math.abs(a))))};q.Je=function(){var a=this.H.ed();this.l==wl&&this.H.set(a);this.l==kl&&(this.H.set(a),this.B.playbackRateChanged(a),pj(this.i,!1))};
397q.Gb=function(){if(this.F){for(var a=this.i?this.i.h:null,b=[],c=r(this.F.variants),d=c.next();!d.done;d=c.next())if(d=d.value,qe(d)){var e=ie(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(f){return pe(f)}):[]};
398q.jb=function(){if(this.F){for(var a=this.i?this.i.i:null,b=[],c=r(this.F.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=je(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?yl(this).map(function(f){return ne(f)}):[]};q.Yf=function(){return this.F?this.F.imageStreams.map(function(a){return ke(a)}):[]};
399q.pg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,t,v,w,x,y,C,D,B;return H(function(F){if(1==F.g)return c.F?(d=c.F.imageStreams.find(function(G){return G.id==a}))?d.segmentIndex?F.C(3):u(F,d.createSegmentIndex(),3):F["return"](null):F.C(2);if(2!=F.g){e=d.segmentIndex.find(b);if(null==e)return F["return"](null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);
399if(!h)return F["return"](null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;t=l/n;
400v=m*n;w=f.j-f.startTime;x=w/v;y=f.startTime;D=C=0;1<v&&(B=Math.floor((b-f.startTime)/x),y=f.startTime+B*x,C=B%m*p,D=Math.floor(B/m)*t);return F["return"]({height:t,positionX:C,positionY:D,startTime:y,duration:x,uris:f.Fa(),width:p})}return F["return"](null)})};
401q.pe=function(a){if(this.F&&this.i){var b=this.F.textStreams.find(function(d){return d.id==a.id});b&&b!=this.i.i&&(nk(this.j.h,b,!1),sj(this.i,b),Jl(this),this.ea=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=yl(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,le(c)==a.id?c.mode=this.V?"showing":"hidden":c.mode="disabled";Jl(this)}};
402q.qe=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.F&&this.i){this.s.abr.enabled&&Ra("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.F.variants.find(function(e){return e.id==a.id});d&&qe(d)&&(fl(this,d,!1,b,c),this.ba=new Ce(d),ml(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,
403le(c)==a.id){Kl(this,c);break}};q.Of=function(){return Ll(this.Gb())};q.og=function(){return Ll(this.jb())};q.Nf=function(){return Array.from(Ml(this.Gb()))};q.ng=function(){return Array.from(Ml(this.jb()))};
404q.td=function(a,b){if(this.F&&this.D){this.ba=new De(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.i.h,e=this.ba.create(this.F.variants),f=null;e=r(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=ie(f),this.qe(c,!0)):Il(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Ub(a);f=d=null;e=
405r(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=pe(g);Ub(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?Kl(this,f):d&&Kl(this,d)}};
406q.oe=function(a,b,c){c=void 0===c?!1:c;if(this.F&&this.D){if(this.ea=a,this.Xa=b||"",this.Ja=c,(a=se(this.F.textStreams,this.ea,this.Xa,this.Ja)[0]||null)&&a!=this.i.i&&(nk(this.j.h,a,!1),this.s.streaming.alwaysStreamText||this.Lb()))sj(this.i,a),Jl(this)}else{var d=Ub(a);(a=this.jb().find(function(e){return Ub(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.pe(a)}};
407q.Tg=function(a){if(this.F&&this.D){for(var b=null,c=r(this.F.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.ba=new De(b.language,"",0,a),Il(this))}};q.Lb=function(){var a=this.V;return this.K?this.K.o.isTextVisible():this.g&&this.g.src&&this.g.textTracks?yl(this).some(function(b){return"showing"==b.mode}):a};q.Te=function(){return this.g&&this.g.src&&this.g.textTracks?Cl(this).map(function(a){return ne(a)}):[]};
408q.Rf=function(a){var b=Ub(a),c=Cl(this).find(function(e){return Ub(e.language)==b});if(!c||!c.cues)return[];a=[];c=r(c.cues);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({title:d.text,startTime:d.startTime,endTime:d.endTime});return a};function yl(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Al(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}
409function Cl(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}q.ze=function(a){a=!!a;if(this.V!=a){this.V=a;if(this.l==kl)this.K.o.setTextVisibility(a),this.s.streaming.alwaysStreamText||(a?this.i.i||(a=se(this.F.textStreams,this.ea,this.Xa,this.Ja),0<a.length&&(sj(this.i,a[0]),Jl(this))):oj(this.i));else if(this.g&&this.g.src&&this.g.textTracks){var b=yl(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")}ql(this)}};
410q.ig=function(){if(!this.X())return null;var a=this.aa.l,b=0;if(this.D)b=this.D.l();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.F?new Date(1E3*(this.F.presentationTimeline.j+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
411q.We=function(){if(!this.X())return null;if(this.F)return new Date(1E3*this.F.presentationTimeline.j);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.dd=function(){if(this.l==kl)return this.K.dd();var a={total:[],audio:[],video:[],text:[]};this.l==wl&&(a.total=Vh(this.g.buffered));return a};
412q.getStats=function(){if(this.l!=kl&&this.l!=wl)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};cl(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.j;b=Math.round(100*b);c.i=isNaN(c.i)?
413b:Math.max(c.i,b)}a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),c=this.j,b=Number(a.totalVideoFrames),c.R=Number(a.droppedVideoFrames),c.O=b,this.j.N=Number(a.corruptedVideoFrames));this.o?(a=this.o,a=a.H?a.H:NaN):a=NaN;this.j.o=a;if(this.l==kl){if(a=this.i.h)this.j.B=(this.H?this.H.i:1)*a.bandwidth;a&&a.video&&(c=this.j,b=a.video.height||NaN,c.V=a.video.width||NaN,c.D=b);this.X()&&(a=this.We().valueOf()+1E3*this.Ka().end,this.j.H=(Date.now()-a)/1E3);this.F&&this.F.presentationTimeline&&
414(this.j.K=this.F.presentationTimeline.g);a=this.B.getBandwidthEstimate();this.j.A=a}var d=this.j;a=d.V;c=d.D;b=d.B;var e=d.O,f=d.R,g=d.N,h=d.A,k=d.i,l=d.l,m=d.I,n=d.j,p=kk(d.g,"playing"),t=kk(d.g,"paused"),v=kk(d.g,"buffering"),w=d.o,x=d.H,y=d.K,C=lk(d.g),D=[];d=r(d.h.g);for(var B=d.next();!B.done;B=d.next())B=B.value,D.push({timestamp:B.timestamp,id:B.id,type:B.type,fromAdaptation:B.fromAdaptation,bandwidth:B.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:e,droppedFrames:f,corruptedFrames:g,
415estimatedBandwidth:h,completionPercent:k,loadLatency:l,manifestTimeSeconds:m,drmTimeSeconds:n,playTime:p,pauseTime:t,bufferingTime:v,licenseTime:w,liveLatency:x,maxSegmentDuration:y,stateHistory:C,switchHistory:D}};
416q.addTextTrack=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;Eb("addTextTrack","Please use an addTextTrackAsync.");
416if(this.l!=kl&&this.l!=wl)throw new N(1,7,7004);if(!d){var h=mg(a);d=Nl[h];if(!d)throw new N(1,2,2011,h);}if(this.l==wl){if("text/vtt"!=d)throw new N(1,2,2013,d);g&&(c="forced");d=document.createElement("track");d.src=a;d.label=f||"";d.kind=c;d.srclang=b;this.g.getAttribute("crossorigin")||this.g.setAttribute("crossorigin","anonymous");this.g.appendChild(d);if(a=this.jb().find(function(k){return k.language==
417b&&k.label==(f||"")&&k.kind==c}))return tl(this),a;throw new N(1,2,2012);}h=this.F.presentationTimeline.getDuration();if(Infinity==h)throw new N(1,4,4033);a={id:this.Xd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ti(0,h,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:Rb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,
418closedCaptions:null};if(!td(od(a.mimeType,a.codecs)))throw new N(2,2,2014,d);this.F.textStreams.push(a);tl(this);return je(a)};
419q.Df=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,t,v;return H(function(w){switch(w.g){case 1:if(h.l!=kl&&h.l!=wl)throw new N(1,7,7004);if(d){w.C(2);break}return u(w,Ol(h,a),3);case 3:d=w.h;case 2:if(h.l!=wl){w.C(4);break}g&&(c="forced");return u(w,Pl(h,a,b,c,d,f),5);case 5:k=h.jb();if(l=k.find(function(x){return x.language==b&&x.label==(f||"")&&x.kind==c}))return tl(h),w["return"](l);throw new N(1,2,2012);case 4:m=Sb;n=h.F.presentationTimeline.getDuration();if(Infinity==n)throw new N(1,
4204,4033);p={id:h.Xd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ti(0,n,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:m.oa,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};t=od(p.mimeType,p.codecs);v=td(t);if(!v)throw new N(2,2,2014,d);h.F.textStreams.push(p);tl(h);return w["return"](je(p))}})};
421q.Cf=function(a,b,c){var d=this,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:if(d.l!=kl&&d.l!=wl)throw new N(1,7,7004);if(c){m.C(2);break}return u(m,Ol(d,a),3);case 3:c=m.h;case 2:return u(m,Pl(d,a,b,"chapters",c),4);case 4:e=d.Te();if(f=e.find(function(n){return n.language==b})){g=Cl(d);h=r(g);for(k=h.next();!k.done;k=h.next())l=k.value,vl(d,l);return m["return"](f)}throw new N(1,2,2012);}})};
422function Ol(a,b){var c,d;return H(function(e){switch(e.g){case 1:c=mg(b);if(d=Nl[c])return e["return"](d);A(e,2);return u(e,og(b,a.T,a.s.streaming.retryParameters),4);case 4:d=e.h;wa(e,3);break;case 2:E(e);case 3:if(d)return e["return"](d);throw new N(1,2,2011,c);}})}
423function Pl(a,b,c,d,e,f){var g,h,k,l;return H(function(m){if(1==m.g)return"text/vtt"==e?m.C(2):u(m,Ql(b,a.T,a.s.streaming.retryParameters),3);if(2!=m.g){g=m.h;var n=e;var p=ud[n];if(p){n=p();p={periodStart:0,segmentStart:0,segmentEnd:a.g.duration};var t=Nc(g);n=n.parseMedia(t,p);n=ak(n)}else throw new N(2,2,2014,n);h=n;k=new Blob([h],{type:"text/vtt"});b=$h(k);e="text/vtt"}l=document.createElement("track");l.src=b;l.label=f||"";l.kind=d;l.srclang=c;a.g.getAttribute("crossorigin")||a.g.setAttribute("crossorigin",
424"anonymous");a.g.appendChild(l);z(m)})}function Ql(a,b,c){var d,e,f;return H(function(g){if(1==g.g)return d=jf,e=cf([a],c),e.method="GET",u(g,b.request(d,e).promise,2);f=g.h;return g["return"](f.data)})}q.ve=function(a,b){this.Td.width=a;this.Td.height=b};q.le=function(){if(this.l==kl){var a=this.i;if(a.L.g)a=!1;else if(a.j)a=!1;else{for(var b=r(a.g.values()),c=b.next();!c.done;c=b.next())c=c.value,c.Ec&&(c.Ec=!1,nj(a,c,.1));a=!0}}else a=!1;return a};
425q.dg=function(){Ra("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.F};q.eg=function(){return this.tb};
426function qk(a){var b=fk();b.streaming.failureCallback=function(c){var d=[1001,1002,1003];a.X()&&d.includes(c.code)&&(c.severity=1,a.le())};b.textDisplayFactory=function(){return a.eb?new Vj(a.g,a.eb):new Pj(a.g)};return b}q.Ae=function(a){this.eb=a};
427function Wk(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;
427g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Ui;h={id:a.Xd++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
428segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Rb,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)}}q.bd=function(a){var b=this;return H(function(c){if(1==c.g)return u(c,Rl(b,a),2);Hl(b,a);z(c)})};
429function Rl(a,b){var c;return H(function(d){if(1==d.g)return c=a.i?a.i.h:null,u(d,$d(c,b),2);sl(b);z(d)})}
430function Hl(a,b){if(a.l!=Gk){for(var c=a.s.restrictions,d=a.Td,e=!1,f=r(b.variants),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.allowedByApplication;g.allowedByApplication=Zd(g,c,d);h!=g.allowedByApplication&&(e=!0)}e&&a.i&&tl(a);if((c=a.o?a.o.i:null)&&a.o.o)for(d=r(b.variants),e=d.next();!e.done;e=d.next())for(e=e.value,e=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])),f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem)for(f=r(f.initData||[]),g=f.next();!g.done;g=
431f.next())g=g.value,Nf(a.o,g.initDataType,g.initData);Sl(a,b)}}
432function nl(a,b){var c,d,e,f,g;return H(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n;return H(function(p){if(1==p.g)return k?u(p,k.createSegmentIndex(),2):p["return"](null);m=k.segmentIndex[Symbol.iterator]().seek(l);if(!m)return p["return"](null);n=m.startTime;return p["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)})}
433function Rk(a){var b=a.Hc();if(a.j&&a.I&&a.D){var c=a.H;c.j=b;Wi(c);cl(a)}a.dispatchEvent(Dk(Tl,{buffering:b}))}function dl(a){var b=a.g.playbackRate;0!=b&&(a.H&&a.H.set(b),b=Dk(Ul),a.dispatchEvent(b))}function cl(a){if(a.j&&a.I){var b=a.j.g;a.I.g==Je?jk(b,"buffering"):a.g.paused?jk(b,"paused"):a.g.ended?jk(b,"ended"):jk(b,"playing")}}
434function ml(a){try{Sl(a,a.F)}catch(c){return Pk(a,c),!1}var b=a.F.variants.filter(function(c){return qe(c)});b=a.ba.create(b);a.B.setVariants(Array.from(b.values()));return!0}function Il(a){var b;(b=ml(a)?a.B.chooseVariant():null)&&fl(a,b,!0,!0,0)}
435function fl(a,b,c,d,e){var f=a.i.h;if(b==f)d&&rj(a.i,b,d,e,!0);else{var g=a.j.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));rj(a.i,b,d,e);d=null;f&&(d=ie(f));b=ie(b);c?ol(a,d,b):Vl(a,d,b)}}function Kl(a,b){var c=Array.from(a.g.audioTracks).find(function(e){return e.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=pe(c);var d=pe(b);Vl(a,c,d)}
436function pl(a,b,c){a=Ub(a.s.preferredTextLanguage);b=Ub(b.language);c=Ub(c.language);return Tb(c,a)&&!Tb(b,c)}function ol(a,b,c){b=Dk(Wl,{Eg:b,Dg:c});Xl(a,b)}function tl(a){var b=Dk(Yl);Xl(a,b)}function Vl(a,b,c){b=Dk(Zl,{Eg:b,Dg:c});Xl(a,b)}function Jl(a){var b=Dk($l);Xl(a,b)}function ql(a){var b=Dk(am);Xl(a,b)}function rl(a){var b=Dk(bm,{Cg:a.s.abr.enabled});Xl(a,b)}function Pk(a,b){if(a.l!=Gk){var c=Dk(cm,{detail:b});a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}
437function Uk(a,b,c){a.dispatchEvent(Dk(b,{detail:{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement}}))}function Ok(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 N(2,3,3016,b,c,a.g.error.message)}
438function $k(a,b){if(a.i){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=r(a.F.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&&!dm.includes(l)}h!=f.allowedByKeySystem&&
439(e=!0)}}}e&&ml(a);(d=a.i.h)&&!d.allowedByKeySystem&&Il(a);e&&tl(a)}}function al(a,b,c){if(a.A&&a.A.onExpirationUpdated)a.A.onExpirationUpdated(b,c);b=Dk(em);a.dispatchEvent(b)}function el(a,b,c){0<b&&(a.X()||a.tf(b));b=a.getDuration();c<b&&(a.X()||a.ab(c))}
440function Sl(a,b){var c=a.o?a.o.fd():{},d=Object.keys(c);d=d.length&&"00"==d[0];for(var e=!1,f=!1,g=new Set,h=new Set,k=r(b.variants),l=k.next();!l.done;l=k.next()){l=l.value;var m=[];l.audio&&m.push(l.audio);l.video&&m.push(l.video);m=r(m);for(var n=m.next();!n.done;
440n=m.next())if(n=n.value,n.keyIds.size){n=r(n.keyIds);for(var p=n.next();!p.done;p=n.next()){p=p.value;var t=c[d?"00":p];t?dm.includes(t)&&h.add(t):g.add(p)}}l.allowedByApplication?l.allowedByKeySystem&&(e=!0):f=!0}if(!e)throw c={hasAppRestrictions:f,
441missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new N(2,4,4012,c);}function sl(a){if(!a.variants.some(qe))throw new N(2,4,4032);}function Xl(a,b){H(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=Gk&&a.dispatchEvent(b);z(c)})}function Ml(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(Ub(c.language)):b.add("und");return b}
442function Ll(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=Ub(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=r(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){for(var m=r(k),n=m.next();!n.done;n=m.next()){n=n.value;var p=null;c.has(l)&&c.get(l).has(n)&&(p=c.get(l).get(n));
443h.push({language:l,role:n,label:p})}});return h}function Ik(){return new N(2,7,7E3)}function Ck(a,b,c,d,e,f){return d==a&&e.J==f.J&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Jj(){return{J:null,mimeType:null,startTime:null,Be:NaN,uri:null}}function Jk(a){return new Promise(function(b,c){a.Nb=function(){return c(Ik())};a.ld=function(){return b()};a.onError=function(d){return c(d)};a.nd=function(){return c(Ik())}})}I("shaka.Player",U);U.prototype.setVideoContainer=U.prototype.Ae;
444U.prototype.getManifestParserFactory=U.prototype.eg;U.prototype.getManifest=U.prototype.dg;U.prototype.retryStreaming=U.prototype.le;U.prototype.setMaxHardwareResolution=U.prototype.ve;U.prototype.addChaptersTrack=U.prototype.Cf;U.prototype.addTextTrackAsync=U.prototype.Df;U.prototype.addTextTrack=U.prototype.addTextTrack;U.prototype.getStats=U.prototype.getStats;U.prototype.getBufferedInfo=U.prototype.dd;U.prototype.getPresentationStartTimeAsDate=U.prototype.We;
445U.prototype.getPlayheadTimeAsDate=U.prototype.ig;U.prototype.setTextTrackVisibility=U.prototype.ze;U.prototype.getChapters=U.prototype.Rf;U.prototype.getChaptersTracks=U.prototype.Te;U.prototype.isTextTrackVisible=U.prototype.Lb;U.prototype.selectVariantsByLabel=U.prototype.Tg;U.prototype.selectTextLanguage=U.prototype.oe;U.prototype.selectAudioLanguage=U.prototype.td;U.prototype.getTextLanguages=U.prototype.ng;U.prototype.getAudioLanguages=U.prototype.Nf;U.prototype.getTextLanguagesAndRoles=U.prototype.og;
446U.prototype.getAudioLanguagesAndRoles=U.prototype.Of;U.prototype.selectVariantTrack=U.prototype.qe;U.prototype.selectTextTrack=U.prototype.pe;U.prototype.getThumbnails=U.prototype.pg;U.prototype.getImageTracks=U.prototype.Yf;U.prototype.getTextTracks=U.prototype.jb;U.prototype.getVariantTracks=U.prototype.Gb;U.prototype.cancelTrickPlay=U.prototype.Je;U.prototype.trickPlay=U.prototype.Ee;U.prototype.getPlaybackRate=U.prototype.Bc;U.prototype.isBuffering=U.prototype.Hc;U.prototype.getKeyStatuses=U.prototype.fd;
447U.prototype.getExpiration=U.prototype.zc;U.prototype.drmInfo=U.prototype.drmInfo;U.prototype.keySystem=U.prototype.keySystem;U.prototype.goToLive=U.prototype.sg;U.prototype.seekRange=U.prototype.Ka;U.prototype.isAudioOnly=U.prototype.Ze;U.prototype.isInProgress=U.prototype.Jb;U.prototype.isLive=U.prototype.X;U.prototype.getAdManager=U.prototype.cd;U.prototype.getAssetUri=U.prototype.Pd;U.prototype.getNetworkingEngine=U.prototype.Ac;U.prototype.getMediaElement=U.prototype.gg;
448U.prototype.getLoadMode=U.prototype.Ve;U.prototype.resetConfiguration=U.prototype.Rg;U.prototype.getBufferFullness=U.prototype.Pf;U.prototype.getConfiguration=U.prototype.getConfiguration;U.prototype.configure=U.prototype.configure;U.prototype.load=U.prototype.load;U.prototype.unload=U.prototype.Fe;U.prototype.detach=U.prototype.detach;U.prototype.attach=U.prototype.vc;
449U.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return H(function(h){if(1==h.g)return b={},a?u(h,eg(),3):h.C(2);2!=h.g&&(b=h.h);var k={};if(Cd()){for(var l in lg)k[l]=!0;for(var m in ng)k[m]=!0}
449l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,k[n]=Cd()?!!lg[n]:Dd(n);for(var p in l)k[p]=
450Cd()?!!ng[p]:Dd(l[p]);c=k;k={};p=r('video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(","));
451for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Cd()?td(l)?!0:MediaSource.isTypeSupported(l)||kd(l):Dd(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=fm;for(g in f)e[g]=f[g]();return h["return"](e)})};U.isBrowserSupported=Hk;U.setAdManagerFactory=function(a){sk=a};U.registerSupportPlugin=function(a,b){fm[a]=b};U.prototype.destroy=U.prototype.destroy;
452var bm="abrstatuschanged",Wl="adaptation",Tl="buffering",bl="drmsessionupdate",Gj="emsg",cm="error",em="expirationupdated",Mk="loaded",Kk="loading",Xk="manifestparsed",Bl="metadata",Ek="onstatechange",Fk="onstateidle",Ul="ratechange",ll="streaming",$l="textchanged",am="texttrackvisibility",Vk="timelineregionadded",El="timelineregionenter",Fl="timelineregionexit",Yl="trackschanged",Qk="unloading",Zl="variantchanged",gm={kh:bm,lh:Wl,mh:Tl,ph:bl,xh:Gj,Error:cm,yh:em,Eh:"largegap",Fh:Mk,Gh:Kk,Kh:Xk,Metadata:Bl,
453Oh:Ek,Ph:Fk,Xh:Ul,ai:"sessiondata",bi:ll,ci:$l,di:am,ei:Vk,gi:El,ii:Fl,ji:Yl,ni:Qk,pi:Zl},Gk=0,pk=1,kl=2,wl=3;U.LoadMode={DESTROYED:Gk,NOT_LOADED:pk,MEDIA_SOURCE:kl,SRC_EQUALS:wl};U.version="v3.2.0";var hm=["3","2"];Fb=new function(a){this.g=a;this.i=Gb;this.h=Hb}(new Db(Number(hm[0]),Number(hm[1])));
454var dm=["output-restricted","internal-error"],fm={},sk=null,Nk={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",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Nl={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function im(){this.h=[];this.j=this.i=this.g=0};function jm(a,b){var c=this;this.i=a;this.g=b;this.j=!1;this.l=this.g.getVolume();this.h=new mf;this.h.m(this.g,google.ima.AdEvent.Type.PAUSED,function(){c.j=!0});this.h.m(this.g,google.ima.AdEvent.Type.RESUMED,function(){c.j=!1})}q=jm.prototype;q.getDuration=function(){return this.i.getDuration()};q.getMinSuggestedDuration=function(){return this.i.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.g.getRemainingTime()};q.isPaused=function(){return this.j};
455q.isSkippable=function(){return 0<=this.i.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.i.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()};
456q.resize=function(a,b){this.g.resize(a,b,document.fullscreenElement?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.i.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.i=null};I("shaka.ads.ClientSideAd",jm);
457jm.prototype.release=jm.prototype.release;jm.prototype.getPositionInSequence=jm.prototype.getPositionInSequence;jm.prototype.getSequenceLength=jm.prototype.getSequenceLength;jm.prototype.setMuted=jm.prototype.setMuted;jm.prototype.resize=jm.prototype.resize;jm.prototype.isMuted=jm.prototype.isMuted;jm.prototype.setVolume=jm.prototype.setVolume;jm.prototype.getVolume=jm.prototype.getVolume;jm.prototype.play=jm.prototype.play;jm.prototype.pause=jm.prototype.pause;jm.prototype.skip=jm.prototype.skip;
458jm.prototype.canSkipNow=jm.prototype.canSkipNow;jm.prototype.getTimeUntilSkippable=jm.prototype.getTimeUntilSkippable;jm.prototype.isSkippable=jm.prototype.isSkippable;jm.prototype.isPaused=jm.prototype.isPaused;jm.prototype.getRemainingTime=jm.prototype.getRemainingTime;jm.prototype.getMinSuggestedDuration=jm.prototype.getMinSuggestedDuration;jm.prototype.getDuration=jm.prototype.getDuration;function km(a,b,c,d){var e=this;this.o=a;this.g=b;this.B=NaN;this.j=d;this.A=null;this.h=new mf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.o,this.g);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v3.2.0");this.i=null;this.h.Oa(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){lm(e,f)});this.h.m(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(f){mm(e,
459f)});
459this.g.onended=function(){e.l.contentComplete()}}km.prototype.stop=function(){this.i&&this.i.stop();this.o&&Uj(this.o)};function mm(a,b){b.getError();nm(a,null);a.j(new K("ad-cue-points-changed",{cuepoints:[]}))}
460function lm(a,b){a.j(new K("ads-loaded",{loadTime:Date.now()/1E3-a.B}));a.i=b.getAdsManager(a.g);a.j(new K("ima-ad-manager-loaded",{imaAdManager:a.i}));var c=a.i.getCuePoints();if(c.length){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next())d.push(new om(e.value));a.j(new K("ad-cue-points-changed",{cuepoints:d}))}pm(a);try{a.i.init(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.m(a.g,"loadeddata",function(){a.i.resize(a.g.offsetWidth,
461a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.i.start()}catch(f){nm(a,null)}}
462function pm(a){a.h.m(a.i,google.ima.AdErrorEvent.Type.AD_ERROR,function(b){mm(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(b){qm(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.STARTED,function(b){qm(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.FIRST_QUARTILE,function(b){a.j(new K("ad-first-quartile",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.MIDPOINT,function(b){a.j(new K("ad-midpoint",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.THIRD_QUARTILE,function(b){a.j(new K("ad-third-quartile",
463{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.COMPLETE,function(b){a.j(new K("ad-complete",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(b){nm(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(b){nm(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.SKIPPED,function(b){a.j(new K("ad-skipped",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.VOLUME_CHANGED,function(b){a.j(new K("ad-volume-changed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.VOLUME_MUTED,
464function(b){a.j(new K("ad-muted",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.PAUSED,function(b){a.A.j=!0;a.j(new K("ad-paused",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.RESUMED,function(b){a.A.j=!1;a.j(new K("ad-resumed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(b){a.j(new K("ad-skip-state-changed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.CLICK,function(b){a.j(new K("ad-clicked",{originalEvent:b}))});a.h.m(a.i,
465google.ima.AdEvent.Type.AD_PROGRESS,function(b){a.j(new K("ad-progress",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.AD_BUFFERING,function(b){a.j(new K("ad-buffering",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.IMPRESSION,function(b){a.j(new K("ad-impression",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.DURATION_CHANGE,function(b){a.j(new K("ad-duration-changed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.USER_CLOSE,function(b){a.j(new K("ad-closed",{originalEvent:b}))});
466a.h.m(a.i,google.ima.AdEvent.Type.LOADED,function(b){a.j(new K("ad-loaded",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(b){a.j(new K("all-ads-completed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.LINEAR_CHANGED,function(b){a.j(new K("ad-linear-changed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.AD_METADATA,function(b){a.j(new K("ad-metadata",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.LOG,function(b){a.j(new K("ad-recoverable-error",
467{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.AD_BREAK_READY,function(b){a.j(new K("ad-break-ready",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.INTERACTION,function(b){a.j(new K("ad-interaction",{originalEvent:b}))})}function qm(a,b){var c=b.getAd();a.A=new jm(c,a.i);a.j(new K("ad-started",{ad:a.A,sdkAdObject:c,originalEvent:b}));a.o.setAttribute("ad-active","true");a.g.pause()}
468function nm(a,b){a.j(new K("ad-stopped",{originalEvent:b}));a.o.removeAttribute("ad-active");a.g.play()};function rm(a,b){this.i=a;this.h=null;this.g=b}q=rm.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};
468q.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)};
469q.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.resize=function(){};q.setMuted=function(a){this.g.muted=a};q.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};
470q.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=this.i=null};I("shaka.ads.ServerSideAd",rm);rm.prototype.release=rm.prototype.release;rm.prototype.getPositionInSequence=rm.prototype.getPositionInSequence;rm.prototype.getSequenceLength=rm.prototype.getSequenceLength;rm.prototype.setMuted=rm.prototype.setMuted;rm.prototype.resize=rm.prototype.resize;rm.prototype.isMuted=rm.prototype.isMuted;
471rm.prototype.setVolume=rm.prototype.setVolume;rm.prototype.getVolume=rm.prototype.getVolume;rm.prototype.play=rm.prototype.play;rm.prototype.pause=rm.prototype.pause;rm.prototype.skip=rm.prototype.skip;rm.prototype.canSkipNow=rm.prototype.canSkipNow;rm.prototype.getTimeUntilSkippable=rm.prototype.getTimeUntilSkippable;rm.prototype.isSkippable=rm.prototype.isSkippable;rm.prototype.isPaused=rm.prototype.isPaused;rm.prototype.getRemainingTime=rm.prototype.getRemainingTime;
472rm.prototype.getMinSuggestedDuration=rm.prototype.getMinSuggestedDuration;rm.prototype.getDuration=rm.prototype.getDuration;function sm(a,b,c,d){var e=this;this.B=a;this.g=b;this.l=null;this.K=NaN;this.j=d;this.I=!1;this.D=this.o=this.A=null;this.H="";this.h=new mf;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.i=new google.ima.dai.api.StreamManager(this.g,this.B,a);this.j(new K("ima-stream-manager-loaded",{imaStreamManager:this.i}));this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){tm(e,f)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.H.length?e.l.resolve(e.H):
473e.l.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.l=null});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.o=new rm(f,e.g);e.D&&(e.o.h=e.D);e.j(new K("ad-started",{ad:e.o}));e.B.setAttribute("ad-active","true")});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");var f=e.g.currentTime;
474e.A&&e.A>f&&(e.g.currentTime=e.A,e.A=null)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.D=f.getStreamData().adProgressData;e.o&&(e.o.h=e.D)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.j(new K("ad-first-quartile"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.j(new K("ad-midpoint"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.j(new K("ad-third-quartile"))});
475this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.j(new K("ad-complete"));e.j(new K("ad-stopped"));e.B.removeAttribute("ad-active");e.o=null});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.j(new K("ad-skipped"));e.j(new K("ad-stopped"))});this.h.m(this.i,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(new om(h.start,h.end));e.j(new K("ad-cue-points-changed",
476{cuepoints:f}))})}sm.prototype.stop=function(){this.i.reset();this.H="";this.A=null};sm.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.i.onTimedMetadata(b)}};
477function tm(a,b){a.j(new K("ads-loaded",{loadTime:Date.now()/1E3-a.K}));var c=b.getStreamData().url;a.l.resolve(c);a.l=null;a.I||a.h.m(a.g,"seeked",function(){var d=a.g.currentTime;if(0!=d){a.i.streamTimeForContentTime(d);var e=a.i.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.g.currentTime=e.start)}})};function V(){cb.call(this);this.g=this.h=null;this.j=new im;this.i=navigator.language}ra(V,cb);q=V.prototype;
477q.setLocale=function(a){this.i=a};q.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new N(2,10,1E4);this.h=new km(a,b,this.i,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.j.h.push(d.loadTime);break;case "ad-started":c.j.g++;break;case "ad-complete":c.j.i++;break;case "ad-skipped":c.j.j++}c.dispatchEvent(d)})};
478q.onAssetUnload=function(){this.h&&this.h.stop();this.dispatchEvent(new K("ad-stopped"));this.j=new im};q.requestClientSideAds=function(a){if(!this.h)throw new N(1,10,10001);var b=this.h;b.B=Date.now()/1E3;b.l.requestAds(a)};
479q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new N(2,10,10002);this.g=new sm(a,b,this.i,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.j.h.push(d.loadTime);break;case "ad-started":c.j.g++;break;case "ad-complete":c.j.i++;break;case "ad-skipped":c.j.j++}c.dispatchEvent(d)})};
480q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new N(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ra('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="v3.2.0";c=this.g;var d=b;c.l?c=Promise.reject(new N(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
481(c.I=!0),c.l=new Uc,c.i.requestStream(a),c.H=d||"",c.K=Date.now()/1E3,c=c.l);return c};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new N(1,10,10003);(a.mpt||a.mpv)&&Ra('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="v3.2.0";this.g.i.replaceAdTagParameters(a)};
482q.getStats=function(){var a=this.j;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.i.processMetadata(b,c,a.startTime)}};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.i.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};I("shaka.ads.AdManager",V);
483V.prototype.onCueMetadataChange=V.prototype.onCueMetadataChange;V.prototype.onHlsTimedMetadata=V.prototype.onHlsTimedMetadata;V.prototype.onDashTimedMetadata=V.prototype.onDashTimedMetadata;V.prototype.getStats=V.prototype.getStats;V.prototype.replaceServerSideAdTagParameters=V.prototype.replaceServerSideAdTagParameters;V.prototype.requestServerSideStream=V.prototype.requestServerSideStream;V.prototype.initServerSide=V.prototype.initServerSide;V.prototype.requestClientSideAds=V.prototype.requestClientSideAds;
484V.prototype.onAssetUnload=V.prototype.onAssetUnload;V.prototype.initClientSide=V.prototype.initClientSide;V.prototype.setLocale=V.prototype.setLocale;function om(a,b){this.start=a;this.end=void 0===b?null:b}V.ADS_LOADED="ads-loaded";V.AD_STARTED="ad-started";V.AD_FIRST_QUARTILE="ad-first-quartile";V.AD_MIDPOINT="ad-midpoint";V.AD_THIRD_QUARTILE="ad-third-quartile";V.AD_COMPLETE="ad-complete";V.AD_STOPPED="ad-stopped";V.AD_SKIPPED="ad-skipped";V.AD_VOLUME_CHANGED="ad-volume-changed";V.AD_MUTED="ad-muted";
485V.AD_PAUSED="ad-paused";V.AD_RESUMED="ad-resumed";V.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";V.CUEPOINTS_CHANGED="ad-cue-points-changed";V.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";V.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";V.AD_CLICKED="ad-clicked";V.AD_PROGRESS="ad-progress";V.AD_BUFFERING="ad-buffering";V.AD_IMPRESSION="ad-impression";V.AD_DURATION_CHANGED="ad-duration-changed";V.AD_CLOSED="ad-closed";V.AD_LOADED="ad-loaded";V.ALL_ADS_COMPLETED="all-ads-completed";
486V.AD_LINEAR_CHANGED="ad-linear-changed";V.AD_METADATA="ad-metadata";V.AD_RECOVERABLE_ERROR="ad-recoverable-error";V.AD_BREAK_READY="ad-break-ready";V.AD_INTERACTION="ad-interaction";sk=function(){return new V};function um(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof K){var d={};for(f in c){var e=c[f];e&&"object"==typeof e?"detail"==f&&(d[f]=e):f in Event||(d[f]=e)}return d}if(c instanceof Error){var f=new Set(["name","message","stack"]);for(d in c)f.add(d);e=r(Object.getOwnPropertyNames(c));for(d=e.next();!d.done;d=e.next())f.add(d.value);e={};f=r(f);for(d=f.next();!d.done;d=f.next())d=d.value,e[d]=c[d];f={__type__:"Error",contents:e}}else if(c instanceof
487TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=r(Vh(c)),e=d.next();!e.done;e=d.next()){e=e.value;var g=e.end;f.start.push(e.start);f.end.push(g)}else f=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return f}})}
488function vm(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=wm(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){d=c.contents;var e=Error(d.message),f;for(f in d)e[f]=d[f];d=e}else d=c;return d})}
489function wm(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
490var xm="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),ym="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),zm=["loop","playbackRate"],Am=["pause","play"],Bm={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getConfiguration:4,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,
491getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getL
491oadMode:10},Cm={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Dm=[["getConfiguration","configure"]],Em=[["isTextTrackVisible","setTextTrackVisibility"]],Fm="addChaptersTrack addTextTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay goToLive".split(" "),
492Gm=["attach","detach","load","unload"];function Hm(a,b,c,d,e,f){var g=this;this.N=a;this.j=new Q(b);this.aa=c;this.D=!1;this.B=d;this.K=e;this.R=f;this.h=this.o=!1;this.V="";this.A=null;this.H=function(){return Im(g)};this.I=function(h,k){var l=vm(k);switch(l.type){case "event":var m=l.targetName;l=l.event;l=new K(l.type,l);g.B(m,l);break;case "update":m=l.update;for(var n in m){l=g.g[n]||{};for(var p in m[n])l[p]=m[n][p]}g.D&&(g.aa(),g.D=!1);break;case "asyncComplete":if(n=l.id,l=l.error,p=g.i[n],delete g.i[n],p)if(l){n=new N(l.severity,
493l.category,l.code);for(m in l)n[m]=l[m];p.reject(n)}else p.resolve()}};this.g={video:{},player:{}};this.O=0;this.i={};this.l=null;Jm.add(this)}q=Hm.prototype;q.destroy=function(){Jm["delete"](this);Km(this);Lm&&Mm(this);this.j&&(this.j.stop(),this.j=null);this.K=this.B=null;this.h=this.o=!1;this.I=this.H=this.l=this.i=this.g=this.A=null;return Promise.resolve()};q.ra=function(){return this.h};q.qd=function(){return this.V};
494q.init=function(){if(this.N.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.o=!0;this.j.Ca();var a=new chrome.cast.SessionRequest(this.N);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(Jm),d=c.next();!d.done;d=c.next())Nm(d.value,b)},function(b){for(var c=r(Jm),d=c.next();!d.done;d=c.next())d=d.value,Om="available"==b,d.j.Ca()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Om&&this.j.S(Pm);(a=Lm)&&a.status!=chrome.cast.SessionStatus.STOPPED?Nm(this,
495a):Lm=null}else window.__onGCastApiAvailable||(window.__onGCastApiAvailable=Qm),window.__onGCastApiAvailable!=Qm&&Ra("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")};q.re=function(a){this.A=a;this.h&&Rm(this,{type:"appData",appData:this.A})};
496q.cast=function(a){var b=this;return H(function(c){if(!b.o)throw new N(1,8,8E3);if(!Om)throw new N(1,8,8001);if(b.h)throw new N(1,8,8002);b.l=new Uc;chrome.cast.requestSession(function(d){return Sm(b,a,d)},function(d){return Tm(b,d)});return u(c,b.l,0)})};function Um(a){if(a.h){var b=a.R();chrome.cast.requestSession(function(c){return Sm(a,b,c)},function(c){return Tm(a,c)})}}q.Zb=function(){if(this.h){Km(this);if(Lm){Mm(this);try{Lm.stop(function(){},function(){})}catch(a){}Lm=null}Im(this)}};
497q.get=function(a,b){var c=this;if("video"==a){if(Am.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.kf.apply(c,[a,b].concat(ia(e)))}}
497else if("player"==a){if(Cm[b]&&!this.get("player","isLive")())return function(){};if(Fm.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.kf.apply(c,[a,b].concat(ia(e)))};if(Gm.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.Og.apply(c,
498[a,b].concat(ia(e)))};if(Bm[b])return function(){return c.g[a][b]}}return this.g[a][b]};q.set=function(a,b,c){this.g[a][b]=c;Rm(this,{type:"set",targetName:a,property:b,value:c})};function Sm(a,b,c){Lm=c;c.addUpdateListener(a.H);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.I);Im(a);Rm(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}
499function Tm(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 N(2,8,c,b))}q.kf=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];Rm(this,{type:"call",targetName:a,methodName:b,args:d})};q.Og=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];e=new Uc;var f=this.O.toString();this.O++;this.i[f]=e;try{Rm(this,{type:"asyncCall",targetName:a,methodName:b,args:d,id:f})}catch(g){e.reject(g)}return e};
500function Nm(a,b){var c=a.R();a.l=new Uc;a.D=!0;Sm(a,c,b)}function Mm(a){var b=Lm;b.removeUpdateListener(a.H);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.I)}function Im(a){var b=Lm?"connected"==Lm.status:!1;if(a.h&&!b){a.K();for(var c in a.g)a.g[c]={};Km(a)}a.h=b;a.V=b?Lm.receiver.friendlyName:"";a.j.Ca()}function Km(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new N(1,7,7E3))}}
501function Rm(a,b){var c=um(b),d=Lm;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Ua)}catch(e){throw c=new N(2,8,8005,e),d=new K("error",{detail:c}),a.B("player",d),a.Zb(),c;}}var Pm=.02,Om=!1,Lm=null,Jm=new Set;function Qm(a){if(a){a=r(Jm);for(var b=a.next();!b.done;b=a.next())b.value.init()}};function Vm(a,b,c){cb.call(this);var d=this;this.j=a;this.i=b;this.h=this.A=this.l=this.B=this.o=null;this.H=c;this.D=new Map;this.g=new Hm(c,function(){return Wm(d)},function(){return Xm(d)},function(e,f){return Ym(d,e,f)},function(){return Zm(d)},function(){return $m(d)});an(this)}ra(Vm,cb);q=Vm.prototype;
502q.destroy=function(a){a&&this.g.Zb();this.h&&(this.h.release(),this.h=null);a=[];this.i&&(a.push(this.i.destroy()),this.i=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.B=this.o=this.j=null;return Promise.all(a)};q.wb=function(){return this.o};q.bc=function(){return this.B};q.Ie=function(){return this.g.o&&Om};q.ra=function(){return this.g.ra()};q.qd=function(){return this.g.qd()};
503q.cast=function(){var a=this,b;return H(function(c){return 1==c.g?(b=$m(a),u(c,a.g.cast(b),2)):a.i?u(c,a.i.Fe(),0):c["return"]()})};q.re=function(a){this.g.re(a)};q.vf=function(){Um(this.g)};q.Zb=function(){this.g.Zb()};
504q.Me=function(a){var b=this;return H(function(c){if(1==c.g){if(a==b.H)return c["return"]();b.H=a;b.g.Zb();return u(c,b.g.destroy(),2)}b.g=null;b.g=new Hm(a,function(){return Wm(b)},function(){return Xm(b)},function(d,e){return Ym(b,d,e)},function(){return Zm(b)},function(){return $m(b)});b.g.init();z(c)})};
505function an(a){a.g.init();a.h=new mf;for(var b=r(xm),c=b.next();!c.done;c=b.next())a.h.m(a.j,c.value,function(f){a.g.ra()||(f=new K(f.type,f),a.l.dispatchEvent(f))});for(var d in gm)a.h.m(a.i,gm[d],function(f){a.g.ra()||a.A.dispatchEvent(f)});a.o={};b={};for(var e in a.j)b.lc=e,Object.defineProperty(a.o,b.lc,{configurable:!1,enumerable:!0,get:function(f){return function(){return bn(a,f.lc)}}(b),set:function(f){return function(g){var h=f.lc;a.g.ra()?a.g.set("video",h,g):a.j[h]=g}}(b)}),b={lc:b.lc};
506a.B={};cn(a,function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return dn(a,f)}})});en(a);a.l=new cb;a.l.Uc=a.o;a.A=new cb;a.A.Uc=a.B}function en(a){var b=new Map;cn(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.D.set(c,e):a.D.set(e,c)}else b.set(d,c)})}
507function cn(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.i,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=r(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}
507}
508function $m(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.i.Pd(),startTime:null};a.j.pause();for(var c=r(zm),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.j[d];a.j.ended||(b.startTime=a.j.currentTime);c=r(Dm);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.i[e[0]]();b.player[d]=e}c=r(Em);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.i[e[0]](),b.playerAfterLoad[d]=e;return b}function Wm(a){var b=new K("caststatuschanged");a.dispatchEvent(b)}
509function Xm(a){var b=new K(a.o.paused?"pause":"play");a.l.dispatchEvent(b)}
510function Zm(a){for(var b=r(Dm),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.i[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.j.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.j.autoplay=!1,b=a.i.load(e,d));var g={};c=r(zm);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.j){for(var h=r(zm),k=h.next();!k.done;k=h.next())k=k.value,a.j[k]=g[k];h=r(Em);for(k=
511h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.i[k](l)}a.j.autoplay=f;e&&a.j.play()}},function(h){h=new K(cm,{detail:h});a.i.dispatchEvent(h)})}
512function bn(a,b){if("addEventListener"==b)return function(d,e,f){return a.l.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.l.removeEventListener(d,e,f)};if(a.g.ra()&&0==Object.keys(a.g.g.video).length){var c=a.j[b];if("function"!=typeof c)return c}return a.g.ra()?a.g.get("video",b):(c=a.j[b],"function"==typeof c&&(c=c.bind(a.j)),c)}
513function dn(a,b){a.D.has(b)&&(b=a.D.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.o};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.i.Ac()};if("getDrmEngine"==b)return function(){return a.i.o};if("getAdManager"==b)return function(){return a.i.cd()};
514if("setVideoContainer"==b)return function(c){return a.i.Ae(c)};if(a.g.ra()){if("getManifest"==b||"drmInfo"==b)return function(){Ra(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ra(b+"() does not work while casting!");return Promise.resolve()}}return a.g.ra()&&0==Object.keys(a.g.g.video).length&&Bm[b]||!a.g.ra()?a.i[b].bind(a.i):a.g.get("player",b)}function Ym(a,b,c){a.g.ra()&&("video"==b?a.l.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}
515I("shaka.cast.CastProxy",Vm);Vm.prototype.changeReceiverId=Vm.prototype.Me;Vm.prototype.forceDisconnect=Vm.prototype.Zb;Vm.prototype.suggestDisconnect=Vm.prototype.vf;Vm.prototype.setAppData=Vm.prototype.re;Vm.prototype.cast=Vm.prototype.cast;Vm.prototype.receiverName=Vm.prototype.qd;Vm.prototype.isCasting=Vm.prototype.ra;Vm.prototype.canCast=Vm.prototype.Ie;Vm.prototype.getPlayer=Vm.prototype.bc;Vm.prototype.getVideo=Vm.prototype.wb;Vm.prototype.destroy=Vm.prototype.destroy;function fn(a,b,c,d){cb.call(this);var e=this;this.g=a;this.i=b;this.h=new mf;this.O={video:a,player:b};this.I=c||function(){};this.R=d||function(f){return f};this.j=null;this.K=!1;this.A=!0;this.o=0;this.H=!1;this.D=!0;this.B=this.l=null;this.N=new Q(function(){gn(e)});hn(this)}ra(fn,cb);q=fn.prototype;q.isConnected=function(){return this.K};q.wg=function(){return this.A};q.Wg=function(a){this.j=a};q.Jf=function(){this.j=null};
516q.Xg=function(a){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC});this.j.title=a};q.Vg=function(a){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC});this.j.images=[{url:a}]};q.Ug=function(a){this.j||(this.j={});this.j.artist=a;this.j.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
517q.destroy=function(){var a=this,b,c;return H(function(d){if(1==d.g)return a.h&&(a.h.release(),a.h=null),b=[],a.i&&(b.push(a.i.destroy()),a.i=null),a.N&&(a.N.stop(),a.N=null),a.g=null,a.O=null,a.I=null,a.K=!1,a.A=!0,a.l=null,a.B=null,u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();z(d)})};
518function hn(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return jn(a)};b.onSenderDisconnected=function(){return jn(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&kn(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);
518kn(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 ln(a,
519e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return mn(a,e)};b.start();b=r(xm);for(var c=b.next();!c.done;c=b.next())a.h.m(a.g,c.value,function(e){return nn(a,"video",e)});for(var d in gm)a.h.m(a.i,gm[d],function(e){return nn(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.i.ve(3840,2160):a.i.ve(1920,1080);a.h.m(a.g,"loadeddata",function(){a.H=!0});a.h.m(a.i,"loading",function(){a.A=
520!1;on(a)});a.h.m(a.g,"playing",function(){a.A=!1;on(a)});a.h.m(a.g,"pause",function(){on(a)});a.h.m(a.i,"unloading",function(){a.A=!0;on(a)});a.h.m(a.g,"ended",function(){(new Q(function(){a.g&&a.g.ended&&(a.A=!0,on(a))})).S(pn)})}function jn(a){a.o=0;a.D=!0;a.K=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;on(a)}
521function on(a){var b;H(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.i)return c["return"]();b=new K("caststatuschanged");a.dispatchEvent(b);qn(a)||rn(a);z(c)})}
522function sn(a,b,c){var d,e,f,g,h,k,l,m,n,p;H(function(t){switch(t.g){case 1:for(d in b.player)e=b.player[d],a.i[d](e);a.I(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,A(t,5),u(t,a.i.load(b.manifest,b.startTime),7)):u(t,Promise.resolve(),3);case 7:wa(t,3);break;case 5:return g=E(t),h=cm,k=new K(h,{detail:g}),a.i&&a.i.dispatchEvent(k),t["return"]();case 3:if(!a.i)return t["return"]();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],a.i[n](p);a.g.autoplay=
523f;b.manifest&&(a.g.play(),rn(a));z(t)}})}function nn(a,b,c){a.i&&(gn(a),kn(a,{type:"event",targetName:b,event:c},a.l))}
524function gn(a){a.N.S(tn);for(var b={video:{},player:{}},c=r(ym),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.i.X())for(var e in Cm)0==a.o%Cm[e]&&(b.player[e]=a.i[e]());for(var f in Bm)0==a.o%Bm[f]&&(b.player[f]=a.i[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;a.H&&(a.o+=1);kn(a,{type:"update",update:b},a.l);qn(a)}function qn(a){return a.D&&(a.g.duration||a.i.X())?(un(a),a.D=!1,!0):!1}
525function un(a,b){var c={contentId:a.i.Pd(),streamType:a.i.X()?"LIVE":"BUFFERED",contentType:""};a.i.X()||(c.duration=a.g.duration);a.j&&(c.metadata=a.j);rn(a,void 0===b?0:b,c)}
526function mn(a,b){var c=vm(b.data);switch(c.type){case "init":a.o=0;a.H=!1;a.D=!0;sn(a,c.initState,c.appData);gn(a);break;case "appData":a.I(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.setSystemVolumeMuted(c);break}}a.O[d][e]=c;break;case "call":d=a.O[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=
527c.methodName;"player"==d&&"load"==e&&(a.o=0,a.H=!1);var g=c.id,h=b.senderId;f=a.O[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.D=!0}));c.then(function(){return vn(a,h,g,null)},function(k){return vn(a,h,g,k)})}}
528function ln(a,b){var c=vm(b.data);switch(c.type){case "PLAY":a.g.play();rn(a);break;case "PAUSE":a.g.pause();rn(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),rn(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),rn(a));break;case "STOP":a.i.Fe().then(function(){a.i&&rn(a)});break;case "GET_STATUS":un(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
529null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||rn(a);break;case "LOAD":a.o=0;a.H=!1;a.D=!1;d=c.media;e=c.currentTime;f=a.R(d.contentId);g=c.autoplay||!0;a.I(d.customData);g&&(a.g.autoplay=!0);a.i.load(f,e).then(function(){a.i&&un(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");kn(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:kn(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
530function vn(a,b,c,d){a.i&&kn(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function kn(a,b,c,d){a.K&&(a=um(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function rn(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?wn:a.i.Hc()?xn:a.g.paused?yn:zn,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);kn(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
531I("shaka.cast.CastReceiver",fn);fn.prototype.destroy=fn.prototype.destroy;fn.prototype.setContentArtist=fn.prototype.Ug;fn.prototype.setContentImage=fn.prototype.Vg;fn.prototype.setContentTitle=fn.prototype.Xg;fn.prototype.clearContentMetadata=fn.prototype.Jf;fn.prototype.setContentMetadata=fn.prototype.Wg;fn.prototype.isIdle=fn.prototype.wg;fn.prototype.isConnected=fn.prototype.isConnected;var tn=.5,pn=5,wn="IDLE",zn="PLAYING",xn="BUFFERING",yn="PAUSED";function An(a){var b=this;this.g=[];this.h=[];this.data=[];(new sg).box("moov",wg).Z("pssh",function(c){if(!(1<c.version)){var d=Nc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(hd(c.reader.xb(16)));if(0<c.version){d=c.reader.P();d=r(ib(d));for(var e=d.next();!e.done;e=d.next())e=hd(c.reader.xb(16)),b.h.push(e)}}}).parse(a)}
532function Bn(a,b){var c=a.length,d=b.length+16+c,e=new Uint8Array(d),f=Qc(e),g=0;f.setUint32(g,d);g+=4;f.setUint32(g,1886614376);g+=4;f.setUint32(g,0);g+=4;e.set(b,g);g+=b.length;f.setUint32(g,c);e.set(a,g+4);return e}
532function Cn(a){if(!a)return a;var b=new An(a);if(1>=b.data.length)return a;a=[];var c={};b=r(b.data);for(var d=b.next();!d.done;c={Pc:c.Pc},d=b.next())c.Pc=d.value,a.some(function(e){return function(f){return Lc(f,e.Pc)}}(c))||a.push(c.Pc);return id.apply(cd,ia(a))};function Dn(a,b){var c=En(a,b);return 1!=c.length?null:c[0]}function Fn(a,b,c){a=Gn(a,b,c);return 1!=a.length?null:a[0]}function En(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName==b})}function Hn(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}function Gn(a,b,c){return Array.from(a.childNodes).filter(function(d){return d instanceof Element&&d.localName==c&&d.namespaceURI==b})}
533function In(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function Jn(a){return Array.from(a.childNodes).every(Kn)?a.textContent.trim():null}function Kn(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function Ln(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 Mn(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:Math.floor(a/1E3)}
534function Nn(a){if(!a)return null;a=/^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}function On(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}
535function Pn(a){a=Number(a);return 0===a%1?a:null}function Qn(a){a=Number(a);return 0===a%1&&0<a?a:null}function Rn(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Sn(a){a=Number(a);return isNaN(a)?null:a}function Tn(a){var b;a=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(a)?null:a}
536function Un(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,"text/xml")}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d}function Vn(a,b){try{var c=Xc(a);return Un(c,b)}catch(d){return null}};function Wn(a,b,c){var d=Xn(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 N(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.nf?(e=h.init||e,!1):!0}),f.length&&(a=Yn(e,f,c),0==a.length&&(a=[Nb("",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(Nb(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c=
537r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{Oe:g,ri:e,drmInfos:a,Se:!0}}function Zn(a,b,c,d){var e=Wn(a,c,d);if(b.Se){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.Se=!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 N(2,4,4008);return e.Oe||b.Oe}
538function $n(a){var b=0,c=Qc(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Nc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
539function ao(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 bo(a){a=Fn(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=fd(a.textContent);a=$n(a).filter(function(b){return b.type===co})[0];if(!a)return"";a=Yc(a.value,!0);return(a=Un(a,"WRMHEADER"))?ao(a):""}
540function Yn(a,b,c){var d=[];b=r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=c[e.nf];if(f){var g;if(g=Fn(e.node,"urn:microsoft:playready","pro")){g=fd(g.textContent);var h=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);g=[{initData:Bn(g,h),initDataType:"cenc",keyId:e.keyId}]}else g=null;g=Nb(f,e.init||a||g);if(f=eo.get(f))g.licenseServerUri=f(e);d.push(g)}}return d}
541function Xn(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=fo(c.value))&&b.push(c);return b}
542function fo(a){var b=a.getAttribute("schemeIdUri"),c=In(a,"urn:mpeg:cenc:2013","default_KID"),d=Gn(a,"urn:mpeg:cenc:2013","pssh").map(Jn);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new N(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:fd(f),keyId:null}})}catch(f){throw new N(2,4,4007);}return{node:a,nf:b,keyId:c,init:0<e.length?e:null}}
543var co=1,eo=(new Map).set("com.widevine.alpha",function(a){return(a=Fn(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",bo).set("com.microsoft.playready.recommendation",bo).set("com.microsoft.playready.software",bo).set("com.microsoft.playready.hardware",bo);function go(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=
544window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
545function ho(a,b){var c=io(a,b,"timescale"),d=1;c&&(d=Qn(c)||1);var e=io(a,b,"duration");c=Qn(e||"");"image"==a.M.contentType&&(c=Sn(e||""));c&&(c/=d);var f=io(a,b,"startNumber");e=Number(io(a,b,"presentationTimeOffset"))||0;var g=Rn(f||"");if(null==f||null==g)g=1;var h=jo(a,b,"SegmentTimeline");f=null;if(h){f=d;var k=a.$.duration||Infinity,l=En(h,"S");h=[];var m=-e;l=r(kb(l));for(var n=l.next();!n.done;n=l.next()){n=n.value;var p=n.item,t=n.next,v=Ln(p,"t",Rn);n=Ln(p,"d",Rn);var w=Ln(p,"r",Pn);null!=
546v&&(v-=e);if(!n)break;p=null!=v?v:m;v=w||0;if(0>v)if(t){t=Ln(t,"t",Rn);if(null==t)break;else if(p>=t)break;v=Math.ceil((t-p)/n)-1}else{if(Infinity==k)break;else if(p/f>=k)break;v=Math.ceil((k*f-p)/n)-1}0<h.length&&p!=m&&(h[h.length-1].end=p/f);t=r(ib(v+1));for(v=t.next();!v.done;v=t.next())m=p+n,h.push({start:p/f,end:m/f,dh:p}),p=m}f=h}return{timescale:d,Aa:c,kc:g,ob:e/d||0,Ge:e,timeline:f}}
547function io(a,b,c){return[b(a.M),b(a.Da),b(a.wa)].filter(Kb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}function jo(a,b,c){return[b(a.M),b(a.Da),b(a.wa)].filter(Kb).map(function(d){return Dn(d,c)}).reduce(function(d,e){return d||e})}
548function ko(a,b,c,d,e,f){for(var g=In(a,"http://www.w3.org/1999/xlink","href"),h=In(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 Pe(new N(2,4,4028));if("onLoad"!=h)return Pe(new N(2,4,4027));var m=Mb([d],[g]);return e.request(0,cf(m,b)).qa(function(n){n=Vn(n.data,a.tagName);if(!n)return Pe(new N(2,4,4001,g));
549for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var p=n.childNodes[0];n.removeChild(p);a.appendChild(p)}n=r(Array.from(n.attributes));for(p=n.next();!p.done;p=n.next())a.setAttributeNode(p.value.cloneNode(!1));return lo(a,b,c,m[0],e,f+1)})}
550function lo(a,b,c,d,e,f){f=void 0===f?0:f;if(In(a,"http://www.w3.org/1999/xlink","href")){var g=ko(a,b,c,d,e,f);c&&(g=g.qa(void 0,function(){return lo(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"==In(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.pu
550sh(lo(k,b,c,d,e,f)));return Te(g).qa(function(){return a})};function mo(a,b,c,d,e,f,g){var h,k=(new sg).Z("sidx",function(l){h=no(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new N(2,3,3004);}
551function no(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.P();if(0==k)throw new N(2,3,3005);if(0==g.version){var l=g.reader.P();var m=g.reader.P()}else l=g.reader.Ob(),m=g.reader.Ob();g.reader.skip(2);var n=g.reader.jc();a=a+g.size+m;n=r(ib(n));for(m=n.next();!m.done;m=n.next()){var p=g.reader.P();m=(p&2147483648)>>>31;p&=2147483647;var t=g.reader.P();g.reader.skip(4);if(1==m)throw new N(2,3,3006);h.push(new ti(l/k+c,(l+t)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=t;a+=p}g.parser.stop();
552return h};function oo(a){this.h=Qc(a);this.g=new pg(this.h,0)}oo.prototype.Ga=function(){return this.g.Ga()};
553function po(a){var b=qo(a);if(7<b.length)throw new N(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=qo(a);a:{d=r(ro);for(var e=d.next();!e.done;e=d.next())if(Lc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.ia();else{if(8==b.length&&b[1]&224)throw new N(2,3,3001);d=0;e=r(kb(b));for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=f.item;d=0==f.za?g&(1<<8-b.length)-1:256*d+g}b=d}b=a.g.ia()+b<=a.h.byteLength?b:a.h.byteLength-a.g.ia();d=Qc(a.h,
554a.g.ia(),b);a.g.skip(b);return new so(c,d)}function qo(a){var b=a.g.ia(),c=a.g.ka();if(0==c)throw new N(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Nc(a.h,b,c)}var ro=[[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 so(a,b){this.id=a;this.g=b}
555function to(a){if(8<a.g.byteLength)throw new N(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new N(2,3,3001);for(var b=0,c=r(ib(a.g.byteLength)),d=c.next();!d.done;d=c.next())d=a.g.getUint8(d.value),b=256*b+d;return b};function uo(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new oo(a.g);for(var n=null,p=null;a.Ga();){var t=po(a);if(187==t.id){var v=vo(t);v&&(t=c*v.eh,v=b+v.Ng,null!=n&&m.push(new ti(n+g,t+g,l,p,v-1,f,g,h,k)),n=t,p=v)}}null!=n&&m.push(new ti(n+g,d+g,l,p,null,f,g,h,k));return m}
556function vo(a){var b=new oo(a.g);a=po(b);if(179!=a.id)throw new N(2,3,3013);a=to(a);b=po(b);if(183!=b.id)throw new N(2,3,3012);b=new oo(b.g);for(var c=0;b.Ga();){var d=po(b);if(241==d.id){c=to(d);break}}return{eh:a,Ng:c}};function wo(a,b){var c=jo(a,b,"Initialization");if(!c)return null;var d=a.M.Sa,e=c.getAttribute("sourceURL");e&&(d=Mb(a.M.Sa,[e]));e=0;var f=null;if(c=Ln(c,"range",On))e=c.start,f=c.end;return new ri(function(){return d},e,f)}
557function xo(a,b){var c=Number(io(a,yo,"presentationTimeOffset"))||0,d=io(a,yo,"timescale"),e=1;d&&(e=Qn(d)||1);var f=c/e||0,g=wo(a,yo);zo(a,g);var h=We(a);return{$b:function(){var k=jo(h,yo,"RepresentationIndex"),l=h.M.Sa;k&&(k=k.getAttribute("sourceURL"))&&(l=Mb(h.M.Sa,[k]));k=Ao(h);return Bo(h,b,g,l,k.start,k.end,f)}}}
558function Bo(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,v,w,x,y,C,D,B,F;return H(function(G){if(1==G.g)return h=a.presentationTimeline,k=!a.Cb||!a.$.bf,l=a.$.start,m=a.$.duration,n=a.M.mimeType.split("/")[1],p=b,t=null,v=[p(d,e,f),"webm"==n?p(c.Fa(),c.Ba,c.va):null],p=null,u(G,Promise.all(v),2);w=G.h;x=w[0];y=w[1]||null;C=null;D=l-g;B=l;F=m?l+m:Infinity;if("mp4"==n)var J=mo(x,e,d,c,D,B,F);else{J=new oo(y);if(440786851!=po(J).id)throw new N(2,3,3008);var O=po(J);if(408125543!=O.id)throw new N(2,3,3009);J=O.g.byteOffset;
559O=new oo(O.g);for(var L=null;O.Ga();){var M=po(O);if(357149030==M.id){L=M;break}}if(!L)throw new N(2,3,3010);L=new oo(L.g);M=1E6;for(O=null;L.Ga();){var T=po(L);if(2807729==T.id)M=to(T);else if(17545==T.id)if(4==T.g.byteLength)O=T.g.getFloat32(0);else if(8==T.g.byteLength)O=T.g.getFloat64(0);else throw new N(2,3,3003);}if(null==O)throw new N(2,3,3011);L=M/1E9;O*=L;M=po(new oo(x));if(475249515!=M.id)throw new N(2,3,3007);J=uo(M,J,L,O,d,c,D,B,F)}C=J;h.fc(C);t=new Ri(C);k&&t.ub(B,F,!0);return G["return"](t)})}
560function yo(a){return a.Lc}function Ao(a){var b=jo(a,yo,"RepresentationIndex");a=io(a,yo,"indexRange");a=On(a||"");b&&(a=Ln(b,"range",On,a));return a}function zo(a,b){Co(a,b);if(!Ao(a))throw new N(2,4,4002);}function Co(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Rb&&"mp4"!=c&&"webm"!=c)throw new N(2,4,4006);if("webm"==c&&!b)throw new N(2,4,4005);};function Do(a,b){var c=wo(a,Io),d=Jo(a);if(!d.Aa&&!d.timeline&&1<d.dc.length)throw new N(2,4,4002);if(!d.Aa&&!a.$.duration&&!d.timeline&&1==d.dc.length)throw new N(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new N(2,4,4002);var e=null,f=null;a.wa.id&&a.M.id&&(f=a.wa.id+","+a.M.id,e=b[f]);c=Ko(a.$.start,a.$.duration,a.M.Sa,d,c);d=!e;e?e.ec(c,a.presentationTimeline.vb()):(a.presentationTimeline.fc(c),e=new Ri(c),f&&a.Cb&&(b[f]=e));a.Cb&&a.$.bf||e.ub(a.$.start,a.$.duration?a.$.start+a.$.duration:
561Infinity,d);return{$b:function(){return Promise.resolve(e)}}}function Io(a){return a.yb}function Jo(a){var b=Lo(a);a=ho(a,Io);var c=a.kc;0==c&&(c=1);var d=0;a.Aa?d=a.Aa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{Aa:a.Aa,startTime:d,kc:c,ob:a.ob,timeline:a.timeline,dc:b}}
562function Ko(a,b,c,d,e){var f=d.dc.length;d.timeline&&d.timeline.length!=d.dc.length&&(f=Math.min(d.timeline.length,d.dc.length));var g=a-d.ob,h=b?a+b:Infinity,k=[],l=d.startTime,m={};f=r(ib(f));for(var n=f.next();!n.done;m={Ed:m.Ed},n=f.next()){n=n.value;var p=d.dc[n];m.Ed=Mb(c,[p.Bg]);var t=void 0;t=null!=d.Aa?l+d.Aa:d.timeline?d.timeline[n].end:l+b;k.push(new ti(a+l,a+t,function(v){return function(){return v.Ed}}(m),p.start,p.end,e,g,a,h));l=t}return k}
563function Lo(a){return[a.M.yb,a.Da.yb,a.wa.yb].filter(Kb).map(function(b){return En(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Ye&&(a.Ye=!0);var c=b.getAttribute("media");b=Ln(b,"mediaRange",On,{start:0,end:null});return{Bg:c,start:b.start,end:b.end}})};function Mo(a,b,c,d,e,f){var g=No(a),h=Oo(a);Po(h);var k=We(a);if(h.Gc)return Co(a,g),{$b:function(){var v=go(h.Gc,k.M.id,null,k.bandwidth||null,
563null);v=Mb(k.M.Sa,[v]);return Bo(k,b,g,v,0,null,h.ob)}};if(h.Aa)return d||(a.presentationTimeline.be(h.Aa),a.presentationTimeline.ce(a.$.start)),{$b:function(){return Qo(k,h,e,g,f)}};var l=null;d=null;a.wa.id&&a.M.id&&(d=a.wa.id+","+a.M.id,l=c[d]);var m=Ro(k,h,g),n=a.$.start,p=a.$.duration?a.$.start+a.$.duration:Infinity,t=Infinity!=p;l?(t&&(new Ri(m)).ub(n,
564p,!0),l.ec(m,a.presentationTimeline.vb())):(a.presentationTimeline.fc(m),l=new Ri(m),d&&a.Cb&&(c[d]=l));t&&l.ub(n,p);return{$b:function(){return Promise.resolve(l)}}}function So(a){return a.Mc}function Oo(a){var b=ho(a,So),c=io(a,So,"media");a=io(a,So,"index");return{Aa:b.Aa,timescale:b.timescale,kc:b.kc,ob:b.ob,Ge:b.Ge,timeline:b.timeline,Zd:c,Gc:a}}
565function Po(a){var b=a.Gc?1:0;b+=a.timeline?1:0;b+=a.Aa?1:0;if(0==b)throw new N(2,4,4002);1!=b&&(a.Gc&&(a.timeline=null),a.Aa=null);if(!a.Gc&&!a.Zd)throw new N(2,4,4002);}
566function Qo(a,b,c,d,e){function f(L){var M=(L-t)*p,T=M+b.ob,X=M+l;M=X+p;var ba=Math.min(M,h());X=new ti(X,ba,function(){var Z=go(w,y,L,x,T*v);return Mb(C,[Z])},0,null,d,D,l,h());X.j=M;return X}function g(){var L=[Math.max(k.vb(),l),Math.min(k.Fb(),h())].map(function(M){return M-l});return[Math.ceil(L[0]/p),Math.ceil(L[1]/p)-1].map(function(M){return M+t})}function h(){var L=null!=m&&e[m]||n;return L?l+L:Infinity}var k=a.presentationTimeline,l=a.$.start,m=a.wa.id,n=a.$.duration,p=b.Aa,t=b.kc,v=b.timescale,
567w=b.Zd,x=a.bandwidth||null,y=a.M.id,C=a.M.Sa,D=l-b.ob,B=g();a=a.Cb?Math.max(B[0],B[1]-c+1):B[0];B=B[1];c=[];for(var F=a;F<=B;++F){var G=f(F);c.push(G)}var J=new Ri(c);c=k.Fb()<h();F=k.X();if(c||F){var O=Math.max(a,B+1);J.ud(p,function(){var L=k.vb();J.Db(L);var M=r(g());M.next();M=M.next().value;for(var T=[];O<=M;){var X=f(O);T.push(X);O++}return L>h()&&!T.length?null:T})}return Promise.resolve(J)}
568function Ro(a,b,c){var d=a.$.start,e=a.$.duration,f=d-b.ob;e=e?d+e:Infinity;for(var g=[],h={},k=r(kb(b.timeline)),l=k.next();!l.done;h={Dd:h.Dd,Hd:h.Hd,Kd:h.Kd,zd:h.zd,Md:h.Md,Bd:h.Bd},l=k.next()){l=l.value;var m=l.item,n=m.start,p=m.dh;m=m.end;h.Kd=l.za+b.kc;h.Md=p+b.Ge;h.Hd=a.M.id;h.zd=a.bandwidth||null;h.Dd=b.Zd;h.Bd=a.M.Sa;g.push(new ti(d+n,d+m,function(t){return function(){var v=go(t.Dd,t.Hd,t.Kd,t.zd||null,t.Md);return Mb(t.Bd,[v]).map(function(w){return w.toString()})}}(h),0,null,c,f,d,e))}return g}
569function No(a){var b=io(a,So,"initialization");if(!b)return null;var c=a.M.id,d=a.bandwidth||null,e=a.M.Sa;return new ri(function(){var f=go(b,c,null,d,null);return Mb(e,[f])},0,null)};function To(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.o=new Set}To.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=[]};
570function Uo(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,w,x,y,C,D,B,F,G,J,O,L,M,T,X,ba,Z,P,ma,na,Ea,Na,Bb;return H(function(Za){switch(Za.g){case 1:d=Sb;Vo(b);Wo(b);Xo(b);Yo(b);if(!c&&1==b.length){e=b[0];a.g=e.Xc;a.h=e.wd;a.j=e.textStreams;a.i=e.imageStreams;Za.C(2);break}f=-1;g=r(kb(b));for(h=g.next();!h.done;h=g.next())l=k=h.value,m=l.za,n=l.item,a.o.has(n.id)||(a.o.add(n.id),-1==f&&(f=m));if(-1==f)return Za["return"]();p=b.map(function(Ja){return Ja.Xc});t=b.map(function(Ja){return Ja.wd});v=b.map(function(Ja){return Ja.textStreams});
571w=b.map(function(Ja){return Ja.imageStreams});x=r(v);for(y=x.next();!y.done;y=x.next())C=y.value,C.push(Zo(d.oa));D=r(w);for(B=D.next();!B.done;B=D.next())F=B.value,F.push(Zo(d.tc));return u(Za,$o(a.g,p,f,ap,bp),3);case 3:return u(Za,$o(a.h,t,f,ap,bp),4);case 4:return u(Za,$o(a.j,v,f,ap,bp),5);case 5:return u(Za,$o(a.i,w,f,ap,bp),2);case 2:G=0;J=[];if(a.h.length&&a.g.length)for(ba=r(a.g),Z=ba.next();!Z.done;Z=ba.next())for(P=Z.value,ma=r(a.h),na=ma.next();!na.done;na=ma.next())Ea=na.value,Na=hg(P.drmInfos,
572Ea.drmInfos),P.drmInfos.length&&Ea.drmInfos.length&&!Na.length||(Bb=G++,J.push({id:Bb,language:P.language,primary:P.primary,audio:P,video:Ea,bandwidth:(P.bandwidth||0)+(Ea.bandwidth||0),drmInfos:Na,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(O=a.h.concat(a.g),L=r(O),M=L.next();!M.done;M=L.next())T=M.value,X=G++,J.push({id:X,language:T.language,primary:T.primary,audio:T.type==d.zb?T:null,video:T.type==d.fb?T:null,bandwidth:T.bandwidth||0,drmInfos:T.drmInfos,allowedByApplication:!0,
573allowedByKeySystem:!0,decodingInfos:[]});a.l=J;z(Za)}})}
574function Vo(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Xc),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;
vendor: 1,266 bytes, lines 574-577
574h=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&&nc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.Xc=c}}
575function Xo(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&&nc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
576function Wo(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.wd),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&&nc(e.roles,h.roles)&&wf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.wd=c}}
577function Yo(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;
577h=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}}
578function cp(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,v,w,x,y,C,D,B,F,G,J,O,L,M,T;return H(function(X){switch(X.g){case 1:b=Sb;if(1==a.length)return X["return"](a[0]);c=a.map(function(ba){return ba.filter(function(Z){return Z.type==b.zb})});d=a.map(function(ba){return ba.filter(function(Z){return Z.type==b.fb})});e=a.map(function(ba){return ba.filter(function(Z){return Z.type==b.oa})});f=a.map(function(ba){return ba.filter(function(Z){return Z.type==b.tc})});g=r(e);for(h=g.next();!h.done;h=g.next())k=h.value,
579k.push(dp(b.oa));l=r(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(dp(b.tc));return u(X,$o([],c,0,ep,fp),2);case 2:return p=X.h,u(X,$o([],d,0,ep,fp),3);case 3:return t=X.h,u(X,$o([],e,0,ep,fp),4);case 4:return v=X.h,u(X,$o([],f,0,ep,fp),5);case 5:w=X.h;x=0;if(t.length&&p.length)for(F=r(p),G=F.next();!G.done;G=F.next())for(J=G.value,O=r(t),L=O.next();!L.done;L=O.next())M=L.value,T=x++,M.variantIds.push(T),J.variantIds.push(T);else for(y=t.concat(p),C=r(y),D=C.next();!D.done;D=C.next())B=D.value,
580B.variantIds=[x++];return X["return"](t.concat(p).concat(v).concat(w))}})}
581function $o(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,v,w,x,y,C,D,B,F,G,J,O,L,M,T,X,ba,Z;return H(function(P){switch(P.g){case 1:f=Sb;g=[];
581h=r(kb(b));for(k=h.next();!k.done;k=h.next())m=l=k.value,n=m.za,p=m.item,n>=c?g.push(new Set(p)):g.push(new Set);t=r(a);v=t.next();case 2:if(v.done){P.C(4);break}w=v.value;return u(P,gp(w,b,c,e,g),5);case 5:x=P.h;if(!x)throw new N(2,4,4037);v=t.next();P.C(2);break;case 4:y=r(g),C=y.next();case 6:if(C.done){P.C(8);break}D=C.value;B=r(D);F=B.next();case 9:if(F.done){C=y.next();
582P.C(6);break}G=F.value;return u(P,hp(G,b,d,e,g),12);case 12:(J=P.h)&&a.push(J);F=B.next();P.C(9);break;case 8:O=r(g);for(C=O.next();!C.done;C=O.next())for(L=C.value,M={},T=r(L),F=T.next();!F.done;M={rb:M.rb},F=T.next())if(M.rb=F.value,X=M.rb.type==f.oa&&!M.rb.language,ba=M.rb.type==f.tc&&!M.rb.tilesLayout,!X&&!ba&&(Z=a.some(function(ma){return function(na){return na.mimeType==ma.rb.mimeType&&qd(na.codecs)==qd(ma.rb.codecs)}}(M))))throw new N(2,4,4037);return P["return"](a)}})}
583function gp(a,b,c,d,e){var f;return H(function(g){if(1==g.g)return(f=ip(b,a))?u(g,jp(f),2):g["return"](!1);kp(a,f,c,d,e);return g["return"](!0)})}function jp(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push(c.createSegmentIndex()),c.trickModeVideo&&!c.trickModeVideo.segmentIndex&&b.push(c.trickModeVideo.createSegmentIndex());return Promise.all(b)}
584function hp(a,b,c,d,e){var f,g;return H(function(h){if(1==h.g)return f=c(a),(g=ip(b,f))?f.createSegmentIndex?u(h,jp(g),2):h.C(2):h["return"](null);kp(f,g,0,d,e);return h["return"](f)})}function kp(a,b,c,d,e){b=r(kb(b));for(var f=b.next();!f.done;f=b.next()){var g=f.value;f=g.za;g=g.item;if(f>=c){d(a,g);var h=!0;"audio"==a.type&&0==Yb(a.language,g.language)&&(h=!1);h&&e[f]["delete"](g)}}}
585function ap(a){a=Object.assign({},a);a.originalId=null;a.createSegmentIndex=function(){return Promise.resolve()};a.segmentIndex=new Ui;a.emsgSchemeIdUris=[];a.keyIds=new Set;a.closedCaptions=null;a.trickModeVideo=null;return a}function ep(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
586function bp(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))));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");c=hg(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new N(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
587(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)}}a.segmentIndex.l.push(b.segmentIndex);b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=ap(b.trickModeVideo),a.trickModeVideo.segmentIndex=a.segmentIndex.clone()),bp(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&bp(a.trickModeVideo,b)}
588function fp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
589function ip(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:lp,video:lp,text:mp,image:np}[f.type],h={audio:op,video:pp,text:qp,image:rp}[f.type],k=null;e=r(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return null;c.push(f)}return c}function lp(a,b){var c;if(!(c=b.mimeType!=a.mimeType||qd(b.codecs)!=qd(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<hg(c,d).length:1)}return c?!1:!0}
590function mp(a,b){return a.language?b.language?0==Yb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function np(a){return a.tilesLayout?!0:!1}
591function op(a,b,c){if(a.id==c.id)return!0;var d=Yb(a.language,b.language),e=Yb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;
591if(b.primary&&!c.primary)return!1;if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
592d=sp(a.channelsCount,b.channelsCount,c.channelsCount);if(d==tp)return!0;if(d==up)return!1;d=sp(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==tp?!0:d==up?!1:a.bandwidth&&vp(a.bandwidth,b.bandwidth,c.bandwidth)==tp?!0:!1}
593function pp(a,b,c){if(a.id==c.id)return!0;var d=sp(a.width*a.height,b.width*b.height,c.width*c.height);if(d==tp)return!0;if(d==up)return!1;if(a.frameRate){d=sp(a.frameRate,b.frameRate,c.frameRate);if(d==tp)return!0;if(d==up)return!1}return a.bandwidth&&vp(a.bandwidth,b.bandwidth,c.bandwidth)==tp?!0:!1}
594function qp(a,b,c){if(a.id==c.id)return!0;var d=Yb(a.language,b.language),e=Yb(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!=
595a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function rp(a,b,c){return a.id==c.id?!0:sp(a.width*a.height,b.width*b.height,c.width*c.height)==tp?!0:!1}function dp(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}}
596function Zo(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Ri([]),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}}
597function sp(a,b,c){if(b==a&&a!=c)return up;if(c==a&&a!=b)return tp;if(b>a){if(c<=a||c-a<b-a)return tp;if(c-a>b-a)return up}else{if(c>a)return up;if(a-c<a-b)return tp;if(a-c>a-b)return up}return wp}function vp(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?tp:b<a?up:wp}var tp=1,wp=0,up=-1;function xp(){var a=this;this.G=this.s=null;this.h=[];this.F=null;this.D=1;this.l={};this.I={};this.g=new To;this.B=0;this.H=new hc(5);this.A=new Q(function(){a.Ic()});this.i=new Xe;this.j=Infinity;this.o=!1}q=xp.prototype;q.configure=function(a){this.s=a};q.start=function(a,b){var c=this,d;return H(function(e){if(1==e.g)return c.o=b.isLowLatencyMode(),c.h=[a],c.G=b,u(e,yp(c),2);d=e.h;c.G&&zp(c,d);if(!c.G)throw new N(2,7,7001);return e["return"](c.F)})};
598q.stop=function(){for(var a=r(Object.values(this.l)),b=a.next();!b.done;b=a.next())b.value.release();this.g&&this.g.release();this.s=this.G=null;this.h=[];this.F=null;this.l={};this.g=null;null!=this.A&&(this.A.stop(),this.A=null);return this.i.destroy()};q.update=function(){var a=this,b;return H(function(c){if(1==c.g)return A(c,2),u(c,yp(a),4);if(2!=c.g)return wa(c,0);b=E(c);if(!a.G||!b)return c["return"]();a.G.onError(b);z(c)})};q.onExpirationUpdated=function(){};
599function yp(a){var b,c,d,e,f,g,h;return H(function(k){if(1==k.g)return b=cf(a.h,a.s.retryParameters),c=a.G.networkingEngine,d=Date.now(),e=c.request(0,b),Ye(a.i,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.G)return k["return"](0);f.uri&&!a.h.includes(f.uri)&&a.h.unshift(f.uri);return u(k,Ap(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;ic(a.H,1,h);return k["return"](h)})}
600function Ap(a,b,c){var d,e,f,g,h;return H(function(k){if(1==k.g){d=Vn(b,"MPD");if(!d)throw new N(2,4,4001,c);if(e=a.s.dash.disableXlinkProcessing)return k["return"](Bp(a,d,c));f=a.s.dash.xlinkFailGracefully;g=lo(d,a.s.retryParameters,f,c,a.G.networkingEngine);Ye(a.i,g);return u(k,g.promise,2)}h=k.h;return k["return"](Bp(a,h,c))})}
601function Bp(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,w,x,y,C,D,B,F,G,J,O,L,M,T,X,ba,Z,P,ma,na,Ea;return H(function(Na){switch(Na.g){case 1:(d=a.s.dash.manifestPreprocessor)&&d(b);e=[c];f=En(b,"Location").map(Jn).filter(Kb);0<f.length&&(g=Mb(e,f),e=a.h=g);h=En(b,"BaseURL");k=h.map(Jn);l=Mb(e,k);m=0;h&&h.length&&(m=Ln(h[0],"availabilityTimeOffset",Sn)||0);n=a.s.dash.ignoreMinBufferTime;p=0;n||(p=Ln(b,"minBufferTime",Nn)||0);a.B=Ln(b,"minimumUpdatePeriod",Nn,-1);t=Ln(b,"availabilityStartTime",Mn);v=Ln(b,"timeShiftBufferDepth",
602Nn);w=a.s.dash.ignoreSuggestedPresentationDelay;x=null;w||(x=Ln(b,"suggestedPresentationDelay",Nn));y=a.s.dash.ignoreMaxSegmentDuration;C=null;y||(C=Ln(b,"maxSegmentDuration",Nn));D=b.getAttribute("type")||"static";if(a.F)for(B=a.F.presentationTimeline,F=r(Object.values(a.l)),G=F.next();!G.done;G=F.next())J=G.value,J.Db(B.vb());else O=a.s.defaultPresentationDelay||1.5*p,L=null!=x?x:O,B=new R(t,L,a.s.dash.autoCorrectDrift);M=b.getAttribute("profiles")||"";T={Cb:"static"!=D,presentationTimeline:B,wa:null,
603$:null,Da:null,M:null,bandwidth:0,Ye:!1,Xb:m,profiles:M.split(",")};var Bb=Ln(b,"mediaPresentationDuration",Nn),Za=[],Ja=0,sc=En(b,"Period");sc=r(kb(sc));for(var ub=sc.next();!ub.done;ub=sc.next()){var $b=ub.value;ub=$b.item;$b=$b.next;Ja=Ln(ub,"start",Nn,Ja);var Tf=Ln(ub,"duration",Nn),mb=null;if($b){var wd=Ln($b,"start",Nn);null!=wd&&(mb=wd-Ja)}else null!=Bb&&(mb=Bb-Ja);null==mb&&(mb=Tf);ub=Cp(a,T,l,{start:Ja,duration:mb,node:ub,bf:null==mb||!$b});Za.push(ub);T.wa.id&&mb&&(a.I[T.wa.id]=mb);if(null==
604mb){Ja=null;break}Ja+=mb}X=null!=Bb?{periods:Za,duration:Bb,Qe:!1}:{periods:Za,duration:Ja,Qe:!0};ba=X.duration;
604Z=X.periods;B.Nc("static"==D);"static"!=D&&X.Qe||B.ab(ba||Infinity);a.j&&!a.o&&(P=a.G.isAutoLowLatencyMode())&&(a.G.enableLowLatencyMode(),a.o=a.G.isLowLatencyMode());a.o?B.pf(a.j):a.j&&Ra("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.");
605(ma=B.X())&&!isNaN(a.s.availabilityWindowOverride)&&(v=a.s.availabilityWindowOverride);null==v&&(v=Infinity);B.ye(v);B.be(C||1);return u(Na,Uo(a.g,Z,T.Cb),2);case 2:if(a.F){a.F.variants=a.g.l;a.F.textStreams=a.g.j;a.F.imageStreams=a.g.i;a.G.filter(a.F);Na.C(3);break}a.F={presentationTimeline:B,variants:a.g.l,textStreams:a.g.j,imageStreams:a.g.i,offlineSessionIds:[],minBufferTime:p||0};if(!B.xf()){Na.C(3);break}na=En(b,"UTCTiming");return u(Na,Dp(a,l,na),5);case 5:Ea=Na.h;if(!a.G)return Na["return"]();
606B.qf(Ea);case 3:a.G.makeTextStreamsForClosedCaptions(a.F),z(Na)}})}
607function Cp(a,b,c,d){b.wa=Ep(d.node,null,c);b.$=d;b.wa.Xb=b.Xb;b.wa.id||(b.wa.id="__shaka_period_"+d.start);c=En(d.node,"EventStream");c=r(c);for(var e=c.next();!e.done;e=c.next())Fp(a,d.start,d.duration,e.value);c=En(d.node,"AdaptationSet").map(function(m){return Gp(a,b,m)}).filter(Kb);if(b.Cb){d=[];e=r(c);for(var f=e.next();!f.done;f=e.next()){f=r(f.value.Qg);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new N(2,4,4018);}d=c.filter(function(m){return!m.De});
608c=c.filter(function(m){return m.De});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.De.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={Tc:h.Tc},l=k.next())h.Tc=l.value,h.Tc.trickModeVideo=e.streams.find(function(m){return function(n){return qd(m.Tc.codecs)==qd(n.codecs)}}(h))}}}e=a.s.disableAudio?[]:Hp(d,"audio");g=a.s.disableVideo?[]:Hp(d,"video");f=a.s.disableText?[]:Hp(d,Rb);c=a.s.disableThumbnails?
609[]:Hp(d,"image");if(!g.length&&!e.length)throw new N(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.wa.id,Xc:d,wd:e,textStreams:g,imageStreams:f}}
610function Hp(a,b){return a.filter(function(c){return c.contentType==b})}
611function Gp(a,b,c){b.Da=Ep(c,b.wa,null);var d=!1,e=En(c,"Role"),f=e.map(function(B){return B.getAttribute("value")}).filter(Kb),g=void 0,h=b.Da.contentType==Rb;h&&(g="subtitle");e=r(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;var l=k.getAttribute("schemeIdUri");if(null==l||"urn:mpeg:dash:role:2011"==l)switch(k=k.getAttribute("value"),k){case "main":d=!0;break;case "caption":case "subtitle":g=k}}l=En(c,"EssentialProperty");e=null;k=!1;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,
612"http://dashif.org/guidelines/trickmode"==m.getAttribute("schemeIdUri")?e=m.getAttribute("value"):k=!0;l=En(c,"Accessibility");var n=new Map;l=r(l);for(m=l.next();!m.done;m=l.next()){var p=m.value;m=p.getAttribute("schemeIdUri");p=p.getAttribute("value");if("urn:scte:dash:cc:cea-608:2015"==m)if(m=1,null!=p){p=p.split(";");for(var t=r(p),v=t.next();!v.done;v=t.next()){var w=v.value,x=v=void 0;w.includes("=")?(w=w.split("="),v=w[0].startsWith("CC")?w[0]:"CC"+w[0],x=w[1]):(v="CC"+m,2==p.length?m+=2:
613m++,x=w);n.set(v,Ub(x))}}else n.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==m)if(m=1,null!=p)for(p=r(p.split(";")),v=p.next();!v.done;v=p.next())v=v.value,w=t=void 0,v.includes("=")?(v=v.split("="),t="svc"+v[0],w=v[1].split(",")[0].split(":").pop()):(t="svc"+m,m++,w=v),n.set(t,Ub(w));else n.set("svc1","und");else"urn:mpeg:dash:role:2011"==m&&null!=p&&(f.push(p),"captions"==p&&(g="caption"))}if(k)return null;k=En(c,"ContentProtection");var y=Wn(k,a.s.dash.ignoreDrmInfo,a.s.dash.keySystemsByURI),
614C=Ub(c.getAttribute("lang")||"und"),D=c.getAttribute("label");(k=En(c,"Label"))&&k.length&&(k=k[0],k.textContent&&(D=k.textContent));k=En(c,"Representation");c=k.map(function(B){return Ip(a,b,y,g,C,D,d,f,n,B)}).filter(function(B){return!!B});if(0==c.length){e="image"==b.Da.contentType;if(a.s.dash.ignoreEmptyAdaptationSet||h||e)return null;throw new N(2,4,4003);}if(!b.Da.contentType||"application"==b.Da.contentType)for(b.Da.contentType=Jp(c[0].mimeType,c[0].codecs),h=r(c),l=h.next();!l.done;l=h.next())l.value.type=
615b.Da.contentType;h=r(c);for(l=h.next();!l.done;l=h.next())for(l=l.value,m=r(y.drmInfos),p=m.next();!p.done;p=m.next())p=p.value,p.keyIds=p.keyIds&&l.keyIds?new Set([].concat(ia(p.keyIds),ia(l.ke
615yIds))):p.keyIds||l.keyIds;h=k.map(function(B){return B.getAttribute("id")}).filter(Kb);return{id:b.Da.id||"__fake__"+a.D++,contentType:b.Da.contentType,language:C,si:d,streams:c,drmInfos:y.drmInfos,De:e,Qg:h}}
616function Ip(a,b,c,d,e,f,g,h,k,l){b.M=Ep(l,b.Da,null);a.j=Math.min(a.j,b.M.Xb);if(!Kp(b.M))return null;var m=b.$.start;b.bandwidth=Ln(l,"bandwidth",Qn)||0;var n=b.M.contentType,p=n==Rb||"application"==n;n="image"==n;try{var t=function(G,J,O){return Lp(a,G,J,O)};if(b.M.Lc)var v=xo(b,t);else if(b.M.yb)v=Do(b,a.l);else if(b.M.Mc)v=Mo(b,t,a.l,!!a.F,a.s.dash.initialSegmentLimit,a.I);else{var w=b.M.Sa,x=b.$.duration||0;v={$b:function(){return Promise.resolve(Ti(m,x,w))}}}}catch(G){if((p||n)&&4002==G.code)return null;
617throw G;}t=En(l,"ContentProtection");t=Zn(t,c,a.s.dash.ignoreDrmInfo,a.s.dash.keySystemsByURI);t=new Set(t?[t]:[]);var y=!1;En(l,"SupplementalProperty").some(function(G){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==G.getAttribute("schemeIdUri")&&"JOC"==G.getAttribute("value")})&&(b.M.mimeType="audio/eac3-joc",y=!0);var C=!1;p&&(C=h.includes("forced_subtitle"));var D;if(n&&((l=En(l,"EssentialProperty").find(function(G){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(G.getAttribute("schemeIdUri"))}))&&
618(D=l.getAttribute("value")),!D))return null;var B;l=b.M.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");var F={id:a.D++,originalId:b.M.id,createSegmentIndex:function(){var G;return H(function(J){if(1==J.g){if(F.segmentIndex)return J.C(0);G=F;return u(J,v.$b(),3)}G.segmentIndex=J.h;z(J)})},segmentIndex:null,mimeType:b.M.mimeType,codecs:b.M.codecs,frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,
619bandwidth:b.bandwidth,width:b.M.width,height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:t,language:e,label:f,type:b.Da.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:C,channelsCount:b.M.ee,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:y,closedCaptions:k,hdr:B,tilesLayout:D};return F}
620q.Ic=function(){var a=this,b,c;return H(function(d){switch(d.g){case 1:return b=0,A(d,2),u(d,yp(a),4);case 4:b=d.h;wa(d,3);break;case 2:c=E(d),a.G&&(c.severity=1,a.G.onError(c));case 3:if(!a.G)return d["return"]();zp(a,b);z(d)}})};function zp(a,b){0>a.B||a.A.S(Math.max(3,a.B-b,jc(a.H)))}
621function Ep(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ee:null,audioSamplingRate:null,Xb:0};c=c||b.Sa;var d=En(a,"BaseURL"),e=d.map(Jn),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=Ln(a,"frameRate",Tn)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=En(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=r(m);for(var p=m.next();!p.done;p=
622m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=En(a,"AudioChannelConfiguration");m=Mp(m)||b.ee;p=Ln(a,"audioSamplingRate",Rn)||b.audioSamplingRate;f||(f=Jp(g,h));var t=Dn(a,"SegmentBase"),v=Dn(a,"SegmentTemplate"),w=t?Ln(t,"availabilityTimeOffset",Sn)||0:0,x=v?Ln(v,"availabilityTimeOffset",Sn)||0:0;d=d&&d.length?Ln(d[0],"availabilityTimeOffset",Sn)||0:0;d=b.Xb+d+w+x;return{Sa:Mb(c,e),Lc:t||b.Lc,yb:Dn(a,"SegmentList")||b.yb,Mc:v||b.Mc,width:Ln(a,"width",Rn)||b.width,height:Ln(a,
623"height",Rn)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),ee:m,audioSamplingRate:p,Xb:d}}
624function Mp(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_c
624onfiguration:2011":b=
625parseInt(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 Kp(a){var b=a.Lc?1:0;b+=a.yb?1:0;b+=a.Mc?1:0;if(0==b)return a.contentType==Rb||"application"==a.contentType?!0:!1;1!=b&&(a.Lc&&(a.yb=null),a.Mc=null);return!0}
626function Np(a,b,c,d){var e,f,g,h,k,l;return H(function(m){if(1==m.g)return e=Mb(b,[c]),f=cf(e,a.s.retryParameters),f.method=d,g=a.G.networkingEngine.request(4,f),Ye(a.i,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=Xc(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
627function Dp(a,b,c){var d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.s.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=r(d),g=f.next();case 2:if(g.done){n.C(4);break}h=g.value;A(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.C(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.C(8);
628case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n["return"](isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ra("NTP UTCTiming scheme is not supported");break;default:Ra("Unrecognized scheme in UTCTiming element",k)}n.C(9);break;case 7:return u(n,Np(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return u(n,Np(a,b,l,"GET"),11);case 11:return n["return"](n.h);
629case 9:wa(n,3);break;case 5:E(n);case 3:g=f.next();n.C(2);break;case 4:return Ra("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n["return"](0)}})}
630function Fp(a,b,c,d){var e=d.getAttribute("schemeIdUri")||"",f=d.getAttribute("value")||"",g=Ln(d,"timescale",Rn)||1;d=r(En(d,"Event"));for(var h=d.next();!h.done;h=d.next()){h=h.value;var k=Ln(h,"presentationTime",Rn)||0,l=Ln(h,"duration",Rn)||0;k=k/g+b;l=k+l/g;null!=c&&(k=Math.min(k,b+c),l=Math.min(l,b+c));h={schemeIdUri:e,value:f,startTime:k,endTime:l,id:h.getAttribute("id")||"",eventElement:h};a.G.onTimelineRegionAdded(h)}}
631function Lp(a,b,c,d){var e,f,g,h,k;return H(function(l){if(1==l.g)return e=jf,f=fj(b,c,d,a.s.retryParameters),g=a.G.networkingEngine,h=g.request(e,f),Ye(a.i,h),u(l,h.promise,2);k=l.h;return l["return"](k.data)})}function Jp(a,b){return td(od(a,b))?Rb:a.split("/")[0]}I("shaka.dash.DashParser",xp);ng.mpd=function(){return new xp};lg["application/dash+xml"]=function(){return new xp};lg["video/vnd.mpeg.dash.mpd"]=function(){return new xp};function Op(a,b,c,d){this.g=a;this.type=b;this.Y=c;this.segments=d||null}function Pp(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Pp.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};
632Pp.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function Qp(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Rp(a,b){var c=a.getAttribute(b);if(!c)throw new N(2,4,4023,b);return c.value}function Sp(a,b,c){c=void 0===c?[]:c;this.Y=b;this.g=a;this.h=c}function Tp(a,b){this.name=a;this.value=b};function Up(a,b){return a.filter(function(c){return c.name==b})}function Vp(a,b){return a.filter(function(c){return Rp(c,"TYPE")==b})}function Wp(a,b){var c=Up(a,b);return c.length?c[0]:null}function Xp(a,b,c){c=void 0===c?0:c;return(a=Wp(a,b))?Number(a.value):c};function Yp(a){this.h=a;this.g=0}function Zp(a){$p(a,/[ \t]+/gm)}function $p(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function aq(a){return a.g==a.h.length?null:(a=$p(a,/[^ \t\n]*/gm))?a[0]:null};function bq(){this.g=0}
633function cq(a,b,c){b=Xc(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 N(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=dq(a.g++,g),--a.g,eq.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;g=r(kb(d));for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=k.za;var l=k.item;k=k.next;if(/^#(?!EXT)/m.test(l)||e)e=!1;else{l=dq(a.g++,
634l);
634if(fq.includes(l.name)){if(1!=b)throw new N(2,4,4017);k=d.splice(h,d.length-h);d=c;e=[];g=[];h=[];l=null;k=r(k);for(var m=k.next();!m.done;m=k.next())m=m.value,/^(#EXT)/.test(m)?(m=dq(a.g++,m),eq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?l=m:"EXT-X-PART"==m.name?h.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==Qp(m,"TYPE")?h.push(m):"MAP"==Qp(m,"TYPE")&&(m.name="EXT-X-MAP",l=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Mb([d],[m.trim()])[0],l&&g.push(l),e.push(new Sp(m,g,h)),g=[],h=[]);h.length&&
635(l&&g.push(l),e.push(new Sp("",g,h)));return new Op(c,b,f,e)}f.push(l);"EXT-X-STREAM-INF"==l.name&&(l.g.push(new Tp("URI",k)),e=!0)}}return new Op(c,b,f)}function dq(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new N(2,4,4016,b);var d=c[1],e=c[2];c=[];var f;if(e){e=new Yp(e);var g;(g=$p(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=$p(e,h);)c.push(new Tp(g[1],g[2]||g[3]))}return new Pp(a,d,c,f)}
636var eq="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(" "),fq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function gq(){}function hq(a){try{var b=iq(a);return Re({uri:a,ef:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Pe(c)}}function iq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new N(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new N(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=fd(a):e=ad(a);return{data:e,contentType:c}}
637I("shaka.net.DataUriPlugin",gq);gq.parse=hq;$e("data",hq);function jq(){var a=this;this.s=this.G=null;this.xa=1;this.l=new Map;this.A=new Map;this.ua=new Set;this.g=new Map;this.h=null;this.N="";this.V=new bq;this.na=0;this.B=new Q(function(){a.Ic()});this.j=kq;this.F=null;this.ba=0;this.H=Infinity;this.R=this.Ja=0;this.D=new Xe;this.ea=[];this.K=new Map;this.Ia=!1;this.o=new Map;this.O=null;this.aa=new Map;this.I=new Map;this.i=!1}q=jq.prototype;q.configure=function(a){this.s=a};
638q.start=function(a,b){var c=this,d,e;return H(function(f){if(1==f.g)return c.G=b,c.i=b.isLowLatencyMode(),u(f,lq(c,cf([a],c.s.retryParameters),0),2);
638if(3!=f.g)return d=f.h,c.N=d.uri,u(f,mq(c,d.data),3);e=c.na;0<e&&c.B.S(e);return f["return"](c.F)})};q.stop=function(){this.B&&(this.B.stop(),this.B=null);var a=[];this.D&&(a.push(this.D.destroy()),this.D=null);this.s=this.G=null;this.ua.clear();this.F=null;this.g.clear();this.A.clear();this.o.clear();this.l.clear();return Promise.all(a)};
639q.update=function(){var a=this,b,c,d;return H(function(e){if(1==e.g){if(a.j==kq)return e["return"]();b=[];a.O=null;c=Array.from(a.g.values());return c.length?u(e,nq(a,c[0]),2):e.C(2)}for(d=1;d<c.length;d++)b.push(nq(a,c[d]));return u(e,Promise.all(b),0)})};
640function nq(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v;return H(function(w){if(1==w.g)return c=oq,d=b.Bf,e=new ob(d),a.i&&b.Gf&&rb(e,new tb("_HLS_skip=YES")),u(w,lq(a,cf([e.toString()],a.s.retryParameters),0),2);if(3!=w.g){f=w.h;g=cq(a.V,f.data,f.uri);if(1!=g.type)throw new N(2,4,4017);h=Up(g.Y,"EXT-X-DEFINE");k=pq(a,h);l=b.stream;return u(w,qq(a,b.vd,g,l.type,l.mimeType,b.Yd,k,b.Lf),3)}m=w.h;l.segmentIndex.ec(m,a.h.vb());m.length&&(n=Xp(g.Y,"EXT-X-MEDIA-SEQUENCE",0),p=b.Yd.get(n),l.segmentIndex.Db(p));t=
641m[m.length-1];if(v=Wp(g.Y,"EXT-X-ENDLIST"))rq(a,c.Af),a.h.ab(t.endTime);z(w)})}q.onExpirationUpdated=function(){};
642function mq(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w,x,y,C,D,B,F,G,J,O,L,M,T,X;return H(function(ba){switch(ba.g){case 1:c=cq(a.V,b,a.N);if(0!=c.type)throw new N(2,4,4022);d=Up(c.Y,"EXT-X-DEFINE");for(var Z=r(d),P=Z.next();!P.done;P=Z.next()){var ma=P.value;P=Qp(ma,"NAME");ma=Qp(ma,"VALUE");P&&ma&&(a.l.has(P)||a.l.set(P,ma))}e=Up(c.Y,"EXT-X-MEDIA");f=Up(c.Y,"EXT-X-STREAM-INF");g=Up(c.Y,"EXT-X-IMAGE-STREAM-INF");Z=r(f);for(P=Z.next();!P.done;P=Z.next()){var na=P.value;ma=Qp(na,"AUDIO");P=Qp(na,"VIDEO");
643var Ea=Qp(na,"SUBTITLES");na=sq(a,na);if(Ea){var Na=Pb(Rb,na);a.o.set(Ea,Na);mc(na,Na)}ma&&(Ea=Ob("audio",na),a.o.set(ma,Ea));P&&(ma=Ob("video",na),a.o.set(P,ma))}h=Up(c.Y,"EXT-X-SESSION-DATA");k=r(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=Qp(m,"DATA-ID"),p=Qp(m,"URI"),t=Qp(m,"LANGUAGE"),v=Qp(m,"VALUE"),w={id:n},p&&(w.uri=Mb([a.N],[p])[0]),t&&(w.language=t),v&&(w.value=v),x=new K("sessiondata",w),a.G)a.G.onEvent(x);return u(ba,tq(a,e),2);case 2:Z=Vp(e,"CLOSED-CAPTIONS");Z=r(Z);for(P=Z.next();!P.done;P=
644Z.next())Ea=P.value,P=uq(Ea),ma=Rp(Ea,"GROUP-ID"),Ea=Rp(Ea,"INSTREAM-ID"),a.K.get(ma)||a.K.set(ma,new Map),a.K.get(ma).set(Ea,P);return u(ba,vq(a,f),3);case 3:return y=ba.h,u(ba,wq(a,e),4);case 4:return C=ba.h,u(ba,xq(a,g),5);case 5:D=ba.h;if(!a.G)throw new N(2,7,7001);if(a.Ia&&0==y.length)throw new N(2,4,4034);F=B=Infinity;G=r(a.g.values());for(J=G.next();!J.done;J=G.next())O=J.value,B=Math.min(B,O.cf),"text"!=O.stream.type&&(F=Math.min(F,O.Ag-O.cf));a.j!=kq?(a.h=new R(0,a.s.defaultPresentationDelay?
645a.s.defaultPresentationDelay:a.R?a.R:3*a.ba),a.h.Nc(!1)):(a.h=new R(null,0),a.h.Nc(!0));yq(a);if(a.j!=kq)a.na=a.H,L=oq,a.j==L.He&&(M=a.h.pd,isNaN(a.s.availabilityWindowOverride)||(M=a.s.availabilityWindowOverride),a.h.ye(M));else for(a.h.ab(F),a.h.offset(-B),T=r(a.g.values()),J=T.next();!J.done;J=T.next())X=J.value,X.stream.segmentIndex.offset(-B),X.stream.segmentIndex.ub(0,F);a.F={presentationTimeline:a.h,variants:y,textStreams:C,imageStreams:D,offlineSessionIds:[],minBufferTime:0};a.G.makeTextStreamsForClosedCaptions(a.F);
646z(ba)}})}function pq(a,b){for(var c=new Map,d=r(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=Qp(f,"NAME");var g=Qp(f,"VALUE");f=Qp(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.l.get(f))&&c.set(f,e)}return c}
647function wq(a,b){var c,d,e,f,g,h,k,l,m,n,p,t;return H(function(v){if(1==v.g)return c=Vp(b,"SUBTITLES"),d=c.map(function(w){var x,y,C;return H(function(D){if(1==D.g){if(x=a.s.disableText)return D["return"](null);A(D,2);return u(D,zq(a,w),4)}if(2!=D.g)return y=D.h,D["return"](y.stream);C=E(D);if(a.s.hls.ignoreTextStreamFailures)return D["return"](null);throw C;})}),u(v,Promise.all(d),2);e=v.h;f=r(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=Rp(h,"GROUP-ID"),l=a.o.get(k))if(m=a.A.get(k))for(n=
648r(m),p=n.next();!p.done;p=n.next())t=p.value,t.stream.codecs=l;return v["return"](e.filter(function(w){return w}))})}
649function xq(a,b){var c,d;return H(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return H(function(l){if(1==l.g){if(g=a.s.disableThumbnails)return l["return"](null);A(l,2);return u(l,Aq(a,f),4)}if(2!=l.g)return h=l.h,l["return"](h.stream);k=E(l);if(a.s.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}))})}
650function tq(a,b){var c;return H(function(d){if(1==d.g)return b=b.filter(function(e){var f=Qp(e,"URI")||"";return"SUBTITLES"!=Qp(e,"TYPE")&&""!=f}),b.length?u(d,zq(a,b[0]),2):d.C(2);c=b.slice(1).map(function(e){return zq(a,e)});return u(d,Promise.all(c),0)})}
651function vq(a,b){var c,d,e;return H(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,t,v;return H(function(w){if(1==w.g)return h=Qp(g,"FRAME-RATE"),k=Number(Qp(g,"AVERAGE-BANDWIDTH"))||Number(Rp(g,"BANDWIDTH")),l=Qp(g,"RESOLUTION"),m=r(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,t=Qp(g,"VIDEO-RANGE"),u(w,Bq(a,g),2);if(v=w.h){for(var x=w["return"],y=v.audio,C=v.video,D=r(C),B=D.next();!B.done;B=D.next())if(B=B.value.stream)B.width=Number(n)||void 0,B.height=Number(p)||
652void 0,B.frameRate=Number(h)||void 0,B.hdr=t||void 0;D=a.s.disableAudio;if(!y.length||D)y=[null];D=a.s.disableVideo;if(!C.length||D)C=[null];D=[];y=r(y);for(B=y.next();!B.done;B=y.next()){B=B.value;for(var F=r(C),G=F.next();!G.done;G=F.next()){var J=G.value;G=B?B.stream:null;
652var O=J?J.stream:null,L=B?B.stream.drmInfos:null,M=J?J.stream.drmInfos:null;J=(J?J.vd:"")+" - "+(B?B.vd:"");G&&O&&L.length&&M.length&&!(0<hg(L,M).length)||a.ua.has(J)||(G={id:a.xa++,language:G?G.language:"und",primary:!!G&&G.primary||
653!!O&&O.primary,audio:G,video:O,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},D.push(G),a.ua.add(J))}}w=x.call(w,D)}else w=w["return"]([]);return w})}),u(f,Promise.all(c),2);d=f.h;e=d.reduce(Ib,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
654function Bq(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w;return H(function(x){if(1==x.g)return c=Sb,d=sq(a,b),e=Qp(b,"AUDIO"),f=Qp(b,"VIDEO"),h=(g=e||f)&&a.A.has(g)?a.A.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=Rp(b,"URI"),p=k.audio.find(function(y){return y&&y.vd==n}),t=Pb(c.fb,d),(v=Pb(c.zb,d))&&!t?l=c.zb:!h.length&&v&&t?(l=c.fb,d=[[t,v].join()]):k.audio.length&&p?(l=c.zb,m=!0):l=k.video.length?c.zb:c.fb,m?x.C(2):u(x,Cq(a,b,d,l),3);2!=x.g&&(w=x.h);if(w)k[w.stream.type]=[w];else if(null===w)return x["return"](null);
655Dq(k);return x["return"](k)})}function sq(a,b){var c=[];a.s.disableVideo||c.push("avc1.42E01E");a.s.disableAudio||c.push("mp4a.40.2");var d=Qp(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=qd(f);c.has(g)||(e.push(f),c.add(g))}return e}function uq(a){a=Qp(a,"LANGUAGE")||"und";return Ub(a)}
656function Dq(a){a=r(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}
657function zq(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w;return H(function(x){if(1==x.g){c=Rp(b,"GROUP-ID");d="";var y=Rp(b,"TYPE").toLowerCase();"subtitles"==y&&(y=Rb);e=y;e!=Rb&&c&&a.o.has(c)&&(d=a.o.get(c));f=Eq(Rp(b,"URI"),a.l);if(a.g.has(f))return x["return"](a.g.get(f));g=uq(b);h=Qp(b,"NAME");k=b.getAttribute("DEFAULT");l="YES"==k;"audio"==e?y=(y=Qp(b,"CHANNELS"))?parseInt(y.split("/")[0],10):null:y=null;m=y;"audio"==e?y=(y=Qp(b,"CHANNELS"))?y.includes("/JOC"):!1:y=!1;n=y;p=Qp(b,"CHARACTERISTICS");
658t=Qp(b,"FORCED");v="YES"==t;return u(x,Fq(a,f,d,e,g,l,h,m,null,p,v,n),2)}w=x.h;a.A.has(c)?a.A.get(c).push(w):a.A.set(c,[w]);if(null==w)return x["return"](null);if(a.g.has(f))return x["return"](a.g.get(f));a.g.set(f,w);return x["return"](w)})}
659function Aq(a,b){var c,d,e,f,g,h;return H(function(k){if(1==k.g){c=Eq(Rp(b,"URI"),a.l);d=Qp(b,"CODECS","jpeg")||"";if(a.g.has(c))return k["return"](a.g.get(c));e=uq(b);f=Qp(b,"NAME");g=Qp(b,"CHARACTERISTICS");return u(k,Fq(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=k.h;if(null==h)return k["return"](null);if(a.g.has(c))return k["return"](a.g.get(c));a.g.set(c,h);return k["return"](h)})}
660function Cq(a,b,c,d){var e,f,g,h;return H(function(k){if(1==k.g){e=Eq(Rp(b,"URI"),a.l);if(a.g.has(e))return k["return"](a.g.get(e));var l=Qp(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.K.get(l):null;g=Ob(d,c);return u(k,Fq(a,e,g,d,"und",!1,null,null,f,null,!1,!1),2)}h=k.h;if(null==h)return k["return"](null);if(a.g.has(e))return k["return"](a.g.get(e));a.g.set(e,h);return k["return"](h)})}
661function Fq(a,b,c,d,e,f,g,h,k,l,m,n){var p,t,v,w,x,y,C,D,B,F,G,J,O,L,M,T,X,ba,Z,P,ma,na,Ea,Na,Bb,Za,Ja,sc,ub,$b,Tf,mb,wd,ui,Wf,Eo,Fo,Go,Ho;return H(function(nb){switch(nb.g){case 1:return p=Mb([a.N],[b])[0],u(nb,lq(a,cf([p],a.s.retryParameters),0),2);case 2:t=nb.h;p=t.uri;v=cq(a.V,t.data,p);if(1!=v.type)throw new N(2,4,4017);w=[];if(v.segments)for(x=r(v.segments),y=x.next();!y.done;y=x.next())C=y.value,D=Up(C.Y,"EXT-X-KEY"),w.push.apply(w,ia(D));B=!1;F=[];G=new Set;J=r(w);for(O=J.next();!O.done;O=
662J.next())if(L=O.value,M=Rp(L,"METHOD"),"NONE"!=M){B=!0;if("AES-128"==M)return a.Ia=!0,nb["return"](null);T=Rp(L,"KEYFORMAT");if(ba=(X=Gq[T])?X(L):null){if(ba.keyIds)for(Z=r(ba.keyIds),P=Z.next();!P.done;P=Z.next())ma=P.value,G.add(ma);F.push(ba)}}if(B&&!F.length)throw new N(2,4,4026);na=Up(v.Y,"EXT-X-DEFINE");Ea=pq(a,na);Hq(a,v);return u(nb,Iq(a,d,c,v,Ea),3);case 3:return Na=nb.h,Jq.includes(Na)&&(c=""),Bb=new Map,Za=new Map,A(nb,4),u(nb,qq(a,b,v,d,Na,Bb,Ea,Za),6);case 6:Ja=nb.h;wa(nb,5);break;case 4:sc=
663E(nb);
663if(4035==sc.code)return Ra("Skipping unsupported HLS stream",Na,b),nb["return"](null);throw sc;case 5:ub=Ja[0].startTime;$b=Ja[Ja.length-1].endTime;Tf=new Ri(Ja);mb=d==Rb?"subtitle":void 0;wd=[];if(l)for(ui=r(l.split(",")),Wf=ui.next();!Wf.done;Wf=ui.next())Eo=Wf.value,wd.push(Eo);Go=(Fo=Wp(v.Y,"EXT-X-SERVER-CONTROL"))?null!=Fo.getAttribute("CAN-SKIP-UNTIL"):!1;Ho={id:a.xa++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Tf,mimeType:Na,codecs:c,kind:mb,encrypted:B,
664drmInfos:F,keyIds:G,language:e,label:g,type:d,primary:f,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:wd,forced:m,channelsCount:h,audioSamplingRate:null,spatialAudio:n,closedCaptions:k,hdr:void 0,tilesLayout:void 0};return nb["return"]({stream:Ho,vd:b,Bf:p,cf:ub,Ag:$b,Yd:Bb,Lf:Za,Gf:Go})}})}
665function Hq(a,b){var c=Wp(b.Y,"EXT-X-PLAYLIST-TYPE"),d=Wp(b.Y,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)rq(a,kq);else{c?rq(a,Kq):rq(a,Lq);d=Wp(b.Y,"EXT-X-TARGETDURATION");if(!d)throw new N(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Wp(b.Y,"EXT-X-PART-INF");a.i&&c?(a.Ja=Number(Rp(c,"PART-TARGET")),a.H=Math.min(a.Ja,a.H),c=Wp(b.Y,"EXT-X-SERVER-CONTROL"),a.R=c?Number(Rp(c,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.ba=Math.max(d,a.ba)}}
666function Mq(a,b,c,d){c=Wp(c,"EXT-X-MAP");if(!c)return null;var e=Rp(c,"URI");d=Eq(Mb([b],[e])[0],d);b=[d,Qp(c,"BYTERANGE","")].join("-");a.aa.has(b)||(c=Nq(d,c),a.aa.set(b,c));return a.aa.get(b)}function Nq(a,b){var c=0,d=null,e=Qp(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new ri(function(){return[a]},c,d)}
667function Oq(a,b,c,d,e,f,g,h,k){var l=d.Y,m=Eq(d.g,g),n=Wp(l,"EXTINF"),p=g=0,t=null,v=[];if(a.i&&d.h.length){a={};d=r(kb(d.h));for(var w=d.next();!w.done;a={Fd:a.Fd},w=d.next()){w=w.value;var x=w.za;w=w.item;var y=0==x?c:v[v.length-1];x=0==x?e:y.endTime;var C=Number(Qp(w,"DURATION"));C=x+C;var D=0,B=null;"EXT-X-PRELOAD-HINT"==w.name?D=(y=Qp(w,"BYTERANGE-START"))?Number(y):0:(D=Qp(w,"BYTERANGE"),y=r(Pq(y,D)),D=y.next().value,B=y.next().value);
667w=Qp(w,"URI");a.Fd=Mb([h],[w])[0];v.push(new ti(x,C,function(F){return function(){return[F.Fd]}}(a),
668D,B,b,f,0,Infinity))}}else if(!n)throw new N(2,4,4024,"EXTINF");n?g=e+Number(n.value.split(",")[0]):g=v[v.length-1].endTime;(h=Wp(l,"EXT-X-BYTERANGE"))?(t=r(Pq(c,h.value)),p=t.next().value,t=t.next().value):v.length&&(p=v[0].Ba,t=v[v.length-1].va);c="";"image"==k&&(c="1x1",(k=Wp(l,"EXT-X-TILES"))&&(c=Rp(k,"LAYOUT")));return new ti(e,g,function(){return m.length?[m]:[]},p,t,b,f,0,Infinity,v,c)}
669function Pq(a,b){var c=0,d=null;b&&(c=b.split("@"),d=Number(c[0]),c=c[1]?Number(c[1]):a.va+1,d=c+d-1);return[c,d]}function yq(a){if(a.h){for(var b=r(a.ea),c=b.next();!c.done;c=b.next())a.h.fc(c.value);a.ea=[]}}
670function qq(a,b,c,d,e,f,g,h){var k,l,m,n,p,t,v,w,x,y,C,D,B,F,G,J,O,L,M,T,X,ba,Z,P,ma;return H(function(na){switch(na.g){case 1:k=c.segments;m=Xp(c.Y,"EXT-X-MEDIA-SEQUENCE",0);p=(n=Wp(c.Y,"EXT-X-SKIP"))?Number(Qp(n,"SKIPPED-SEGMENTS")):0;t=m+p;if(a.j!=kq&&f.has(t)){v=f.get(t);na.C(2);break}if(null!=a.O){na.C(3);break}l=Mq(a,c.g,k[0].Y,g);w=a;return u(na,Qq(a,b,l,e,t,!1,k[0],g,d),4);case 4:w.O=na.h;case 3:v=a.O;case 2:x=k[0].g;Va(x.split("/").pop());y=Xp(c.Y,"EXT-X-DISCONTINUITY-SEQUENCE");if(a.i&&
671(h.has(y)||h.set(y,t),p))for(;h.has(y+1)&&h.get(y+1)<t;)y++;C=a.I.get(y)||0;D=[];B=function(Ea){return kb(Ea)};F=r(B(k));G=F.next();case 5:if(G.done){na.C(7);break}O=J=G.value;L=O.za;M=O.item;T=D[D.length-1];X=0==L?v:T.endTime;t=m+p+L;f.set(t,X);l=Mq(a,c.g,M.Y,g);ba=Wp(M.Y,"EXT-X-DISCONTINUITY");if(!ba){na.C(8);break}y++;h.set(y,t);return u(na,Rq(a,y,b,l,e,t,M,g,X,d),9);case 9:C=na.h;case 8:!a.i&&(Z=a.G.isAutoLowLatencyMode())&&(a.G.enableLowLatencyMode(),a.i=a.G.isLowLatencyMode());P=Wp(M.Y,"EXTINF");
672a.i||P?(ma=Oq(a,l,T,M,X,C,g,c.g,d),D.push(ma)):a.i||Ra("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.");G=F.next();na.C(5);break;case 7:return a.ea.push(D),yq(a),na["return"](D)}})}
673function Rq(a,b,c,d,e,f,g,h,k,l){var m,n;return H(function(p){if(1==p.g)return m=0,a.I.has(b)?(m=a.I.get(b),p.C(2)):u(p,Qq(a,c,d,e,f,!0,g,h,l),3);2!=p.g&&(n=p.h,m=k-n,a.I.set(b,m));return p["return"](m)})}
674function Sq(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:c=jf;d=fj(b.Fa(),b.Ba,b.va,a.s.retryParameters);if(a.s.hls.useFullSegmentsForStartTime)return k["return"](lq(a,d,c));e=fj(b.Fa(),b.Ba,b.Ba+2048-1,a.s.retryParameters);A(k,2);return u(k,lq(a,e,c),4);case 4:return f=k.h,k["return"](f);case 2:g=E(k);if(7001==g.code)throw g;Ra("Unable to fetch the starting part of HLS segment! Falling back to a full segment request, which is expensive!  Your server should support Range requests and CORS preflights.",
675e.uris[0]);return u(k,lq(a,d,c),5);case 5:return h=k.h,k["return"](h)}})}
676function Qq(a,b,c,d,e,f,g,h,k){var l,m,n,p,t,v,w,x;return H(function(y){switch(y.g){case 1:l=Oq(a,c,null,g,0,0,h,"",k);if(a.F&&!f&&(m=a.g.get(b),n=m.Yd.get(e),void 0!=n))return y["return"](n);d=d.toLowerCase();if(Jq.includes(d))throw Ra("Raw formats are not yet supported.  Skipping "+d),new N(1,4,4035);if("video/webm"==d)throw Ra("WebM in HLS is not yet supported.  Skipping."),new N(1,4,4035);if("video/mp4"!=d&&"audio/mp4"!=d){y.C(2);break}p=[Sq(a,l)];c&&p.push(Sq(a,c));return u(y,Promise.all(p),
6773);case 3:return t=y.h,v=t[0],w=t[1]||t[0],y["return"](Tq(b,v.uri,v.data,w.data));case 2:if("video/mp2t"!=d){y.C(4);break}return u(y,Sq(a,l),5);case 5:return x=y.h,y["return"](Uq(b,x.uri,x.data));case 4:throw new N(2,4,4030,b);}})}
678function Tq(a,b,c,d){var e=0;(new sg).box("moov",wg).box("trak",wg).box("mdia",wg).Z("mdhd",function(h){e=Nh(h.reader,h.version).timescale;h.parser.stop()}).parse(d,!0);if(!e)throw new N(2,4,4030,a,b);var f=0,g=!1;(new sg).box("moof",wg).box("traf",wg).Z("tfdt",function(h){f=Mh(h.reader,h.version).Od/e;g=!0;h.parser.stop()}).parse(c,!0);if(!g)throw new N(2,4,4030,a,b);return f}
679function Uq(a,b,c){function d(){f.seek(g+188);h=f.ka();71!=h&&(f.seek(g+192),h=f.ka());71!=h&&(f.seek(g+204),h=f.ka());71!=h&&e();f.lf(1)}function e(){throw new N(2,4,4030,a,b);}for(var f=new pg(c,0),g=0,h=0;;)if(g=f.ia(),h=f.ka(),71!=h&&e(),c=f.jc(),8191==(c&8191))d();else if(c&16384)if(c=(f.ka()&48)>>4,0!=c&&2!=c||e(),3==c&&(c=f.ka(),f.skip(c)),1!=f.P()>>8)d();else{f.skip(3);c=f.ka()>>6;0!=c&&1!=c||e();0==f.ka()&&e();c=f.ka();var k=f.jc(),l=f.jc();return(1073741824*((c&14)>>1)+((k&65534)<<14|(l&
68065534)>>1))/9E4}else d()}function Eq(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new N(2,4,4039,f);}}return c}
681function Iq(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,v,w;return H(function(x){if(1==x.g){f=Sb;g=jf;h=Eq(d.segments[0].g,e);k=new ob(h);l=k.Qa.split(".").pop();m=Vq[b];if(n=m[l])return x["return"](n);if(b==f.oa)return c&&"vtt"!=c&&"wvtt"!=c?x["return"]("application/mp4"):x["return"]("text/vtt");if(b==f.tc&&(!c||"jpeg"==c))return x["return"]("image/jpeg");p=cf([h],a.s.retryParameters);p.method="HEAD";return u(x,lq(a,p,g),2)}t=x.h;v=t.headers["content-type"];return v?x["return"](v.split(";")[0]):(w=m.mp4,x["return"](w))})}
682q.Ic=function(){var a=this,b,c;return H(function(d){if(1==d.g){if(!a.G)return d["return"]();A(d,2);return u(d,a.update(),4)}if(2!=d.g)return b=a.na,a.B.S(b),wa(d,0);c=E(d);if(!a.G)return d["return"]();c.severity=1;a.G.onError(c);a.B.S(.1);z(d)})};function rq(a,b){a.j=b;a.h&&a.h.Nc(a.j==kq);a.j!=kq||a.B.stop()}function lq(a,b,c){if(!a.D)throw new N(2,7,7001);b=a.G.networkingEngine.request(c,b);Ye(a.D,b);return b.promise}
682I("shaka.hls.HlsParser",jq);
683var Jq=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"],Vq={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
684vtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Gq={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Rp(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=Rp(a,"URI");b=iq(b);b=Nc(b.data);b=Nb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=Qp(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=
685Rp(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Rp(a,"URI");a=iq(a);a=Nc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Bn(a,b);return Nb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},kq="VOD",Lq="EVENT",Kq="LIVE",oq={Af:kq,sh:Lq,He:Kq};ng.m3u8=function(){return new jq};lg["application/x-mpegurl"]=function(){return new jq};lg["application/vnd.apple.mpegurl"]=function(){return new jq};function Wq(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,ef:d,data:b,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=$c(b)}catch(g){}throw new N(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Xq(){}function Yq(a,b,c,d){var e=new Zq;uf(b.headers).forEach(function(k,l){e.append(l,k)});var f=new $q,g={Ke:!1,wf:!1};a=ar(a,c,{body:b.body||void 0,headers:e,method:b.method,signal:f.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},g,d,b.streamDataCallback);a=new Oe(a,function(){g.Ke=!0;f.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var h=new Q(function(){g.wf=!0;f.abort()});h.S(b/1E3);a["finally"](function(){h.stop()})}return a}
686function ar(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,v,w,x,y,C,D;return H(function(B){switch(B.g){case 1:return g=br,h=cr,n=m=0,p=Date.now(),A(B,2),u(B,g(a,c),4);case 4:return k=B.h,t=k.clone().body.getReader(),w=(v=k.headers.get("Content-Length"))?parseInt(v,10):0,x=function(F){function G(){var J,O;return H(function(L){switch(L.g){case 1:return A(L,2),u(L,t.read(),4);case 4:J=L.h;wa(L,3);break;case 2:return E(L),L["return"]();case 3:if(J.done){L.C(5);break}m+=J.value.byteLength;if(!f){L.C(5);break}return u(L,
687f(J.value),5);case 5:O=Date.now();if(100<O-p||J.done)e(O-p,m-n,w-m),n=m,p=O;J.done?F.close():(F.enqueue(J.value),G());z(L)}})}G()},new h({start:x}),u(B,k.arrayBuffer(),5);case 5:l=B.h;wa(B,3);break;case 2:y=E(B);if(d.Ke)throw new N(1,1,7001,a,b);if(d.wf)throw new N(1,1,1003,a,b);throw new N(1,1,1002,a,y,b);case 3:return C={},D=k.headers,D.forEach(function(F,G){C[G.trim()]=F}),B["return"](Wq(C,l,k.status,a,k.url,b))}})}
688function dr(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}I("shaka.net.HttpFetchPlugin",Xq);Xq.isSupported=dr;Xq.parse=Yq;var br=window.fetch,$q=window.AbortController,cr=window.ReadableStream,Zq=window.Headers;dr()&&($e("http",Yq,2,!0),$e("https",Yq,2,!0));function er(){}
689function fr(a,b,c,d){var e=new gr,f=Date.now(),g=0,h=new Promise(function(k,l){e.open(b.method,a,!0);e.responseType="arraybuffer";e.timeout=b.retryParameters.timeout;e.withCredentials=b.allowCrossSiteCredentials;e.onabort=function(){l(new N(1,1,7001,a,c))};e.onload=function(n){n=n.target;var p=n.getAllResponseHeaders().trim().split("\r\n"),t={};p=r(p);for(var v=p.next();!v.done;v=p.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ");try{var w=Wq(t,n.response,n.status,a,n.responseURL,
690c);k(w)}catch(x){l(x)}};e.onerror=function(n){l(new N(1,1,1002,a,n,c))};e.ontimeout=function(){l(new N(1,1,1003,a,c))};e.onprogress=function(n){var p=Date.now();if(100<p-f||n.lengthComputable&&n.loaded==n.total)d(p-f,n.loaded-g,n.total-n.loaded),g=n.loaded,f=p};for(var m in b.headers)e.setRequestHeader(m.toLowerCase(),b.headers[m]);e.send(b.body)});return new Oe(h,function(){e.abort();return Promise.resolve()})}I("shaka.net.HttpXHRPlugin",er);er.parse=fr;var gr=window.XMLHttpRequest;
691$e("http",fr,1,!0);$e("https",fr,1,!0);function hr(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function ir(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}hr.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}};
691function jr(a){var b=this;this.T=a;this.g=new Map;this.L=new kf(function(){var c=Array.from(b.g.values());return Promise.all(c.map(function(d){return d["catch"](function(){})}))});this.h=[];this.hf=function(){};this.gf=function(){};this.uc=new hr}jr.prototype.destroy=function(){return this.L.destroy()};function kr(a,b,c){a.hf=b;a.gf=c}function lr(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
692function mr(a,b,c,d,e,f){lf(a.L);var g=ir(a.uc,d);d=(a.g.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,t;return H(function(v){if(1==v.g)return u(v,nr(a,c),2);h=v.h;if(a.L.g)throw new N(2,9,7001);if(e)for(m in k=Nc(h),l=new An(k),l.data)n=Number(m),p=l.data[n],t=l.g[n],a.gf(p,t);a.uc.close(g,h.byteLength);var w=a.uc;a.hf(0==w.i?0:w.j/w.i,a.uc.h);return v["return"](f(h))})});a.g.set(b,d);return d}
693function or(a,b,c){lf(a.L);var d=(a.g.get(b)||Promise.resolve()).then(function(){return H(function(e){return u(e,c(),0)})});a.g.set(b,d)}function pr(a){return H(function(b){return 1==b.g?u(b,Promise.all(a.g.values()),2):b["return"](a.uc.h)})}function nr(a,b){var c,d,e,f;return H(function(g){if(1==g.g)return c=jf,d=a.T.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;mc(a.h,e);return g["return"](f.data)})};function qr(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Uc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}qr.prototype.abort=function(){var a=this;return H(function(b){if(1==b.g){try{a.i.abort()}catch(c){}A(b,2);return u(b,a.g,4)}if(2!=b.g)return wa(b,0);E(b);z(b)})};
694function rr(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return H(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return u(g,b(f.key,f.value,f),2)}f["continue"]();z(g)})}})}qr.prototype.store=function(){return this.h};qr.prototype.promise=function(){return this.g};function sr(a){this.h=a;this.g=[]}sr.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function tr(a,b){return ur(a,b,"readwrite")}function ur(a,b,c){c=a.h.transaction([b],c);var d=new qr(c,b);a.g.push(d);d.promise().then(function(){mc(a.g,d)},function(){mc(a.g,d)});return d};function vr(a,b,c){this.g=new sr(a);this.i=b;this.h=c}q=vr.prototype;q.destroy=function(){return this.g.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return wr(this.i)};q.removeSegments=function(a,b){return xr(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return H(function(d){if(1==d.g)return u(d,yr(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.Ne(e)}))})};q.addManifests=function(){return wr(this.h)};
695q.updateManifestExpiration=function(a,b){var c=tr(this.g,this.h),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 xr(this,this.h,a,b)};q.getManifests=function(a){var b=this,c;return H(function(d){if(1==d.g)return u(d,yr(b,b.h,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.xc(e)})))})};
696q.getAllManifests=function(){var a=this,b,c;return H(function(d){return 1==d.g?(b=ur(a.g,a.h,"readonly"),c=new Map,u(d,rr(b,function(e,f){var g;return H(function(h){if(1==h.g)return u(h,a.xc(f),2);g=h.h;c.set(e,g);z(h)})}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};q.Ne=function(a){return a};q.xc=function(a){return Promise.resolve(a)};function wr(a){return Promise.reject(new N(2,9,9011,"Cannot add new value to "+a))}
697q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){if(1==m.g){d=tr(c.g,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={Sc:g.Sc},k=h.next())l=k.value,g.Sc=e.add(l),g.Sc.onsuccess=function(n){return function(){f.push(n.Sc.result)}}(g);return u(m,d.promise(),2)}return m["return"](f)})};
698function xr(a,b,c,d){a=tr(a.g,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={Rc:e.Rc},f=c.next())e.Rc=f.value,b["delete"](e.Rc).onsuccess=function(g){return function(){return d(g.Rc)}}(e);return a.promise()}
699function yr(a,b,c){var d,e,f,g,h,k,l;return H(function(m){if(1==m.g){d=ur(a.g,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={rc:h.rc,mc:h.mc},l=k.next())h.mc=l.value,h.rc=e.get(h.mc),h.rc.onsuccess=function(n){return function(){void 0==n.rc.result&&g.push(n.mc);f[n.mc]=n.rc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new N(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function zr(a){this.g=new sr(a)}zr.prototype.destroy=function(){return this.g.destroy()};zr.prototype.getAll=function(){var a=this,b,c;return H(function(d){return 1==d.g?(b=ur(a.g,"session-ids","readonly"),c=[],u(d,rr(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};zr.prototype.add=function(a){var b=tr(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()};
700zr.prototype.remove=function(a){var b=this,c;return H(function(d){return 1==d.g?(c=tr(b.g,"session-ids"),u(d,rr(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):u(d,c.promise(),0)})};function Ar(){this.g=new Map}Ar.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)};Ar.prototype.init=function(){var a=this;Br.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=r(this.g.values()),d=c.next();!d.done;
700d=c.next())b.push(d.value.init());return Promise.all(b)};
701function Cr(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{$a:d,Ea:f},Ea:e})})});if(b)return b;throw new N(2,9,9013,"Could not find a cell that supports add-operations");}function Dr(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({$a:d,Ea:f},e)})})}
702function Er(a,b,c){a=a.g.get(b);if(!a)throw new N(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new N(2,9,9013,"Could not find cell with name "+c);return b}function Fr(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function Gr(a){var b=Array.from(a.g.keys());if(!b.length)throw new N(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
703function Hr(a){var b,c,d;return H(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Br,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.C(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function Ir(a,b){Br.set(a,b)}I("shaka.offline.StorageMuxer",Ar);Ar.unregister=function(a){Br["delete"](a)};Ar.register=Ir;Ar.prototype.destroy=Ar.prototype.destroy;var Br=new Map;function Jr(){vr.apply(this,arguments)}ra(Jr,vr);Jr.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return H(function(g){d=tr(c.g,c.h);e=d.store();f=new Uc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new N(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
704Jr.prototype.xc=function(a){var b,c,d,e,f,g;return H(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=Kr(a.periods[c],e),b.push(f);return u(h,cp(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})})};
705function Kr(a,b){Lr(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return Mr(e,a.startTime,b)})}
706function Mr(a,b,c){var d=a.initSegmentUri?Nr(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=Nr(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
707dataKey: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}}Jr.prototype.Ne=function(a){return{data:a.data}};function Nr(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 N(2,9,9004,"Could not parse uri "+a);}
708function Lr(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++,
709f=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 Or(){vr.apply(this,arguments)}ra(Or,vr);
710Or.prototype.xc=function(a){var b,c,d,e,f,g;return H(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=r(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(Pr(n,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,cp(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
711a.expiration?Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g})})};
712function Pr(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,
713dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function Qr(){vr.apply(this,arguments)}ra(Qr,vr);Qr.prototype.hasFixedKeySpace=function(){return!1};Qr.prototype.addSegments=function(a){return this.add(this.i,a)};Qr.prototype.addManifests=function(a){return this.add(this.h,a)};Qr.prototype.xc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function Rr(){this.o=this.j=this.i=this.h=this.g=this.l=null}q=Rr.prototype;
714q.init=function(){var a=this,b=new Uc,c=window.indexedDB.open("shaka_offline_db",5);c.onsuccess=function(){var d=c.result;a.l=d;var e=d.objectStoreNames;e=e.contains("manifest")&&e.contains("segment")?new Jr(d,"segment","manifest"):null;a.g=e;e=d.objectStoreNames;e=e.contains("manifest-v2")&&e.contains("segment-v2")?new Or(d,"segment-v2","manifest-v2"):null;a.h=e;e=d.objectStoreNames;e=e.contains("manifest-v3")&&e.contains("segment-v3")?new Or(d,"segment-v3","manifest-v3"):null;a.i=e;e=d.objectStoreNames;
715e=e.contains("manifest-v5")&&e.contains("segment-v5")?new Qr(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new zr(d):null;a.o=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=r(["segment-v5","manifest-v5","session-ids"]),f=e.next();!f.done;f=e.next())f=f.value,d.objectStoreNames.contains(f)||d.createObjectStore(f,{autoIncrement:!0})};c.onerror=function(d){b.reject(new N(2,9,9001,c.error));d.preventDefault()};return b};
716q.destroy=function(){var a=this;return H(function(b){switch(b.g){case 1:if(!a.g){b.C(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.C(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.C(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.C(8);break}return u(b,a.j.destroy(),8);case 8:if(!a.o){b.C(10);break}return u(b,a.o.destroy(),10);case 10:a.l&&a.l.close(),z(b)}})};
717q.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.o};
718q.erase=function(){var a=this;return H(function(b){switch(b.g){case 1:if(!a.g){b.C(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.C(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.C(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.C(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,Sr(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
719function Sr(){var a=new Uc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new N(2,9,9001,b.error));c.preventDefault()};return a}Ir("idb",function(){return Hd()||!window.indexedDB?null:new Rr});function Tr(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}Tr.prototype.$a=function(){return this.i};Tr.prototype.Ea=function(){return this.h};Tr.prototype.key=function(){return this.l};Tr.prototype.toString=function(){return this.j};
720function Ur(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];
720if(!c)return null;var d=a[3];return d&&null!=b?new Tr(b,c,d,Number(a[4])):null};function Vr(a,b){this.h=a;this.g=b}
721function Wr(a,b){var c=new R(null,0);c.ab(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=Xr(a,d,e,c);e=b.streams.filter(function(l){return l.type==Rb}).map(function(l){return Yr(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Yr(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=
722g),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}}
723function Xr(a,b,c,d){for(var e=new Set,f=r(b),g=f.next();!g.done;g=f.next()){var h=r(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=r(c);for(g=f.next();!g.done;g=f.next())for(h=r(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=r(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=r(b);for(e=b.next();!e.done;e=b.next())for(e=
724e.value,g=Yr(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=Yr(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}
725function Yr(a,b,c){var d=b.segments.map(function(e){return Zr(a,e)});c.fc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Ri(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,
726roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function Zr(a,b){var c=new Tr("segment",a.h,a.g,b.dataKey);return new ti(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?$r(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
727function $r(a,b){var c=new Tr("segment",a.h,a.g,b);return new ri(function(){return[c.toString()]},0,null)};function as(){this.g=null}q=as.prototype;q.configure=function(){};
728q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:d=Ur(a);c.g=d;if(null==d||"manifest"!=d.g)throw new N(2,1,9004,a);e=new Ar;va(m);return u(m,e.init(),4);case 4:return u(m,Er(e,d.$a(),d.Ea()),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 Vr(d.$a(),d.Ea()),l=Wr(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return xa(m),u(m,e.destroy(),7);case 7:ya(m,0)}})};q.stop=function(){return Promise.resolve()};
729q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:return d=c.g,e=new Ar,A(m,2,3),u(m,e.init(),5);case 5:return u(m,Er(e,d.$a(),d.Ea()),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.C(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return xa(m),u(m,e.destroy(),10);case 10:ya(m,0);break;case 2:E(m),m.C(3)}})};
730lg["application/x-offline-manifest"]=function(){return new as};function bs(){}function cs(a){var b=Ur(a);b&&"manifest"==b.g?(a={uri:a,ef:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=Re(a)):a=b&&"segment"==b.g?ds(b.key(),b):Pe(new N(2,1,9004,a));return a}
731function ds(a,b){var c=new Ar;return Re(void 0).qa(function(){return c.init()}).qa(function(){return Er(c,b.$a(),b.Ea())}).qa(function(d){return d.getSegments([b.key()])}).qa(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}I("shaka.offline.OfflineScheme",bs);bs.plugin=cs;$e("offline",cs);function es(a,b,c){var d,e,f,g,h,k;return H(function(l){switch(l.g){case 1:d=[];for(var m=[],n=r(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var t=!1,v=r(m),w=v.next();!w.done;w=v.next())if(w=w.value,fs(w.info,p)){w.sessionIds.push(p.sessionId);t=!0;break}t||m.push({info:p,sessionIds:[p.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.C(4);break}g=f.value;h=gs(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.C(2);break;case 4:return l["return"](d)}})}
732function gs(a,b,c){var d,e;return H(function(f){switch(f.g){case 1:return d=new xf({Mb:b,onError:function(){},md:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),A(f,2),d.configure(a),u(f,Ff(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:wa(f,3);break;case 2:return E(f),u(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return A(f,6),u(f,Of(d),8);case 8:wa(f,7);break;case 6:return E(f),u(f,d.destroy(),
7339);case 9:return f["return"]([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return H(function(h){if(1==h.g)return A(h,2),u(h,Pf(d,g),4);if(2!=h.g)return e.push(g),wa(h,0);E(h);z(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f["return"](e)}})}
734function fs(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&nc(a.audioCapabilities,b.audioCapabilities,c)&&nc(a.videoCapabilities,b.videoCapabilities,c)};function hs(a,b,c){var d=b.presentationTimeline.getDuration();b=is(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c}}function js(a,b){var c=Wr(new Vr(a.$a(),a.Ea()),b),d=b.appMetadata||{};c=is(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d}}
735function is(a){var b=[],c=re(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.next())b.push(ie(d.value));a=r(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(je(c.value));return b};function ks(){this.g={}}function ls(a,b,c){c=c.endTime-c.startTime;return ms(a,b)*c}function ms(a,b){var c=a.g[b];null==c&&(c=0);return c};function ns(a){var b=this;if(a&&a.constructor!=U)throw new N(2,9,9008);this.T=this.s=null;a?(this.s=a.s,this.T=a.Ac()):(this.s=fk(),this.T=new Ze);this.sd=[];this.Jc=[];this.je=[];var c=!a;this.L=new kf(function(){var d,e,f,g,h;return H(function(k){switch(k.g){case 1:return u(k,Promise.all(b.
735je.map(function(l){return lr(l)})),2);case 2:d=function(){};e=[];f=r(b.Jc);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.C(4);break}return u(k,b.T.destroy(),
7364);case 4:b.s=null,b.T=null,z(k)}})})}function os(){if(Cd())a:{var a=r(Br.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=ns.prototype;q.destroy=function(){return this.L.destroy()};
737q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=dk(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(Eb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);return hk(this.s,a)};q.getConfiguration=function(){var a=fk();hk(a,this.s,fk());return a};q.Ac=function(){return this.T};
738q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new jr(this.T);this.je.push(f);b=ps(this,a,b||{},function(){var h;return H(function(k){if(1==k.g)return u(k,kg(a,d.T,e.manifest.retryParameters,c||null),2);h=k.h;return k["return"](Lb(h))})},e,f);var g=new Oe(b,function(){return lr(f)});g["finally"](function(){mc(d.je,f)});g.then=function(h){Eb("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise.  Please update to conform to this new API; you can use the |chain| method instead.");
739return g.promise.then(h)};return qs(this,g)};q.mg=function(){Eb("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported.");return!1};
740function ps(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,v,w,x;return H(function(y){switch(y.g){case 1:return rs(),h=g=null,k=new Ar,m=l=null,A(y,2,3),u(y,d(),5);case 5:return g=y.h,u(y,ss(a,b,g,e),6);case 6:n=y.h;ts(a);p=!n.presentationTimeline.X()&&!n.presentationTimeline.Jb();if(!p)throw new N(2,9,9005,b);return u(y,us(a,n,function(C){m=m||C},e),7);case 7:h=y.h;ts(a);if(m)throw m;return u(y,a.bd(n,e),8);case 8:return u(y,k.init(),9);case 9:return ts(a),u(y,Cr(k),10);case 10:return l=y.h,ts(a),u(y,vs(a,l.Ea,
741h,n,b,c,e,f),11);case 11:t=y.h;ts(a);if(m)throw m;return u(y,l.Ea.addManifests([t]),12);case 12:return v=y.h,ts(a),w=new Tr("manifest",l.path.$a,l.path.Ea,v[0]),y["return"](js(w,t));case 3:return xa(y),a.sd=[],u(y,k.destroy(),13);case 13:if(!g){y.C(14);break}return u(y,g.stop(),14);case 14:if(!h){y.C(16);break}return u(y,h.destroy(),16);case 16:ya(y,0);break;case 2:x=E(y);if(!l){y.C(18);break}return u(y,l.Ea.removeSegments(a.sd,function(){}),18);case 18:throw m||x;}})}
742q.bd=function(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w,x,y,C,D,B,F,G,J,O,L,M,T,X,ba,Z;return H(function(P){switch(P.g){case 1:c={width:Infinity,height:Infinity};Yd(a,b.restrictions,c);ae(a,b.offline.usePersistentLicense);d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Md(a,g,h,e,f);k=r(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(ie(m));n=r(a.textStreams);for(p=n.next();!p.done;p=n.next())t=p.value,d.push(je(t));v=
743r(a.imageStreams);for(w=v.next();!w.done;w=v.next())x=w.value,d.push(ke(x));return u(P,b.offline.trackSelectionCallback(d),2);case 2:y=P.h;C=a.presentationTimeline.getDuration();D=0;B=r(y);for(F=B.next();!F.done;F=B.next())G=F.value,J=G.bandwidth*C/8,D+=J;A(P,3);return u(P,b.offline.downloadSizeCallback(D),5);case 5:O=P.h;if(!O)throw new N(2,9,9014);wa(P,4);break;case 3:L=E(P);if(L instanceof N)throw L;throw new N(2,9,9015);case 4:M=new Set;T=new Set;X=new Set;ba=r(y);for(F=ba.next();!F.done;F=ba.next())Z=
744F.value,"variant"==Z.type&&M.add(Z.id),"text"==Z.type&&T.add(Z.id),"image"==Z.type&&X.add(Z.id);a.variants=a.variants.filter(function(ma){return M.has(ma.id)});a.textStreams=a.textStreams.filter(function(ma){return T.has(ma.id)});a.imageStreams=a.imageStreams.filter(function(ma){return X.has(ma.id)});ws(a);z(P)}})};
745function vs(a,b,c,d,e,f,g,h){var k,l,m,n,p,t,v,w,x,y,C,D;return H(function(B){switch(B.g){case 1:return k=hs(e,d,f),l=g.offline.progressCallback,m=function(F,G){k.size=G;l(k,F)},n=function(F,G){v&&g.offline.usePersistentLicense&&w==G&&Nf(c,"cenc",F)},kr(h,m,n),p=d.variants.some(function(F){var G=F.audio&&F.audio.encrypted;return F.video&&F.video.encrypted||G}),t=d.variants.some(function(F){return(F.video?F.video.drmInfos:[]).concat(F.audio?F.audio.drmInfos:[]).some(function(G){return G.initData&&
746G.initData.length})}),v=p&&!t,w=null,v&&(x=c.i,w=xs.get(x.keySystem)),va(B),C=y=ys(a,h,b,c,d,e,f,g),u(B,pr(h),4);case 4:C.size=B.h;y.expiration=c.zc();D=Uf(c);y.sessionIds=g.offline.usePersistentLicense?D:[];if(p&&g.offline.usePersistentLicense&&!D.length)throw new N(2,9,9007);return B["return"](y);case 2:return xa(B),u(B,h.destroy(),5);case 5:ya(B,0)}})}q.remove=function(a){return zs(this,As(this,a))};
747function As(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:rs();c=Ur(b);if(null==c||"manifest"!=c.g)throw new N(2,9,9004,b);d=c;
747e=new Ar;va(k);return u(k,e.init(),4);case 4:return u(k,Er(e,d.$a(),d.Ea()),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([Bs(a,h,e),Cs(f,d,h)]),2);case 2:return xa(k),u(k,e.destroy(),8);case 8:ya(k,0)}})}
748function Ds(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:od(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:od(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function Bs(a,b,c){return H(function(d){return u(d,Es(a.T,a.s.drm,c,b),0)})}
749function Cs(a,b,c){function d(){}var e=Fs(c);js(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.Pg=function(){return zs(this,Gs(this))};
750function Gs(a){var b,c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:return rs(),b=a.T,c=a.s.drm,d=new Ar,e=!1,va(n),u(n,d.init(),4);case 4:f=[],Fr(d,function(p){return f.push(p)}),g=r(f),h=g.next();case 5:if(h.done){n.C(2);break}k=h.value;return u(n,k.getAll(),8);case 8:return l=n.h,u(n,es(c,b,l),9);case 9:return m=n.h,u(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.C(5);break;case 2:return xa(n),u(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n["return"](!e)}})}
751q.list=function(){return zs(this,Hs())};function Hs(){var a,b,c;return H(function(d){switch(d.g){case 1:return rs(),a=[],b=new Ar,va(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),Dr(b,function(e,f){c=c.then(function(){var g;return H(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=js(new Tr("manifest",e.$a,e.Ea,l),k);a.push(m)});z(h)})})}),u(d,c,2);case 2:return xa(d),u(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d["return"](a)}})}
752function ss(a,b,c,d){var e,f,g,h,k;return H(function(l){if(1==l.g)return e=null,f=a.T,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){}},c.configure(d.manifest),ts(a),u(l,c.start(b,g),2);if(3!=l.g)return h=l.h,ts(a),k=Is(h),u(l,Promise.all(db(k,
753function(m){return m.createSegmentIndex()})),3);ts(a);if(e)throw e;return l["return"](h)})}function us(a,b,c,d){var e;return H(function(f){switch(f.g){case 1:return e=new xf({Mb:a.T,onError:c,md:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,Cf(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,Of(e),3);case 3:return u(f,Mf(e),4);case 4:return f["return"](e)}})}
754function ys(a,b,c,d,e,f,g,h){for(var k=new ks,l=r(e.variants),m=l.next();!m.done;m=l.next()){var n=k;m=m.value;var p=m.audio,t=m.video;p&&!t&&(n.g[p.id]=p.bandwidth||m.bandwidth);!p&&t&&(n.g[t.id]=t.bandwidth||m.bandwidth);if(p&&t){var v=p.bandwidth||393216,w=t.bandwidth||m.bandwidth-v;0>=w&&(w=m.bandwidth);n.g[p.id]=v;n.g[t.id]=w}}l=r(e.textStreams);for(n=l.next();!n.done;n=l.next())k.g[n.value.id]=52;l=r(e.imageStreams);for(n=l.next();!n.done;n=l.next())n=n.value,k.g[n.id]=n.bandwidth||2048;n=new Map;
755n.set(null,Promise.resolve(null));m=new Map;p=Is(e);l=new Map;p=r(p);for(t=p.next();!t.done;t=p.next())t=t.value,v=Js(a,b,c,k,e,t,h,n,m),l.set(t.id,v);a=r(e.variants);for(m=a.next();!m.done;m=a.next())b=m.value,b.audio&&l.get(b.audio.id).variantIds.push(b.id),b.video&&l.get(b.video.id).variantIds.push(b.id);a=Array.from(l.values());h=h.offline.usePersistentLicense;(b=d.i)&&h&&(b.initData=[]);return{creationTime:Date.now(),originalManifestUri:f,duration:e.presentationTimeline.getDuration(),size:0,
756expiration:d.zc(),streams:a,sessionIds:h?Uf(d):[],drmInfo:b,appMetadata:g}}
757function Js(a,b,c,d,e,f,g,h,k){var l={id:f.id,originalId:f.originalId,primary:f.primary,type:f.type,mimeType:f.mimeType,codecs:f.codecs,frameRate:f.frameRate,pixelAspectRatio:f.pixelAspectRatio,hdr:f.hdr,kind:f.kind,language:f.language,label:f.label,width:f.width||null,height:f.height||null,encrypted:f.encrypted,keyIds:f.keyIds,segments:[],variantIds:[],roles:f.roles,forced:f.forced,channelsCount:f.channelsCount,audioSamplingRate:f.audioSamplingRate,spatialAudio:f.spatialAudio,closedCaptions:f.closedCaptions,
758tilesLayout:f.tilesLayout},m=f.id;Ks(f,e.presentationTimeline.vb(),function(n){var p=Ls(a,b,m,f.id,c,d,n.h,g,h),t=Ms(a,b,m,f.id,c,d,n,g,k);or(b,m,function(){var v,w;return H(function(x){if(1==x.g)return u(x,p,2);if(3!=x.g)return v=x.h,u(x,t,3);w=x.h;l.segments.push({initSegmentKey:v,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,dataKey:w});z(x)})})});return l}
759function Ls(a,b,c,d,e,f,g,h,k){if(k.has(g))return k.get(g);h=fj(g.Fa(),g.Ba,g.va,h.streaming.retryParameters);b=mr(b,c,h,.5*ms(f,d),!0,function(l){var m;return H(function(n){if(1==n.g)return u(n,e.addSegments([{data:l}]),2);m=n.h;a.sd.push(m[0]);return n["return"](m[0])})});k.set(g,b);return b}
760function Ms(a,b,c,d,e,f,g,h,k){var l=[g.Fa()[0],g.Ba,g.va].join("-");if(k.has(l))return k.get(l);h=fj(g.Fa(),g.Ba,g.va,h.streaming.retryParameters);b=mr(b,c,h,ls(f,d,g),!1,function(m){var n;return H(function(p){if(1==p.g)return u(p,e.addSegments([{data:m}]),2);n=p.h;a.sd.push(n[0]);return p["return"](n[0])})});k.set(l,b);return b}function Ks(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 ts(a){if(a.L.g)throw new N(2,9,7001);}
761function rs(){if(!os())throw new N(2,9,9E3);}function zs(a,b){return H(function(c){if(1==c.g)return a.Jc.push(b),va(c),u(c,b,4);
761if(2!=c.g)return c["return"](c.h);xa(c);mc(a.Jc,b);return ya(c,0)})}function qs(a,b){var c=b.promise;a.Jc.push(c);return b["finally"](function(){mc(a.Jc,c)})}
762function Fs(a){var b=[];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.push(d.initSegmentKey),b.push(d.dataKey)}return b}
763function Es(a,b,c,d){var e,f,g;return H(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=Gr(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Ds(d,!1),videoCapabilities:Ds(d,!0)}});return u(h,es(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)})}
764function Is(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}
765function ws(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",ns);ns.deleteAll=function(){var a;return H(function(b){return 1==b.g?(a=new Ar,va(b),u(b,Hr(a),2)):5!=b.g?(xa(b),u(b,a.destroy(),5)):ya(b,0)})};ns.prototype.list=ns.prototype.list;
766ns.prototype.removeEmeSessions=ns.prototype.Pg;ns.prototype.remove=ns.prototype.remove;ns.prototype.getStoreInProgress=ns.prototype.mg;ns.prototype.store=ns.prototype.store;ns.prototype.getNetworkingEngine=ns.prototype.Ac;ns.prototype.getConfiguration=ns.prototype.getConfiguration;ns.prototype.configure=ns.prototype.configure;ns.prototype.destroy=ns.prototype.destroy;ns.support=os;
767var xs=(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");
768fm.offline=os;function Ns(){}function Os(){for(var a=r(Ps),b=a.next();!b.done;b=a.next()){b=b.value;try{b.Ff()}catch(c){Ra("Error installing polyfill!",c)}}}function Qs(a,b){for(var c={priority:b||0,Ff:a},d=r(kb(Ps)),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.za;if(e.item.priority<c.priority){Ps.splice(f,0,c);return}}Ps.push(c)}I("shaka.polyfill",Ns);Ns.register=Qs;Ns.installAll=Os;var Ps=[];function Rs(a){var b=a.toLowerCase().replace("aria","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)}})}Qs(function(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())Rs(b.value)});Qs(function(){Ss()},-2);function Ts(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)}
769Qs(function(){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||
770document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Ts);document.addEventListener("webkitfullscreenerror",Ts);document.addEventListener("mozfullscreenchange",Ts);document.addEventListener("mozfullscreenerror",Ts);document.addEventListener("MSFullscreenChange",Ts);document.addEventListener("MSFullscreenError",
771Ts)}});Qs(function(){});function Us(a){var b,c,d,e,f,g,h,k,l,m,n,p;return H(function(t){switch(t.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a||a.video&&(c=a.video.contentType,d=MediaSource.isTypeSupported(c),!d)||a.audio&&(e=a.audio.contentType,f=MediaSource.isTypeSupported(e),!f))return t["return"](b);if(!a.keySystemConfiguration)return b.supported=!0,t["return"](Promise.resolve(b));g=a.keySystemConfiguration;h=[];k=[];g.audio&&(l={robustness:g.audio.robustness||"",contentType:a.audio.contentType},
772h.push(l));g.video&&(m={robustness:g.video.robustness||"",contentType:a.video.contentType},k.push(m));n={initDataTypes:[g.initDataType],distinctiveIdentifier:g.distinctiveIdentifier,persistentState:g.persistentState,sessionTypes:g.sessionTypes};h.length&&(n.audioCapabilities=h);k.length&&(n.videoCapabilities=k);A(t,3);return u(t,navigator.requestMediaKeySystemAccess(g.keySystem,[n]),5);case 5:p=t.h;wa(t,4);break;case 3:E(t);case 4:p&&(b.supported=!0,b.keySystemAccess=p);case 2:return t["return"](b)}})}
773Qs(function(){!Hd()&&navigator.mediaCapabilities||!window.MediaSource||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),navigator.mediaCapabilities.decodingInfo=Us)},-1);function Vs(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];c=a.apply(this,c);c.abort=function(){};return c}}function Ws(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Xs(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"==b.split(/ *; */)[0].split("/")[1].toLowerCase()?!1:a(b)}}
774function Ys(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=qd(b)&&a(b)}}function Zs(){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)}}
775function $s(){var a=MediaSource.isTypeSupported;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)}}
776Qs(function(){var a=Jd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Zs():a?(Xs(),12>=a?(Vs(),Ws()):Vs()):(Gd("Tizen 2")||Gd("Tizen 3")||Gd("Tizen 4"))&&Ys());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&$s()});function at(){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 bt;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new K("change",{});b.dispatchEvent(c)})}function bt(){cb.call(this);this.type="";this.angle=0}ra(bt,cb);
777bt.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)};
778bt.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};Qs(function(){screen.orientation||void 0!=window.orientation&&at()});function ct(a,b){try{var c=new dt(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function et(a){var b=this.mediaKeys;b&&b!=a&&ft(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?ft(a,this):Promise.resolve()}function gt(a){a=Nc(a.initData);if(Qc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Yc(a.subarray(4),!0);a=ad(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Oc(a);this.dispatchEvent(b)}
779function dt(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;if("required"==e.persistentState)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;
779k=h.next())k=k.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
780k.contentType.split(";")[0])&&(d.audioCapabilities.push(k),g=!0));if(e.videoCapabilities)for(e=r(e.videoCapabilities),k=e.next();!k.done;k=e.next())h=k.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));d=g?d:null}if(d){this.g=d;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
781dt.prototype.createMediaKeys=function(){var a=new ht(this.keySystem);return Promise.resolve(a)};dt.prototype.getConfiguration=function(){return this.g};function ht(a){this.g=new WebKitMediaKeys(a);this.h=new mf}ht.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new it(this.g,a)};ht.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
782function ft(a,b){a.h.Pb();if(!b)return Promise.resolve();a.h.m(b,"webkitneedkey",gt);try{return Bi(b,HTMLMediaElement.HAVE_METADATA,a.h,function(){b.webkitSetMediaKeys(a.g)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function it(a){cb.call(this);this.j=null;this.l=a;this.i=this.g=null;this.h=new mf;this.sessionId="";this.expiration=NaN;this.closed=new Uc;this.keyStatuses=new jt}ra(it,cb);q=it.prototype;
783q.generateRequest=function(a,b){var c=this;this.g=new Uc;try{var d=this.l.createSession("video/mp4",Nc(b));this.j=d;this.sessionId=d.sessionId||"";this.h.m(this.j,"webkitkeymessage",function(e){c.g&&(c.g.resolve(),c.g=null);e=new K("message",{messageType:void 0==c.keyStatuses.g?"license-request":"license-renewal",message:Oc(e.message)});c.dispatchEvent(e)});this.h.m(d,"webkitkeyadded",function(){c.i&&(kt(c,"usable"),c.i.resolve(),c.i=null)});this.h.m(d,"webkitkeyerror",function(){var e=Error("EME PatchedMediaKeysApple key error");
784e.errorCode=c.j.error;if(null!=c.g)c.g.reject(e),c.g=null;else if(null!=c.i)c.i.reject(e),c.i=null;else switch(c.j.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:kt(c,"output-not-allowed");break;default:kt(c,"internal-error")}});kt(this,"status-pending")}catch(e){this.g.reject(e)}return this.g};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};q.update=function(a){this.i=new Uc;try{this.j.update(Nc(a))}catch(b){this.i.reject(b)}return this.i};
785q.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Pb()}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 kt(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new K("keystatuseschange");a.dispatchEvent(c)}function jt(){this.size=0;this.g=void 0}q=jt.prototype;q.forEach=function(a){this.g&&a(this.g,ig.value())};
786q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ig.value();return this.g&&Lc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};Qs(function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=et,window.MediaKeys=ht,window.MediaKeySystemAccess=dt,navigator.requestMediaKeySystemAccess=ct)});function lt(a,b){try{var c=new mt(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function nt(a){if(a.initData){var b=new CustomEvent("encrypted");b.initDataType="cenc";b.initData=Oc(Cn(a.initData));this.dispatchEvent(b)}}
787function mt(a,b){this.keySystem=a;for(var c=!1,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label},g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(g=!0,MSMediaKeys.isTypeSupp
787orted(this.keySystem,k.contentType.split(";")[0])&&(f.audioCapabilities.push(k),c=
788!0));if(e.videoCapabilities)for(h=r(e.videoCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(g=!0,MSMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(f.videoCapabilities.push(k),c=!0));g||(c=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));"required"==e.persistentState&&(c=!1);if(c){this.g=f;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
789mt.prototype.createMediaKeys=function(){var a=new ot(this.keySystem);return Promise.resolve(a)};mt.prototype.getConfiguration=function(){return this.g};function pt(a){var b=this.mediaKeys;b&&b!=a&&qt(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?qt(a,this):Promise.resolve()}function ot(a){this.g=new MSMediaKeys(a);this.h=new mf}
790ot.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new rt(this.g,a)};ot.prototype.setServerCertificate=function(){return Promise.resolve(!1)};function qt(a,b){a.h.Pb();if(!b)return Promise.resolve();a.h.m(b,"msneedkey",nt);try{return Bi(b,HTMLMediaElement.HAVE_METADATA,a.h,function(){b.msSetMediaKeys(a.g)}),Promise.resolve()}catch(c){return Promise.reject(c)}}
791function rt(a){cb.call(this);this.j=null;this.l=a;this.i=this.g=null;this.h=new mf;this.sessionId="";this.expiration=NaN;this.closed=new Uc;this.keyStatuses=new st}ra(rt,cb);q=rt.prototype;
792q.generateRequest=function(a,b){var c=this;this.g=new Uc;try{this.j=this.l.createSession("video/mp4",Nc(b),null),this.h.m(this.j,"mskeymessage",function(d){c.g&&(c.g.resolve(),c.g=null);d=new K("message",{messageType:void 0==c.keyStatuses.g?"license-request":"license-renewal",message:Oc(d.message)});c.dispatchEvent(d)}),this.h.m(this.j,"mskeyadded",function(){c.g?(tt(c,"usable"),c.g.resolve(),c.g=null):c.i&&(tt(c,"usable"),c.i.resolve(),c.i=null)}),this.h.m(this.j,"mskeyerror",function(){var d=Error("EME PatchedMediaKeysMs key error");
793d.errorCode=c.j.error;if(null!=c.g)c.g.reject(d),c.g=null;else if(null!=c.i)c.i.reject(d),c.i=null;else switch(c.j.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:tt(c,"output-not-allowed");break;default:tt(c,"internal-error")}}),tt(this,"status-pending")}catch(d){this.g.reject(d)}return this.g};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};q.update=function(a){this.i=new Uc;try{this.j.update(Nc(a))}catch(b){this.i.reject(b)}return this.i};
794q.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Pb()}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 tt(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new K("keystatuseschange");a.dispatchEvent(c)}function st(){this.size=0;this.g=void 0}q=st.prototype;q.forEach=function(a){this.g&&a(this.g,ig.value())};
795q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ig.value();return this.g&&Lc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};
796Qs(function(){!window.HTMLVideoElement||!window.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,window.MediaKeys=ot,window.MediaKeySystemAccess=mt,navigator.requestMediaKeySystemAccess=lt,HTMLMediaElement.prototype.setMediaKeys=pt)});function ut(){return Promise.reject(Error("The key system specified is not supported."))}function vt(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function wt(){throw new TypeError("Illegal constructor.");}wt.prototype.createSession=function(){};wt.prototype.setServerCertificate=function(){};function xt(){this.keySystem="";throw new TypeError("Illegal constructor.");}xt.prototype.getConfiguration=function(){};xt.prototype.createMediaKeys=function(){};
797Qs(function(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=ut,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=vt,window.MediaKeys=wt,window.MediaKeySystemAccess=xt)},-10);function yt(a){var b=zt;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function At(a,b){try{var c=new Bt(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Ct(a){var b=this.mediaKeys;b&&b!=a&&Dt(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Dt(a,this);return Promise.resolve()}
798function Bt(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");for(var f=r(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=r(g.audioCapabilities),
799m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType.split(";")[0],this.g)&&(h.audioCapabilities.push(m),d=!0));if(g.videoCapabilities)for(l=r(g.videoCapabilities),m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType,this.g)&&(h.videoCapabilities.push(m),d=!0));k||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==g.persistentState&&(c?(h.persistentState="required",h.sessionTypes=["persistent-license"]):
800d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}Bt.prototype.createMediaKeys=function(){var a=new Et(this.g);return Promise.resolve(a)};Bt.prototype.getConfiguration=function(){return this.h};function Et(a){this.l=a;this.g=null;this.h=new mf;this.i=[];this.j=new Map}
801function Dt(a,b){a.g=b;a.h.Pb();var c=zt;b&&(a.h.m(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Oc(d.initData);
801a.g.dispatchEvent(e)}),a.h.m(b,c+"keymessage",function(d){var e=Ft(a,d.sessionId);e&&(d=new K("message",{messageType:void 0==e.keyStatuses.g?"licenserequest":"licenserenewal",message:d.message}),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.h.m(b,c+"keyadded",function(d){if(d=Ft(a,d.sessionId))Gt(d,"usable"),d.g&&d.g.resolve(),d.g=
802null}),a.h.m(b,c+"keyerror",function(d){var e=Ft(a,d.sessionId);e&&e.handleError(d)}))}Et.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.g||document.createElement("video");b.src||(b.src="about:blank");a=new Ht(b,this.l,a);this.i.push(a);return a};Et.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
803function Ft(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 Ht(a,b,c){cb.call(this);this.j=a;this.o=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Uc;this.keyStatuses=new It}ra(Ht,cb);q=Ht.prototype;
804q.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?Gt(this,"output-restricted"):1==b?Gt(this,"expired"):Gt(this,"internal-error"))};
805function Jt(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if("persistent-license"==a.l)if(c)var d=Nc(ad("LOAD_SESSION|"+c));else{var e=ad("PERSISTENT|");d=id(e,b)}else d=Nc(b)}catch(g){return Promise.reject(g)}a.h=new Uc;var f=yt("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Q(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).S(.01)}return a.h}
806function Kt(a,b,c){if(a.g)a.g.then(function(){return Kt(a,b,c)})["catch"](function(){return Kt(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Xc(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=fd(e.keys[0].k);e=fd(e.keys[0].kid)}else d=Nc(c),e=null;var f=yt("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
807function Gt(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new K("keystatuseschange");a.dispatchEvent(c)}q.generateRequest=function(a,b){return Jt(this,b,null)};q.load=function(a){return"persistent-license"==this.l?Jt(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Uc;Kt(this,b,a);return b};
808q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=yt("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 It(){this.size=0;this.g=void 0}q=It.prototype;q.forEach=function(a){this.g&&a(this.g,ig.value())};q.get=function(a){if(this.has(a))return this.g};
809q.has=function(a){var b=ig.value();return this.g&&Lc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var zt="";
810Qs(function(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)zt="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=At;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Ct;window.MediaKeys=Et;window.MediaKeySystemAccess=Bt}});function Lt(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)}
811function Mt(){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 Nt(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
812function Ot(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Pt(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}
813Qs(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Mt,Object.defineProperty(a,"disablePictureInPicture",{get:Ot,set:Pt,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Nt,document.addEventListener("webkitpresentationmodechanged",Lt,!0))}});function Qt(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Qs(function(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Qt)});Qs(function(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});function Rt(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Qs(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Rt)}});function St(a,b,c){return new window.TextTrackCue(a,b,c)}function Tt(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Qs(function(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=St;else if(6==b)a=Tt;else{try{var c=!!St(1,2,"")}catch(d){c=!1}c&&(a=St)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}});function Ut(){}Ut.prototype.parseInit=function(){};Ut.prototype.parseMedia=function(a,b){var c=null,d=[],e=Xc(a).split(/\r?\n/);e=r(e);for(var f=e.next();!f.done;f=e.next())if((f=f.value)&&!/^\s+$/.test(f)&&(f=Vt.exec(f))){var g=Wt.exec(f[1]);g=60*parseInt(g[1],10)+parseFloat(g[2].replace(",","."));f=new pc(g,b.segmentEnd?b.segmentEnd:g+2,f[2]);c&&(c.endTime=g,d.push(c));c=f}c&&d.push(c);return d};I("shaka.text.LrcTextParser",Ut);Ut.prototype.parseMedia=Ut.prototype.parseMedia;
814Ut.prototype.parseInit=Ut.prototype.parseInit;var Vt=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3}
814)?)\](.*)/,Wt=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;ud["application/x-subtitle-lrc"]=function(){return new Ut};function Xt(){}Xt.prototype.parseInit=function(){};
815Xt.prototype.parseMedia=function(a,b){var c=Xc(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(D){throw new N(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new N(2,2,2005,c.textContent);var g=f.getElementsByTagName("tt")[0];if(!g)throw new N(2,2,2005,"TTML does not contain <tt> tag.");e=g.getElementsByTagName("body")[0];if(!e)return[];c=In(g,"http://www.w3.org/ns/ttml#parameter","frameRate");var h=In(g,"http://www.w3.org/ns/ttml#parameter",
816"subFrameRate"),k=In(g,"http://www.w3.org/ns/ttml#parameter","frameRateMultiplier"),l=In(g,"http://www.w3.org/ns/ttml#parameter","tickRate"),m=In(g,"http://www.w3.org/ns/ttml#parameter","cellResolution");f=g.getAttribute("xml:space")||"default";var n=In(g,"http://www.w3.org/ns/ttml#styling","extent");if("default"!=f&&"preserve"!=f)throw new N(2,2,2005,"Invalid xml:space value: "+f);f="default"==f;c=new Yt(c,h,k,l);m=m?(m=/^(\d+) (\d+)$/.exec(m))?{columns:parseInt(m[1],10),rows:parseInt(m[2],10)}:
817null:null;h=(h=g.getElementsByTagName("metadata")[0])?Hn(h):[];k=Array.from(g.getElementsByTagName("style"));g=Array.from(g.getElementsByTagName("region"));l=[];for(var p=r(g),t=p.next();!t.done;t=p.next()){var v=t.value;t=new rc;var w=v.getAttribute("xml:id");if(w){t.id=w;var x=null;n&&(x=Zt.exec(n)||$t.exec(n));w=x?Number(x[1]):null;x=x?Number(x[2]):null;var y,C;if(y=au(v,k,"extent"))y=(C=Zt.exec(y))||$t.exec(y),null!=y&&(t.width=Number(y[1]),t.height=Number(y[2]),C||(null!=w&&(t.width=100*t.width/
818w),null!=x&&(t.height=100*t.height/x)),t.widthUnits=C||null!=w?Ic:0,t.heightUnits=C||null!=x?Ic:0);if(v=au(v,k,"origin"))y=(C=Zt.exec(v))||$t.exec(v),null!=y&&(t.viewportAnchorX=Number(y[1]),t.viewportAnchorY=Number(y[2]),C||(null!=x&&(t.viewportAnchorY=100*t.viewportAnchorY/x),null!=w&&(t.viewportAnchorX=100*t.viewportAnchorX/w)),t.viewportAnchorUnits=C||null!=w?Ic:0)}else t=null;t&&l.push(t)}if(En(e,"p").length)throw new N(2,2,2001,"<p> can only be inside <div> in TTML");e=r(En(e,"div"));for(n=
819e.next();!n.done;n=e.next()){n=n.value;if(En(n,"span").length)throw new N(2,2,2001,"<span> can only be inside <p> in TTML");if((p=En(n,"p"))&&p.length)for(n=r(p),p=n.next();!p.done;p=n.next())(p=bu(p.value,b.periodStart,c,h,k,g,l,f,!1,m))&&d.push(p);else(n=bu(n,b.periodStart,c,h,k,g,l,f,!1,m))&&d.push(n)}}return d};
820function bu(a,b,c,d,e,f,g,h,k,l){var m=a.parentNode;if(a.nodeType==Node.TEXT_NODE){var n=document.createElement("span");n.textContent=a.textContent;a=n}h="default"==(a.getAttribute("xml:space")||(h?"default":"preserve"));n=/\S/.test(a.textContent);if(!(a.hasAttribute("begin")||a.hasAttribute("end")||a.hasAttribute("dur")||n||"br"==a.tagName||k&&!h))return null;var p=cu(a,c);n=p.start;for(p=p.end;m&&m.nodeType==Node.ELEMENT_NODE&&"tt"!=m.tagName;)p=du(m,c,n,p),n=p.start,p=p.end,m=m.parentNode;null==
821n&&(n=0);n+=b;p=null==p?Infinity:p+b;if("br"==a.tagName)return d=new pc(n,p,""),d.lineBreak=!0,d;var t="";m=[];if(Array.from(a.childNodes).every(function(y){return y.nodeType==Node.TEXT_NODE}))t=a.textContent,h&&(t=t.trim(),t=t.replace(/\s+/g," "));else for(var v=r(a.childNodes),w=v.next();!w.done;w=v.next())(w=bu(w.value,b,c,d,e,f,g,h,!0,l))&&m.push(w);b=new pc(n,p,t);b.nestedCues=m;l&&(b.cellResolution=l);if((f=eu(a,"region",f,"")[0])&&f.getAttribute("xml:id")){var x=f.getAttribute("xml:id");b.region=
822g.filter(function(y){return y.id==x})[0]}g=null;l=r(fu);for(c=l.next();!c.done&&!(g=eu(a,"backgroundImage",d,"#",c.value)[0]);c=l.next());gu(b,a,f,g,e,k,0==m.length);return b}
823function gu(a,b,c,d,e,f,g){f=f||g;"rtl"==hu(b,c,e,"direction",f)&&(a.direction="rtl");g=hu(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=qc);(g=hu(b,c,e,"textAlign",f))?(a.positionAlign=iu[g],a.lineAlign=ju[g],a.textAlign=Cc[g.toUpperCase()]):a.textAlign="start";if(g=hu(b,c,e,"displayAlign",f))a.displayAlign=Dc[g.toUpperCase()];if(g=hu(b,c,e,"color",f))a.color=g;if(g=hu(b,c,e,"backgroundColor",
824f))a.backgroundColor=g;if(g=hu(b,c,e,"border",f))a.border=g;if(g=hu(b,c,e,"fontFamily",f))a.fontFamily=g;
824(g=hu(b,c,e,"fontWeight",f))&&"bold"==g&&(a.fontWeight=700);g=hu(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=hu(b,c,e,"lineHeight",f))&&g.match(ku)&&(a.lineHeight=g);(g=hu(b,c,e,"fontSize",f))&&(g.match(ku)||g.match(lu))&&(a.fontSize=g);if(g=hu(b,c,e,"fontStyle",f))a.fontStyle=Hc[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");
825d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}(d=hu(b,c,e,"letterSpacing",f))&&d.match(ku)&&(a.letterSpacing=d);(d=hu(b,c,e,"linePadding",f))&&d.match(ku)&&(a.linePadding=d);if(f=hu(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=au(c,e,"textDecoration"))&&mu(a,c);(b=nu(b,e,"textDecoration"))&&mu(a,b)}
826function mu(a,b){for(var c=r(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&mc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&mc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
827a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&mc(a.textDecoration,"overline")}}function hu(a,b,c,d,e){e=void 0===e?!0:e;return(a=nu(a,c,d))?a:e?au(b,c,d):null}function au(a,b,c){if(!a)return null;var d=In(a,"http://www.w3.org/ns/ttml#styling",c);return d?d:ou(a,b,c)}function nu(a,b,c){var d=In(a,"http://www.w3.org/ns/ttml#styling",c);return d?d:ou(a,b,c)}
828function ou(a,b,c){a=eu(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=In(a[e],"urn:ebu:tt:style",c);f||(f=In(a[e],"http://www.w3.org/ns/ttml#styling",c));f||(f=nu(a[e],b,c));f&&(d=f)}return d}
829function eu(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?In(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 du(a,b,c,d){a=cu(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}}
830function cu(a,b){var c=pu(a.getAttribute("begin"),b),d=pu(a.getAttribute("end"),b),e=pu(a.getAttribute("dur"),b);null==d&&null!=e&&(d=c+e);return{start:c,end:d}}
831function pu(a,b){var c=null;if(qu.test(a)){c=qu.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else if(ru.test(a))c=su(ru,a);else if(tu.test(a))c=su(tu,a);else if(uu.test(a))c=uu.exec(a),c=Number(c[1])/b.frameRate;else if(vu.test(a))c=vu.exec(a),c=Number(c[1])/b.g;else if(wu.test(a))c=su(wu,a);else if(a)throw new N(2,2,2001,"Could not parse cue time range in TTML");return c}
832function su(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}I("shaka.text.TtmlTextParser",Xt);Xt.prototype.parseMedia=Xt.prototype.parseMedia;Xt.prototype.parseInit=Xt.prototype.parseInit;function Yt(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]))}
833var Zt=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,lu=/^(\d{1,2}(?:\.\d+)?|100)%$/,ku=/^(\d+px|\d+em|\d*\.?\d+c)$/,$t=/^(\d+)px (\d+)px$/,qu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,ru=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,tu=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,uu=/^(\d*(?:\.\d*)?)f$/,vu=/^(\d*(?:\.\d*)?)t$/,wu=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,ju={left:xc,center:"center",right:"end",start:xc,end:"end"},iu=
834{left:"line-left",center:"center",right:"line-right"},fu=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];ud["application/ttml+xml"]=function(){return new Xt};function xu(){this.A=new Xt}xu.prototype.parseInit=function(a){var b=!1;(new sg).box("moov",wg).box("trak",wg).box("mdia",wg).box("minf",wg).box("stbl",wg).Z("stsd",yg).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new N(2,2,2007);};xu.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new sg).box("mdat",zg(function(f){d=!0;e=e.concat(c.A.parseMedia(f,b))})).parse(a,!1);if(!d)throw new N(2,2,2007);return e};I("shaka.text.Mp4TtmlParser",xu);xu.prototype.parseMedia=xu.prototype.parseMedia;
835xu.prototype.parseInit=xu.prototype.parseInit;ud['application/mp4; codecs="stpp"']=function(){return new xu};ud['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new xu};ud['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new xu};function yu(){}yu.prototype.parseInit=function(){};
836yu.prototype.parseMedia=function(a,b){var c=Xc(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);
836if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new N(2,2,2E3);c=b.periodStart;if(d[0].includes("X-TIMESTAMP-MAP")){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=zu(new Yp(e[1]));if(null==c)throw new N(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-c}}f=
837[];e=r(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new Yp(g);var h=new rc;aq(g);Zp(g);for(var k=aq(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
838(l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");Zp(g);k=aq(g)}f.push(h)}e=new Map;Au(e);g=[];d=r(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]&&h[1].includes("::cue")){l="global";(k=h[1].match(/\((.*)\)/))&&(l=k.pop());k=h.slice(2,-1);h[1].includes("}")&&(m=/\{(.*?)\}/.exec(h[1]))&&(k=m[1].split(";"));m=new pc(0,0,"");for(var n=!1,p=0;p<k.length;p++){var t=
839/^\s*([^:]+):\s*(.*)/.exec(k[p]);if(t){var v=t[2].trim().replace(";","");switch(t[1].trim()){case "background-color":n=!0;m.backgroundColor=v;break;case "color":n=!0;m.color=v;break;case "font-family":n=!0;m.fontFamily=v;break;case "font-size":n=!0;m.fontSize=v;break;case "font-weight":700<=parseInt(v,10)&&(n=!0,m.fontWeight=700);break;case "font-style":switch(v){case "normal":n=!0;m.fontStyle=Ac;break;case "italic":n=!0;m.fontStyle="italic";break;case "oblique":n=!0,m.fontStyle="oblique"}break;case "opacity":n=
840!0;m.opacity=parseFloat(v);break;case "white-space":n=!0,m.wrapLine="noWrap"!=v}}}n&&e.set(l,m)}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));k=new Yp(h[0]);m=zu(k);t=$p(k,/[ \t]+--\x3e[ \t]+/g);n=zu(k);if(null==m||null==t||null==n)throw new N(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=h.slice(1).join("\n").trim();e.has("global")?(h=e.get("global").clone(),h.startTime=m,h.endTime=n,h.payload=
841""):h=new pc(m,n,"");Bu(p,h,e);Zp(k);for(m=aq(k);m;)Cu(h,m,f),Zp(k),m=aq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};function Au(a){for(var b=r(Object.entries(Fc)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new pc(0,0,"");e.color=d;a.set(c,e)}b=r(Object.entries(Gc));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new pc(0,0,""),e.backgroundColor=d,a.set(c,e)}
842function Bu(a,b,c){0===c.size&&Au(c);a:{var d=a;a=[];for(var e=-1,f="",g=0;g<d.length;g++)if("/"===d[g]){var h=d.indexOf(">",g);if(h<=g){a=d;break a}h=d.substring(g+1,h);var k=a.pop();if(k===h)f+="/"+h+">";else{if(!k.startsWith("c.")||"c"!==h){a=d;break a}f+="/"+k+">"}g+=h.length+1}else"<"===d[g]?e=g+1:">"===d[g]&&0<e&&(a.push(d.substr(e,g-e)),e=-1),f+=d[g];a=f}if(e=Un("<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=
843a;return}a=r(e);for(e=a.next();!e.done;e=a.next())Du(e.value,b,d,c);b.nestedCues=d}else b.payload=a}function Eu(a,b){return a&&0<a.length?a:b}
844function Du(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(a.nodeName.split(/[ .]+/)),g=f.next();!g.done;g=f.next()){g=g.value;if(d.has(g)){var h=d.get(g);h&&(e.backgroundColor=Eu(h.backgroundColor,e.backgroundColor),e.color=Eu(h.color,e.color),e.fontFamily=Eu(h.fontFamily,e.fontFamily),e.fontSize=Eu(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine)}switch(g){case "b":e.fontWeight=700;break;case "i":e.fontStyle=
845"italic";break;case "u":e.textDecoration.push("underline")}}if(Kn(a))for(f=!0,d=r(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=r(a.childNodes),a=b.next();!a.done;a=b.next())Du(a.value,e,c,d)}
846function Cu(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=uc:a.textAlign=Cc[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"==
847b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Fu(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=Ec[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=wc,a.line=Number(c[1]),c[2]&&(a.lineAlign=Ec[c[2].toUpperCase()])}function Fu(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
848function zu(a){a=$p(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.VttTextParser",yu);yu.prototype.parseMedia=yu.prototype.parseMedia;yu.prototype.parseInit=yu.prototype.parseInit;ud["text/vtt"]=function(){return new yu};ud['text/vtt; codecs="vtt"']=function(){return new yu};ud['text/vtt; codecs="wvtt"']=function(){return new yu};function Gu(){this.g=null}Gu.prototype.parseInit=function(a){var b=this,c=!1;(new sg).box("moov",wg).box("trak",wg).box("mdia",wg).Z("mdhd",function(d){d=Nh(d.reader,d.version);b.g=d.timescale}).box("minf",wg).box("stbl",wg).Z("stsd",yg).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new N(2,2,2008);if(!c)throw new N(2,2,2008);};
849Gu.prototype.parseMedia=function(a,b){if(!this.g)throw new N(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new sg).box("moof",wg).box("traf",wg).Z("tfdt",function(B){g=!0;c=Mh(B.reader,B.version).Od}).Z("tfhd",function(B){l=Lh(B.reader,B.flags).Pe}).Z("trun",function(B){h=!0;d=Oh(B.reader,B.version,B.flags).mf}).box("mdat",zg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new N(2,2,2008);for(var m=c,n=new pg(e,0),p=r(d),t=p.next();!t.done;t=p.next()){t=t.value;var v=t.me||l,w=t.rd?
850c+t.rd:m;m=w+(v||0);var x=0;do{var y=n.P();x+=y;var C=n.P(),D=null;"vttc"==Ag(C)?8<y&&(D=n.xb(y-8)):n.skip(y-8);v&&D&&(y=Hu(D,b.periodStart+w/this.g,b.periodStart+m/this.g),f.push(y))}while(t.sampleSize&&x<t.sampleSize)}return f.filter(Kb)};function Hu(a,b,c){var d,e,f;(new sg).box("payl",zg(function(g){d=Xc(g)})).box("iden",zg(function(g){e=Xc(g)})).box("sttg",zg(function(g){f=Xc(g)})).parse(a);return d?Iu(d,e,f,b,c):null}
851function Iu(a,b,c,d,e){d=new pc(d,e,"");Bu(a,d,new Map);b&&(d.id=b);if(c)for(a=new Yp(c),b=aq(a);b;)Cu(d,b,[]),Zp(a),b=aq(a);return d}I("shaka.text.Mp4VttParser",Gu);Gu.prototype.parseMedia=Gu.prototype.parseMedia;Gu.prototype.parseInit=Gu.prototype.parseInit;ud['application/mp4; codecs="wvtt"']=function(){return new Gu};function Ju(){}Ju.prototype.parseInit=function(){};Ju.prototype.parseMedia=function(a){var b=Xc(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 Yp(c[0]),e=Ku(d),f=$p(d,/,/g);d=Ku(d);if(null==e||null==f||null==d)throw new N(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new pc(e,d,c.slice(1).join("\n").trim()))}return a};
852function Ku(a){a=$p(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",Ju);Ju.prototype.parseMedia=Ju.prototype.parseMedia;Ju.prototype.parseInit=Ju.prototype.parseInit;ud["text/x-subviewer"]=function(){return new Ju};function Lu(){this.A=new yu}Lu.prototype.parseInit=function(){};Lu.prototype.parseMedia=function(a,b){var c=Xc(a);c=Mu(c);c=Nc(ad(c));return this.A.parseMedia(c,b)};function Mu(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",Lu);Lu.srt2webvtt=Mu;Lu.prototype.parseMedia=Lu.prototype.parseMedia;
853Lu.prototype.parseInit=Lu.prototype.parseInit;ud["text/srt"]=function(){return new Lu};function Nu(){}Nu.prototype.parseInit=function(){};
854Nu.prototype.parseMedia=function(a){var b="",c="";a=Xc(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=Ou.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;
854b=r(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Pu.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Qu);else if("Style"==e){e=f.split(Qu);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
855[];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={Ld:e.Ld},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Pu.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Qu);else if("Dialogue"==f){g=g.split(Qu);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Ru(f.Start);var k=Ru(f.End);g=new pc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Ld=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Ld}}(e)))&&Su(g,f);d.push(g)}return d};
856function Su(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=Tu(c))a.color=c;if(c=b.BackColour)if(c=Tu(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=yc;a.textAlign="start";break;case 2:a.displayAlign=yc;a.textAlign=uc;break;case 3:a.displayAlign=yc;a.textAlign="end";
857break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=uc;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=uc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(c=b.AlphaLevel)a.opacity=parseFloat(c)}
858function Tu(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 Ru(a){a=Uu.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}I("shaka.text.SsaTextParser",Nu);Nu.prototype.parseMedia=Nu.prototype.parseMedia;Nu.prototype.parseInit=Nu.prototype.parseInit;var Ou=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Pu=/^\s*([^:]+):\s*(.*)/,Qu=/\s*,\s*/,Uu=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;
859ud["text/x-ssa"]=function(){return new Nu};/*
860 @license
861 EME Encryption Scheme Polyfill
862 Copyright 2019 Google LLC
863 SPDX-License-Identifier: Apache-2.0
864*/
865function Vu(){}var Wu;function Xu(){Wu?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Wu=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Yu):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
866function Yu(a,b){var c=this,d;return H(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,Wu.call(c,a,b),2);d=e.h;if(Zu(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Wu,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=$u;return e["return"]($u.call(c,
867a,b))})}
868function $u(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return H(function(t){if(1==t.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=av(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=bv(h.videoCapabilities,d),l=bv(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
869n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(t,Wu.call(c,a,e),2)}p=t.h;return t["return"](new cv(p,d))})}function bv(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}I("EmeEncryptionSchemePolyfill",Vu);Vu.install=Xu;function dv(){}var ev;
870function fv(){ev?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(ev=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=gv):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
871function gv(a){var b=this,c,d;return H(function(e){if(1==e.g)return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(e,ev.call(b,a),2);c=e.h;if(!a.keySystemConfiguration)return e["return"](c);if((d=c.keySystemAccess)&&Zu(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=ev,e["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
872navigator.mediaCapabilities.decodingInfo=hv;return e["return"](hv.call(b,a))})}
873function hv(a){var b=this,c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=av(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?n["return"](h):u(n,ev.call(b,a),2);case 2:k=n.h;if(k.keySystemAccess){k.keySystemAccess=
874new cv(k.keySystemAccess,c);n.C(3);break}if(!a.keySystemConfiguration){n.C(3);break}var p=a.keySystemConfiguration,t=[],v=[];p.audio&&t.push({robustness:p.audio.robustness||"",contentType:a.audio.contentType});p.video&&v.push({robustness:p.video.robustness||"",contentType:a.video.contentType});p={initDataTypes:p.initDataType?[p.initDataType]:[],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes};t.length&&(p.audioCapabilities=t);v.length&&(p.videoCapabilities=
875v);l=p;m=k;return u(n,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[l]),5);case 5:m.keySystemAccess=n.h;case 3:return n["return"](k)}})}I("McEncryptionSchemePolyfill",dv);dv.install=fv;function cv(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
876cv.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};cv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
877function av(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Zu(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}function iv(){}
878function Ss(){Xu();fv()}I("EncryptionSchemePolyfills",iv);iv.install=Ss;"undefined"!==typeof module&&module.exports&&(module.exports=iv);/*
879 @license
880 Copyright 2013 Ali Al Dallal
881
882 Licensed under the MIT license.
883
884 Permission is hereby granted, free of charge, to any person obtaining a copy
885 of this software and associated documentation files (the "Software"), to deal
886 in the Software without restriction, including without limitation the rights
887 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
888 copies of the Software, and to permit persons to whom the Software is
889 furnished to do so, subject to the following conditions:
890
891 The above copyright notice and this permission notice shall be included in
892 all copies or substantial portions of the Software.
893
894 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
895 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
896 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
897 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
898 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
899 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
900 SOFTWARE.
901*/
902for(var jv={ach:{u:"Lwo",v:"Acholi"},ady:{u:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",v:"Adyghe"},af:{u:"Afrikaans",v:"Afrikaans"},"af-NA":{u:"Afrikaans (Namibia)",v:"Afrikaans (Namibia)"},"af-ZA":{u:"Afrikaans (South Africa)",v:"Afrikaans (South Africa)"},ak:{u:"T\u0255\u0265i",v:"Akan"},ar:{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",v:"Arabic"},"ar-AR":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",v:"Arabic"},"ar-MA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",v:"Arabic (Morocco)"},
903"ar-SA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",v:"Arabic (Saudi Arabia)"},"ay-BO":{u:"Aymar aru",v:"Aymara"},az:{u:"Az\u0259rbaycan dili",v:"Azerbaijani"},"az-AZ":{u:"Az\u0259rbaycan dili",v:"Azerbaijani"},"be-BY":{u:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",v:"Belarusian"},bg:{u:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",v:"Bulgarian"},"bg-BG":{u:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
904v:"Bulgarian"},bn:{u:"\u09ac\u09be\u0982\u09b2\u09be",v:"Bengali"},"bn-IN":{u:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",v:"Bengali (India)"},"bn-BD":{u:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",v:"Bengali (Bangladesh)"},"bs-BA":{u:"Bosanski",v:"Bosnian"},ca:{u:"Catal\u00e0",v:"Catalan"},"ca-ES":{u:"Catal\u00e0",v:"Catalan"},cak:{u:"Maya Kaqchikel",v:"Kaqchikel"},"ck-US":{u:"\u13e3\u13b3\u13a9 (tsalagi)",v:"Cherokee"},cs:{u:"\u010ce\u0161tina",
905v:"Czech"},"cs-CZ":{u:"\u010ce\u0161tina",v:"Czech"},cy:{u:"Cymraeg",v:"Welsh"},"cy-GB":{u:"Cymraeg",v:"Welsh"},da:{u:"Dansk",v:"Danish"},"da-DK":{u:"Dansk",v:"Danish"},de:{u:"Deutsch",v:"German"},"de-AT":{u:"Deutsch (\u00d6sterreich)",v:"German (Austria)"},"de-DE":{u:"Deutsch (Deutschland)",v:"German (Germany)"},"de-CH":{u:"Deutsch (Schweiz)",v:"German (Switzerland)"},dsb:{u:"Dolnoserb\u0161\u0107ina",v:"Lower Sorbian"},el:{u:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",v:"Greek"},"el-GR":{u:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
906v:"Greek (Greece)"},en:{u:"English",v:"English"},"en-GB":{u:"English (UK)",v:"English (UK)"},"en-AU":{u:"English (Australia)",v:"English (Australia)"}
906,"en-CA":{u:"English (Canada)",v:"English (Canada)"},"en-IE":{u:"English (Ireland)",v:"English (Ireland)"},"en-IN":{u:"English (India)",v:"English (India)"},"en-PI":{u:"English (Pirate)",v:"English (Pirate)"},"en-UD":{u:"English (Upside Down)",v:"English (Upside Down)"},"en-US":{u:"English (US)",v:"English (US)"},"en-ZA":{u:"English (South Africa)",
907v:"English (South Africa)"},"en@pirate":{u:"English (Pirate)",v:"English (Pirate)"},eo:{u:"Esperanto",v:"Esperanto"},"eo-EO":{u:"Esperanto",v:"Esperanto"},es:{u:"Espa\u00f1ol",v:"Spanish"},"es-AR":{u:"Espa\u00f1ol (Argentine)",v:"Spanish (Argentina)"},"es-419":{u:"Espa\u00f1ol (Latinoam\u00e9rica)",v:"Spanish (Latin America)"},"es-CL":{u:"Espa\u00f1ol (Chile)",v:"Spanish (Chile)"},"es-CO":{u:"Espa\u00f1ol (Colombia)",v:"Spanish (Colombia)"},"es-EC":{u:"Espa\u00f1ol (Ecuador)",v:"Spanish (Ecuador)"},
908"es-ES":{u:"Espa\u00f1ol (Espa\u00f1a)",v:"Spanish (Spain)"},"es-LA":{u:"Espa\u00f1ol (Latinoam\u00e9rica)",v:"Spanish (Latin America)"},"es-NI":{u:"Espa\u00f1ol (Nicaragua)",v:"Spanish (Nicaragua)"},"es-MX":{u:"Espa\u00f1ol (M\u00e9xico)",v:"Spanish (Mexico)"},"es-US":{u:"Espa\u00f1ol (Estados Unidos)",v:"Spanish (United States)"},"es-VE":{u:"Espa\u00f1ol (Venezuela)",v:"Spanish (Venezuela)"},et:{u:"eesti keel",v:"Estonian"},"et-EE":{u:"Eesti (Estonia)",v:"Estonian (Estonia)"},eu:{u:"Euskara",v:"Basque"},
909"eu-ES":{u:"Euskara",v:"Basque"},fa:{u:"\u0641\u0627\u0631\u0633\u06cc",v:"Persian"},"fa-IR":{u:"\u0641\u0627\u0631\u0633\u06cc",v:"Persian"},"fb-LT":{u:"Leet Speak",v:"Leet"},ff:{u:"Fulah",v:"Fulah"},fi:{u:"Suomi",v:"Finnish"},"fi-FI":{u:"Suomi",v:"Finnish"},"fo-FO":{u:"F\u00f8royskt",v:"Faroese"},fr:{u:"Fran\u00e7ais",v:"French"},"fr-CA":{u:"Fran\u00e7ais (Canada)",v:"French (Canada)"},"fr-FR":{u:"Fran\u00e7ais (France)",v:"French (France)"},"fr-BE":{u:"Fran\u00e7ais (Belgique)",v:"French (Belgium)"},
910"fr-CH":{u:"Fran\u00e7ais (Suisse)",v:"French (Switzerland)"},"fy-NL":{u:"Frysk",v:"Frisian (West)"},ga:{u:"Gaeilge",v:"Irish"},"ga-IE":{u:"Gaeilge (Gaelic)",v:"Irish (Gaelic)"},gl:{u:"Galego",v:"Galician"},"gl-ES":{u:"Galego",v:"Galician"},"gn-PY":{u:"Ava\u00f1e'\u1ebd",v:"Guarani"},"gu-IN":{u:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",v:"Gujarati"},"gx-GR":{u:"\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae \u1f00\u03c1\u03c7\u03b1\u03af\u03b1",v:"Classical Greek"},he:{u:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",
911v:"Hebrew"},"he-IL":{u:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",v:"Hebrew"},hi:{u:"\u0939\u093f\u0928\u094d\u0926\u0940",v:"Hindi"},"hi-IN":{u:"\u0939\u093f\u0928\u094d\u0926\u0940",v:"Hindi"},hr:{u:"Hrvatski",v:"Croatian"},"hr-HR":{u:"Hrvatski",v:"Croatian"},hsb:{u:"Hornjoserb\u0161\u0107ina",v:"Upper Sorbian"},ht:{u:"Krey\u00f2l",v:"Haitian Creole"},hu:{u:"Magyar",v:"Hungarian"},"hu-HU":{u:"Magyar",v:"Hungarian"},"hy-AM":{u:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",v:"Armenian"},id:{u:"Bahasa Indonesia",
912v:"Indonesian"},"id-ID":{u:"Bahasa Indonesia",v:"Indonesian"},is:{u:"\u00cdslenska",v:"Icelandic"},"is-IS":{u:"\u00cdslenska (Iceland)",v:"Icelandic (Iceland)"},it:{u:"Italiano",v:"Italian"},"it-IT":{u:"Italiano",v:"Italian"},ja:{u:"\u65e5\u672c\u8a9e",v:"Japanese"},"ja-JP":{u:"\u65e5\u672c\u8a9e",v:"Japanese"},"jv-ID":{u:"Basa Jawa",v:"Javanese"},"ka-GE":{u:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",v:"Georgian"},"kk-KZ":{u:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430",v:"Kazakh"},km:{u:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",
913v:"Khmer"},"km-KH":{u:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",v:"Khmer"},kab:{u:"Taqbaylit",v:"Kabyle"},kn:{u:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",v:"Kannada"},"kn-IN":{u:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1 (India)",v:"Kannada (India)"},ko:{u:"\ud55c\uad6d\uc5b4",v:"Korean"},"ko-KR":{u:"\ud55c\uad6d\uc5b4 (\u97e9\u56fd)",v:"Korean (Korea)"},ku:{u:"Kurd\u00ee",v:"Kurdish"},"ku-TR":{u:"Kurd\u00ee",v:"Kurdish"},la:{u:"Latin",v:"Latin"},"la-VA":{u:"Latin",v:"Latin"},lb:{u:"L\u00ebtzebuergesch",
914v:"Luxembourgish"},"li-NL":{u:"L\u00e8mb\u00f6rgs",v:"Limburgish"},lt:{u:"Lietuvi\u0173",v:"Lithuanian"},"lt-LT":{u:"Lietuvi\u0173",v:"Lithuanian"},lv:{u:"Latvie\u0161u",v:"Latvian"},"lv-LV":{u:"Latvie\u0161u",v:"Latvian"},mai:{u:"\u092e\u0948\u0925\u093f\u0932\u0940, \u09ae\u09c8\u09a5\u09bf\u09b2\u09c0",v:"Maithili"},"mg-MG":{u:"Malagasy",v:"Malagasy"},mk:{u:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438",v:"Macedonian"},"mk-MK":{u:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438)",
915v:"Macedonian (Macedonian)"},ml:{u:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",v:"Malayalam"},"ml-IN":{u:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",v:"Malayalam"},"mn-MN":{u:"\u041c\u043e\u043d\u0433\u043e\u043b",v:"Mongolian"},mr:{u:"\u092e\u0930\u093e\u0920\u0940",v:"Marathi"},"mr-IN":{u:"\u092e\u0930\u093e\u0920\u0940",v:"Marathi"},ms:{u:"Bahasa Melayu",v:"Malay"},"ms-MY":{u:"Bahasa Melayu",v:"Malay"},mt:{u:"Malti",v:"Maltese"},"mt-MT":{u:"Malti",v:"Maltese"},my:{u:"\u1017\u1019\u102c\u1005\u1000\u102c",
916v:"Burmese"},nb:{u:"Norsk (bokm\u00e5l)",v:"Norwegian (bokmal)"},"nb-NO":{u:"Norsk (bokm\u00e5l)",v:"Norwegian (bokmal)"},ne:{u:"\u0928\u0947\u092a\u093e\u0932\u0940",v:"Nepali"}
916,"ne-NP":{u:"\u0928\u0947\u092a\u093e\u0932\u0940",v:"Nepali"},nl:{u:"Nederlands",v:"Dutch"},"nl-BE":{u:"Nederlands (Belgi\u00eb)",v:"Dutch (Belgium)"},"nl-NL":{u:"Nederlands (Nederland)",v:"Dutch (Netherlands)"},"nn-NO":{u:"Norsk (nynorsk)",v:"Norwegian (nynorsk)"},no:{u:"Norsk",v:"Norwegian"},oc:{u:"Occitan",v:"Occitan"},
917"or-IN":{u:"\u0b13\u0b21\u0b3c\u0b3f\u0b06",v:"Oriya"},pa:{u:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",v:"Punjabi"},"pa-IN":{u:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 (\u0a2d\u0a3e\u0a30\u0a24 \u0a28\u0a42\u0a70)",v:"Punjabi (India)"},pl:{u:"Polski",v:"Polish"},"pl-PL":{u:"Polski",v:"Polish"},"ps-AF":{u:"\u067e\u069a\u062a\u0648",v:"Pashto"},pt:{u:"Portugu\u00eas",v:"Portuguese"},"pt-BR":{u:"Portugu\u00eas (Brasil)",v:"Portuguese (Brazil)"},"pt-PT":{u:"Portugu\u00eas (Portugal)",v:"Portuguese (Portugal)"},
918"qu-PE":{u:"Qhichwa",v:"Quechua"},"rm-CH":{u:"Rumantsch",v:"Romansh"},ro:{u:"Rom\u00e2n\u0103",v:"Romanian"},"ro-RO":{u:"Rom\u00e2n\u0103",v:"Romanian"},ru:{u:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",v:"Russian"},"ru-RU":{u:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",v:"Russian"},"sa-IN":{u:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d",v:"Sanskrit"},"se-NO":{u:"Davvis\u00e1megiella",v:"Northern S\u00e1mi"},"si-LK":{u:"\u0db4\u0dc5\u0dcf\u0dad",v:"Sinhala (Sri Lanka)"},sk:{u:"Sloven\u010dina",
919v:"Slovak"},"sk-SK":{u:"Sloven\u010dina (Slovakia)",v:"Slovak (Slovakia)"},sl:{u:"Sloven\u0161\u010dina",v:"Slovenian"},"sl-SI":{u:"Sloven\u0161\u010dina",v:"Slovenian"},"so-SO":{u:"Soomaaliga",v:"Somali"},sq:{u:"Shqip",v:"Albanian"},"sq-AL":{u:"Shqip",v:"Albanian"},sr:{u:"\u0421\u0440\u043f\u0441\u043a\u0438",v:"Serbian"},"sr-RS":{u:"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",v:"Serbian (Serbia)"},su:{u:"Basa Sunda",v:"Sundanese"},sv:{u:"Svenska",v:"Swedish"},"sv-SE":{u:"Svenska",v:"Swedish"},
920sw:{u:"Kiswahili",v:"Swahili"},"sw-KE":{u:"Kiswahili",v:"Swahili (Kenya)"},ta:{u:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",v:"Tamil"},"ta-IN":{u:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",v:"Tamil"},te:{u:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",v:"Telugu"},"te-IN":{u:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",v:"Telugu"},tg:{u:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",v:"Tajik"},"tg-TJ":{u:"\u0442\u043e\u04b7\u0438\u043a\u04e3",v:"Tajik"},th:{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
921v:"Thai"},"th-TH":{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",v:"Thai (Thailand)"},tl:{u:"Filipino",v:"Filipino"},"tl-PH":{u:"Filipino",v:"Filipino"},tlh:{u:"tlhIngan-Hol",v:"Klingon"},tr:{u:"T\u00fcrk\u00e7e",v:"Turkish"},"tr-TR":{u:"T\u00fcrk\u00e7e",v:"Turkish"},"tt-RU":{u:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",v:"Tatar"},uk:{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",v:"Ukrainian"},"uk-UA":{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
922v:"Ukrainian"},ur:{u:"\u0627\u0631\u062f\u0648",v:"Urdu"},"ur-PK":{u:"\u0627\u0631\u062f\u0648",v:"Urdu"},uz:{u:"O'zbek",v:"Uzbek"},"uz-UZ":{u:"O'zbek",v:"Uzbek"},vi:{u:"Ti\u1ebfng Vi\u1ec7t",v:"Vietnamese"},"vi-VN":{u:"Ti\u1ebfng Vi\u1ec7t",v:"Vietnamese"},"xh-ZA":{u:"isiXhosa",v:"Xhosa"},yi:{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",v:"Yiddish"},"yi-DE":{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",v:"Yiddish (German)"},zh:{u:"\u4e2d\u6587",v:"Chinese"},"zh-HANS":{u:"\u4e2d\u6587\u7b80\u4f53",
923v:"Chinese Simplified"},"zh-HANT":{u:"\u4e2d\u6587\u7e41\u9ad4",v:"Chinese Traditional"},"zh-CN":{u:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",v:"Chinese Simplified (China)"},"zh-HK":{u:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",v:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",v:"Chinese Simplified (Singapore)"},"zh-TW":{u:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",v:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",v:"Zulu"}},kv=r(Object.keys(jv)),lv=kv.next();!lv.done;lv=
924kv.next()){var mv=lv.value;jv[mv.toLowerCase()]=jv[mv]};function nv(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new mf;this.localization=this.controls.Xa;this.player=this.controls.bc();this.video=this.controls.wb();this.adManager=this.player.cd();this.ad=b.getAd();this.eventManager.m(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.m(this.adManager,"ad-stopped",function(){c.ad=null})}
925nv.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",nv);nv.prototype.release=nv.prototype.release;function ov(a){return pv(a,"shaka-back-to-overflow-button")}function pv(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function qv(a){a&&(a=pv(a,"shaka-chosen-item"))&&a.parentElement.focus()}function rv(){var a=S("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function W(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
926function sv(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function tv(a,b){nv.call(this,a,b);var c=this;this.i=S("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=S("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Q(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=sv(e-d,!1)+" / "+sv(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=
927""))});this.eventManager.m(this.localization,"locale-updated",function(){});this.eventManager.m(this.localization,"locale-changed",function(){});this.eventManager.m(this.adManager,"ad-started",function(){c.g.Ca();c.g.ma(.5)});this.eventManager.m(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ca(),this.g.ma(.5))}ra(tv,nv);tv.prototype.release=function(){this.g.stop();this.g=null;nv.prototype.release.call(this)};I("shaka.ui.AdCounter",tv);function uv(a,b){nv.call(this,a,b);var c=this;this.g=S("div");this.g.classList.add("shaka-ad-position");W(this.g,!1);this.parent.appendChild(this.g);this.h=S("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.m(this.localization,"locale-updated",function(){c.ad&&vv(c)});this.eventManager.m(this.localization,"locale-changed",function(){c.ad&&vv(c)});this.eventManager.m(this.adManager,"ad-started",function(){vv(c)});this.eventManager.m(this.adManager,
928"ad-stopped",function(){c.h.textContent="";W(c.g,!1)});this.ad&&vv(this)}ra(uv,nv);function vv(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));W(a.g,!0)}}I("shaka.ui.AdPosition",uv);function wv(a,b){nv.call(this,a,b);var c=this;this.button=Tj();this.parent.appendChild(this.button);this.eventManager.m(this.localization,"locale-updated",function(){c.g()});this.eventManager.m(this.localization,"locale-changed",function(){c.g()});this.eventManager.m(this.video,"play",function(){c.g();c.h()});this.eventManager.m(this.video,"pause",function(){c.g();c.h()});this.eventManager.m(this.video,"seeking",function(){c.g();c.h()});this.eventManager.m(this.adManager,"ad-paused",function(){c.g();
929c.h()});this.eventManager.m(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.m(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.m(this.button,"click",function(){c.ad?xv(c.controls):yv(c.controls)});this.ad&&(this.g(),this.h())}ra(wv,nv);wv.prototype.isPaused=function(){if(this.ad)var a=this.ad.isPaused();else a=this.controls,a=a.g.paused&&!a.ba;return a};wv.prototype.g=function(){};wv.prototype.h=function(){};I("shaka.ui.PlayButton",wv);function zv(a,b){wv.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}ra(zv,wv);zv.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};zv.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};I("shaka.ui.BigPlayButton",zv);function Av(a,b,c,d){nv.call(this,a,b);var e=this;this.container=S("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 Q(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);
930this.parent.appendChild(this.container);this.eventManager.m(this.bar,"mousedown",function(){e.controls.Kb()&&(e.g=!0,e.onChangeStart())});this.eventManager.m(this.bar,"touchstart",function(f){e.controls.Kb()&&(e.g=!0,Bv(e,f),e.onChangeStart())});this.eventManager.m(this.bar,"input",function(){e.onChange()});this.eventManager.m(this.bar,"touchmove",function(f){e.g&&(Bv(e,f),e.onChange())});this.eventManager.m(this.bar,"touchend",function(f){e.g&&(e.g=!1,Bv(e,f),e.onChangeEnd())});this.eventManager.m(this.bar,
931"mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}ra(Av,nv);q=Av.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);nv.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.g||(this.g=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.l.S(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
932q.setValue=function(a){this.g||(this.bar.value=a)};function Bv(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}I("shaka.ui.RangeElement",Av);Av.prototype.setValue=Av.prototype.setValue;Av.prototype.getValue=Av.prototype.getValue;Av.prototype.changeTo=Av.prototype.changeTo;Av.prototype.onChangeEnd=Av.prototype.onChangeEnd;Av.prototype.onChange=Av.prototype.onChange;
933Av.prototype.onChangeStart=Av.prototype.onChangeStart;Av.prototype.setRange=Av.prototype.setRange;function Cv(a,b){Av.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=S("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.s=this.controls.s;this.h=new Q(function(){c.video.currentTime=c.getValue()});this.o=new Q(function(){Dv(c)});this.A=!1;this.i=[];this.eventManager.m(this.localization,"locale-updated",function(){return Ev(c)});this.eventManager.m(this.localization,
934"locale-changed",function(){return Ev(c)});this.eventManager.m(this.adManager,"ad-started",function(){W(c.container,!1)});this.eventManager.m(this.adManager,"ad-stopped",function(){Fv(c)&&W(c.container,!0)});this.eventManager.m(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Gv(c)});this.eventManager.m(this.player,"unloading",function(){c.i=[];Gv(c)});this.setValue(this.video.currentTime);this.update();Ev(this);this.ad&&W(this.container,!1)}ra(Cv,Av);q=Cv.prototype;
935q.release=function(){this.h&&(this.h.stop(),this.h=null,this.o.stop(),this.o=null);Av.prototype.release.call(this)};q.onChangeStart=function(){this.A=!this.video.paused;this.controls.xe(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.S(.125))};q.onChangeEnd=function(){this.h.Ca();this.controls.xe(!1);this.A&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
936q.update=function(){var a=this.s.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.Ka(),g=f.end-f.start;this.setRange(f.start,f.end);Fv(this)?(W(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.s.showUnbufferedStart?
937a.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()+")")):W(this.container,!1)};
938function Dv(a){if(a.i.length){for(var b=a.player.Ka(),c=b.end-b.start,d=["to right"],e=[],f=a.s.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 "+
939100*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"}
939function Gv(a){Dv(a);var b=a.player.Ka();b=b.end-b.start;a.player.X()&&5<b&&a.o.ma(1)}function Fv(a){var b=a.player.Ka();b=b.end-b.start;return a.player.X()&&5>b?!1:null==a.ad}function Ev(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}I("shaka.ui.SeekBar",Cv);function Hv(){}Hv.prototype.create=function(a,b){return new Cv(a,b)};
940Cv.Factory=Hv;function Y(a,b,c,d){cb.call(this);var e=this;this.V=!0;this.s=d;this.A=new Vm(c,a,this.s.castReceiverAppId);this.tb=!0;this.g=this.A.wb();this.B=c;this.D=this.A.bc();this.Ia=a;this.j=b;this.sb=this.D.cd();this.l=this.o=null;this.ba=!1;this.H=[];this.Yb=[];this.Bb=!1;this.ea=new Q(function(){e.j.style.cursor="none";e.Bb=!1;Iv(e)});this.ua=new Q(function(){e.i.removeAttribute("shown");e.I.S(2)});this.I=new Q(function(){for(var f=r(e.H),g=f.next();!g.done;g=f.next())W(g.value,!1)});this.eb=new Q(function(){e.Kb()&&
941Jv(e)});this.K=null;this.R=[];this.Xa=Kv();this.h=new mf;this.configure(this.s);Lv(this);this.xa=new Set;Mv(this);this.eb.ma(.125);this.h.m(this.Xa,"locale-changed",function(f){e.sb.setLocale(f.locales[0])})}ra(Y,cb);q=Y.prototype;
942q.destroy=function(){var a=this;return H(function(b){switch(b.g){case 1:a.h&&(a.h.release(),a.h=null);a.ea&&(a.ea.stop(),a.ea=null);a.ua&&(a.ua.stop(),a.ua=null);a.I&&(a.I.stop(),a.I=null);a.eb&&(a.eb.stop(),a.eb=null);Nv(a);a.i&&(a.j.removeChild(a.i),a.i=null);if(!a.A){b.C(2);break}return u(b,a.A.destroy(),3);case 3:a.A=null;case 2:if(!a.Ia){b.C(4);break}return u(b,a.Ia.destroy(),5);case 5:a.Ia=null;case 4:a.D=null,a.B=null,a.g=null,a.Xa=null,a.xa.clear(),z(b)}})};
943function Nv(a){for(var b=r(a.R),c=b.next();!c.done;c=b.next())c.value.release();a.R=[]}function Ov(a,b){Pv.set(a,b)}q.Ef=function(a){this.tb=a;Mv(this)};q.yg=function(){Iv(this)};
944q.configure=function(a){this.s=a;this.A.Me(a.castReceiverAppId);this.l&&(this.l=null);this.Ab&&(this.Ab=null);this.i?(Uj(this.i),Nv(this)):(Qv(this),this.aa=S("div"),this.aa.classList.add("shaka-client-side-ad-container"),W(this.aa,!1),this.j.appendChild(this.aa));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");Rv(this);this.s.addBigPlayButton&&Sv(this);this.na||Tv(this);this.pb=S("div");this.pb.classList.add("shaka-server-side-ad-container");this.i.appendChild(this.pb);
945Uv(this);this.H=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.H.push.apply(this.H,ia(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));Vv(this);this.Yb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Iv(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.m(b,"click",c);this.h.m(b,"dblclick",c)}};
946q.se=function(a){(this.V=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Iv(this)};q.rf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.se(!1)};q.getAd=function(){return this.o};q.Qf=function(){return this.A};q.cg=function(){return this.Xa};q.rg=function(){return this.j};q.wb=function(){return this.g};q.ag=function(){return this.B};q.bc=function(){return this.D};q.$f=function(){return this.Ia};q.Vf=function(){return this.i};
947q.kg=function(){return this.pb};q.Sf=function(){return this.aa};q.Tf=function(){return this.s};q.xg=function(){return this.ba};q.xe=function(a){this.ba=a};q.vg=function(){return this.tb};q.Ue=function(){return this.l?this.l.getValue():this.g.currentTime};q.sf=function(a){this.K=a};q.Wc=function(){return this.H.some(function(a){return!a.classList.contains("shaka-hidden")})};q.Fc=function(){this.I.Ca()};
948q.Ce=function(){var a=this,b;return H(function(c){switch(c.g){case 1:if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),u(c,document.exitFullscreen(),0);A(c,4);if(!document.pictureInPictureElement){c.C(6);break}return u(c,document.exitPictureInPicture(),6);case 6:return u(c,a.j.requestFullscreen({navigationUI:"hide"}),8);case 8:if(!a.s.forceLandscapeOnFullscreen||!screen.orientation){c.C(9);break}A(c,10);return u(c,screen.orientation.lock("landscape"),12);case 12:wa(c,
9499,4);break;case 10:E(c,4);case 9:wa(c,0);break;case 4:b=E(c),a.dispatchEvent(new K("error",{detail:b})),c.C(0)}})};q.uf=function(){W(this.N,!0);W(this.aa,!0);this.i.setAttribute("ad-active","true")};q.Xe=function(){W(this.N,!1);W(this.aa,!1);this.i.removeAttribute("ad-active")};function yv(a){a.V&&a.g.duration&&(a.D.Je(),a.g.paused&&!a.ba?a.g.play():a.g.pause())}
949function xv(a){a.o&&a.o.isPaused()?a.o.play():a.o&&a.o.pause()}
950function Qv(a){a.i=S("div");a.i.classList.add("shaka-controls-container");a.j.appendChild(a.i);a.j.setAttribute("shaka-controls","true");a.h.m(a.i,"touchstart",function(b){a.g.duration&&(a.Kb()?a.K=Date.now():(Wv(a,b),b.preventDefault()))},{passive:!1});a.h.m(a.i,"click",function(){a.V&&(a.Wc()?a.I.Ca():a.o?xv(a):yv(a))});a.h.m(a.i,"dblclick",function(){a.s.doubleClickForFullscreen&&document.fullscreenEnabled&&a.Ce()})}
951function Sv(a){var b=S("div");b.classList.add("shaka-play-button-container");a.i.appendChild(b);a.Ab=new zv(b,a);a.R.push(a.Ab)}function Rv(a){var b=S("div");b.classList.add("shaka-scrim-container");a.i.appendChild(b)}function Xv(a){a.N=S("div");a.N.classList.add("shaka-ad-controls");W(a.N,null!=a.o);a.O.appendChild(a.N);var b=new uv(a.N,a);a.R.push(b);b=new tv(a.N,a);a.R.push(b)}
952function Tv(a){a.na=S("div");a.na.classList.add("shaka-spinner-container");a.j.appendChild(a.na);var b=S("div");b.classList.add("shaka-spinner");a.na.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");
953b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
954function Uv(a){a.O=S("div");a.O.classList.add("shaka-bottom-controls");a.O.classList.add("shaka-no-propagation");a.i.appendChild(a.O);a.h.m(a.O,"click",function(){a.Fc()});Xv(a);a.Ja=S("div");a.Ja.classList.add("shaka-controls-button-panel");a.Ja.classList.add("shaka-show-controls-on-mouse-over");a.O.appendChild(a.Ja);for(var b={},c=r(a.s.controlPanelElements),d=c.next();!d.done;b={nc:b.nc},d=c.next())d=d.value,Pv.get(d)?(d=Pv.get(d).create(a.Ja,a),"function"!=typeof d.release&&(Eb("shaka.extern.IUIElement",
955"Please update UI elements to have a release() method."),b.nc=d,b.nc.release=function(e){return function(){e.nc.destroy&&e.nc.destroy()}}(b)),a.R.push(d)):Ra("Unrecognized control panel element requested:",d)}function Vv(a){if(a.s.addSeekBar)a.l=Yv.create(a.O,a),a.R.push(a.l);else{a=r(a.H);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}
956function Lv(a){a.h.m(a.D,"buffering",function(){a.V&&W(a.na,a.D.Hc())});a.V&&W(a.na,a.D.Hc());a.h.m(window,"keydown",function(b){Zv(a,b)});a.h.m(window,"click",function(){return a.Fc()});a.h.m(a.g,"play",function(){Iv(a)});a.h.m(a.g,"pause",function(){Iv(a)});a.h.m(a.j,"mousemove",function(b){Wv(a,b)});a.h.m(a.j,"touchmove",function(b){Wv(a,b)},{passive:!0});a.h.m(a.j,"touchend",function(b){Wv(a,b)},{passive:!0});a.h.m(a.j,"mouseleave",function(){a.K||a.ea.Ca()});a.h.m(a.A,"caststatuschanged",function(){Mv(a)});
957a.h.m(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.i.contains(c)&&Wv(a,b);if(a.s.enableKeyboardPlaybackControls)switch(b.key){case "ArrowLeft":a.l&&!d&&(b.preventDefault(),$v(a,a.l.getValue()-5));break;case "ArrowRight":a.l&&!d&&(b.preventDefault(),$v(a,a.l.getValue()+5));break;case "Home":a.l&&$v(a,a.D.Ka().start);break;case "End":a.l&&$v(a,a.D.Ka().end);break;case " ":e&&
958(a.o?xv(a):yv(a))}});a.h.m(a.j,"keyup",function(b){a.xa["delete"](b.key)});a.h.m(a.sb,"ad-started",function(b){a.o=b.ad;a.uf()});a.h.m(a.sb,"ad-stopped",function(){a.o=null;a.Xe()});screen.orientation&&a.h.m(screen.orientation,"change",function(){return H(function(b){return u(b,aw(a),0)})});a.h.m(document,"fullscreenchange",function(){a.o&&a.o.resize(a.B.offsetWidth,a.B.offsetHeight)})}
959function aw(a){return H(function(b){return a.g&&0!=a.g.readyState&&!a.A.ra()&&a.s.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?u(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?u(b,document.exitFullscreen(),0):b.C(0):b["return"]()})}
960function Wv(a,b){"mousemove"==b.type&&(a.i.classList.remove("shaka-keyboard-navigation"),Iv(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"ke
960yup"==b.type?a.K=Date.now():a.K+1E3<Date.now()&&(a.K=null);a.K&&"mousemove"==b.type||(a.j.style.cursor="",a.Bb=!0,a.I.stop(),a.Kb()||(Jv(a),Iv(a)),a.ea.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.K||a.ea.S(3))}function bw(a){return window.matchMedia("hover: hover").matches?a.Yb.some(function(b){return b.matches(":hover")}):!1}
961function Iv(a){var b=a.o?a.o.isPaused():!1,c=a.g.paused&&!a.ba,d=a.i.classList.contains("shaka-keyboard-navigation");b||!a.o&&c||a.Bb||d||bw(a)?(Jv(a),a.i.setAttribute("shown","true"),a.ua.stop()):a.ua.S(a.s.fadeDelay)}function Mv(a){var b=a.A.ra();a.dispatchEvent(new K("caststatuschanged",{Cg:b}));b?a.i.setAttribute("casting","true"):a.i.removeAttribute("casting")}q.Kb=function(){return this.V?null!=this.i.getAttribute("shown")||null!=this.i.getAttribute("casting"):!1};
962function $v(a,b){a.l.changeTo(b);a.Kb()&&Jv(a)}function Jv(a){if(a.l)if(a.l.setValue(a.g.currentTime),a.l.update(),a.l.isShowing())for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=r(a.H),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new K("timeandseekrangeupdated"))}
963function Zv(a,b){a.xa.add(b.key);var c=a.Wc();"Tab"==b.key&&(a.i.classList.add("shaka-keyboard-navigation"),Iv(a),a.h.m(window,"mousedown",function(){a.h.Ra(window,"mousedown")}));"Escape"==b.key&&a.I.Ca();c&&a.xa.has("Tab")&&cw(a,b)}
964function cw(a,b){var c=a.H.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.xa.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
965function Kv(){var a=new cc("en");a.ha("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..."],
966["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"],
967["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"],
968["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"],
969["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"],
970["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.ha("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"],
971["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","Sc
971hleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],
972["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"]]));
973a.ha("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"],
974["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"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["SUBTITLE_FORCED",
975"Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ha("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","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],
976["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"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],
977["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ha("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..."],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE",
978"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"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],
979["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","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ha("es-419",
980new 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"],["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],
981["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"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE",
982"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.ha("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME",
983"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)"],["FAST_FORWARD","Avance rapide"],
984["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","Retour arri\u00e8re"],["SEEK",
985"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.ha("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","Sottotitoli"],["CAST",
986"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"],["MULTIPLE_LANGUAGES",
987"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"],["UNRECOGNIZED_LANGUAGE",
988"Non riconosciuto"],["VOLUME","Volume"]]));a.ha("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","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],
989["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"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],
990["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"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD",
991"\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.ha("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],
992["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"],["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE",
993"\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"],["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],
994["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.ha("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],
995["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","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],
996["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"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME",
997"Volume"]]));a.ha("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 tr
997yb obrazu w\u00a0obrazie"],["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],
998["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","Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],
999["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","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ha("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],
1000["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","Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],
1001["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"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],
1002["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.ha("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f"],["AD_PROGRESS","\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 [AD_ON] \u0438\u0437 [NUM_ADS]"],
1003["AD_TIME","\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435: [AD_TIME]"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0422\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"],["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"'],
1004["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"],["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"'],
1005["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","\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"],
1006["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","\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c"],["ON","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c"],["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"],
1007["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"],["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",
1008"\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"],["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"],
1009["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ha("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"],["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"],
1010["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"],["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"],
1011["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"],["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"],
1012["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"],["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],
1013["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"],["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],
1014["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"],["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],
1015["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ha("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"],["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE",
1016"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"],["OF
1016F","Kapal\u0131"],["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE",
1017"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.ha("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],
1018["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"],["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],
1019["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"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION",
1020"\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.ha("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY",
1021"\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"],["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN",
1022"\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"],["RESOLUTION","\u89e3\u6790\u5ea6"],
1023["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.Le(navigator.languages||[]);return a}I("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.Kb;Y.prototype.hideAdUI=Y.prototype.Xe;Y.prototype.showAdUI=Y.prototype.uf;
1024Y.prototype.toggleFullScreen=Y.prototype.Ce;Y.prototype.hideSettingsMenus=Y.prototype.Fc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.Wc;Y.prototype.setLastTouchEventTime=Y.prototype.sf;Y.prototype.getDisplayTime=Y.prototype.Ue;Y.prototype.isCastAllowed=Y.prototype.vg;Y.prototype.setSeeking=Y.prototype.xe;Y.prototype.isSeeking=Y.prototype.xg;Y.prototype.getConfig=Y.prototype.Tf;Y.prototype.getClientSideAdContainer=Y.prototype.Sf;Y.prototype.getServerSideAdContainer=Y.prototype.kg;
1025Y.prototype.getControlsContainer=Y.prototype.Vf;Y.prototype.getLocalPlayer=Y.prototype.$f;Y.prototype.getPlayer=Y.prototype.bc;Y.prototype.getLocalVideo=Y.prototype.ag;Y.prototype.getVideo=Y.prototype.wb;Y.prototype.getVideoContainer=Y.prototype.rg;Y.prototype.getLocalization=Y.prototype.cg;Y.prototype.getCastProxy=Y.prototype.Qf;Y.prototype.getAd=Y.prototype.getAd;Y.prototype.setEnabledNativeControls=Y.prototype.rf;
1025Y.prototype.setEnabledShakaControls=Y.prototype.se;Y.prototype.configure=Y.prototype.configure;
1026Y.prototype.loadComplete=Y.prototype.yg;Y.prototype.allowCast=Y.prototype.Ef;Y.registerSeekBar=function(a){Yv=a};Y.registerElement=Ov;Y.prototype.destroy=Y.prototype.destroy;var Pv=new Map,Yv=new Hv;function dw(a,b){nv.call(this,a,b);var c=this;this.s=this.controls.s;this.j=this.controls.i;this.i=[];this.h=Tj();this.h.classList.add("shaka-overflow-menu-button");this.h.classList.add("shaka-no-propagation");this.h.classList.add("material-icons-round");this.h.textContent="more_vert";this.parent.appendChild(this.h);this.g=S("div");this.g.classList.add("shaka-overflow-menu");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-hidden");
1027this.j.appendChild(this.g);ew(this);for(var d=r(this.controls.j.getElementsByClassName("shaka-back-to-overflow-button")),e=d.next();!e.done;e=d.next())this.eventManager.m(e.value,"click",function(){c.controls.Fc();W(c.g,!0);c.g.childNodes.length&&c.g.childNodes[0].focus();Iv(c.controls)});this.eventManager.m(this.localization,"locale-updated",function(){fw(c)});this.eventManager.m(this.localization,"locale-changed",function(){fw(c)});this.eventManager.m(this.adManager,"ad-started",function(){W(c.h,
1028!1)});this.eventManager.m(this.adManager,"ad-stopped",function(){W(c.h,!0)});this.eventManager.m(this.controls,"submenuopen",function(){W(c.g,!1)});this.eventManager.m(this.g,"touchstart",function(f){c.controls.sf(Date.now());f.stopPropagation()});this.eventManager.m(this.h,"click",function(){gw(c)});fw(this);this.ad&&W(this.h,!1)}ra(dw,nv);dw.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=[];nv.prototype.release.call(this)};
1029function hw(a,b){iw.set(a,b)}function ew(a){for(var b=r(a.s.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,iw.get(c)?(c=iw.get(c),a.i.push(c.create(a.g,a.controls))):Ra("Unrecognized overflow menu element requested:",c)}function gw(a){if(a.controls.Wc())a.controls.Fc();else{W(a.g,!0);Iv(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};fb(a.g.childNodes,b)&&gb(a.g.childNodes,b)[0].focus()}}
1030function fw(a){a.h.ariaLabel=a.localization.resolve("MORE_SETTINGS")}I("shaka.ui.OverflowMenu",dw);dw.registerElement=hw;function jw(){}jw.prototype.create=function(a,b){return new dw(a,b)};Ov("overflow_menu",new jw);var iw=new Map;function kw(a,b){nv.call(this,a,b);var c=this;this.g=Tj();this.g.classList.add("shaka-airplay-button");this.g.ariaPressed="false";this.h=S("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=S("span");d.appendChild(this.j);this.i=S("span");this.i.classList.add("shaka-current-selection-span");
1031d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);lw(this);mw(this);this.eventManager.m(this.localization,"locale-updated",function(){lw(c)});this.eventManager.m(this.localization,"locale-changed",function(){lw(c)});this.eventManager.m(this.g,"click",function(){c.controls.wb().webkitShowPlaybackTargetPicker()});d=this.controls.wb();this.eventManager.m(d,"webkitplaybacktargetavailabilitychanged",function(e){var f=c.player.Ve()==wl;W(c.g,"available"==e.availability&&f)});this.eventManager.m(d,
1032"webkitcurrentplaybacktargetiswirelesschanged",function(){mw(c)})}ra(kw,nv);function mw(a){var b=a.controls.wb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function lw(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}I("shaka.ui.AirPlayButton",kw);function nw(){}nw.prototype.create=function(a,b){return new kw(a,b)};hw("airplay",new nw);Ov("airplay",new nw);function ow(a,b,c){this.h=a;this.s=pw(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.Sd()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.s);this.configure({});c.controls||a.Ae(b);b.ui=this;c.ui=this}q=ow.prototype;q.destroy=function(){var a=this;return H(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.C(2);if(4!=b.g)return a.g=null,a.h?u(b,a.h.destroy(),4):b.C(4);a.h=null;z(b)})};q.Sd=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Id()&&1<navigator.maxTouchPoints};
1033q.getConfiguration=function(){var a=pw(this);ck(a,this.s,pw(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=dk(a,b));ck(this.s,a,pw(this),{},"");this.s.castReceiverAppId&&!this.s.overflowMenuButtons.includes("cast")&&this.s.overflowMenuButtons.push("cast");this.g.configure(this.s);
1033this.g.dispatchEvent(new K("uiupdated"))};q.Uf=function(){return this.g};q.Zg=function(a){this.g.se(a)};
1034function pw(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(" "),addSeekBar:!0,addBigPlayButton:!1,castReceiverAppId:"",clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
1035level:"rgb(255, 255, 255)"},trackLabelFormat:qw,fadeDelay:0,doubleClickForFullscreen:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.Sd()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1036function rw(){var a,b,c,d,e,f,g,h,k,l,m,n,p;return H(function(t){switch(t.g){case 1:Os();if(!Hk())return sw("shaka-ui-load-failed",tw),t["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){t.C(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),uw(f,e));t.C(2);break}h=r(a);k=h.next();
1037case 4:if(k.done){t.C(2);break}l=k.value;if(l.ui){t.C(5);break}m=null;n=r(b);for(d=n.next();!d.done;d=n.next())if(p=d.value,p.parentElement==l){m=p;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));A(t,7);return u(t,uw(l,m),9);case 9:wa(t,5);break;case 7:return E(t),sw("shaka-ui-load-failed",vw),t["return"]();case 5:k=h.next();t.C(4);break;case 2:sw("shaka-ui-loaded"),z(t)}})}
1038function sw(a,b){var c=null;void 0!=b&&(c={reasonCode:b});c=new CustomEvent(a,{detail:c});document.dispatchEvent(c)}
1039function uw(a,b){var c,d,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:c=new U(b);d=new ow(c,a,b);e="";a.dataset&&a.dataset.shakaPlayerCastReceiverId?e=a.dataset.shakaPlayerCastReceiverId:b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId);e.length&&d.configure({castReceiverAppId:e});b.controls&&d.g.rf(!0);if(f=b.getAttribute("src"))g=document.createElement("source"),g.setAttribute("src",f),b.appendChild(g),b.removeAttribute("src");h=r(b.querySelectorAll("source"));
1040k=h.next();case 2:if(k.done){m.C(0);break}l=k.value;A(m,5);return u(m,d.g.bc().load(l.getAttribute("src")),7);case 7:m.C(0);break;case 5:E(m);case 3:k=h.next(),m.C(2)}})}I("shaka.ui.Overlay",ow);ow.prototype.setEnabled=ow.prototype.Zg;ow.prototype.getControls=ow.prototype.Uf;ow.prototype.configure=ow.prototype.configure;ow.prototype.getConfiguration=ow.prototype.getConfiguration;ow.prototype.isMobile=ow.prototype.Sd;ow.prototype.destroy=ow.prototype.destroy;var qw=0;
1041ow.TrackLabelFormat={LANGUAGE:qw,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var tw=0,vw=1;ow.FailReasonCode={NO_BROWSER_SUPPORT:tw,PLAYER_FAILED_TO_LOAD:vw};"complete"==document.readyState?H(function(a){if(1==a.g)return u(a,Promise.resolve(),2);rw();z(a)}):window.addEventListener("load",rw);function ww(a,b,c,d,e,f,g){function h(D,B){return D+": "+B}function k(D){return"variant"==D.type?D.audioRoles?D.audioRoles.join(", "):void 0:D.roles.join(", ")}var l=a.find(function(D){return 1==D.active}),m=ov(b);Uj(b);b.appendChild(m);m=new Map;for(var n=r(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";n={};a=r(a);for(p=a.next();!p.done;n={Va:n.Va},p=a.next()){n.Va=p.value;p=n.Va.language;var t=
1042n.Va.forced,v=f.resolve(gc.zf),w=k(n.Va),x=h(p,w);if(!m.has(x)){m.add(x);var y=Tj();y.addEventListener("click",function(D){return function(){c(D.Va)}}(n));var C=S("span");y.appendChild(C);C.textContent=xw(p,f);switch(g){case qw:t&&(C.textContent+=" ("+v+")");break;case 1:w?C.textContent=w:(Ra("Track #"+n.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:w&&(C.textContent+=": "+w);t&&(C.textContent+=" ("+v+")");
1043break;case 3:n.Va.label?C.textContent=n.Va.label:(Ra("Track #"+n.Va.id+" does not have a label, but the UI is configured to only show labels."),C.textContent="?")}d&&x==l&&(y.appendChild(rv()),C.classList.add("shaka-chosen-item"),y.ariaSelected="true",e.textContent=C.textContent);b.appendChild(y)}}}
1044function xw(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=Zb(a);return a in jv?jv[a].u:c in jv?jv[c].u+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function yw(a,b,c){nv.call(this,a,b);var d=this;zw(this,c);Aw(this);this.eventManager.m(this.button,"click",function(){d.controls.dispatchEvent(new K("submenuopen"));W(d.menu,!0);qv(d.menu)})}ra(yw,nv);
1045function zw(a,b){a.button=Tj();a.icon=S("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=S("label");c.classList.add("shaka-overflow-button-label");a.nameSpan=S("span");c.appendChild(a.nameSpan);a.currentSelection=S("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
1046function Aw(a){a.menu=S("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=Tj();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);var b=S("i");b.classList.add("material-icons-round");b.textContent="arrow_back";a.backButton.appendChild(b);a.backSpan=S("span");a.backButton.appendChild(a.backSpan);a.controls.i.appendChild(a.menu)}
1047I("shaka.ui.SettingsMenu",yw);function Bw(a,b){yw.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.menu.classList.add("shaka-audio-languages");this.eventManager.m(this.localization,"locale-updated",function(){Cw(c)});this.eventManager.m(this.localization,"locale-changed",function(){Cw(c)});this.eventManager.m(this.player,"trackschanged",function(){var d=0<c.player.Gb().length;W(c.button,d);Dw(c)});this.eventManager.m(this.player,"variantchanged",function(){Dw(c)});Cw(this);Dw(this)}
1048ra(Bw,yw);function Dw(a){var b=a.player.Gb();ww(b,a.menu,function(c){a.player.td(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.s.trackLabelFormat);qv(a.menu);a.controls.dispatchEvent(new K("languageselectionupdated"))}function Cw(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")}
1049I("shaka.ui.AudioLanguageSelection",Bw);function Ew(){}Ew.prototype.create=function(a,b){return new Bw(a,b)};hw("language",new Ew);function Fw(a,b){nv.call(this,a,b);var c=this;this.h=this.controls.A;this.g=Tj();this.g.classList.add("shaka-cast-button");this.g.ariaPressed="false";this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=S("span");d.appendChild(this.l);this.j=S("span");this.j.classList.add("shaka-current-selection-span");d.appendChild(this.j);
1050this.g.appendChild(d);this.parent.appendChild(this.g);Gw(this);Hw(this);this.eventManager.m(this.localization,"locale-updated",function(){Gw(c)});this.eventManager.m(this.localization,"locale-changed",function(){Gw(c)});this.eventManager.m(this.g,"click",function(){Iw(c)});this.eventManager.m(this.controls,"caststatuschanged",function(){Hw(c)})}ra(Fw,nv);
1051function Iw(a){var b;H(function(c){if(1==c.g){if(a.h.ra())return a.h.vf(),c.C(0);A(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,wa(c,0);b=E(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new K("error",{detail:b}));z(c)})}function Hw(a){var b=a.h.Ie()&&a.controls.tb,c=a.h.ra();W(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");Jw(a)}function Jw(a){a.j.textContent=a.h.ra()?a.h.qd():a.localization.resolve("OFF")}
1052function Gw(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");Jw(a)}I("shaka.ui.CastButton",Fw);function Kw(){}Kw.prototype.create=function(a,b){return new Fw(a,b)};hw("cast",new Kw);Ov("cast",new Kw);function Lw(a,b){nv.call(this,a,b);var c=this;this.g=Tj();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.textContent="fast_forward";this.parent.appendChild(this.g);Mw(this);this.eventManager.m(this.localization,"locale-updated",function(){Mw(c)});this.eventManager.m(this.localization,"locale-changed",function(){Mw(c)});this.eventManager.m(this.g,"click",function(){if(c.video.duration){var d=c.player.Bc();c.player.Ee(0>d||4<d?1:2*d)}})}ra(Lw,nv);
1053function Mw(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}I("shaka.ui.FastForwardButton",Lw);function Nw(){}Nw.prototype.create=function(a,b){return new Lw(a,b)};Ov("fast_forward",new Nw);function Ow(a,b){nv.call(this,a,b);var c=this;this.g=Tj();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");document.fullscreenEnabled||this.g.classList.add("shaka-hidden");this.g.textContent="fullscreen";this.parent.appendChild(this.g);Pw(this);this.eventManager.m(this.localization,"locale-updated",function(){Pw(c)});this.eventManager.m(this.localization,"locale-changed",function(){Pw(c)});this.eventManager.m(this.g,"click",function(){return H(function(d){return u(d,
1054c.controls.Ce(),0)})});this.eventManager.m(document,"fullscreenchange",function(){c.g.textContent=document.fullscreenElement?"fullscreen_exit":"fullscreen";Pw(c)})}ra(Ow,nv);function Pw(a){a.g.ariaLabel=a.localization.resolve(document.fullscreenElement?"EXIT_FULL_SCREEN":"FULL_SCREEN")}I("shaka.ui.FullscreenButton",Ow);function Qw(){}Qw.prototype.create=function(a,b){return new Ow(a,b)};Ov("fullscreen",new Qw);function Rw(a,b){nv.call(this,a,b);var c=this;this.g=Tj();this.g.classList.add("shaka-loop-button");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=S("span");this.l.textContent=this.localization.resolve("LOOP");d.appendChild(this.l);this.j=S("span");this.j.classList.add("shaka-current-selection-span");d.appendChild(this.j);
1055this.g.appendChild(d);Sw(this);this.parent.appendChild(this.g);this.eventManager.m(this.localization,"locale-updated",function(){Sw(c)});this.eventManager.m(this.localization,"locale-changed",function(){Sw(c)});this.eventManager.m(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ca();c.h.ma(1)});this.o=this.video.loop;this.h=new Q(function(){c.o!=c.video.loop&&(Sw(c),c.o=c.video.loop)});this.h.ma(1)}ra(Rw,nv);Rw.prototype.release=function(){this.h.stop();this.h=null;nv.prototype.release.call(this)};
1056function Sw(a){a.l.textContent=a.localization.resolve("LOOP");a.j.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",Rw);function Tw(){}Tw.prototype.create=function(a,b){return new Rw(a,b)};hw("loop",new Tw);Ov("loop",new Tw);function Uw(a,b){nv.call(this,a,b);var c=this;this.g=Tj();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.parent.appendChild(this.g);Vw(this);Ww(this);this.eventManager.m(this.localization,"locale-updated",function(){Vw(c)});this.eventManager.m(this.localization,"locale-changed",function(){Vw(c)});this.eventManager.m(this.g,"click",function(){c.ad?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});this.eventManager.m(this.video,"volumechange",
1057function(){Vw(c);Ww(c)});this.eventManager.m(this.adManager,"ad-volume-changed",function(){Vw(c);Ww(c)});this.eventManager.m(this.adManager,"ad-muted",function(){Vw(c);Ww(c)});this.eventManager.m(this.adManager,"ad-stopped",function(){c.ad=null;Vw(c);Ww(c)})}ra(Uw,nv);
1057function Vw(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1058function Ww(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",Uw);function Xw(){}Xw.prototype.create=function(a,b){return new Uw(a,b)};Ov("mute",new Xw);function Yw(a,b){nv.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Tj();this.g.classList.add("shaka-pip-button");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);this.h=S("span");this.h.classList.add("shaka-current-selection-span");
1059d.appendChild(this.h);this.g.appendChild(d);Zw(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||W(this.g,!1);this.eventManager.m(this.localization,"locale-updated",function(){Zw(c)});this.eventManager.m(this.localization,"locale-changed",function(){Zw(c)});this.eventManager.m(this.g,"click",function(){$w(c)});this.eventManager.m(this.l,"enterpictureinpicture",function(){c.i.textContent="branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE");
1060c.h.textContent=c.localization.resolve("ON")});this.eventManager.m(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.m(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&W(c.g,!1):document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&W(c.g,!0)});this.eventManager.m(this.player,
1061"trackschanged",function(){ax(c)})}ra(Yw,nv);function $w(a){var b;H(function(c){if(1==c.g)return A(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return wa(c,0);b=E(c);a.controls.dispatchEvent(new K("error",{detail:b}));z(c)})}
1062function Zw(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")}
1063function ax(a){H(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return W(a.g,!1),b.C(0);if(!a.player||!a.player.Ze())return W(a.g,!0),b.C(0);W(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.C(0)})}I("shaka.ui.PipButton",Yw);function bx(){}bx.prototype.create=function(a,b){return new Yw(a,b)};hw("picture_in_picture",new bx);Ov("picture_in_picture",new bx);function cx(a,b){yw.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.eventManager.m(this.localization,"locale-updated",function(){dx(c)});this.eventManager.m(this.localization,"locale-changed",function(){dx(c)});this.eventManager.m(this.player,"ratechange",function(){ex(c,c.player.Bc())});this.g=new Map([["0.5x",.5],["0.75x",.75],["1x",1],["1.25x",1.25],["1.5x",1.5],["1.75x",1.75],["2x",2]]);dx(this);
1064fx(this);ex(this,this.player.Bc())}ra(cx,yw);function dx(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")}
1065function ex(a,b){var c=pv(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(rv()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x"}
1066function fx(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={pc:b.pc},d=c.next()){b.pc=d.value;d=Tj();var e=S("span");e.textContent=b.pc;d.appendChild(e);a.eventManager.m(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.pc);a.video.defaultPlaybackRate=a.g.get(f.pc)}}(b));a.menu.appendChild(d)}qv(a.menu)}I("shaka.ui.PlaybackRateSelection",cx);function gx(){}gx.prototype.create=function(a,b){return new cx(a,b)};hw("playback_rate",new gx);function hx(a,b){nv.call(this,a,b);var c=this;this.g=Tj();this.g.classList.add("shaka-current-time");ix(this,"0:00");this.parent.appendChild(this.g);this.eventManager.m(this.g,"click",function(){c.player.X()&&(c.video.currentTime=c.player.Ka().end)});this.eventManager.m(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.ba,e=c.controls.Ue(),f=c.video.duration,g=c.player.Ka(),h=g.end-g.start;c.player.X()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(ix(c,"- "+sv(e,f)),c.g.disabled=
1067!1):(ix(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=sv(e,d),f&&(e+=" / "+sv(f,d)),ix(c,e),c.g.disabled=!0)});this.eventManager.m(this.player,"trackschanged",function(){c.player.X()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}ra(hx,nv);function ix(a,b){b!=a.g.textContent&&(a.g.textContent=b)}I("shaka.ui.PresentationTimeTracker",hx);function jx(){}jx.prototype.create=function(a,b){return new hx(a,b)};Ov("time_and_duration",new jx);function kx(a,b){yw.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.menu.classList.add("shaka-resolutions");this.eventManager.m(this.localization,"locale-updated",function(){lx(c)});this.eventManager.m(this.localization,"locale-changed",function(){lx(c)});this.eventManager.m(this.player,"variantchanged",function(){mx(c)});this.eventManager.m(this.player,"trackschanged",function(){mx(c)});this.eventManager.m(this.player,"abrstatuschanged",function(){mx(c)});
1068mx(this);lx(this)}ra(kx,yw);
1069function mx(a){var b=a.player.Gb();
1069if(b.length&&!b[0].height)W(a.menu,!1),W(a.button,!1);else{W(a.button,!0);b.sort(function(k,l){return l.height-k.height});var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height})==l});var d=ov(a.menu);Uj(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=r(b),g=f.next();!g.done;e=
1070{sc:e.sc},g=f.next()){e.sc=g.value;g=Tj();g.classList.add("explicit-resolution");a.eventManager.m(g,"click",function(k){return function(){var l=k.sc;a.player.configure({abr:{enabled:!1}});a.player.qe(l,a.controls.s.clearBufferOnQualityChange)}}(e));var h=S("span");h.textContent=e.sc.height+"p";g.appendChild(h);d||e.sc!=c||(g.ariaSelected="true",g.appendChild(rv()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Tj();e.classList.add("shaka-enable-abr-button");
1071a.eventManager.m(e,"click",function(){a.player.configure({abr:{enabled:!0}});mx(a)});a.g=S("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(rv()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.menu.appendChild(e);qv(a.menu);a.controls.dispatchEvent(new K("resolutionselectionupdated"))}}
1072function lx(a){a.button.ariaLabel=a.localization.resolve("RESOLUTION");a.backButton.ariaLabel=a.localization.resolve("RESOLUTION");a.backSpan.textContent=a.localization.resolve("RESOLUTION");a.nameSpan.textContent=a.localization.resolve("RESOLUTION");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",kx);function nx(){}
1073nx.prototype.create=function(a,b){return new kx(a,b)};hw("quality",new nx);function ox(a,b){nv.call(this,a,b);var c=this;this.g=Tj();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.textContent="fast_rewind";this.parent.appendChild(this.g);px(this);this.eventManager.m(this.localization,"locale-updated",function(){px(c)});this.eventManager.m(this.localization,"locale-changed",function(){px(c)});this.eventManager.m(this.g,"click",function(){if(c.video.duration){var d=c.player.Bc();c.player.Ee(0<d||-4>d?-1:2*d)}})}ra(ox,nv);
1074function px(a){a.g.ariaLabel=a.localization.resolve("REWIND")}I("shaka.ui.RewindButton",ox);function qx(){}qx.prototype.create=function(a,b){return new ox(a,b)};Ov("rewind",new qx);function rx(a,b){nv.call(this,a,b);var c=this;this.j=S("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=S("div");this.h.classList.add("shaka-skip-ad-counter");W(this.h,!1);this.j.appendChild(this.h);this.g=Tj();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;W(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);sx(this);this.i=new Q(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1075d:(c.i.stop(),W(c.h,!1))});this.eventManager.m(this.localization,"locale-updated",function(){sx(c)});this.eventManager.m(this.localization,"locale-changed",function(){sx(c)});this.eventManager.m(this.adManager,"ad-started",function(){tx(c)});this.eventManager.m(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),W(c.h,!1))});this.eventManager.m(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;W(c.g,!1);W(c.h,!1)});this.eventManager.m(this.g,
1076"click",function(){c.ad.skip()});this.ad&&tx(this)}ra(rx,nv);rx.prototype.release=function(){this.i.stop();this.i=null;nv.prototype.release.call(this)};function sx(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function tx(a){a.ad.isSkippable()&&(W(a.g,!0),W(a.h,!0),a.h.textContent="",a.i.Ca(),a.i.ma(.5))}I("shaka.ui.SkipAdButton",rx);function ux(a,b){wv.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.h();this.g()}ra(ux,wv);ux.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};ux.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)}};
1077I("shaka.ui.SmallPlayButton",ux);function vx(){}vx.prototype.create=function(a,b){return new ux(a,b)};Ov("play_pause",new vx);function wx(a,b){nv.call(this,a,b);var c=S("div");c.classList.add("shaka-spacer");c.ariaHidden="true";this.parent.appendChild(c)}ra(wx,nv);I("shaka.ui.Spacer",wx);function xx(){}xx.prototype.create=function(a,b){return new wx(a,b)};Ov("spacer",new xx);function yx(a,b){yw.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Lb()?this.button.ariaPressed="true":this.button.ariaPressed="false";zx(this);this.eventManager.m(this.localization,"locale-updated",function(){Ax(c);Bx(c)});this.eventManager.m(this.localization,"locale-changed",function(){Ax(c);Bx(c)});this.eventManager.m(this.player,"texttrackvisibility",function(){Cx(c)});this.eventManager.m(this.player,
1078"textchanged",function(){Bx(c)});this.eventManager.m(this.player,"trackschanged",function(){Dx(c)});Cx(this);Ax(this);Bx(this);Dx(this)}ra(yx,yw);function zx(a){var b=Tj();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(rv());a.g=S("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1079function Cx(a){a.player.Lb()?(a.icon.classList.add("shaka-captions-on"),a.icon.classList.remove("shaka-captions-off"),a.button.ariaPressed="true"):(a.icon.classList.add("shaka-captions-off"),a.icon.classList.remove("shaka-captions-on"),a.button.ariaPressed="false");a.controls.dispatchEvent(new K("captionselectionupdated"))}
1080function Bx(a){var b=a.player.jb();ww(b,a.menu,function(c){return Ex(a,c)},a.player.Lb(),a.currentSelection,a.localization,a.controls.s.trackLabelFormat);b=Tj();b.classList.add("shaka-turn-captions-off-button");a.eventManager.m(b,"click",function(){a.player.ze(!1);Bx(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Lb()||(b.ariaSelected="true",b.appendChild(rv()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));qv(a.menu);a.controls.dispatchEvent(new K("captionselectionupdated"))}
1081function Ex(a,b){return H(function(c){a.player.pe(b);return u(c,a.player.ze(!0),0)})}function Ax(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function Dx(a){var b=0<a.player.jb().length;W(a.button,b);Bx(a)}I("shaka.ui.TextSelection",yx);function Fx(){}
1082Fx.prototype.create=function(a,b){return new yx(a,b)};hw("captions",new Fx);function Gx(a,b){Av.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.s=this.controls.s;this.eventManager.m(this.video,"volumechange",function(){return Hx(c)});this.eventManager.m(this.adManager,"ad-volume-changed",function(){return Ix(c)});this.eventManager.m(this.adManager,"ad-muted",function(){return Ix(c)});this.eventManager.m(this.adManager,"ad-stopped",function(){return Hx(c)});this.eventManager.m(this.localization,"locale-updated",function(){return Jx(c)});
1083this.eventManager.m(this.localization,"locale-changed",function(){return Jx(c)});Hx(this);Jx(this);if(this.ad)this.onChange()}ra(Gx,Av);Gx.prototype.onChange=function(){this.ad?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function Hx(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);Kx(a)}function Ix(a){var b=a.ad.getVolume();a.setValue(b);Kx(a)}
1084function Kx(a){var b=a.s.volumeBarColors,c=["to right"];
1084c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function Jx(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}I("shaka.ui.VolumeBar",Gx);function Lx(){}Lx.prototype.create=function(a,b){return new Gx(a,b)};Ov("volume",new Lx);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1085
1086//# sourceMappingURL=shaka-player.ui.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.